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-text-editor.js

ai-text-editor.js in Extendify 3.0.6, at src/Assist/tasks/ai-text-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 { AiWritingAssistantMarkup } from '@assist/tasks/images/AiWritingAssistantMarkup';
2 import { hasPageCreatorEnabled } from '@help-center/lib/utils';
3 import { __ } from '@wordpress/i18n';
4
5 export default {
6 slug: 'ai-text-editor',
7 title: __('AI Writing Assistant', 'extendify-local'),
8 sidebarTitle: __('Edit a page with AI', 'extendify-local'),
9 description: __(
10 'Get to know your WordPress site easily. Learn simple steps to find and use its main features.',
11 'extendify-local',
12 ),
13 buttonLabels: {
14 completed: __('Revisit', 'extendify-local'),
15 notCompleted: __('Start Writing with AI', 'extendify-local'),
16 },
17 link: hasPageCreatorEnabled
18 ? 'post-new.php?post_type=page&ext-page-creator-close=1'
19 : 'post-new.php?post_type=page&ext-close=1',
20 type: 'html-text-button',
21 dependencies: { plugins: [] },
22 show: () => !!window.extSharedData?.showDraft,
23 backgroundImage: null,
24 htmlBefore: () => (
25 <AiWritingAssistantMarkup
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