block-variation-explorer
2 months ago
block-variation-list
2 months ago
create-variation
2 months ago
save-button
2 months ago
icons.js
2 months ago
index.js
2 months ago
utils.js
2 months ago
utils.js
40 lines
| 1 | /** |
| 2 | * WordPress dependencies |
| 3 | */ |
| 4 | import { __ } from '@wordpress/i18n'; |
| 5 | import { createInterpolateElement } from '@wordpress/element'; |
| 6 | import { ExternalLink } from '@wordpress/components'; |
| 7 | |
| 8 | export const SCOPE_OPTIONS = [ |
| 9 | { |
| 10 | name: 'inserter', |
| 11 | label: __('Inserter', 'vk-blocks'), |
| 12 | help: createInterpolateElement( |
| 13 | __( |
| 14 | 'Displayed on the inserter. <Link>Learn more about inserters</Link>.', |
| 15 | 'vk-blocks' |
| 16 | ), |
| 17 | { |
| 18 | Link: ( |
| 19 | <ExternalLink |
| 20 | href={__( |
| 21 | 'https://wordpress.org/documentation/article/adding-a-new-block/#what-is-the-inserter', |
| 22 | 'vk-blocks' |
| 23 | )} |
| 24 | /> |
| 25 | ), |
| 26 | } |
| 27 | ), |
| 28 | }, |
| 29 | { |
| 30 | name: 'block', |
| 31 | label: __('Block', 'vk-blocks'), |
| 32 | help: __('It will appear in the variation picker.', 'vk-blocks'), |
| 33 | }, |
| 34 | { |
| 35 | name: 'transform', |
| 36 | label: __('Transform', 'vk-blocks'), |
| 37 | help: __('Displayed in block variation transformation.', 'vk-blocks'), |
| 38 | }, |
| 39 | ]; |
| 40 |