@flamingo-stack/openframe-frontend-core 0.0.753 → 0.0.755

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 (63) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{chunk-W77VPNBJ.cjs → chunk-2HWKYPJB.cjs} +2 -2
  3. package/dist/{chunk-ZGADZHLD.cjs → chunk-32IKIBPY.cjs} +55 -55
  4. package/dist/{chunk-RGYLC3US.cjs → chunk-5WHEQ63L.cjs} +2 -2
  5. package/dist/{chunk-UVTJT5BK.cjs → chunk-BQ5KRCSJ.cjs} +5 -5
  6. package/dist/{chunk-Z6TUOE6L.cjs → chunk-BVEUGFIN.cjs} +22 -22
  7. package/dist/{chunk-C6JHDRK3.cjs → chunk-FOVNP5HU.cjs} +4 -4
  8. package/dist/{chunk-XW6WSW36.cjs → chunk-HAL6HBTM.cjs} +76 -76
  9. package/dist/{chunk-XSOGT6DF.cjs → chunk-HSWNJAIK.cjs} +9 -9
  10. package/dist/{chunk-Y7AZCDLZ.cjs → chunk-JV4VVA2V.cjs} +14 -12
  11. package/dist/{chunk-WIT36ZTN.cjs → chunk-NE3T3ZIG.cjs} +89 -82
  12. package/dist/{chunk-JLAYELWS.cjs → chunk-NS5DO6QK.cjs} +13 -13
  13. package/dist/{chunk-J3E5UN2O.cjs → chunk-Q2MSW2IW.cjs} +3 -3
  14. package/dist/{chunk-QXQHCX2R.cjs → chunk-RRCHQTZW.cjs} +2 -2
  15. package/dist/{chunk-ITQZK3UT.cjs → chunk-RRE6C3ZU.cjs} +3 -3
  16. package/dist/{chunk-ZJ77IOMY.cjs → chunk-SZGUEPJC.cjs} +34 -34
  17. package/dist/{chunk-R45NJ5ZA.cjs → chunk-YXX6UMG3.cjs} +33 -33
  18. package/dist/{cloud-tenants-7LTS4DAP.cjs → cloud-tenants-S7RR2UDJ.cjs} +3 -3
  19. package/dist/components/announcement-bar.d.ts +1 -1
  20. package/dist/components/announcement-bar.d.ts.map +1 -1
  21. package/dist/components/announcement-bar.js +3 -1
  22. package/dist/components/case-studies/index.cjs +11 -11
  23. package/dist/components/chat/embeddable-chat.js +11 -6
  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 +7 -7
  27. package/dist/components/embeds/index.cjs +4 -4
  28. package/dist/components/faq/index.cjs +5 -5
  29. package/dist/components/features/index.cjs +3 -3
  30. package/dist/components/help-center-pages/index.cjs +53 -53
  31. package/dist/components/index.cjs +34 -32
  32. package/dist/components/meeting-scheduler/index.cjs +19 -19
  33. package/dist/components/navigation/index.cjs +6 -6
  34. package/dist/components/onboarding-guides/index.cjs +5 -5
  35. package/dist/components/product-demo/index.cjs +7 -7
  36. package/dist/components/tickets/index.cjs +8 -8
  37. package/dist/components/ui/index.cjs +3 -3
  38. package/dist/{devices-CGDJAYRB.cjs → devices-KCD2WSEV.cjs} +4 -4
  39. package/dist/{embeddable-chat-CMEHSDV7.cjs → embeddable-chat-OGUGNKLP.cjs} +11 -6
  40. package/dist/index.cjs +11 -7
  41. package/dist/{knowledge-X5I4QJKV.cjs → knowledge-OX5PYEPE.cjs} +3 -3
  42. package/dist/{logs-GDGIRJFI.cjs → logs-ZVOBADLB.cjs} +11 -11
  43. package/dist/{policies-2UOCENDX.cjs → policies-NSHPEZTR.cjs} +7 -7
  44. package/dist/{scripts-AS4GEG6L.cjs → scripts-OHMKBEXO.cjs} +8 -8
  45. package/dist/{software-update-ADPUFMFY.cjs → software-update-WMLGMSBQ.cjs} +6 -6
  46. package/dist/types/announcement.cjs +2 -0
  47. package/dist/types/announcement.d.ts +21 -0
  48. package/dist/types/announcement.d.ts.map +1 -1
  49. package/dist/types/announcement.js +2 -0
  50. package/dist/types/index.cjs +2 -0
  51. package/dist/utils/announcement-surface.d.ts +8 -0
  52. package/dist/utils/announcement-surface.d.ts.map +1 -0
  53. package/dist/utils/announcement-surface.js +7 -0
  54. package/dist/utils/index.cjs +7 -0
  55. package/dist/utils/index.d.ts +1 -0
  56. package/dist/utils/index.d.ts.map +1 -1
  57. package/dist/utils/index.js +1 -0
  58. package/package.json +1 -1
  59. package/src/components/announcement-bar.tsx +9 -1
  60. package/src/components/chat/embeddable-chat.tsx +13 -6
  61. package/src/types/announcement.ts +22 -0
  62. package/src/utils/announcement-surface.ts +14 -0
  63. package/src/utils/index.ts +2 -0
