@flamingo-stack/openframe-frontend-core 0.0.804 → 0.0.806

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.
Files changed (62) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{chunk-66ZQ7LDR.cjs → chunk-3B6PFUL3.cjs} +22 -37
  3. package/dist/{chunk-NXJ3O4WO.cjs → chunk-5OFEH673.cjs} +3 -3
  4. package/dist/{chunk-6UGNFMZB.cjs → chunk-7NCNJXMK.cjs} +15 -15
  5. package/dist/{chunk-TTZEDDR5.cjs → chunk-7RM4NM2C.cjs} +1 -0
  6. package/dist/{chunk-A6P6DHEZ.cjs → chunk-7Z536SPR.cjs} +3 -1
  7. package/dist/{chunk-6JRQ57DU.cjs → chunk-CRBG5HXA.cjs} +338 -351
  8. package/dist/{chunk-MEDSJCEX.cjs → chunk-DN5YBJGC.cjs} +2 -2
  9. package/dist/{chunk-BVSZTKI3.cjs → chunk-DTKHEHIQ.cjs} +11 -11
  10. package/dist/{chunk-3EPG56RK.cjs → chunk-FZSL4KSW.cjs} +3 -3
  11. package/dist/{chunk-TTERV57X.cjs → chunk-IMDOKSEG.cjs} +2 -2
  12. package/dist/{chunk-Z6Y5X5SF.cjs → chunk-IN6SPMCB.cjs} +37 -37
  13. package/dist/{chunk-55TGW6BF.cjs → chunk-MR3LQUOW.cjs} +6 -6
  14. package/dist/{chunk-WSKMV2QS.cjs → chunk-OETG7KV6.cjs} +3 -3
  15. package/dist/{chunk-LZIQXGAW.cjs → chunk-PCHNBV73.cjs} +45 -45
  16. package/dist/{chunk-NBLQFJ4I.cjs → chunk-PYZTG3T5.cjs} +5 -5
  17. package/dist/{chunk-AC5EBHAX.cjs → chunk-QE7H4Y3F.cjs} +25 -25
  18. package/dist/{chunk-XXARXK62.cjs → chunk-RTUSHW7S.cjs} +12 -12
  19. package/dist/{chunk-2NVIGBJC.cjs → chunk-SC4RKSMW.cjs} +45 -45
  20. package/dist/{chunk-UCBR27JM.cjs → chunk-URZOWIR3.cjs} +2 -2
  21. package/dist/{chunk-QPBP7FKI.cjs → chunk-XAG7ABPI.cjs} +28 -28
  22. package/dist/{cloud-tenants-LRXMISV4.cjs → cloud-tenants-6E27I6AY.cjs} +6 -6
  23. package/dist/components/case-studies/index.cjs +15 -15
  24. package/dist/components/chat/index.cjs +3 -3
  25. package/dist/components/contact/index.cjs +7 -7
  26. package/dist/components/docs/index.cjs +10 -10
  27. package/dist/components/embeds/index.cjs +7 -7
  28. package/dist/components/faq/index.cjs +8 -8
  29. package/dist/components/features/index.cjs +6 -6
  30. package/dist/components/help-center-pages/index.cjs +66 -66
  31. package/dist/components/index.cjs +37 -37
  32. package/dist/components/meeting-scheduler/index.cjs +45 -45
  33. package/dist/components/navigation/index.cjs +9 -9
  34. package/dist/components/onboarding-guides/index.cjs +8 -8
  35. package/dist/components/product-demo/index.cjs +16 -16
  36. package/dist/components/tickets/index.cjs +11 -11
  37. package/dist/components/ui/autocomplete.d.ts.map +1 -1
  38. package/dist/components/ui/autocomplete.js +14 -30
  39. package/dist/components/ui/field-wrapper.d.ts.map +1 -1
  40. package/dist/components/ui/field-wrapper.js +2 -1
  41. package/dist/components/ui/file-manager/index.cjs +2 -2
  42. package/dist/components/ui/index.cjs +6 -6
  43. package/dist/components/ui/tag-search-input.d.ts.map +1 -1
  44. package/dist/components/ui/tag-search-input.js +15 -29
  45. package/dist/{devices-CETR72XY.cjs → devices-HZVRGH3A.cjs} +7 -7
  46. package/dist/hooks/index.cjs +4 -2
  47. package/dist/hooks/ui/use-auto-limit-tags.d.ts +6 -0
  48. package/dist/hooks/ui/use-auto-limit-tags.d.ts.map +1 -1
  49. package/dist/hooks/ui/use-auto-limit-tags.js +2 -0
  50. package/dist/index.cjs +12 -10
  51. package/dist/{knowledge-A2MWEF23.cjs → knowledge-EJG7YG7C.cjs} +6 -6
  52. package/dist/{logs-47JODA6C.cjs → logs-6N3ANKZK.cjs} +14 -14
  53. package/dist/{policies-OPIDR6XF.cjs → policies-CE7A66D7.cjs} +10 -10
  54. package/dist/{remote-session-IQTPEG63.cjs → remote-session-HLGLKOGW.cjs} +6 -6
  55. package/dist/{scripts-4MQGJWFP.cjs → scripts-NREM2Y6Z.cjs} +13 -13
  56. package/dist/{software-update-MQIGPBZ6.cjs → software-update-CI4F3IRV.cjs} +10 -10
  57. package/package.json +5 -6
  58. package/src/components/ui/autocomplete.tsx +5 -13
  59. package/src/components/ui/field-wrapper.tsx +5 -0
  60. package/src/components/ui/tag-search-input.tsx +16 -22
  61. package/src/hooks/ui/use-auto-limit-tags.ts +7 -0
  62. /package/dist/{image-sizes.cjs → styles/image-sizes.cjs} +0 -0
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkNBLQFJ4Icjs = require('./chunk-NBLQFJ4I.cjs');
4
+ var _chunkPYZTG3T5cjs = require('./chunk-PYZTG3T5.cjs');
5
5
 
