PluginProbe
Extendify / 3.0.4
Extendify v3.0.4
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 / Agent / workflows / theme / change-animation.js

change-animation.js in Extendify 3.0.4, at src/Agent/workflows/theme/change-animation.js

34 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { SelectAnimation } from '@agent/workflows/theme/components/SelectAnimation';
2 import { __ } from '@wordpress/i18n';
3 import { swatch } from '@wordpress/icons';
4
5 const { abilities } = window.extAgentData;
6
7 export default {
8 available: () => abilities?.canEditSettings && window.ExtendableAnimations,
9 id: 'change-animation',
10 whenFinished: { component: SelectAnimation },
11 example: {
12 // translators: "site animation" refers to the animation style for the current site.
13 text: __('Change website animation', 'extendify-local'),
14 agentResponse: {
15 // translators: This message show above a UI where the user can select a different animation for their site.
16 reply: __(
17 'Below you can select a different animation for your site.',
18 'extendify-local',
19 ),
20 whenFinishedTool: {
21 id: 'update-animation',
22 labels: {
23 confirm: __('Updated the website animation', 'extendify-local'),
24 cancel: __(
25 'Canceled the website animation update',
26 'extendify-local',
27 ),
28 },
29 },
30 },
31 },
32 icon: swatch,
33 };
34