@@ -6,20 +6,20 @@ var _chunkUNRNLSG4cjs = require('./chunk-UNRNLSG4.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkW77VPNBJcjs = require('./chunk-W77VPNBJ.cjs');
9
+ var _chunk2HWKYPJBcjs = require('./chunk-2HWKYPJB.cjs');
10
10
 
11
11
 
12
12
 
13
13
 
14
14
 
15
15
 
16
- var _chunkXW6WSW36cjs = require('./chunk-XW6WSW36.cjs');
16
+ var _chunkHAL6HBTMcjs = require('./chunk-HAL6HBTM.cjs');
17
17
 
18
18
 
19
19
  var _chunk3GG3QAPTcjs = require('./chunk-3GG3QAPT.cjs');
20
20
 
21
21
 
22
- var _chunkWIT36ZTNcjs = require('./chunk-WIT36ZTN.cjs');
22
+ var _chunkNE3T3ZIGcjs = require('./chunk-NE3T3ZIG.cjs');
23
23
 
24
24
 
25
25
 
@@ -146,14 +146,14 @@ function OnboardingGuidesCatalogView({
146
146
  });
147
147
  };
148
148
  const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
149
- const docSearch = _chunkW77VPNBJcjs.useDocSearch.call(void 0, {
149
+ const docSearch = _chunk2HWKYPJBcjs.useDocSearch.call(void 0, {
150
150
  source,
151
151
  baseRoute: basePath,
152
152
  onNavigate: (path) => router.push(path),
153
153
  tableIds: ["onboarding-guides"]
154
154
  });
155
155
  const defaultRenderCard = (guide) => {
156
- const cta = _chunkWIT36ZTNcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
156
+ const cta = _chunkNE3T3ZIGcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
157
157
  type: "onboarding_guide",
158
158
  slug: guide.slug,
159
159
  basePath,
@@ -164,7 +164,7 @@ function OnboardingGuidesCatalogView({
164
164
  const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
165
165
  const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
166
166
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
167
- _chunkW77VPNBJcjs.DocSearchBar,
167
+ _chunk2HWKYPJBcjs.DocSearchBar,
168
168
  {
169
169
  placeholder: "Search onboarding guides, releases, case studies\u2026",
170
170
  query: docSearch.query,
@@ -176,7 +176,7 @@ function OnboardingGuidesCatalogView({
176
176
  }
177
177
  ),
178
178
  sections.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
179
- _chunkXW6WSW36cjs.FilterPillRow,
179
+ _chunkHAL6HBTMcjs.FilterPillRow,
180
180
  {
181
181
  label: "Section",
182
182
  selectedValue: activeSection,
@@ -186,7 +186,7 @@ function OnboardingGuidesCatalogView({
186
186
  )
187
187
  ] });
188
188
  if (selfFetch && guidesRes.error) {
189
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXW6WSW36cjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
189
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAL6HBTMcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
190
190
  }
191
191
  if (selfFetch && guidesRes.data == null && isLoading) {
192
192
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OnboardingGuidesCatalogSkeleton, {});
@@ -218,7 +218,7 @@ function OnboardingGuideDetailView({
218
218
  slug,
219
219
  guideEndpoint,
220
220
  related = [],
221
- MarkdownRenderer = _chunkXW6WSW36cjs.RichMarkdownRenderer,
221
+ MarkdownRenderer = _chunkHAL6HBTMcjs.RichMarkdownRenderer,
222
222
  renderRelatedCard,
223
223
  backHref,
224
224
  backLabel = "Back to Getting Started",
@@ -230,7 +230,7 @@ function OnboardingGuideDetailView({
230
230
  const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
231
231
  const captions = _chunkSDF5UUTEcjs.useCaptions.call(void 0, );
232
232
  const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
233
- const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXW6WSW36cjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
233
+ const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAL6HBTMcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
234
234
  const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
235
235
  const { data: guide, isLoading, error, reload } = _chunkB27XV2TCcjs.useSelfFetch.call(void 0, url, { initialData });
236
236
  const { ref: videoWarmupRef } = _chunk3RFQPQ7Zcjs.useVideoWarmup.call(void 0, {
@@ -238,7 +238,7 @@ function OnboardingGuideDetailView({
238
238
  supabaseStorageOrigin: _optionalChain([runtime, 'optionalAccess', _9 => _9.endpoints, 'access', _10 => _10.supabaseStorageOrigin])
239
239
  });
240
240
  if (error || !guide && !isLoading) {
241
- return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXW6WSW36cjs.LoadError, { message: "Guide not found.", onRetry: reload }));
241
+ return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAL6HBTMcjs.LoadError, { message: "Guide not found.", onRetry: reload }));
242
242
  }
243
243
  if (!guide) {
244
244
  return renderShell(
@@ -252,7 +252,7 @@ function OnboardingGuideDetailView({
252
252
  // worst), so it's the terminal fallback — no trailing `|| undefined` needed.
253
253
  _chunkI5MSCD57cjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), guide.title, { aspect: "wide" });
254
254
  const defaultRenderRelatedCard = (g) => {
255
- const cta = _chunkWIT36ZTNcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
255
+ const cta = _chunkNE3T3ZIGcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
256
256
  type: "onboarding_guide",
257
257
  slug: g.slug,
258
258
  basePath,
@@ -270,7 +270,7 @@ function OnboardingGuideDetailView({
270
270
  titleWrap: true,
271
271
  backButton: { label: backLabel, onClick: () => router.push(resolvedBackHref) },
272
272
  children: [
273
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXW6WSW36cjs.EntityTagBadges, { tags: guide.onboarding_guide_tags }),
273
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAL6HBTMcjs.EntityTagBadges, { tags: guide.onboarding_guide_tags }),
274
274
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
275
275
  _chunk7Z4EQOIXcjs.EntityAuthorCard,
276
276
  {
@@ -5,7 +5,7 @@ var _chunkVUWPLQBYcjs = require('./chunk-VUWPLQBY.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkWIT36ZTNcjs = require('./chunk-WIT36ZTN.cjs');
8
+ var _chunkNE3T3ZIGcjs = require('./chunk-NE3T3ZIG.cjs');
9
9
 
10
10
 
11
11
 
@@ -116,14 +116,14 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
116
116
 
117
117
  var PICK_ROOT_MARGIN = "600px";
118
118
  function faqAskCardShown(assistant) {
119
- return _chunkWIT36ZTNcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
119
+ return _chunkNE3T3ZIGcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
120
120
  }
121
121
  function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
122
122
  const { ref, inView } = _chunkCSJO7ZGNcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
123
123
  const [reached, setReached] = _react.useState.call(void 0, false);
124
124
  if (inView && !reached) setReached(true);
125
125
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
126
- _chunkWIT36ZTNcjs.AssistantAskPrompts,
126
+ _chunkNE3T3ZIGcjs.AssistantAskPrompts,
127
127
  {
128
128
  variant: "card",
129
129
  topic,
@@ -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 _chunkWIT36ZTNcjs = require('./chunk-WIT36ZTN.cjs');
4
+ var _chunkNE3T3ZIGcjs = require('./chunk-NE3T3ZIG.cjs');
5
5
 
6
6
 
7
7
  var _chunkSDF5UUTEcjs = require('./chunk-SDF5UUTE.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 = _chunkWIT36ZTNcjs.createSseSubscription.call(void 0, {
163
+ subscriptionRef.current = _chunkNE3T3ZIGcjs.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),
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _chunkXW6WSW36cjs = require('./chunk-XW6WSW36.cjs');
4
+ var _chunkHAL6HBTMcjs = require('./chunk-HAL6HBTM.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
- _chunkXW6WSW36cjs.EmbedViewerFrame,
51
+ _chunkHAL6HBTMcjs.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
- _chunkXW6WSW36cjs.EmbedViewerFrame,
86
+ _chunkHAL6HBTMcjs.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,
@@ -3,23 +3,23 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkITQZK3UTcjs = require('./chunk-ITQZK3UT.cjs');
6
+ var _chunkRRE6C3ZUcjs = require('./chunk-RRE6C3ZU.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkRGYLC3UScjs = require('./chunk-RGYLC3US.cjs');
12
+ var _chunk5WHEQ63Lcjs = require('./chunk-5WHEQ63L.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkW77VPNBJcjs = require('./chunk-W77VPNBJ.cjs');
16
+ var _chunk2HWKYPJBcjs = require('./chunk-2HWKYPJB.cjs');
17
17
 
18
18
 
19
19
 
20
20
 
21
21
 
22
- var _chunkXW6WSW36cjs = require('./chunk-XW6WSW36.cjs');
22
+ var _chunkHAL6HBTMcjs = require('./chunk-HAL6HBTM.cjs');
23
23
 
24
24
 
25
25
  var _chunk3GG3QAPTcjs = require('./chunk-3GG3QAPT.cjs');
@@ -28,7 +28,7 @@ var _chunk3GG3QAPTcjs = require('./chunk-3GG3QAPT.cjs');
28
28
 
29
29
 
30
30
 
31
- var _chunkWIT36ZTNcjs = require('./chunk-WIT36ZTN.cjs');
31
+ var _chunkNE3T3ZIGcjs = require('./chunk-NE3T3ZIG.cjs');
32
32
 
33
33
 
34
34
 
@@ -344,8 +344,8 @@ function toDocContent(value, requestedPath) {
344
344
  }
345
345
  function useDocumentTree(config, initialPath) {
346
346
  const { structureEndpoint, contentEndpoint, baseRoute } = config;
347
- const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkWIT36ZTNcjs.DEFAULT_FOLDER_INDEX_FILE));
348
- const cleanInitialPath = _chunkWIT36ZTNcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
347
+ const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkNE3T3ZIGcjs.DEFAULT_FOLDER_INDEX_FILE));
348
+ const cleanInitialPath = _chunkNE3T3ZIGcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
349
349
  const [structure, setStructure] = _react.useState.call(void 0, []);
350
350
  const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
351
351
  const [content, setContent] = _react.useState.call(void 0, null);
@@ -369,12 +369,12 @@ function useDocumentTree(config, initialPath) {
369
369
  } else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
370
370
  pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
371
371
  }
372
- pathFromUrl = _chunkWIT36ZTNcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
372
+ pathFromUrl = _chunkNE3T3ZIGcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
373
373
  if (pathFromUrl !== selectedPathRef.current) {
374
374
  setSelectedPath(pathFromUrl);
375
375
  if (pathFromUrl) {
376
376
  const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
377
- setExpandedNodes(new Set(_chunkWIT36ZTNcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
377
+ setExpandedNodes(new Set(_chunkNE3T3ZIGcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
378
378
  }
379
379
  setTimeout(() => {
380
380
  scrollToContent();
@@ -392,7 +392,7 @@ function useDocumentTree(config, initialPath) {
392
392
  setSelectedPath(cleanInitialPath);
393
393
  if (cleanInitialPath) {
394
394
  const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
395
- setExpandedNodes(new Set(_chunkWIT36ZTNcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
395
+ setExpandedNodes(new Set(_chunkNE3T3ZIGcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
396
396
  }
397
397
  setExternalNavCount((n) => n + 1);
398
398
  }
@@ -417,7 +417,7 @@ function useDocumentTree(config, initialPath) {
417
417
  if (cleanInitialPath) {
418
418
  const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
419
419
  if (pathForExpansion) {
420
- setExpandedNodes(new Set(_chunkWIT36ZTNcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
420
+ setExpandedNodes(new Set(_chunkNE3T3ZIGcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
421
421
  }
422
422
  } else if (nodes.length > 0) {
423
423
  const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
@@ -457,7 +457,7 @@ function useDocumentTree(config, initialPath) {
457
457
  setContent(null);
458
458
  return;
459
459
  }
460
- const probe = _chunkWIT36ZTNcjs.findDocNodeByPath.call(void 0, _chunkWIT36ZTNcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
460
+ const probe = _chunkNE3T3ZIGcjs.findDocNodeByPath.call(void 0, _chunkNE3T3ZIGcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
461
461
  const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
462
462
  const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
463
463
  if (probeIsNoReadmeFolder || preStructureFolderLike) {
@@ -514,7 +514,7 @@ function useDocumentTree(config, initialPath) {
514
514
  if (selectedPath === "") {
515
515
  pathToFetch = folderIndexFile;
516
516
  } else {
517
- const node = _chunkWIT36ZTNcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
517
+ const node = _chunkNE3T3ZIGcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
518
518
  if (node && node.type === "folder" && !node.hasReadme) {
519
519
  const firstDocPath = findFirstDocPath(node);
520
520
  if (!firstDocPath) {
@@ -555,16 +555,16 @@ function useDocumentTree(config, initialPath) {
555
555
  if (node.type === "folder") {
556
556
  setExpandedNodes((prev) => {
557
557
  if (prev.has(node.id)) {
558
- const ancestorIds = _chunkWIT36ZTNcjs.getDocAncestorNodeIds.call(void 0, node.path);
558
+ const ancestorIds = _chunkNE3T3ZIGcjs.getDocAncestorNodeIds.call(void 0, node.path);
559
559
  ancestorIds.pop();
560
560
  return new Set(ancestorIds);
561
561
  }
562
- return new Set(_chunkWIT36ZTNcjs.getDocAncestorNodeIds.call(void 0, node.path));
562
+ return new Set(_chunkNE3T3ZIGcjs.getDocAncestorNodeIds.call(void 0, node.path));
563
563
  });
564
564
  } else {
565
565
  const lastSlash = node.path.lastIndexOf("/");
566
566
  if (lastSlash > 0) {
567
- setExpandedNodes(new Set(_chunkWIT36ZTNcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
567
+ setExpandedNodes(new Set(_chunkNE3T3ZIGcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
568
568
  }
569
569
  }
570
570
  lastFetchedPath.current = null;
@@ -579,7 +579,7 @@ function useDocumentTree(config, initialPath) {
579
579
  const hashIndex = path.indexOf("#");
580
580
  const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
581
581
  const cleanPath = path.replace(/\/$/, "").split("#")[0];
582
- const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkWIT36ZTNcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
582
+ const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkNE3T3ZIGcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
583
583
  if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
584
584
  _chunkCSJO7ZGNcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkCSJO7ZGNcjs.HUB_HEADER_OFFSET_PX });
585
585
  return;
@@ -643,15 +643,15 @@ function useDocumentTree(config, initialPath) {
643
643
  return docNavigation.register({
644
644
  baseRoute: normalizedBaseRoute,
645
645
  findNodeByPath: (path) => {
646
- const clean = _chunkWIT36ZTNcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
647
- return _nullishCoalesce(_chunkWIT36ZTNcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
646
+ const clean = _chunkNE3T3ZIGcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
647
+ return _nullishCoalesce(_chunkNE3T3ZIGcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
648
648
  },
649
649
  selectNode
650
650
  });
651
651
  }, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
652
652
  const isEmptyFolder = _react.useMemo.call(void 0, () => {
653
653
  if (!selectedPath || structure.length === 0) return false;
654
- const node = _chunkWIT36ZTNcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
654
+ const node = _chunkNE3T3ZIGcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
655
655
  return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
656
656
  }, [selectedPath, structure]);
657
657
  return {
@@ -731,14 +731,14 @@ function DocViewerContent({
731
731
  },
732
732
  docPath
733
733
  );
734
- const { activeSection, handleSectionClick } = _chunkRGYLC3UScjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
734
+ const { activeSection, handleSectionClick } = _chunk5WHEQ63Lcjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
735
735
  const docNav = useDocNavigation();
736
736
  const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
737
737
  const backCfg = backButton === false ? null : {
738
738
  label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
739
739
  onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
740
740
  };
741
- const docSearch = _chunkW77VPNBJcjs.useDocSearch.call(void 0, {
741
+ const docSearch = _chunk2HWKYPJBcjs.useDocSearch.call(void 0, {
742
742
  source: chatSource,
743
743
  baseRoute,
744
744
  searchEndpoint,
@@ -762,7 +762,7 @@ function DocViewerContent({
762
762
  onResolveLink: resolveLink
763
763
  });
764
764
  }, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
765
- const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkWIT36ZTNcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
765
+ const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkNE3T3ZIGcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
766
766
  const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _15 => _15.documentType]), () => ( selectedNodeDocType));
767
767
  const isMarkdownContent = !activeDocType || activeDocType === "markdown";
768
768
  const showStickyNav = isMarkdownContent;
@@ -775,7 +775,7 @@ function DocViewerContent({
775
775
  const resolvedEmptyText = emptyStateText || defaultEmptyText;
776
776
  const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3GG3QAPTcjs.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: [
777
777
  showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
778
- _chunkW77VPNBJcjs.DocSearchBar,
778
+ _chunk2HWKYPJBcjs.DocSearchBar,
779
779
  {
780
780
  placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _19 => _19.toLowerCase, 'call', _20 => _20()]) || "documents"}...`,
781
781
  query: docSearch.query,
@@ -794,9 +794,9 @@ function DocViewerContent({
794
794
  ] })
795
795
  ] }) }),
796
796
  !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: [
797
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXW6WSW36cjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
797
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAL6HBTMcjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
798
798
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
799
- _chunkRGYLC3UScjs.MobileNavigationDropdown,
799
+ _chunk5WHEQ63Lcjs.MobileNavigationDropdown,
800
800
  {
801
801
  nodes: structure,
802
802
  selectedPath,
@@ -810,7 +810,7 @@ function DocViewerContent({
810
810
  /* @__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: [
811
811
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
812
812
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
813
- _chunkRGYLC3UScjs.MultiLevelNavigation,
813
+ _chunk5WHEQ63Lcjs.MultiLevelNavigation,
814
814
  {
815
815
  nodes: structure,
816
816
  selectedPath,
@@ -849,7 +849,7 @@ function DocViewerContent({
849
849
  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: [
850
850
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mb-4 font-semibold text-ods-text-secondary text-h5", children: "ON THIS PAGE" }),
851
851
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
852
- _chunkRGYLC3UScjs.StickySectionNav,
852
+ _chunk5WHEQ63Lcjs.StickySectionNav,
853
853
  {
854
854
  sections: stickyNavSections,
855
855
  activeSection,
@@ -864,7 +864,7 @@ function DocViewerContent({
864
864
  ) })
865
865
  ] })
866
866
  ] }) }) });
867
- return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXW6WSW36cjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
867
+ return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAL6HBTMcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
868
868
  }
869
869
 
870
870
  // src/components/docs/skeletons.tsx
@@ -950,7 +950,7 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
950
950
  ] }),
951
951
  /* @__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, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-10 w-full flex-1 rounded content-sm:w-32 content-sm:flex-initial" }, i)) })
952
952
  ] }),
953
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXW6WSW36cjs.EmbedLoadingSkeleton, { region: false })
953
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAL6HBTMcjs.EmbedLoadingSkeleton, { region: false })
954
954
  ] });
955
955
  }
956
956
 
@@ -958,11 +958,11 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
958
958
 
959
959
  var DEFAULT_TITLE = "Documents";
960
960
  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" }) });
961
- var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkITQZK3UTcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
962
- var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkITQZK3UTcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
963
- var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXW6WSW36cjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
961
+ var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRRE6C3ZUcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
962
+ var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRRE6C3ZUcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
963
+ var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAL6HBTMcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
964
964
  var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
965
- _chunkITQZK3UTcjs.FileDownloadCard,
965
+ _chunkRRE6C3ZUcjs.FileDownloadCard,
966
966
  {
967
967
  fileName: content.fileName,
968
968
  mimeType: content.mimeType,