6
6
 
7
7
  var _chunkKVJKKVB3cjs = require('./chunk-KVJKKVB3.cjs');
@@ -396,7 +396,7 @@ function useScrollSpy(sections, options = {}) {
396
396
  // src/components/navigation/multi-level-navigation.tsx
397
397
  var _lucidereact = require('lucide-react');
398
398
 
399
- var DEFAULT_FOLDER_INDEX_FILE2 = _chunkNBLQFJ4Icjs.DEFAULT_FOLDER_INDEX_FILE;
399
+ var DEFAULT_FOLDER_INDEX_FILE2 = _chunkPYZTG3T5cjs.DEFAULT_FOLDER_INDEX_FILE;
400
400
  var NAV_LIST_CLASS = "space-y-2";
401
401
  var NAV_ITEM_CLASS = "space-y-1";
402
402
  var NAV_ROW_FRAME_CLASS = "relative w-full rounded-lg border transition-all duration-150";
@@ -6,7 +6,7 @@ var _chunkAZJYMTBScjs = require('./chunk-AZJYMTBS.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkNBLQFJ4Icjs = require('./chunk-NBLQFJ4I.cjs');
9
+ var _chunkPYZTG3T5cjs = require('./chunk-PYZTG3T5.cjs');
10
10
 
11
11
 
12
12
  var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
@@ -172,31 +172,31 @@ CveLink.displayName = "CveLink";
172
172
  // src/components/platform/ShellTypeBadge.tsx
173
173
 
174
174
  var shellIconMap = {
175
- [_chunkNBLQFJ4Icjs.ShellTypeValues.POWERSHELL]: {
175
+ [_chunkPYZTG3T5cjs.ShellTypeValues.POWERSHELL]: {
176
176
  icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon,
177
177
  props: { size: 16, className: "text-ods-text-secondary" }
178
178
  },
179
- [_chunkNBLQFJ4Icjs.ShellTypeValues.CMD]: {
179
+ [_chunkPYZTG3T5cjs.ShellTypeValues.CMD]: {
180
180
  icon: _chunkUXUYT4WKcjs.CmdIcon,
181
181
  props: { size: 16, color: "var(--color-text-secondary)" }
182
182
  },
183
- [_chunkNBLQFJ4Icjs.ShellTypeValues.BASH]: {
183
+ [_chunkPYZTG3T5cjs.ShellTypeValues.BASH]: {
184
184
  icon: _chunk5OG5ZTNMcjs.BashIcon,
185
185
  props: { size: 16, color: "var(--color-text-secondary)" }
186
186
  },
187
- [_chunkNBLQFJ4Icjs.ShellTypeValues.PYTHON]: {
187
+ [_chunkPYZTG3T5cjs.ShellTypeValues.PYTHON]: {
188
188
  icon: _chunkBF77UKGDcjs.PythonLogoIcon,
189
189
  props: { size: 16, className: "text-ods-text-secondary" }
190
190
  },
191
- [_chunkNBLQFJ4Icjs.ShellTypeValues.NUSHELL]: {
191
+ [_chunkPYZTG3T5cjs.ShellTypeValues.NUSHELL]: {
192
192
  icon: _chunkG37H4CBTcjs.NushellIcon,
193
193
  props: { size: 16, color: "var(--color-text-secondary)" }
194
194
  },
195
- [_chunkNBLQFJ4Icjs.ShellTypeValues.DENO]: {
195
+ [_chunkPYZTG3T5cjs.ShellTypeValues.DENO]: {
196
196
  icon: _chunkHUL6SF5Acjs.DenoIcon,
197
197
  props: { size: 16, color: "var(--color-text-secondary)" }
198
198
  },
199
- [_chunkNBLQFJ4Icjs.ShellTypeValues.SHELL]: {
199
+ [_chunkPYZTG3T5cjs.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 = _chunkNBLQFJ4Icjs.getShellLabel.call(void 0, normalizedType);
210
+ const label = _chunkPYZTG3T5cjs.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: _chunk7JWFMAQBcjs.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) => _chunkNBLQFJ4Icjs.getOSLabel.call(void 0, platform)).join(", ");
226
+ return platforms.map((platform) => _chunkPYZTG3T5cjs.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: _chunk7JWFMAQBcjs.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 = _chunkNBLQFJ4Icjs.getShellLabel.call(void 0, shellType);
256
+ const shellLabel = _chunkPYZTG3T5cjs.getShellLabel.call(void 0, shellType);
257
257
  const platformsLabel = formatSupportedPlatforms(supportedPlatforms);
258
258
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.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: [
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _chunk6JRQ57DUcjs = require('./chunk-6JRQ57DU.cjs');
4
+ var _chunkCRBG5HXAcjs = require('./chunk-CRBG5HXA.cjs');
5
5
 
6
6
 
7
7
  var _chunkCKR42OBKcjs = require('./chunk-CKR42OBK.cjs');
@@ -48,7 +48,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
48
48
  ] });
49
49
  }
50
50
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
51
- _chunk6JRQ57DUcjs.EmbedViewerFrame,
51
+ _chunkCRBG5HXAcjs.EmbedViewerFrame,
52
52
  {
53
53
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCKR42OBKcjs.GoogleSheetsIcon, { className: "h-5 w-5 shrink-0" }),
54
54
  title: displayName,
@@ -83,7 +83,7 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
83
83
  ] });
84
84
  }
85
85
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
86
- _chunk6JRQ57DUcjs.EmbedViewerFrame,
86
+ _chunkCRBG5HXAcjs.EmbedViewerFrame,
87
87
  {
88
88
  icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM7ZSKWT3cjs.AdobePdfIcon, { className: "h-5 w-5 shrink-0" }),
89
89
  title: displayName,
@@ -1,7 +1,7 @@
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 _chunkNBLQFJ4Icjs = require('./chunk-NBLQFJ4I.cjs');
4
+ var _chunkPYZTG3T5cjs = require('./chunk-PYZTG3T5.cjs');
5
5
 
6
6
 
7
7
  var _chunkF2VN3UUBcjs = require('./chunk-F2VN3UUB.cjs');
@@ -160,7 +160,7 @@ function TicketLiveProvider({ children, enabled = true }) {
160
160
  _react2.default.useEffect(() => {
161
161
  if (!streamEnabled) return void 0;
162
162
  if (typeof window === "undefined") return void 0;
163
- subscriptionRef.current = _chunkNBLQFJ4Icjs.createSseSubscription.call(void 0, {
163
+ subscriptionRef.current = _chunkPYZTG3T5cjs.createSseSubscription.call(void 0, {
164
164
  url: streamUrl,
165
165
  onEvent: (name, data) => handlersRef.current.onEvent(name, data),
166
166
  onStatusChange: (status) => handlersRef.current.onStatus(status),
@@ -3,33 +3,33 @@
3
3
 
4
4
 
5
5
 
6
- var _chunk3EPG56RKcjs = require('./chunk-3EPG56RK.cjs');
6
+ var _chunkFZSL4KSWcjs = require('./chunk-FZSL4KSW.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkMEDSJCEXcjs = require('./chunk-MEDSJCEX.cjs');
12
+ var _chunkDN5YBJGCcjs = require('./chunk-DN5YBJGC.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkUCBR27JMcjs = require('./chunk-UCBR27JM.cjs');
16
+ var _chunkURZOWIR3cjs = require('./chunk-URZOWIR3.cjs');
17
17
 
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunk6JRQ57DUcjs = require('./chunk-6JRQ57DU.cjs');
23
+ var _chunkCRBG5HXAcjs = require('./chunk-CRBG5HXA.cjs');
24
24
 
25
25
 
26
- var _chunk66ZQ7LDRcjs = require('./chunk-66ZQ7LDR.cjs');
26
+ var _chunk3B6PFUL3cjs = require('./chunk-3B6PFUL3.cjs');
27
27
 
28
28
 
29
29
 
30
30
 
31
31
 
32
- var _chunkNBLQFJ4Icjs = require('./chunk-NBLQFJ4I.cjs');
32
+ var _chunkPYZTG3T5cjs = require('./chunk-PYZTG3T5.cjs');
33
33
 
34
34
 
35
35
 
@@ -354,13 +354,13 @@ function toDocContent(value, requestedPath) {
354
354
  function toDataSync(value) {
355
355
  if (!isRecord(value)) return void 0;
356
356
  const source = readString(value, "source");
357
- if (!_chunk6JRQ57DUcjs.isDataSyncSource.call(void 0, source)) return void 0;
357
+ if (!_chunkCRBG5HXAcjs.isDataSyncSource.call(void 0, source)) return void 0;
358
358
  return { source, syncedAt: _nullishCoalesce(readString(value, "syncedAt"), () => ( null)) };
359
359
  }
360
360
  function useDocumentTree(config, initialPath) {
361
361
  const { structureEndpoint, contentEndpoint, baseRoute } = config;
362
- const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkNBLQFJ4Icjs.DEFAULT_FOLDER_INDEX_FILE));
363
- const cleanInitialPath = _chunkNBLQFJ4Icjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
362
+ const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkPYZTG3T5cjs.DEFAULT_FOLDER_INDEX_FILE));
363
+ const cleanInitialPath = _chunkPYZTG3T5cjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
364
364
  const [structure, setStructure] = _react.useState.call(void 0, []);
365
365
  const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
366
366
  const [content, setContent] = _react.useState.call(void 0, null);
@@ -386,12 +386,12 @@ function useDocumentTree(config, initialPath) {
386
386
  } else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
387
387
  pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
388
388
  }
389
- pathFromUrl = _chunkNBLQFJ4Icjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
389
+ pathFromUrl = _chunkPYZTG3T5cjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
390
390
  if (pathFromUrl !== selectedPathRef.current) {
391
391
  setSelectedPath(pathFromUrl);
392
392
  if (pathFromUrl) {
393
393
  const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
394
- setExpandedNodes(new Set(_chunkNBLQFJ4Icjs.getDocAncestorNodeIds.call(void 0, parentPath)));
394
+ setExpandedNodes(new Set(_chunkPYZTG3T5cjs.getDocAncestorNodeIds.call(void 0, parentPath)));
395
395
  }
396
396
  setTimeout(() => {
397
397
  scrollToContent();
@@ -409,7 +409,7 @@ function useDocumentTree(config, initialPath) {
409
409
  setSelectedPath(cleanInitialPath);
410
410
  if (cleanInitialPath) {
411
411
  const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
412
- setExpandedNodes(new Set(_chunkNBLQFJ4Icjs.getDocAncestorNodeIds.call(void 0, parentPath)));
412
+ setExpandedNodes(new Set(_chunkPYZTG3T5cjs.getDocAncestorNodeIds.call(void 0, parentPath)));
413
413
  }
414
414
  setExternalNavCount((n) => n + 1);
415
415
  }
@@ -434,7 +434,7 @@ function useDocumentTree(config, initialPath) {
434
434
  if (cleanInitialPath) {
435
435
  const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
436
436
  if (pathForExpansion) {
437
- setExpandedNodes(new Set(_chunkNBLQFJ4Icjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
437
+ setExpandedNodes(new Set(_chunkPYZTG3T5cjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
438
438
  }
439
439
  } else if (nodes.length > 0) {
440
440
  const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
@@ -474,7 +474,7 @@ function useDocumentTree(config, initialPath) {
474
474
  setContent(null);
475
475
  return;
476
476
  }
477
- const probe = _chunkNBLQFJ4Icjs.findDocNodeByPath.call(void 0, _chunkNBLQFJ4Icjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
477
+ const probe = _chunkPYZTG3T5cjs.findDocNodeByPath.call(void 0, _chunkPYZTG3T5cjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
478
478
  const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
479
479
  const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
480
480
  if (probeIsNoReadmeFolder || preStructureFolderLike) {
@@ -533,7 +533,7 @@ function useDocumentTree(config, initialPath) {
533
533
  if (selectedPath === "") {
534
534
  pathToFetch = folderIndexFile;
535
535
  } else {
536
- const node = _chunkNBLQFJ4Icjs.findDocNodeByPath.call(void 0, selectedPath, structure);
536
+ const node = _chunkPYZTG3T5cjs.findDocNodeByPath.call(void 0, selectedPath, structure);
537
537
  if (node && node.type === "folder" && !node.hasReadme) {
538
538
  const firstDocPath = findFirstDocPath(node);
539
539
  if (!firstDocPath) {
@@ -574,16 +574,16 @@ function useDocumentTree(config, initialPath) {
574
574
  if (node.type === "folder") {
575
575
  setExpandedNodes((prev) => {
576
576
  if (prev.has(node.id)) {
577
- const ancestorIds = _chunkNBLQFJ4Icjs.getDocAncestorNodeIds.call(void 0, node.path);
577
+ const ancestorIds = _chunkPYZTG3T5cjs.getDocAncestorNodeIds.call(void 0, node.path);
578
578
  ancestorIds.pop();
579
579
  return new Set(ancestorIds);
580
580
  }
581
- return new Set(_chunkNBLQFJ4Icjs.getDocAncestorNodeIds.call(void 0, node.path));
581
+ return new Set(_chunkPYZTG3T5cjs.getDocAncestorNodeIds.call(void 0, node.path));
582
582
  });
583
583
  } else {
584
584
  const lastSlash = node.path.lastIndexOf("/");
585
585
  if (lastSlash > 0) {
586
- setExpandedNodes(new Set(_chunkNBLQFJ4Icjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
586
+ setExpandedNodes(new Set(_chunkPYZTG3T5cjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
587
587
  }
588
588
  }
589
589
  lastFetchedPath.current = null;
@@ -598,7 +598,7 @@ function useDocumentTree(config, initialPath) {
598
598
  const hashIndex = path.indexOf("#");
599
599
  const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
600
600
  const cleanPath = path.replace(/\/$/, "").split("#")[0];
601
- const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkNBLQFJ4Icjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
601
+ const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkPYZTG3T5cjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
602
602
  if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
603
603
  _chunkOJZBZH56cjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkOJZBZH56cjs.HUB_HEADER_OFFSET_PX });
604
604
  return;
@@ -662,15 +662,15 @@ function useDocumentTree(config, initialPath) {
662
662
  return docNavigation.register({
663
663
  baseRoute: normalizedBaseRoute,
664
664
  findNodeByPath: (path) => {
665
- const clean = _chunkNBLQFJ4Icjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
666
- return _nullishCoalesce(_chunkNBLQFJ4Icjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
665
+ const clean = _chunkPYZTG3T5cjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
666
+ return _nullishCoalesce(_chunkPYZTG3T5cjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
667
667
  },
668
668
  selectNode
669
669
  });
670
670
  }, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
671
671
  const isEmptyFolder = _react.useMemo.call(void 0, () => {
672
672
  if (!selectedPath || structure.length === 0) return false;
673
- const node = _chunkNBLQFJ4Icjs.findDocNodeByPath.call(void 0, selectedPath, structure);
673
+ const node = _chunkPYZTG3T5cjs.findDocNodeByPath.call(void 0, selectedPath, structure);
674
674
  return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
675
675
  }, [selectedPath, structure]);
676
676
  return {
@@ -753,14 +753,14 @@ function DocViewerContent({
753
753
  },
754
754
  docPath
755
755
  );
756
- const { activeSection, handleSectionClick } = _chunkMEDSJCEXcjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
756
+ const { activeSection, handleSectionClick } = _chunkDN5YBJGCcjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
757
757
  const docNav = useDocNavigation();
758
758
  const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
759
759
  const backCfg = backButton === false ? null : {
760
760
  label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
761
761
  onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
762
762
  };
763
- const docSearch = _chunkUCBR27JMcjs.useDocSearch.call(void 0, {
763
+ const docSearch = _chunkURZOWIR3cjs.useDocSearch.call(void 0, {
764
764
  source: chatSource,
765
765
  baseRoute,
766
766
  searchEndpoint,
@@ -784,7 +784,7 @@ function DocViewerContent({
784
784
  onResolveLink: resolveLink
785
785
  });
786
786
  }, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
787
- const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkNBLQFJ4Icjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
787
+ const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkPYZTG3T5cjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
788
788
  const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _15 => _15.documentType]), () => ( selectedNodeDocType));
789
789
  const isMarkdownContent = !activeDocType || activeDocType === "markdown";
790
790
  const showStickyNav = isMarkdownContent;
@@ -795,10 +795,10 @@ function DocViewerContent({
795
795
  const containerBgStyle = colorPalette.containerBackground !== "transparent" ? { backgroundColor: colorPalette.containerBackground } : {};
796
796
  const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
797
797
  const resolvedEmptyText = emptyStateText || defaultEmptyText;
798
- const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.PageLayout, { title, subtitle, titleSize: "h1", titleWrap: true, backButton: _nullishCoalesce(backCfg, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-10", children: [
799
- synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6JRQ57DUcjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
798
+ const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6PFUL3cjs.PageLayout, { title, subtitle, titleSize: "h1", titleWrap: true, backButton: _nullishCoalesce(backCfg, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-10", children: [
799
+ synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCRBG5HXAcjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
800
800
  showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
801
- _chunkUCBR27JMcjs.DocSearchBar,
801
+ _chunkURZOWIR3cjs.DocSearchBar,
802
802
  {
803
803
  placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _20 => _20.toLowerCase, 'call', _21 => _21()]) || "documents"}...`,
804
804
  query: docSearch.query,
@@ -819,7 +819,7 @@ function DocViewerContent({
819
819
  !error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-start gap-6 content-lg:flex-row content-lg:gap-10", children: [
820
820
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: [
821
821
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
822
- _chunkMEDSJCEXcjs.MobileNavigationDropdown,
822
+ _chunkDN5YBJGCcjs.MobileNavigationDropdown,
823
823
  {
824
824
  nodes: structure,
825
825
  selectedPath,
@@ -833,7 +833,7 @@ function DocViewerContent({
833
833
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentSidebar, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
834
834
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
835
835
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
836
- _chunkMEDSJCEXcjs.MultiLevelNavigation,
836
+ _chunkDN5YBJGCcjs.MultiLevelNavigation,
837
837
  {
838
838
  nodes: structure,
839
839
  selectedPath,
@@ -872,7 +872,7 @@ function DocViewerContent({
872
872
  showStickyNav && content && stickyNavSections.length > 0 && !isLoadingContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
873
873
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: ON_THIS_PAGE_HEADING_CLASS, children: ON_THIS_PAGE_LABEL }),
874
874
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
875
- _chunkMEDSJCEXcjs.StickySectionNav,
875
+ _chunkDN5YBJGCcjs.StickySectionNav,
876
876
  {
877
877
  sections: stickyNavSections,
878
878
  activeSection,
@@ -887,7 +887,7 @@ function DocViewerContent({
887
887
  ) })
888
888
  ] })
889
889
  ] }) }) });
890
- return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6JRQ57DUcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
890
+ return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCRBG5HXAcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
891
891
  }
892
892
 
893
893
  // src/components/docs/skeletons.tsx
@@ -959,7 +959,7 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
959
959
  ] }),
960
960
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-center gap-2 content-sm:w-auto", children: Array.from({ length: buttonCount }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { className: "h-10 w-full flex-1 rounded content-sm:w-32 content-sm:flex-initial" }, i)) })
961
961
  ] }),
962
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6JRQ57DUcjs.EmbedLoadingSkeleton, { region: false })
962
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCRBG5HXAcjs.EmbedLoadingSkeleton, { region: false })
963
963
  ] });
964
964
  }
965
965
 
@@ -967,11 +967,11 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
967
967
 
968
968
  var DEFAULT_TITLE = "Documents";
969
969
  var defaultFallbackRenderer = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "py-16 text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: "Unsupported document type" }) });
970
- var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3EPG56RKcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
971
- var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3EPG56RKcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
972
- var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6JRQ57DUcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
970
+ var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFZSL4KSWcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
971
+ var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFZSL4KSWcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
972
+ var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCRBG5HXAcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
973
973
  var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
974
- _chunk3EPG56RKcjs.FileDownloadCard,
974
+ _chunkFZSL4KSWcjs.FileDownloadCard,
975
975
  {
976
976
  fileName: content.fileName,
977
977
  mimeType: content.mimeType,
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkNXJ3O4WOcjs = require('./chunk-NXJ3O4WO.cjs');
4
+ var _chunk5OFEH673cjs = require('./chunk-5OFEH673.cjs');
5
5
 
6
6
 
7
- var _chunk6JRQ57DUcjs = require('./chunk-6JRQ57DU.cjs');
7
+ var _chunkCRBG5HXAcjs = require('./chunk-CRBG5HXA.cjs');
8
8
 
9
9
 
10
- var _chunk66ZQ7LDRcjs = require('./chunk-66ZQ7LDR.cjs');
10
+ var _chunk3B6PFUL3cjs = require('./chunk-3B6PFUL3.cjs');
11
11
 
12
12
 
13
13
  var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
@@ -36,8 +36,8 @@ function FaqDocumentPage({
36
36
  label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _ => _.label]), () => ( "Back to home")),
37
37
  onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _2 => _2.href]), () => ( "/")))
38
38
  };
39
- const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
40
- _chunkNXJ3O4WOcjs.FaqSection,
39
+ const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3B6PFUL3cjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
40
+ _chunk5OFEH673cjs.FaqSection,
41
41
  {
42
42
  initialFaqs,
43
43
  heading: null,
@@ -53,7 +53,7 @@ function FaqDocumentPage({
53
53
  skeletonNav
54
54
  }
55
55
  ) });
56
- return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6JRQ57DUcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
56
+ return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCRBG5HXAcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
57
57
  }
58
58
 
59
59
 
@@ -5,12 +5,12 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunk6JRQ57DUcjs = require('./chunk-6JRQ57DU.cjs');
8
+ var _chunkCRBG5HXAcjs = require('./chunk-CRBG5HXA.cjs');
9
9
 
10
10
  // src/components/product-demo/screens/devices-view.tsx
11
11
  var _jsxruntime = require('react/jsx-runtime');
12
12
  var DEVICES_SEARCH_QUERY = "Windows";
13
- var TOOLBAR = { ..._chunk6JRQ57DUcjs.IDLE_DEVICES_TOOLBAR, searchValue: DEVICES_SEARCH_QUERY };
13
+ var TOOLBAR = { ..._chunkCRBG5HXAcjs.IDLE_DEVICES_TOOLBAR, searchValue: DEVICES_SEARCH_QUERY };
14
14
  var NO_HEADER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
15
15
  var HIDDEN_WHEN_COMPACT = ["organization"];
16
16
  var NO_DEVICES = [];
@@ -22,7 +22,7 @@ function DevicesScreenView({
22
22
  loading = false
23
23
  }) {
24
24
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
25
- _chunk6JRQ57DUcjs.DevicesPanelView,
25
+ _chunkCRBG5HXAcjs.DevicesPanelView,
26
26
  {
27
27
  className: "p-[var(--spacing-system-l)]",
28
28
  headerSlot: NO_HEADER,