@flamingo-stack/openframe-frontend-core 0.0.837 → 0.0.839

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 (77) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{chunk-4644MFU2.cjs → chunk-2QAUQPGC.cjs} +3 -3
  3. package/dist/{chunk-FU7VLVYI.cjs → chunk-2XZZHRRU.cjs} +9 -9
  4. package/dist/{chunk-66ENLZYE.cjs → chunk-37XKZ4JM.cjs} +4 -4
  5. package/dist/{chunk-NAB6HCQ3.cjs → chunk-3MBKEF7Z.cjs} +32 -32
  6. package/dist/{chunk-WAYYHZFS.cjs → chunk-5E4YEHHO.cjs} +8 -7
  7. package/dist/{chunk-RJJPOPF7.cjs → chunk-64PF3UC7.cjs} +2 -2
  8. package/dist/{chunk-D4DRZIUK.cjs → chunk-C4RYIDPU.cjs} +5 -5
  9. package/dist/{chunk-S3CSQIDW.cjs → chunk-DFTXZE7B.cjs} +41 -41
  10. package/dist/{chunk-ZWI6A4SG.cjs → chunk-ENK75WN4.cjs} +2 -2
  11. package/dist/{chunk-BWJHIPB6.cjs → chunk-GN6LEJWY.cjs} +32 -32
  12. package/dist/{chunk-EDBQXRKN.cjs → chunk-N2TCVIPR.cjs} +284 -101
  13. package/dist/{chunk-UU5MDCD4.cjs → chunk-S5RMRQKT.cjs} +11 -11
  14. package/dist/{chunk-FEISG7YJ.cjs → chunk-SZVPRP5E.cjs} +3 -3
  15. package/dist/{chunk-J63RYNMW.cjs → chunk-TKS25VKE.cjs} +10 -10
  16. package/dist/{chunk-S5HBEMZN.cjs → chunk-UDRVVCOC.cjs} +42 -42
  17. package/dist/{chunk-KBPKMASF.cjs → chunk-XJ4AB24Y.cjs} +3 -3
  18. package/dist/{cloud-tenants-MJHJKTLX.cjs → cloud-tenants-WE3H3VAW.cjs} +3 -3
  19. package/dist/components/case-studies/index.cjs +12 -12
  20. package/dist/components/chat/composer-sheet.d.ts +5 -3
  21. package/dist/components/chat/composer-sheet.d.ts.map +1 -1
  22. package/dist/components/chat/composer-sheet.js +7 -6
  23. package/dist/components/chat/embeddable-chat.js +5 -2
  24. package/dist/components/chat/index.cjs +2 -2
  25. package/dist/components/contact/index.cjs +4 -4
  26. package/dist/components/docs/index.cjs +6 -6
  27. package/dist/components/embeds/index.cjs +4 -4
  28. package/dist/components/faq/index.cjs +5 -5
  29. package/dist/components/features/command-box.d.ts.map +1 -1
  30. package/dist/components/features/command-box.js +4 -23
  31. package/dist/components/features/index.cjs +13 -3
  32. package/dist/components/features/software/index.d.ts +1 -0
  33. package/dist/components/features/software/index.d.ts.map +1 -1
  34. package/dist/components/features/software/index.js +12 -0
  35. package/dist/components/features/software/software-action-form.d.ts +9 -1
  36. package/dist/components/features/software/software-action-form.d.ts.map +1 -1
  37. package/dist/components/features/software/software-action-form.js +18 -1
  38. package/dist/components/features/software/update-settings-fields.d.ts +43 -0
  39. package/dist/components/features/software/update-settings-fields.d.ts.map +1 -0
  40. package/dist/components/features/software/update-settings-fields.js +202 -0
  41. package/dist/components/help-center-pages/download-apps-page.d.ts +1 -1
  42. package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -1
  43. package/dist/components/help-center-pages/download-apps-page.js +2 -3
  44. package/dist/components/help-center-pages/index.cjs +57 -58
  45. package/dist/components/index.cjs +42 -32
  46. package/dist/components/meeting-scheduler/index.cjs +26 -26
  47. package/dist/components/navigation/index.cjs +6 -6
  48. package/dist/components/onboarding-guides/index.cjs +4 -4
  49. package/dist/components/product-demo/fixtures/software-update.d.ts +2 -0
  50. package/dist/components/product-demo/fixtures/software-update.d.ts.map +1 -1
  51. package/dist/components/product-demo/fixtures/software-update.js +3 -2
  52. package/dist/components/product-demo/index.cjs +12 -12
  53. package/dist/components/tickets/index.cjs +8 -8
  54. package/dist/components/ui/index.cjs +3 -3
  55. package/dist/{devices-CXVCHKOY.cjs → devices-ZBZN2RRG.cjs} +4 -4
  56. package/dist/{embeddable-chat-M7L3DBNO.cjs → embeddable-chat-RBC7F4TL.cjs} +5 -2
  57. package/dist/index.cjs +17 -7
  58. package/dist/{knowledge-FLQDJJPG.cjs → knowledge-2QNZGDFO.cjs} +3 -3
  59. package/dist/{logs-D5QE4XXT.cjs → logs-YPWTJVIH.cjs} +10 -10
  60. package/dist/{policies-W62WSRBO.cjs → policies-BK7TUKAF.cjs} +7 -7
  61. package/dist/{scripts-MVJAIKSW.cjs → scripts-K7AOYWZE.cjs} +8 -8
  62. package/dist/{software-update-XP5CN7YZ.cjs → software-update-UFN4SBMY.cjs} +8 -8
  63. package/dist/utils/notifications.cjs +2 -0
  64. package/dist/utils/notifications.d.ts +1 -1
  65. package/dist/utils/notifications.d.ts.map +1 -1
  66. package/dist/utils/notifications.js +2 -0
  67. package/package.json +1 -1
  68. package/src/components/chat/composer-sheet.tsx +12 -9
  69. package/src/components/chat/embeddable-chat.tsx +5 -2
  70. package/src/components/features/command-box.tsx +17 -19
  71. package/src/components/features/notifications/notification-category-icon.tsx +1 -1
  72. package/src/components/features/software/index.ts +11 -0
  73. package/src/components/features/software/software-action-form.tsx +28 -1
  74. package/src/components/features/software/update-settings-fields.tsx +265 -0
  75. package/src/components/help-center-pages/download-apps-page.tsx +4 -5
  76. package/src/components/product-demo/fixtures/software-update.ts +2 -2
  77. package/src/utils/notifications.ts +2 -0
