@evelan/jexity-widget 0.27.0 → 0.29.0

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 (98) hide show
  1. package/README.md +1 -0
  2. package/dist/index.mjs +3858 -3127
  3. package/dist/index.mjs.map +1 -1
  4. package/dist/loader.js +5 -5
  5. package/dist/loader.js.map +1 -1
  6. package/dist/react.mjs +4008 -3270
  7. package/dist/react.mjs.map +1 -1
  8. package/dist/types/entries/react.d.ts +2 -0
  9. package/dist/types/entries/react.d.ts.map +1 -1
  10. package/dist/types/features/chat/components/ChatScreen.d.ts +3 -1
  11. package/dist/types/features/chat/components/ChatScreen.d.ts.map +1 -1
  12. package/dist/types/features/chat/components/EscalationFormScreen.d.ts +4 -2
  13. package/dist/types/features/chat/components/EscalationFormScreen.d.ts.map +1 -1
  14. package/dist/types/features/chat/components/FormMessage.d.ts.map +1 -1
  15. package/dist/types/features/chat/components/HumanHandoffAction.d.ts +10 -0
  16. package/dist/types/features/chat/components/HumanHandoffAction.d.ts.map +1 -1
  17. package/dist/types/features/chat/components/MessageAttachments.d.ts +19 -0
  18. package/dist/types/features/chat/components/MessageAttachments.d.ts.map +1 -0
  19. package/dist/types/features/chat/components/MessageList.d.ts +4 -1
  20. package/dist/types/features/chat/components/MessageList.d.ts.map +1 -1
  21. package/dist/types/features/chat/components/magicline/TrialSessionBookingForm.d.ts.map +1 -1
  22. package/dist/types/features/chat/composer/components/ChatInput.d.ts +4 -1
  23. package/dist/types/features/chat/composer/components/ChatInput.d.ts.map +1 -1
  24. package/dist/types/features/chat/composer/components/ComposerRow.d.ts +13 -6
  25. package/dist/types/features/chat/composer/components/ComposerRow.d.ts.map +1 -1
  26. package/dist/types/features/chat/composer/components/MicButton.d.ts +13 -0
  27. package/dist/types/features/chat/composer/components/MicButton.d.ts.map +1 -0
  28. package/dist/types/features/chat/composer/components/SessionErrorNotice.d.ts +15 -1
  29. package/dist/types/features/chat/composer/components/SessionErrorNotice.d.ts.map +1 -1
  30. package/dist/types/features/chat/composer/hooks/useAttachmentUpload.d.ts +21 -0
  31. package/dist/types/features/chat/composer/hooks/useAttachmentUpload.d.ts.map +1 -0
  32. package/dist/types/features/chat/composer/hooks/useComposerInput.d.ts +4 -2
  33. package/dist/types/features/chat/composer/hooks/useComposerInput.d.ts.map +1 -1
  34. package/dist/types/features/chat/composer/hooks/useMicLevel.d.ts +10 -0
  35. package/dist/types/features/chat/composer/hooks/useMicLevel.d.ts.map +1 -0
  36. package/dist/types/features/chat/composer/hooks/useSendMessage.d.ts +5 -3
  37. package/dist/types/features/chat/composer/hooks/useSendMessage.d.ts.map +1 -1
  38. package/dist/types/features/chat/composer/hooks/useVoiceDictation.d.ts +30 -0
  39. package/dist/types/features/chat/composer/hooks/useVoiceDictation.d.ts.map +1 -0
  40. package/dist/types/features/chat/composer/lib/dictation.d.ts +75 -0
  41. package/dist/types/features/chat/composer/lib/dictation.d.ts.map +1 -0
  42. package/dist/types/features/chat/composer/state/attachments.d.ts +39 -19
  43. package/dist/types/features/chat/composer/state/attachments.d.ts.map +1 -1
  44. package/dist/types/features/chat/composer/state/index.d.ts +2 -2
  45. package/dist/types/features/chat/composer/state/index.d.ts.map +1 -1
  46. package/dist/types/features/chat/hooks/useAvailability.d.ts +1 -1
  47. package/dist/types/features/chat/hooks/useAvailability.d.ts.map +1 -1
  48. package/dist/types/features/chat/hooks/useConversation.d.ts +4 -0
  49. package/dist/types/features/chat/hooks/useConversation.d.ts.map +1 -1
  50. package/dist/types/features/chat/hooks/useConvexSession.d.ts.map +1 -1
  51. package/dist/types/features/chat/hooks/useFormClick.d.ts +14 -0
  52. package/dist/types/features/chat/hooks/useFormClick.d.ts.map +1 -0
  53. package/dist/types/features/chat/hooks/useMaintenance.d.ts +16 -0
  54. package/dist/types/features/chat/hooks/useMaintenance.d.ts.map +1 -0
  55. package/dist/types/features/chat/state/maintenance-error.d.ts +15 -0
  56. package/dist/types/features/chat/state/maintenance-error.d.ts.map +1 -0
  57. package/dist/types/features/chat/state/session-error.d.ts +4 -1
  58. package/dist/types/features/chat/state/session-error.d.ts.map +1 -1
  59. package/dist/types/i18n/config.d.ts +0 -1
  60. package/dist/types/i18n/config.d.ts.map +1 -1
  61. package/dist/types/i18n/index.d.ts +1 -1
  62. package/dist/types/i18n/index.d.ts.map +1 -1
  63. package/dist/types/i18n/locales/de.d.ts +24 -5
  64. package/dist/types/i18n/locales/de.d.ts.map +1 -1
  65. package/dist/types/i18n/locales/en.d.ts +50 -9
  66. package/dist/types/i18n/locales/en.d.ts.map +1 -1
  67. package/dist/types/i18n/resolve-widget-locale.d.ts +12 -8
  68. package/dist/types/i18n/resolve-widget-locale.d.ts.map +1 -1
  69. package/dist/types/lib/widget-config.d.ts +13 -1
  70. package/dist/types/lib/widget-config.d.ts.map +1 -1
  71. package/dist/types/lib/widgetBootstrap.d.ts +7 -0
  72. package/dist/types/lib/widgetBootstrap.d.ts.map +1 -1
  73. package/dist/types/module/screens/ScreenRouter.d.ts +3 -1
  74. package/dist/types/module/screens/ScreenRouter.d.ts.map +1 -1
  75. package/dist/types/module/shell/WidgetShell.d.ts.map +1 -1
  76. package/dist/types/module/shell/hooks/useBootstrap.d.ts +2 -1
  77. package/dist/types/module/shell/hooks/useBootstrap.d.ts.map +1 -1
  78. package/dist/types/module/shell/hooks/usePreviewBridge.d.ts +6 -3
  79. package/dist/types/module/shell/hooks/usePreviewBridge.d.ts.map +1 -1
  80. package/dist/types/module/shell/mount.d.ts.map +1 -1
  81. package/dist/types/module/shell/shell.state.d.ts +12 -0
  82. package/dist/types/module/shell/shell.state.d.ts.map +1 -1
  83. package/dist/types/module/shell/widget-instance.d.ts.map +1 -1
  84. package/dist/types/shared/ui/Footer.d.ts +1 -1
  85. package/dist/types/shared/ui/Footer.d.ts.map +1 -1
  86. package/dist/types/shared/ui/Header.d.ts +3 -1
  87. package/dist/types/shared/ui/Header.d.ts.map +1 -1
  88. package/dist/types/shared/ui/HeaderActions.d.ts +4 -2
  89. package/dist/types/shared/ui/HeaderActions.d.ts.map +1 -1
  90. package/dist/types/shared/ui/HeaderLocalePicker.d.ts +8 -0
  91. package/dist/types/shared/ui/HeaderLocalePicker.d.ts.map +1 -0
  92. package/dist/types/shared/ui/HeaderTitle.d.ts +1 -1
  93. package/dist/types/shared/ui/HeaderTitle.d.ts.map +1 -1
  94. package/dist/types/types.d.ts +9 -0
  95. package/dist/types/types.d.ts.map +1 -1
  96. package/dist/widget.js +42 -42
  97. package/dist/widget.js.map +1 -1
  98. package/package.json +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evelan/jexity-widget",
