@inploi/plugin-chatbot 5.1.0 → 5.1.2
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/cdn/index.js +3 -3
- package/cdn/style.css +1 -1
- package/dist/{chatbot-body-81bfa2bc.js → chatbot-body-4dab3467.js} +315 -332
- package/dist/{chatbot-body-f17e1b0d.cjs → chatbot-body-f463d29c.cjs} +1 -1
- package/dist/chatbot.api.d.ts +43 -42
- package/dist/chatbot.d.ts +28 -22
- package/dist/chatbot.idb.d.ts +2 -1
- package/dist/chatbot.state.d.ts +5 -4
- package/dist/chatbot.utils.d.ts +6 -17
- package/dist/components/chat-bubble.d.ts +5 -4
- package/dist/components/chat-input/chat-input.address.d.ts +2 -1
- package/dist/components/chat-input/chat-input.boolean.d.ts +3 -2
- package/dist/components/chat-input/chat-input.d.ts +1 -0
- package/dist/components/chat-input/chat-input.file.d.ts +3 -2
- package/dist/components/chat-input/chat-input.multiple-choice.d.ts +1 -0
- package/dist/components/chat-input/chat-input.number.d.ts +1 -0
- package/dist/components/chat-input/chat-input.phone-number.d.ts +2 -1
- package/dist/components/chat-input/chat-input.submit.d.ts +1 -0
- package/dist/components/chat-input/chat-input.text.d.ts +2 -1
- package/dist/components/chat-input/input-style.d.ts +1 -1
- package/dist/components/chatbot-body.d.ts +2 -1
- package/dist/components/chatbot.d.ts +2 -1
- package/dist/components/conversation.d.ts +1 -0
- package/dist/components/loading-indicator.d.ts +2 -1
- package/dist/components/message.link.d.ts +2 -1
- package/dist/components/send-button.d.ts +2 -1
- package/dist/components/skip-button.d.ts +2 -1
- package/dist/components/status-bar.d.ts +4 -3
- package/dist/components/typing-indicator.d.ts +2 -1
- package/dist/components/useChatService.d.ts +4 -3
- package/dist/components/useFocus.d.ts +1 -1
- package/dist/conditions.d.ts +1 -0
- package/dist/i18n.d.ts +6 -5
- package/dist/{index-4da34b43.js → index-06a5df34.js} +732 -721
- package/dist/index-97d91e46.cjs +5 -0
- package/dist/index.cdn.d.ts +1 -0
- package/dist/index.dev.d.ts +1 -0
- package/dist/interpolation.d.ts +1 -0
- package/dist/interpreter.d.ts +2 -1
- package/dist/mocks/browser.d.ts +1 -1
- package/dist/mocks/flows.mocks.d.ts +1 -0
- package/dist/mocks/handlers.d.ts +6 -6
- package/dist/mocks/mocks.utils.d.ts +3 -2
- package/dist/plugin-chatbot.cjs +1 -1
- package/dist/plugin-chatbot.js +1 -1
- package/dist/progress.d.ts +1 -0
- package/dist/rpc.d.ts +7 -7
- package/dist/style/theme.d.ts +2 -1
- package/dist/style/theme.utils.d.ts +1 -0
- package/dist/style/tokens.d.ts +17 -21
- package/dist/style.css +1 -1
- package/package.json +7 -7
- package/dist/index-610bb8d8.cjs +0 -5
package/dist/i18n.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const TranslationProvider: (props: {
|
|
2
|
-
terms?: Partial<import(
|
|
2
|
+
terms?: Partial<import('@inploi/i18n/translation').TranslationDict<{
|
|
3
3
|
readonly error_heading: "Something unexpected happened";
|
|
4
4
|
readonly undo: "Undo";
|
|
5
5
|
readonly send: "Send";
|
|
@@ -62,7 +62,7 @@ export declare const TranslationProvider: (props: {
|
|
|
62
62
|
};
|
|
63
63
|
}>> | undefined;
|
|
64
64
|
locale: string | undefined;
|
|
65
|
-
children?: import(
|
|
65
|
+
children?: import('preact').ComponentChildren;
|
|
66
66
|
}) => import("preact").JSX.Element, useTranslation: <T extends {
|
|
67
67
|
readonly error_heading: "Something unexpected happened";
|
|
68
68
|
readonly undo: "Undo";
|
|
@@ -186,7 +186,7 @@ export declare const TranslationProvider: (props: {
|
|
|
186
186
|
readonly other: "Please select at most {{count}} options";
|
|
187
187
|
};
|
|
188
188
|
}>() => {
|
|
189
|
-
t: import(
|
|
189
|
+
t: import('@inploi/i18n/translation').TFn<T>;
|
|
190
190
|
locale: string | undefined;
|
|
191
191
|
}, createTFunction: <T extends {
|
|
192
192
|
readonly error_heading: "Something unexpected happened";
|
|
@@ -311,7 +311,7 @@ export declare const TranslationProvider: (props: {
|
|
|
311
311
|
readonly other: "Please select at most {{count}} options";
|
|
312
312
|
};
|
|
313
313
|
}>(options: {
|
|
314
|
-
overrides: Partial<import(
|
|
314
|
+
overrides: Partial<import('@inploi/i18n/translation').TranslationDict<{
|
|
315
315
|
readonly error_heading: "Something unexpected happened";
|
|
316
316
|
readonly undo: "Undo";
|
|
317
317
|
readonly send: "Send";
|
|
@@ -374,6 +374,7 @@ export declare const TranslationProvider: (props: {
|
|
|
374
374
|
};
|
|
375
375
|
}>>;
|
|
376
376
|
locale: string | undefined;
|
|
377
|
-
}) => import(
|
|
377
|
+
}) => import('@inploi/i18n/translation').TFn<T>;
|
|
378
378
|
export type TFunction = ReturnType<typeof useTranslation>['t'];
|
|
379
|
+
/** Dictionary of translation terms for the chatbot plugin */
|
|
379
380
|
export type ChatbotTranslationTerms = Parameters<typeof TranslationProvider>[0]['terms'];
|