diff --git a/package-lock.json b/package-lock.json index adc99623078299..206421817b83ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -62956,7 +62956,8 @@ "@wordpress/element": "file:../../packages/element", "@wordpress/i18n": "file:../../packages/i18n", "@wordpress/icons": "file:../../packages/icons", - "@wordpress/ui": "file:../../packages/ui" + "@wordpress/ui": "file:../../packages/ui", + "@wordpress/url": "file:../../packages/url" } }, "routes/content-guidelines": { diff --git a/routes/connectors-home/ai-plugin-callout.tsx b/routes/connectors-home/ai-plugin-callout.tsx index faf5775ece40a0..44390fc3813dff 100644 --- a/routes/connectors-home/ai-plugin-callout.tsx +++ b/routes/connectors-home/ai-plugin-callout.tsx @@ -12,6 +12,7 @@ import { useState, } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; +import { addQueryArgs } from '@wordpress/url'; /** * Internal dependencies @@ -200,16 +201,16 @@ export function AiPluginCallout() { const getMessage = () => { if ( isJustConnected ) { return __( - 'The AI plugin is ready to use. You can use it to generate featured images, alt text, titles, excerpts and more.' + 'The AI plugin is ready to use. You can use it to generate featured images, alt text, titles, excerpts and more. Learn more' ); } if ( isActiveNoProvider ) { return __( - 'The AI plugin is installed. Connect a provider below to generate featured images, alt text, titles, excerpts, and more.' + 'The AI plugin is installed. Connect a provider below to generate featured images, alt text, titles, excerpts, and more. Learn more' ); } return __( - 'The AI plugin can use your connectors to generate featured images, alt text, titles, excerpts and more.' + 'The AI plugin can use your connectors to generate featured images, alt text, titles, excerpts and more. Learn more' ); }; @@ -218,7 +219,7 @@ export function AiPluginCallout() { return { label: isBusy ? __( 'Installing…' ) - : __( 'Install AI Experiments' ), + : __( 'Install the AI plugin' ), disabled: isBusy, onClick: isBusy ? undefined : installPlugin, }; @@ -227,7 +228,7 @@ export function AiPluginCallout() { return { label: isBusy ? __( 'Activating…' ) - : __( 'Activate AI Experiments' ), + : __( 'Activate the AI plugin' ), disabled: isBusy, onClick: isBusy ? undefined : activatePlugin, }; @@ -239,38 +240,33 @@ export function AiPluginCallout() {
{ createInterpolateElement( getMessage(), {
strong: ,
+ // @ts-ignore children are injected by createInterpolateElement at runtime.
+ a: