@evelan/jexity-widget 0.26.0 → 0.27.0-canary.63
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 +2955 -2835
- package/dist/index.mjs.map +1 -1
- package/dist/loader.js +2 -2
- package/dist/loader.js.map +1 -1
- package/dist/react.mjs +2850 -2728
- 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 +3 -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 +6 -2
- package/dist/types/features/chat/composer/components/ChatInput.d.ts.map +1 -1
- package/dist/types/features/chat/composer/components/SessionErrorNotice.d.ts +15 -1
- package/dist/types/features/chat/composer/components/SessionErrorNotice.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/useMaintenance.d.ts +16 -0
- package/dist/types/features/chat/hooks/useMaintenance.d.ts.map +1 -0
- 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/chat/state/maintenance-error.d.ts +15 -0
- package/dist/types/features/chat/state/maintenance-error.d.ts.map +1 -0
- package/dist/types/features/chat/state/session-error.d.ts +4 -1
- package/dist/types/features/chat/state/session-error.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 +238 -237
- package/dist/types/i18n/locales/de.d.ts.map +1 -1
- package/dist/types/i18n/locales/en.d.ts +234 -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/lib/widgetBootstrap.d.ts +7 -0
- package/dist/types/lib/widgetBootstrap.d.ts.map +1 -1
- package/dist/types/module/screens/ScreenRouter.d.ts +4 -1
- package/dist/types/module/screens/ScreenRouter.d.ts.map +1 -1
- package/dist/types/module/shell/WidgetShell.d.ts.map +1 -1
- package/dist/types/module/shell/hooks/useBootstrap.d.ts +2 -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/shell/shell.state.d.ts +8 -0
- package/dist/types/module/shell/shell.state.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/types/types.d.ts +7 -0
- package/dist/types/types.d.ts.map +1 -1
- package/dist/widget.js +36 -32
- package/dist/widget.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/entries/react.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,UAAU,CAAA;AAGrE,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,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/entries/react.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,UAAU,CAAA;AAGrE,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,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,0GAsGhE;AAED,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
|
|
@@ -14,6 +14,8 @@ interface ChatScreenProps {
|
|
|
14
14
|
isOrgDeleted: boolean;
|
|
15
15
|
ensureSession: () => Promise<SessionResult | null>;
|
|
16
16
|
startFresh: () => Promise<SessionResult | null>;
|
|
17
|
+
/** True while the deployment's write-freeze is active — disables the composer. */
|
|
18
|
+
maintenance: boolean;
|
|
17
19
|
}
|
|
18
20
|
/**
|
|
19
21
|
* Chat screen — renders immediately with greeting + input.
|
|
@@ -25,6 +27,6 @@ interface ChatScreenProps {
|
|
|
25
27
|
* Note: session state is hoisted into WidgetShell so the Header can show
|
|
26
28
|
* HumanHandoffAction with the same sessionId/visitorId — no duplicate subscriptions.
|
|
27
29
|
*/
|
|
28
|
-
export declare function ChatScreen({ greeting, botName, starterQuestions, sessionId, visitorId, isLoading, sessionNotFound, resumeFailed, isOrgDeleted, ensureSession, startFresh }: ChatScreenProps): import("preact").JSX.Element;
|
|
30
|
+
export declare function ChatScreen({ greeting, botName, starterQuestions, sessionId, visitorId, isLoading, sessionNotFound, resumeFailed, isOrgDeleted, ensureSession, startFresh, maintenance }: ChatScreenProps): import("preact").JSX.Element;
|
|
29
31
|
export {};
|
|
30
32
|
//# sourceMappingURL=ChatScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatScreen.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/components/ChatScreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;
|
|
1
|
+
{"version":3,"file":"ChatScreen.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/components/ChatScreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;AAcnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAE9D,UAAU,eAAe;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,qFAAqF;IACrF,OAAO,EAAE,MAAM,CAAA;IACf,wEAAwE;IACxE,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAE1B,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAA;IACvC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,SAAS,EAAE,OAAO,CAAA;IAClB,eAAe,EAAE,OAAO,CAAA;IACxB,YAAY,EAAE,OAAO,CAAA;IACrB,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,MAAM,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IAClD,UAAU,EAAE,MAAM,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IAC/C,kFAAkF;IAClF,WAAW,EAAE,OAAO,CAAA;CACrB;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE,eAAe,gCAyJxM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownContent.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/components/MarkdownContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MarkdownContent.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/components/MarkdownContent.tsx"],"names":[],"mappings":"AAoFA,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,UAS9C;AAED,UAAU,oBAAoB;IAC5B,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,EAAE,oBAAoB,gCAM7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/components/MessageList.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;AA+ExE,UAAU,gBAAgB;IACxB,aAAa,EAAE,GAAG,CAAC,eAAe,CAAC,EAAE,GAAG,SAAS,CAAA;IACjD,QAAQ,EAAE,MAAM,CAAA;IAChB,8EAA8E;IAC9E,OAAO,EAAE,MAAM,CAAA;IACf,wEAAwE;IACxE,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAC1B,kEAAkE;IAClE,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,8DAA8D;IAC9D,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,oEAAoE;IACpE,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,8DAA8D;IAC9D,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;IACzB,iDAAiD;IACjD,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAA;IACvC,iDAAiD;IACjD,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;
|
|
1
|
+
{"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/components/MessageList.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;AA+ExE,UAAU,gBAAgB;IACxB,aAAa,EAAE,GAAG,CAAC,eAAe,CAAC,EAAE,GAAG,SAAS,CAAA;IACjD,QAAQ,EAAE,MAAM,CAAA;IAChB,8EAA8E;IAC9E,OAAO,EAAE,MAAM,CAAA;IACf,wEAAwE;IACxE,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAC1B,kEAAkE;IAClE,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,8DAA8D;IAC9D,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,oEAAoE;IACpE,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,8DAA8D;IAC9D,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;IACzB,iDAAiD;IACjD,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAA;IACvC,iDAAiD;IACjD,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAaD,gFAAgF;AAChF,wBAAgB,WAAW,CAAC,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,gBAAgB,gCAqPrL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContractCreationForm.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/components/magicline/ContractCreationForm.tsx"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;AAuBnE,UAAU,yBAAyB;IACjC,aAAa,EAAE,EAAE,CAAC,eAAe,CAAC,CAAA;IAClC,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAA;IAChC,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,EAAE,CAAC,UAAU,CAAC,CAAA;IACzB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAA;CAC5C;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,aAAa,EACb,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,GACX,EAAE,yBAAyB,
|
|
1
|
+
{"version":3,"file":"ContractCreationForm.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/components/magicline/ContractCreationForm.tsx"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;AAuBnE,UAAU,yBAAyB;IACjC,aAAa,EAAE,EAAE,CAAC,eAAe,CAAC,CAAA;IAClC,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAA;IAChC,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,EAAE,CAAC,UAAU,CAAC,CAAA;IACzB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAA;CAC5C;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,aAAa,EACb,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,GACX,EAAE,yBAAyB,gCAyjB3B"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* `COUNTRY_ENUM` so a submission re-validates server-side without surprises.
|
|
6
6
|
*/
|
|
7
7
|
/** Magicline gender enum (controlled select). Mirrors backend `GENDER_ENUM`. */
|
|
8
|
-
export declare const GENDER_VALUES: readonly [
|
|
8
|
+
export declare const GENDER_VALUES: readonly ['MALE', 'FEMALE', 'UNISEX'];
|
|
9
9
|
export type GenderValue = (typeof GENDER_VALUES)[number];
|
|
10
10
|
/**
|
|
11
11
|
* Curated subset of the backend `COUNTRY_ENUM` for the country `<select>`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magiclineConstants.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/components/magicline/magiclineConstants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,gFAAgF;AAChF,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"magiclineConstants.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/components/magicline/magiclineConstants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,gFAAgF;AAChF,eAAO,MAAM,aAAa,YAAI,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAU,CAAA;AAClE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;AAExD;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,eAAe,EAAE,SAAS,aAAa,EAgB1C,CAAA"}
|
|
@@ -164,6 +164,11 @@ export interface ContractCreationState {
|
|
|
164
164
|
requiredAckKeys: string[];
|
|
165
165
|
/** True when every `requiredAckKeys` entry is currently acknowledged. */
|
|
166
166
|
allAcknowledged: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Server-authoritative voucher gate: true only when getRateBundles returned
|
|
169
|
+
* `allowVoucherCodes: true`. False while loading or on error (fail-closed).
|
|
170
|
+
*/
|
|
171
|
+
serverAllowVoucherCodes: boolean;
|
|
167
172
|
/** Current voucher lifecycle status. */
|
|
168
173
|
voucherStatus: VoucherStatus;
|
|
169
174
|
/** The string currently typed into the voucher input. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useContractCreationState.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/components/magicline/useContractCreationState.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useContractCreationState.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/components/magicline/useContractCreationState.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAE1B,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACxB,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;AAEnE;;;;GAIG;AACH,MAAM,MAAM,WAAW,GACnB;IAAE,KAAK,EAAE,SAAS,CAAA;CAAE,GACpB;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,kBAAkB,EAAE,CAAC;IAAC,iBAAiB,EAAE,OAAO,CAAA;CAAE,GAC3E;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,GAClB;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,CAAA;A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MAAM,IAAI,CAAA;IACvB,6EAA6E;IAC7E,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,+EAA+E;IAC/E,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,iEAAiE;IACjE,YAAY,EAAE,MAAM,IAAI,CAAA;IAExB,4EAA4E;IAC5E,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC;;;;;OAKG;IACH,iBAAiB,EAAE,MAAM,MAAM,CAAA;IAC/B;;;;;;OAMG;IACH,oBAAoB,EAAE,CAAC,OAAO,EAAE;QAC9B,SAAS,EAAE,MAAM,CAAA;QACjB,OAAO,EAAE,OAAO,CAAC,eAAe,EAAE,IAAI,CAAC,CAAA;QACvC,WAAW,EAAE,MAAM,CAAA;QACnB,cAAc,EAAE,MAAM,EAAE,CAAA;QACxB,2EAA2E;QAC3E,OAAO,EAAE,eAAe,CAAA;KACzB,KAAK,IAAI,CAAA;IACV,oEAAoE;IACpE,kBAAkB,EAAE,MAAM,IAAI,CAAA;IAC9B,mEAAmE;IACnE,mBAAmB,EAAE,MAAM,IAAI,CAAA;IAC/B,mEAAmE;IACnE,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,SAAS,EACT,SAAS,GACV,EAAE,+BAA+B,GAAG,qBAAqB,CAkZzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTrialBookingState.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/components/magicline/useTrialBookingState.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,SAAS,EACf,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;AAEnE,yEAAyE;AACzE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,eAAe,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;IACl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AAE,CAAC,iBAAiB,CAAC,CAAA;IAChC,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,eAAe,CAAA;IACvB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,eAAe,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,KAAK,IAAI,CAAA;IACvE,kBAAkB,EAAE,CAAC,eAAe,EAAE,OAAO,KAAK,IAAI,CAAA;IACtD,WAAW,EAAE,WAAW,CAAA;IACxB,UAAU,EAAE,UAAU,CAAA;IACtB,wEAAwE;IACxE,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,SAAS,GACV,EAAE,2BAA2B,GAAG,iBAAiB,
|
|
1
|
+
{"version":3,"file":"useTrialBookingState.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/components/magicline/useTrialBookingState.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,SAAS,EACf,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;AAEnE,yEAAyE;AACzE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,eAAe,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;IAClB,4BAA4B,EAAE,OAAO,CAAA;IACrC,4EAA4E;IAC5E,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B;AAED;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,cAAc,GAAG,aAAa,CAAA;AAE7E,MAAM,MAAM,WAAW,GACnB;IAAE,KAAK,EAAE,SAAS,CAAA;CAAE,GACpB;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,cAAc,CAAA;CAAE,GAC1C;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,gBAAg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AAE,MAAM,IAAI,CAAA;CACzB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,SAAS,GACV,EAAE,2BAA2B,GAAG,iBAAiB,CAsHjD"}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import type { Id } from '@repo/backend/convex/_generated/dataModel';
|
|
2
|
+
import type { SessionLiveStatus } from '../../hooks/useConversation';
|
|
2
3
|
interface ChatInputProps {
|
|
3
4
|
sessionId: Id<'contactSessions'> | null;
|
|
4
5
|
visitorId: string | null;
|
|
5
6
|
isLoading: boolean;
|
|
6
7
|
isStreaming: boolean;
|
|
7
|
-
sessionStatus:
|
|
8
|
+
sessionStatus: SessionLiveStatus | null;
|
|
8
9
|
ensureSession: () => Promise<{
|
|
9
10
|
sessionId: Id<'contactSessions'>;
|
|
10
11
|
visitorId: string;
|
|
11
12
|
} | null>;
|
|
12
13
|
onStartFresh: () => void;
|
|
14
|
+
/** True while the deployment's write-freeze is active — disables the composer,
|
|
15
|
+
* preserving any draft text, and shows the maintenance notice. */
|
|
16
|
+
maintenance?: boolean;
|
|
13
17
|
}
|
|
14
18
|
/** Composer area: stacks inline notices above a single focus-within input row. */
|
|
15
|
-
export declare function ChatInput({ sessionId, visitorId, isLoading, isStreaming, sessionStatus, ensureSession, onStartFresh, }: ChatInputProps): import("preact").JSX.Element;
|
|
19
|
+
export declare function ChatInput({ sessionId, visitorId, isLoading, isStreaming, sessionStatus, ensureSession, onStartFresh, maintenance, }: ChatInputProps): import("preact").JSX.Element;
|
|
16
20
|
export {};
|
|
17
21
|
//# sourceMappingURL=ChatInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/composer/components/ChatInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/composer/components/ChatInput.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAEpE,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;IAGpB,aAAa,EAAE,iBAAiB,GAAG,IAAI,CAAA;IACvC,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;IACxB;uEACmE;IACnE,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,kFAAkF;AAClF,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,SAAS,EACT,SAAS,EACT,WAAW,EACX,aAAa,EACb,aAAa,EACb,YAAY,EACZ,WAAmB,GACpB,EAAE,cAAc,gCA4EhB"}
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
import { type SessionErrorReason } from '../../state';
|
|
2
|
+
/**
|
|
3
|
+
* Picks which reason to show. A live `sessionError` (from an actual failed
|
|
4
|
+
* send/resume attempt) always wins — it's the most current information. With
|
|
5
|
+
* no send attempt yet, the boot-time `maintenance` flag from the bootstrap
|
|
6
|
+
* response fills in so the notice shows on first render, not only after a
|
|
7
|
+
* failed send.
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveSessionErrorReason(reason: SessionErrorReason | null, maintenance: boolean): SessionErrorReason | null;
|
|
10
|
+
interface SessionErrorNoticeProps {
|
|
11
|
+
/** True while the deployment's write-freeze is active — see resolveSessionErrorReason. */
|
|
12
|
+
maintenance?: boolean;
|
|
13
|
+
}
|
|
1
14
|
/**
|
|
2
15
|
* Inline banner rendered above the chat input when session creation fails.
|
|
3
16
|
* Mirrors the RateLimitNotice pattern: module-scope signal, no prop drill,
|
|
@@ -7,5 +20,6 @@
|
|
|
7
20
|
* silent catch in useConvexSession / refreshBootstrap writes a reason here
|
|
8
21
|
* and this component renders it. See state/session-error.ts for the reason enum.
|
|
9
22
|
*/
|
|
10
|
-
export declare function SessionErrorNotice(): import("preact").JSX.Element | null;
|
|
23
|
+
export declare function SessionErrorNotice({ maintenance }?: SessionErrorNoticeProps): import("preact").JSX.Element | null;
|
|
24
|
+
export {};
|
|
11
25
|
//# sourceMappingURL=SessionErrorNotice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionErrorNotice.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/composer/components/SessionErrorNotice.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SessionErrorNotice.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/composer/components/SessionErrorNotice.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAEnE;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,kBAAkB,GAAG,IAAI,EACjC,WAAW,EAAE,OAAO,GACnB,kBAAkB,GAAG,IAAI,CAE3B;AAED,UAAU,uBAAuB;IAC/B,0FAA0F;IAC1F,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,WAAmB,EAAE,GAAE,uBAA4B,uCAiBvF"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RefObject } from 'preact';
|
|
2
2
|
interface UseComposerInputArgs {
|
|
3
3
|
/** Called when the visitor presses Enter (without Shift). */
|
|
4
4
|
onSend: () => void;
|
|
5
5
|
}
|
|
6
6
|
interface UseComposerInputResult {
|
|
7
|
-
textareaRef:
|
|
8
|
-
fileInputRef:
|
|
7
|
+
textareaRef: RefObject<HTMLTextAreaElement>;
|
|
8
|
+
fileInputRef: RefObject<HTMLInputElement>;
|
|
9
9
|
/** Enter → send, Shift+Enter → newline. */
|
|
10
10
|
onKeyDown: (e: KeyboardEvent) => void;
|
|
11
11
|
/** Proxy click into the hidden native file input. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useComposerInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/composer/hooks/useComposerInput.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useComposerInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/composer/hooks/useComposerInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAMvC,UAAU,oBAAoB;IAC5B,6DAA6D;IAC7D,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED,UAAU,sBAAsB;IAI9B,WAAW,EAAE,SAAS,CAAC,mBAAmB,CAAC,CAAA;IAC3C,YAAY,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAA;IACzC,2CAA2C;IAC3C,SAAS,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAA;IACrC,qDAAqD;IACrD,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,mEAAmE;IACnE,aAAa,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAA;IACjC,qEAAqE;IACrE,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;CACrC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,GAAG,sBAAsB,CAyEzF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSendMessage.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/composer/hooks/useSendMessage.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;
|
|
1
|
+
{"version":3,"file":"useSendMessage.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/composer/hooks/useSendMessage.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;AAgBnE,UAAU,kBAAkB;IAC1B,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAA;IACvC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,aAAa,EAAE,MAAM,OAAO,CAAC;QAAE,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC,CAAA;CAC7F;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,EAAE,kBAAkB,aAK7C,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC,CA+FlE"}
|
|
@@ -3,7 +3,7 @@ interface UseConversationArgs {
|
|
|
3
3
|
sessionId: Id<'contactSessions'> | null;
|
|
4
4
|
visitorId: string | null;
|
|
5
5
|
}
|
|
6
|
-
export type SessionLiveStatus = 'active' | 'escalated' | 'assigned' | 'resolved';
|
|
6
|
+
export type SessionLiveStatus = 'active' | 'escalated' | 'assigned' | 'resolved' | 'org_deleted';
|
|
7
7
|
interface UseConversationResult {
|
|
8
8
|
/** Conversation rows; `undefined` until first server response (loading). */
|
|
9
9
|
conversations: Doc<'conversations'>[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConversation.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/hooks/useConversation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;AAExE,UAAU,mBAAmB;IAC3B,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAA;IACvC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;
|
|
1
|
+
{"version":3,"file":"useConversation.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/hooks/useConversation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;AAExE,UAAU,mBAAmB;IAC3B,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAA;IACvC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAKD,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,aAAa,CAAA;AAEhG,UAAU,qBAAqB;IAC7B,4EAA4E;IAC5E,aAAa,EAAE,GAAG,CAAC,eAAe,CAAC,EAAE,GAAG,SAAS,CAAA;IACjD,8EAA8E;IAC9E,aAAa,EAAE,iBAAiB,GAAG,IAAI,CAAA;IACvC,2EAA2E;IAC3E,SAAS,EAAE,OAAO,CAAA;IAClB,sDAAsD;IACtD,WAAW,EAAE,OAAO,CAAA;CACrB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,mBAAmB,GAAG,qBAAqB,CA0BpG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConvexSession.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/hooks/useConvexSession.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;
|
|
1
|
+
{"version":3,"file":"useConvexSession.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/hooks/useConvexSession.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;AA4DnE,KAAK,aAAa,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,aAAa,GAAG,IAAI,CAAA;AAE5F,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAA;IAChC,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,UAAU,aAAa;IACrB,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAA;IACvC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,SAAS,EAAE,OAAO,CAAA;IAClB,kFAAkF;IAClF,eAAe,EAAE,OAAO,CAAA;IACxB,0EAA0E;IAC1E,YAAY,EAAE,OAAO,CAAA;IACrB,8CAA8C;IAC9C,aAAa,EAAE,aAAa,CAAA;IAC5B,wFAAwF;IACxF,YAAY,EAAE,OAAO,CAAA;IACrB,4EAA4E;IAC5E,aAAa,EAAE,MAAM,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IAClD,iEAAiE;IACjE,UAAU,EAAE,MAAM,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IAC/C;8EAC0E;IAC1E,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,aAAa,CAiKlF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEnterWaiting.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/hooks/useEnterWaiting.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,UAAU,CAAA;AAE7D;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,
|
|
1
|
+
{"version":3,"file":"useEnterWaiting.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/hooks/useEnterWaiting.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,UAAU,CAAA;AAE7D;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,YAEd,YAAY,UAM5B"}
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
* silent log + form-reset).
|
|
15
15
|
*/
|
|
16
16
|
export declare function useEscalation(): import("convex/react").ReactMutation<import("convex/server").FunctionReference<"mutation", "public", {
|
|
17
|
-
|
|
17
|
+
formMessageId: import("convex/values").GenericId<"conversations">;
|
|
18
|
+
locale?: "de" | "en" | undefined;
|
|
19
|
+
sessionId: import("convex/values").GenericId<"contactSessions">;
|
|
20
|
+
visitorEmail: string;
|
|
18
21
|
visitorId: string;
|
|
19
22
|
visitorName: string;
|
|
20
|
-
visitorEmail: string;
|
|
21
|
-
sessionId: import("convex/values").GenericId<"contactSessions">;
|
|
22
|
-
formMessageId: import("convex/values").GenericId<"conversations">;
|
|
23
23
|
}, {
|
|
24
24
|
ticketRef: string;
|
|
25
25
|
}, string | undefined>>;
|
|
@@ -8,19 +8,19 @@
|
|
|
8
8
|
* token; the hook just abstracts the api path.
|
|
9
9
|
*/
|
|
10
10
|
export declare function useHandoff(): import("convex/react").ReactMutation<import("convex/server").FunctionReference<"mutation", "public", {
|
|
11
|
-
locale?: "en" | "de" | undefined;
|
|
12
|
-
visitorId: string;
|
|
13
|
-
sessionId: import("convex/values").GenericId<"contactSessions">;
|
|
14
11
|
bootstrapToken: import("convex/values").GenericId<"widgetBootstrapTokens">;
|
|
12
|
+
locale?: "de" | "en" | undefined;
|
|
13
|
+
sessionId: import("convex/values").GenericId<"contactSessions">;
|
|
14
|
+
visitorId: string;
|
|
15
15
|
}, {
|
|
16
16
|
skipForm: true;
|
|
17
17
|
ticketRef: string;
|
|
18
18
|
formMessageId?: undefined;
|
|
19
19
|
waitingSetAt?: undefined;
|
|
20
20
|
} | {
|
|
21
|
+
ticketRef?: undefined;
|
|
21
22
|
skipForm: false;
|
|
22
23
|
formMessageId: import("convex/values").GenericId<"conversations">;
|
|
23
24
|
waitingSetAt: number;
|
|
24
|
-
ticketRef?: undefined;
|
|
25
25
|
}, string | undefined>>;
|
|
26
26
|
//# sourceMappingURL=useHandoff.d.ts.map
|
|
@@ -74,11 +74,11 @@ export type GetTrialConfig = (args: {
|
|
|
74
74
|
* Mirrors `useEscalation` / `useHandoff`: thin api-path abstraction, no state.
|
|
75
75
|
*/
|
|
76
76
|
export declare function useMagiclineSubmit(): import("convex/react").ReactMutation<import("convex/server").FunctionReference<"mutation", "public", {
|
|
77
|
+
action: "contractCreation" | "leadApplication" | "trialSessionBooking";
|
|
77
78
|
fields: Record<string, string | number | boolean | null>;
|
|
78
|
-
visitorId: string;
|
|
79
|
-
sessionId: import("convex/values").GenericId<"contactSessions">;
|
|
80
|
-
action: "trialSessionBooking" | "leadApplication" | "contractCreation";
|
|
81
79
|
formMessageId: import("convex/values").GenericId<"conversations">;
|
|
80
|
+
sessionId: import("convex/values").GenericId<"contactSessions">;
|
|
81
|
+
visitorId: string;
|
|
82
82
|
}, {
|
|
83
83
|
submissionId: import("convex/values").GenericId<"magiclineSubmissions">;
|
|
84
84
|
status: "failed" | "pending" | "submitting" | "succeeded";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Is the deployment refusing writes, live?
|
|
3
|
+
*
|
|
4
|
+
* The bootstrap response carries the freeze so the FIRST render is right — a
|
|
5
|
+
* visitor arriving mid-maintenance sees the notice immediately, with no flash
|
|
6
|
+
* of a working composer. But bootstrap happens once. Without a subscription, a
|
|
7
|
+
* widget opened during maintenance stays disabled forever after maintenance
|
|
8
|
+
* ends, until the visitor reloads the page — and on a customer's site they have
|
|
9
|
+
* no reason to.
|
|
10
|
+
*
|
|
11
|
+
* So the bootstrap value seeds it and this query keeps it true. `useQuery`
|
|
12
|
+
* returns `undefined` while it resolves, which is exactly when the seeded value
|
|
13
|
+
* is the best answer we have.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useMaintenance(): boolean;
|
|
16
|
+
//# sourceMappingURL=useMaintenance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMaintenance.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/hooks/useMaintenance.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,IAAI,OAAO,CAGxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUnreadTitleFlash.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/hooks/useUnreadTitleFlash.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,2CAA2C,CAAA;AAGpE;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,GAAG,CAAC,eAAe,CAAC,EAAE,GAAG,SAAS,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"useUnreadTitleFlash.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/hooks/useUnreadTitleFlash.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,2CAA2C,CAAA;AAGpE;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,GAAG,CAAC,eAAe,CAAC,EAAE,GAAG,SAAS,GAAG,IAAI,CAmItF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVisitorHeartbeat.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/hooks/useVisitorHeartbeat.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;AAEnE,UAAU,0BAA0B;IAClC,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAA;IACvC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,0BAA0B,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"useVisitorHeartbeat.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/hooks/useVisitorHeartbeat.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,2CAA2C,CAAA;AAEnE,UAAU,0BAA0B;IAClC,SAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAA;IACvC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,0BAA0B,GAAG,IAAI,CAwD9F"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recognise the backend's write-freeze rejection.
|
|
3
|
+
*
|
|
4
|
+
* `convex/lib/functions.ts` throws a `ConvexError` carrying
|
|
5
|
+
* `{ kind: "maintenance" }` whenever the deployment is frozen — during a
|
|
6
|
+
* restore or a migration. The widget has to tell that apart from a network
|
|
7
|
+
* blip, because the visitor's answer is different: not "try again now", but
|
|
8
|
+
* "we are paused, your message is safe, try again shortly".
|
|
9
|
+
*
|
|
10
|
+
* Structural check rather than an `instanceof ConvexError`: the error crosses
|
|
11
|
+
* the wire and arrives as a plain object, and the widget bundles `convex/react`
|
|
12
|
+
* through a preact alias where an identity check is not worth relying on.
|
|
13
|
+
*/
|
|
14
|
+
export declare function isMaintenanceError(error: unknown): boolean;
|
|
15
|
+
//# sourceMappingURL=maintenance-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maintenance-error.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/state/maintenance-error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAS1D"}
|
|
@@ -9,8 +9,11 @@
|
|
|
9
9
|
* - 'unauthorized' bootstrap token was rejected and refresh also failed
|
|
10
10
|
* (origin de-authorised, clock skew, domain mis-config)
|
|
11
11
|
* - 'network' transport error talking to Convex
|
|
12
|
+
* - 'maintenance' the deployment is frozen for writes (a restore or a
|
|
13
|
+
* migration is in progress). Reads still work, so the
|
|
14
|
+
* visitor keeps their history; only sending is refused.
|
|
12
15
|
* - 'unknown' any other thrown error
|
|
13
16
|
*/
|
|
14
|
-
export type SessionErrorReason = 'no-token' | 'unauthorized' | 'network' | 'unknown';
|
|
17
|
+
export type SessionErrorReason = 'no-token' | 'unauthorized' | 'network' | 'maintenance' | 'unknown';
|
|
15
18
|
export declare const sessionError: import("@preact/signals").Signal<SessionErrorReason | null>;
|
|
16
19
|
//# sourceMappingURL=session-error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-error.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/state/session-error.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"session-error.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/state/session-error.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,kBAAkB,GAC1B,UAAU,GACV,cAAc,GACd,SAAS,GACT,aAAa,GACb,SAAS,CAAA;AAEb,eAAO,MAAM,YAAY,6DAA0C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HomeScreen.d.ts","sourceRoot":"","sources":["../../../../../src/features/home/components/HomeScreen.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAEhE,UAAU,eAAe;IACvB,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAA;IACf,6EAA6E;IAC7E,YAAY,CAAC,EAAE,YAAY,CAAA;IAE3B,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"HomeScreen.d.ts","sourceRoot":"","sources":["../../../../../src/features/home/components/HomeScreen.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAEhE,UAAU,eAAe;IACvB,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAA;IACf,6EAA6E;IAC7E,YAAY,CAAC,EAAE,YAAY,CAAA;IAE3B,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,EAAE,eAAe,gCAkJpF"}
|
|
@@ -5,7 +5,7 @@ export { type WidgetLocale, SUPPORTED_LOCALES as WIDGET_LOCALES, WIDGET_DEFAULT_
|
|
|
5
5
|
* Active locale for the widget UI.
|
|
6
6
|
* Initialised to 'de' (default); overridden in WidgetShell on mount via resolveWidgetLocale.
|
|
7
7
|
*/
|
|
8
|
-
export declare const locale: import("@preact/signals").Signal<"
|
|
8
|
+
export declare const locale: import("@preact/signals").Signal<"de" | "en">;
|
|
9
9
|
/**
|
|
10
10
|
* Returns the current locale's string dictionary.
|
|
11
11
|
* Reactive — components that call this re-render when locale changes.
|