@flamingo-stack/openframe-frontend-core 0.0.490-snapshot.20260728181420 → 0.0.490
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/{chunk-VD4QDSP7.cjs → chunk-2MKUHJ3O.cjs} +40 -40
- package/dist/{chunk-VD4QDSP7.cjs.map → chunk-2MKUHJ3O.cjs.map} +1 -1
- package/dist/{chunk-EHHX22JL.cjs → chunk-3IEVA5AO.cjs} +93 -93
- package/dist/{chunk-EHHX22JL.cjs.map → chunk-3IEVA5AO.cjs.map} +1 -1
- package/dist/{chunk-IUGJAILN.js → chunk-6CFFISUC.js} +3 -3
- package/dist/{chunk-CZTKQVIQ.js → chunk-6CJ2K7BD.js} +3 -3
- package/dist/{chunk-ZEC5U5T7.js → chunk-6QK3ONDD.js} +2 -2
- package/dist/{chunk-GL33BHGZ.cjs → chunk-7I42V2OD.cjs} +73 -73
- package/dist/{chunk-GL33BHGZ.cjs.map → chunk-7I42V2OD.cjs.map} +1 -1
- package/dist/{chunk-GTMW4KY7.js → chunk-AIRNG27G.js} +6 -6
- package/dist/{chunk-ITV6LSG7.cjs → chunk-AW63ET2A.cjs} +19 -19
- package/dist/{chunk-ITV6LSG7.cjs.map → chunk-AW63ET2A.cjs.map} +1 -1
- package/dist/{chunk-TTYJAZ7P.cjs → chunk-BIKOJ4FH.cjs} +32 -58
- package/dist/chunk-BIKOJ4FH.cjs.map +1 -0
- package/dist/{chunk-35CTCUJ7.js → chunk-BZMOEWWS.js} +6 -6
- package/dist/{chunk-QNFAZIFC.cjs → chunk-D5LQMRPU.cjs} +5 -5
- package/dist/{chunk-QNFAZIFC.cjs.map → chunk-D5LQMRPU.cjs.map} +1 -1
- package/dist/{chunk-T4BUS6JV.js → chunk-EGXCWZYP.js} +3 -3
- package/dist/{chunk-HRMOCJKU.cjs → chunk-EJQUYZXF.cjs} +12 -12
- package/dist/{chunk-HRMOCJKU.cjs.map → chunk-EJQUYZXF.cjs.map} +1 -1
- package/dist/{chunk-J2V4B6FF.cjs → chunk-FY5XAW3H.cjs} +18 -18
- package/dist/{chunk-J2V4B6FF.cjs.map → chunk-FY5XAW3H.cjs.map} +1 -1
- package/dist/{chunk-YKE2KZ2Y.cjs → chunk-GMPYR3MX.cjs} +33 -33
- package/dist/{chunk-YKE2KZ2Y.cjs.map → chunk-GMPYR3MX.cjs.map} +1 -1
- package/dist/{chunk-6O3YTVLG.cjs → chunk-GUTYUMGV.cjs} +12 -12
- package/dist/{chunk-6O3YTVLG.cjs.map → chunk-GUTYUMGV.cjs.map} +1 -1
- package/dist/{chunk-QKWOBV55.js → chunk-GZK7FWJJ.js} +12 -12
- package/dist/chunk-GZK7FWJJ.js.map +1 -0
- package/dist/{chunk-7NRRONK5.cjs → chunk-IEZ3YBAP.cjs} +32 -32
- package/dist/{chunk-7NRRONK5.cjs.map → chunk-IEZ3YBAP.cjs.map} +1 -1
- package/dist/{chunk-THC3K262.cjs → chunk-KP5KRRD6.cjs} +3 -3
- package/dist/{chunk-THC3K262.cjs.map → chunk-KP5KRRD6.cjs.map} +1 -1
- package/dist/{chunk-U2JIGUXF.js → chunk-MPYDX5WX.js} +4 -4
- package/dist/{chunk-ZDUJ6BDI.js → chunk-NGEFYPY7.js} +4 -4
- package/dist/{chunk-CYIUPI7J.js → chunk-OQIMH2WQ.js} +1004 -1167
- package/dist/{chunk-CYIUPI7J.js.map → chunk-OQIMH2WQ.js.map} +1 -1
- package/dist/{chunk-WEUNPE3S.js → chunk-PB3BTZDU.js} +113 -139
- package/dist/chunk-PB3BTZDU.js.map +1 -0
- package/dist/{chunk-6WTCJI5R.js → chunk-RW2LPL72.js} +2 -2
- package/dist/{chunk-SGL6URIJ.cjs → chunk-STYA77PH.cjs} +12 -12
- package/dist/chunk-STYA77PH.cjs.map +1 -0
- package/dist/{chunk-PVSXTCJY.cjs → chunk-UZZT65PQ.cjs} +40 -40
- package/dist/{chunk-PVSXTCJY.cjs.map → chunk-UZZT65PQ.cjs.map} +1 -1
- package/dist/{chunk-2YQK6LHR.js → chunk-VDZO6IDR.js} +5 -5
- package/dist/{chunk-QF54RPHZ.js → chunk-VL2YMDPH.js} +6 -6
- package/dist/{chunk-2RTNC3KP.cjs → chunk-VUXNXWOQ.cjs} +873 -1036
- package/dist/chunk-VUXNXWOQ.cjs.map +1 -0
- package/dist/{chunk-6XNWT2KC.js → chunk-WLM3F3WU.js} +3 -3
- package/dist/components/case-studies/index.cjs +10 -10
- package/dist/components/case-studies/index.js +4 -4
- package/dist/components/chat/index.cjs +4 -4
- package/dist/components/chat/index.js +3 -3
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/contact/index.js +4 -4
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/docs/index.js +6 -6
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/embeds/index.js +4 -4
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/faq/index.js +5 -5
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/features/index.js +3 -3
- package/dist/components/features/select-button.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +23 -23
- package/dist/components/help-center-pages/index.js +14 -14
- package/dist/components/index.cjs +161 -161
- package/dist/components/index.js +12 -12
- package/dist/components/layout/page-layout.d.ts +1 -7
- package/dist/components/layout/page-layout.d.ts.map +1 -1
- package/dist/components/layout/title-block.d.ts +1 -23
- package/dist/components/layout/title-block.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +4 -4
- package/dist/components/navigation/index.js +3 -3
- package/dist/components/onboarding-guides/index.cjs +8 -8
- package/dist/components/onboarding-guides/index.js +7 -7
- package/dist/components/related-content/index.cjs +6 -6
- package/dist/components/related-content/index.js +5 -5
- package/dist/components/tickets/index.cjs +7 -7
- package/dist/components/tickets/index.js +6 -6
- package/dist/components/ui/autocomplete.d.ts.map +1 -1
- package/dist/components/ui/checkbox-block.d.ts.map +1 -1
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/field-wrapper.d.ts +1 -10
- package/dist/components/ui/field-wrapper.d.ts.map +1 -1
- package/dist/components/ui/file-manager/index.cjs +50 -50
- package/dist/components/ui/file-manager/index.js +1 -1
- package/dist/components/ui/floating-tooltip.d.ts +1 -8
- package/dist/components/ui/floating-tooltip.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +4 -4
- package/dist/components/ui/index.js +3 -3
- package/dist/components/ui/input-trigger.d.ts.map +1 -1
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/page-actions.d.ts +1 -7
- package/dist/components/ui/page-actions.d.ts.map +1 -1
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/search-input.d.ts.map +1 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/tab-navigation.d.ts +1 -10
- package/dist/components/ui/tab-navigation.d.ts.map +1 -1
- package/dist/components/ui/tag-search-input.d.ts.map +1 -1
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/truncate-text.d.ts +2 -2
- package/dist/components/ui/truncate-text.d.ts.map +1 -1
- package/dist/hooks/index.cjs +2 -4
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.js +1 -3
- package/dist/hooks/ui/index.d.ts +0 -1
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/index.cjs +4 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -5
- package/package.json +1 -1
- package/src/components/features/select-button.tsx +1 -4
- package/src/components/layout/page-layout.tsx +0 -16
- package/src/components/layout/title-block.tsx +7 -106
- package/src/components/ui/.field-wrapper.md +4 -5
- package/src/components/ui/.tab-navigation.md +1 -14
- package/src/components/ui/autocomplete.tsx +1 -13
- package/src/components/ui/button/button.tsx +1 -1
- package/src/components/ui/checkbox-block.tsx +3 -27
- package/src/components/ui/date-picker.tsx +1 -15
- package/src/components/ui/field-wrapper.tsx +6 -12
- package/src/components/ui/floating-tooltip.tsx +1 -9
- package/src/components/ui/input-trigger.tsx +1 -8
- package/src/components/ui/input.tsx +1 -8
- package/src/components/ui/page-actions.tsx +30 -142
- package/src/components/ui/radio-group.tsx +3 -28
- package/src/components/ui/search-input.tsx +1 -2
- package/src/components/ui/select.tsx +0 -7
- package/src/components/ui/tab-navigation.tsx +4 -26
- package/src/components/ui/tag-search-input.tsx +2 -9
- package/src/components/ui/textarea.tsx +1 -8
- package/src/components/ui/truncate-text.tsx +18 -3
- package/src/hooks/ui/index.ts +0 -1
- package/dist/chunk-2RTNC3KP.cjs.map +0 -1
- package/dist/chunk-QKWOBV55.js.map +0 -1
- package/dist/chunk-SGL6URIJ.cjs.map +0 -1
- package/dist/chunk-TTYJAZ7P.cjs.map +0 -1
- package/dist/chunk-WEUNPE3S.js.map +0 -1
- package/dist/hooks/ui/use-is-truncated.d.ts +0 -33
- package/dist/hooks/ui/use-is-truncated.d.ts.map +0 -1
- package/src/hooks/ui/use-is-truncated.ts +0 -66
- /package/dist/{chunk-IUGJAILN.js.map → chunk-6CFFISUC.js.map} +0 -0
- /package/dist/{chunk-CZTKQVIQ.js.map → chunk-6CJ2K7BD.js.map} +0 -0
- /package/dist/{chunk-ZEC5U5T7.js.map → chunk-6QK3ONDD.js.map} +0 -0
- /package/dist/{chunk-GTMW4KY7.js.map → chunk-AIRNG27G.js.map} +0 -0
- /package/dist/{chunk-35CTCUJ7.js.map → chunk-BZMOEWWS.js.map} +0 -0
- /package/dist/{chunk-T4BUS6JV.js.map → chunk-EGXCWZYP.js.map} +0 -0
- /package/dist/{chunk-U2JIGUXF.js.map → chunk-MPYDX5WX.js.map} +0 -0
- /package/dist/{chunk-ZDUJ6BDI.js.map → chunk-NGEFYPY7.js.map} +0 -0
- /package/dist/{chunk-6WTCJI5R.js.map → chunk-RW2LPL72.js.map} +0 -0
- /package/dist/{chunk-2YQK6LHR.js.map → chunk-VDZO6IDR.js.map} +0 -0
- /package/dist/{chunk-QF54RPHZ.js.map → chunk-VL2YMDPH.js.map} +0 -0
- /package/dist/{chunk-6XNWT2KC.js.map → chunk-WLM3F3WU.js.map} +0 -0
|
@@ -518,31 +518,6 @@ function useImageEdgeColor(imageUrl, fallback = "#000000") {
|
|
|
518
518
|
return color;
|
|
519
519
|
}
|
|
520
520
|
|
|
521
|
-
// src/hooks/ui/use-is-truncated.ts
|
|
522
|
-
|
|
523
|
-
function useIsTruncated(value, options) {
|
|
524
|
-
const multiline = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _8 => _8.multiline]), () => ( false));
|
|
525
|
-
const [element, setElement] = _react.useState.call(void 0, null);
|
|
526
|
-
const [isTruncated, setIsTruncated] = _react.useState.call(void 0, false);
|
|
527
|
-
const ref = _react.useCallback.call(void 0, (node) => setElement(node), []);
|
|
528
|
-
_react.useEffect.call(void 0, () => {
|
|
529
|
-
if (!element) {
|
|
530
|
-
setIsTruncated(false);
|
|
531
|
-
return;
|
|
532
|
-
}
|
|
533
|
-
const check = () => {
|
|
534
|
-
setIsTruncated(
|
|
535
|
-
multiline ? element.scrollHeight > element.clientHeight + 1 : element.scrollWidth > element.clientWidth + 1
|
|
536
|
-
);
|
|
537
|
-
};
|
|
538
|
-
check();
|
|
539
|
-
const observer = new ResizeObserver(check);
|
|
540
|
-
observer.observe(element);
|
|
541
|
-
return () => observer.disconnect();
|
|
542
|
-
}, [element, value, multiline]);
|
|
543
|
-
return { ref, isTruncated };
|
|
544
|
-
}
|
|
545
|
-
|
|
546
521
|
// src/hooks/ui/use-local-storage.ts
|
|
547
522
|
|
|
548
523
|
function useLocalStorage(key, initialValue) {
|
|
@@ -635,7 +610,7 @@ function useMarqueeEngine(options) {
|
|
|
635
610
|
const wrap = _react.useCallback.call(void 0, (pos) => {
|
|
636
611
|
const half = optsRef.current.getWrapSize();
|
|
637
612
|
if (half <= 0) return pos;
|
|
638
|
-
const min = _nullishCoalesce(_optionalChain([optsRef, 'access',
|
|
613
|
+
const min = _nullishCoalesce(_optionalChain([optsRef, 'access', _8 => _8.current, 'access', _9 => _9.getWrapMin, 'optionalCall', _10 => _10()]), () => ( 0));
|
|
639
614
|
while (pos >= min + half) pos -= half;
|
|
640
615
|
while (pos < min) pos += half;
|
|
641
616
|
return pos;
|
|
@@ -679,7 +654,7 @@ function useMarqueeEngine(options) {
|
|
|
679
654
|
} else if (external !== null) {
|
|
680
655
|
posRef.current = external;
|
|
681
656
|
}
|
|
682
|
-
_optionalChain([opts, 'access',
|
|
657
|
+
_optionalChain([opts, 'access', _11 => _11.onAfterFrame, 'optionalCall', _12 => _12()]);
|
|
683
658
|
raf = requestAnimationFrame(tick);
|
|
684
659
|
};
|
|
685
660
|
raf = requestAnimationFrame(tick);
|
|
@@ -748,16 +723,16 @@ function useNotificationPermission() {
|
|
|
748
723
|
sync();
|
|
749
724
|
let cancelled = false;
|
|
750
725
|
let status;
|
|
751
|
-
_optionalChain([navigator, 'access',
|
|
726
|
+
_optionalChain([navigator, 'access', _13 => _13.permissions, 'optionalAccess', _14 => _14.query, 'call', _15 => _15({ name: "notifications" }), 'access', _16 => _16.then, 'call', _17 => _17((s) => {
|
|
752
727
|
if (cancelled) return;
|
|
753
728
|
status = s;
|
|
754
729
|
s.addEventListener("change", sync);
|
|
755
|
-
}), 'access',
|
|
730
|
+
}), 'access', _18 => _18.catch, 'call', _19 => _19(() => void 0)]);
|
|
756
731
|
document.addEventListener("visibilitychange", sync);
|
|
757
732
|
window.addEventListener("focus", sync);
|
|
758
733
|
return () => {
|
|
759
734
|
cancelled = true;
|
|
760
|
-
_optionalChain([status, 'optionalAccess',
|
|
735
|
+
_optionalChain([status, 'optionalAccess', _20 => _20.removeEventListener, 'call', _21 => _21("change", sync)]);
|
|
761
736
|
document.removeEventListener("visibilitychange", sync);
|
|
762
737
|
window.removeEventListener("focus", sync);
|
|
763
738
|
};
|
|
@@ -1393,7 +1368,7 @@ var toolIconMap = {
|
|
|
1393
1368
|
[ToolTypeValues.OSQUERY]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGD345ZVcjs.OsqueryLogoGreyIcon, { size, className }),
|
|
1394
1369
|
[ToolTypeValues.SYSTEM]: () => null
|
|
1395
1370
|
};
|
|
1396
|
-
var ToolIcon = ({ toolType, size = 16, className }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([toolIconMap, 'access',
|
|
1371
|
+
var ToolIcon = ({ toolType, size = 16, className }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([toolIconMap, 'access', _22 => _22[toolType], 'optionalCall', _23 => _23(size, className)]), () => ( null)) });
|
|
1397
1372
|
ToolIcon.displayName = "ToolIcon";
|
|
1398
1373
|
|
|
1399
1374
|
// src/components/ui/toaster.tsx
|
|
@@ -1512,11 +1487,11 @@ function CommandApprovalToast({
|
|
|
1512
1487
|
}) {
|
|
1513
1488
|
const [expanded, setExpanded] = React2.useState(defaultExpanded);
|
|
1514
1489
|
const handleApprove = () => {
|
|
1515
|
-
_optionalChain([onApprove, 'optionalCall',
|
|
1490
|
+
_optionalChain([onApprove, 'optionalCall', _24 => _24()]);
|
|
1516
1491
|
_sonner.toast.dismiss(id);
|
|
1517
1492
|
};
|
|
1518
1493
|
const handleReject = () => {
|
|
1519
|
-
_optionalChain([onReject, 'optionalCall',
|
|
1494
|
+
_optionalChain([onReject, 'optionalCall', _25 => _25()]);
|
|
1520
1495
|
_sonner.toast.dismiss(id);
|
|
1521
1496
|
};
|
|
1522
1497
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -1739,7 +1714,7 @@ function createLocalStorageAdapter(options) {
|
|
|
1739
1714
|
const tag = _nullishCoalesce(options.logTag, () => ( "[local-storage]"));
|
|
1740
1715
|
const backend = _nullishCoalesce(options.backend, () => ( "local"));
|
|
1741
1716
|
const resolveKey = () => {
|
|
1742
|
-
const ns = _optionalChain([options, 'access',
|
|
1717
|
+
const ns = _optionalChain([options, 'access', _26 => _26.namespace, 'optionalCall', _27 => _27()]);
|
|
1743
1718
|
return ns ? `${ns}.${options.key}` : options.key;
|
|
1744
1719
|
};
|
|
1745
1720
|
return {
|
|
@@ -1830,7 +1805,7 @@ function getEmbedProxyAuth() {
|
|
|
1830
1805
|
}
|
|
1831
1806
|
function getPersistedProxyEmail() {
|
|
1832
1807
|
const persisted = adapter.load();
|
|
1833
|
-
return _nullishCoalesce(_optionalChain([persisted, 'optionalAccess',
|
|
1808
|
+
return _nullishCoalesce(_optionalChain([persisted, 'optionalAccess', _28 => _28.email, 'access', _29 => _29.trim, 'call', _30 => _30(), 'access', _31 => _31.toLowerCase, 'call', _32 => _32()]), () => ( null));
|
|
1834
1809
|
}
|
|
1835
1810
|
function setEmbedProxyAuth(value) {
|
|
1836
1811
|
adapter.save({
|
|
@@ -1847,15 +1822,15 @@ function clearEmbedProxyAuth() {
|
|
|
1847
1822
|
function applyProxyAuth(url, baseHeaders = { "Content-Type": "application/json" }) {
|
|
1848
1823
|
const auth = getEmbedProxyAuth();
|
|
1849
1824
|
const headers = { ...baseHeaders };
|
|
1850
|
-
if (_optionalChain([auth, 'optionalAccess',
|
|
1825
|
+
if (_optionalChain([auth, 'optionalAccess', _33 => _33.secret])) {
|
|
1851
1826
|
headers.Authorization = `Bearer ${auth.secret}`;
|
|
1852
1827
|
}
|
|
1853
|
-
if (_optionalChain([auth, 'optionalAccess',
|
|
1828
|
+
if (_optionalChain([auth, 'optionalAccess', _34 => _34.email])) {
|
|
1854
1829
|
headers["X-Chat-Act-As"] = auth.email;
|
|
1855
1830
|
}
|
|
1856
|
-
if (_optionalChain([auth, 'optionalAccess',
|
|
1857
|
-
if (_optionalChain([auth, 'optionalAccess',
|
|
1858
|
-
if (_optionalChain([auth, 'optionalAccess',
|
|
1831
|
+
if (_optionalChain([auth, 'optionalAccess', _35 => _35.firstName])) headers["X-Chat-First-Name"] = auth.firstName;
|
|
1832
|
+
if (_optionalChain([auth, 'optionalAccess', _36 => _36.lastName])) headers["X-Chat-Last-Name"] = auth.lastName;
|
|
1833
|
+
if (_optionalChain([auth, 'optionalAccess', _37 => _37.avatarUrl])) headers["X-Chat-Avatar-Url"] = auth.avatarUrl;
|
|
1859
1834
|
return { url, headers };
|
|
1860
1835
|
}
|
|
1861
1836
|
|
|
@@ -1883,7 +1858,7 @@ function hasEmbedAuthAdapter() {
|
|
|
1883
1858
|
function needsBearerAssetFetch(url) {
|
|
1884
1859
|
if (typeof window === "undefined") return false;
|
|
1885
1860
|
const adapter2 = getRegisteredAuthAdapter();
|
|
1886
|
-
if (!_optionalChain([adapter2, 'optionalAccess',
|
|
1861
|
+
if (!_optionalChain([adapter2, 'optionalAccess', _38 => _38.allowedOrigins, 'optionalAccess', _39 => _39.length]) || _optionalChain([adapter2, 'access', _40 => _40.getHeaders, 'optionalCall', _41 => _41(), 'access', _42 => _42.Authorization]) === void 0) {
|
|
1887
1862
|
return false;
|
|
1888
1863
|
}
|
|
1889
1864
|
let target;
|
|
@@ -1925,7 +1900,7 @@ function setInFlightRefresh(refresh) {
|
|
|
1925
1900
|
}
|
|
1926
1901
|
function dedupedRefresh() {
|
|
1927
1902
|
const adapter2 = getRegisteredAuthAdapter();
|
|
1928
|
-
if (!_optionalChain([adapter2, 'optionalAccess',
|
|
1903
|
+
if (!_optionalChain([adapter2, 'optionalAccess', _43 => _43.refresh])) return Promise.resolve(false);
|
|
1929
1904
|
let inFlightRefresh = getInFlightRefresh();
|
|
1930
1905
|
if (!inFlightRefresh) {
|
|
1931
1906
|
inFlightRefresh = Promise.resolve().then(() => adapter2.refresh()).catch(() => false).finally(() => {
|
|
@@ -1938,12 +1913,12 @@ function dedupedRefresh() {
|
|
|
1938
1913
|
async function fetchWithRefresh(url, init, baseHeaders, isRetry) {
|
|
1939
1914
|
const { url: authedUrl, headers } = applyProxyAuth(url, { ...baseHeaders });
|
|
1940
1915
|
const adapter2 = getRegisteredAuthAdapter();
|
|
1941
|
-
if (_optionalChain([adapter2, 'optionalAccess',
|
|
1916
|
+
if (_optionalChain([adapter2, 'optionalAccess', _44 => _44.getHeaders])) {
|
|
1942
1917
|
for (const [k, v] of Object.entries(adapter2.getHeaders())) {
|
|
1943
1918
|
if (v !== void 0) headers[k] = v;
|
|
1944
1919
|
}
|
|
1945
1920
|
}
|
|
1946
|
-
const credentials = _nullishCoalesce(_nullishCoalesce(_optionalChain([adapter2, 'optionalAccess',
|
|
1921
|
+
const credentials = _nullishCoalesce(_nullishCoalesce(_optionalChain([adapter2, 'optionalAccess', _45 => _45.credentials]), () => ( init.credentials)), () => ( "same-origin"));
|
|
1947
1922
|
const response = await fetch(authedUrl, {
|
|
1948
1923
|
...init,
|
|
1949
1924
|
headers,
|
|
@@ -1954,7 +1929,7 @@ async function fetchWithRefresh(url, init, baseHeaders, isRetry) {
|
|
|
1954
1929
|
// `SameSite=None` must be configured server-side for that to work).
|
|
1955
1930
|
credentials
|
|
1956
1931
|
});
|
|
1957
|
-
if (response.status === 401 && !isRetry && _optionalChain([adapter2, 'optionalAccess',
|
|
1932
|
+
if (response.status === 401 && !isRetry && _optionalChain([adapter2, 'optionalAccess', _46 => _46.refresh])) {
|
|
1958
1933
|
const refreshed = await dedupedRefresh();
|
|
1959
1934
|
if (refreshed) {
|
|
1960
1935
|
return fetchWithRefresh(url, init, baseHeaders, true);
|
|
@@ -1978,7 +1953,7 @@ function assertSameOrigin(url) {
|
|
|
1978
1953
|
);
|
|
1979
1954
|
}
|
|
1980
1955
|
if (target.origin !== pageOrigin) {
|
|
1981
|
-
if (_optionalChain([getRegisteredAuthAdapter, 'call',
|
|
1956
|
+
if (_optionalChain([getRegisteredAuthAdapter, 'call', _47 => _47(), 'optionalAccess', _48 => _48.allowedOrigins, 'optionalAccess', _49 => _49.includes, 'call', _50 => _50(target.origin)])) {
|
|
1982
1957
|
return;
|
|
1983
1958
|
}
|
|
1984
1959
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2626,7 +2601,7 @@ function setNestedValue(obj, path, value) {
|
|
|
2626
2601
|
}
|
|
2627
2602
|
function getNestedValue(obj, path) {
|
|
2628
2603
|
return path.split(".").reduce((current, key) => {
|
|
2629
|
-
return _optionalChain([current, 'optionalAccess',
|
|
2604
|
+
return _optionalChain([current, 'optionalAccess', _51 => _51[key]]);
|
|
2630
2605
|
}, obj);
|
|
2631
2606
|
}
|
|
2632
2607
|
function mergeVariables(currentVariables, updates, schema) {
|
|
@@ -3401,7 +3376,7 @@ function useNearViewport(rootMargin = NEAR_VIEWPORT_ROOT_MARGIN, threshold = 0)
|
|
|
3401
3376
|
const stillOurs = subscribers.get(prev);
|
|
3402
3377
|
if (stillOurs) {
|
|
3403
3378
|
subscribers.delete(prev);
|
|
3404
|
-
_optionalChain([observers, 'access',
|
|
3379
|
+
_optionalChain([observers, 'access', _52 => _52.get, 'call', _53 => _53(key), 'optionalAccess', _54 => _54.unobserve, 'call', _55 => _55(prev)]);
|
|
3405
3380
|
}
|
|
3406
3381
|
}
|
|
3407
3382
|
elRef.current = node;
|
|
@@ -3418,7 +3393,7 @@ function useNearViewport(rootMargin = NEAR_VIEWPORT_ROOT_MARGIN, threshold = 0)
|
|
|
3418
3393
|
if (!el) return;
|
|
3419
3394
|
if (subscribers.get(el)) {
|
|
3420
3395
|
subscribers.delete(el);
|
|
3421
|
-
_optionalChain([observers, 'access',
|
|
3396
|
+
_optionalChain([observers, 'access', _56 => _56.get, 'call', _57 => _57(key), 'optionalAccess', _58 => _58.unobserve, 'call', _59 => _59(el)]);
|
|
3422
3397
|
}
|
|
3423
3398
|
};
|
|
3424
3399
|
}, [key]);
|
|
@@ -3533,8 +3508,8 @@ function useAccessCodeIntegration() {
|
|
|
3533
3508
|
// src/utils/og-placeholder.ts
|
|
3534
3509
|
var DEFAULT_OG_PLACEHOLDER_PATH = "/api/og-placeholder";
|
|
3535
3510
|
function resolveOgPlaceholderBase(endpoints) {
|
|
3536
|
-
if (_optionalChain([endpoints, 'optionalAccess',
|
|
3537
|
-
const imageProxy = _optionalChain([endpoints, 'optionalAccess',
|
|
3511
|
+
if (_optionalChain([endpoints, 'optionalAccess', _60 => _60.ogPlaceholderUrl])) return endpoints.ogPlaceholderUrl;
|
|
3512
|
+
const imageProxy = _optionalChain([endpoints, 'optionalAccess', _61 => _61.imageProxyUrlPrefix]);
|
|
3538
3513
|
if (imageProxy) {
|
|
3539
3514
|
const derived = imageProxy.replace(/\/image-proxy(?=$|[?/])/, "/og-placeholder");
|
|
3540
3515
|
if (derived !== imageProxy) return derived;
|
|
@@ -3562,7 +3537,7 @@ function useOgPlaceholderUrl({
|
|
|
3562
3537
|
aspect = "wide",
|
|
3563
3538
|
enabled = true
|
|
3564
3539
|
}) {
|
|
3565
|
-
const endpoints = _optionalChain([_chunkLILQJ3UZcjs.useChatRuntime.call(void 0, ), 'optionalAccess',
|
|
3540
|
+
const endpoints = _optionalChain([_chunkLILQJ3UZcjs.useChatRuntime.call(void 0, ), 'optionalAccess', _62 => _62.endpoints]);
|
|
3566
3541
|
return _react.useMemo.call(void 0, () => {
|
|
3567
3542
|
if (!enabled || !title) return null;
|
|
3568
3543
|
return buildOgPlaceholderUrl(endpoints, title, { site: siteName || void 0, aspect });
|
|
@@ -3707,7 +3682,7 @@ function navigateSamePageHash(target, options = {}) {
|
|
|
3707
3682
|
// src/hooks/use-scroll-to-hash.ts
|
|
3708
3683
|
var MAX_POLL_FRAMES = 60;
|
|
3709
3684
|
function useScrollToHash(readyDep = true, options) {
|
|
3710
|
-
const headerOffset = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3685
|
+
const headerOffset = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _63 => _63.headerOffset]), () => ( 0));
|
|
3711
3686
|
_react.useEffect.call(void 0, () => {
|
|
3712
3687
|
if (typeof window === "undefined") return;
|
|
3713
3688
|
if (readyDep === null || readyDep === false) return;
|
|
@@ -3768,7 +3743,7 @@ function evaluateHumanitySignals(body, opts) {
|
|
|
3768
3743
|
if (elapsedMs !== null && elapsedMs < opts.minFillMs) return { ok: false, reason: "too_fast" };
|
|
3769
3744
|
return { ok: true };
|
|
3770
3745
|
}
|
|
3771
|
-
var splitCsvEnv = (s) => _nullishCoalesce(_optionalChain([s, 'optionalAccess',
|
|
3746
|
+
var splitCsvEnv = (s) => _nullishCoalesce(_optionalChain([s, 'optionalAccess', _64 => _64.split, 'call', _65 => _65(","), 'access', _66 => _66.map, 'call', _67 => _67((t) => t.trim()), 'access', _68 => _68.filter, 'call', _69 => _69(Boolean)]), () => ( []));
|
|
3772
3747
|
|
|
3773
3748
|
// src/hooks/use-humanity-signals.ts
|
|
3774
3749
|
function useHumanitySignals() {
|
|
@@ -3776,7 +3751,7 @@ function useHumanitySignals() {
|
|
|
3776
3751
|
const mountedAt = _react.useRef.call(void 0, typeof performance !== "undefined" ? performance.now() : 0);
|
|
3777
3752
|
const getSignals = _react.useCallback.call(void 0,
|
|
3778
3753
|
() => ({
|
|
3779
|
-
[HONEYPOT_FIELD]: _nullishCoalesce(_optionalChain([ref, 'access',
|
|
3754
|
+
[HONEYPOT_FIELD]: _nullishCoalesce(_optionalChain([ref, 'access', _70 => _70.current, 'optionalAccess', _71 => _71.value]), () => ( "")),
|
|
3780
3755
|
[ELAPSED_MS_FIELD]: typeof performance !== "undefined" ? Math.round(performance.now() - mountedAt.current) : 0
|
|
3781
3756
|
}),
|
|
3782
3757
|
[]
|
|
@@ -3909,6 +3884,5 @@ function useHumanitySignals() {
|
|
|
3909
3884
|
|
|
3910
3885
|
|
|
3911
3886
|
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
//# sourceMappingURL=chunk-TTYJAZ7P.cjs.map
|
|
3887
|
+
exports.useAutoLimitTags = useAutoLimitTags; exports.useDebounce = useDebounce; exports.useDeferredError = useDeferredError; exports.useFocusTrap = useFocusTrap; exports.useHeaderHeight = useHeaderHeight; exports.useHorizontalScrollbar = useHorizontalScrollbar; exports.useImageEdgeColor = useImageEdgeColor; exports.useLocalStorage = useLocalStorage; exports.useMarqueeEngine = useMarqueeEngine; exports.useMediaQuery = useMediaQuery; exports.breakpoints = breakpoints; exports.useSmUp = useSmUp; exports.useMdUp = useMdUp; exports.useLgUp = useLgUp; exports.useMemoizedCallback = useMemoizedCallback; exports.useNotificationPermission = useNotificationPermission; exports.useOnboardingState = useOnboardingState; exports.useResetOnPageHidden = useResetOnPageHidden; exports.useSearch = useSearch; exports.useSuppressCloneFocus = useSuppressCloneFocus; exports.useTablePagination = useTablePagination; exports.useThrottle = useThrottle; exports.useWindowSize = useWindowSize; exports.usePreventScroll = _overlays.usePreventScroll; exports.platformIcons = platformIcons; exports.platformColors = platformColors; exports.platformDisplayNames = platformDisplayNames; exports.platformDescriptions = platformDescriptions; exports.platformSlogans = platformSlogans; exports.platformHexColors = platformHexColors; exports.platformIconNames = platformIconNames; exports.getDefaultColorForPlatform = getDefaultColorForPlatform; exports.getDefaultIconForPlatform = getDefaultIconForPlatform; exports.transformPlatformConfigsToOptions = transformPlatformConfigsToOptions; exports.getPlatformIcon = getPlatformIcon; exports.getPlatformColor = getPlatformColor; exports.getPlatformDisplayName = getPlatformDisplayName; exports.getPlatformDescription = getPlatformDescription; exports.getPlatformSlogan = getPlatformSlogan; exports.getSmallPlatformIcon = getSmallPlatformIcon; exports.getPlatformIconComponent = getPlatformIconComponent; exports.usePlatformConfig = usePlatformConfig; exports.usePlatformByValue = usePlatformByValue; exports.useValidatePlatform = useValidatePlatform; exports.ToolTypeValues = ToolTypeValues; exports.toolLabels = toolLabels; exports.ToolIcon = ToolIcon; 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.createLocalStorageAdapter = createLocalStorageAdapter; exports.getAppType = getAppType; exports.getEmbedProxyAuth = getEmbedProxyAuth; exports.getPersistedProxyEmail = getPersistedProxyEmail; exports.setEmbedProxyAuth = setEmbedProxyAuth; exports.clearEmbedProxyAuth = clearEmbedProxyAuth; exports.applyProxyAuth = applyProxyAuth; exports.setEmbedAuthAdapter = setEmbedAuthAdapter; exports.embedAuthedFetch = embedAuthedFetch; exports.contentFetch = contentFetch; exports.useContactSubmission = useContactSubmission; exports.useCopyToClipboard = useCopyToClipboard; exports.configureBatchImageFetch = configureBatchImageFetch; exports.batchFetchAuthenticatedImages = batchFetchAuthenticatedImages; exports.useBatchImages = useBatchImages; exports.configureAuthenticatedImage = configureAuthenticatedImage; exports.useAuthenticatedImage = useAuthenticatedImage; exports.clearAuthedImageCache = clearAuthedImageCache; exports.useAuthedImageSrc = useAuthedImageSrc; exports.extractVariablesFromQuery = extractVariablesFromQuery; exports.isScalarType = isScalarType; exports.isInputObjectType = isInputObjectType; exports.flattenQueryVariables = flattenQueryVariables; exports.mergeDefaults = mergeDefaults; exports.validateSchema = validateSchema; exports.getArrayParams = getArrayParams; exports.getRequiredParams = getRequiredParams; exports.shouldIncludeInUrl = shouldIncludeInUrl; 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.GraphQLIntrospector = GraphQLIntrospector; exports.introspector = introspector; exports.useQueryParams = useQueryParams; exports.useApiParams = useApiParams; exports.createSearchParams = createSearchParams; exports.useCursorPaginationState = useCursorPaginationState; exports.useNatsClient = useNatsClient; exports.NEAR_VIEWPORT_ROOT_MARGIN = NEAR_VIEWPORT_ROOT_MARGIN; exports.useNearViewport = useNearViewport; exports.validateAccessCode = validateAccessCode; exports.consumeAccessCode = consumeAccessCode; exports.validateAndConsumeAccessCode = validateAndConsumeAccessCode; exports.useAccessCodeIntegration = useAccessCodeIntegration; exports.buildOgPlaceholderUrl = buildOgPlaceholderUrl; exports.useOgPlaceholderUrl = useOgPlaceholderUrl; exports.scrollElementIntoView = scrollElementIntoView; exports.STICKY_HEADER_OFFSET_PX = STICKY_HEADER_OFFSET_PX; exports.HUB_HEADER_OFFSET_PX = HUB_HEADER_OFFSET_PX; exports.normalizeHashFragment = normalizeHashFragment; exports.navigateSamePageHash = navigateSamePageHash; 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.extractHumanitySignals = extractHumanitySignals; exports.evaluateHumanitySignals = evaluateHumanitySignals; exports.splitCsvEnv = splitCsvEnv; exports.useHumanitySignals = useHumanitySignals;
|
|
3888
|
+
//# sourceMappingURL=chunk-BIKOJ4FH.cjs.map
|