@flamingo-stack/openframe-frontend-core 0.0.702 → 0.0.703

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 (76) hide show
  1. package/dist/{chunk-HYFLTFFB.js → chunk-2NE3DNXY.js} +1 -1
  2. package/dist/{chunk-HPJ4XS2L.js → chunk-53AC23ZN.js} +4 -4
  3. package/dist/{chunk-LZNJH23A.cjs → chunk-5VPIC5MD.cjs} +3 -3
  4. package/dist/{chunk-AEQANLBW.cjs → chunk-67CXGPTW.cjs} +24 -24
  5. package/dist/{chunk-ETFFEA3J.js → chunk-7632TNE7.js} +1 -1
  6. package/dist/{chunk-CYYTD5ZK.cjs → chunk-BMJUKS6S.cjs} +20 -20
  7. package/dist/{chunk-446KS5BG.js → chunk-BOUPNYUV.js} +2 -2
  8. package/dist/{chunk-FHM7GD5B.cjs → chunk-BSEIEWM5.cjs} +2 -2
  9. package/dist/{chunk-UJJWTJ6S.js → chunk-DAW6TDZB.js} +4 -4
  10. package/dist/{chunk-CZ34HXDW.js → chunk-ENGBNKUJ.js} +12 -157
  11. package/dist/{chunk-PLK6GHN7.js → chunk-G55W76S6.js} +1 -1
  12. package/dist/{chunk-3WSFIV5G.cjs → chunk-GX3OUTFO.cjs} +32 -32
  13. package/dist/{chunk-RS7HWAYX.js → chunk-GZYLZ4MB.js} +2 -2
  14. package/dist/{chunk-Z5HDCZAS.js → chunk-HHFPQNP3.js} +1 -1
  15. package/dist/{chunk-RTGPIHVO.cjs → chunk-HY5YL3U5.cjs} +247 -173
  16. package/dist/{chunk-QFW3RUZS.cjs → chunk-HYLIQMZH.cjs} +21 -21
  17. package/dist/{chunk-JOY6HVPV.js → chunk-J4K5JOLI.js} +1 -1
  18. package/dist/{chunk-E3DH543A.cjs → chunk-KFDP3DUL.cjs} +44 -44
  19. package/dist/{chunk-FD4DBTFO.cjs → chunk-MXHJROXJ.cjs} +330 -475
  20. package/dist/{chunk-IZKOQVXO.js → chunk-NCTYD7HL.js} +2 -2
  21. package/dist/{chunk-2V4Z44G6.js → chunk-NMGX2ZTU.js} +5 -5
  22. package/dist/{chunk-HIXGAY2L.cjs → chunk-NU724ZVN.cjs} +70 -70
  23. package/dist/{chunk-ASN65P3F.cjs → chunk-NYSYSKSH.cjs} +9 -9
  24. package/dist/{chunk-SAA7B3DA.js → chunk-PJP5SMOU.js} +3 -3
  25. package/dist/{chunk-6JPQDYYY.js → chunk-QGTDWFT6.js} +419 -345
  26. package/dist/{chunk-3G76LRGL.cjs → chunk-RLDAYA2A.cjs} +9 -9
  27. package/dist/{chunk-CXDJUKC6.cjs → chunk-RTXTGLGB.cjs} +2 -2
  28. package/dist/{chunk-B3LZJ6J3.cjs → chunk-S6V7A5FS.cjs} +12 -12
  29. package/dist/{chunk-YGRHITPY.cjs → chunk-SFGXIFYO.cjs} +7 -7
  30. package/dist/{chunk-BO5ZHDA4.js → chunk-SL2FOFT2.js} +4 -4
  31. package/dist/{chunk-MWUBBBWZ.js → chunk-UTW4SQDI.js} +2 -2
  32. package/dist/{chunk-L7KZA7ZD.cjs → chunk-YBGEPKC2.cjs} +4 -4
  33. package/dist/components/case-studies/index.cjs +14 -14
  34. package/dist/components/case-studies/index.js +3 -3
  35. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  36. package/dist/components/chat/index.cjs +2 -2
  37. package/dist/components/chat/index.js +1 -1
  38. package/dist/components/contact/index.cjs +4 -4
  39. package/dist/components/contact/index.js +3 -3
  40. package/dist/components/docs/index.cjs +7 -7
  41. package/dist/components/docs/index.js +6 -6
  42. package/dist/components/embeds/index.cjs +4 -4
  43. package/dist/components/embeds/index.js +3 -3
  44. package/dist/components/faq/index.cjs +4 -4
  45. package/dist/components/faq/index.js +3 -3
  46. package/dist/components/features/index.cjs +3 -3
  47. package/dist/components/features/index.js +2 -2
  48. package/dist/components/help-center-pages/index.cjs +71 -71
  49. package/dist/components/help-center-pages/index.js +14 -14
  50. package/dist/components/index.cjs +41 -41
  51. package/dist/components/index.js +13 -13
  52. package/dist/components/meeting-scheduler/index.cjs +25 -25
  53. package/dist/components/meeting-scheduler/index.js +2 -2
  54. package/dist/components/navigation/app-layout-drawer.d.ts.map +1 -1
  55. package/dist/components/navigation/index.cjs +6 -6
  56. package/dist/components/navigation/index.js +5 -5
  57. package/dist/components/onboarding-guides/index.cjs +6 -6
  58. package/dist/components/onboarding-guides/index.js +5 -5
  59. package/dist/components/tickets/index.cjs +7 -7
  60. package/dist/components/tickets/index.js +6 -6
  61. package/dist/components/ui/drawer.d.ts +7 -3
  62. package/dist/components/ui/drawer.d.ts.map +1 -1
  63. package/dist/components/ui/index.cjs +3 -3
  64. package/dist/components/ui/index.js +2 -2
  65. package/dist/components/ui/panel-resize-handle.d.ts +25 -0
  66. package/dist/components/ui/panel-resize-handle.d.ts.map +1 -0
  67. package/dist/hooks/ui/use-resizable-panel-size.d.ts +46 -0
  68. package/dist/hooks/ui/use-resizable-panel-size.d.ts.map +1 -0
  69. package/dist/index.cjs +7 -7
  70. package/dist/index.js +6 -6
  71. package/package.json +1 -1
  72. package/src/components/chat/embeddable-chat.tsx +11 -9
  73. package/src/components/navigation/app-layout-drawer.tsx +14 -237
  74. package/src/components/ui/drawer.tsx +41 -188
  75. package/src/components/ui/panel-resize-handle.tsx +184 -0
  76. package/src/hooks/ui/use-resizable-panel-size.ts +114 -0
