@automattic/jetpack-ai-client 0.34.5 → 0.34.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/build/{ask-question → src/ask-question}/index.d.ts +1 -1
- package/build/{ask-question → src/ask-question}/index.js +1 -1
- package/build/{ask-question → src/ask-question}/sync.js +1 -1
- package/build/{audio-transcription → src/audio-transcription}/index.js +1 -1
- package/build/{components → src/components}/ai-control/ai-control.d.ts +1 -1
- package/build/{components → src/components}/ai-control/ai-control.js +4 -2
- package/build/{components → src/components}/ai-control/block-ai-control.d.ts +1 -1
- package/build/{components → src/components}/ai-control/block-ai-control.js +7 -4
- package/build/{components → src/components}/ai-control/extension-ai-control.d.ts +1 -1
- package/build/{components → src/components}/ai-control/extension-ai-control.js +6 -4
- package/build/src/components/ai-control/index.js +3 -0
- package/build/{components → src/components}/ai-feedback/index.d.ts +1 -1
- package/build/{components → src/components}/ai-feedback/index.js +4 -2
- package/build/src/components/ai-icon/index.js +17 -0
- package/build/{components → src/components}/ai-image/components/ai-image-modal.d.ts +1 -1
- package/build/{components → src/components}/ai-image/components/ai-image-modal.js +14 -9
- package/build/{components → src/components}/ai-image/components/carrousel.d.ts +1 -1
- package/build/{components → src/components}/ai-image/components/carrousel.js +15 -7
- package/build/{components → src/components}/ai-image/components/usage-counter.js +3 -1
- package/build/{components → src/components}/ai-image/featured-image.d.ts +1 -1
- package/build/{components → src/components}/ai-image/featured-image.js +13 -10
- package/build/{components → src/components}/ai-image/general-purpose-image.d.ts +1 -1
- package/build/{components → src/components}/ai-image/general-purpose-image.js +7 -7
- package/build/{components → src/components}/ai-image/hooks/use-ai-image.d.ts +2 -2
- package/build/{components → src/components}/ai-image/hooks/use-ai-image.js +5 -5
- package/build/{components → src/components}/ai-image/index.js +3 -3
- package/build/{components → src/components}/ai-modal-footer/index.d.ts +1 -1
- package/build/src/components/ai-modal-footer/index.js +31 -0
- package/build/{components → src/components}/audio-duration-display/index.d.ts +1 -1
- package/build/{components → src/components}/audio-duration-display/index.js +1 -1
- package/build/src/components/index.js +10 -0
- package/build/{components → src/components}/message/index.d.ts +4 -4
- package/build/{components → src/components}/message/index.js +12 -7
- package/build/{components → src/components}/modal/index.d.ts +1 -1
- package/build/{components → src/components}/modal/index.js +8 -3
- package/build/{components → src/components}/quota-exceeded-message/index.js +3 -3
- package/build/{data-flow → src/data-flow}/context.d.ts +1 -1
- package/build/src/data-flow/index.js +3 -0
- package/build/{data-flow → src/data-flow}/use-ai-context.d.ts +1 -1
- package/build/{data-flow → src/data-flow}/use-ai-context.js +2 -2
- package/build/{data-flow → src/data-flow}/with-ai-assistant-data.js +2 -2
- package/build/{hooks → src/hooks}/use-ai-checkout/index.js +1 -1
- package/build/{hooks → src/hooks}/use-ai-feature/index.d.ts +8 -8
- package/build/{hooks → src/hooks}/use-ai-suggestions/index.d.ts +1 -1
- package/build/{hooks → src/hooks}/use-ai-suggestions/index.js +2 -2
- package/build/{hooks → src/hooks}/use-audio-transcription/index.d.ts +1 -1
- package/build/{hooks → src/hooks}/use-audio-transcription/index.js +1 -1
- package/build/{hooks → src/hooks}/use-image-generator/index.d.ts +1 -1
- package/build/{hooks → src/hooks}/use-image-generator/index.js +3 -3
- package/build/{hooks → src/hooks}/use-media-recording/index.d.ts +1 -1
- package/build/{hooks → src/hooks}/use-post-content.js +1 -1
- package/build/{hooks → src/hooks}/use-transcription-post-processing/index.d.ts +1 -1
- package/build/{hooks → src/hooks}/use-transcription-post-processing/index.js +1 -1
- package/build/src/icons/ai-assistant.js +9 -0
- package/build/src/icons/error-exclamation.js +9 -0
- package/build/src/icons/index.js +7 -0
- package/build/src/icons/mic.js +9 -0
- package/build/src/icons/origami-plane.js +9 -0
- package/build/src/icons/player-pause.js +9 -0
- package/build/src/icons/player-play.js +9 -0
- package/build/src/icons/player-stop.js +9 -0
- package/build/src/icons/speak-tone.js +9 -0
- package/build/src/index.js +49 -0
- package/build/{jwt → src/jwt}/index.d.ts +1 -1
- package/build/{jwt → src/jwt}/index.js +1 -1
- package/build/{libs → src/libs}/get-all-blocks.d.ts +1 -1
- package/build/src/libs/index.js +6 -0
- package/build/{libs → src/libs}/map-action-to-human-text.js +1 -1
- package/build/{libs → src/libs}/markdown/html-to-markdown.d.ts +1 -1
- package/build/{libs → src/libs}/markdown/index.js +2 -2
- package/build/{libs → src/libs}/markdown/markdown-to-html.d.ts +1 -1
- package/build/src/logo-generator/assets/icons/ai.js +10 -0
- package/build/src/logo-generator/assets/icons/media.js +10 -0
- package/build/{logo-generator → src/logo-generator}/components/fair-usage-notice.js +1 -1
- package/build/src/logo-generator/components/feature-fetch-failure-screen.js +14 -0
- package/build/{logo-generator → src/logo-generator}/components/first-load-screen.js +4 -2
- package/build/{logo-generator → src/logo-generator}/components/generator-modal.js +20 -16
- package/build/{logo-generator → src/logo-generator}/components/history-carousel.js +2 -2
- package/build/{logo-generator → src/logo-generator}/components/logo-presenter.js +42 -19
- package/build/{logo-generator → src/logo-generator}/components/prompt.js +24 -13
- package/build/{logo-generator → src/logo-generator}/components/upgrade-nudge.js +8 -4
- package/build/{logo-generator → src/logo-generator}/components/upgrade-screen.js +11 -3
- package/build/src/logo-generator/components/visit-site-banner.js +22 -0
- package/build/{logo-generator → src/logo-generator}/hooks/use-checkout.js +1 -1
- package/build/{logo-generator → src/logo-generator}/hooks/use-fair-usage-notice-message.js +1 -1
- package/build/{logo-generator → src/logo-generator}/hooks/use-logo-generator.d.ts +5 -5
- package/build/{logo-generator → src/logo-generator}/hooks/use-logo-generator.js +9 -9
- package/build/{logo-generator → src/logo-generator}/hooks/use-request-errors.js +1 -1
- package/build/src/logo-generator/index.js +2 -0
- package/build/{logo-generator → src/logo-generator}/lib/logo-storage.d.ts +1 -1
- package/build/{logo-generator → src/logo-generator}/lib/logo-storage.js +1 -1
- package/build/{logo-generator → src/logo-generator}/lib/media-exists.js +1 -1
- package/build/{logo-generator → src/logo-generator}/lib/set-site-logo.js +1 -1
- package/build/{logo-generator → src/logo-generator}/lib/wpcom-limited-request.js +1 -1
- package/build/{logo-generator → src/logo-generator}/store/actions.js +3 -3
- package/build/{logo-generator → src/logo-generator}/store/index.js +3 -3
- package/build/{logo-generator → src/logo-generator}/store/initial-state.js +1 -1
- package/build/{logo-generator → src/logo-generator}/store/reducer.d.ts +94 -94
- package/build/{logo-generator → src/logo-generator}/store/reducer.js +3 -3
- package/build/{logo-generator → src/logo-generator}/store/selectors.d.ts +3 -3
- package/build/{logo-generator → src/logo-generator}/store/selectors.js +1 -1
- package/build/{suggestions-event-source → src/suggestions-event-source}/index.d.ts +1 -1
- package/build/{suggestions-event-source → src/suggestions-event-source}/index.js +4 -4
- package/build/{types.js → src/types.js} +1 -1
- package/package.json +25 -25
- package/build/components/ai-control/index.js +0 -3
- package/build/components/ai-icon/index.js +0 -13
- package/build/components/ai-modal-footer/index.js +0 -27
- package/build/components/index.js +0 -10
- package/build/data-flow/index.js +0 -3
- package/build/icons/ai-assistant.js +0 -7
- package/build/icons/error-exclamation.js +0 -7
- package/build/icons/index.js +0 -7
- package/build/icons/mic.js +0 -7
- package/build/icons/origami-plane.js +0 -7
- package/build/icons/player-pause.js +0 -7
- package/build/icons/player-play.js +0 -7
- package/build/icons/player-stop.js +0 -7
- package/build/icons/speak-tone.js +0 -7
- package/build/index.js +0 -49
- package/build/libs/index.js +0 -6
- package/build/logo-generator/assets/icons/ai.js +0 -8
- package/build/logo-generator/assets/icons/media.js +0 -8
- package/build/logo-generator/components/feature-fetch-failure-screen.js +0 -11
- package/build/logo-generator/components/visit-site-banner.js +0 -16
- package/build/logo-generator/index.js +0 -2
- package/build/{api-fetch → src/api-fetch}/index.d.ts +0 -0
- package/build/{api-fetch → src/api-fetch}/index.js +0 -0
- package/build/{ask-question → src/ask-question}/sync.d.ts +0 -0
- package/build/{audio-transcription → src/audio-transcription}/index.d.ts +0 -0
- package/build/{components → src/components}/ai-control/index.d.ts +0 -0
- package/build/{components → src/components}/ai-icon/index.d.ts +0 -0
- package/build/{components → src/components}/ai-image/components/usage-counter.d.ts +0 -0
- package/build/{components → src/components}/ai-image/hooks/use-site-type.d.ts +0 -0
- package/build/{components → src/components}/ai-image/hooks/use-site-type.js +0 -0
- package/build/{components → src/components}/ai-image/index.d.ts +0 -0
- package/build/{components → src/components}/ai-image/types.d.ts +0 -0
- package/build/{components → src/components}/ai-image/types.js +0 -0
- package/build/{components → src/components}/ai-status-indicator/index.d.ts +0 -0
- package/build/{components → src/components}/ai-status-indicator/index.js +0 -0
- package/build/{components → src/components}/audio-duration-display/lib/media.d.ts +0 -0
- package/build/{components → src/components}/audio-duration-display/lib/media.js +0 -0
- package/build/{components → src/components}/index.d.ts +0 -0
- package/build/{components → src/components}/quota-exceeded-message/index.d.ts +0 -0
- package/build/{components → src/components}/quota-exceeded-message/light-nudge.d.ts +2 -2
- /package/build/{components → src/components}/quota-exceeded-message/light-nudge.js +0 -0
- /package/build/{constants.d.ts → src/constants.d.ts} +0 -0
- /package/build/{constants.js → src/constants.js} +0 -0
- /package/build/{data-flow → src/data-flow}/context.js +0 -0
- /package/build/{data-flow → src/data-flow}/index.d.ts +0 -0
- /package/build/{data-flow → src/data-flow}/with-ai-assistant-data.d.ts +0 -0
- /package/build/{hooks → src/hooks}/use-ai-checkout/index.d.ts +0 -0
- /package/build/{hooks → src/hooks}/use-ai-feature/index.js +0 -0
- /package/build/{hooks → src/hooks}/use-audio-validation/index.d.ts +0 -0
- /package/build/{hooks → src/hooks}/use-audio-validation/index.js +0 -0
- /package/build/{hooks → src/hooks}/use-image-generator/constants.d.ts +0 -0
- /package/build/{hooks → src/hooks}/use-image-generator/constants.js +0 -0
- /package/build/{hooks → src/hooks}/use-media-recording/index.js +0 -0
- /package/build/{hooks → src/hooks}/use-post-content.d.ts +0 -0
- /package/build/{hooks → src/hooks}/use-save-to-media-library/index.d.ts +0 -0
- /package/build/{hooks → src/hooks}/use-save-to-media-library/index.js +0 -0
- /package/build/{hooks → src/hooks}/use-save-to-media-library.d.ts +0 -0
- /package/build/{hooks → src/hooks}/use-save-to-media-library.js +0 -0
- /package/build/{icons → src/icons}/ai-assistant.d.ts +0 -0
- /package/build/{icons → src/icons}/error-exclamation.d.ts +0 -0
- /package/build/{icons → src/icons}/index.d.ts +0 -0
- /package/build/{icons → src/icons}/mic.d.ts +0 -0
- /package/build/{icons → src/icons}/origami-plane.d.ts +0 -0
- /package/build/{icons → src/icons}/player-pause.d.ts +0 -0
- /package/build/{icons → src/icons}/player-play.d.ts +0 -0
- /package/build/{icons → src/icons}/player-stop.d.ts +0 -0
- /package/build/{icons → src/icons}/speak-tone.d.ts +0 -0
- /package/build/{index.d.ts → src/index.d.ts} +0 -0
- /package/build/{libs → src/libs}/get-all-blocks.js +0 -0
- /package/build/{libs → src/libs}/get-base64-image.d.ts +0 -0
- /package/build/{libs → src/libs}/get-base64-image.js +0 -0
- /package/build/{libs → src/libs}/index.d.ts +0 -0
- /package/build/{libs → src/libs}/map-action-to-human-text.d.ts +0 -0
- /package/build/{libs → src/libs}/markdown/html-to-markdown.js +0 -0
- /package/build/{libs → src/libs}/markdown/index.d.ts +0 -0
- /package/build/{libs → src/libs}/markdown/markdown-to-html.js +0 -0
- /package/build/{libs → src/libs}/open-block-sidebar.d.ts +0 -0
- /package/build/{libs → src/libs}/open-block-sidebar.js +0 -0
- /package/build/{libs → src/libs}/show-ai-assistant-section.d.ts +0 -0
- /package/build/{libs → src/libs}/show-ai-assistant-section.js +0 -0
- /package/build/{logo-generator → src/logo-generator}/assets/icons/ai.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/assets/icons/check.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/assets/icons/check.js +0 -0
- /package/build/{logo-generator → src/logo-generator}/assets/icons/logo.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/assets/icons/logo.js +0 -0
- /package/build/{logo-generator → src/logo-generator}/assets/icons/media.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/components/fair-usage-notice.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/components/feature-fetch-failure-screen.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/components/first-load-screen.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/components/generator-modal.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/components/history-carousel.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/components/image-loader.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/components/image-loader.js +0 -0
- /package/build/{logo-generator → src/logo-generator}/components/logo-presenter.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/components/prompt.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/components/upgrade-nudge.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/components/upgrade-screen.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/components/visit-site-banner.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/constants.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/constants.js +0 -0
- /package/build/{logo-generator → src/logo-generator}/hooks/use-checkout.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/hooks/use-fair-usage-notice-message.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/hooks/use-request-errors.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/index.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/lib/media-exists.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/lib/set-site-logo.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/lib/wpcom-limited-request.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/store/actions.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/store/constants.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/store/constants.js +0 -0
- /package/build/{logo-generator → src/logo-generator}/store/index.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/store/initial-state.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/store/types.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/store/types.js +0 -0
- /package/build/{logo-generator → src/logo-generator}/types.d.ts +0 -0
- /package/build/{logo-generator → src/logo-generator}/types.js +0 -0
- /package/build/{types.d.ts → src/types.d.ts} +0 -0
package/build/icons/mic.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* External dependencies
|
|
4
|
-
*/
|
|
5
|
-
import { SVG, Rect, Path } from '@wordpress/components';
|
|
6
|
-
const mic = (_jsxs(SVG, { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/SVG", children: [_jsx(Path, { d: "M12 4.75C11.0479 4.75 10.1052 4.93753 9.22554 5.30187C8.34593 5.66622 7.5467 6.20025 6.87348 6.87348C6.20025 7.5467 5.66622 8.34593 5.30187 9.22554C4.93753 10.1052 4.75 11.0479 4.75 12C4.75 12.9521 4.93753 13.8948 5.30187 14.7745C5.66622 15.6541 6.20025 16.4533 6.87348 17.1265C7.5467 17.7997 8.34593 18.3338 9.22554 18.6981C10.1052 19.0625 11.0479 19.25 12 19.25C13.9228 19.25 15.7669 18.4862 17.1265 17.1265C18.4862 15.7669 19.25 13.9228 19.25 12C19.25 10.0772 18.4862 8.23312 17.1265 6.87348C15.7669 5.51384 13.9228 4.75 12 4.75ZM3.25 12C3.25 9.67936 4.17187 7.45376 5.81282 5.81282C7.45376 4.17187 9.67936 3.25 12 3.25C14.3206 3.25 16.5462 4.17187 18.1872 5.81282C19.8281 7.45376 20.75 9.67936 20.75 12C20.75 14.3206 19.8281 16.5462 18.1872 18.1872C16.5462 19.8281 14.3206 20.75 12 20.75C9.67936 20.75 7.45376 19.8281 5.81282 18.1872C4.17187 16.5462 3.25 14.3206 3.25 12Z", fill: "#008710" }), _jsx(Rect, { x: "10.5", y: "8.25", width: "3", height: "4.875", rx: "1.5", fill: "#008710" }), _jsx(Path, { d: "M15 11.25C15 11.644 14.9224 12.0341 14.7716 12.3981C14.6209 12.762 14.3999 13.0927 14.1213 13.3713C13.8427 13.6499 13.512 13.8709 13.1481 14.0216C12.7841 14.1724 12.394 14.25 12 14.25C11.606 14.25 11.2159 14.1724 10.8519 14.0216C10.488 13.8709 10.1573 13.6499 9.87868 13.3713C9.6001 13.0927 9.37913 12.762 9.22836 12.3981C9.0776 12.0341 9 11.644 9 11.25", stroke: "#008710", strokeWidth: "1.125", strokeLinecap: "round" }), _jsx(Path, { d: "M11.4375 15.75C11.4375 16.0607 11.6893 16.3125 12 16.3125C12.3107 16.3125 12.5625 16.0607 12.5625 15.75L11.4375 15.75ZM11.4375 14.25L11.4375 15.75L12.5625 15.75L12.5625 14.25L11.4375 14.25Z", fill: "#008710" })] }));
|
|
7
|
-
export default mic;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* External dependencies
|
|
4
|
-
*/
|
|
5
|
-
import { SVG, Path } from '@wordpress/components';
|
|
6
|
-
const origamiPlane = (_jsxs(SVG, { width: "24", height: "24", viewBox: "0 0 24 24", fill: "currentColor", xmlns: "http://www.w3.org/2000/SVG", children: [_jsx(Path, { d: "M13.5142 18.5098C14.1227 19.6569 14.5367 20.5899 14.5367 20.5899L18.7588 3.84402L4.05433 12.901C4.05433 12.901 5.10588 12.9894 6.41062 13.2114C7.97628 13.4777 9.90652 13.9362 10.8219 14.6646C11.7434 15.3979 12.7731 17.1127 13.5142 18.5098ZM14.0468 16.3975C13.8238 16.0255 13.5879 15.6537 13.3445 15.3013C12.8931 14.6478 12.3509 13.9643 11.7559 13.4909C11.1195 12.9844 10.2767 12.6409 9.51316 12.3968C9.11301 12.2689 8.69633 12.1567 8.28231 12.0585L16.4016 7.05758L14.0468 16.3975Z" }), _jsx(Path, { d: "M18 5L11 14", stroke: "currentColor" })] }));
|
|
7
|
-
export default origamiPlane;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* External dependencies
|
|
4
|
-
*/
|
|
5
|
-
import { SVG, Path, Rect } from '@wordpress/components';
|
|
6
|
-
const playerPause = (_jsxs(SVG, { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/SVG", children: [_jsx(Path, { d: "M12 4.75C11.0479 4.75 10.1052 4.93753 9.22554 5.30187C8.34593 5.66622 7.5467 6.20025 6.87348 6.87348C6.20025 7.5467 5.66622 8.34593 5.30187 9.22554C4.93753 10.1052 4.75 11.0479 4.75 12C4.75 12.9521 4.93753 13.8948 5.30187 14.7745C5.66622 15.6541 6.20025 16.4533 6.87348 17.1265C7.5467 17.7997 8.34593 18.3338 9.22554 18.6981C10.1052 19.0625 11.0479 19.25 12 19.25C13.9228 19.25 15.7669 18.4862 17.1265 17.1265C18.4862 15.7669 19.25 13.9228 19.25 12C19.25 10.0772 18.4862 8.23312 17.1265 6.87348C15.7669 5.51384 13.9228 4.75 12 4.75ZM3.25 12C3.25 9.67936 4.17187 7.45376 5.81282 5.81282C7.45376 4.17187 9.67936 3.25 12 3.25C14.3206 3.25 16.5462 4.17187 18.1872 5.81282C19.8281 7.45376 20.75 9.67936 20.75 12C20.75 14.3206 19.8281 16.5462 18.1872 18.1872C16.5462 19.8281 14.3206 20.75 12 20.75C9.67936 20.75 7.45376 19.8281 5.81282 18.1872C4.17187 16.5462 3.25 14.3206 3.25 12Z", fill: "#008710" }), _jsx(Rect, { x: "12.75", y: "9", width: "2.25", height: "6", fill: "#008710" }), _jsx(Rect, { x: "9", y: "9", width: "2.25", height: "6", fill: "#008710" })] }));
|
|
7
|
-
export default playerPause;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* External dependencies
|
|
4
|
-
*/
|
|
5
|
-
import { SVG, Path } from '@wordpress/components';
|
|
6
|
-
const playerPlay = (_jsxs(SVG, { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx(Path, { d: "M16 6.33325C14.7306 6.33325 13.4736 6.58329 12.3007 7.06908C11.1279 7.55488 10.0623 8.26692 9.16464 9.16455C8.26701 10.0622 7.55497 11.1278 7.06917 12.3006C6.58338 13.4735 6.33334 14.7305 6.33334 15.9999C6.33334 17.2694 6.58338 18.5264 7.06917 19.6992C7.55497 20.872 8.26701 21.9377 9.16464 22.8353C10.0623 23.7329 11.1279 24.445 12.3007 24.9308C13.4736 25.4165 14.7306 25.6666 16 25.6666C18.5638 25.6666 21.0225 24.6481 22.8354 22.8353C24.6482 21.0224 25.6667 18.5637 25.6667 15.9999C25.6667 13.4362 24.6482 10.9774 22.8354 9.16455C21.0225 7.3517 18.5638 6.33325 16 6.33325ZM4.33334 15.9999C4.33334 12.9057 5.56251 9.93826 7.75043 7.75034C9.93836 5.56242 12.9058 4.33325 16 4.33325C19.0942 4.33325 22.0617 5.56242 24.2496 7.75034C26.4375 9.93826 27.6667 12.9057 27.6667 15.9999C27.6667 19.0941 26.4375 22.0616 24.2496 24.2495C22.0617 26.4374 19.0942 27.6666 16 27.6666C12.9058 27.6666 9.93836 26.4374 7.75043 24.2495C5.56251 22.0616 4.33334 19.0941 4.33334 15.9999Z", fill: "currentColor" }), _jsx(Path, { d: "M20.1838 15.098C20.8674 15.5051 20.8675 16.4949 20.1839 16.902L14.8877 20.0553C14.188 20.4719 13.301 19.9677 13.301 19.1533L13.301 12.8467C13.301 12.0323 14.188 11.5281 14.8877 11.9447L20.1838 15.098Z", fill: "currentColor" })] }));
|
|
7
|
-
export default playerPlay;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* External dependencies
|
|
4
|
-
*/
|
|
5
|
-
import { SVG, Rect, Path } from '@wordpress/components';
|
|
6
|
-
const playerStop = (_jsxs(SVG, { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/SVG", children: [_jsx(Path, { d: "M16.0002 6.33301C14.7307 6.33301 13.4737 6.58304 12.3009 7.06884C11.1281 7.55463 10.0624 8.26668 9.1648 9.16431C8.26716 10.0619 7.55512 11.1276 7.06933 12.3004C6.58353 13.4732 6.3335 14.7302 6.3335 15.9997C6.3335 17.2691 6.58353 18.5261 7.06933 19.6989C7.55512 20.8718 8.26716 21.9374 9.1648 22.835C10.0624 23.7327 11.1281 24.4447 12.3009 24.9305C13.4737 25.4163 14.7307 25.6663 16.0002 25.6663C18.5639 25.6663 21.0227 24.6479 22.8355 22.835C24.6484 21.0222 25.6668 18.5634 25.6668 15.9997C25.6668 13.4359 24.6484 10.9772 22.8355 9.16431C21.0227 7.35146 18.5639 6.33301 16.0002 6.33301ZM4.3335 15.9997C4.3335 12.9055 5.56266 9.93802 7.75058 7.7501C9.93851 5.56217 12.906 4.33301 16.0002 4.33301C19.0944 4.33301 22.0618 5.56217 24.2497 7.7501C26.4377 9.93802 27.6668 12.9055 27.6668 15.9997C27.6668 19.0939 26.4377 22.0613 24.2497 24.2493C22.0618 26.4372 19.0944 27.6663 16.0002 27.6663C12.906 27.6663 9.93851 26.4372 7.75058 24.2493C5.56266 22.0613 4.3335 19.0939 4.3335 15.9997Z", fill: "currentColor" }), _jsx(Rect, { x: "12", y: "12", width: "8", height: "8", fill: "currentColor" })] }));
|
|
7
|
-
export default playerStop;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* WordPress dependencies
|
|
4
|
-
*/
|
|
5
|
-
import { SVG, Path } from '@wordpress/components';
|
|
6
|
-
const speakTone = (_jsxs(SVG, { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M12.5 10C12.5 11.3807 11.3807 12.5 10 12.5C8.61929 12.5 7.5 11.3807 7.5 10C7.5 8.61929 8.61929 7.5 10 7.5C11.3807 7.5 12.5 8.61929 12.5 10ZM14 10C14 12.2091 12.2091 14 10 14C7.79086 14 6 12.2091 6 10C6 7.79086 7.79086 6 10 6C12.2091 6 14 7.79086 14 10ZM16.75 21V19C16.75 17.4812 15.5188 16.25 14 16.25L6 16.25C4.48122 16.25 3.25 17.4812 3.25 19V21H4.75L4.75 19C4.75 18.3096 5.30964 17.75 6 17.75L14 17.75C14.6904 17.75 15.25 18.3096 15.25 19V21H16.75Z", fill: "currentColor" }), _jsx(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M19.976 16.3599C21.2507 14.5642 22.0001 12.3695 22.0001 9.99969C22.0001 7.63128 21.2515 5.43769 19.9782 3.64258L18.754 4.50967C19.8537 6.05996 20.5001 7.95434 20.5001 9.99969C20.5001 12.0464 19.8528 13.9419 18.7519 15.4928L19.976 16.3599ZM17.3357 14.4897C18.2357 13.222 18.7648 11.6727 18.7648 9.99969C18.7648 8.32808 18.2365 6.77984 17.3379 5.51279L16.1137 6.37988C16.8387 7.4021 17.2648 8.65114 17.2648 9.99969C17.2648 11.3496 16.8378 12.5998 16.1116 13.6226L17.3357 14.4897Z", fill: "currentColor" })] }));
|
|
7
|
-
export default speakTone;
|
package/build/index.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Core library exports
|
|
3
|
-
*/
|
|
4
|
-
export { default as requestJwt } from "./jwt/index.js";
|
|
5
|
-
export { default as SuggestionsEventSource } from "./suggestions-event-source/index.js";
|
|
6
|
-
export { default as askQuestion } from "./ask-question/index.js";
|
|
7
|
-
export { default as askQuestionSync } from "./ask-question/sync.js";
|
|
8
|
-
export { default as transcribeAudio } from "./audio-transcription/index.js";
|
|
9
|
-
/*
|
|
10
|
-
* Hooks
|
|
11
|
-
*/
|
|
12
|
-
export { default as useAICheckout } from "./hooks/use-ai-checkout/index.js";
|
|
13
|
-
export { default as useAiFeature } from "./hooks/use-ai-feature/index.js";
|
|
14
|
-
export { default as useAiSuggestions, getErrorData } from "./hooks/use-ai-suggestions/index.js";
|
|
15
|
-
export { default as useMediaRecording } from "./hooks/use-media-recording/index.js";
|
|
16
|
-
export { default as useAudioTranscription } from "./hooks/use-audio-transcription/index.js";
|
|
17
|
-
export { default as useTranscriptionPostProcessing } from "./hooks/use-transcription-post-processing/index.js";
|
|
18
|
-
export { default as useAudioValidation } from "./hooks/use-audio-validation/index.js";
|
|
19
|
-
export { default as useImageGenerator } from "./hooks/use-image-generator/index.js";
|
|
20
|
-
export { default as usePostContent } from "./hooks/use-post-content.js";
|
|
21
|
-
export * from "./hooks/use-image-generator/constants.js";
|
|
22
|
-
/*
|
|
23
|
-
* Components: Icons
|
|
24
|
-
*/
|
|
25
|
-
export * from "./icons/index.js";
|
|
26
|
-
/*
|
|
27
|
-
* Components
|
|
28
|
-
*/
|
|
29
|
-
export * from "./components/index.js";
|
|
30
|
-
/*
|
|
31
|
-
* Contexts
|
|
32
|
-
*/
|
|
33
|
-
export * from "./data-flow/index.js";
|
|
34
|
-
/*
|
|
35
|
-
* Types
|
|
36
|
-
*/
|
|
37
|
-
export * from "./types.js";
|
|
38
|
-
/*
|
|
39
|
-
* Libs
|
|
40
|
-
*/
|
|
41
|
-
export * from "./libs/index.js";
|
|
42
|
-
/*
|
|
43
|
-
* Constants
|
|
44
|
-
*/
|
|
45
|
-
export * from "./constants.js";
|
|
46
|
-
/*
|
|
47
|
-
* Logo Generator
|
|
48
|
-
*/
|
|
49
|
-
export * from "./logo-generator/index.js";
|
package/build/libs/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { MarkdownToHTML, HTMLToMarkdown, renderHTMLFromMarkdown, renderMarkdownFromHTML, fixes, } from "./markdown/index.js";
|
|
2
|
-
export { mapActionToHumanText } from "./map-action-to-human-text.js";
|
|
3
|
-
export { openBlockSidebar } from "./open-block-sidebar.js";
|
|
4
|
-
export { showAiAssistantSection } from "./show-ai-assistant-section.js";
|
|
5
|
-
export { getAllBlocks } from "./get-all-blocks.js";
|
|
6
|
-
export { getBase64Image } from "./get-base64-image.js";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Internal dependencies
|
|
4
|
-
*/
|
|
5
|
-
import './icons.scss';
|
|
6
|
-
export default () => {
|
|
7
|
-
return (_jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: "jetpack-ai-logo-generator-icon", children: [_jsx("path", { d: "M6.99976 3.99994L7.84828 6.15141L9.99976 6.99994L7.84828 7.84847L6.99976 9.99994L6.15123 7.84847L3.99976 6.99994L6.15123 6.15141L6.99976 3.99994Z" }), _jsx("path", { d: "M16 4L17.1314 6.86863L20 8L17.1314 9.13137L16 12L14.8686 9.13137L12 8L14.8686 6.86863L16 4Z" }), _jsx("path", { d: "M11 10L12.4142 13.5858L16 15L12.4142 16.4142L11 20L9.58579 16.4142L6 15L9.58579 13.5858L11 10Z" })] }));
|
|
8
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Internal dependencies
|
|
4
|
-
*/
|
|
5
|
-
import './icons.scss';
|
|
6
|
-
export default () => {
|
|
7
|
-
return (_jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: "jetpack-ai-logo-generator-icon", children: [_jsx("path", { d: "M7 6.49011L11 8.99011L7 11.4901V6.49011Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5 2.99011C3.89543 2.99011 3 3.88554 3 4.99011V18.9901C3 20.0947 3.89543 20.9901 5 20.9901H19C20.1046 20.9901 21 20.0947 21 18.9901V4.99011C21 3.88554 20.1046 2.99011 19 2.99011H5ZM19 4.49011H5C4.72386 4.49011 4.5 4.71397 4.5 4.99011V15.6973L8.12953 13.0508C8.38061 12.8677 8.71858 12.8584 8.97934 13.0274L11.906 14.9243L15.4772 11.4524C15.7683 11.1694 16.2317 11.1694 16.5228 11.4524L19.5 14.3469V4.99011C19.5 4.71397 19.2761 4.49011 19 4.49011ZM4.5 18.9901V17.5537L8.59643 14.5667L11.5921 16.5084C11.8857 16.6987 12.2719 16.6607 12.5228 16.4167L16 13.0361L19.4772 16.4167L19.5 16.3933V18.9901C19.5 19.2663 19.2761 19.4901 19 19.4901H5C4.72386 19.4901 4.5 19.2663 4.5 18.9901Z" })] }));
|
|
8
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* External dependencies
|
|
4
|
-
*/
|
|
5
|
-
import { Button } from '@wordpress/components';
|
|
6
|
-
import { __ } from '@wordpress/i18n';
|
|
7
|
-
export const FeatureFetchFailureScreen = ({ onCancel, onRetry }) => {
|
|
8
|
-
const errorMessage = __('We are sorry. There was an error loading your Jetpack AI plan data. Please, try again.', 'jetpack-ai-client');
|
|
9
|
-
const errorMessageWithoutRetry = __('We are sorry. There was an error loading your Jetpack AI plan data. Please, reload the page and try again.', 'jetpack-ai-client');
|
|
10
|
-
return (_jsxs("div", { className: "jetpack-ai-logo-generator-modal__notice-message-wrapper", children: [_jsx("div", { className: "jetpack-ai-logo-generator-modal__notice-message", children: _jsx("span", { className: "jetpack-ai-logo-generator-modal__loading-message", children: onRetry ? errorMessage : errorMessageWithoutRetry }) }), _jsxs("div", { className: "jetpack-ai-logo-generator-modal__notice-actions", children: [_jsx(Button, { variant: "tertiary", onClick: onCancel, children: __('Cancel', 'jetpack-ai-client') }), onRetry && (_jsx(Button, { variant: "primary", onClick: onRetry, children: __('Try again', 'jetpack-ai-client') }))] })] }));
|
|
11
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* External dependencies
|
|
4
|
-
*/
|
|
5
|
-
import { Button, Icon } from '@wordpress/components';
|
|
6
|
-
import { __ } from '@wordpress/i18n';
|
|
7
|
-
import { external } from '@wordpress/icons';
|
|
8
|
-
import clsx from 'clsx';
|
|
9
|
-
/**
|
|
10
|
-
* Internal dependencies
|
|
11
|
-
*/
|
|
12
|
-
import jetpackLogo from '../assets/images/jetpack-logo.svg';
|
|
13
|
-
import './visit-site-banner.scss';
|
|
14
|
-
export const VisitSiteBanner = ({ className = null, onVisitBlankTarget }) => {
|
|
15
|
-
return (_jsxs("div", { className: clsx('jetpack-ai-logo-generator-modal-visit-site-banner', className), children: [_jsx("div", { className: "jetpack-ai-logo-generator-modal-visit-site-banner__jetpack-logo", children: _jsx("img", { src: jetpackLogo, alt: "Jetpack" }) }), _jsxs("div", { className: "jetpack-ai-logo-generator-modal-visit-site-banner__content", children: [_jsx("strong", { children: __('Do you want to know all the amazing things you can do with Jetpack AI?', 'jetpack-ai-client') }), _jsx("span", { children: __('Generate and tweak content, create forms, get feedback and much more.', 'jetpack-ai-client') }), _jsx("div", { children: _jsxs(Button, { variant: "link", href: "https://jetpack.com/redirect/?source=logo_generator_learn_more_about_jetpack_ai", target: "_blank", onClick: onVisitBlankTarget ? onVisitBlankTarget : null, children: [_jsx("span", { children: __('Learn more about Jetpack AI', 'jetpack-ai-client') }), _jsx(Icon, { icon: external, size: 20 })] }) })] })] }));
|
|
16
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './style.scss';
|
|
2
2
|
export declare const LightNudge: ({ title, description, buttonText, checkoutUrl, goToCheckoutPage, isRedirecting, showButton, target, }: {
|
|
3
|
-
title: any;
|
|
4
|
-
description: any;
|
|
5
3
|
buttonText?: any;
|
|
6
4
|
checkoutUrl?: any;
|
|
5
|
+
description: any;
|
|
7
6
|
goToCheckoutPage?: any;
|
|
8
7
|
isRedirecting?: boolean;
|
|
9
8
|
showButton?: boolean;
|
|
10
9
|
target?: string;
|
|
10
|
+
title: any;
|
|
11
11
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/{logo-generator → src/logo-generator}/components/feature-fetch-failure-screen.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/{logo-generator → src/logo-generator}/hooks/use-fair-usage-notice-message.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|