We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb6530a commit 802c83eCopy full SHA for 802c83e
packages/lib-helpers/test/src/index.ts
@@ -5,6 +5,7 @@ import {
5
isHeightChangeMessage,
6
isModalChangeMessage,
7
isPluginLoadedMessage,
8
+ isPluginPromptAIMessage,
9
isValueChangeMessage,
10
} from '@storyblok/field-plugin'
11
@@ -102,6 +103,13 @@ const getContainer = (sendToFieldPlugin: (data: unknown) => void) => {
102
103
callbackId: data.callbackId,
104
story,
105
})
106
+ } else if (isPluginPromptAIMessage(data)) {
107
+ sendToFieldPlugin({
108
+ action: 'prompt-ai',
109
+ uid,
110
+ callbackId: data.callbackId,
111
+ output: 'output fake for the prompt: ' + data.payload.text,
112
+ })
113
} else {
114
console.warn(
115
`Container received unknown message from plugin: ${JSON.stringify(
0 commit comments