@evelan/jexity-widget 0.11.0 → 0.11.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.
Files changed (82) hide show
  1. package/dist/index.mjs +2391 -2095
  2. package/dist/index.mjs.map +1 -1
  3. package/dist/react.mjs +2343 -2047
  4. package/dist/react.mjs.map +1 -1
  5. package/dist/types/features/chat/components/ChatScreen.d.ts.map +1 -1
  6. package/dist/types/features/chat/components/EscalationFormScreen.d.ts.map +1 -1
  7. package/dist/types/features/chat/components/FormMessage.d.ts.map +1 -1
  8. package/dist/types/features/chat/components/HumanHandoffAction.d.ts.map +1 -1
  9. package/dist/types/features/chat/{components → composer/components}/ChatInput.d.ts +1 -1
  10. package/dist/types/features/chat/composer/components/ChatInput.d.ts.map +1 -0
  11. package/dist/types/features/chat/composer/components/ComposerRow.d.ts +27 -0
  12. package/dist/types/features/chat/composer/components/ComposerRow.d.ts.map +1 -0
  13. package/dist/types/features/chat/composer/components/RateLimitNotice.d.ts +9 -0
  14. package/dist/types/features/chat/composer/components/RateLimitNotice.d.ts.map +1 -0
  15. package/dist/types/features/chat/composer/components/SessionErrorNotice.d.ts +11 -0
  16. package/dist/types/features/chat/composer/components/SessionErrorNotice.d.ts.map +1 -0
  17. package/dist/types/features/chat/composer/hooks/useComposerInput.d.ts +35 -0
  18. package/dist/types/features/chat/composer/hooks/useComposerInput.d.ts.map +1 -0
  19. package/dist/types/features/chat/composer/hooks/useRateLimitCountdown.d.ts +23 -0
  20. package/dist/types/features/chat/composer/hooks/useRateLimitCountdown.d.ts.map +1 -0
  21. package/dist/types/features/chat/composer/hooks/useSendMessage.d.ts +27 -0
  22. package/dist/types/features/chat/composer/hooks/useSendMessage.d.ts.map +1 -0
  23. package/dist/types/features/chat/composer/index.d.ts +16 -0
  24. package/dist/types/features/chat/composer/index.d.ts.map +1 -0
  25. package/dist/types/features/chat/composer/state/attachments.d.ts +26 -0
  26. package/dist/types/features/chat/composer/state/attachments.d.ts.map +1 -0
  27. package/dist/types/features/chat/{composer.state.d.ts → composer/state/draft.d.ts} +3 -8
  28. package/dist/types/features/chat/composer/state/draft.d.ts.map +1 -0
  29. package/dist/types/features/chat/composer/state/index.d.ts +17 -0
  30. package/dist/types/features/chat/composer/state/index.d.ts.map +1 -0
  31. package/dist/types/features/chat/composer/state/rate-limit.d.ts +10 -0
  32. package/dist/types/features/chat/composer/state/rate-limit.d.ts.map +1 -0
  33. package/dist/types/features/chat/hooks/useConversation.d.ts +27 -0
  34. package/dist/types/features/chat/hooks/useConversation.d.ts.map +1 -0
  35. package/dist/types/features/chat/hooks/useConvexSession.d.ts +1 -0
  36. package/dist/types/features/chat/hooks/useConvexSession.d.ts.map +1 -1
  37. package/dist/types/features/chat/hooks/useEscalation.d.ts +25 -0
  38. package/dist/types/features/chat/hooks/useEscalation.d.ts.map +1 -0
  39. package/dist/types/features/chat/hooks/useHandoff.d.ts +23 -0
  40. package/dist/types/features/chat/hooks/useHandoff.d.ts.map +1 -0
  41. package/dist/types/features/chat/index.d.ts +18 -0
  42. package/dist/types/features/chat/index.d.ts.map +1 -0
  43. package/dist/types/features/chat/state/index.d.ts +13 -0
  44. package/dist/types/features/chat/state/index.d.ts.map +1 -0
  45. package/dist/types/features/chat/state/session-error.d.ts +16 -0
  46. package/dist/types/features/chat/state/session-error.d.ts.map +1 -0
  47. package/dist/types/features/chat/types.d.ts +19 -0
  48. package/dist/types/features/chat/types.d.ts.map +1 -0
  49. package/dist/types/features/home/components/HomeScreen.d.ts.map +1 -1
  50. package/dist/types/i18n/locales/de.d.ts.map +1 -1
  51. package/dist/types/i18n/locales/en.d.ts +9 -0
  52. package/dist/types/i18n/locales/en.d.ts.map +1 -1
  53. package/dist/types/lib/refreshBootstrap.d.ts +10 -0
  54. package/dist/types/lib/refreshBootstrap.d.ts.map +1 -0
  55. package/dist/types/module/screens/ScreenRouter.d.ts +1 -1
  56. package/dist/types/module/screens/ScreenRouter.d.ts.map +1 -1
  57. package/dist/types/module/shell/WidgetShell.d.ts.map +1 -1
  58. package/dist/types/module/shell/hooks/useBootstrap.d.ts +3 -1
  59. package/dist/types/module/shell/hooks/useBootstrap.d.ts.map +1 -1
  60. package/dist/types/module/shell/shell.state.d.ts +10 -0
  61. package/dist/types/module/shell/shell.state.d.ts.map +1 -1
  62. package/dist/types/module/visitor/idle-lock.d.ts +27 -0
  63. package/dist/types/module/visitor/idle-lock.d.ts.map +1 -0
  64. package/dist/types/module/visitor/visitor.state.d.ts +2 -0
  65. package/dist/types/module/visitor/visitor.state.d.ts.map +1 -1
  66. package/dist/types/shared/ui/Header.d.ts +8 -2
  67. package/dist/types/shared/ui/Header.d.ts.map +1 -1
  68. package/dist/types/shared/ui/HeaderActions.d.ts +11 -0
  69. package/dist/types/shared/ui/HeaderActions.d.ts.map +1 -0
  70. package/dist/types/shared/ui/HeaderCloseButton.d.ts +10 -0
  71. package/dist/types/shared/ui/HeaderCloseButton.d.ts.map +1 -0
  72. package/dist/types/shared/ui/HeaderLeft.d.ts +9 -0
  73. package/dist/types/shared/ui/HeaderLeft.d.ts.map +1 -0
  74. package/dist/types/shared/ui/HeaderTitle.d.ts +7 -0
  75. package/dist/types/shared/ui/HeaderTitle.d.ts.map +1 -0
  76. package/dist/widget.js +39 -39
  77. package/dist/widget.js.map +1 -1
  78. package/package.json +1 -1
  79. package/dist/types/features/chat/components/ChatInput.d.ts.map +0 -1
  80. package/dist/types/features/chat/components/RateLimitNotice.d.ts +0 -9
  81. package/dist/types/features/chat/components/RateLimitNotice.d.ts.map +0 -1
  82. package/dist/types/features/chat/composer.state.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evelan/jexity-widget",
