@flamingo-stack/openframe-frontend-core 0.0.812 → 0.0.814
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/build/export-map.json +1 -1
- package/dist/case-study-card-NLT2JVI7.cjs +23 -0
- package/dist/{chunk-5QLDHPPU.cjs → chunk-25HBH4J6.cjs} +15 -15
- package/dist/{chunk-WFJDKP2Q.cjs → chunk-2H7XPKKT.cjs} +37 -37
- package/dist/{chunk-LKQ33CMY.cjs → chunk-2XCORRJV.cjs} +3 -3
- package/dist/{chunk-JTIGKLKJ.cjs → chunk-2XLPRW7V.cjs} +23 -23
- package/dist/{chunk-4WIJI4AK.cjs → chunk-3TOWCFIK.cjs} +20 -26
- package/dist/{chunk-KUXHXLJQ.cjs → chunk-3V5JWG27.cjs} +5 -5
- package/dist/{chunk-CUDJP7R7.cjs → chunk-467T3LCG.cjs} +63 -63
- package/dist/{chunk-COTJLBOS.cjs → chunk-4PMD3JUC.cjs} +19 -19
- package/dist/{chunk-YR74H7Z3.cjs → chunk-5SZ4ILU3.cjs} +7 -7
- package/dist/{chunk-7JWFMAQB.cjs → chunk-63A4GZMB.cjs} +18 -2
- package/dist/{chunk-ZD6SZLO2.cjs → chunk-6CZVQ72C.cjs} +3 -3
- package/dist/{chunk-PQ76VC2P.cjs → chunk-7ERD34HQ.cjs} +1073 -825
- package/dist/{chunk-VEN6MGNX.cjs → chunk-7O7EX7HQ.cjs} +45 -45
- package/dist/{chunk-FCFLZPID.cjs → chunk-AYMKG55T.cjs} +51 -51
- package/dist/{chunk-U2MHQBL4.cjs → chunk-BOS7OIC4.cjs} +30 -30
- package/dist/{chunk-NEDFRRLM.cjs → chunk-CVPHODOE.cjs} +171 -171
- package/dist/{chunk-JMRO7CK2.cjs → chunk-D23VVC3K.cjs} +45 -45
- package/dist/{chunk-D2EPUQ35.cjs → chunk-E5VF3IXO.cjs} +4 -4
- package/dist/{chunk-SFUNXMY3.cjs → chunk-EHANO6UE.cjs} +16 -16
- package/dist/{chunk-4ZTGCCNI.cjs → chunk-F4ZJRMMM.cjs} +20 -20
- package/dist/{chunk-AHBTZ7DN.cjs → chunk-FCZAUK4D.cjs} +52 -50
- package/dist/{chunk-RSLLS6C4.cjs → chunk-G2B6EA4J.cjs} +62 -62
- package/dist/{chunk-XB7VPJNY.cjs → chunk-G5CCYMCU.cjs} +3 -3
- package/dist/{chunk-VT2ACO3Z.cjs → chunk-GAR2IIU6.cjs} +349 -349
- package/dist/{chunk-743MM5B6.cjs → chunk-HM7VCQSX.cjs} +10 -10
- package/dist/{chunk-DA2TWDGJ.cjs → chunk-IBYT5I7K.cjs} +13 -13
- package/dist/{chunk-D322VUSH.cjs → chunk-IDEOLXY6.cjs} +2050 -2078
- package/dist/{chunk-VYLBW6ZV.cjs → chunk-IJCSQFLD.cjs} +209 -209
- package/dist/{chunk-XZKYU57A.cjs → chunk-IKB6AZPV.cjs} +8 -8
- package/dist/{chunk-VPYGK4AV.cjs → chunk-ILV243HM.cjs} +31 -31
- package/dist/{chunk-TS4PKCG3.cjs → chunk-JOKOQOLJ.cjs} +22 -22
- package/dist/{chunk-TCMUVY3M.cjs → chunk-KINBPFAC.cjs} +199 -199
- package/dist/{chunk-2IZHRVKD.cjs → chunk-KNGULKOU.cjs} +46 -46
- package/dist/{chunk-JMAKYJ3Q.cjs → chunk-LUR2ED43.cjs} +6 -6
- package/dist/{chunk-EPMAMFQE.cjs → chunk-M6VLEXN3.cjs} +119 -119
- package/dist/{chunk-GD47ZGOU.cjs → chunk-N3MBQRCQ.cjs} +3 -3
- package/dist/{chunk-ZFUNSXSH.cjs → chunk-NONMZ5WJ.cjs} +5 -5
- package/dist/{chunk-E64HJMY6.cjs → chunk-OBQ5WUNG.cjs} +67 -67
- package/dist/{chunk-6LZ4BI7Z.cjs → chunk-PAI4A3UM.cjs} +60 -60
- package/dist/{chunk-4IU462LR.cjs → chunk-QDDBOCG3.cjs} +2 -2
- package/dist/{chunk-5DBW6ERF.cjs → chunk-QOAA7ZHB.cjs} +2 -2
- package/dist/{chunk-7Q2PFKU3.cjs → chunk-QQT23JJ7.cjs} +4 -4
- package/dist/{chunk-4SZKJPQJ.cjs → chunk-RD66AGUI.cjs} +6 -6
- package/dist/{chunk-NL3G642U.cjs → chunk-S3QXLD4X.cjs} +10 -10
- package/dist/{chunk-7RM4NM2C.cjs → chunk-SWF6TNZ3.cjs} +14 -14
- package/dist/{chunk-P4B6PVSG.cjs → chunk-USUVHAQ7.cjs} +7 -7
- package/dist/{chunk-K7IX2NAG.cjs → chunk-UTRRECPV.cjs} +110 -110
- package/dist/{chunk-7HNZHENA.cjs → chunk-WJPEDREU.cjs} +13 -13
- package/dist/{chunk-SC3I3YWM.cjs → chunk-Y6MJMPHV.cjs} +126 -126
- package/dist/{chunk-OKI5KSUV.cjs → chunk-ZNZ6453J.cjs} +44 -44
- package/dist/{chunk-7TBXHZLB.cjs → chunk-ZRDVFADQ.cjs} +61 -61
- package/dist/{cloud-tenants-CW3I7AIM.cjs → cloud-tenants-JSH6AQMZ.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +8 -1
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +34 -2
- package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts +93 -0
- package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts.map +1 -0
- package/dist/components/chat/entity-cards/chat-card-disclosure.js +126 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts +5 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +82 -55
- package/dist/components/chat/entity-cards/index.d.ts +1 -0
- package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/index.js +14 -0
- package/dist/components/chat/index.cjs +42 -26
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +3 -0
- package/dist/components/chat/inline-app-link-chip.d.ts +35 -0
- package/dist/components/chat/inline-app-link-chip.d.ts.map +1 -0
- package/dist/components/chat/inline-app-link-chip.js +37 -0
- package/dist/components/chat/source-action-button.d.ts +15 -1
- package/dist/components/chat/source-action-button.d.ts.map +1 -1
- package/dist/components/chat/source-action-button.js +40 -2
- package/dist/components/contact/index.cjs +33 -33
- package/dist/components/docs/index.cjs +36 -36
- package/dist/components/embeds/index.cjs +33 -33
- package/dist/components/faq/index.cjs +34 -34
- package/dist/components/features/index.cjs +32 -32
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.d.ts.map +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.js +4 -2
- package/dist/components/features/select-button.js +1 -1
- package/dist/components/help-center-pages/index.cjs +165 -165
- package/dist/components/index.cjs +238 -220
- package/dist/components/meeting-scheduler/index.cjs +196 -196
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/onboarding-guides/index.cjs +35 -35
- package/dist/components/platform/ScriptArguments.d.ts +2 -0
- package/dist/components/platform/ScriptArguments.d.ts.map +1 -1
- package/dist/components/platform/ScriptArguments.js +3 -2
- package/dist/components/product-demo/index.cjs +45 -45
- package/dist/components/related-content/index.cjs +17 -17
- package/dist/components/tickets/index.cjs +39 -39
- package/dist/components/ui/button/button-styles.d.ts +8 -0
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +8 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +6 -4
- package/dist/components/ui/button/split-button.d.ts.map +1 -1
- package/dist/components/ui/button/split-button.js +3 -2
- package/dist/components/ui/checkbox-block.d.ts.map +1 -1
- package/dist/components/ui/checkbox-block.js +3 -1
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +52 -34
- package/dist/components/ui/input-styles.d.ts +2 -0
- package/dist/components/ui/input-styles.d.ts.map +1 -1
- package/dist/components/ui/input-styles.js +2 -0
- package/dist/{devices-KKRAB4Q2.cjs → devices-OCEOO6OW.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-5UO66U4F.cjs → embeddable-chat-YRKMPFDY.cjs} +150 -117
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +68 -50
- package/dist/{knowledge-Z2PTGBA3.cjs → knowledge-3GEE4LPY.cjs} +33 -33
- package/dist/{logs-6T5VK2TY.cjs → logs-7GGUZSDB.cjs} +41 -41
- package/dist/{policies-JPIC5YDE.cjs → policies-S74WTNL4.cjs} +36 -36
- package/dist/{remote-session-VBVUMIUP.cjs → remote-session-BQMTIQTU.cjs} +17 -17
- package/dist/{scripts-BSYJJFBQ.cjs → scripts-G4QAT4NZ.cjs} +39 -39
- package/dist/{software-update-KVEYYORC.cjs → software-update-IYHJABLP.cjs} +36 -36
- package/dist/{tickets-board-YRZ54JJS.cjs → tickets-board-TRXOX77R.cjs} +17 -17
- package/dist/{video-file-player-4QMVTOBE.cjs → video-file-player-IAMWBKEQ.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/chat/chat-message-enhanced.tsx +24 -1
- package/src/components/chat/embeddable-chat.tsx +61 -1
- package/src/components/chat/entity-cards/chat-card-disclosure.tsx +233 -0
- package/src/components/chat/entity-cards/dispatch.tsx +104 -63
- package/src/components/chat/entity-cards/index.ts +9 -0
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/inline-app-link-chip.tsx +79 -0
- package/src/components/chat/source-action-button.tsx +53 -2
- package/src/components/features/scripts/schedule-form/schedule-script-picker-card.tsx +4 -2
- package/src/components/features/select-button.tsx +1 -1
- package/src/components/platform/ScriptArguments.tsx +8 -1
- package/src/components/ui/button/button-styles.ts +18 -1
- package/src/components/ui/button/button.tsx +7 -4
- package/src/components/ui/button/split-button.tsx +3 -2
- package/src/components/ui/checkbox-block.tsx +3 -1
- package/src/components/ui/input-styles.ts +2 -0
- package/dist/case-study-card-3XLKCGLV.cjs +0 -23
|
@@ -29,7 +29,7 @@ var _chunkMZ4KBSH7cjs = require('./chunk-MZ4KBSH7.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkNONMZ5WJcjs = require('./chunk-NONMZ5WJ.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -41,7 +41,7 @@ var _chunkZFUNSXSHcjs = require('./chunk-ZFUNSXSH.cjs');
|
|
|
41
41
|
var _chunkCNTBGJA7cjs = require('./chunk-CNTBGJA7.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkQDDBOCG3cjs = require('./chunk-QDDBOCG3.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
@@ -67,11 +67,11 @@ var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
|
67
67
|
var _chunkFX35L4Y6cjs = require('./chunk-FX35L4Y6.cjs');
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkFCZAUK4Dcjs = require('./chunk-FCZAUK4D.cjs');
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
var
|
|
74
|
+
var _chunk63A4GZMBcjs = require('./chunk-63A4GZMB.cjs');
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
var _chunkQDB2JO55cjs = require('./chunk-QDB2JO55.cjs');
|
|
@@ -808,7 +808,7 @@ function usePlatformConfig() {
|
|
|
808
808
|
label: platform.label
|
|
809
809
|
}))
|
|
810
810
|
];
|
|
811
|
-
const selectableOptions =
|
|
811
|
+
const selectableOptions = _chunkNONMZ5WJcjs.transformPlatformConfigsToOptions.call(void 0, platforms);
|
|
812
812
|
return {
|
|
813
813
|
platforms,
|
|
814
814
|
platformOptions,
|
|
@@ -857,8 +857,8 @@ function ToastHeader({
|
|
|
857
857
|
className,
|
|
858
858
|
showProgress = true
|
|
859
859
|
}) {
|
|
860
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
861
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex size-6 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
860
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "relative flex w-full items-start gap-2 overflow-hidden bg-ods-card p-3", className), children: [
|
|
861
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex size-6 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "size-[9px] rounded-full", dotColorByVariant[variant]) }) }),
|
|
862
862
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
863
863
|
title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
864
864
|
"p",
|
|
@@ -878,7 +878,7 @@ function ToastHeader({
|
|
|
878
878
|
) : null
|
|
879
879
|
] }),
|
|
880
880
|
dismissible ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
881
|
-
|
|
881
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
882
882
|
{
|
|
883
883
|
variant: "bare",
|
|
884
884
|
size: "icon-sm",
|
|
@@ -892,7 +892,7 @@ function ToastHeader({
|
|
|
892
892
|
showProgress && duration !== Infinity && duration > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
893
893
|
"div",
|
|
894
894
|
{
|
|
895
|
-
className:
|
|
895
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "absolute inset-x-0 bottom-0 h-1 origin-left", progressColorByVariant[variant]),
|
|
896
896
|
style: {
|
|
897
897
|
animation: `toast-progress ${duration}ms linear forwards`
|
|
898
898
|
}
|
|
@@ -913,7 +913,7 @@ function ToastCard({
|
|
|
913
913
|
"div",
|
|
914
914
|
{
|
|
915
915
|
role: "status",
|
|
916
|
-
className:
|
|
916
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
917
917
|
"w-[368px] max-w-[calc(100vw-32px)] overflow-hidden rounded-md border border-ods-border bg-ods-card shadow-lg",
|
|
918
918
|
className
|
|
919
919
|
),
|
|
@@ -961,7 +961,7 @@ function CommandApprovalToast({
|
|
|
961
961
|
"div",
|
|
962
962
|
{
|
|
963
963
|
role: "status",
|
|
964
|
-
className:
|
|
964
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
965
965
|
"flex w-[368px] max-w-[calc(100vw-32px)] flex-col overflow-hidden rounded-md border border-ods-border bg-ods-bg shadow-lg",
|
|
966
966
|
className
|
|
967
967
|
),
|
|
@@ -988,13 +988,13 @@ function CommandApprovalToast({
|
|
|
988
988
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "overflow-hidden", children: [
|
|
989
989
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-11 w-full items-center gap-2 border-b border-ods-border bg-ods-card px-3 py-2", children: [
|
|
990
990
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h6", title: command, children: command }),
|
|
991
|
-
toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
991
|
+
toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQDDBOCG3cjs.ToolIcon, { toolType, size: 16 }) : null
|
|
992
992
|
] }),
|
|
993
993
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2 bg-ods-bg p-3", children: [
|
|
994
994
|
approvalDescription ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: approvalDescription }) : null,
|
|
995
995
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-4", children: [
|
|
996
996
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
997
|
-
|
|
997
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
998
998
|
{
|
|
999
999
|
variant: "accent",
|
|
1000
1000
|
size: "small",
|
|
@@ -1006,7 +1006,7 @@ function CommandApprovalToast({
|
|
|
1006
1006
|
}
|
|
1007
1007
|
),
|
|
1008
1008
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1009
|
-
|
|
1009
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
1010
1010
|
{
|
|
1011
1011
|
variant: "outline",
|
|
1012
1012
|
size: "small",
|
|
@@ -1022,7 +1022,7 @@ function CommandApprovalToast({
|
|
|
1022
1022
|
] })
|
|
1023
1023
|
}
|
|
1024
1024
|
),
|
|
1025
|
-
expanded ? null : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1025
|
+
expanded ? null : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "row", type: "button", onClick: () => setExpanded(true), "aria-expanded": false, children: [
|
|
1026
1026
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex-1", children: "Show Command" }),
|
|
1027
1027
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSKI6NKOEcjs.Chevron02DownIcon, { size: 16 })
|
|
1028
1028
|
] })
|
|
@@ -1291,7 +1291,7 @@ function useDownloads({
|
|
|
1291
1291
|
initialData,
|
|
1292
1292
|
enabled: enabledGiven = true
|
|
1293
1293
|
} = {}) {
|
|
1294
|
-
const held =
|
|
1294
|
+
const held = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
1295
1295
|
const enabled = enabledGiven && !held;
|
|
1296
1296
|
const entry = entryFor(endpoint);
|
|
1297
1297
|
if (initialData && entry.state.data !== initialData && !entry.request) {
|
|
@@ -1324,10 +1324,10 @@ function useDownloads({
|
|
|
1324
1324
|
}
|
|
1325
1325
|
function useVisitorDesktopDownload(options = {}) {
|
|
1326
1326
|
const enabled = _nullishCoalesce(options.enabled, () => ( true));
|
|
1327
|
-
const visitor =
|
|
1327
|
+
const visitor = _chunkNONMZ5WJcjs.useVisitorOs.call(void 0, );
|
|
1328
1328
|
const { data, error } = useDownloads(options);
|
|
1329
1329
|
if (!enabled || !visitor.known || !data && !error) return { known: false, download: null };
|
|
1330
|
-
const os =
|
|
1330
|
+
const os = _chunkNONMZ5WJcjs.desktopOsOf.call(void 0, visitor.os);
|
|
1331
1331
|
const download = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _22 => _22.desktop, 'access', _23 => _23.find, 'call', _24 => _24((row) => row.kind === "binary" && row.url && row.os === os)]), () => ( null));
|
|
1332
1332
|
return { known: true, download };
|
|
1333
1333
|
}
|
|
@@ -2629,7 +2629,7 @@ function useAccessCodeIntegration() {
|
|
|
2629
2629
|
const validate = async (email, code) => {
|
|
2630
2630
|
setIsValidating(true);
|
|
2631
2631
|
try {
|
|
2632
|
-
return await
|
|
2632
|
+
return await _chunkNONMZ5WJcjs.validateAccessCode.call(void 0, email, code, endpoints);
|
|
2633
2633
|
} finally {
|
|
2634
2634
|
setIsValidating(false);
|
|
2635
2635
|
}
|
|
@@ -2637,7 +2637,7 @@ function useAccessCodeIntegration() {
|
|
|
2637
2637
|
const consume = async (email, code) => {
|
|
2638
2638
|
setIsConsuming(true);
|
|
2639
2639
|
try {
|
|
2640
|
-
return await
|
|
2640
|
+
return await _chunkNONMZ5WJcjs.consumeAccessCode.call(void 0, email, code, endpoints);
|
|
2641
2641
|
} finally {
|
|
2642
2642
|
setIsConsuming(false);
|
|
2643
2643
|
}
|
|
@@ -2646,7 +2646,7 @@ function useAccessCodeIntegration() {
|
|
|
2646
2646
|
setIsValidating(true);
|
|
2647
2647
|
setIsConsuming(true);
|
|
2648
2648
|
try {
|
|
2649
|
-
return await
|
|
2649
|
+
return await _chunkNONMZ5WJcjs.validateAndConsumeAccessCode.call(void 0, email, code, endpoints);
|
|
2650
2650
|
} finally {
|
|
2651
2651
|
setIsValidating(false);
|
|
2652
2652
|
setIsConsuming(false);
|
|
@@ -2676,7 +2676,7 @@ async function revalidateMirror(mirrorPath) {
|
|
|
2676
2676
|
}
|
|
2677
2677
|
function useClaudeMirrorSrc(url) {
|
|
2678
2678
|
const endpoints = _chunkMZ4KBSH7cjs.useEndpointsRuntime.call(void 0, );
|
|
2679
|
-
const mirrorPath =
|
|
2679
|
+
const mirrorPath = _chunkNONMZ5WJcjs.toClaudeMirrorPath.call(void 0, url, _optionalChain([endpoints, 'optionalAccess', _32 => _32.storageViewBaseUrl]));
|
|
2680
2680
|
const [resolved, setResolved] = _react.useState.call(void 0, null);
|
|
2681
2681
|
const state = resolved && resolved.key === mirrorPath ? resolved.value : { src: null, status: mirrorPath ? "probing" : "absent" };
|
|
2682
2682
|
_react.useEffect.call(void 0, () => {
|
|
@@ -2779,8 +2779,8 @@ function useHumanitySignals() {
|
|
|
2779
2779
|
const startedAtRef = _react.useRef.call(void 0, mountedAt);
|
|
2780
2780
|
const getSignals = _react.useCallback.call(void 0,
|
|
2781
2781
|
() => ({
|
|
2782
|
-
[
|
|
2783
|
-
[
|
|
2782
|
+
[_chunkNONMZ5WJcjs.HONEYPOT_FIELD]: _nullishCoalesce(_optionalChain([ref, 'access', _34 => _34.current, 'optionalAccess', _35 => _35.value]), () => ( "")),
|
|
2783
|
+
[_chunkNONMZ5WJcjs.ELAPSED_MS_FIELD]: typeof performance !== "undefined" ? Math.round(performance.now() - startedAtRef.current) : 0
|
|
2784
2784
|
}),
|
|
2785
2785
|
[]
|
|
2786
2786
|
);
|
|
@@ -2788,7 +2788,7 @@ function useHumanitySignals() {
|
|
|
2788
2788
|
if (ref.current) ref.current.value = "";
|
|
2789
2789
|
if (typeof performance !== "undefined") startedAtRef.current = performance.now();
|
|
2790
2790
|
}, []);
|
|
2791
|
-
return { honeypotInputProps: { ref, name:
|
|
2791
|
+
return { honeypotInputProps: { ref, name: _chunkNONMZ5WJcjs.HONEYPOT_FIELD }, getSignals, resetSignals };
|
|
2792
2792
|
}
|
|
2793
2793
|
|
|
2794
2794
|
// src/hooks/use-form-rescue.ts
|
|
@@ -2801,9 +2801,9 @@ function readLocalDraft(formId) {
|
|
|
2801
2801
|
const raw = window.localStorage.getItem(STORAGE_PREFIX + formId);
|
|
2802
2802
|
if (!raw) return null;
|
|
2803
2803
|
const parsed = JSON.parse(raw);
|
|
2804
|
-
if (!
|
|
2804
|
+
if (!_chunkNONMZ5WJcjs.isFormAttemptId.call(void 0, parsed.attemptId) || typeof parsed.savedAt !== "number") return null;
|
|
2805
2805
|
if (Date.now() - parsed.savedAt > LOCAL_DRAFT_TTL_MS) return null;
|
|
2806
|
-
return { attemptId: parsed.attemptId, values:
|
|
2806
|
+
return { attemptId: parsed.attemptId, values: _chunkNONMZ5WJcjs.sanitizeRescueValues.call(void 0, parsed.values), savedAt: parsed.savedAt };
|
|
2807
2807
|
} catch (e8) {
|
|
2808
2808
|
return null;
|
|
2809
2809
|
}
|
|
@@ -2823,9 +2823,9 @@ function clearLocalDraft(formId) {
|
|
|
2823
2823
|
function completeFormRescue(form, attemptId) {
|
|
2824
2824
|
if (!form || typeof window === "undefined") return;
|
|
2825
2825
|
const local = readLocalDraft(form.id);
|
|
2826
|
-
|
|
2826
|
+
_chunkNONMZ5WJcjs.captureFormRescueEvent.call(void 0, _chunkNONMZ5WJcjs.FORM_RESCUE_EVENTS.submitted, {
|
|
2827
2827
|
form_id: form.id,
|
|
2828
|
-
attempt_id:
|
|
2828
|
+
attempt_id: _chunkNONMZ5WJcjs.isFormAttemptId.call(void 0, attemptId) ? attemptId : _nullishCoalesce(_optionalChain([local, 'optionalAccess', _36 => _36.attemptId]), () => ( null))
|
|
2829
2829
|
});
|
|
2830
2830
|
clearLocalDraft(form.id);
|
|
2831
2831
|
}
|
|
@@ -2886,7 +2886,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2886
2886
|
}).catch(() => void 0);
|
|
2887
2887
|
} catch (e12) {
|
|
2888
2888
|
}
|
|
2889
|
-
|
|
2889
|
+
_chunkNONMZ5WJcjs.captureFormRescueEvent.call(void 0, _chunkNONMZ5WJcjs.FORM_RESCUE_EVENTS.progress, {
|
|
2890
2890
|
form_id: formId,
|
|
2891
2891
|
attempt_id: attemptId(),
|
|
2892
2892
|
fields_filled: body.fields_filled,
|
|
@@ -2899,14 +2899,14 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2899
2899
|
_react.useEffect.call(void 0, () => {
|
|
2900
2900
|
if (!formId || typeof window === "undefined") return void 0;
|
|
2901
2901
|
let cancelled = false;
|
|
2902
|
-
const token = new URLSearchParams(window.location.search).get(
|
|
2902
|
+
const token = new URLSearchParams(window.location.search).get(_chunkNONMZ5WJcjs.FORM_RESCUE_RESUME_PARAM);
|
|
2903
2903
|
const restoreLocal = () => {
|
|
2904
2904
|
const local = readLocalDraft(formId);
|
|
2905
2905
|
if (!local) return;
|
|
2906
2906
|
attemptIdRef.current = local.attemptId;
|
|
2907
2907
|
if (Object.keys(local.values).length) _optionalChain([onRestoreRef, 'access', _41 => _41.current, 'optionalCall', _42 => _42(local.values)]);
|
|
2908
2908
|
};
|
|
2909
|
-
if (
|
|
2909
|
+
if (_chunkNONMZ5WJcjs.isResumeToken.call(void 0, token) && draftsUrl) {
|
|
2910
2910
|
_chunkFX35L4Y6cjs.contentFetch.call(void 0, `${draftsUrl}/resume/${encodeURIComponent(token)}`).then(async (res) => res.ok ? await res.json() : null).then((data) => {
|
|
2911
2911
|
if (cancelled) return;
|
|
2912
2912
|
if (!data || data.form_id !== formId) {
|
|
@@ -2914,8 +2914,8 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2914
2914
|
return;
|
|
2915
2915
|
}
|
|
2916
2916
|
resumeTokenRef.current = token;
|
|
2917
|
-
_optionalChain([onRestoreRef, 'access', _43 => _43.current, 'optionalCall', _44 => _44(
|
|
2918
|
-
|
|
2917
|
+
_optionalChain([onRestoreRef, 'access', _43 => _43.current, 'optionalCall', _44 => _44(_chunkNONMZ5WJcjs.sanitizeRescueValues.call(void 0, data.values))]);
|
|
2918
|
+
_chunkNONMZ5WJcjs.captureFormRescueEvent.call(void 0, _chunkNONMZ5WJcjs.FORM_RESCUE_EVENTS.resumed, { form_id: formId, attempt_id: attemptId() });
|
|
2919
2919
|
}).catch(() => {
|
|
2920
2920
|
if (!cancelled) restoreLocal();
|
|
2921
2921
|
});
|
|
@@ -2935,7 +2935,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2935
2935
|
timerRef.current = null;
|
|
2936
2936
|
}
|
|
2937
2937
|
send(true);
|
|
2938
|
-
|
|
2938
|
+
_chunkNONMZ5WJcjs.captureFormRescueEvent.call(void 0, _chunkNONMZ5WJcjs.FORM_RESCUE_EVENTS.abandoned, {
|
|
2939
2939
|
form_id: formId,
|
|
2940
2940
|
attempt_id: attemptId(),
|
|
2941
2941
|
last_field: _nullishCoalesce(_optionalChain([latestRef, 'access', _45 => _45.current, 'optionalAccess', _46 => _46.last_field]), () => ( null)),
|
|
@@ -2959,22 +2959,22 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2959
2959
|
const names = fieldNamesRef.current;
|
|
2960
2960
|
const visible = {};
|
|
2961
2961
|
for (const name of names) visible[name] = values[name];
|
|
2962
|
-
const filled =
|
|
2962
|
+
const filled = _chunkNONMZ5WJcjs.filledRescueFields.call(void 0, visible, names);
|
|
2963
2963
|
if (!filled.length) return;
|
|
2964
2964
|
if (!startedRef.current) {
|
|
2965
2965
|
startedRef.current = true;
|
|
2966
|
-
|
|
2966
|
+
_chunkNONMZ5WJcjs.captureFormRescueEvent.call(void 0, _chunkNONMZ5WJcjs.FORM_RESCUE_EVENTS.started, { form_id: formId, attempt_id: attemptId() });
|
|
2967
2967
|
}
|
|
2968
|
-
const clean =
|
|
2969
|
-
if (!leadCapturedRef.current &&
|
|
2968
|
+
const clean = _chunkNONMZ5WJcjs.sanitizeRescueValues.call(void 0, visible);
|
|
2969
|
+
if (!leadCapturedRef.current && _chunkNONMZ5WJcjs.isRescueEmail.call(void 0, clean.email)) {
|
|
2970
2970
|
leadCapturedRef.current = true;
|
|
2971
|
-
|
|
2971
|
+
_chunkNONMZ5WJcjs.captureFormRescueEvent.call(void 0, _chunkNONMZ5WJcjs.FORM_RESCUE_EVENTS.leadCaptured, { form_id: formId, attempt_id: attemptId() });
|
|
2972
2972
|
}
|
|
2973
2973
|
latestRef.current = {
|
|
2974
2974
|
values: clean,
|
|
2975
2975
|
fields_filled: filled,
|
|
2976
|
-
last_field:
|
|
2977
|
-
completion_pct:
|
|
2976
|
+
last_field: _chunkNONMZ5WJcjs.sanitizeRescueFieldName.call(void 0, lastField),
|
|
2977
|
+
completion_pct: _chunkNONMZ5WJcjs.rescueCompletionPct.call(void 0, filled.length, names.length)
|
|
2978
2978
|
};
|
|
2979
2979
|
dirtyRef.current = true;
|
|
2980
2980
|
writeLocalDraft(formId, { attemptId: attemptId(), values: clean, savedAt: Date.now() });
|
|
@@ -2982,15 +2982,15 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
2982
2982
|
timerRef.current = setTimeout(() => {
|
|
2983
2983
|
timerRef.current = null;
|
|
2984
2984
|
send(false);
|
|
2985
|
-
},
|
|
2985
|
+
}, _chunkNONMZ5WJcjs.FORM_RESCUE_DEBOUNCE_MS);
|
|
2986
2986
|
},
|
|
2987
2987
|
[attemptId, formId, send]
|
|
2988
2988
|
);
|
|
2989
2989
|
const submitFields = _react.useCallback.call(void 0, () => {
|
|
2990
2990
|
if (!formId) return {};
|
|
2991
2991
|
return {
|
|
2992
|
-
[
|
|
2993
|
-
...resumeTokenRef.current ? { [
|
|
2992
|
+
[_chunkNONMZ5WJcjs.FORM_RESCUE_ATTEMPT_FIELD]: attemptId(),
|
|
2993
|
+
...resumeTokenRef.current ? { [_chunkNONMZ5WJcjs.FORM_RESCUE_RESUME_FIELD]: resumeTokenRef.current } : {}
|
|
2994
2994
|
};
|
|
2995
2995
|
}, [attemptId, formId]);
|
|
2996
2996
|
const complete = _react.useCallback.call(void 0, () => {
|