Skip to content

Commit

Permalink
Merge branch 'develop' into feature/convertkit-form-migration-GIVE-455
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaHungDinh authored Apr 23, 2024
2 parents a3d98d5 + abc1aa7 commit 2eb9de8
Show file tree
Hide file tree
Showing 27 changed files with 52 additions and 48 deletions.
4 changes: 2 additions & 2 deletions give.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
* Author: GiveWP
* Author URI: https://givewp.com/
* Version: 3.8.0
* Version: 3.9.0
* Requires at least: 6.3
* Requires PHP: 7.2
* Text Domain: give
Expand Down Expand Up @@ -404,7 +404,7 @@ private function setup_constants()
{
// Plugin version.
if (!defined('GIVE_VERSION')) {
define('GIVE_VERSION', '3.8.0');
define('GIVE_VERSION', '3.9.0');
}

// Plugin Root File.
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/payments/view-payment-details.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
/**
* View donation details page
*
* @unreleased Add donor phone number to the view
* @since 3.9.0 Add donor phone number to the view
* @since 1.0
* @return void
*/
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: donation, donate, recurring donations, fundraising, crowdfunding
Requires at least: 6.3
Tested up to: 6.5
Requires PHP: 7.2
Stable tag: 3.8.0
Stable tag: 3.9.0
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -262,6 +262,10 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri
10. Use almost any payment gateway integration with GiveWP through our add-ons or by creating your own add-on.

== Changelog ==
= 3.9.0: April 24th, 2024 =
* New: Added a donor phone number block to the form builder to collect donor phone numbers on donation forms
* Enhancement: Updated form field inputs to have a single border color when selected

= 3.8.0: April 17th, 2024 =
* New: Added pre-requisite form builder compatibility for upcoming double the donation add-on release
* Enhancement: Updated the form builder tour to highlight where to find the guided tour again
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ protected function convertInnerBlockToNode(BlockModel $block, int $blockIndex)
}

/**
* @unreleased Add "givewp/donor-phone" block
* @since 3.9.0 Add "givewp/donor-phone" block
* @since 3.0.0
*
* @return Node|null
Expand Down
2 changes: 1 addition & 1 deletion src/DonationForms/Actions/GetOrCreateDonor.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class GetOrCreateDonor
public $donorCreated = false;

/**
* @unreleased Add support to "phone" property
* @since 3.9.0 Add support to "phone" property
* @since 3.2.0
*
* @throws Exception
Expand Down
2 changes: 1 addition & 1 deletion src/DonationForms/Controllers/DonateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function donate(DonateControllerData $formData, PaymentGateway $gateway)
}

/**
* @unreleased Add support for "phone" property
* @since 3.9.0 Add support for "phone" property
* @since 3.2.0 Added $formId to the signature for passing to do_action hooks. Added honorific and use GetOrCreateDonor action
* @since 3.0.0
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class DonateControllerData
public $comment;

/**
* @unreleased Added phone property
* @since 3.9.0 Added phone property
* @since 3.2.0 added honorific property
* @since 3.0.0
*/
Expand Down Expand Up @@ -159,7 +159,7 @@ public function toDonation(int $donorId): Donation
}

/**
* @unreleased Added phone property
* @since 3.9.0 Added phone property
* @since 3.0.0
*/
public function toInitialSubscriptionDonation(int $donorId, int $subscriptionId): Donation
Expand Down
2 changes: 1 addition & 1 deletion src/DonationForms/Properties/FormSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class FormSettings implements Arrayable, Jsonable
public $formExcerpt;

/**
* @unreleased
* @since 3.9.0
* @var array
*/
public $currencySwitcherSettings;
Expand Down
8 changes: 4 additions & 4 deletions src/DonationForms/Rules/PhoneIntlInputRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@
use Give\Vendors\StellarWP\Validation\Contracts\ValidationRule;

