@flamingo-stack/openframe-frontend-core 0.0.473-snapshot.20260724114839 → 0.0.473
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-RIPWRVA3.js → chunk-2SPAHQYE.js} +5 -5
- package/dist/{chunk-2R5NM3FC.cjs → chunk-4EU6WL5O.cjs} +40 -40
- package/dist/{chunk-2R5NM3FC.cjs.map → chunk-4EU6WL5O.cjs.map} +1 -1
- package/dist/{chunk-KXKTXAGN.cjs → chunk-4WHDDAVP.cjs} +40 -40
- package/dist/{chunk-KXKTXAGN.cjs.map → chunk-4WHDDAVP.cjs.map} +1 -1
- package/dist/{chunk-K52S6LZ5.js → chunk-4Y6LX6XR.js} +3 -3
- package/dist/{chunk-OKRUL7YV.js → chunk-4YH4WKLC.js} +4 -4
- package/dist/{chunk-LFXUFFDZ.cjs → chunk-5LTLYPIP.cjs} +73 -73
- package/dist/{chunk-LFXUFFDZ.cjs.map → chunk-5LTLYPIP.cjs.map} +1 -1
- package/dist/{chunk-YJWISFIK.cjs → chunk-6OGOPPTI.cjs} +12 -12
- package/dist/{chunk-YJWISFIK.cjs.map → chunk-6OGOPPTI.cjs.map} +1 -1
- package/dist/{chunk-KPVKZ5ML.cjs → chunk-6VEEQBVJ.cjs} +15 -15
- package/dist/{chunk-KPVKZ5ML.cjs.map → chunk-6VEEQBVJ.cjs.map} +1 -1
- package/dist/{chunk-SAH4FR36.js → chunk-6WPUUGW5.js} +5 -5
- package/dist/{chunk-6KD6KVAI.cjs → chunk-B472QGDO.cjs} +5 -5
- package/dist/{chunk-6KD6KVAI.cjs.map → chunk-B472QGDO.cjs.map} +1 -1
- package/dist/{chunk-3NNCBZEM.js → chunk-B52SBOUY.js} +6 -6
- package/dist/{chunk-5TQQ3CPE.cjs → chunk-CDBQQA7V.cjs} +29 -29
- package/dist/{chunk-5TQQ3CPE.cjs.map → chunk-CDBQQA7V.cjs.map} +1 -1
- package/dist/{chunk-7VBGYCXG.cjs → chunk-CH7MDKPI.cjs} +7 -7
- package/dist/{chunk-7VBGYCXG.cjs.map → chunk-CH7MDKPI.cjs.map} +1 -1
- package/dist/{chunk-S6IB3BZK.js → chunk-DBYUQOLS.js} +2 -2
- package/dist/{chunk-AGX565ZT.js → chunk-FPOHUGEK.js} +2 -2
- package/dist/{chunk-R4OGP4OV.js → chunk-H6FKYKEQ.js} +3 -3
- package/dist/{chunk-FM5KWLKU.cjs → chunk-HQL5GJ35.cjs} +3 -3
- package/dist/{chunk-FM5KWLKU.cjs.map → chunk-HQL5GJ35.cjs.map} +1 -1
- package/dist/{chunk-PTFSF3UP.js → chunk-I5L3KUTE.js} +6 -6
- package/dist/{chunk-GELW7JOQ.cjs → chunk-J5S5U76A.cjs} +32 -32
- package/dist/{chunk-GELW7JOQ.cjs.map → chunk-J5S5U76A.cjs.map} +1 -1
- package/dist/{chunk-464NJS2W.cjs → chunk-KP37QDNS.cjs} +73 -73
- package/dist/{chunk-464NJS2W.cjs.map → chunk-KP37QDNS.cjs.map} +1 -1
- package/dist/{chunk-PFD2VRZI.cjs → chunk-KXBXPOYM.cjs} +18 -18
- package/dist/{chunk-PFD2VRZI.cjs.map → chunk-KXBXPOYM.cjs.map} +1 -1
- package/dist/{chunk-VNDAMVMI.js → chunk-LWIVRGDN.js} +2 -2
- package/dist/{chunk-ZPUZPJDV.js → chunk-OTV4A6NA.js} +14 -80
- package/dist/chunk-OTV4A6NA.js.map +1 -0
- package/dist/{chunk-IIOHHNMI.js → chunk-QESV36I2.js} +70 -36
- package/dist/chunk-QESV36I2.js.map +1 -0
- package/dist/{chunk-FBUIZTAI.js → chunk-SWNZZVYG.js} +2 -2
- package/dist/{chunk-VCOL4C2W.cjs → chunk-TONMD7QX.cjs} +20 -86
- package/dist/chunk-TONMD7QX.cjs.map +1 -0
- package/dist/{chunk-Z4LAZ4ZZ.js → chunk-UCY6VITT.js} +3 -3
- package/dist/{chunk-BOPLMNSN.cjs → chunk-ZQRGJHNH.cjs} +151 -117
- package/dist/chunk-ZQRGJHNH.cjs.map +1 -0
- package/dist/components/case-studies/index.cjs +9 -9
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +136 -136
- package/dist/components/index.js +11 -11
- package/dist/components/navigation/index.cjs +3 -3
- package/dist/components/navigation/index.js +2 -2
- package/dist/components/navigation/mobile-burger-menu.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.js +6 -6
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/related-content/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/entity-image.d.ts.map +1 -1
- package/dist/components/ui/image-uploader.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +3 -3
- package/dist/components/ui/index.js +2 -2
- package/dist/components/ui/simple-markdown-renderer.d.ts.map +1 -1
- package/dist/components/ui/square-avatar.d.ts.map +1 -1
- package/dist/hooks/index.cjs +2 -6
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -5
- package/dist/index.cjs +3 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -6
- package/dist/utils/embed-authed-fetch.d.ts +0 -15
- package/dist/utils/embed-authed-fetch.d.ts.map +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/navigation/mobile-burger-menu.tsx +0 -1
- package/src/components/ui/entity-image.tsx +3 -5
- package/src/components/ui/image-uploader.tsx +12 -21
- package/src/components/ui/simple-markdown-renderer.tsx +58 -57
- package/src/components/ui/square-avatar.tsx +3 -5
- package/src/hooks/index.ts +0 -1
- package/src/utils/embed-authed-fetch.ts +0 -30
- package/dist/chunk-BOPLMNSN.cjs.map +0 -1
- package/dist/chunk-IIOHHNMI.js.map +0 -1
- package/dist/chunk-VCOL4C2W.cjs.map +0 -1
- package/dist/chunk-ZPUZPJDV.js.map +0 -1
- package/dist/hooks/use-authed-image-src.d.ts +0 -10
- package/dist/hooks/use-authed-image-src.d.ts.map +0 -1
- package/src/hooks/use-authed-image-src.ts +0 -93
- /package/dist/{chunk-RIPWRVA3.js.map → chunk-2SPAHQYE.js.map} +0 -0
- /package/dist/{chunk-K52S6LZ5.js.map → chunk-4Y6LX6XR.js.map} +0 -0
- /package/dist/{chunk-OKRUL7YV.js.map → chunk-4YH4WKLC.js.map} +0 -0
- /package/dist/{chunk-SAH4FR36.js.map → chunk-6WPUUGW5.js.map} +0 -0
- /package/dist/{chunk-3NNCBZEM.js.map → chunk-B52SBOUY.js.map} +0 -0
- /package/dist/{chunk-S6IB3BZK.js.map → chunk-DBYUQOLS.js.map} +0 -0
- /package/dist/{chunk-AGX565ZT.js.map → chunk-FPOHUGEK.js.map} +0 -0
- /package/dist/{chunk-R4OGP4OV.js.map → chunk-H6FKYKEQ.js.map} +0 -0
- /package/dist/{chunk-PTFSF3UP.js.map → chunk-I5L3KUTE.js.map} +0 -0
- /package/dist/{chunk-VNDAMVMI.js.map → chunk-LWIVRGDN.js.map} +0 -0
- /package/dist/{chunk-FBUIZTAI.js.map → chunk-SWNZZVYG.js.map} +0 -0
- /package/dist/{chunk-Z4LAZ4ZZ.js.map → chunk-UCY6VITT.js.map} +0 -0
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
TASK_TYPE_TEXT_COLORS,
|
|
12
12
|
getStatusColorScheme,
|
|
13
13
|
init_pagination
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QESV36I2.js";
|
|
15
15
|
import {
|
|
16
16
|
init_next_navigation,
|
|
17
17
|
usePathname,
|
|
@@ -460,4 +460,4 @@ export {
|
|
|
460
460
|
DevCardRowSkeletonList,
|
|
461
461
|
DeliveryRow
|
|
462
462
|
};
|
|
463
|
-
//# sourceMappingURL=chunk-
|
|
463
|
+
//# sourceMappingURL=chunk-SWNZZVYG.js.map
|
|
@@ -1855,21 +1855,6 @@ function setEmbedAuthAdapter(adapter2) {
|
|
|
1855
1855
|
function hasEmbedAuthAdapter() {
|
|
1856
1856
|
return getRegisteredAuthAdapter() !== null;
|
|
1857
1857
|
}
|
|
1858
|
-
function needsBearerAssetFetch(url) {
|
|
1859
|
-
if (typeof window === "undefined") return false;
|
|
1860
|
-
const adapter2 = getRegisteredAuthAdapter();
|
|
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) {
|
|
1862
|
-
return false;
|
|
1863
|
-
}
|
|
1864
|
-
let target;
|
|
1865
|
-
try {
|
|
1866
|
-
target = new URL(url, window.location.href);
|
|
1867
|
-
} catch (e5) {
|
|
1868
|
-
return false;
|
|
1869
|
-
}
|
|
1870
|
-
if (target.protocol !== "http:" && target.protocol !== "https:") return false;
|
|
1871
|
-
return adapter2.allowedOrigins.includes(target.origin);
|
|
1872
|
-
}
|
|
1873
1858
|
function embedAuthedFetch(url, init = {}) {
|
|
1874
1859
|
assertSameOrigin(url);
|
|
1875
1860
|
let baseHeaders;
|
|
@@ -1900,7 +1885,7 @@ function setInFlightRefresh(refresh) {
|
|
|
1900
1885
|
}
|
|
1901
1886
|
function dedupedRefresh() {
|
|
1902
1887
|
const adapter2 = getRegisteredAuthAdapter();
|
|
1903
|
-
if (!_optionalChain([adapter2, 'optionalAccess',
|
|
1888
|
+
if (!_optionalChain([adapter2, 'optionalAccess', _38 => _38.refresh])) return Promise.resolve(false);
|
|
1904
1889
|
let inFlightRefresh = getInFlightRefresh();
|
|
1905
1890
|
if (!inFlightRefresh) {
|
|
1906
1891
|
inFlightRefresh = Promise.resolve().then(() => adapter2.refresh()).catch(() => false).finally(() => {
|
|
@@ -1913,12 +1898,12 @@ function dedupedRefresh() {
|
|
|
1913
1898
|
async function fetchWithRefresh(url, init, baseHeaders, isRetry) {
|
|
1914
1899
|
const { url: authedUrl, headers } = applyProxyAuth(url, { ...baseHeaders });
|
|
1915
1900
|
const adapter2 = getRegisteredAuthAdapter();
|
|
1916
|
-
if (_optionalChain([adapter2, 'optionalAccess',
|
|
1901
|
+
if (_optionalChain([adapter2, 'optionalAccess', _39 => _39.getHeaders])) {
|
|
1917
1902
|
for (const [k, v] of Object.entries(adapter2.getHeaders())) {
|
|
1918
1903
|
if (v !== void 0) headers[k] = v;
|
|
1919
1904
|
}
|
|
1920
1905
|
}
|
|
1921
|
-
const credentials = _nullishCoalesce(_nullishCoalesce(_optionalChain([adapter2, 'optionalAccess',
|
|
1906
|
+
const credentials = _nullishCoalesce(_nullishCoalesce(_optionalChain([adapter2, 'optionalAccess', _40 => _40.credentials]), () => ( init.credentials)), () => ( "same-origin"));
|
|
1922
1907
|
const response = await fetch(authedUrl, {
|
|
1923
1908
|
...init,
|
|
1924
1909
|
headers,
|
|
@@ -1929,7 +1914,7 @@ async function fetchWithRefresh(url, init, baseHeaders, isRetry) {
|
|
|
1929
1914
|
// `SameSite=None` must be configured server-side for that to work).
|
|
1930
1915
|
credentials
|
|
1931
1916
|
});
|
|
1932
|
-
if (response.status === 401 && !isRetry && _optionalChain([adapter2, 'optionalAccess',
|
|
1917
|
+
if (response.status === 401 && !isRetry && _optionalChain([adapter2, 'optionalAccess', _41 => _41.refresh])) {
|
|
1933
1918
|
const refreshed = await dedupedRefresh();
|
|
1934
1919
|
if (refreshed) {
|
|
1935
1920
|
return fetchWithRefresh(url, init, baseHeaders, true);
|
|
@@ -1944,7 +1929,7 @@ function assertSameOrigin(url) {
|
|
|
1944
1929
|
try {
|
|
1945
1930
|
target = new URL(url, window.location.href);
|
|
1946
1931
|
pageOrigin = new URL(window.location.href).origin;
|
|
1947
|
-
} catch (
|
|
1932
|
+
} catch (e5) {
|
|
1948
1933
|
throw new Error(`embedAuthedFetch: refusing to fetch malformed URL (${JSON.stringify(url)})`);
|
|
1949
1934
|
}
|
|
1950
1935
|
if (target.protocol !== "http:" && target.protocol !== "https:") {
|
|
@@ -1953,7 +1938,7 @@ function assertSameOrigin(url) {
|
|
|
1953
1938
|
);
|
|
1954
1939
|
}
|
|
1955
1940
|
if (target.origin !== pageOrigin) {
|
|
1956
|
-
if (_optionalChain([getRegisteredAuthAdapter, 'call',
|
|
1941
|
+
if (_optionalChain([getRegisteredAuthAdapter, 'call', _42 => _42(), 'optionalAccess', _43 => _43.allowedOrigins, 'optionalAccess', _44 => _44.includes, 'call', _45 => _45(target.origin)])) {
|
|
1957
1942
|
return;
|
|
1958
1943
|
}
|
|
1959
1944
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2058,7 +2043,7 @@ function useCopyToClipboard({
|
|
|
2058
2043
|
setCopied(true);
|
|
2059
2044
|
toast2({ title: successTitle, description: successDescription, variant: "success" });
|
|
2060
2045
|
setTimeout(() => setCopied(false), resetDelay);
|
|
2061
|
-
} catch (
|
|
2046
|
+
} catch (e6) {
|
|
2062
2047
|
toast2({ title: errorTitle, description: errorDescription, variant: "destructive" });
|
|
2063
2048
|
}
|
|
2064
2049
|
},
|
|
@@ -2335,55 +2320,6 @@ function useAuthenticatedImage(imageUrl, refreshKey, config) {
|
|
|
2335
2320
|
return { imageUrl: fetchedImageUrl, isLoading, error };
|
|
2336
2321
|
}
|
|
2337
2322
|
|
|
2338
|
-
// src/hooks/use-authed-image-src.ts
|
|
2339
|
-
|
|
2340
|
-
var resolvedCache = /* @__PURE__ */ new Map();
|
|
2341
|
-
var inFlight = /* @__PURE__ */ new Map();
|
|
2342
|
-
var cacheGeneration = 0;
|
|
2343
|
-
function clearAuthedImageCache() {
|
|
2344
|
-
cacheGeneration++;
|
|
2345
|
-
for (const url of resolvedCache.values()) URL.revokeObjectURL(url);
|
|
2346
|
-
resolvedCache.clear();
|
|
2347
|
-
inFlight.clear();
|
|
2348
|
-
}
|
|
2349
|
-
function fetchAsBlobUrl(src) {
|
|
2350
|
-
let pending = inFlight.get(src);
|
|
2351
|
-
if (!pending) {
|
|
2352
|
-
const startedGeneration = cacheGeneration;
|
|
2353
|
-
pending = embedAuthedFetch(src, { headers: { Accept: "image/*" } }).then(async (response) => {
|
|
2354
|
-
if (!response.ok) throw new Error(`image fetch failed: ${response.status}`);
|
|
2355
|
-
const blobUrl = URL.createObjectURL(await response.blob());
|
|
2356
|
-
if (startedGeneration === cacheGeneration) {
|
|
2357
|
-
resolvedCache.set(src, blobUrl);
|
|
2358
|
-
} else {
|
|
2359
|
-
URL.revokeObjectURL(blobUrl);
|
|
2360
|
-
}
|
|
2361
|
-
}).finally(() => {
|
|
2362
|
-
if (inFlight.get(src) === pending) inFlight.delete(src);
|
|
2363
|
-
});
|
|
2364
|
-
inFlight.set(src, pending);
|
|
2365
|
-
}
|
|
2366
|
-
return pending;
|
|
2367
|
-
}
|
|
2368
|
-
function useAuthedImageSrc(src) {
|
|
2369
|
-
const bearerSrc = src && needsBearerAssetFetch(src) ? src : null;
|
|
2370
|
-
const [, rerender] = _react.useReducer.call(void 0, (c) => c + 1, 0);
|
|
2371
|
-
_react.useEffect.call(void 0, () => {
|
|
2372
|
-
if (!bearerSrc || resolvedCache.has(bearerSrc)) return;
|
|
2373
|
-
let cancelled = false;
|
|
2374
|
-
fetchAsBlobUrl(bearerSrc).catch(() => {
|
|
2375
|
-
}).finally(() => {
|
|
2376
|
-
if (!cancelled) rerender();
|
|
2377
|
-
});
|
|
2378
|
-
return () => {
|
|
2379
|
-
cancelled = true;
|
|
2380
|
-
};
|
|
2381
|
-
}, [bearerSrc]);
|
|
2382
|
-
if (!src) return void 0;
|
|
2383
|
-
if (!bearerSrc) return src;
|
|
2384
|
-
return resolvedCache.get(bearerSrc);
|
|
2385
|
-
}
|
|
2386
|
-
|
|
2387
2323
|
// src/hooks/state/use-query-params.ts
|
|
2388
2324
|
_chunkSSJNN5BScjs.init_next_navigation.call(void 0, );
|
|
2389
2325
|
|
|
@@ -2601,7 +2537,7 @@ function setNestedValue(obj, path, value) {
|
|
|
2601
2537
|
}
|
|
2602
2538
|
function getNestedValue(obj, path) {
|
|
2603
2539
|
return path.split(".").reduce((current, key) => {
|
|
2604
|
-
return _optionalChain([current, 'optionalAccess',
|
|
2540
|
+
return _optionalChain([current, 'optionalAccess', _46 => _46[key]]);
|
|
2605
2541
|
}, obj);
|
|
2606
2542
|
}
|
|
2607
2543
|
function mergeVariables(currentVariables, updates, schema) {
|
|
@@ -2770,7 +2706,7 @@ var GraphQLIntrospector = class {
|
|
|
2770
2706
|
try {
|
|
2771
2707
|
localStorage.removeItem(this.cacheKey);
|
|
2772
2708
|
this.schema = null;
|
|
2773
|
-
} catch (
|
|
2709
|
+
} catch (e7) {
|
|
2774
2710
|
}
|
|
2775
2711
|
}
|
|
2776
2712
|
/**
|
|
@@ -3376,7 +3312,7 @@ function useNearViewport(rootMargin = NEAR_VIEWPORT_ROOT_MARGIN, threshold = 0)
|
|
|
3376
3312
|
const stillOurs = subscribers.get(prev);
|
|
3377
3313
|
if (stillOurs) {
|
|
3378
3314
|
subscribers.delete(prev);
|
|
3379
|
-
_optionalChain([observers, 'access',
|
|
3315
|
+
_optionalChain([observers, 'access', _47 => _47.get, 'call', _48 => _48(key), 'optionalAccess', _49 => _49.unobserve, 'call', _50 => _50(prev)]);
|
|
3380
3316
|
}
|
|
3381
3317
|
}
|
|
3382
3318
|
elRef.current = node;
|
|
@@ -3393,7 +3329,7 @@ function useNearViewport(rootMargin = NEAR_VIEWPORT_ROOT_MARGIN, threshold = 0)
|
|
|
3393
3329
|
if (!el) return;
|
|
3394
3330
|
if (subscribers.get(el)) {
|
|
3395
3331
|
subscribers.delete(el);
|
|
3396
|
-
_optionalChain([observers, 'access',
|
|
3332
|
+
_optionalChain([observers, 'access', _51 => _51.get, 'call', _52 => _52(key), 'optionalAccess', _53 => _53.unobserve, 'call', _54 => _54(el)]);
|
|
3397
3333
|
}
|
|
3398
3334
|
};
|
|
3399
3335
|
}, [key]);
|
|
@@ -3508,8 +3444,8 @@ function useAccessCodeIntegration() {
|
|
|
3508
3444
|
// src/utils/og-placeholder.ts
|
|
3509
3445
|
var DEFAULT_OG_PLACEHOLDER_PATH = "/api/og-placeholder";
|
|
3510
3446
|
function resolveOgPlaceholderBase(endpoints) {
|
|
3511
|
-
if (_optionalChain([endpoints, 'optionalAccess',
|
|
3512
|
-
const imageProxy = _optionalChain([endpoints, 'optionalAccess',
|
|
3447
|
+
if (_optionalChain([endpoints, 'optionalAccess', _55 => _55.ogPlaceholderUrl])) return endpoints.ogPlaceholderUrl;
|
|
3448
|
+
const imageProxy = _optionalChain([endpoints, 'optionalAccess', _56 => _56.imageProxyUrlPrefix]);
|
|
3513
3449
|
if (imageProxy) {
|
|
3514
3450
|
const derived = imageProxy.replace(/\/image-proxy(?=$|[?/])/, "/og-placeholder");
|
|
3515
3451
|
if (derived !== imageProxy) return derived;
|
|
@@ -3537,7 +3473,7 @@ function useOgPlaceholderUrl({
|
|
|
3537
3473
|
aspect = "wide",
|
|
3538
3474
|
enabled = true
|
|
3539
3475
|
}) {
|
|
3540
|
-
const endpoints = _optionalChain([_chunk2B6773QMcjs.useChatRuntime.call(void 0, ), 'optionalAccess',
|
|
3476
|
+
const endpoints = _optionalChain([_chunk2B6773QMcjs.useChatRuntime.call(void 0, ), 'optionalAccess', _57 => _57.endpoints]);
|
|
3541
3477
|
return _react.useMemo.call(void 0, () => {
|
|
3542
3478
|
if (!enabled || !title) return null;
|
|
3543
3479
|
return buildOgPlaceholderUrl(endpoints, title, { site: siteName || void 0, aspect });
|
|
@@ -3638,7 +3574,7 @@ function navigateSamePageHash(target, options = {}) {
|
|
|
3638
3574
|
let url;
|
|
3639
3575
|
try {
|
|
3640
3576
|
url = new URL(normalizedTarget, window.location.href);
|
|
3641
|
-
} catch (
|
|
3577
|
+
} catch (e8) {
|
|
3642
3578
|
return false;
|
|
3643
3579
|
}
|
|
3644
3580
|
if (url.origin !== window.location.origin || url.pathname !== window.location.pathname || url.search !== window.location.search) {
|
|
@@ -3682,7 +3618,7 @@ function navigateSamePageHash(target, options = {}) {
|
|
|
3682
3618
|
// src/hooks/use-scroll-to-hash.ts
|
|
3683
3619
|
var MAX_POLL_FRAMES = 60;
|
|
3684
3620
|
function useScrollToHash(readyDep = true, options) {
|
|
3685
|
-
const headerOffset = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3621
|
+
const headerOffset = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _58 => _58.headerOffset]), () => ( 0));
|
|
3686
3622
|
_react.useEffect.call(void 0, () => {
|
|
3687
3623
|
if (typeof window === "undefined") return;
|
|
3688
3624
|
if (readyDep === null || readyDep === false) return;
|
|
@@ -3743,7 +3679,7 @@ function evaluateHumanitySignals(body, opts) {
|
|
|
3743
3679
|
if (elapsedMs !== null && elapsedMs < opts.minFillMs) return { ok: false, reason: "too_fast" };
|
|
3744
3680
|
return { ok: true };
|
|
3745
3681
|
}
|
|
3746
|
-
var splitCsvEnv = (s) => _nullishCoalesce(_optionalChain([s, 'optionalAccess',
|
|
3682
|
+
var splitCsvEnv = (s) => _nullishCoalesce(_optionalChain([s, 'optionalAccess', _59 => _59.split, 'call', _60 => _60(","), 'access', _61 => _61.map, 'call', _62 => _62((t) => t.trim()), 'access', _63 => _63.filter, 'call', _64 => _64(Boolean)]), () => ( []));
|
|
3747
3683
|
|
|
3748
3684
|
// src/hooks/use-humanity-signals.ts
|
|
3749
3685
|
function useHumanitySignals() {
|
|
@@ -3751,7 +3687,7 @@ function useHumanitySignals() {
|
|
|
3751
3687
|
const mountedAt = _react.useRef.call(void 0, typeof performance !== "undefined" ? performance.now() : 0);
|
|
3752
3688
|
const getSignals = _react.useCallback.call(void 0,
|
|
3753
3689
|
() => ({
|
|
3754
|
-
[HONEYPOT_FIELD]: _nullishCoalesce(_optionalChain([ref, 'access',
|
|
3690
|
+
[HONEYPOT_FIELD]: _nullishCoalesce(_optionalChain([ref, 'access', _65 => _65.current, 'optionalAccess', _66 => _66.value]), () => ( "")),
|
|
3755
3691
|
[ELAPSED_MS_FIELD]: typeof performance !== "undefined" ? Math.round(performance.now() - mountedAt.current) : 0
|
|
3756
3692
|
}),
|
|
3757
3693
|
[]
|
|
@@ -3881,7 +3817,5 @@ function useHumanitySignals() {
|
|
|
3881
3817
|
|
|
3882
3818
|
|
|
3883
3819
|
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
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.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;
|
|
3887
|
-
//# sourceMappingURL=chunk-VCOL4C2W.cjs.map
|
|
3820
|
+
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.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.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;
|
|
3821
|
+
//# sourceMappingURL=chunk-TONMD7QX.cjs.map
|