@@ -8,7 +8,7 @@ var _chunkMZ4KBSH7cjs = require('./chunk-MZ4KBSH7.cjs');
8
8
 
9
9
 
10
10
 
11
- var _chunkWAYYHZFScjs = require('./chunk-WAYYHZFS.cjs');
11
+ var _chunk5E4YEHHOcjs = require('./chunk-5E4YEHHO.cjs');
12
12
 
13
13
 
14
14
 
@@ -148,14 +148,14 @@ function FaqAccordionSkeleton({
148
148
 
149
149
  var PICK_ROOT_MARGIN = "600px";
150
150
  function faqAskCardShown(assistant) {
151
- return _chunkWAYYHZFScjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
151
+ return _chunk5E4YEHHOcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
152
152
  }
153
153
  function FaqAskCard({ exclude, count, title, description, onOpen }) {
154
154
  const { ref, inView } = _chunkZABZIM2Ycjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
155
155
  const [reached, setReached] = _react.useState.call(void 0, false);
156
156
  if (inView && !reached) setReached(true);
157
157
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
158
- _chunkWAYYHZFScjs.AssistantAskPrompts,
158
+ _chunk5E4YEHHOcjs.AssistantAskPrompts,
159
159
  {
160
160
  variant: "card",
161
161
  count,
@@ -4,7 +4,7 @@
4
4
  var _chunkWVNUCKB7cjs = require('./chunk-WVNUCKB7.cjs');
5
5
 
6
6
 
7
- var _chunk4644MFU2cjs = require('./chunk-4644MFU2.cjs');
7
+ var _chunk2QAUQPGCcjs = require('./chunk-2QAUQPGC.cjs');
8
8
 
9
9
 
10
10
 
@@ -13,13 +13,13 @@ var _chunkHEVW75L3cjs = require('./chunk-HEVW75L3.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkEDBQXRKNcjs = require('./chunk-EDBQXRKN.cjs');
16
+ var _chunkN2TCVIPRcjs = require('./chunk-N2TCVIPR.cjs');
17
17
 
18
18
 
19
19
  var _chunkFNNDGOR3cjs = require('./chunk-FNNDGOR3.cjs');
20
20
 
21
21
 
22
- var _chunkWAYYHZFScjs = require('./chunk-WAYYHZFS.cjs');
22
+ var _chunk5E4YEHHOcjs = require('./chunk-5E4YEHHO.cjs');
23
23
 
24
24
 
25
25
  var _chunkZ7A7IZWLcjs = require('./chunk-Z7A7IZWL.cjs');
@@ -106,7 +106,7 @@ function PageDataSyncProvider({
106
106
  function PageDataSyncRow({ inline = false }) {
107
107
  const context = _react.useContext.call(void 0, PageDataSyncContext);
108
108
  if (!context) return null;
109
- const line = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDBQXRKNcjs.DataSyncLine, { sync: context.state.sync, loading: context.state.loading, stated: context.stated, inline });
109
+ const line = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2TCVIPRcjs.DataSyncLine, { sync: context.state.sync, loading: context.state.loading, stated: context.stated, inline });
110
110
  return context.stated ? line : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "contents", "data-loading-optional": "", children: line });
111
111
  }
112
112
  function usePageDataSync(sync, loading) {
@@ -125,7 +125,7 @@ function usePageDataSync(sync, loading) {
125
125
  // src/components/shared/dev-section/dev-section-view.tsx
126
126
 
127
127
  function DevSectionView({ sectionKey, preControls, children, showHeading = true }) {
128
- const section = _chunkWAYYHZFScjs.OPENFRAME_DEV_SECTIONS[sectionKey];
128
+ const section = _chunk5E4YEHHOcjs.OPENFRAME_DEV_SECTIONS[sectionKey];
129
129
  const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
130
130
  const pathname = _chunk7DNL734Scjs.usePathname.call(void 0, );
131
131
  const searchParams = _chunk7DNL734Scjs.useSearchParams.call(void 0, );
@@ -177,7 +177,7 @@ function DevSectionView({ sectionKey, preControls, children, showHeading = true
177
177
  }
178
178
  ),
179
179
  filter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
180
- _chunkEDBQXRKNcjs.StatusFilterComponent,
180
+ _chunkN2TCVIPRcjs.StatusFilterComponent,
181
181
  {
182
182
  selectedStatus: currentFilterValue,
183
183
  onStatusChange: handleFilterChange,
@@ -201,7 +201,7 @@ function DevSectionPage({
201
201
  shell = true
202
202
  }) {
203
203
  const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
204
- const section = _chunkWAYYHZFScjs.OPENFRAME_DEV_SECTIONS[sectionKey];
204
+ const section = _chunk5E4YEHHOcjs.OPENFRAME_DEV_SECTIONS[sectionKey];
205
205
  const backCfg = backButton === false ? void 0 : {
206
206
  label: _nullishCoalesce((backButton ? backButton.label : void 0), () => ( "Back to home")),
207
207
  onClick: () => router.push(_nullishCoalesce((backButton ? backButton.href : void 0), () => ( "/")))
@@ -223,12 +223,12 @@ function DevSectionPage({
223
223
  backButton: backCfg,
224
224
  children: [
225
225
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DevSectionView, { sectionKey, showHeading: false, preControls, children }),
226
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4644MFU2cjs.SharedPageFaq, {})
226
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QAUQPGCcjs.SharedPageFaq, {})
227
227
  ]
228
228
  }
229
229
  )
230
230
  );
231
- return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDBQXRKNcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
231
+ return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2TCVIPRcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
232
232
  }
233
233
 
234
234
  // src/components/shared/dev-section/dev-card-row.tsx
@@ -1,10 +1,10 @@
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 _chunk4644MFU2cjs = require('./chunk-4644MFU2.cjs');
4
+ var _chunk2QAUQPGCcjs = require('./chunk-2QAUQPGC.cjs');
5
5
 
6
6
 
7
- var _chunkEDBQXRKNcjs = require('./chunk-EDBQXRKN.cjs');
7
+ var _chunkN2TCVIPRcjs = require('./chunk-N2TCVIPR.cjs');
8
8
 
9
9
 
10
10
  var _chunkFNNDGOR3cjs = require('./chunk-FNNDGOR3.cjs');
@@ -36,7 +36,7 @@ function FaqDocumentPage({
36
36
  onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _2 => _2.href]), () => ( "/")))
37
37
  };
38
38
  const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFNNDGOR3cjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
39
- _chunk4644MFU2cjs.FaqSection,
39
+ _chunk2QAUQPGCcjs.FaqSection,
40
40
  {
41
41
  initialFaqs,
42
42
  heading: null,
@@ -51,7 +51,7 @@ function FaqDocumentPage({
51
51
  skeletonNav
52
52
  }
53
53
  ) });
