@evelan/jexity-widget 0.2.0 → 0.3.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 (90) hide show
  1. package/README.md +162 -16
  2. package/dist/index.mjs +1046 -731
  3. package/dist/index.mjs.map +1 -1
  4. package/dist/react.mjs +20 -11
  5. package/dist/react.mjs.map +1 -1
  6. package/dist/types/entries/esm.d.ts +4 -0
  7. package/dist/types/entries/esm.d.ts.map +1 -0
  8. package/dist/types/{react.d.ts → entries/react.d.ts} +1 -1
  9. package/dist/types/entries/react.d.ts.map +1 -0
  10. package/dist/types/features/chat/components/BotMessage.d.ts +6 -0
  11. package/dist/types/features/chat/components/BotMessage.d.ts.map +1 -0
  12. package/dist/types/features/chat/components/ChatInput.d.ts +3 -0
  13. package/dist/types/features/chat/components/ChatInput.d.ts.map +1 -0
  14. package/dist/types/features/chat/components/ChatScreen.d.ts +8 -0
  15. package/dist/types/features/chat/components/ChatScreen.d.ts.map +1 -0
  16. package/dist/types/features/chat/components/MessageList.d.ts +3 -0
  17. package/dist/types/features/chat/components/MessageList.d.ts.map +1 -0
  18. package/dist/types/features/chat/components/TypingIndicator.d.ts +2 -0
  19. package/dist/types/features/chat/components/TypingIndicator.d.ts.map +1 -0
  20. package/dist/types/features/chat/components/UserMessage.d.ts +6 -0
  21. package/dist/types/features/chat/components/UserMessage.d.ts.map +1 -0
  22. package/dist/types/features/chat/lib/chat.d.ts +13 -0
  23. package/dist/types/features/chat/lib/chat.d.ts.map +1 -0
  24. package/dist/types/features/home/components/HomeScreen.d.ts +14 -0
  25. package/dist/types/features/home/components/HomeScreen.d.ts.map +1 -0
  26. package/dist/types/features/selection/components/SelectionScreen.d.ts +7 -0
  27. package/dist/types/features/selection/components/SelectionScreen.d.ts.map +1 -0
  28. package/dist/types/features/ticket/components/ConfirmationScreen.d.ts +7 -0
  29. package/dist/types/features/ticket/components/ConfirmationScreen.d.ts.map +1 -0
  30. package/dist/types/features/ticket/components/FormScreen.d.ts +3 -0
  31. package/dist/types/features/ticket/components/FormScreen.d.ts.map +1 -0
  32. package/dist/types/i18n/config.d.ts +10 -0
  33. package/dist/types/i18n/config.d.ts.map +1 -0
  34. package/dist/types/i18n/index.d.ts +6 -1
  35. package/dist/types/i18n/index.d.ts.map +1 -1
  36. package/dist/types/i18n/locales/de.d.ts.map +1 -1
  37. package/dist/types/i18n/locales/en.d.ts +19 -0
  38. package/dist/types/i18n/locales/en.d.ts.map +1 -1
  39. package/dist/types/i18n/resolve-widget-locale.d.ts +10 -7
  40. package/dist/types/i18n/resolve-widget-locale.d.ts.map +1 -1
  41. package/dist/types/module/screens/ScreenRouter.d.ts +8 -0
  42. package/dist/types/module/screens/ScreenRouter.d.ts.map +1 -0
  43. package/dist/types/module/screens/screens.state.d.ts +26 -0
  44. package/dist/types/module/screens/screens.state.d.ts.map +1 -0
  45. package/dist/types/module/shell/AppShell.d.ts +8 -0
  46. package/dist/types/module/shell/AppShell.d.ts.map +1 -0
  47. package/dist/types/module/shell/mount.d.ts +13 -0
  48. package/dist/types/module/shell/mount.d.ts.map +1 -0
  49. package/dist/types/module/shell/shell.state.d.ts +2 -0
  50. package/dist/types/module/shell/shell.state.d.ts.map +1 -0
  51. package/dist/types/module/visitor/visitor.state.d.ts +21 -0
  52. package/dist/types/module/visitor/visitor.state.d.ts.map +1 -0
  53. package/dist/types/shared/icons/BotIcon.d.ts +4 -0
  54. package/dist/types/shared/icons/BotIcon.d.ts.map +1 -0
  55. package/dist/types/shared/icons/CloseIcon.d.ts +4 -0
  56. package/dist/types/shared/icons/CloseIcon.d.ts.map +1 -0
  57. package/dist/types/shared/icons/MessageIcon.d.ts +4 -0
  58. package/dist/types/shared/icons/MessageIcon.d.ts.map +1 -0
  59. package/dist/types/shared/icons/SendIcon.d.ts +4 -0
  60. package/dist/types/shared/icons/SendIcon.d.ts.map +1 -0
  61. package/dist/types/shared/icons/SparklesIcon.d.ts +5 -0
  62. package/dist/types/shared/icons/SparklesIcon.d.ts.map +1 -0
  63. package/dist/types/shared/icons/ZapIcon.d.ts +4 -0
  64. package/dist/types/shared/icons/ZapIcon.d.ts.map +1 -0
  65. package/dist/types/shared/theme/build-theme.d.ts +5 -0
  66. package/dist/types/shared/theme/build-theme.d.ts.map +1 -0
  67. package/dist/types/shared/theme/inject-styles.d.ts +10 -0
  68. package/dist/types/shared/theme/inject-styles.d.ts.map +1 -0
  69. package/dist/types/shared/ui/ErrorScreen.d.ts +9 -0
  70. package/dist/types/shared/ui/ErrorScreen.d.ts.map +1 -0
  71. package/dist/types/shared/ui/FAB.d.ts +9 -0
  72. package/dist/types/shared/ui/FAB.d.ts.map +1 -0
  73. package/dist/types/shared/ui/Footer.d.ts +3 -0
  74. package/dist/types/shared/ui/Footer.d.ts.map +1 -0
  75. package/dist/types/shared/ui/Header.d.ts +7 -0
  76. package/dist/types/shared/ui/Header.d.ts.map +1 -0
  77. package/dist/types/shared/ui/LoadingScreen.d.ts +7 -0
  78. package/dist/types/shared/ui/LoadingScreen.d.ts.map +1 -0
  79. package/dist/types/types.d.ts +11 -1
  80. package/dist/types/types.d.ts.map +1 -1
  81. package/dist/widget.js +1 -2
  82. package/dist/widget.js.map +1 -1
  83. package/package.json +6 -4
  84. package/dist/types/app.d.ts +0 -6
  85. package/dist/types/app.d.ts.map +0 -1
  86. package/dist/types/index.d.ts +0 -4
  87. package/dist/types/index.d.ts.map +0 -1
  88. package/dist/types/react.d.ts.map +0 -1
  89. package/dist/types/widget-state.d.ts +0 -7
  90. package/dist/types/widget-state.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@evelan/jexity-widget",