@@ -60,6 +60,7 @@ import {
60
60
  ModalTwoColumn,
61
61
  NO_BROKEN_LINKS,
62
62
  OVERLAY_BACKDROP_CLASS,
63
+ PanelResizeHandle,
63
64
  ScrollFadeOverlay,
64
65
  ScrollShadow,
65
66
  SimpleMarkdownRenderer,
@@ -94,12 +95,12 @@ import {
94
95
  useCaptions,
95
96
  useCollapsible,
96
97
  useIsHydrated,
98
+ useResizablePanelSize,
97
99
  useScrollFade
98
- } from "./chunk-6JPQDYYY.js";
100
+ } from "./chunk-QGTDWFT6.js";
99
101
  import {
100
102
  NEAR_VIEWPORT_ROOT_MARGIN,
101
103
  ToolIcon,
102
- clamp,
103
104
  createHeadingIdDeduper,
104
105
  scanHeadings,
105
106
  slugifyHeadingBase,
@@ -28823,15 +28824,7 @@ var appLayoutDrawerPanelVariants = cva7(
28823
28824
  );
28824
28825
  var HORIZONTAL_SIDES = /* @__PURE__ */ new Set(["left", "right"]);
28825
28826
  var PERSIST_CLOSED_HOLD = "data-[state=closed]:fill-mode-forwards";
28826
- function useContainedResizableSize({
28827
- enabled,
28828
- isHorizontal,
28829
- minSize,
28830
- maxSize,
28831
- defaultSize,
28832
- storageKey,
28833
- container
28834
- }) {
28827
+ function useContainerExtent(enabled, isHorizontal, container) {
28835
28828
  const [available, setAvailable] = useState69(0);
28836
28829
  useEffect39(() => {
28837
28830
  if (!enabled || !container) return void 0;
@@ -28843,147 +28836,7 @@ function useContainedResizableSize({
28843
28836
  ro.observe(container);
28844
28837
  return () => ro.disconnect();
28845
28838
  }, [enabled, container, isHorizontal]);
28846
- const clampToContainer = useCallback24(
28847
- (value) => {
28848
- const effectiveMax = available > 0 ? Math.min(maxSize, available - 40) : maxSize;
28849
- return clamp(value, minSize, Math.max(minSize, effectiveMax));
28850
- },
28851
- [available, minSize, maxSize]
28852
- );
28853
- const readInitial = useCallback24(() => {
28854
- if (!enabled) return defaultSize;
28855
- if (typeof window === "undefined") return defaultSize;
28856
- if (!storageKey) return defaultSize;
28857
- try {
28858
- const raw = window.localStorage.getItem(storageKey);
28859
- if (!raw) return defaultSize;
28860
- const parsed = parseFloat(raw);
28861
- if (!Number.isFinite(parsed)) return defaultSize;
28862
- return parsed;
28863
- } catch {
28864
- return defaultSize;
28865
- }
28866
- }, [enabled, storageKey, defaultSize]);
28867
- const [rawSize, setSizeRaw] = useState69(readInitial);
28868
- const size = enabled ? clampToContainer(rawSize) : rawSize;
28869
- const setSize = useCallback24((next) => setSizeRaw(clampToContainer(next)), [clampToContainer]);
28870
- useEffect39(() => {
28871
- if (!enabled || !storageKey || typeof window === "undefined") return;
28872
- try {
28873
- window.localStorage.setItem(storageKey, String(Math.round(size)));
28874
- } catch {
28875
- }
28876
- }, [enabled, size, storageKey]);
28877
- return { size, setSize, clampSize: clampToContainer };
28878
- }
28879
- function finishDrag(startRef, dragSizeRef, commit) {
28880
- if (!startRef.current) return;
28881
- startRef.current = null;
28882
- if (dragSizeRef.current !== null) commit(dragSizeRef.current);
28883
- dragSizeRef.current = null;
28884
- document.body.style.cursor = "";
28885
- document.body.style.userSelect = "";
28886
- }
28887
- function AppLayoutDrawerResizeHandle({
28888
- side,
28889
- size,
28890
- minSize,
28891
- maxSize,
28892
- onSize,
28893
- clampSize,
28894
- panelRef,
28895
- ariaLabel
28896
- }) {
28897
- const isHorizontal = HORIZONTAL_SIDES.has(side);
28898
- const startRef = useRef37(null);
28899
- const dragSizeRef = useRef37(null);
28900
- const onSizeRef = useRef37(onSize);
28901
- useEffect39(() => {
28902
- onSizeRef.current = onSize;
28903
- }, [onSize]);
28904
- useEffect39(() => () => finishDrag(startRef, dragSizeRef, onSizeRef.current), []);
28905
- const direction = side === "right" || side === "bottom" ? -1 : 1;
28906
- const handlePointerDown = (e) => {
28907
- if (e.button !== 0 && e.pointerType === "mouse") return;
28908
- e.preventDefault();
28909
- startRef.current = { x: e.clientX, y: e.clientY, size };
28910
- e.currentTarget.setPointerCapture(e.pointerId);
28911
- document.body.style.cursor = isHorizontal ? "col-resize" : "row-resize";
28912
- document.body.style.userSelect = "none";
28913
- };
28914
- const handlePointerMove = (e) => {
28915
- const start = startRef.current;
28916
- const panel = panelRef.current;
28917
- if (!start || !panel) return;
28918
- const delta = isHorizontal ? e.clientX - start.x : e.clientY - start.y;
28919
- const next = clampSize(start.size + delta * direction);
28920
- dragSizeRef.current = next;
28921
- panel.style[isHorizontal ? "width" : "height"] = `${next}px`;
28922
- e.currentTarget.setAttribute("aria-valuenow", String(Math.round(next)));
28923
- };
28924
- const endDrag = (e) => {
28925
- if (!startRef.current) return;
28926
- finishDrag(startRef, dragSizeRef, onSize);
28927
- try {
28928
- e.currentTarget.releasePointerCapture(e.pointerId);
28929
- } catch {
28930
- }
28931
- };
28932
- const handleKeyDown = (e) => {
28933
- const step = e.shiftKey ? 40 : 16;
28934
- if (isHorizontal) {
28935
- if (e.key === "ArrowLeft") {
28936
- e.preventDefault();
28937
- onSize(size + step * (side === "right" ? 1 : -1));
28938
- } else if (e.key === "ArrowRight") {
28939
- e.preventDefault();
28940
- onSize(size + step * (side === "right" ? -1 : 1));
28941
- }
28942
- } else {
28943
- if (e.key === "ArrowUp") {
28944
- e.preventDefault();
28945
- onSize(size + step * (side === "bottom" ? 1 : -1));
28946
- } else if (e.key === "ArrowDown") {
28947
- e.preventDefault();
28948
- onSize(size + step * (side === "bottom" ? -1 : 1));
28949
- }
28950
- }
28951
- if (e.key === "Home") {
28952
- e.preventDefault();
28953
- onSize(minSize);
28954
- } else if (e.key === "End") {
28955
- e.preventDefault();
28956
- onSize(maxSize);
28957
- }
28958
- };
28959
- const trackPosition = side === "right" ? "right-full top-4 bottom-4 w-6 items-center justify-end pr-1" : side === "left" ? "left-full top-4 bottom-4 w-6 items-center justify-start pl-1" : side === "bottom" ? "bottom-full left-4 right-4 h-6 justify-center items-end pb-1" : "top-full left-4 right-4 h-6 justify-center items-start pt-1";
28960
- const cursorClass = isHorizontal ? "cursor-col-resize" : "cursor-row-resize";
28961
- const gripClass = isHorizontal ? "h-10 w-1" : "w-10 h-1";
28962
- return /* @__PURE__ */ jsx258(
28963
- "div",
28964
- {
28965
- role: "separator",
28966
- tabIndex: 0,
28967
- "aria-orientation": isHorizontal ? "vertical" : "horizontal",
28968
- "aria-valuenow": Math.round(size),
28969
- "aria-valuemin": minSize,
28970
- "aria-valuemax": maxSize,
28971
- "aria-label": ariaLabel ?? (isHorizontal ? "Resize panel width" : "Resize panel height"),
28972
- onPointerDown: handlePointerDown,
28973
- onPointerMove: handlePointerMove,
28974
- onPointerUp: endDrag,
28975
- onPointerCancel: endDrag,
28976
- onLostPointerCapture: endDrag,
28977
- onKeyDown: handleKeyDown,
28978
- className: cn(
28979
- "group absolute z-20 flex touch-none select-none",
28980
- "outline-none ring-0 focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0",
28981
- trackPosition,
28982
- cursorClass
28983
- ),
28984
- children: /* @__PURE__ */ jsx258("div", { "aria-hidden": true, className: cn("rounded-full bg-ods-border", gripClass) })
28985
- }
28986
- );
28839
+ return available;
28987
28840
  }
28988
28841
  var AppLayoutDrawerContent = forwardRef30(
28989
28842
  ({
@@ -29078,14 +28931,15 @@ var AppLayoutDrawerContent = forwardRef30(
29078
28931
  return () => mq.removeEventListener("change", update);
29079
28932
  }, [mobileBreakpoint]);
29080
28933
  const panelRef = useRef37(null);
29081
- const { size, setSize, clampSize } = useContainedResizableSize({
28934
+ const available = useContainerExtent(resizable, isHorizontal, portalContainer);
28935
+ const { size, setSize, clampSize } = useResizablePanelSize({
29082
28936
  enabled: resizable,
29083
- isHorizontal,
29084
28937
  minSize,
29085
28938
  maxSize,
29086
28939
  defaultSize: initialSize,
29087
- storageKey,
29088
- container: portalContainer
28940
+ available,
28941
+ reserve: 40,
28942
+ storageKey
29089
28943
  });
29090
28944
  const applyInlineSize = resizable && !isMobile;
29091
28945
  const sizeStyle = applyInlineSize ? isHorizontal ? { width: size } : { height: size } : {};
@@ -29139,8 +28993,9 @@ var AppLayoutDrawerContent = forwardRef30(
29139
28993
  ...props,
29140
28994
  children: [
29141
28995
  applyInlineSize && (!persist || open) ? /* @__PURE__ */ jsx258(
29142
- AppLayoutDrawerResizeHandle,
28996
+ PanelResizeHandle,
29143
28997
  {
28998
+ variant: "inLayout",
29144
28999
  side: resolvedSide,
29145
29000
  size,
29146
29001
  minSize,
@@ -4,7 +4,7 @@ import {
4
4
  getOSLabel,
5
5
  getShellLabel,
6
6
  getToolLabel
7
- } from "./chunk-CZ34HXDW.js";
7
+ } from "./chunk-ENGBNKUJ.js";
8
8
  import {
9
9
  useOnboardingState
10
10
  } from "./chunk-KJ5LWATV.js";
@@ -3,16 +3,16 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkLZNJH23Acjs = require('./chunk-LZNJH23A.cjs');
6
+ var _chunk5VPIC5MDcjs = require('./chunk-5VPIC5MD.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
- var _chunkCXDJUKC6cjs = require('./chunk-CXDJUKC6.cjs');
11
+ var _chunkRTXTGLGBcjs = require('./chunk-RTXTGLGB.cjs');
12
12
 
13
13
 
14
14
 
15
- var _chunkASN65P3Fcjs = require('./chunk-ASN65P3F.cjs');
15
+ var _chunkNYSYSKSHcjs = require('./chunk-NYSYSKSH.cjs');
16
16
 
17
17
 
18
18
 
@@ -22,7 +22,7 @@ var _chunkASN65P3Fcjs = require('./chunk-ASN65P3F.cjs');
22
22
 
23
23
 
24
24
 
25
- var _chunkFD4DBTFOcjs = require('./chunk-FD4DBTFO.cjs');
25
+ var _chunkMXHJROXJcjs = require('./chunk-MXHJROXJ.cjs');
26
26
 
27
27
 
28
28
  var _chunk4OGAXAEGcjs = require('./chunk-4OGAXAEG.cjs');
@@ -325,8 +325,8 @@ function toDocContent(value, requestedPath) {
325
325
  }
326
326
  function useDocumentTree(config, initialPath) {
327
327
  const { structureEndpoint, contentEndpoint, baseRoute } = config;
328
- const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkFD4DBTFOcjs.DEFAULT_FOLDER_INDEX_FILE));
329
- const cleanInitialPath = _chunkFD4DBTFOcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
328
+ const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkMXHJROXJcjs.DEFAULT_FOLDER_INDEX_FILE));
329
+ const cleanInitialPath = _chunkMXHJROXJcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
330
330
  const [structure, setStructure] = _react.useState.call(void 0, []);
331
331
  const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
332
332
  const [content, setContent] = _react.useState.call(void 0, null);
@@ -350,12 +350,12 @@ function useDocumentTree(config, initialPath) {
350
350
  } else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
351
351
  pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
352
352
  }
353
- pathFromUrl = _chunkFD4DBTFOcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
353
+ pathFromUrl = _chunkMXHJROXJcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
354
354
  if (pathFromUrl !== selectedPathRef.current) {
355
355
  setSelectedPath(pathFromUrl);
356
356
  if (pathFromUrl) {
357
357
  const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
358
- setExpandedNodes(new Set(_chunkFD4DBTFOcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
358
+ setExpandedNodes(new Set(_chunkMXHJROXJcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
359
359
  }
360
360
  setTimeout(() => {
361
361
  scrollToContent();
@@ -373,7 +373,7 @@ function useDocumentTree(config, initialPath) {
373
373
  setSelectedPath(cleanInitialPath);
374
374
  if (cleanInitialPath) {
375
375
  const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
376
- setExpandedNodes(new Set(_chunkFD4DBTFOcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
376
+ setExpandedNodes(new Set(_chunkMXHJROXJcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
377
377
  }
378
378
  setExternalNavCount((n) => n + 1);
379
379
  }
@@ -398,7 +398,7 @@ function useDocumentTree(config, initialPath) {
398
398
  if (cleanInitialPath) {
399
399
  const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
400
400
  if (pathForExpansion) {
401
- setExpandedNodes(new Set(_chunkFD4DBTFOcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
401
+ setExpandedNodes(new Set(_chunkMXHJROXJcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
402
402
  }
403
403
  } else if (nodes.length > 0) {
404
404
  const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
@@ -438,7 +438,7 @@ function useDocumentTree(config, initialPath) {
438
438
  setContent(null);
439
439
  return;
440
440
  }
441
- const probe = _chunkFD4DBTFOcjs.findDocNodeByPath.call(void 0, _chunkFD4DBTFOcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
441
+ const probe = _chunkMXHJROXJcjs.findDocNodeByPath.call(void 0, _chunkMXHJROXJcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
442
442
  const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
443
443
  const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
444
444
  if (probeIsNoReadmeFolder || preStructureFolderLike) {
@@ -495,7 +495,7 @@ function useDocumentTree(config, initialPath) {
495
495
  if (selectedPath === "") {
496
496
  pathToFetch = folderIndexFile;
497
497
  } else {
498
- const node = _chunkFD4DBTFOcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
498
+ const node = _chunkMXHJROXJcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
499
499
  if (node && node.type === "folder" && !node.hasReadme) {
500
500
  const firstDocPath = findFirstDocPath(node);
501
501
  if (!firstDocPath) {
@@ -536,16 +536,16 @@ function useDocumentTree(config, initialPath) {
536
536
  if (node.type === "folder") {
537
537
  setExpandedNodes((prev) => {
538
538
  if (prev.has(node.id)) {
539
- const ancestorIds = _chunkFD4DBTFOcjs.getDocAncestorNodeIds.call(void 0, node.path);
539
+ const ancestorIds = _chunkMXHJROXJcjs.getDocAncestorNodeIds.call(void 0, node.path);
540
540
  ancestorIds.pop();
541
541
  return new Set(ancestorIds);
542
542
  }
543
- return new Set(_chunkFD4DBTFOcjs.getDocAncestorNodeIds.call(void 0, node.path));
543
+ return new Set(_chunkMXHJROXJcjs.getDocAncestorNodeIds.call(void 0, node.path));
544
544
  });
545
545
  } else {
546
546
  const lastSlash = node.path.lastIndexOf("/");
547
547
  if (lastSlash > 0) {
548
- setExpandedNodes(new Set(_chunkFD4DBTFOcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
548
+ setExpandedNodes(new Set(_chunkMXHJROXJcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
549
549
  }
550
550
  }
551
551
  lastFetchedPath.current = null;
@@ -560,7 +560,7 @@ function useDocumentTree(config, initialPath) {
560
560
  const hashIndex = path.indexOf("#");
561
561
  const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
562
562
  const cleanPath = path.replace(/\/$/, "").split("#")[0];
563
- const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkFD4DBTFOcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
563
+ const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkMXHJROXJcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
564
564
  if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
565
565
  _chunkIIMICN7Lcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkIIMICN7Lcjs.HUB_HEADER_OFFSET_PX });
566
566
  return;
@@ -624,15 +624,15 @@ function useDocumentTree(config, initialPath) {
624
624
  return docNavigation.register({
625
625
  baseRoute: normalizedBaseRoute,
626
626
  findNodeByPath: (path) => {
627
- const clean = _chunkFD4DBTFOcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
628
- return _nullishCoalesce(_chunkFD4DBTFOcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
627
+ const clean = _chunkMXHJROXJcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
628
+ return _nullishCoalesce(_chunkMXHJROXJcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
629
629
  },
630
630
  selectNode
631
631
  });
632
632
  }, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
633
633
  const isEmptyFolder = _react.useMemo.call(void 0, () => {
634
634
  if (!selectedPath || structure.length === 0) return false;
635
- const node = _chunkFD4DBTFOcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
635
+ const node = _chunkMXHJROXJcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
636
636
  return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
637
637
  }, [selectedPath, structure]);
638
638
  return {
@@ -815,7 +815,7 @@ function DocViewerContent({
815
815
  label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _16 => _16.label]), () => ( "Back to home")),
816
816
  onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _17 => _17.href]), () => ( "/")))
817
817
  };
818
- const docSearch = _chunkASN65P3Fcjs.useDocSearch.call(void 0, {
818
+ const docSearch = _chunkNYSYSKSHcjs.useDocSearch.call(void 0, {
819
819
  source: chatSource,
820
820
  baseRoute,
821
821
  searchEndpoint,
@@ -839,7 +839,7 @@ function DocViewerContent({
839
839
  onResolveLink: resolveLink
840
840
  });
841
841
  }, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
842
- const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkFD4DBTFOcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _18 => _18.documentType]) : void 0;
842
+ const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkMXHJROXJcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _18 => _18.documentType]) : void 0;
843
843
  const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _19 => _19.documentType]), () => ( selectedNodeDocType));
844
844
  const isMarkdownContent = !activeDocType || activeDocType === "markdown";
845
845
  const showStickyNav = isMarkdownContent;
@@ -850,9 +850,9 @@ function DocViewerContent({
850
850
  const containerBgStyle = colorPalette.containerBackground !== "transparent" ? { backgroundColor: colorPalette.containerBackground } : {};
851
851
  const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
852
852
  const resolvedEmptyText = emptyStateText || defaultEmptyText;
853
- const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFD4DBTFOcjs.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: [
853
+ const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMXHJROXJcjs.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: [
854
854
  showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
855
- _chunkASN65P3Fcjs.DocSearchBar,
855
+ _chunkNYSYSKSHcjs.DocSearchBar,
856
856
  {
857
857
  placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _23 => _23.toLowerCase, 'call', _24 => _24()]) || "documents"}...`,
858
858
  query: docSearch.query,
@@ -871,9 +871,9 @@ function DocViewerContent({
871
871
  ] })
872
872
  ] }) }),
873
873
  !error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-start gap-6 lg:flex-row lg:gap-10", children: [
874
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full lg:w-[320px] lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "lg:sticky lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFD4DBTFOcjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
874
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full lg:w-[320px] lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "lg:sticky lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMXHJROXJcjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
875
875
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
876
- _chunkCXDJUKC6cjs.MobileNavigationDropdown,
876
+ _chunkRTXTGLGBcjs.MobileNavigationDropdown,
877
877
  {
878
878
  nodes: structure,
879
879
  selectedPath,
@@ -887,7 +887,7 @@ function DocViewerContent({
887
887
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentSidebar, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
888
888
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
889
889
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
890
- _chunkCXDJUKC6cjs.MultiLevelNavigation,
890
+ _chunkRTXTGLGBcjs.MultiLevelNavigation,
891
891
  {
892
892
  nodes: structure,
893
893
  selectedPath,
@@ -926,7 +926,7 @@ function DocViewerContent({
926
926
  showStickyNav && content && stickyNavSections.length > 0 && !isLoadingContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
927
927
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mb-4 font-semibold text-ods-text-secondary text-h5", children: "ON THIS PAGE" }),
928
928
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
929
- _chunkCXDJUKC6cjs.StickySectionNav,
929
+ _chunkRTXTGLGBcjs.StickySectionNav,
930
930
  {
931
931
  sections: stickyNavSections,
932
932
  activeSection,
@@ -941,7 +941,7 @@ function DocViewerContent({
941
941
  ) })
942
942
  ] })
943
943
  ] }) }) });
944
- return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFD4DBTFOcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
944
+ return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMXHJROXJcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
945
945
  }
946
946
 
947
947
  // src/components/docs/skeletons.tsx
@@ -1031,11 +1031,11 @@ function EmbedSkeleton({ documentType } = {}) {
1031
1031
 
1032
1032
  var DEFAULT_TITLE = "Documents";
1033
1033
  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" }) });
1034
- var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLZNJH23Acjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
1035
- var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLZNJH23Acjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
1036
- var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFD4DBTFOcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
1034
+ var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5VPIC5MDcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
1035
+ var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5VPIC5MDcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
1036
+ var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMXHJROXJcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
1037
1037
  var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1038
- _chunkLZNJH23Acjs.FileDownloadCard,
1038
+ _chunk5VPIC5MDcjs.FileDownloadCard,
1039
1039
  {
1040
1040
  fileName: content.fileName,
1041
1041
  mimeType: content.mimeType,
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  createSseSubscription
4
- } from "./chunk-CZ34HXDW.js";
4
+ } from "./chunk-ENGBNKUJ.js";
5
5
  import {
6
6
  useChatIdentity
7
- } from "./chunk-6JPQDYYY.js";
7
+ } from "./chunk-QGTDWFT6.js";
8
8
  import {
9
9
  embedAuthedFetch
10
10
  } from "./chunk-2T6QWNXU.js";
@@ -10,7 +10,7 @@ import {
10
10
  StatusFilterComponent,
11
11
  TASK_TYPE_LABELS,
12
12
  TASK_TYPE_TEXT_COLORS
13
- } from "./chunk-CZ34HXDW.js";
13
+ } from "./chunk-ENGBNKUJ.js";
14
14
  import {
15
15
  usePathname,
16
16
  useRouter,