3
- "version": "0.27.0",
3
+ "version": "0.29.0",
4
4
  "description": "Embeddable AI chat widget by Evelan — add customer support chat to any website with a single script tag or npm install",
5
5
  "type": "module",
6
6
  "main": "./dist/widget.js",
@@ -70,7 +70,7 @@
70
70
  "build:types-react": "tsc --project tsconfig.react.json",
71
71
  "serve": "vite preview",
72
72
  "check-types": "tsc --noEmit -p tsconfig.check.json && tsc --noEmit -p tsconfig.node.json",
73
- "test": "vitest run src/module/visitor/visitor.state.runtime.test.ts src/module/screens/screens.state.test.ts src/features/chat/composer/state/draft.test.ts src/features/chat/components/MarkdownContent.test.ts src/features/chat/components/cards.test.ts src/entries/loader.test.ts src/lib/widget-config.test.ts",
73
+ "test": "vitest run src/module/visitor/visitor.state.runtime.test.ts src/module/screens/screens.state.test.ts src/features/chat/composer/state/draft.test.ts src/features/chat/components/MarkdownContent.test.ts src/features/chat/components/cards.test.ts src/entries/loader.test.ts src/lib/widget-config.test.ts src/i18n/resolve-widget-locale.test.ts src/features/chat/state/maintenance-error.test.ts src/features/chat/composer/components/SessionErrorNotice.test.ts src/features/chat/composer/lib/dictation.test.ts src/features/chat/composer/state/attachments.test.ts",
74
74
  "lint": "eslint .",
75
75
  "prepublishOnly": "pnpm run build"
76
76
  },