54
- return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDBQXRKNcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
54
+ return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2TCVIPRcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
55
55
  }
56
56
 
57
57
 
@@ -3,13 +3,13 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkKBPKMASFcjs = require('./chunk-KBPKMASF.cjs');
6
+ var _chunkXJ4AB24Ycjs = require('./chunk-XJ4AB24Y.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkRJJPOPF7cjs = require('./chunk-RJJPOPF7.cjs');
12
+ var _chunk64PF3UC7cjs = require('./chunk-64PF3UC7.cjs');
13
13
 
14
14
 
15
15
 
@@ -20,7 +20,7 @@ var _chunk7XRFAHJFcjs = require('./chunk-7XRFAHJF.cjs');
20
20
 
21
21
 
22
22
 
23
- var _chunkEDBQXRKNcjs = require('./chunk-EDBQXRKN.cjs');
23
+ var _chunkN2TCVIPRcjs = require('./chunk-N2TCVIPR.cjs');
24
24
 
25
25
 
26
26
  var _chunkFNNDGOR3cjs = require('./chunk-FNNDGOR3.cjs');
@@ -29,7 +29,7 @@ var _chunkFNNDGOR3cjs = require('./chunk-FNNDGOR3.cjs');
29
29
 
30
30
 
31
31
 
32
- var _chunkWAYYHZFScjs = require('./chunk-WAYYHZFS.cjs');
32
+ var _chunk5E4YEHHOcjs = require('./chunk-5E4YEHHO.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 (!_chunkEDBQXRKNcjs.isDataSyncSource.call(void 0, source)) return void 0;
357
+ if (!_chunkN2TCVIPRcjs.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, () => ( _chunkWAYYHZFScjs.DEFAULT_FOLDER_INDEX_FILE));
363
- const cleanInitialPath = _chunkWAYYHZFScjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
362
+ const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunk5E4YEHHOcjs.DEFAULT_FOLDER_INDEX_FILE));
363
+ const cleanInitialPath = _chunk5E4YEHHOcjs.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 = _chunkWAYYHZFScjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
389
+ pathFromUrl = _chunk5E4YEHHOcjs.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(_chunkWAYYHZFScjs.getDocAncestorNodeIds.call(void 0, parentPath)));
394
+ setExpandedNodes(new Set(_chunk5E4YEHHOcjs.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(_chunkWAYYHZFScjs.getDocAncestorNodeIds.call(void 0, parentPath)));
412
+ setExpandedNodes(new Set(_chunk5E4YEHHOcjs.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(_chunkWAYYHZFScjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
437
+ setExpandedNodes(new Set(_chunk5E4YEHHOcjs.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 = _chunkWAYYHZFScjs.findDocNodeByPath.call(void 0, _chunkWAYYHZFScjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
477
+ const probe = _chunk5E4YEHHOcjs.findDocNodeByPath.call(void 0, _chunk5E4YEHHOcjs.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 = _chunkWAYYHZFScjs.findDocNodeByPath.call(void 0, selectedPath, structure);
536
+ const node = _chunk5E4YEHHOcjs.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 = _chunkWAYYHZFScjs.getDocAncestorNodeIds.call(void 0, node.path);
577
+ const ancestorIds = _chunk5E4YEHHOcjs.getDocAncestorNodeIds.call(void 0, node.path);
578
578
  ancestorIds.pop();
579
579
  return new Set(ancestorIds);
580
580
  }
581
- return new Set(_chunkWAYYHZFScjs.getDocAncestorNodeIds.call(void 0, node.path));
581
+ return new Set(_chunk5E4YEHHOcjs.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(_chunkWAYYHZFScjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
586
+ setExpandedNodes(new Set(_chunk5E4YEHHOcjs.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 : _chunkWAYYHZFScjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
601
+ const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunk5E4YEHHOcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
602
602
  if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
603
603
  _chunkZABZIM2Ycjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkZABZIM2Ycjs.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 = _chunkWAYYHZFScjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
666
- return _nullishCoalesce(_chunkWAYYHZFScjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
665
+ const clean = _chunk5E4YEHHOcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
666
+ return _nullishCoalesce(_chunk5E4YEHHOcjs.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 = _chunkWAYYHZFScjs.findDocNodeByPath.call(void 0, selectedPath, structure);
673
+ const node = _chunk5E4YEHHOcjs.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,7 +753,7 @@ function DocViewerContent({
753
753
  },
754
754
  docPath
755
755
  );
756
- const { activeSection, handleSectionClick } = _chunkRJJPOPF7cjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
756
+ const { activeSection, handleSectionClick } = _chunk64PF3UC7cjs.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 : {
@@ -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([_chunkWAYYHZFScjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
787
+ const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunk5E4YEHHOcjs.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;
@@ -796,7 +796,7 @@ function DocViewerContent({
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
798
  const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFNNDGOR3cjs.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, _chunkEDBQXRKNcjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
799
+ synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2TCVIPRcjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
800
800
  showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
801
801
  _chunk7XRFAHJFcjs.DocSearchBar,
802
802
  {
@@ -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
- _chunkRJJPOPF7cjs.MobileNavigationDropdown,
822
+ _chunk64PF3UC7cjs.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
- _chunkRJJPOPF7cjs.MultiLevelNavigation,
836
+ _chunk64PF3UC7cjs.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
- _chunkRJJPOPF7cjs.StickySectionNav,
875
+ _chunk64PF3UC7cjs.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, _chunkEDBQXRKNcjs.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, _chunkN2TCVIPRcjs.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, _chunk3TOWCFIKcjs.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, _chunkEDBQXRKNcjs.EmbedLoadingSkeleton, { region: false })
962
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2TCVIPRcjs.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, _chunkKBPKMASFcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
971
- var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKBPKMASFcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
972
- var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDBQXRKNcjs.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, _chunkXJ4AB24Ycjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
971
+ var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXJ4AB24Ycjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
972
+ var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2TCVIPRcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
973
973
  var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
974
- _chunkKBPKMASFcjs.FileDownloadCard,
974
+ _chunkXJ4AB24Ycjs.FileDownloadCard,
975
975
  {
976
976
  fileName: content.fileName,
977
977
  mimeType: content.mimeType,
@@ -3208,8 +3208,9 @@ function ComposerSheet({
3208
3208
  if (!open) return null;
3209
3209
  const tabHeight = resizable ? TAB_HEIGHT : 0;
3210
3210
  const measured = layerHeight > 0;
3211
- const maxHeight = measured ? Math.max(minHeight, layerHeight - tabHeight) : Number.POSITIVE_INFINITY;
3212
- const clamp2 = (next) => Math.round(Math.min(maxHeight, Math.max(minHeight, next)));
3211
+ const maxHeight = measured ? Math.max(0, layerHeight - tabHeight) : Number.POSITIVE_INFINITY;
3212
+ const floor = Math.min(minHeight, maxHeight);
3213
+ const clamp2 = (next) => Math.round(Math.min(maxHeight, Math.max(floor, next)));
3213
3214
  const resolved = height === null ? measured ? clamp2(layerHeight * defaultShare) : null : clamp2(height);
3214
3215
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: setLayer, className: "absolute inset-0", children: [
3215
3216
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3238,7 +3239,7 @@ function ComposerSheet({
3238
3239
  ),
3239
3240
  style: {
3240
3241
  height: _nullishCoalesce(resolved, () => ( `${Math.round(defaultShare * 100)}%`)),
3241
- minHeight,
3242
+ minHeight: floor,
3242
3243
  maxHeight: `calc(100% - ${tabHeight}px)`
3243
3244
  },
3244
3245
  children: [
@@ -3255,9 +3256,9 @@ function ComposerSheet({
3255
3256
  _chunkZ7A7IZWLcjs.PanelResizeHandle,
3256
3257
  {
3257
3258
  side: "bottom",
3258
- size: _nullishCoalesce(resolved, () => ( minHeight)),
3259
- minSize: minHeight,
3260
- maxSize: measured ? maxHeight : _nullishCoalesce(resolved, () => ( minHeight)),
3259
+ size: _nullishCoalesce(resolved, () => ( floor)),
3260
+ minSize: floor,
3261
+ maxSize: measured ? maxHeight : _nullishCoalesce(resolved, () => ( floor)),
3261
3262
  onSize: (next) => onHeightChange(clamp2(next)),
3262
3263
  clampSize: clamp2,
3263
3264
  panelRef,
@@ -5409,7 +5410,7 @@ function ProxyCredentialsForm({ description, saved }) {
5409
5410
 
5410
5411
  // src/components/chat/index.ts
5411
5412
  var LoadedEmbeddableChat = _react.lazy.call(void 0,
5412
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-M7L3DBNO.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
5413
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-RBC7F4TL.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
5413
5414
  );
5414
5415
  var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
5415
5416
  const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
@@ -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 _chunkWAYYHZFScjs = require('./chunk-WAYYHZFS.cjs');
4
+ var _chunk5E4YEHHOcjs = require('./chunk-5E4YEHHO.cjs');
5
5
 
6
6
 
7
7
  var _chunk4JHO2NVIcjs = require('./chunk-4JHO2NVI.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 = _chunkWAYYHZFScjs.DEFAULT_FOLDER_INDEX_FILE;
399
+ var DEFAULT_FOLDER_INDEX_FILE2 = _chunk5E4YEHHOcjs.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";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkEDBQXRKNcjs = require('./chunk-EDBQXRKN.cjs');
5
+ var _chunkN2TCVIPRcjs = require('./chunk-N2TCVIPR.cjs');
6
6
 
7
7
 
8
8
 
@@ -17,7 +17,7 @@ var _chunkFNNDGOR3cjs = require('./chunk-FNNDGOR3.cjs');
17
17
  var _chunkLWMWY3JOcjs = require('./chunk-LWMWY3JO.cjs');
18
18
 
19
19
 
20
- var _chunkWAYYHZFScjs = require('./chunk-WAYYHZFS.cjs');
20
+ var _chunk5E4YEHHOcjs = require('./chunk-5E4YEHHO.cjs');
21
21
 
22
22
 
23
23
 
@@ -203,13 +203,13 @@ function ContactForm({
203
203
  );
204
204
  }),
205
205
  className: "flex flex-grow flex-col space-y-4 content-md:space-y-6",
206
- ..._chunkWAYYHZFScjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
206
+ ..._chunk5E4YEHHOcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
207
207
  children: [
208
208
  !showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("name") }),
209
209
  !showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
210
210
  !showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
211
211
  !showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
212
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDBQXRKNcjs.HoneypotField, { ...honeypotInputProps }),
212
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN2TCVIPRcjs.HoneypotField, { ...honeypotInputProps }),
213
213
  extraTopField,
214
214
  showNameEmailRow && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
215
215
  showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
@@ -334,7 +334,7 @@ function ContactForm({
334
334
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWF6TNZ3cjs.RequiredMark, {})
335
335
  ] }),
336
336
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
337
- _chunkEDBQXRKNcjs.Textarea,
337
+ _chunkN2TCVIPRcjs.Textarea,
338
338
  {
339
339
  id: "message",
340
340
  ...register("message"),