PluginProbe
Extendify / 3.0.6
Extendify v3.0.6
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / Assist / tasks / ai-image-editor.js

ai-image-editor.js in Extendify 3.0.6, at src/Assist/tasks/ai-image-editor.js

31 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { AiImageGeneratorMarkup } from '@assist/tasks/images/AiImageGeneratorMarkup';
2 import { hasPageCreatorEnabled } from '@help-center/lib/utils';
3 import { __ } from '@wordpress/i18n';
4
5 export default {
6 slug: 'ai-image-editor',
7 title: __('AI Image Generator', 'extendify-local'),
8 sidebarTitle: __('Generate an image with AI', 'extendify-local'),
9 description: __(
10 'Generate AI images or search for images to bring a website to life.',
11 'extendify-local',
12 ),
13 buttonLabels: {
14 completed: __('Revisit', 'extendify-local'),
15 notCompleted: __('Start Generating with AI', 'extendify-local'),
16 },
17 link: hasPageCreatorEnabled
18 ? 'post-new.php?post_type=page&ext-page-creator-close=1&ext-close=1&ext-add-image-block=1'
19 : 'post-new.php?post_type=page&ext-close=1&ext-add-image-block=1',
20 type: 'html-text-button',
21 dependencies: { plugins: [] },
22 show: () => !!window.extSharedData?.showDraft,
23 backgroundImage: null,
24 htmlBefore: () => (
25 <AiImageGeneratorMarkup
26 className="border-gray-300 pointer-events-none relative hidden h-full min-h-56 w-full overflow-hidden rounded-t-lg border bg-gray-100 pt-5 lg:block"
27 aria-hidden="true"
28 />
29 ),
30 };
31