diff --git a/apps/editing-toolkit/editing-toolkit-plugin/premium-content/blocks/buttons/edit.js b/apps/editing-toolkit/editing-toolkit-plugin/premium-content/blocks/buttons/edit.js index 61a00fc584daf..93c46e60d4d10 100644 --- a/apps/editing-toolkit/editing-toolkit-plugin/premium-content/blocks/buttons/edit.js +++ b/apps/editing-toolkit/editing-toolkit-plugin/premium-content/blocks/buttons/edit.js @@ -2,11 +2,7 @@ * WordPress dependencies */ // eslint-disable-next-line wpcalypso/import-docblock -import { - __experimentalAlignmentHookSettingsProvider as AlignmentHookSettingsProvider, - InnerBlocks, - __experimentalBlock as Block, -} from '@wordpress/block-editor'; +import { InnerBlocks, __experimentalBlock as Block } from '@wordpress/block-editor'; import { compose } from '@wordpress/compose'; import { withDispatch, withSelect } from '@wordpress/data'; import { useEffect } from '@wordpress/element'; @@ -19,11 +15,6 @@ const ALLOWED_BLOCKS = [ 'premium-content/login-button', ]; -// Inside buttons block alignment options are not supported. -const alignmentHooksSetting = { - isEmbedButton: true, -}; - function ButtonsEdit( { context, subscribeButton, setSubscribeButtonPlan } ) { const planId = context ? context[ 'premium-content/planId' ] : null; const isPreview = context ? context[ 'premium-content/isPreview' ] : false; @@ -91,14 +82,13 @@ function ButtonsEdit( { context, subscribeButton, setSubscribeButtonPlan } ) { return ( // eslint-disable-next-line wpcalypso/jsx-classname-namespace - - - + ); } diff --git a/apps/editing-toolkit/editing-toolkit-plugin/premium-content/editor.css b/apps/editing-toolkit/editing-toolkit-plugin/premium-content/editor.css index 2a8ea4ef3b643..6316deafd6a24 100644 --- a/apps/editing-toolkit/editing-toolkit-plugin/premium-content/editor.css +++ b/apps/editing-toolkit/editing-toolkit-plugin/premium-content/editor.css @@ -149,3 +149,7 @@ .wp-block-premium-content-container .jetpack-block-nudge { display: none; } + +.wp-block-premium-content-login-button { + display: inline-block; +} diff --git a/apps/editing-toolkit/editing-toolkit-plugin/premium-content/index.js b/apps/editing-toolkit/editing-toolkit-plugin/premium-content/index.js index 30850a2e1af07..bdb1dc51603ec 100644 --- a/apps/editing-toolkit/editing-toolkit-plugin/premium-content/index.js +++ b/apps/editing-toolkit/editing-toolkit-plugin/premium-content/index.js @@ -8,10 +8,7 @@ import { mergeWith } from 'lodash'; */ import apiFetch from '@wordpress/api-fetch'; import { getBlockType, registerBlockType, unregisterBlockType } from '@wordpress/blocks'; -import { - __experimentalAlignmentHookSettingsProvider, - __experimentalBlock, -} from '@wordpress/block-editor'; +import { __experimentalBlock } from '@wordpress/block-editor'; /** * Internal dependencies @@ -22,9 +19,7 @@ import * as loggedOutView from './blocks/logged-out-view'; import * as buttons from './blocks/buttons'; import * as loginButton from './blocks/login-button'; -const supportsDecoupledBlocks = !! ( - __experimentalAlignmentHookSettingsProvider && __experimentalBlock -); +const supportsDecoupledBlocks = !! __experimentalBlock; /** * Function to register an individual block. diff --git a/test/e2e/specs/wp-gutenberg-experimental-features-spec.js b/test/e2e/specs/wp-gutenberg-experimental-features-spec.js index 7392e35b2a0e6..633a557c43a9d 100644 --- a/test/e2e/specs/wp-gutenberg-experimental-features-spec.js +++ b/test/e2e/specs/wp-gutenberg-experimental-features-spec.js @@ -25,7 +25,6 @@ const gutenbergUser = const EXPERIMENTAL_FEATURES = { '@wordpress/block-editor': [ // Used in the premium content block in the Editing Toolkit plugin - '__experimentalAlignmentHookSettingsProvider', '__experimentalBlock', ], };