Skip to content

Commit

Permalink
chore: prepare for 3.0.0-rc.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Waldstein committed Sep 13, 2023
1 parent fe4736d commit 2c8ee36
Show file tree
Hide file tree
Showing 50 changed files with 131 additions and 131 deletions.
2 changes: 1 addition & 1 deletion 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.0.0-beta.1
* Version: 3.0.0-rc.2
* Requires at least: 6.0
* Requires PHP: 7.2
* Text Domain: give
Expand Down
12 changes: 6 additions & 6 deletions src/DonationForms/V2/DonationFormsAdminPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function loadScripts()
/**
* Load scripts for the edit v2 form page
*
* @unreleased
* @since 3.0.0
* @return void
*/
public function loadEditFormScripts()
Expand Down Expand Up @@ -209,7 +209,7 @@ public function render()
/**
* Render the migration guide box on the old edit donation form page
*
* @unreleased
* @since 3.0.0
*
* @param WP_Post $post
*
Expand Down Expand Up @@ -265,7 +265,7 @@ public static function isShowing(): bool
/**
* Helper function to determine if current page is the edit v2 form page
*
* @unreleased
* @since 3.0.0
*
* @return bool
*/
Expand All @@ -277,7 +277,7 @@ public static function isShowingEditV2FormPage(): bool
/**
* Helper function to determine if current page is the add v2 form page
*
* @unreleased
* @since 3.0.0
*
* @return bool
*/
Expand Down Expand Up @@ -308,7 +308,7 @@ public static function getUrl(): string
/**
* Get an array of supported addons
*
* @unreleased
* @since 3.0.0
* @return array
*/
public function getSupportedAddons(): array
Expand Down Expand Up @@ -354,7 +354,7 @@ public function getSupportedAddons(): array
/**
* Get an array of supported gateways
*
* @unreleased
* @since 3.0.0
* @return array
*/
public function getSupportedGateways(): array
Expand Down
2 changes: 1 addition & 1 deletion src/DonationForms/ViewModels/DonationFormViewModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ private function enqueueGateways(int $formId)
}

/**
* @unreleased Set script translations
* @since 3.0.0 Set script translations
* @since 3.0.0
*/
private function enqueueDesign(string $formDesignId)
Expand Down
2 changes: 1 addition & 1 deletion src/DonationForms/resources/app/utilities/memoNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {Node} from '@givewp/forms/types';
* This is used for memoizing Node components. Node props come from the server and are never intended to change. The
* state of a Node may change, triggering a re-render, but the props should never change.
*
* @unreleased
* @since 3.0.0
*/
export default function memoNode(NodeComponent) {
return memo(NodeComponent, compareNodeProps);
Expand Down
46 changes: 23 additions & 23 deletions src/FormBuilder/BlockModels/DonationAmountBlockModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* This is a decorator for the Block Model block "givewp/donation-amount".
*
* @unreleased
* @since 3.0.0
*/
class DonationAmountBlockModel
{
Expand All @@ -18,31 +18,31 @@ class DonationAmountBlockModel
public $block;

/**
* @unreleased
* @since 3.0.0
*/
public function __construct(BlockModel $block)
{
$this->block = $block;
}

/**
* @unreleased
* @since 3.0.0
*/
public function getAttribute($name)
{
return $this->block->getAttribute($name);
}

/**
* @unreleased
* @since 3.0.0
*/
public function hasAttribute($name): bool
{
return $this->block->hasAttribute($name);
}

/**
* @unreleased
* @since 3.0.0
*/
public function setAttribute(string $name, $value): self
{
Expand All @@ -52,23 +52,23 @@ public function setAttribute(string $name, $value): self
}

/**
* @unreleased
* @since 3.0.0
*/
public function getLabel(): string
{
return $this->block->getAttribute('label');
}

/**
* @unreleased
* @since 3.0.0
*/
public function getLevels(): array
{
return array_map('absint', $this->block->getAttribute('levels'));
}

/**
* @unreleased
* @since 3.0.0
*
* @return string|null
*/
Expand All @@ -88,87 +88,87 @@ public function isRecurringFixed(): bool
}

/**
* @unreleased
* @since 3.0.0
*/
public function getRecurringBillingInterval(): int
{
return (int)$this->block->getAttribute('recurringBillingInterval');
}

/**
* @unreleased
* @since 3.0.0
*/
public function getRecurringLengthOfTime(): int
{
return (int)$this->block->getAttribute('recurringLengthOfTime');
}

/**
* @unreleased
* @since 3.0.0
*/
public function getRecurringOptInDefaultBillingPeriod(): string
{
return $this->block->getAttribute('recurringOptInDefaultBillingPeriod');
}

/**
* @unreleased
* @since 3.0.0
*/
public function getRecurringBillingPeriodOptions(): array
{
return $this->block->getAttribute('recurringBillingPeriodOptions');
}

/**
* @unreleased
* @since 3.0.0
*/
public function isRecurringEnableOneTimeDonations(): bool
{
return $this->block->getAttribute('recurringEnableOneTimeDonations') === true;
}

/**
* @unreleased
* @since 3.0.0
*/
public function isRecurringEnabled(): bool
{
return $this->block->getAttribute('recurringEnabled') === true;
}

/**
* @unreleased
* @since 3.0.0
*/
public function setRecurringEnabled(bool $enabled = true): self
{
return $this->setAttribute('recurringEnabled', $enabled);
}

/**
* @unreleased
* @since 3.0.0
*/
public function setRecurringEnableOneTimeDonations(bool $enabled = true): self
{
return $this->setAttribute('recurringEnableOneTimeDonations', $enabled);
}

/**
* @unreleased
* @since 3.0.0
*/
public function setRecurringBillingInterval(int $interval): self
{
return $this->setAttribute('recurringBillingInterval', $interval);
}

/**
* @unreleased
* @since 3.0.0
*/
public function setRecurringLengthOfTime(int $lengthOfTime): self
{
return $this->setAttribute('recurringLengthOfTime', $lengthOfTime);
}

/**
* @unreleased
* @since 3.0.0
*/
public function setRecurringBillingPeriodOptions(SubscriptionPeriod ...$options): self
{
Expand All @@ -183,31 +183,31 @@ public function setRecurringBillingPeriodOptions(SubscriptionPeriod ...$options)
}

/**
* @unreleased
* @since 3.0.0
*/
public function setRecurringOptInDefaultBillingPeriod(SubscriptionPeriod $period): self
{
return $this->setAttribute('recurringOptInDefaultBillingPeriod', $period->getValue());
}

/**
* @unreleased
* @since 3.0.0
*/
public function isCustomAmountEnabled(): bool
{
return $this->block->getAttribute('customAmount') === true;
}

/**
* @unreleased
* @since 3.0.0
*/
public function getPriceOption(): string
{
return $this->block->getAttribute('priceOption');
}

/**
* @unreleased
* @since 3.0.0
*/
public function getSetPrice(): int
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import LockedFieldBlocks, {LockIcon} from './LockedFieldBlocks';
import './styles.scss';

/**
* @unreleased
* @since 3.0.0
*/
export default function AdditionalFieldsPanel() {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function setIsDirty(isDirty: boolean) {
}

/**
* @unreleased
* @since 3.0.0
*/
export function setTransferState(transfer) {
return {
Expand Down
Loading

0 comments on commit 2c8ee36

Please sign in to comment.