3
- "version": "0.11.0",
3
+ "version": "0.11.7",
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",
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/components/ChatInput.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;AAEnE,UAAU,cAAc;IACtB,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAA;IACvC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,SAAS,EAAE,OAAO,CAAA;IAClB,WAAW,EAAE,OAAO,CAAA;IACpB,aAAa,EAAE,QAAQ,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,IAAI,CAAA;IACtE,aAAa,EAAE,MAAM,OAAO,CAAC;QAAE,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC,CAAA;IAC5F,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB;AAED,sEAAsE;AACtE,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,EAAE,cAAc,gCAiFrI"}
@@ -1,9 +0,0 @@
1
- /**
2
- * Inline rate-limit countdown rendered above the chat input.
3
- *
4
- * Owns its own per-second tick via `nowMs`, so updating the countdown text
5
- * does not re-render the parent ChatInput tree (input, button, etc.).
6
- * Self-clears via a setTimeout when retryAfter elapses.
7
- */
8
- export declare function RateLimitNotice(): import("preact").JSX.Element | null;
9
- //# sourceMappingURL=RateLimitNotice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RateLimitNotice.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/components/RateLimitNotice.tsx"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,wBAAgB,eAAe,wCA8B9B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"composer.state.d.ts","sourceRoot":"","sources":["../../../../src/features/chat/composer.state.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,0CAAa,CAAA;AAEtC,sEAAsE;AACtE,eAAO,MAAM,kBAAkB,iDAA8B,CAAA;AAE7D;;6EAE6E;AAC7E,eAAO,MAAM,KAAK,0CAA6B,CAAA;AAE/C;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAgB5D"}