diff --git a/src/FormExtension/DonationForm/Actions/ConvertDonationFormBlocksToFieldsApi.php b/src/FormExtension/DonationForm/Actions/ConvertDonationFormBlocksToFieldsApi.php index 7168aba..6cd2b10 100644 --- a/src/FormExtension/DonationForm/Actions/ConvertDonationFormBlocksToFieldsApi.php +++ b/src/FormExtension/DonationForm/Actions/ConvertDonationFormBlocksToFieldsApi.php @@ -11,14 +11,14 @@ use GiveAddon\FormExtension\DonationForm\ValueObjects\ColorField; /** - * @unreleased + * @since 1.0.0 */ class ConvertDonationFormBlocksToFieldsApi { /** * Converts the Sample Blocks to the form in GiveWP Field API fields * - * @unreleased + * @since 1.0.0 * * @throws EmptyNameException */ @@ -42,7 +42,7 @@ public function __invoke(?Node $node, BlockModel $block, int $index, int $formId } /** - * @unreleased + * @since 1.0.0 */ private function setFieldOptions(Select $field, BlockModel $block) { @@ -50,7 +50,7 @@ private function setFieldOptions(Select $field, BlockModel $block) } /** - * @unreleased + * @since 1.0.0 */ private function isAdminChoice(BlockModel $block): bool { @@ -58,7 +58,7 @@ private function isAdminChoice(BlockModel $block): bool } /** - * @unreleased + * @since 1.0.0 */ private function getValidOptions(BlockModel $block): array { @@ -73,7 +73,7 @@ private function getValidOptions(BlockModel $block): array } /** - * @unreleased + * @since 1.0.0 */ private function getDefaultValue(BlockModel $block): array { diff --git a/src/FormExtension/FormBuilder/resources/js/Blocks/ColorsSampleBlock/Edit.tsx b/src/FormExtension/FormBuilder/resources/js/Blocks/ColorsSampleBlock/Edit.tsx index cb0886b..2488fe4 100644 --- a/src/FormExtension/FormBuilder/resources/js/Blocks/ColorsSampleBlock/Edit.tsx +++ b/src/FormExtension/FormBuilder/resources/js/Blocks/ColorsSampleBlock/Edit.tsx @@ -41,7 +41,7 @@ const mergeOptionsWithColors = (options: OptionProps[], colors: ColorOptionProps }; /** - * @unreleased + * @since 1.0.0 */ export default function Edit({attributes, setAttributes}: BlockEditProps) { const {colors, colorSettingsUrl} = getGiveAddonFormBuilderWindowData(); diff --git a/src/FormExtension/FormBuilder/resources/js/types/ColorOptionProps.ts b/src/FormExtension/FormBuilder/resources/js/types/ColorOptionProps.ts index 4ea789b..b9525e8 100644 --- a/src/FormExtension/FormBuilder/resources/js/types/ColorOptionProps.ts +++ b/src/FormExtension/FormBuilder/resources/js/types/ColorOptionProps.ts @@ -1,7 +1,7 @@ import {OptionProps} from '@givewp/form-builder-library/build/OptionsPanel/types'; /** - * @unreleased + * @since 1.0.0 */ export type ColorOptionProps = OptionProps & { isDefault: boolean; diff --git a/src/FormExtension/FormBuilder/resources/js/window.ts b/src/FormExtension/FormBuilder/resources/js/window.ts index 976ca03..af142e9 100644 --- a/src/FormExtension/FormBuilder/resources/js/window.ts +++ b/src/FormExtension/FormBuilder/resources/js/window.ts @@ -17,6 +17,5 @@ export function getGiveCoreFormBuilderWindowData() { * @since 1.0.0 */ export function getGiveAddonFormBuilderWindowData() { - console.log(window.GiveAddonFormBuilder); return window.GiveAddonFormBuilder; } diff --git a/src/FormExtension/FormExtensionServiceProvider.php b/src/FormExtension/FormExtensionServiceProvider.php index 38db084..0319f3e 100644 --- a/src/FormExtension/FormExtensionServiceProvider.php +++ b/src/FormExtension/FormExtensionServiceProvider.php @@ -7,17 +7,13 @@ use GiveAddon\FormExtension\DonationForm\Actions\ConvertDonationFormBlocksToFieldsApi; use GiveAddon\FormExtension\FormBuilder\Actions\LoadFormBuilderAssets; - /** - * Example of a service provider responsible for Form Extension initialization. - * - * @package GiveAddon\FormExtension - * @copyright Copyright (c) 2020, GiveWP + * @sice 1.0.0 */ class FormExtensionServiceProvider implements ServiceProvider { /** - * @inheritDoc + * @sice 1.0.0 */ public function register() { @@ -25,28 +21,9 @@ public function register() } /** - * @inheritDoc + * @sice 1.0.0 */ public function boot() - { - // Load add-on translations. - //Hooks::addAction('init', Language::class, 'load'); - // Load add-on links. - //Hooks::addFilter('plugin_action_links_' . ADDON_CONSTANT_BASENAME, Links::class); - - $this->loadBackend(); - /*is_admin() - ? $this->loadBackend() - : $this->loadFrontend();*/ - } - - /** - * Load add-on backend assets. - * - * @return void - * @since 1.0.0 - */ - private function loadBackend() { Hooks::addAction('givewp_form_builder_enqueue_scripts', LoadFormBuilderAssets::class, '__invoke', 10, 2); Hooks::addFilter( @@ -57,16 +34,4 @@ private function loadBackend() 4 ); } - - /** - * Load add-on front-end assets. - * - * @return void - * @since 1.0.0 - */ - private function loadFrontend() - { - // Load front-end assets. - //Hooks::addAction('wp_enqueue_scripts', Assets::class, 'loadFrontendAssets'); - } }