| 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 |
|