/**
* @unreleased
* @since 3.9.0
*/
class PhoneIntlInputRule implements ValidationRule
{
/**
* @unreleased
* @since 3.9.0
*/
public static function id(): string
{
return 'intl-input';
}

/**
* @unreleased
* @since 3.9.0
*/
public static function fromString(string $options = null): ValidationRule
{
Expand All @@ -37,7 +37,7 @@ public static function fromString(string $options = null): ValidationRule
*
* @see https://intl-tel-input.com/examples/validation.html
*
* @unreleased
* @since 3.9.0
*/
public function __invoke($value, Closure $fail, string $key, array $values)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'intl-tel-input/build/css/intlTelInput.css';
import InputMask from 'react-input-mask';

/**
* @unreleased
* @since 3.9.0
*/
export default function Phone({
Label,
Expand Down
2 changes: 1 addition & 1 deletion src/Donations/DataTransferObjects/DonationQueryData.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ final class DonationQueryData
/**
* Convert data from object to Donation
*
* @unreleased Add support for "phone" property
* @since 3.9.0 Add support for "phone" property
* @since 3.2.0 add fallback for donation mode
* @since 2.23.0 remove parentId property
* @since 2.22.0 add support for company field
Expand Down
2 changes: 1 addition & 1 deletion src/Donations/Models/Donation.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Class Donation
*
* @unreleased Add phone property
* @since 3.9.0 Add phone property
* @since 2.23.0 add type property; remove parentId property
* @since 2.20.0 update amount type, fee recovered, and exchange rate
* @since 2.19.6
Expand Down
2 changes: 1 addition & 1 deletion src/Donations/Repositories/DonationRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public function delete(Donation $donation): bool
}

/**
* @unreleased Added meta for phone property
* @since 3.9.0 Added meta for phone property
* @since 3.2.0 added meta for honorific property
* @since 2.20.0 update amount to use new type, and add currency and exchange rate
* @since 2.19.6
Expand Down
2 changes: 1 addition & 1 deletion src/Donations/ValueObjects/DonationMetaKeys.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Give\Framework\Support\ValueObjects\EnumInteractsWithQueryBuilder;

/**
* @unreleased added PHONE
* @since 3.9.0 added PHONE
* @since 3.2.0 added HONORIFIC
* @since 2.20.0 add fee amount recovered and exchange rate
* @since 2.19.6
Expand Down
2 changes: 1 addition & 1 deletion src/FormBuilder/ViewModels/FormBuilderViewModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class FormBuilderViewModel
{
/**
* @unreleased Add support to intlTelInputSettings key in the returned array
* @since 3.9.0 Add support to intlTelInputSettings key in the returned array
* @since 3.7.0 Add support to isExcerptEnabled key in the returned array
* @since 3.2.0 Add nameTitlePrefixes key to the returned array
* @since 3.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import anonymous from './anonymous';
import phone from './phone';

/**
* @unreleased Add phone block
* @since 3.9.0 Add phone block
* @note Blocks in the appender are listed in the order that the blocks are registered.
*/
const FieldBlocks: FieldBlock[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {getFormBuilderWindowData} from '@givewp/form-builder/common/getWindowDat
import {useEffect} from 'react';

/**
* @unreleased
* @since 3.9.0
*/
export default function Edit({attributes: {label, required}, setAttributes}: BlockEditProps<any>) {
const {intlTelInputSettings} = getFormBuilderWindowData();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import settings from './settings';
import {FieldBlock} from '@givewp/form-builder/types';

/**
* @unreleased
* @since 3.9.0
*/
const phone: FieldBlock = {
name: 'givewp/donor-phone',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {Icon} from '@wordpress/icons';
import {Path, SVG} from '@wordpress/components';

/**
* @unreleased
* @since 3.9.0
*/
const settings: FieldBlock['settings'] = {
...defaultSettings,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type GoalTypeOption = {
};

/**
* @unreleased Added intlTelInputSettings
* @since 3.9.0 Added intlTelInputSettings
* @since 3.7.0 Added isExcerptEnabled
* @since 3.0.0
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/FieldsAPI/Phone.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function phoneFormat(string $phoneFormat): self
*
* @see https://github.com/jackocnr/intl-tel-input
*
* @unreleased
* @since 3.9.0
*/
public function setIntlTelInputSettings(array $intlTelInputSettings): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private function fillDonationDetails(DonationReceipt $receipt)
}

/**
* @unreleased Add phone number to donor details
* @since 3.9.0 Add phone number to donor details
* @since 3.0.0
*
* @return void
Expand Down
24 changes: 12 additions & 12 deletions src/Helpers/IntlTelInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,38 @@
namespace Give\Helpers;

/**
* @unreleased
* @since 3.9.0
*
* @see https://github.com/jackocnr/intl-tel-input
*/
class IntlTelInput
{
/**
* @unreleased
* @since 3.9.0
*/
public static function getCssUrl(): string
{
return 'https://cdn.jsdelivr.net/npm/[email protected]/build/css/intlTelInput.css';
}

/**
* @unreleased
* @since 3.9.0
*/
public static function getScriptUrl(): string
{
return 'https://cdn.jsdelivr.net/npm/[email protected]/build/js/intlTelInput.min.js';
}

/**
* @unreleased
* @since 3.9.0
*/
public static function getUtilsScriptUrl(): string
{
return 'https://cdn.jsdelivr.net/npm/[email protected]/build/js/utils.js';
}

/**
* @unreleased
* @since 3.9.0
*/
public static function getI18n(): array
{
Expand Down Expand Up @@ -62,7 +62,7 @@ public static function getI18n(): array
}

/**
* @unreleased
* @since 3.9.0
*/
public static function getErrorMap(): array
{
Expand All @@ -76,39 +76,39 @@ public static function getErrorMap(): array
}

/**
* @unreleased
* @since 3.9.0
*/
public static function getInitialCountry(): string
{
return strtolower(give_get_country());
}

/**
* @unreleased
* @since 3.9.0
*/
public static function getShowSelectedDialCode(): bool
{
return true;
}

/**
* @unreleased
* @since 3.9.0
*/
public static function getStrictMode(): bool
{
return true;
}

/**
* @unreleased
* @since 3.9.0
*/
public static function getUseFullscreenPopup(): bool
{
return false;
}

/**
* @unreleased
* @since 3.9.0
*/
public static function getSettings(): array
{
Expand All @@ -126,7 +126,7 @@ public static function getSettings(): array
}

/**
* @unreleased
* @since 3.9.0
*/
public static function getHtmlInput(string $value, string $id, string $class = '', string $name = ''): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function getLegacyFormFieldMarkup(
/**
* First we create a payment, then move on to the gateway processing
*
* @unreleased Add support to "phone" property
* @since 3.9.0 Add support to "phone" property
* @since 3.2.0 Capture exceptions when get gateway data.
* @since 3.0.0 Catch and handle errors from the gateway here
* @since 2.30.0 Add success, cancel and failed URLs to gateway data. This will be used in both v2 and v3 forms so gateways can just refer to the gateway data.
Expand Down Expand Up @@ -326,7 +326,7 @@ private function setSession($donationId)
}

/**
* @unreleased Add support to "phone" property
* @since 3.9.0 Add support to "phone" property
* @since 3.4.0 add $formId and do_action
* @since 3.2.0 add honorific and use GetOrCreateDonor action
* @since 2.21.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DonateControllerDataTest extends TestCase
{

/**
* @unreleased Add phone support
* @since 3.9.0 Add phone support
* @since 3.2.0 added honorific property
* @since 3.0.0
*/
Expand Down
Loading

0 comments on commit 2eb9de8

Please sign in to comment.