3
- "version": "0.2.0",
3
+ "version": "0.3.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",
7
7
  "module": "./dist/index.mjs",
8
- "types": "./dist/types/index.d.ts",
8
+ "types": "./dist/types/entries/esm.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
11
  "import": {
12
- "types": "./dist/types/index.d.ts",
12
+ "types": "./dist/types/entries/esm.d.ts",
13
13
  "default": "./dist/index.mjs"
14
14
  },
15
15
  "require": "./dist/widget.js"
16
16
  },
17
17
  "./react": {
18
18
  "import": {
19
- "types": "./dist/types/react.d.ts",
19
+ "types": "./dist/types/entries/react.d.ts",
20
20
  "default": "./dist/react.mjs"
21
21
  }
22
22
  },
@@ -78,10 +78,12 @@
78
78
  "@preact/preset-vite": "2.10.2",
79
79
  "@repo/eslint-config": "workspace:*",
80
80
  "@repo/typescript-config": "workspace:*",
81
+ "@tailwindcss/vite": "^4.2.1",
81
82
  "@types/node": "catalog:",
82
83
  "@types/react": "catalog:",
83
84
  "cross-env": "10.1.0",
84
85
  "eslint": "catalog:",
86
+ "tailwindcss": "catalog:",
85
87
  "typescript": "catalog:",
86
88
  "vite": "7.3.1",
87
89
  "vite-plugin-css-injected-by-js": "3.5.2"
@@ -1,6 +0,0 @@
1
- import type { JexityChatOptions } from './types.ts';
2
- import './index.css';
3
- export declare function App({ options }: {
4
- options: JexityChatOptions;
5
- }): import("preact").JSX.Element;
6
- //# sourceMappingURL=app.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/app.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AACnD,OAAO,aAAa,CAAA;AA0EpB,wBAAgB,GAAG,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,iBAAiB,CAAA;CAAE,gCAsH9D"}
@@ -1,4 +0,0 @@
1
- export type { JexityChatOptions, JexityChatInstance } from './types.ts';
2
- import type { JexityChatOptions, JexityChatInstance } from './types.ts';
3
- export declare function JexityChat(options: JexityChatOptions): JexityChatInstance;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAKA,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAIvE,wBAAgB,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,kBAAkB,CAwDzE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/react.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,YAAY,CAAA;AAEvE,UAAU,sBAAsB;IAC9B,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;CAChB;AAID,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,0GAuChE;AAED,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
@@ -1,7 +0,0 @@
1
- export declare const isOpen: import("@preact/signals").Signal<boolean>;
2
- /**
3
- * Active locale for the widget UI.
4
- * Initialised to 'de' (default); overridden in App's useEffect via resolveWidgetLocale.
5
- */
6
- export declare const locale: import("@preact/signals").Signal<"en" | "de">;
7
- //# sourceMappingURL=widget-state.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"widget-state.d.ts","sourceRoot":"","sources":["../../src/widget-state.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,2CAAgB,CAAA;AAEnC;;;GAGG;AACH,eAAO,MAAM,MAAM,+CAA4B,CAAA"}