@flamingo-stack/openframe-frontend-core 0.0.755 → 0.0.756
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-AG4HR6Z6.cjs → chunk-2ANICXS7.cjs} +16 -16
- package/dist/{chunk-HSWNJAIK.cjs → chunk-4YL4Y3BV.cjs} +11 -11
- package/dist/{chunk-HAL6HBTM.cjs → chunk-57JA37HP.cjs} +428 -411
- package/dist/{chunk-32IKIBPY.cjs → chunk-7KPU7RGS.cjs} +73 -73
- package/dist/{chunk-MGF3FUKD.cjs → chunk-AKK3EO37.cjs} +4 -1
- package/dist/{chunk-3GG3QAPT.cjs → chunk-AXBVN5SW.cjs} +63 -57
- package/dist/{chunk-RRCHQTZW.cjs → chunk-BTIYXBA2.cjs} +4 -4
- package/dist/{chunk-BQ5KRCSJ.cjs → chunk-CYDWQYIQ.cjs} +22 -22
- package/dist/{chunk-P6F6PHVK.cjs → chunk-EFTUFJS2.cjs} +4 -4
- package/dist/{chunk-LVO7FALW.cjs → chunk-F64VMOIB.cjs} +5 -5
- package/dist/{chunk-Q2MSW2IW.cjs → chunk-KFUC2XF7.cjs} +7 -7
- package/dist/{chunk-5WHEQ63L.cjs → chunk-KNNJ4WLF.cjs} +4 -4
- package/dist/{chunk-RRE6C3ZU.cjs → chunk-KSU3CXKY.cjs} +3 -3
- package/dist/{chunk-YRULLK7N.cjs → chunk-LOFDIDSD.cjs} +8 -2
- package/dist/{chunk-JV4VVA2V.cjs → chunk-MBQTLZAG.cjs} +11 -11
- package/dist/{chunk-BVEUGFIN.cjs → chunk-MDXZMTCK.cjs} +38 -38
- package/dist/{chunk-FOVNP5HU.cjs → chunk-MR5KMPSE.cjs} +6 -6
- package/dist/{chunk-NS5DO6QK.cjs → chunk-PUK27ZB6.cjs} +22 -22
- package/dist/{chunk-NE3T3ZIG.cjs → chunk-QKFJ6ORK.cjs} +21 -21
- package/dist/{chunk-SDF5UUTE.cjs → chunk-QTYSYEHK.cjs} +74 -74
- package/dist/{chunk-YXX6UMG3.cjs → chunk-TAEEGNFL.cjs} +42 -42
- package/dist/{chunk-SZGUEPJC.cjs → chunk-VOXDBCBV.cjs} +36 -36
- package/dist/{chunk-UNRNLSG4.cjs → chunk-VUSXDMCE.cjs} +2 -2
- package/dist/{chunk-2HWKYPJB.cjs → chunk-W5MEHJRQ.cjs} +6 -6
- package/dist/{cloud-tenants-S7RR2UDJ.cjs → cloud-tenants-NOZGXQZY.cjs} +10 -10
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/index.cjs +7 -7
- package/dist/components/contact/index.cjs +11 -11
- package/dist/components/context-menu.d.ts +2 -2
- package/dist/components/context-menu.d.ts.map +1 -1
- package/dist/components/context-menu.js +19 -12
- package/dist/components/docs/index.cjs +14 -14
- package/dist/components/embeds/index.cjs +11 -11
- package/dist/components/faq/index.cjs +12 -12
- package/dist/components/features/index.cjs +10 -10
- package/dist/components/features/time-tracker/time-tracker-header-button.d.ts.map +1 -1
- package/dist/components/features/time-tracker/time-tracker-header-button.js +3 -1
- package/dist/components/help-center-pages/index.cjs +71 -71
- package/dist/components/index.cjs +44 -44
- package/dist/components/meeting-scheduler/index.cjs +35 -35
- package/dist/components/navigation/index.cjs +13 -13
- package/dist/components/onboarding-guides/index.cjs +13 -13
- package/dist/components/popover.d.ts.map +1 -1
- package/dist/components/popover.js +3 -1
- package/dist/components/product-demo/index.cjs +9 -9
- package/dist/components/tickets/index.cjs +15 -15
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/date-picker.js +9 -4
- package/dist/components/ui/dropdown-menu.d.ts +2 -2
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +4 -1
- package/dist/components/ui/file-manager/index.cjs +6 -6
- package/dist/components/ui/index.cjs +10 -10
- package/dist/components/ui/menubar.d.ts +2 -2
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +22 -15
- package/dist/components/ui/modal-v2.d.ts.map +1 -1
- package/dist/components/ui/modal-v2.js +5 -2
- package/dist/components/ui/searchable-select.d.ts.map +1 -1
- package/dist/components/ui/searchable-select.js +3 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +27 -23
- package/dist/components/ui/tag-select-dropdown.d.ts.map +1 -1
- package/dist/components/ui/tag-select-dropdown.js +3 -1
- package/dist/{devices-KCD2WSEV.cjs → devices-M4KBTOTC.cjs} +11 -11
- package/dist/{embeddable-chat-OGUGNKLP.cjs → embeddable-chat-KGJVVG2V.cjs} +77 -77
- package/dist/index.cjs +14 -14
- package/dist/{knowledge-OX5PYEPE.cjs → knowledge-VVF6CJEG.cjs} +11 -11
- package/dist/{logs-ZVOBADLB.cjs → logs-7E6HBJ55.cjs} +18 -18
- package/dist/{policies-NSHPEZTR.cjs → policies-UMZLJTBD.cjs} +14 -14
- package/dist/{remote-session-57DGC4X3.cjs → remote-session-SKNXYG6K.cjs} +7 -7
- package/dist/{scripts-OHMKBEXO.cjs → scripts-XVNAEYCH.cjs} +17 -17
- package/dist/{software-update-WMLGMSBQ.cjs → software-update-U43ZFHMC.cjs} +14 -14
- package/dist/{tickets-board-EP6L3BSV.cjs → tickets-board-B2FH7Z4B.cjs} +9 -9
- package/eslint-config/base.js +7 -1
- package/eslint-config/popup-portal.js +68 -0
- package/package.json +1 -1
- package/src/components/context-menu.tsx +20 -13
- package/src/components/features/time-tracker/time-tracker-header-button.tsx +3 -1
- package/src/components/popover.tsx +3 -1
- package/src/components/ui/date-picker.tsx +9 -4
- package/src/components/ui/dropdown-menu.tsx +4 -1
- package/src/components/ui/menubar.tsx +23 -16
- package/src/components/ui/modal-v2.tsx +17 -3
- package/src/components/ui/searchable-select.tsx +3 -1
- package/src/components/ui/select.tsx +28 -24
- package/src/components/ui/tag-select-dropdown.tsx +3 -1
|
@@ -5,17 +5,17 @@ var _chunkWBOHLXFCcjs = require('./chunk-WBOHLXFC.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk4YL4Y3BVcjs = require('./chunk-4YL4Y3BV.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunk5E6JHOGXcjs = require('./chunk-5E6JHOGX.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkKFUC2XF7cjs = require('./chunk-KFUC2XF7.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkVUSXDMCEcjs = require('./chunk-VUSXDMCE.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -27,10 +27,10 @@ var _chunkUNRNLSG4cjs = require('./chunk-UNRNLSG4.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunk57JA37HPcjs = require('./chunk-57JA37HP.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkAXBVN5SWcjs = require('./chunk-AXBVN5SW.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
@@ -39,12 +39,12 @@ var _chunkVUWPLQBYcjs = require('./chunk-VUWPLQBY.cjs');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkQKFJ6ORKcjs = require('./chunk-QKFJ6ORK.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
var
|
|
47
|
+
var _chunkQTYSYEHKcjs = require('./chunk-QTYSYEHK.cjs');
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
var _chunkEWCFJLNUcjs = require('./chunk-EWCFJLNU.cjs');
|
|
@@ -109,8 +109,8 @@ var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.cjs');
|
|
|
109
109
|
// src/components/shared/product-release/product-releases-view.tsx
|
|
110
110
|
var _jsxruntime = require('react/jsx-runtime');
|
|
111
111
|
var DEFAULT_ENDPOINT = "/api/releases";
|
|
112
|
-
var DEFAULT_SEARCH_PARAM_KEY =
|
|
113
|
-
var DEFAULT_STATUS_PARAM_KEY =
|
|
112
|
+
var DEFAULT_SEARCH_PARAM_KEY = _chunkQKFJ6ORKcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
113
|
+
var DEFAULT_STATUS_PARAM_KEY = _chunkQKFJ6ORKcjs.DEV_SECTION_PARAM_KEYS.releaseStatus;
|
|
114
114
|
var DEFAULT_PAGE_PARAM_KEY = "page";
|
|
115
115
|
function ReleaseRow({
|
|
116
116
|
release,
|
|
@@ -119,7 +119,7 @@ function ReleaseRow({
|
|
|
119
119
|
}) {
|
|
120
120
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
121
121
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
122
|
-
const cta =
|
|
122
|
+
const cta = _chunkQKFJ6ORKcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _2 => _2.composeContentUrl]), {
|
|
123
123
|
type: "product_release",
|
|
124
124
|
slug: release.slug,
|
|
125
125
|
basePath,
|
|
@@ -129,7 +129,7 @@ function ReleaseRow({
|
|
|
129
129
|
const onClick = (e) => {
|
|
130
130
|
if (e.defaultPrevented || _chunk7Z4EQOIXcjs.isModifierClick.call(void 0, e) || target === "_blank") return;
|
|
131
131
|
e.preventDefault();
|
|
132
|
-
|
|
132
|
+
_chunkQTYSYEHKcjs.executeNavigationImperative.call(void 0, {
|
|
133
133
|
runtime,
|
|
134
134
|
href: cta.href,
|
|
135
135
|
targetPlatform: cta.targetPlatform,
|
|
@@ -191,10 +191,10 @@ function ProductReleasesView({
|
|
|
191
191
|
router.replace(`${pathname}?${params.toString()}`, { scroll: false });
|
|
192
192
|
};
|
|
193
193
|
if (error) {
|
|
194
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "w-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
194
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "w-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57JA37HPcjs.LoadError, { message: "Failed to load releases.", onRetry: reload }) });
|
|
195
195
|
}
|
|
196
196
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex w-full flex-col gap-[40px]", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[600px]", children: showEmpty ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[600px] items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
197
|
-
|
|
197
|
+
_chunk4YL4Y3BVcjs.ListEmptyState,
|
|
198
198
|
{
|
|
199
199
|
isFiltered: hasActiveFilters,
|
|
200
200
|
filtered: {
|
|
@@ -289,7 +289,7 @@ function MediaGalleryStrip({ items, className }) {
|
|
|
289
289
|
var _lucidereact = require('lucide-react');
|
|
290
290
|
|
|
291
291
|
|
|
292
|
-
var DefaultMarkdownRenderer =
|
|
292
|
+
var DefaultMarkdownRenderer = _chunk57JA37HPcjs.RichMarkdownRenderer;
|
|
293
293
|
var DEFAULT_ENDPOINT2 = "/api/releases";
|
|
294
294
|
function ReleaseDetailPage({
|
|
295
295
|
authorHref,
|
|
@@ -307,8 +307,8 @@ function ReleaseDetailPage({
|
|
|
307
307
|
shell = true
|
|
308
308
|
}) {
|
|
309
309
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
310
|
-
const captions =
|
|
311
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
310
|
+
const captions = _chunkQTYSYEHKcjs.useCaptions.call(void 0, );
|
|
311
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57JA37HPcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
312
312
|
const seed = initialData == null ? void 0 : initialData;
|
|
313
313
|
const {
|
|
314
314
|
data: release,
|
|
@@ -367,7 +367,7 @@ function ReleaseDetailPage({
|
|
|
367
367
|
return renderShell(
|
|
368
368
|
// Match the loaded page's top offset (TitleBlock's
|
|
369
369
|
// `pt-[var(--spacing-system-l)]`) so content doesn't jump on load.
|
|
370
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
370
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUSXDMCEcjs.DetailPageSkeleton, { bare: true, metadataColumns: 4, showImageGallery: true }) })
|
|
371
371
|
);
|
|
372
372
|
}
|
|
373
373
|
if (error || !release) {
|
|
@@ -406,7 +406,7 @@ function ReleaseDetailPage({
|
|
|
406
406
|
const improvements = release.improvements;
|
|
407
407
|
return renderShell(
|
|
408
408
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
409
|
-
|
|
409
|
+
_chunkAXBVN5SWcjs.PageLayout,
|
|
410
410
|
{
|
|
411
411
|
title: releaseTitle,
|
|
412
412
|
subtitle: `Version: ${releaseVersion}`,
|
|
@@ -415,7 +415,7 @@ function ReleaseDetailPage({
|
|
|
415
415
|
backButton: showBackButton ? { label: backLabel, onClick: () => router.push(backHref) } : void 0,
|
|
416
416
|
children: [
|
|
417
417
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-6 content-md:space-y-8", children: [
|
|
418
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
418
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57JA37HPcjs.EntityTagBadges, { tags: release.product_release_tags }),
|
|
419
419
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid w-full grid-cols-1 overflow-hidden rounded-md border border-ods-border content-md:grid-cols-4", children: [
|
|
420
420
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col gap-3 border-b border-ods-border bg-ods-card p-4 content-md:border-b-0 content-md:border-r", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-0", children: [
|
|
421
421
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: releaseType.toLocaleUpperCase() }),
|
|
@@ -477,7 +477,7 @@ function ReleaseDetailPage({
|
|
|
477
477
|
] })
|
|
478
478
|
] }) }) }),
|
|
479
479
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
480
|
-
|
|
480
|
+
_chunk57JA37HPcjs.ReleaseChangelogSection,
|
|
481
481
|
{
|
|
482
482
|
title: "Breaking Changes",
|
|
483
483
|
entries: breakingChanges || [],
|
|
@@ -488,7 +488,7 @@ function ReleaseDetailPage({
|
|
|
488
488
|
}
|
|
489
489
|
),
|
|
490
490
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
491
|
-
|
|
491
|
+
_chunk57JA37HPcjs.ReleaseChangelogSection,
|
|
492
492
|
{
|
|
493
493
|
title: "Features Added",
|
|
494
494
|
entries: featuresAdded || [],
|
|
@@ -498,7 +498,7 @@ function ReleaseDetailPage({
|
|
|
498
498
|
}
|
|
499
499
|
),
|
|
500
500
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
501
|
-
|
|
501
|
+
_chunk57JA37HPcjs.ReleaseChangelogSection,
|
|
502
502
|
{
|
|
503
503
|
title: "Bugs Fixed",
|
|
504
504
|
entries: bugFixed || [],
|
|
@@ -508,7 +508,7 @@ function ReleaseDetailPage({
|
|
|
508
508
|
}
|
|
509
509
|
),
|
|
510
510
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
511
|
-
|
|
511
|
+
_chunk57JA37HPcjs.ReleaseChangelogSection,
|
|
512
512
|
{
|
|
513
513
|
title: "Improvements",
|
|
514
514
|
entries: improvements || [],
|
|
@@ -534,7 +534,7 @@ function ReleaseDetailPage({
|
|
|
534
534
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "tracking-[-0.28px] text-ods-text-secondary text-h5", children: "Related Enhancements and Bug-fixes" }),
|
|
535
535
|
(() => {
|
|
536
536
|
const deliveryCount = deliveryData ? deliveryData.completed.length + deliveryData.inProgress.length : 0;
|
|
537
|
-
return deliveryLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeliverySection, { data: deliveryData, isLoading: deliveryLoading }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
537
|
+
return deliveryLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeliverySection, { data: deliveryData, isLoading: deliveryLoading }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57JA37HPcjs.FadePreview, { hiddenCount: deliveryCount - 1, collapsedHeight: 300, resetKey: deliveryCount, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeliverySection, { data: deliveryData, isLoading: false }) }) });
|
|
538
538
|
})()
|
|
539
539
|
] }),
|
|
540
540
|
(_optionalChain([githubReleases, 'optionalAccess', _8 => _8.length]) || _optionalChain([knowledgeBaseLinks, 'optionalAccess', _9 => _9.length]) || migrationGuideUrl || documentationUrl) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-full space-y-1", children: [
|
|
@@ -630,7 +630,7 @@ function useRoadmapVoting(options = {}) {
|
|
|
630
630
|
const { getSignals } = _chunkVUWPLQBYcjs.useHumanitySignals.call(void 0, );
|
|
631
631
|
const [votes, setVotes] = _react.useState.call(void 0, NO_VOTES);
|
|
632
632
|
const [loadedKey, setLoadedKey] = _react.useState.call(void 0, null);
|
|
633
|
-
const hydrated =
|
|
633
|
+
const hydrated = _chunkQTYSYEHKcjs.useIsHydrated.call(void 0, );
|
|
634
634
|
if (hydrated && loadedKey !== storageKey) {
|
|
635
635
|
setLoadedKey(storageKey);
|
|
636
636
|
setVotes(readStoredVotes(storageKey));
|
|
@@ -782,7 +782,7 @@ function RoadmapGridSingle({
|
|
|
782
782
|
_chunk7Z4EQOIXcjs.RoadmapCard,
|
|
783
783
|
{
|
|
784
784
|
item,
|
|
785
|
-
id:
|
|
785
|
+
id: _chunkQKFJ6ORKcjs.devSectionAnchorId.call(void 0, "roadmap", item.id),
|
|
786
786
|
userVote: getVote(item.id),
|
|
787
787
|
onVote: (voteType) => onVote(item.id, voteType),
|
|
788
788
|
isVoting: votingTasks.has(item.id)
|
|
@@ -898,7 +898,7 @@ function RoadmapGrid({
|
|
|
898
898
|
);
|
|
899
899
|
}
|
|
900
900
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
901
|
-
|
|
901
|
+
_chunk57JA37HPcjs.Accordion,
|
|
902
902
|
{
|
|
903
903
|
type: "multiple",
|
|
904
904
|
value: expandedQuarters,
|
|
@@ -908,13 +908,13 @@ function RoadmapGrid({
|
|
|
908
908
|
const itemCount = _optionalChain([itemsByQuarter, 'access', _18 => _18[quarter], 'optionalAccess', _19 => _19.length]) || 0;
|
|
909
909
|
const isExpanded = expandedQuarters.includes(quarter);
|
|
910
910
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
911
|
-
|
|
911
|
+
_chunk57JA37HPcjs.AccordionItem,
|
|
912
912
|
{
|
|
913
913
|
value: quarter,
|
|
914
914
|
id: `quarter-${quarter.replace(/\s+/g, "-").toLowerCase()}`,
|
|
915
915
|
className: "border-0",
|
|
916
916
|
children: [
|
|
917
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
917
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57JA37HPcjs.AccordionTrigger, { className: "w-full p-0 hover:no-underline [&>svg]:ml-auto [&>svg]:h-5 [&>svg]:w-5 [&>svg]:shrink-0 [&>svg]:text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
918
918
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
919
919
|
"h3",
|
|
920
920
|
{
|
|
@@ -944,7 +944,7 @@ function RoadmapGrid({
|
|
|
944
944
|
}
|
|
945
945
|
)
|
|
946
946
|
] }) }),
|
|
947
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
947
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57JA37HPcjs.AccordionContent, { className: "overflow-hidden pb-0 pt-4 data-[state=closed]:animate-none data-[state=open]:animate-none", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
948
948
|
RoadmapGridSingle,
|
|
949
949
|
{
|
|
950
950
|
items: itemsByQuarter[quarter],
|
|
@@ -982,8 +982,8 @@ function RoadmapGridSkeleton({ region = true, count = 4, showLeftMargin = true }
|
|
|
982
982
|
|
|
983
983
|
|
|
984
984
|
var DEFAULT_ENDPOINT3 = "/api/roadmap";
|
|
985
|
-
var DEFAULT_SEARCH_PARAM_KEY2 =
|
|
986
|
-
var DEFAULT_STATUS_PARAM_KEY2 =
|
|
985
|
+
var DEFAULT_SEARCH_PARAM_KEY2 = _chunkQKFJ6ORKcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
986
|
+
var DEFAULT_STATUS_PARAM_KEY2 = _chunkQKFJ6ORKcjs.DEV_SECTION_PARAM_KEYS.status;
|
|
987
987
|
function RoadmapView({
|
|
988
988
|
endpoint = DEFAULT_ENDPOINT3,
|
|
989
989
|
initialItems,
|
|
@@ -1006,7 +1006,7 @@ function RoadmapView({
|
|
|
1006
1006
|
const items = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _20 => _20.items]), () => ( []));
|
|
1007
1007
|
_chunkVUWPLQBYcjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkCSJO7ZGNcjs.STICKY_HEADER_OFFSET_PX });
|
|
1008
1008
|
if (error) {
|
|
1009
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1009
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57JA37HPcjs.LoadError, { message: "Failed to load roadmap.", onRetry: reload });
|
|
1010
1010
|
}
|
|
1011
1011
|
if (isLoading && !data) {
|
|
1012
1012
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoadmapGridSkeleton, { showLeftMargin });
|
|
@@ -1059,7 +1059,7 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1059
1059
|
// → `#delivery-<external_id>`; `useScrollToHash` in
|
|
1060
1060
|
// `delivery-lists.tsx` finds the row by id and scrolls. The
|
|
1061
1061
|
// outer wrapper here ONLY exists for the row separators.
|
|
1062
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-b border-ods-border last:border-b-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1062
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-b border-ods-border last:border-b-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4YL4Y3BVcjs.DeliveryRow, { item, id: _chunkQKFJ6ORKcjs.devSectionAnchorId.call(void 0, "delivery", item.id) }) }, item.id)
|
|
1063
1063
|
)) }) });
|
|
1064
1064
|
}
|
|
1065
1065
|
|
|
@@ -1068,8 +1068,8 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1068
1068
|
|
|
1069
1069
|
var DEFAULT_COMPLETED_ENDPOINT = "/api/delivery/completed";
|
|
1070
1070
|
var DEFAULT_IN_PROGRESS_ENDPOINT = "/api/delivery/in-progress";
|
|
1071
|
-
var DEFAULT_SEARCH_PARAM_KEY3 =
|
|
1072
|
-
var DEFAULT_TASK_TYPE_PARAM_KEY =
|
|
1071
|
+
var DEFAULT_SEARCH_PARAM_KEY3 = _chunkQKFJ6ORKcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
1072
|
+
var DEFAULT_TASK_TYPE_PARAM_KEY = _chunkQKFJ6ORKcjs.DEV_SECTION_PARAM_KEYS.deliveryTaskType;
|
|
1073
1073
|
function DeliveryLists({
|
|
1074
1074
|
completedApiEndpoint = DEFAULT_COMPLETED_ENDPOINT,
|
|
1075
1075
|
inProgressApiEndpoint = DEFAULT_IN_PROGRESS_ENDPOINT,
|
|
@@ -1136,11 +1136,11 @@ function DeliveryLists({
|
|
|
1136
1136
|
const hasActiveFilters = searchQuery !== "" || taskTypeFilter !== "all";
|
|
1137
1137
|
const hasResults = showCompleted && filteredCompleted.length > 0 || showInProgress && filteredInProgress.length > 0;
|
|
1138
1138
|
if (error) {
|
|
1139
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1139
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57JA37HPcjs.LoadError, { message: error, onRetry: () => window.location.reload() }) });
|
|
1140
1140
|
}
|
|
1141
1141
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[40px]", children: [
|
|
1142
1142
|
!isLoading && !hasResults && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1143
|
-
|
|
1143
|
+
_chunk4YL4Y3BVcjs.ListEmptyState,
|
|
1144
1144
|
{
|
|
1145
1145
|
isFiltered: hasActiveFilters,
|
|
1146
1146
|
filtered: {
|
|
@@ -1371,7 +1371,7 @@ function LegalDocumentPage({
|
|
|
1371
1371
|
initialData = null,
|
|
1372
1372
|
initialLastUpdatedLabel = null,
|
|
1373
1373
|
apiEndpoint,
|
|
1374
|
-
MarkdownRenderer =
|
|
1374
|
+
MarkdownRenderer = _chunk57JA37HPcjs.RichMarkdownRenderer,
|
|
1375
1375
|
documentsEndpoint,
|
|
1376
1376
|
backButton,
|
|
1377
1377
|
faq,
|
|
@@ -1393,7 +1393,7 @@ function LegalDocumentPage({
|
|
|
1393
1393
|
const fallbackLastUpdatedLabel = _optionalChain([data, 'optionalAccess', _30 => _30.lastSynced]) != null ? _chunkJHQNUWFMcjs.formatLegalDate.call(void 0, data.lastSynced) : null;
|
|
1394
1394
|
const effectiveLastUpdatedLabel = _nullishCoalesce(initialLastUpdatedLabel, () => ( fallbackLastUpdatedLabel));
|
|
1395
1395
|
const subtitle = _nullishCoalesce(legalDocumentStampLabel(data), () => ( (effectiveLastUpdatedLabel ? `Last Updated: ${effectiveLastUpdatedLabel}` : fallbackDescription)));
|
|
1396
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1396
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAXBVN5SWcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: [
|
|
1397
1397
|
_optionalChain([data, 'optionalAccess', _31 => _31.sourceFile]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary opacity-75 text-h6", children: [
|
|
1398
1398
|
"Source: ",
|
|
1399
1399
|
data.sourceFile
|
|
@@ -1432,9 +1432,9 @@ function LegalDocumentPage({
|
|
|
1432
1432
|
"for more information."
|
|
1433
1433
|
] })
|
|
1434
1434
|
] }) }) }) }) }),
|
|
1435
|
-
faqSlot && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1435
|
+
faqSlot && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKFUC2XF7cjs.FaqSection, { ..._chunkKFUC2XF7cjs.pageFaqProps.call(void 0, faqSlot) })
|
|
1436
1436
|
] });
|
|
1437
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1437
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57JA37HPcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
1438
1438
|
}
|
|
1439
1439
|
|
|
1440
1440
|
|
|
@@ -3,32 +3,32 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkKSU3CXKYcjs = require('./chunk-KSU3CXKY.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkKNNJ4WLFcjs = require('./chunk-KNNJ4WLF.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkW5MEHJRQcjs = require('./chunk-W5MEHJRQ.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunk57JA37HPcjs = require('./chunk-57JA37HP.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkAXBVN5SWcjs = require('./chunk-AXBVN5SW.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkQKFJ6ORKcjs = require('./chunk-QKFJ6ORK.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, () => (
|
|
348
|
-
const cleanInitialPath =
|
|
347
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkQKFJ6ORKcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
348
|
+
const cleanInitialPath = _chunkQKFJ6ORKcjs.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 =
|
|
372
|
+
pathFromUrl = _chunkQKFJ6ORKcjs.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(
|
|
377
|
+
setExpandedNodes(new Set(_chunkQKFJ6ORKcjs.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(
|
|
395
|
+
setExpandedNodes(new Set(_chunkQKFJ6ORKcjs.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(
|
|
420
|
+
setExpandedNodes(new Set(_chunkQKFJ6ORKcjs.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 =
|
|
460
|
+
const probe = _chunkQKFJ6ORKcjs.findDocNodeByPath.call(void 0, _chunkQKFJ6ORKcjs.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 =
|
|
517
|
+
const node = _chunkQKFJ6ORKcjs.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 =
|
|
558
|
+
const ancestorIds = _chunkQKFJ6ORKcjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
559
559
|
ancestorIds.pop();
|
|
560
560
|
return new Set(ancestorIds);
|
|
561
561
|
}
|
|
562
|
-
return new Set(
|
|
562
|
+
return new Set(_chunkQKFJ6ORKcjs.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(
|
|
567
|
+
setExpandedNodes(new Set(_chunkQKFJ6ORKcjs.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 :
|
|
582
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkQKFJ6ORKcjs.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 =
|
|
647
|
-
return _nullishCoalesce(
|
|
646
|
+
const clean = _chunkQKFJ6ORKcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
647
|
+
return _nullishCoalesce(_chunkQKFJ6ORKcjs.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 =
|
|
654
|
+
const node = _chunkQKFJ6ORKcjs.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 } =
|
|
734
|
+
const { activeSection, handleSectionClick } = _chunkKNNJ4WLFcjs.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 =
|
|
741
|
+
const docSearch = _chunkW5MEHJRQcjs.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([
|
|
765
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkQKFJ6ORKcjs.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;
|
|
@@ -773,9 +773,9 @@ function DocViewerContent({
|
|
|
773
773
|
const containerBgStyle = colorPalette.containerBackground !== "transparent" ? { backgroundColor: colorPalette.containerBackground } : {};
|
|
774
774
|
const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
|
|
775
775
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
776
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
776
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAXBVN5SWcjs.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
|
-
|
|
778
|
+
_chunkW5MEHJRQcjs.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,
|
|
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, _chunk57JA37HPcjs.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
|
-
|
|
799
|
+
_chunkKNNJ4WLFcjs.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
|
-
|
|
813
|
+
_chunkKNNJ4WLFcjs.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
|
-
|
|
852
|
+
_chunkKNNJ4WLFcjs.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,
|
|
867
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57JA37HPcjs.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,
|
|
953
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57JA37HPcjs.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,
|
|
962
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
963
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
961
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKSU3CXKYcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
962
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKSU3CXKYcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
963
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk57JA37HPcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
964
964
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
965
|
-
|
|
965
|
+
_chunkKSU3CXKYcjs.FileDownloadCard,
|
|
966
966
|
{
|
|
967
967
|
fileName: content.fileName,
|
|
968
968
|
mimeType: content.mimeType,
|
|
@@ -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
|
|
4
|
+
var _chunkAXBVN5SWcjs = require('./chunk-AXBVN5SW.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk7Z4EQOIXcjs = require('./chunk-7Z4EQOIX.cjs');
|
|
@@ -74,7 +74,7 @@ function DetailPageSkeleton({
|
|
|
74
74
|
] });
|
|
75
75
|
if (bare) return content;
|
|
76
76
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
77
|
-
|
|
77
|
+
_chunkAXBVN5SWcjs.PageLayout,
|
|
78
78
|
{
|
|
79
79
|
showHeader: false,
|
|
80
80
|
className: "mx-auto max-w-[1280px] bg-ods-bg px-6 py-6 content-md:px-20 content-md:py-10",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk57JA37HPcjs = require('./chunk-57JA37HP.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkQTYSYEHKcjs = require('./chunk-QTYSYEHK.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkCSJO7ZGNcjs = require('./chunk-CSJO7ZGN.cjs');
|
|
@@ -40,7 +40,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
40
40
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
41
41
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
42
42
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
43
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
43
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkQTYSYEHKcjs.resolveSourceIcon.call(void 0, {
|
|
44
44
|
sourceRepo,
|
|
45
45
|
documentType: docType
|
|
46
46
|
});
|
|
@@ -70,7 +70,7 @@ function DocSearchBar({
|
|
|
70
70
|
renderResult
|
|
71
71
|
}) {
|
|
72
72
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
73
|
-
|
|
73
|
+
_chunk57JA37HPcjs.SearchInput,
|
|
74
74
|
{
|
|
75
75
|
placeholder,
|
|
76
76
|
value: query,
|
|
@@ -120,7 +120,7 @@ function mapDocSearchResults(docs) {
|
|
|
120
120
|
results.push({
|
|
121
121
|
id: `group-${entry.repo}`,
|
|
122
122
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
123
|
-
title: `${
|
|
123
|
+
title: `${_chunkQTYSYEHKcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkQTYSYEHKcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
124
124
|
path: rows[0].path,
|
|
125
125
|
type: "file",
|
|
126
126
|
metadata: {
|
|
@@ -336,7 +336,7 @@ function useDocSearch(config) {
|
|
|
336
336
|
return;
|
|
337
337
|
case "ask-ai":
|
|
338
338
|
setKeepOpen(false);
|
|
339
|
-
window.dispatchEvent(new CustomEvent(
|
|
339
|
+
window.dispatchEvent(new CustomEvent(_chunkQTYSYEHKcjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
340
340
|
return;
|
|
341
341
|
case "route":
|
|
342
342
|
setKeepOpen(false);
|