@flamingo-stack/openframe-frontend-core 0.0.692 → 0.0.693-snapshot.20261002120603
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/chat-protocol/events.d.ts +3 -0
- package/dist/chat-protocol/events.d.ts.map +1 -1
- package/dist/chat-protocol/frames.d.ts +6 -0
- package/dist/chat-protocol/frames.d.ts.map +1 -1
- package/dist/chat-protocol/index.cjs +26 -1
- package/dist/chat-protocol/index.cjs.map +1 -1
- package/dist/chat-protocol/index.d.ts +1 -0
- package/dist/chat-protocol/index.d.ts.map +1 -1
- package/dist/chat-protocol/index.js +23 -2
- package/dist/chat-protocol/index.js.map +1 -1
- package/dist/chat-protocol/leading-frames.d.ts.map +1 -1
- package/dist/chat-protocol/progress.d.ts +35 -0
- package/dist/chat-protocol/progress.d.ts.map +1 -0
- package/dist/{chunk-GDZ7IC5B.js → chunk-234IIQIS.js} +2 -2
- package/dist/{chunk-KDCIYRZV.cjs → chunk-2EQED5SZ.cjs} +34 -34
- package/dist/{chunk-KDCIYRZV.cjs.map → chunk-2EQED5SZ.cjs.map} +1 -1
- package/dist/{chunk-JUNOY5HK.js → chunk-2HX6AADM.js} +15 -17
- package/dist/chunk-2HX6AADM.js.map +1 -0
- package/dist/{chunk-X5XFKI6N.js → chunk-33L2IR62.js} +3 -3
- package/dist/{chunk-A5NHAHV6.js → chunk-42LIHMRA.js} +4 -4
- package/dist/{chunk-MIZU2OTO.cjs → chunk-63BLVGXZ.cjs} +4 -4
- package/dist/{chunk-MIZU2OTO.cjs.map → chunk-63BLVGXZ.cjs.map} +1 -1
- package/dist/{chunk-TEIHEFXP.js → chunk-6ZSDKDOV.js} +8 -8
- package/dist/{chunk-UVUNBXS6.js → chunk-7IINE3MK.js} +48 -5
- package/dist/chunk-7IINE3MK.js.map +1 -0
- package/dist/{chunk-N3526CTH.cjs → chunk-7TO3CWPM.cjs} +3 -3
- package/dist/{chunk-N3526CTH.cjs.map → chunk-7TO3CWPM.cjs.map} +1 -1
- package/dist/{chunk-TXFGG47A.js → chunk-7VO6NC67.js} +4 -4
- package/dist/{chunk-SC44YJCF.js → chunk-A7RKT5SO.js} +2 -2
- package/dist/{chunk-Y7ZEVTLC.js → chunk-BW6YBATM.js} +141 -71
- package/dist/chunk-BW6YBATM.js.map +1 -0
- package/dist/{chunk-GZRU2A4L.cjs → chunk-C27F6GBZ.cjs} +790 -720
- package/dist/chunk-C27F6GBZ.cjs.map +1 -0
- package/dist/{chunk-DVSPRY2V.cjs → chunk-ESMDIJIN.cjs} +3 -3
- package/dist/{chunk-DVSPRY2V.cjs.map → chunk-ESMDIJIN.cjs.map} +1 -1
- package/dist/{chunk-EXWS2QSD.cjs → chunk-FNGX5WZM.cjs} +497 -474
- package/dist/chunk-FNGX5WZM.cjs.map +1 -0
- package/dist/{chunk-RK47E3PP.js → chunk-GWQCUC53.js} +4 -4
- package/dist/{chunk-AVAZ6BD6.js → chunk-HBMGSGZY.js} +6 -6
- package/dist/{chunk-HM7ZGABI.js → chunk-HEBLLLLD.js} +2 -2
- package/dist/{chunk-7BNWMOPM.cjs → chunk-HJZ3UTUE.cjs} +83 -83
- package/dist/{chunk-7BNWMOPM.cjs.map → chunk-HJZ3UTUE.cjs.map} +1 -1
- package/dist/{chunk-ATREVNIN.cjs → chunk-JB25CCOB.cjs} +47 -47
- package/dist/{chunk-ATREVNIN.cjs.map → chunk-JB25CCOB.cjs.map} +1 -1
- package/dist/{chunk-Q25VYAEL.cjs → chunk-JISKS7RJ.cjs} +26 -26
- package/dist/{chunk-Q25VYAEL.cjs.map → chunk-JISKS7RJ.cjs.map} +1 -1
- package/dist/{chunk-WTYQCT4A.cjs → chunk-K5GSLGV2.cjs} +18 -18
- package/dist/{chunk-WTYQCT4A.cjs.map → chunk-K5GSLGV2.cjs.map} +1 -1
- package/dist/{chunk-CG7OWW7X.cjs → chunk-K5K2FRQK.cjs} +19 -19
- package/dist/{chunk-CG7OWW7X.cjs.map → chunk-K5K2FRQK.cjs.map} +1 -1
- package/dist/{chunk-CKUPANVU.cjs → chunk-KBSL4FCL.cjs} +9 -9
- package/dist/{chunk-CKUPANVU.cjs.map → chunk-KBSL4FCL.cjs.map} +1 -1
- package/dist/{chunk-SDORFSFK.cjs → chunk-KDUDL4PB.cjs} +37 -37
- package/dist/{chunk-SDORFSFK.cjs.map → chunk-KDUDL4PB.cjs.map} +1 -1
- package/dist/{chunk-5XPK2QGU.cjs → chunk-KJHIFF6H.cjs} +16 -16
- package/dist/{chunk-5XPK2QGU.cjs.map → chunk-KJHIFF6H.cjs.map} +1 -1
- package/dist/{chunk-MCNQKS6I.js → chunk-LHYOESIQ.js} +4 -4
- package/dist/{chunk-DUURFYGS.cjs → chunk-LPFU6U7O.cjs} +5 -5
- package/dist/{chunk-DUURFYGS.cjs.map → chunk-LPFU6U7O.cjs.map} +1 -1
- package/dist/{chunk-ZAV2F4VX.js → chunk-N7HFUBOV.js} +3 -3
- package/dist/{chunk-53O6PQ3F.cjs → chunk-NDLFK57D.cjs} +7 -7
- package/dist/{chunk-53O6PQ3F.cjs.map → chunk-NDLFK57D.cjs.map} +1 -1
- package/dist/{chunk-Z7QCNCBN.js → chunk-O4RDXDVS.js} +12 -12
- package/dist/{chunk-F6LXGP6S.cjs → chunk-Q2B2MGFU.cjs} +7 -7
- package/dist/{chunk-F6LXGP6S.cjs.map → chunk-Q2B2MGFU.cjs.map} +1 -1
- package/dist/{chunk-CKO6NKNE.js → chunk-QP54LMXJ.js} +38 -15
- package/dist/{chunk-CKO6NKNE.js.map → chunk-QP54LMXJ.js.map} +1 -1
- package/dist/{chunk-QRA2JXE4.cjs → chunk-RE6PGOSS.cjs} +6 -8
- package/dist/chunk-RE6PGOSS.cjs.map +1 -0
- package/dist/{chunk-C2SVJVEB.js → chunk-SH5GPYSV.js} +2 -2
- package/dist/{chunk-KQZMM3QJ.cjs → chunk-SJFB4Z4L.cjs} +105 -105
- package/dist/{chunk-KQZMM3QJ.cjs.map → chunk-SJFB4Z4L.cjs.map} +1 -1
- package/dist/{chunk-7EPGJOKN.js → chunk-TA3JJFEO.js} +4 -4
- package/dist/{chunk-LYJJH4D6.js → chunk-TBR3UTFY.js} +6 -6
- package/dist/{chunk-USKQURNF.cjs → chunk-TG3VBMDG.cjs} +3 -3
- package/dist/{chunk-USKQURNF.cjs.map → chunk-TG3VBMDG.cjs.map} +1 -1
- package/dist/{chunk-IQTQIBZ3.js → chunk-TV5SZJ3N.js} +12 -12
- package/dist/{chunk-RLNNV46K.js → chunk-TXSQLORA.js} +6 -6
- package/dist/{chunk-LYQULSK4.js → chunk-UCXZRJIE.js} +7 -7
- package/dist/{chunk-I27PWVWE.cjs → chunk-WT4HURQN.cjs} +46 -3
- package/dist/chunk-WT4HURQN.cjs.map +1 -0
- package/dist/{chunk-XAOAYDGR.js → chunk-WZJWIZVH.js} +4 -4
- package/dist/{chunk-PKZGXRU2.js → chunk-XKNKGBUX.js} +10 -8
- package/dist/{chunk-PKZGXRU2.js.map → chunk-XKNKGBUX.js.map} +1 -1
- package/dist/{chunk-LNKLB7GM.cjs → chunk-XNTQHC26.cjs} +28 -28
- package/dist/{chunk-LNKLB7GM.cjs.map → chunk-XNTQHC26.cjs.map} +1 -1
- package/dist/{chunk-2YVTGPM7.js → chunk-XZILGCXJ.js} +2 -2
- package/dist/{chunk-DKJDO7YM.cjs → chunk-Y5AFMYYN.cjs} +46 -44
- package/dist/chunk-Y5AFMYYN.cjs.map +1 -0
- package/dist/{chunk-FTK3S57R.cjs → chunk-ZCPMWXIB.cjs} +25 -25
- package/dist/{chunk-FTK3S57R.cjs.map → chunk-ZCPMWXIB.cjs.map} +1 -1
- package/dist/{chunk-RTKF5AYA.cjs → chunk-ZUGAHQDB.cjs} +7 -7
- package/dist/{chunk-RTKF5AYA.cjs.map → chunk-ZUGAHQDB.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +21 -21
- package/dist/components/case-studies/index.js +8 -8
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/chat-typing-indicator.d.ts.map +1 -1
- package/dist/components/chat/cycling-phrase.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-unified-chat.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/chat/index.js +4 -4
- package/dist/components/chat/stream/chat-dialog-store.d.ts.map +1 -1
- package/dist/components/chat/stream/chat-stream-reducer.d.ts +4 -0
- package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +1 -1
- package/dist/components/chat/types/component.types.d.ts +2 -0
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/chat/types/unified-chat-state.types.d.ts +5 -0
- package/dist/components/chat/types/unified-chat-state.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +9 -9
- package/dist/components/contact/index.js +8 -8
- package/dist/components/docs/index.cjs +12 -12
- package/dist/components/docs/index.js +11 -11
- package/dist/components/embeds/index.cjs +9 -9
- package/dist/components/embeds/index.js +8 -8
- package/dist/components/faq/index.cjs +10 -10
- package/dist/components/faq/index.js +9 -9
- package/dist/components/features/index.cjs +8 -8
- package/dist/components/features/index.js +7 -7
- package/dist/components/help-center-pages/index.cjs +107 -107
- package/dist/components/help-center-pages/index.js +22 -22
- package/dist/components/index.cjs +69 -69
- package/dist/components/index.js +22 -22
- package/dist/components/meeting-scheduler/index.cjs +59 -59
- package/dist/components/meeting-scheduler/index.js +9 -9
- package/dist/components/navigation/app-layout-drawer.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +11 -11
- package/dist/components/navigation/index.js +10 -10
- package/dist/components/onboarding-guides/index.cjs +12 -12
- package/dist/components/onboarding-guides/index.js +11 -11
- package/dist/components/related-content/index.cjs +6 -6
- package/dist/components/related-content/index.js +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/tickets/index.js +12 -12
- package/dist/components/ui/index.cjs +8 -8
- package/dist/components/ui/index.js +7 -7
- package/dist/components/ui/markdown/engine.d.ts +0 -21
- package/dist/components/ui/markdown/engine.d.ts.map +1 -1
- package/dist/hooks/index.cjs +6 -6
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.js +5 -5
- package/dist/hooks/use-authed-asset-src.d.ts.map +1 -1
- package/dist/index.cjs +15 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -12
- package/dist/tailwind.config.cjs +14 -1
- package/dist/tailwind.config.cjs.map +1 -1
- package/dist/tailwind.config.js +14 -1
- package/dist/tailwind.config.js.map +1 -1
- package/eslint-config/README.md +13 -0
- package/eslint-config/base.js +15 -0
- package/eslint-config/webview-performance.js +75 -0
- package/package.json +1 -1
- package/src/chat-protocol/__tests__/progress.test.ts +39 -0
- package/src/chat-protocol/events.ts +3 -0
- package/src/chat-protocol/frames.ts +7 -0
- package/src/chat-protocol/index.ts +2 -0
- package/src/chat-protocol/leading-frames.ts +4 -1
- package/src/chat-protocol/progress.ts +55 -0
- package/src/components/chat/chat-message-enhanced.tsx +1 -1
- package/src/components/chat/chat-message-list.tsx +65 -15
- package/src/components/chat/chat-typing-indicator.tsx +18 -29
- package/src/components/chat/cycling-phrase.tsx +1 -11
- package/src/components/chat/embeddable-chat.tsx +14 -6
- package/src/components/chat/hooks/use-sse-chat-adapter.ts +2 -0
- package/src/components/chat/hooks/use-unified-chat.ts +1 -0
- package/src/components/chat/stream/__tests__/chat-stream-reducer-progress.test.ts +40 -0
- package/src/components/chat/stream/chat-dialog-store.ts +1 -0
- package/src/components/chat/stream/chat-stream-reducer.ts +13 -0
- package/src/components/chat/types/component.types.ts +2 -0
- package/src/components/chat/types/unified-chat-state.types.ts +6 -0
- package/src/components/navigation/app-layout-drawer.tsx +53 -7
- package/src/components/ui/__tests__/__snapshots__/markdown-parity.test.tsx.snap +29 -29
- package/src/components/ui/markdown/engine.tsx +56 -12
- package/src/hooks/use-authed-asset-src.ts +58 -6
- package/tailwind.config.ts +13 -0
- package/dist/chunk-DKJDO7YM.cjs.map +0 -1
- package/dist/chunk-EXWS2QSD.cjs.map +0 -1
- package/dist/chunk-GZRU2A4L.cjs.map +0 -1
- package/dist/chunk-I27PWVWE.cjs.map +0 -1
- package/dist/chunk-JUNOY5HK.js.map +0 -1
- package/dist/chunk-QRA2JXE4.cjs.map +0 -1
- package/dist/chunk-UVUNBXS6.js.map +0 -1
- package/dist/chunk-Y7ZEVTLC.js.map +0 -1
- /package/dist/{chunk-GDZ7IC5B.js.map → chunk-234IIQIS.js.map} +0 -0
- /package/dist/{chunk-X5XFKI6N.js.map → chunk-33L2IR62.js.map} +0 -0
- /package/dist/{chunk-A5NHAHV6.js.map → chunk-42LIHMRA.js.map} +0 -0
- /package/dist/{chunk-TEIHEFXP.js.map → chunk-6ZSDKDOV.js.map} +0 -0
- /package/dist/{chunk-TXFGG47A.js.map → chunk-7VO6NC67.js.map} +0 -0
- /package/dist/{chunk-SC44YJCF.js.map → chunk-A7RKT5SO.js.map} +0 -0
- /package/dist/{chunk-RK47E3PP.js.map → chunk-GWQCUC53.js.map} +0 -0
- /package/dist/{chunk-AVAZ6BD6.js.map → chunk-HBMGSGZY.js.map} +0 -0
- /package/dist/{chunk-HM7ZGABI.js.map → chunk-HEBLLLLD.js.map} +0 -0
- /package/dist/{chunk-MCNQKS6I.js.map → chunk-LHYOESIQ.js.map} +0 -0
- /package/dist/{chunk-ZAV2F4VX.js.map → chunk-N7HFUBOV.js.map} +0 -0
- /package/dist/{chunk-Z7QCNCBN.js.map → chunk-O4RDXDVS.js.map} +0 -0
- /package/dist/{chunk-C2SVJVEB.js.map → chunk-SH5GPYSV.js.map} +0 -0
- /package/dist/{chunk-7EPGJOKN.js.map → chunk-TA3JJFEO.js.map} +0 -0
- /package/dist/{chunk-LYJJH4D6.js.map → chunk-TBR3UTFY.js.map} +0 -0
- /package/dist/{chunk-IQTQIBZ3.js.map → chunk-TV5SZJ3N.js.map} +0 -0
- /package/dist/{chunk-RLNNV46K.js.map → chunk-TXSQLORA.js.map} +0 -0
- /package/dist/{chunk-LYQULSK4.js.map → chunk-UCXZRJIE.js.map} +0 -0
- /package/dist/{chunk-XAOAYDGR.js.map → chunk-WZJWIZVH.js.map} +0 -0
- /package/dist/{chunk-2YVTGPM7.js.map → chunk-XZILGCXJ.js.map} +0 -0
|
@@ -9,7 +9,7 @@ var _chunkLCMT2GZKcjs = require('./chunk-LCMT2GZK.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk63BLVGXZcjs = require('./chunk-63BLVGXZ.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -19,7 +19,7 @@ var _chunkMIZU2OTOcjs = require('./chunk-MIZU2OTO.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkRE6PGOSScjs = require('./chunk-RE6PGOSS.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -36,7 +36,7 @@ var _chunk6TNOVWO3cjs = require('./chunk-6TNOVWO3.cjs');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkWT4HURQNcjs = require('./chunk-WT4HURQN.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
@@ -144,9 +144,9 @@ function useDeferredError(error, value, delay = 1500) {
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
// src/hooks/ui/use-drag-and-drop-enabled.ts
|
|
147
|
-
var DRAG_AND_DROP_MEDIA_QUERY = `(pointer: fine) and (hover: hover) and ${
|
|
147
|
+
var DRAG_AND_DROP_MEDIA_QUERY = `(pointer: fine) and (hover: hover) and ${_chunkRE6PGOSScjs.breakpoints.md}`;
|
|
148
148
|
function useDragAndDropEnabled() {
|
|
149
|
-
return _nullishCoalesce(
|
|
149
|
+
return _nullishCoalesce(_chunkRE6PGOSScjs.useMediaQuery.call(void 0, DRAG_AND_DROP_MEDIA_QUERY), () => ( false));
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
// src/hooks/ui/use-focus-trap.ts
|
|
@@ -482,7 +482,7 @@ function useLocalStorage(key, initialValue, options) {
|
|
|
482
482
|
});
|
|
483
483
|
const validate = _optionalChain([options, 'optionalAccess', _17 => _17.validate]);
|
|
484
484
|
const storage = _react.useMemo.call(void 0,
|
|
485
|
-
() =>
|
|
485
|
+
() => _chunkWT4HURQNcjs.createLocalStorageAdapter.call(void 0, { key, validate, logTag: `[useLocalStorage:${key}]` }),
|
|
486
486
|
[key, validate]
|
|
487
487
|
);
|
|
488
488
|
const [storedValue, setStoredValue] = _react.useState.call(void 0, () => _nullishCoalesce(storage.load(), () => ( initialValue)));
|
|
@@ -766,7 +766,7 @@ function useSearch(config) {
|
|
|
766
766
|
searchFnRef.current = searchFn;
|
|
767
767
|
mapResultRef.current = mapResult;
|
|
768
768
|
});
|
|
769
|
-
const debouncedQuery =
|
|
769
|
+
const debouncedQuery = _chunkRE6PGOSScjs.useDebounce.call(void 0, query, debounceMs);
|
|
770
770
|
const clearResults = _react.useCallback.call(void 0, () => {
|
|
771
771
|
setResults(NO_RESULTS);
|
|
772
772
|
setError(null);
|
|
@@ -903,7 +903,7 @@ var _overlays = require('@react-aria/overlays');
|
|
|
903
903
|
var _lucidereact = require('lucide-react');
|
|
904
904
|
var _jsxruntime = require('react/jsx-runtime');
|
|
905
905
|
function renderPlatformIcon(platformName, className) {
|
|
906
|
-
const tinted = _chunkX7CEWD6Vcjs.cn.call(void 0, className,
|
|
906
|
+
const tinted = _chunkX7CEWD6Vcjs.cn.call(void 0, className, _chunkWT4HURQNcjs.getPlatformBrandClasses.call(void 0, platformName).accentText);
|
|
907
907
|
switch (platformName) {
|
|
908
908
|
case "openframe":
|
|
909
909
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -971,7 +971,7 @@ function getPlatformIconComponent(platformName, className = "h-6 w-6") {
|
|
|
971
971
|
return renderPlatformIcon(platformName, className);
|
|
972
972
|
}
|
|
973
973
|
function getPlatformColorClass(platformName) {
|
|
974
|
-
return
|
|
974
|
+
return _chunkWT4HURQNcjs.getPlatformBrandClasses.call(void 0, platformName).accentBg;
|
|
975
975
|
}
|
|
976
976
|
|
|
977
977
|
// src/hooks/platform/use-platform-config.ts
|
|
@@ -1237,7 +1237,7 @@ function CommandApprovalToast({
|
|
|
1237
1237
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "overflow-hidden", children: [
|
|
1238
1238
|
/* @__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: [
|
|
1239
1239
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h6", title: command, children: command }),
|
|
1240
|
-
toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1240
|
+
toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRE6PGOSScjs.ToolIcon, { toolType, size: 16 }) : null
|
|
1241
1241
|
] }),
|
|
1242
1242
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2 bg-ods-bg p-3", children: [
|
|
1243
1243
|
approvalDescription ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: approvalDescription }) : null,
|
|
@@ -1410,7 +1410,7 @@ function useContactSubmission(options = {}) {
|
|
|
1410
1410
|
if (isSubmitting) return;
|
|
1411
1411
|
setIsSubmitting(true);
|
|
1412
1412
|
try {
|
|
1413
|
-
const response = await
|
|
1413
|
+
const response = await _chunk63BLVGXZcjs.contentFetch.call(void 0, contactUrl, {
|
|
1414
1414
|
method: "POST",
|
|
1415
1415
|
headers: { "Content-Type": "application/json" },
|
|
1416
1416
|
body: JSON.stringify({
|
|
@@ -1420,7 +1420,7 @@ function useContactSubmission(options = {}) {
|
|
|
1420
1420
|
});
|
|
1421
1421
|
if (!response.ok) {
|
|
1422
1422
|
const failure = await response.json().catch(() => null);
|
|
1423
|
-
throw new Error(
|
|
1423
|
+
throw new Error(_chunkRE6PGOSScjs.apiErrorMessage.call(void 0, failure, "Failed to submit contact form"));
|
|
1424
1424
|
}
|
|
1425
1425
|
setIsSuccess(true);
|
|
1426
1426
|
const message = successToastMessage ? `Thank you! Your message has been sent. ${successToastMessage}` : "Thank you! Your message has been sent successfully.";
|
|
@@ -2105,7 +2105,7 @@ function variablesToUrlParams(variables, schema) {
|
|
|
2105
2105
|
const params = new URLSearchParams();
|
|
2106
2106
|
for (const [paramName, paramConfig] of Object.entries(schema)) {
|
|
2107
2107
|
const value = getNestedValue(variables, paramConfig.graphqlPath);
|
|
2108
|
-
if (!
|
|
2108
|
+
if (!_chunk63BLVGXZcjs.shouldIncludeInUrl.call(void 0, value, paramConfig)) {
|
|
2109
2109
|
continue;
|
|
2110
2110
|
}
|
|
2111
2111
|
if (Array.isArray(value)) {
|
|
@@ -2134,7 +2134,7 @@ function coerceScalar(value, type) {
|
|
|
2134
2134
|
return isNaN(num) ? null : num;
|
|
2135
2135
|
}
|
|
2136
2136
|
case "int":
|
|
2137
|
-
return
|
|
2137
|
+
return _chunk63BLVGXZcjs.positiveInt.call(void 0, value, null);
|
|
2138
2138
|
case "boolean":
|
|
2139
2139
|
return value === "true" || value === "1";
|
|
2140
2140
|
case "string":
|
|
@@ -2440,7 +2440,7 @@ function useApiParams(schema, options = {}) {
|
|
|
2440
2440
|
return flattened;
|
|
2441
2441
|
}, [stableSchema]);
|
|
2442
2442
|
const rawParams = _react.useMemo.call(void 0, () => {
|
|
2443
|
-
const result =
|
|
2443
|
+
const result = _chunk63BLVGXZcjs.parseSchemaParams.call(void 0, stableSchema, new URLSearchParams(searchString), {
|
|
2444
2444
|
absent: options.absent === "null" ? "null" : "undefined"
|
|
2445
2445
|
});
|
|
2446
2446
|
if (debug) {
|
|
@@ -2456,14 +2456,14 @@ function useApiParams(schema, options = {}) {
|
|
|
2456
2456
|
}
|
|
2457
2457
|
const params = stableParams;
|
|
2458
2458
|
const addParamToSearchParams = _react.useCallback.call(void 0, (searchParams, key, value) => {
|
|
2459
|
-
for (const [k, v] of
|
|
2459
|
+
for (const [k, v] of _chunk63BLVGXZcjs.createSearchParams.call(void 0, { [key]: value })) searchParams.append(k, v);
|
|
2460
2460
|
}, []);
|
|
2461
2461
|
const urlSearchParams = _react.useMemo.call(void 0, () => {
|
|
2462
2462
|
const newParams = new URLSearchParams();
|
|
2463
2463
|
for (const key of Object.keys(stableSchema)) {
|
|
2464
2464
|
const value = params[key];
|
|
2465
2465
|
const paramConfig = flattenedSchema[key];
|
|
2466
|
-
if (!
|
|
2466
|
+
if (!_chunk63BLVGXZcjs.shouldIncludeInUrl.call(void 0, value, paramConfig)) {
|
|
2467
2467
|
continue;
|
|
2468
2468
|
}
|
|
2469
2469
|
addParamToSearchParams(newParams, key, value);
|
|
@@ -2520,7 +2520,7 @@ function useApiParams(schema, options = {}) {
|
|
|
2520
2520
|
return;
|
|
2521
2521
|
}
|
|
2522
2522
|
const newParams = new URLSearchParams();
|
|
2523
|
-
if (
|
|
2523
|
+
if (_chunk63BLVGXZcjs.shouldIncludeInUrl.call(void 0, value, config)) {
|
|
2524
2524
|
addParamToSearchParams(newParams, key, value);
|
|
2525
2525
|
updateUrl(newParams);
|
|
2526
2526
|
} else {
|
|
@@ -2539,7 +2539,7 @@ function useApiParams(schema, options = {}) {
|
|
|
2539
2539
|
console.warn(`[useApiParams] Unknown parameter: ${key}`);
|
|
2540
2540
|
continue;
|
|
2541
2541
|
}
|
|
2542
|
-
if (
|
|
2542
|
+
if (_chunk63BLVGXZcjs.shouldIncludeInUrl.call(void 0, value, flattenedSchema[key])) {
|
|
2543
2543
|
addParamToSearchParams(newParams, key, value);
|
|
2544
2544
|
} else {
|
|
2545
2545
|
keysToRemove.push(key);
|
|
@@ -2564,7 +2564,7 @@ function useApiParams(schema, options = {}) {
|
|
|
2564
2564
|
}, [router, debug]);
|
|
2565
2565
|
const pendingParams = _react.useMemo.call(void 0, () => {
|
|
2566
2566
|
if (pendingTail === void 0 || pendingTail === searchString) return params;
|
|
2567
|
-
return
|
|
2567
|
+
return _chunk63BLVGXZcjs.parseSchemaParams.call(void 0, stableSchema, new URLSearchParams(pendingTail), {
|
|
2568
2568
|
absent: options.absent === "null" ? "null" : "undefined"
|
|
2569
2569
|
});
|
|
2570
2570
|
}, [pendingTail, searchString, params, stableSchema, options.absent]);
|
|
@@ -2738,7 +2738,7 @@ async function validateAccessCode(email, code, endpoints) {
|
|
|
2738
2738
|
});
|
|
2739
2739
|
if (!response.ok) {
|
|
2740
2740
|
const failure = await response.json().catch(() => null);
|
|
2741
|
-
throw new Error(
|
|
2741
|
+
throw new Error(_chunkRE6PGOSScjs.apiErrorMessage.call(void 0, failure, "Validation request failed"));
|
|
2742
2742
|
}
|
|
2743
2743
|
return await response.json();
|
|
2744
2744
|
} catch (error) {
|
|
@@ -2759,7 +2759,7 @@ async function consumeAccessCode(email, code, endpoints) {
|
|
|
2759
2759
|
});
|
|
2760
2760
|
if (!response.ok) {
|
|
2761
2761
|
const failure = await response.json().catch(() => null);
|
|
2762
|
-
throw new Error(
|
|
2762
|
+
throw new Error(_chunkRE6PGOSScjs.apiErrorMessage.call(void 0, failure, "Consumption request failed"));
|
|
2763
2763
|
}
|
|
2764
2764
|
return await response.json();
|
|
2765
2765
|
} catch (error) {
|
|
@@ -2960,15 +2960,15 @@ function useScrollToHash(readyDep = true, options) {
|
|
|
2960
2960
|
}
|
|
2961
2961
|
};
|
|
2962
2962
|
const tryScrollToHash = () => {
|
|
2963
|
-
const hash =
|
|
2963
|
+
const hash = _chunkRE6PGOSScjs.normalizeHashFragment.call(void 0, window.location.hash).slice(1);
|
|
2964
2964
|
if (!hash) return;
|
|
2965
2965
|
cancelPoll();
|
|
2966
2966
|
let frames = 0;
|
|
2967
2967
|
const tick = () => {
|
|
2968
|
-
const el =
|
|
2968
|
+
const el = _chunkRE6PGOSScjs.getHashTargetElement.call(void 0, hash);
|
|
2969
2969
|
if (el) {
|
|
2970
2970
|
rafId = null;
|
|
2971
|
-
|
|
2971
|
+
_chunkRE6PGOSScjs.scrollElementIntoView.call(void 0, el, { headerOffset });
|
|
2972
2972
|
return;
|
|
2973
2973
|
}
|
|
2974
2974
|
if (frames++ < MAX_POLL_FRAMES) {
|
|
@@ -3316,7 +3316,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
3316
3316
|
...resumeTokenRef.current ? { resume_token: resumeTokenRef.current } : {}
|
|
3317
3317
|
};
|
|
3318
3318
|
try {
|
|
3319
|
-
void
|
|
3319
|
+
void _chunk63BLVGXZcjs.contentFetch.call(void 0, draftsUrl, {
|
|
3320
3320
|
method: "POST",
|
|
3321
3321
|
headers: { "Content-Type": "application/json" },
|
|
3322
3322
|
body: JSON.stringify({ ...body, ..._nullishCoalesce(_optionalChain([getSignalsRef, 'access', _68 => _68.current, 'optionalCall', _69 => _69()]), () => ( {})) }),
|
|
@@ -3345,7 +3345,7 @@ function useFormRescue({ form, fieldNames, onRestore, getSignals }) {
|
|
|
3345
3345
|
if (Object.keys(local.values).length) _optionalChain([onRestoreRef, 'access', _70 => _70.current, 'optionalCall', _71 => _71(local.values)]);
|
|
3346
3346
|
};
|
|
3347
3347
|
if (isResumeToken(token) && draftsUrl) {
|
|
3348
|
-
|
|
3348
|
+
_chunk63BLVGXZcjs.contentFetch.call(void 0, `${draftsUrl}/resume/${encodeURIComponent(token)}`).then(async (res) => res.ok ? await res.json() : null).then((data) => {
|
|
3349
3349
|
if (cancelled) return;
|
|
3350
3350
|
if (!data || data.form_id !== formId) {
|
|
3351
3351
|
restoreLocal();
|
|
@@ -3597,4 +3597,4 @@ function useRescuedForm(form, { rescue, fields, getSignals, fieldPath }) {
|
|
|
3597
3597
|
|
|
3598
3598
|
|
|
3599
3599
|
exports.useAutoLimitTags = useAutoLimitTags; exports.useKeyboardCollisionPadding = useKeyboardCollisionPadding; exports.useDeferredError = useDeferredError; exports.DRAG_AND_DROP_MEDIA_QUERY = DRAG_AND_DROP_MEDIA_QUERY; exports.useDragAndDropEnabled = useDragAndDropEnabled; exports.useFocusTrap = useFocusTrap; exports.useHorizontalScrollbar = useHorizontalScrollbar; exports.useLocalStorage = useLocalStorage; exports.useMemoizedCallback = useMemoizedCallback; exports.useNotificationPermission = useNotificationPermission; exports.useOnboardingState = useOnboardingState; exports.useSearch = useSearch; exports.useTablePagination = useTablePagination; exports.useThrottle = useThrottle; exports.useWindowSize = useWindowSize; exports.usePreventScroll = _overlays.usePreventScroll; exports.platformIcons = platformIcons; exports.transformPlatformConfigsToOptions = transformPlatformConfigsToOptions; exports.getPlatformIcon = getPlatformIcon; exports.getSmallPlatformIcon = getSmallPlatformIcon; exports.getPlatformIconComponent = getPlatformIconComponent; exports.usePlatformConfig = usePlatformConfig; exports.usePlatformByValue = usePlatformByValue; exports.useValidatePlatform = useValidatePlatform; exports.dotColorByVariant = dotColorByVariant; exports.progressColorByVariant = progressColorByVariant; exports.ToastCard = ToastCard; exports.CommandApprovalToast = CommandApprovalToast; exports.Toaster = Toaster; exports.showToast = showToast; exports.showCommandApprovalToast = showCommandApprovalToast; exports.toast = toast; exports.useToast = useToast; exports.useContactSubmission = useContactSubmission; exports.useCopyToClipboard = useCopyToClipboard; exports.configureBatchImageFetch = configureBatchImageFetch; exports.batchFetchAuthenticatedImages = batchFetchAuthenticatedImages; exports.useBatchImages = useBatchImages; exports.configureAuthenticatedImage = configureAuthenticatedImage; exports.useAuthenticatedImage = useAuthenticatedImage; exports.flattenQueryVariables = flattenQueryVariables; exports.mergeDefaults = mergeDefaults; exports.validateSchema = validateSchema; exports.getArrayParams = getArrayParams; exports.getRequiredParams = getRequiredParams; exports.extractVariablesFromQuery = extractVariablesFromQuery; exports.isScalarType = isScalarType; exports.isInputObjectType = isInputObjectType; exports.GraphQLIntrospector = GraphQLIntrospector; exports.introspector = introspector; exports.urlParamsToVariables = urlParamsToVariables; exports.variablesToUrlParams = variablesToUrlParams; exports.coerceValue = coerceValue; exports.setNestedValue = setNestedValue; exports.getNestedValue = getNestedValue; exports.mergeVariables = mergeVariables; exports.clearParams = clearParams; exports.validateVariables = validateVariables; exports.useQueryParams = useQueryParams; exports.useApiParams = useApiParams; exports.useCursorPaginationState = useCursorPaginationState; exports.useNatsClient = useNatsClient; exports.validateAccessCode = validateAccessCode; exports.consumeAccessCode = consumeAccessCode; exports.validateAndConsumeAccessCode = validateAndConsumeAccessCode; exports.useAccessCodeIntegration = useAccessCodeIntegration; exports.toGoogleSheetsEmbedUrl = toGoogleSheetsEmbedUrl; exports.toGoogleSheetsOriginalUrl = toGoogleSheetsOriginalUrl; exports.toFigmaEmbedUrl = toFigmaEmbedUrl; exports.isFigmaSlidesUrl = isFigmaSlidesUrl; exports.toFigmaOriginalUrl = toFigmaOriginalUrl; exports.toClaudeMirrorPath = toClaudeMirrorPath; exports.toClaudeEmbedUrl = toClaudeEmbedUrl; exports.useClaudeMirrorSrc = useClaudeMirrorSrc; exports.useScrollToHash = useScrollToHash; exports.HONEYPOT_FIELD = HONEYPOT_FIELD; exports.ELAPSED_MS_FIELD = ELAPSED_MS_FIELD; exports.DEFAULT_MIN_FILL_MS = DEFAULT_MIN_FILL_MS; exports.HUMANITY_SIGNAL_KEYS = HUMANITY_SIGNAL_KEYS; exports.isHumanitySignalKey = isHumanitySignalKey; exports.extractHumanitySignals = extractHumanitySignals; exports.findHoneypotCopySource = findHoneypotCopySource; exports.evaluateHumanitySignals = evaluateHumanitySignals; exports.splitCsvEnv = splitCsvEnv; exports.useHumanitySignals = useHumanitySignals; exports.defineRescueForm = defineRescueForm; exports.getRescueForm = getRescueForm; exports.listRescueForms = listRescueForms; exports.RESCUE_FORMS = RESCUE_FORMS; exports.FORM_RESCUE_VALUE_FIELDS = FORM_RESCUE_VALUE_FIELDS; exports.isExcludedRescueField = isExcludedRescueField; exports.FORM_RESCUE_MAX_VALUE_CHARS = FORM_RESCUE_MAX_VALUE_CHARS; exports.FORM_RESCUE_DEBOUNCE_MS = FORM_RESCUE_DEBOUNCE_MS; exports.FORM_RESCUE_MAX_FIELDS = FORM_RESCUE_MAX_FIELDS; exports.FORM_RESCUE_ATTEMPT_FIELD = FORM_RESCUE_ATTEMPT_FIELD; exports.FORM_RESCUE_RESUME_FIELD = FORM_RESCUE_RESUME_FIELD; exports.FORM_RESCUE_SUBMIT_KEYS = FORM_RESCUE_SUBMIT_KEYS; exports.FORM_RESCUE_RESUME_PARAM = FORM_RESCUE_RESUME_PARAM; exports.isResumeToken = isResumeToken; exports.FORM_DRAFT_STATUSES = FORM_DRAFT_STATUSES; exports.FORM_RESCUE_SKIP_REASONS = FORM_RESCUE_SKIP_REASONS; exports.isRescueEmail = isRescueEmail; exports.isFormAttemptId = isFormAttemptId; exports.sanitizeRescueValues = sanitizeRescueValues; exports.filledRescueFields = filledRescueFields; exports.rescueCompletionPct = rescueCompletionPct; exports.sanitizeRescueFieldName = sanitizeRescueFieldName; exports.parseFormDraftSaveRequest = parseFormDraftSaveRequest; exports.FORM_RESCUE_EVENTS = FORM_RESCUE_EVENTS; exports.captureFormRescueEvent = captureFormRescueEvent; exports.completeFormRescue = completeFormRescue; exports.useFormRescue = useFormRescue; exports.useRescuedForm = useRescuedForm;
|
|
3600
|
-
//# sourceMappingURL=chunk-
|
|
3600
|
+
//# sourceMappingURL=chunk-XNTQHC26.cjs.map
|