@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.
Files changed (53) hide show
  1. package/cdn/index.js +3 -3
  2. package/cdn/style.css +1 -1
  3. package/dist/{chatbot-body-81bfa2bc.js → chatbot-body-4dab3467.js} +315 -332
  4. package/dist/{chatbot-body-f17e1b0d.cjs → chatbot-body-f463d29c.cjs} +1 -1
  5. package/dist/chatbot.api.d.ts +43 -42
  6. package/dist/chatbot.d.ts +28 -22
  7. package/dist/chatbot.idb.d.ts +2 -1
  8. package/dist/chatbot.state.d.ts +5 -4
  9. package/dist/chatbot.utils.d.ts +6 -17
  10. package/dist/components/chat-bubble.d.ts +5 -4
  11. package/dist/components/chat-input/chat-input.address.d.ts +2 -1
  12. package/dist/components/chat-input/chat-input.boolean.d.ts +3 -2
  13. package/dist/components/chat-input/chat-input.d.ts +1 -0
  14. package/dist/components/chat-input/chat-input.file.d.ts +3 -2
  15. package/dist/components/chat-input/chat-input.multiple-choice.d.ts +1 -0
  16. package/dist/components/chat-input/chat-input.number.d.ts +1 -0
  17. package/dist/components/chat-input/chat-input.phone-number.d.ts +2 -1
  18. package/dist/components/chat-input/chat-input.submit.d.ts +1 -0
  19. package/dist/components/chat-input/chat-input.text.d.ts +2 -1
  20. package/dist/components/chat-input/input-style.d.ts +1 -1
  21. package/dist/components/chatbot-body.d.ts +2 -1
  22. package/dist/components/chatbot.d.ts +2 -1
  23. package/dist/components/conversation.d.ts +1 -0
  24. package/dist/components/loading-indicator.d.ts +2 -1
  25. package/dist/components/message.link.d.ts +2 -1
  26. package/dist/components/send-button.d.ts +2 -1
  27. package/dist/components/skip-button.d.ts +2 -1
  28. package/dist/components/status-bar.d.ts +4 -3
  29. package/dist/components/typing-indicator.d.ts +2 -1
  30. package/dist/components/useChatService.d.ts +4 -3
  31. package/dist/components/useFocus.d.ts +1 -1
  32. package/dist/conditions.d.ts +1 -0
  33. package/dist/i18n.d.ts +6 -5
  34. package/dist/{index-4da34b43.js → index-06a5df34.js} +732 -721
  35. package/dist/index-97d91e46.cjs +5 -0
  36. package/dist/index.cdn.d.ts +1 -0
  37. package/dist/index.dev.d.ts +1 -0
  38. package/dist/interpolation.d.ts +1 -0
  39. package/dist/interpreter.d.ts +2 -1
  40. package/dist/mocks/browser.d.ts +1 -1
  41. package/dist/mocks/flows.mocks.d.ts +1 -0
  42. package/dist/mocks/handlers.d.ts +6 -6
  43. package/dist/mocks/mocks.utils.d.ts +3 -2
  44. package/dist/plugin-chatbot.cjs +1 -1
  45. package/dist/plugin-chatbot.js +1 -1
  46. package/dist/progress.d.ts +1 -0
  47. package/dist/rpc.d.ts +7 -7
  48. package/dist/style/theme.d.ts +2 -1
  49. package/dist/style/theme.utils.d.ts +1 -0
  50. package/dist/style/tokens.d.ts +17 -21
  51. package/dist/style.css +1 -1
  52. package/package.json +7 -7
  53. 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("@inploi/i18n/translation").TranslationDict<{
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("preact").ComponentChildren;
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("@inploi/i18n/translation").TFn<T>;
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("@inploi/i18n/translation").TranslationDict<{
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("@inploi/i18n/translation").TFn<T>;
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'];