@flamingo-stack/openframe-frontend-core 0.0.841 → 0.0.843
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/export-map.json +1 -1
- package/dist/{case-study-card-TK7ZCNLM.cjs → case-study-card-VN3JBNF5.cjs} +3 -3
- package/dist/{chunk-RSJYTQEA.cjs → chunk-23DVVS4I.cjs} +104 -104
- package/dist/{chunk-IELPVUPR.cjs → chunk-2H5D2PUC.cjs} +23 -23
- package/dist/{chunk-275AQ6LC.cjs → chunk-2JZFXGHE.cjs} +4 -4
- package/dist/{chunk-DYDQLS2R.cjs → chunk-2WGA2IRN.cjs} +370 -298
- package/dist/{chunk-VBH2RCFM.cjs → chunk-3IXW2EKO.cjs} +78 -78
- package/dist/{chunk-DGY5KEPY.cjs → chunk-4ASUUB3A.cjs} +83 -83
- package/dist/{chunk-WCOSGDGA.cjs → chunk-4R4HAFXI.cjs} +2 -2
- package/dist/{chunk-INBFKUZA.cjs → chunk-5CPEMPNP.cjs} +15 -15
- package/dist/{chunk-CCRXBFNL.cjs → chunk-6HFTSVVC.cjs} +8 -8
- package/dist/{chunk-FHI4I3TQ.cjs → chunk-6M764K5Z.cjs} +12 -12
- package/dist/{chunk-SOCCHWDK.cjs → chunk-BHOVF4KP.cjs} +2 -2
- package/dist/{chunk-WVNUCKB7.cjs → chunk-CNMXP77I.cjs} +4 -4
- package/dist/{chunk-HXTZZE3R.cjs → chunk-DUB2UVYS.cjs} +61 -72
- package/dist/{chunk-TD4CC4KV.cjs → chunk-EUEPGHY4.cjs} +6 -6
- package/dist/{chunk-Q6WUHYOG.cjs → chunk-HLMA6CDT.cjs} +85 -85
- package/dist/{chunk-ZAO5SYBJ.cjs → chunk-MWQOM2EI.cjs} +4 -4
- package/dist/{chunk-WI7EXAZT.cjs → chunk-NMLNZCK2.cjs} +2 -2
- package/dist/{chunk-GUKFMMDZ.cjs → chunk-OGINOWMT.cjs} +3 -3
- package/dist/{chunk-APNONOHY.cjs → chunk-PZNWIJRZ.cjs} +13 -10
- package/dist/{chunk-GMK4JGC2.cjs → chunk-QBZ73IK7.cjs} +44 -44
- package/dist/{chunk-Z35PL3UR.cjs → chunk-QJRZVIQP.cjs} +34 -34
- package/dist/{chunk-SMZWXY4X.cjs → chunk-QKZQ5Q6E.cjs} +6 -1
- package/dist/{chunk-MYAPG3FQ.cjs → chunk-QPJUQ5YU.cjs} +21 -21
- package/dist/{chunk-JUEAZCD6.cjs → chunk-RSZZTB5T.cjs} +54 -54
- package/dist/{chunk-7WKRMJI6.cjs → chunk-SC36S7DJ.cjs} +2 -2
- package/dist/{chunk-AT6D7BAZ.cjs → chunk-SOQVKIWM.cjs} +3 -3
- package/dist/{chunk-UZPYYHF5.cjs → chunk-SOTTMZ6U.cjs} +19 -19
- package/dist/{chunk-E7M54JWW.cjs → chunk-SSSI2RBV.cjs} +14 -14
- package/dist/{chunk-EV6BPF47.cjs → chunk-WPMJUYW3.cjs} +143 -143
- package/dist/{chunk-FRL2ZN4O.cjs → chunk-XCVH5BCZ.cjs} +6 -6
- package/dist/{chunk-JM2XA7VY.cjs → chunk-ZXEWBJUE.cjs} +15 -15
- package/dist/{cloud-tenants-PV63RZ73.cjs → cloud-tenants-VPYROTKH.cjs} +11 -11
- package/dist/components/case-studies/index.cjs +26 -26
- package/dist/components/chat/index.cjs +8 -8
- package/dist/components/contact/index.cjs +12 -12
- package/dist/components/docs/index.cjs +15 -15
- package/dist/components/embeds/index.cjs +12 -12
- package/dist/components/faq/index.cjs +13 -13
- package/dist/components/features/devices/device-unread-indicator.d.ts +6 -0
- package/dist/components/features/devices/device-unread-indicator.d.ts.map +1 -0
- package/dist/components/features/devices/device-unread-indicator.js +12 -0
- package/dist/components/features/devices/devices-grid.d.ts.map +1 -1
- package/dist/components/features/devices/devices-grid.js +5 -1
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +3 -1
- package/dist/components/features/devices/devices-view-config.d.ts +6 -4
- package/dist/components/features/devices/devices-view-config.d.ts.map +1 -1
- package/dist/components/features/devices/index.d.ts +1 -0
- package/dist/components/features/devices/index.d.ts.map +1 -1
- package/dist/components/features/devices/index.js +2 -0
- package/dist/components/features/devices/types.d.ts +2 -0
- package/dist/components/features/devices/types.d.ts.map +1 -1
- package/dist/components/features/index.cjs +13 -11
- package/dist/components/help-center-pages/index.cjs +105 -105
- package/dist/components/index.cjs +73 -65
- package/dist/components/meeting-scheduler/index.cjs +50 -50
- package/dist/components/navigation/count-pill.d.ts +10 -0
- package/dist/components/navigation/count-pill.d.ts.map +1 -0
- package/dist/components/navigation/count-pill.js +18 -0
- package/dist/components/navigation/index.cjs +20 -14
- package/dist/components/navigation/index.d.ts +4 -0
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +5 -0
- package/dist/components/navigation/navigation-sidebar-grouped.d.ts.map +1 -1
- package/dist/components/navigation/navigation-sidebar-grouped.js +1 -12
- package/dist/components/navigation/unread-notifications-indicator.d.ts +19 -0
- package/dist/components/navigation/unread-notifications-indicator.d.ts.map +1 -0
- package/dist/components/navigation/unread-notifications-indicator.js +45 -0
- package/dist/components/onboarding-guides/index.cjs +14 -14
- package/dist/components/product-demo/fixtures/devices.d.ts.map +1 -1
- package/dist/components/product-demo/fixtures/devices.js +6 -1
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +18 -18
- package/dist/components/ui/index.cjs +11 -11
- package/dist/{devices-VECG5JNC.cjs → devices-W76BAABE.cjs} +14 -14
- package/dist/{embeddable-chat-VRYAQQF6.cjs → embeddable-chat-C6DUH2JL.cjs} +78 -78
- package/dist/hooks/index.cjs +4 -4
- package/dist/index.cjs +23 -15
- package/dist/{knowledge-YJSDJIXT.cjs → knowledge-ILAIWOSY.cjs} +12 -12
- package/dist/{logs-42JG3NZ5.cjs → logs-VCPRFJGB.cjs} +18 -18
- package/dist/platform-domains.cjs +14 -10
- package/dist/platform-domains.d.ts +12 -7
- package/dist/platform-domains.d.ts.map +1 -1
- package/dist/platform-domains.js +14 -10
- package/dist/{policies-D4QNVJ26.cjs → policies-3BNAW4M5.cjs} +15 -15
- package/dist/{scripts-4VFYBXBE.cjs → scripts-VFFSJDYV.cjs} +16 -16
- package/dist/{software-update-OSDZQ5CP.cjs → software-update-VTBTLCZO.cjs} +16 -16
- package/dist/utils/index.cjs +13 -10
- package/package.json +1 -1
- package/src/components/features/devices/device-unread-indicator.tsx +14 -0
- package/src/components/features/devices/devices-grid.tsx +9 -1
- package/src/components/features/devices/devices-table-columns.tsx +3 -0
- package/src/components/features/devices/devices-view-config.tsx +6 -4
- package/src/components/features/devices/index.ts +1 -0
- package/src/components/features/devices/types.ts +2 -0
- package/src/components/navigation/count-pill.tsx +25 -0
- package/src/components/navigation/index.ts +4 -0
- package/src/components/navigation/navigation-sidebar-grouped.tsx +1 -14
- package/src/components/navigation/unread-notifications-indicator.tsx +69 -0
- package/src/components/product-demo/fixtures/devices.ts +7 -0
- package/src/platform-domains.ts +28 -20
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkSSSI2RBVcjs = require('./chunk-SSSI2RBV.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk4ASUUB3Acjs = require('./chunk-4ASUUB3A.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
|
|
@@ -47,13 +47,13 @@ var _chunk5OG5ZTNMcjs = require('./chunk-5OG5ZTNM.cjs');
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunk23DVVS4Icjs = require('./chunk-23DVVS4I.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
var _chunkNFNSPLGCcjs = require('./chunk-NFNSPLGC.cjs');
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
var
|
|
56
|
+
var _chunkEUEPGHY4cjs = require('./chunk-EUEPGHY4.cjs');
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
var _chunkJQCQCE6Ucjs = require('./chunk-JQCQCE6U.cjs');
|
|
@@ -172,31 +172,31 @@ CveLink.displayName = "CveLink";
|
|
|
172
172
|
// src/components/platform/ShellTypeBadge.tsx
|
|
173
173
|
|
|
174
174
|
var shellIconMap = {
|
|
175
|
-
[
|
|
175
|
+
[_chunk4ASUUB3Acjs.ShellTypeValues.POWERSHELL]: {
|
|
176
176
|
icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon,
|
|
177
177
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
178
178
|
},
|
|
179
|
-
[
|
|
179
|
+
[_chunk4ASUUB3Acjs.ShellTypeValues.CMD]: {
|
|
180
180
|
icon: _chunkUXUYT4WKcjs.CmdIcon,
|
|
181
181
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
182
182
|
},
|
|
183
|
-
[
|
|
183
|
+
[_chunk4ASUUB3Acjs.ShellTypeValues.BASH]: {
|
|
184
184
|
icon: _chunk5OG5ZTNMcjs.BashIcon,
|
|
185
185
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
186
186
|
},
|
|
187
|
-
[
|
|
187
|
+
[_chunk4ASUUB3Acjs.ShellTypeValues.PYTHON]: {
|
|
188
188
|
icon: _chunkBF77UKGDcjs.PythonLogoIcon,
|
|
189
189
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
190
190
|
},
|
|
191
|
-
[
|
|
191
|
+
[_chunk4ASUUB3Acjs.ShellTypeValues.NUSHELL]: {
|
|
192
192
|
icon: _chunkG37H4CBTcjs.NushellIcon,
|
|
193
193
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
194
194
|
},
|
|
195
|
-
[
|
|
195
|
+
[_chunk4ASUUB3Acjs.ShellTypeValues.DENO]: {
|
|
196
196
|
icon: _chunkHUL6SF5Acjs.DenoIcon,
|
|
197
197
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
198
198
|
},
|
|
199
|
-
[
|
|
199
|
+
[_chunk4ASUUB3Acjs.ShellTypeValues.SHELL]: {
|
|
200
200
|
icon: _chunk6RMATQNNcjs.ShellIcon,
|
|
201
201
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
202
202
|
}
|
|
@@ -207,7 +207,7 @@ var defaultIconConfig = {
|
|
|
207
207
|
};
|
|
208
208
|
var ShellTypeBadge = ({ shellType, className, iconClassName }) => {
|
|
209
209
|
const normalizedType = _optionalChain([shellType, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]);
|
|
210
|
-
const label =
|
|
210
|
+
const label = _chunk4ASUUB3Acjs.getShellLabel.call(void 0, normalizedType);
|
|
211
211
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
212
212
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
213
213
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex items-center gap-1", className), children: [
|
|
@@ -223,7 +223,7 @@ function formatSupportedPlatforms(platforms) {
|
|
|
223
223
|
if (!platforms || platforms.length === 0) {
|
|
224
224
|
return "All Platforms";
|
|
225
225
|
}
|
|
226
|
-
return platforms.map((platform) =>
|
|
226
|
+
return platforms.map((platform) => _chunk4ASUUB3Acjs.getOSLabel.call(void 0, platform)).join(", ");
|
|
227
227
|
}
|
|
228
228
|
function InfoCell({ label, value, avatar, className }) {
|
|
229
229
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
@@ -253,7 +253,7 @@ var ScriptInfoSection = ({
|
|
|
253
253
|
author,
|
|
254
254
|
className
|
|
255
255
|
}) => {
|
|
256
|
-
const shellLabel =
|
|
256
|
+
const shellLabel = _chunk4ASUUB3Acjs.getShellLabel.call(void 0, shellType);
|
|
257
257
|
const platformsLabel = formatSupportedPlatforms(supportedPlatforms);
|
|
258
258
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", className), children: [
|
|
259
259
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-b border-ods-border p-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-1", children: [
|
|
@@ -301,7 +301,7 @@ function OnboardingStepCard({
|
|
|
301
301
|
onSkip();
|
|
302
302
|
};
|
|
303
303
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
304
|
-
|
|
304
|
+
_chunk23DVVS4Icjs.InteractiveCard,
|
|
305
305
|
{
|
|
306
306
|
clickable: false,
|
|
307
307
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
@@ -327,7 +327,7 @@ function OnboardingStepCard({
|
|
|
327
327
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-[32px] w-[100px] rounded-[6px]" }),
|
|
328
328
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-[32px] w-[120px] rounded-[6px]" })
|
|
329
329
|
] }) : isCompleted ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
330
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
330
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEUEPGHY4cjs.StatusBadge, { text: "COMPLETED", variant: "card", colorScheme: "success" }),
|
|
331
331
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
332
332
|
_chunkFCZAUK4Dcjs.Button,
|
|
333
333
|
{
|
|
@@ -338,7 +338,7 @@ function OnboardingStepCard({
|
|
|
338
338
|
children: step.completedText
|
|
339
339
|
}
|
|
340
340
|
)
|
|
341
|
-
] }) : isSkipped ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
341
|
+
] }) : isSkipped ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEUEPGHY4cjs.StatusBadge, { text: "SKIPPED", variant: "card", colorScheme: "default" }) }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
342
342
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", onClick: handleSkip, children: "Skip Step" }),
|
|
343
343
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", onClick: handleAction, disabled: isProcessing, leftIcon: step.actionIcon("black"), children: step.actionText })
|
|
344
344
|
] })
|
|
@@ -374,7 +374,7 @@ function OnboardingWalkthrough({
|
|
|
374
374
|
isStepSkipped,
|
|
375
375
|
allStepsComplete,
|
|
376
376
|
markMultipleComplete
|
|
377
|
-
} =
|
|
377
|
+
} = _chunkSSSI2RBVcjs.useOnboardingState.call(void 0, storageKey);
|
|
378
378
|
const hasAutoMarkedRef = _react.useRef.call(void 0, false);
|
|
379
379
|
const autoMarkingInProgressRef = _react.useRef.call(void 0, false);
|
|
380
380
|
const lastCompletionStatusRef = _react.useRef.call(void 0, null);
|
|
@@ -456,7 +456,7 @@ function OnboardingWalkthrough({
|
|
|
456
456
|
const isAllComplete = allStepsComplete(steps);
|
|
457
457
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "w-full space-y-4", className), children: [
|
|
458
458
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-start justify-between gap-3 md:flex-row md:items-center md:gap-0", children: [
|
|
459
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
459
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunk23DVVS4Icjs.SECTION_HEADING_CLASS, children: _chunk23DVVS4Icjs.accentSentenceMarks.call(void 0, title) }),
|
|
460
460
|
isLoadingCompletion ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-[48px] w-full rounded-[6px] md:w-[160px]" }) : isAllComplete ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", onClick: handleDismiss, className: "w-full md:w-auto", children: "Close Onboarding" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", onClick: handleDismiss, className: "w-full md:w-auto", children: "Skip Onboarding" })
|
|
461
461
|
] }),
|
|
462
462
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, spacing), children: steps.map((step) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -39,7 +39,7 @@ var _chunkHLJXCOMAcjs = require('./chunk-HLJXCOMA.cjs');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkXCVH5BCZcjs = require('./chunk-XCVH5BCZ.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
var _chunkBUEEQD3Gcjs = require('./chunk-BUEEQD3G.cjs');
|
|
@@ -64,7 +64,7 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
64
64
|
var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
var
|
|
67
|
+
var _chunkPZNWIJRZcjs = require('./chunk-PZNWIJRZ.cjs');
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
@@ -425,7 +425,7 @@ function useSearch(config) {
|
|
|
425
425
|
searchFnRef.current = searchFn;
|
|
426
426
|
mapResultRef.current = mapResult;
|
|
427
427
|
});
|
|
428
|
-
const debouncedQuery =
|
|
428
|
+
const debouncedQuery = _chunkXCVH5BCZcjs.useDebounce.call(void 0, query, debounceMs);
|
|
429
429
|
const clearResults = _react.useCallback.call(void 0, () => {
|
|
430
430
|
setResults(NO_RESULTS);
|
|
431
431
|
setError(null);
|
|
@@ -1201,11 +1201,11 @@ function useContactSubmission(options = {}) {
|
|
|
1201
1201
|
console.log("\u{1F680} Contact submission successful, redirecting to:", successRedirectUrl);
|
|
1202
1202
|
const timer = setTimeout(() => {
|
|
1203
1203
|
console.log("\u{1F3AF} Performing redirect now to:", successRedirectUrl);
|
|
1204
|
-
|
|
1204
|
+
_chunkXCVH5BCZcjs.executeNavigationImperative.call(void 0, {
|
|
1205
1205
|
runtime,
|
|
1206
1206
|
href: successRedirectUrl,
|
|
1207
1207
|
openIn: "same-tab",
|
|
1208
|
-
hostRoute:
|
|
1208
|
+
hostRoute: _chunkPZNWIJRZcjs.isRelativeHref.call(void 0, successRedirectUrl)
|
|
1209
1209
|
});
|
|
1210
1210
|
}, 1500);
|
|
1211
1211
|
return () => clearTimeout(timer);
|
|
@@ -1332,10 +1332,10 @@ function useDownloads({
|
|
|
1332
1332
|
}
|
|
1333
1333
|
function useVisitorDesktopDownload(options = {}) {
|
|
1334
1334
|
const enabled = _nullishCoalesce(options.enabled, () => ( true));
|
|
1335
|
-
const visitor =
|
|
1335
|
+
const visitor = _chunkXCVH5BCZcjs.useVisitorOs.call(void 0, );
|
|
1336
1336
|
const { data, error } = useDownloads(options);
|
|
1337
1337
|
if (!enabled || !visitor.known || !data && !error) return { known: false, download: null };
|
|
1338
|
-
const os =
|
|
1338
|
+
const os = _chunkXCVH5BCZcjs.desktopOsOf.call(void 0, visitor.os);
|
|
1339
1339
|
const download = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _22 => _22.desktop, 'access', _23 => _23.find, 'call', _24 => _24((row) => row.kind === "binary" && row.url && row.os === os)]), () => ( null));
|
|
1340
1340
|
return { known: true, download };
|
|
1341
1341
|
}
|
|
@@ -2585,7 +2585,7 @@ function useScenarioPlayer({
|
|
|
2585
2585
|
startAtEnd = false,
|
|
2586
2586
|
emptyFirstStep = true
|
|
2587
2587
|
}) {
|
|
2588
|
-
const auto =
|
|
2588
|
+
const auto = _chunkXCVH5BCZcjs.useAutoplay.call(void 0, enabled);
|
|
2589
2589
|
const { reducedMotion, held, holdProps, release } = auto;
|
|
2590
2590
|
const [scenario, setScenario] = _react.useState.call(void 0, initialScenario);
|
|
2591
2591
|
const [rawStep, setRawStep] = _react.useState.call(void 0, startAtEnd ? Number.MAX_SAFE_INTEGER : 0);
|
|
@@ -2715,7 +2715,7 @@ function useClaudeMirrorSrc(url) {
|
|
|
2715
2715
|
|
|
2716
2716
|
// src/hooks/use-location-hash.ts
|
|
2717
2717
|
|
|
2718
|
-
var HASH_EVENTS = ["hashchange", "popstate",
|
|
2718
|
+
var HASH_EVENTS = ["hashchange", "popstate", _chunkXCVH5BCZcjs.LOCATION_HASH_SYNC_EVENT];
|
|
2719
2719
|
function subscribe(onChange) {
|
|
2720
2720
|
for (const event of HASH_EVENTS) window.addEventListener(event, onChange);
|
|
2721
2721
|
return () => {
|
|
@@ -2723,7 +2723,7 @@ function subscribe(onChange) {
|
|
|
2723
2723
|
};
|
|
2724
2724
|
}
|
|
2725
2725
|
function readHash() {
|
|
2726
|
-
const raw =
|
|
2726
|
+
const raw = _chunkXCVH5BCZcjs.normalizeHashFragment.call(void 0, window.location.hash).replace(/^#/, "");
|
|
2727
2727
|
try {
|
|
2728
2728
|
return decodeURIComponent(raw);
|
|
2729
2729
|
} catch (e7) {
|
|
@@ -2750,16 +2750,16 @@ function useScrollToHash(readyDep = true, options) {
|
|
|
2750
2750
|
}
|
|
2751
2751
|
};
|
|
2752
2752
|
const tryScrollToHash = () => {
|
|
2753
|
-
if (
|
|
2754
|
-
const hash =
|
|
2753
|
+
if (_chunkXCVH5BCZcjs.isScrollSyncedHash.call(void 0, )) return;
|
|
2754
|
+
const hash = _chunkXCVH5BCZcjs.normalizeHashFragment.call(void 0, window.location.hash).slice(1);
|
|
2755
2755
|
if (!hash) return;
|
|
2756
2756
|
cancelPoll();
|
|
2757
2757
|
let frames = 0;
|
|
2758
2758
|
const tick = () => {
|
|
2759
|
-
const el =
|
|
2759
|
+
const el = _chunkXCVH5BCZcjs.getHashTargetElement.call(void 0, hash);
|
|
2760
2760
|
if (el) {
|
|
2761
2761
|
rafId = null;
|
|
2762
|
-
|
|
2762
|
+
_chunkXCVH5BCZcjs.scrollElementIntoView.call(void 0, el, { headerOffset });
|
|
2763
2763
|
return;
|
|
2764
2764
|
}
|
|
2765
2765
|
if (frames++ < MAX_POLL_FRAMES) {
|