@evelan/jexity-widget 0.26.0 → 0.27.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.
- package/dist/index.mjs +2627 -2549
- package/dist/index.mjs.map +1 -1
- package/dist/loader.js.map +1 -1
- package/dist/react.mjs +2562 -2482
- package/dist/react.mjs.map +1 -1
- package/dist/types/entries/react.d.ts.map +1 -1
- package/dist/types/features/chat/components/ChatScreen.d.ts.map +1 -1
- package/dist/types/features/chat/components/MarkdownContent.d.ts.map +1 -1
- package/dist/types/features/chat/components/MessageList.d.ts.map +1 -1
- package/dist/types/features/chat/components/magicline/ContractCreationForm.d.ts.map +1 -1
- package/dist/types/features/chat/components/magicline/magiclineConstants.d.ts +1 -1
- package/dist/types/features/chat/components/magicline/magiclineConstants.d.ts.map +1 -1
- package/dist/types/features/chat/components/magicline/useContractCreationState.d.ts +5 -0
- package/dist/types/features/chat/components/magicline/useContractCreationState.d.ts.map +1 -1
- package/dist/types/features/chat/components/magicline/useTrialBookingState.d.ts.map +1 -1
- package/dist/types/features/chat/composer/components/ChatInput.d.ts +2 -1
- package/dist/types/features/chat/composer/components/ChatInput.d.ts.map +1 -1
- package/dist/types/features/chat/composer/hooks/useComposerInput.d.ts +3 -3
- package/dist/types/features/chat/composer/hooks/useComposerInput.d.ts.map +1 -1
- package/dist/types/features/chat/composer/hooks/useSendMessage.d.ts.map +1 -1
- package/dist/types/features/chat/hooks/useConversation.d.ts +1 -1
- package/dist/types/features/chat/hooks/useConversation.d.ts.map +1 -1
- package/dist/types/features/chat/hooks/useConvexSession.d.ts.map +1 -1
- package/dist/types/features/chat/hooks/useEnterWaiting.d.ts.map +1 -1
- package/dist/types/features/chat/hooks/useEscalation.d.ts +4 -4
- package/dist/types/features/chat/hooks/useHandoff.d.ts +4 -4
- package/dist/types/features/chat/hooks/useMagicline.d.ts +3 -3
- package/dist/types/features/chat/hooks/useUnreadTitleFlash.d.ts.map +1 -1
- package/dist/types/features/chat/hooks/useVisitorHeartbeat.d.ts.map +1 -1
- package/dist/types/features/home/components/HomeScreen.d.ts.map +1 -1
- package/dist/types/i18n/index.d.ts +1 -1
- package/dist/types/i18n/locales/de.d.ts +237 -237
- package/dist/types/i18n/locales/de.d.ts.map +1 -1
- package/dist/types/i18n/locales/en.d.ts +232 -232
- package/dist/types/i18n/locales/en.d.ts.map +1 -1
- package/dist/types/lib/convex-provider.d.ts +19 -0
- package/dist/types/lib/convex-provider.d.ts.map +1 -0
- package/dist/types/lib/logger.d.ts.map +1 -1
- package/dist/types/module/screens/ScreenRouter.d.ts +1 -0
- package/dist/types/module/screens/ScreenRouter.d.ts.map +1 -1
- package/dist/types/module/shell/hooks/useBootstrap.d.ts.map +1 -1
- package/dist/types/module/shell/hooks/usePathGuard.d.ts.map +1 -1
- package/dist/types/module/shell/mount.d.ts.map +1 -1
- package/dist/types/module/visitor/visitor.state.d.ts +1 -1
- package/dist/types/module/visitor/visitor.state.d.ts.map +1 -1
- package/dist/types/shared/hooks/useEffectEvent.d.ts +24 -0
- package/dist/types/shared/hooks/useEffectEvent.d.ts.map +1 -0
- package/dist/widget.js +39 -35
- package/dist/widget.js.map +1 -1
- package/package.json +2 -2
|
@@ -20,7 +20,7 @@ export declare const hasAnyHistory: import("@preact/signals").ReadonlySignal<boo
|
|
|
20
20
|
* - 'resume' — visitor clicked a history entry or used the lookup form
|
|
21
21
|
* - null — initial mount (first-time visitor lands on chat) OR not set
|
|
22
22
|
*/
|
|
23
|
-
export declare const chatMountIntent: import("@preact/signals").Signal<"
|
|
23
|
+
export declare const chatMountIntent: import("@preact/signals").Signal<"escalate" | "fresh" | "resume" | null>;
|
|
24
24
|
export declare function normalizeSessionTimeoutMs(value: unknown): number | null | undefined;
|
|
25
25
|
export declare function pruneSessionHistory(entries: SessionHistoryEntry[], now: number, timeoutMs: number | null | undefined): SessionHistoryEntry[];
|
|
26
26
|
export declare function pruneEnvelopeSessionHistory(entries: SessionHistoryEntry[], now: number, hasTimeoutMetadata: boolean, timeoutMs: number | null | undefined): SessionHistoryEntry[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visitor.state.d.ts","sourceRoot":"","sources":["../../../../src/module/visitor/visitor.state.ts"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,eAAO,MAAM,2BAA2B,wBAAwB,CAAA;AAEhE,eAAO,MAAM,0BAA0B,QAAsB,CAAA;AAE7D,MAAM,MAAM,mBAAmB,GAAG;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA;AAQD,eAAO,MAAM,cAAc,yDAAoC,CAAA;AAC/D,eAAO,MAAM,iBAAiB,iDAA8B,CAAA;AAC5D,eAAO,MAAM,kBAAkB,6DAA+C,CAAA;AAC9E,eAAO,MAAM,kBAAkB,2CAAgB,CAAA;AAG/C,eAAO,MAAM,aAAa,mDAAkD,CAAA;AAE5E;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,0EAAuD,CAAA;
|
|
1
|
+
{"version":3,"file":"visitor.state.d.ts","sourceRoot":"","sources":["../../../../src/module/visitor/visitor.state.ts"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,eAAO,MAAM,2BAA2B,wBAAwB,CAAA;AAEhE,eAAO,MAAM,0BAA0B,QAAsB,CAAA;AAE7D,MAAM,MAAM,mBAAmB,GAAG;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA;AAQD,eAAO,MAAM,cAAc,yDAAoC,CAAA;AAC/D,eAAO,MAAM,iBAAiB,iDAA8B,CAAA;AAC5D,eAAO,MAAM,kBAAkB,6DAA+C,CAAA;AAC9E,eAAO,MAAM,kBAAkB,2CAAgB,CAAA;AAG/C,eAAO,MAAM,aAAa,mDAAkD,CAAA;AAE5E;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,0EAAuD,CAAA;AA8BnF,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAInF;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,mBAAmB,EAAE,EAC9B,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACnC,mBAAmB,EAAE,CAIvB;AAED,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,mBAAmB,EAAE,EAC9B,GAAG,EAAE,MAAM,EACX,kBAAkB,EAAE,OAAO,EAC3B,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACnC,mBAAmB,EAAE,CAGvB;AAoCD,iEAAiE;AACjE,wBAAgB,WAAW,IAAI,IAAI,CAUlC;AAED,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG;IAAE,eAAe,EAAE,OAAO,CAAA;CAAE,CAUnF;AAED,6DAA6D;AAC7D,wBAAgB,eAAe,IAAI,MAAM,CAQxC;AAED;;gFAEgF;AAChF,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C;AAED,sEAAsE;AACtE,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAS/C;AAED,8EAA8E;AAC9E,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAQ9C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Preact port of React 19's `useEffectEvent`.
|
|
3
|
+
*
|
|
4
|
+
* Returns a stable function that always calls the LATEST version of `fn`. Use it
|
|
5
|
+
* for the "an effect needs to call this, but must not re-run when it changes"
|
|
6
|
+
* case — the alternative is either a stale closure or an effect that re-fires on
|
|
7
|
+
* every render because the callback is recreated each time.
|
|
8
|
+
*
|
|
9
|
+
* Two things make this work rather than just look like it works:
|
|
10
|
+
*
|
|
11
|
+
* 1. The ref is assigned in `useLayoutEffect`, never during render. Assigning
|
|
12
|
+
* during render is a mutation the compiler-based `react-hooks/purity` and
|
|
13
|
+
* `react-hooks/immutability` rules correctly reject.
|
|
14
|
+
* 2. The name matters. `eslint-plugin-react-hooks` v7 detects effect events by
|
|
15
|
+
* identifier name only (`isUseEffectEventIdentifier`: `node.name ===
|
|
16
|
+
* 'useEffectEvent'`), so a locally-defined hook with this exact name gets the
|
|
17
|
+
* real treatment: exhaustive-deps stops demanding it, and actively errors if
|
|
18
|
+
* you put the returned function in a dependency array.
|
|
19
|
+
*
|
|
20
|
+
* Preact 10.29 has no built-in equivalent — `preact/hooks` exports stop at
|
|
21
|
+
* `useId`. Drop this file if that ever changes.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useEffectEvent<A extends unknown[], R>(fn: (...args: A) => R): (...args: A) => R;
|
|
24
|
+
//# sourceMappingURL=useEffectEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEffectEvent.d.ts","sourceRoot":"","sources":["../../../../src/shared/hooks/useEffectEvent.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,CAAC,CAQ/F"}
|