@flamingo-stack/openframe-frontend-core 0.0.773 → 0.0.775
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/build/export-map.json +1 -1
- package/dist/{chunk-VW2QQKQ6.cjs → chunk-36GYLB3Z.cjs} +15 -15
- package/dist/{chunk-5HBGBLJT.cjs → chunk-3XLDYEQD.cjs} +74 -63
- package/dist/{chunk-7P2QXBWE.cjs → chunk-42JGOJCB.cjs} +234 -213
- package/dist/{chunk-I4ZVMNHO.cjs → chunk-4LFB4YY3.cjs} +6 -6
- package/dist/{chunk-JJNOAYD4.cjs → chunk-5AOKXXHV.cjs} +4 -4
- package/dist/{chunk-MT5Z2LSV.cjs → chunk-5YJWT5ZQ.cjs} +72 -72
- package/dist/{chunk-42YLIZFD.cjs → chunk-6SJYFUGD.cjs} +22 -22
- package/dist/{chunk-BPAYT72L.cjs → chunk-BTVO676B.cjs} +148 -131
- package/dist/{chunk-TZ4GKUO2.cjs → chunk-CZIMISAR.cjs} +5 -1
- package/dist/{chunk-XVFM6SJA.cjs → chunk-E64HPPRH.cjs} +31 -31
- package/dist/{chunk-CTRJNTYU.cjs → chunk-EQBJHJS7.cjs} +2 -2
- package/dist/{chunk-6LLF2QCS.cjs → chunk-F67SEXCW.cjs} +39 -39
- package/dist/{chunk-HEEK42BL.cjs → chunk-FHTTRWAK.cjs} +81 -81
- package/dist/{chunk-NRFNZ35Z.cjs → chunk-IQQ3SLUK.cjs} +19 -19
- package/dist/{chunk-RNLRS4ID.cjs → chunk-KKAY6GPU.cjs} +2 -2
- package/dist/{chunk-ILZEXCJH.cjs → chunk-KWZ62LPZ.cjs} +124 -104
- package/dist/{chunk-KDMWXXLE.cjs → chunk-L5CKY5WA.cjs} +15 -15
- package/dist/{chunk-CW3ML76U.cjs → chunk-NTPX5GXI.cjs} +4 -0
- package/dist/{chunk-NPCFVTA2.cjs → chunk-ODF3KCRK.cjs} +31 -31
- package/dist/{chunk-YSKX42LW.cjs → chunk-PMX6QNNN.cjs} +12 -12
- package/dist/{chunk-2A56MLLL.cjs → chunk-SWEPHSIP.cjs} +4 -4
- package/dist/{chunk-7J4YWDT6.cjs → chunk-TF2XYDH3.cjs} +3 -3
- package/dist/{chunk-KSCEAIBS.cjs → chunk-TOPGBOCN.cjs} +2 -2
- package/dist/{chunk-FPCGKH5K.cjs → chunk-TUXPFF4P.cjs} +31 -29
- package/dist/{chunk-SE76YGR3.cjs → chunk-USMR73ND.cjs} +4 -4
- package/dist/{chunk-BMFU2CUL.cjs → chunk-VAGZJRYV.cjs} +4 -4
- package/dist/{chunk-3FREBLAJ.cjs → chunk-VDXBACD3.cjs} +47 -45
- package/dist/{chunk-X5Z4HRH7.cjs → chunk-VISK6LKE.cjs} +2 -2
- package/dist/{chunk-5V7BIUGA.cjs → chunk-Y3EBUFX4.cjs} +92 -21
- package/dist/{cloud-tenants-EE5ULFOK.cjs → cloud-tenants-ISGAMTJD.cjs} +11 -11
- package/dist/components/authors/author-detail-view.d.ts.map +1 -1
- package/dist/components/authors/author-detail-view.js +12 -2
- package/dist/components/case-studies/index.cjs +28 -28
- package/dist/components/chat/ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/ask-prompts.js +28 -19
- package/dist/components/chat/entity-cards/entity-portrait-card.d.ts +3 -1
- package/dist/components/chat/entity-cards/entity-portrait-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/entity-portrait-card.js +2 -0
- package/dist/components/chat/entity-cards/program-card.d.ts +6 -1
- package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/program-card.js +19 -2
- package/dist/components/chat/index.cjs +10 -8
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +10 -4
- package/dist/components/chat/utils/ask-ai-events.d.ts +10 -0
- package/dist/components/chat/utils/ask-ai-events.d.ts.map +1 -1
- package/dist/components/chat/utils/ask-ai-events.js +21 -1
- package/dist/components/contact/index.cjs +12 -12
- package/dist/components/docs/index.cjs +15 -15
- package/dist/components/embeds/index.cjs +12 -12
- package/dist/components/faq/index.cjs +13 -13
- package/dist/components/features/index.cjs +11 -11
- package/dist/components/features/video-hover-preview.d.ts.map +1 -1
- package/dist/components/features/video-hover-preview.js +5 -2
- package/dist/components/features/video-shared.d.ts +2 -1
- package/dist/components/features/video-shared.d.ts.map +1 -1
- package/dist/components/features/video.d.ts.map +1 -1
- package/dist/components/features/video.js +64 -13
- package/dist/components/help-center-pages/index.cjs +100 -100
- package/dist/components/index.cjs +74 -62
- package/dist/components/meeting-scheduler/index.cjs +46 -46
- package/dist/components/navigation/index.cjs +14 -14
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/mingo-ai-button.js +2 -1
- package/dist/components/navigation/site-header.d.ts.map +1 -1
- package/dist/components/navigation/site-header.js +3 -1
- package/dist/components/onboarding-guides/index.cjs +14 -14
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/related-content/card-registry.d.ts +5 -0
- package/dist/components/related-content/card-registry.d.ts.map +1 -1
- package/dist/components/related-content/card-registry.js +2 -0
- package/dist/components/related-content/index.cjs +7 -6
- package/dist/components/related-content/index.d.ts +2 -1
- package/dist/components/related-content/index.d.ts.map +1 -1
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/related-content/related-content-section.d.ts +8 -10
- package/dist/components/related-content/related-content-section.d.ts.map +1 -1
- package/dist/components/related-content/related-content-section.js +20 -11
- package/dist/components/tickets/index.cjs +17 -17
- package/dist/components/ui/index.cjs +13 -11
- package/dist/components/ui/photo-wall.d.ts +16 -1
- package/dist/components/ui/photo-wall.d.ts.map +1 -1
- package/dist/components/ui/photo-wall.js +24 -9
- package/dist/components/ui/tab-navigation.d.ts +8 -1
- package/dist/components/ui/tab-navigation.d.ts.map +1 -1
- package/dist/components/ui/tab-navigation.js +9 -3
- package/dist/{devices-EBGGHEGR.cjs → devices-AHJX6ACJ.cjs} +12 -12
- package/dist/{embeddable-chat-HCT4QV35.cjs → embeddable-chat-DI7ZZTBP.cjs} +75 -75
- package/dist/hooks/index.cjs +4 -4
- package/dist/hooks/use-near-viewport.d.ts.map +1 -1
- package/dist/hooks/use-near-viewport.js +4 -0
- package/dist/index.cjs +23 -15
- package/dist/{knowledge-5ZSMKKTL.cjs → knowledge-FH5GVRVP.cjs} +12 -12
- package/dist/{logs-GUV3BMGC.cjs → logs-JBIHHLUQ.cjs} +19 -19
- package/dist/{policies-HPMTDOAS.cjs → policies-XLJ2ABY5.cjs} +15 -15
- package/dist/{scripts-QYYKCIUW.cjs → scripts-CQLXM7PP.cjs} +16 -16
- package/dist/{software-update-NC2KZKEI.cjs → software-update-7NYZ7L76.cjs} +14 -14
- package/dist/utils/content-ref-groups.d.ts +8 -0
- package/dist/utils/content-ref-groups.d.ts.map +1 -1
- package/dist/utils/content-ref-groups.js +2 -0
- package/dist/utils/dismiss-cookie.d.ts +14 -0
- package/dist/utils/dismiss-cookie.d.ts.map +1 -1
- package/dist/utils/dismiss-cookie.js +4 -0
- package/dist/utils/index.cjs +10 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -0
- package/dist/utils/visitor-os.d.ts +9 -0
- package/dist/utils/visitor-os.d.ts.map +1 -1
- package/dist/utils/visitor-os.js +4 -0
- package/dist/{video-file-player-COXRF4M5.cjs → video-file-player-4TXA7BZF.cjs} +3 -3
- package/package.json +1 -1
- package/src/components/authors/author-detail-view.tsx +10 -2
- package/src/components/chat/ask-prompts.tsx +6 -1
- package/src/components/chat/entity-cards/entity-portrait-card.tsx +4 -0
- package/src/components/chat/entity-cards/program-card.tsx +24 -2
- package/src/components/chat/index.ts +16 -9
- package/src/components/chat/utils/ask-ai-events.ts +26 -0
- package/src/components/features/video-hover-preview.tsx +46 -37
- package/src/components/features/video-shared.tsx +2 -1
- package/src/components/features/video.tsx +102 -19
- package/src/components/navigation/mingo-ai-button.tsx +2 -1
- package/src/components/navigation/site-header.tsx +3 -1
- package/src/components/related-content/card-registry.tsx +7 -0
- package/src/components/related-content/index.ts +2 -1
- package/src/components/related-content/related-content-section.tsx +38 -14
- package/src/components/ui/photo-wall.tsx +43 -10
- package/src/components/ui/tab-navigation.tsx +18 -3
- package/src/hooks/use-near-viewport.ts +6 -0
- package/src/utils/content-ref-groups.ts +9 -0
- package/src/utils/dismiss-cookie.ts +17 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/visitor-os.ts +12 -0
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk6SJYFUGDcjs = require('./chunk-6SJYFUGD.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk5AOKXXHVcjs = require('./chunk-5AOKXXHV.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkL5CKY5WAcjs = require('./chunk-L5CKY5WA.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -26,24 +26,24 @@ var _chunkKDMWXXLEcjs = require('./chunk-KDMWXXLE.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunk42JGOJCBcjs = require('./chunk-42JGOJCB.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
var _chunkV3W56L2Dcjs = require('./chunk-V3W56L2D.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkE64HPPRHcjs = require('./chunk-E64HPPRH.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkBTVO676Bcjs = require('./chunk-BTVO676B.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _chunkKWZ62LPZcjs = require('./chunk-KWZ62LPZ.cjs');
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
var _chunkEWCFJLNUcjs = require('./chunk-EWCFJLNU.cjs');
|
|
@@ -58,7 +58,7 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
var
|
|
61
|
+
var _chunkTUXPFF4Pcjs = require('./chunk-TUXPFF4P.cjs');
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
|
|
@@ -75,7 +75,7 @@ var _chunkFPCGKH5Kcjs = require('./chunk-FPCGKH5K.cjs');
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
var
|
|
78
|
+
var _chunkY3EBUFX4cjs = require('./chunk-Y3EBUFX4.cjs');
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
@@ -109,8 +109,8 @@ var _chunk65VVJSQZcjs = require('./chunk-65VVJSQZ.cjs');
|
|
|
109
109
|
var _jsxruntime = require('react/jsx-runtime');
|
|
110
110
|
var DEFAULT_ENDPOINT = "/api/releases";
|
|
111
111
|
var PAGER_ROW_CLASS = "flex w-full justify-center";
|
|
112
|
-
var DEFAULT_SEARCH_PARAM_KEY =
|
|
113
|
-
var DEFAULT_STATUS_PARAM_KEY =
|
|
112
|
+
var DEFAULT_SEARCH_PARAM_KEY = _chunkBTVO676Bcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
113
|
+
var DEFAULT_STATUS_PARAM_KEY = _chunkBTVO676Bcjs.DEV_SECTION_PARAM_KEYS.releaseStatus;
|
|
114
114
|
var DEFAULT_PAGE_PARAM_KEY = "page";
|
|
115
115
|
function ReleaseRow({
|
|
116
116
|
release,
|
|
@@ -119,17 +119,17 @@ 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 = _chunkBTVO676Bcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _2 => _2.composeContentUrl]), {
|
|
123
123
|
type: "product_release",
|
|
124
124
|
slug: release.slug,
|
|
125
125
|
basePath,
|
|
126
126
|
platforms: release.product_release_platforms
|
|
127
127
|
});
|
|
128
|
-
const { target, rel } =
|
|
128
|
+
const { target, rel } = _chunkY3EBUFX4cjs.useEntityCardLink.call(void 0, { href: cta.href, targetPlatform: cta.targetPlatform });
|
|
129
129
|
const onClick = (e) => {
|
|
130
|
-
if (e.defaultPrevented ||
|
|
130
|
+
if (e.defaultPrevented || _chunkY3EBUFX4cjs.isModifierClick.call(void 0, e) || target === "_blank") return;
|
|
131
131
|
e.preventDefault();
|
|
132
|
-
|
|
132
|
+
_chunkKWZ62LPZcjs.executeNavigationImperative.call(void 0, {
|
|
133
133
|
runtime,
|
|
134
134
|
href: cta.href,
|
|
135
135
|
targetPlatform: cta.targetPlatform,
|
|
@@ -137,7 +137,7 @@ function ReleaseRow({
|
|
|
137
137
|
});
|
|
138
138
|
};
|
|
139
139
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
140
|
-
|
|
140
|
+
_chunkTUXPFF4Pcjs.ProductReleaseCard,
|
|
141
141
|
{
|
|
142
142
|
size: "lg",
|
|
143
143
|
title: release.title,
|
|
@@ -153,7 +153,7 @@ function ProductReleasesView({
|
|
|
153
153
|
initialData,
|
|
154
154
|
itemsPerPage = 5,
|
|
155
155
|
basePath = "/releases",
|
|
156
|
-
buildCardProps =
|
|
156
|
+
buildCardProps = _chunkY3EBUFX4cjs.buildProductReleaseCardProps,
|
|
157
157
|
searchParamKey = DEFAULT_SEARCH_PARAM_KEY,
|
|
158
158
|
statusParamKey = DEFAULT_STATUS_PARAM_KEY,
|
|
159
159
|
pageParamKey = DEFAULT_PAGE_PARAM_KEY,
|
|
@@ -175,11 +175,11 @@ function ProductReleasesView({
|
|
|
175
175
|
isLoading: fetching,
|
|
176
176
|
error,
|
|
177
177
|
reload
|
|
178
|
-
} =
|
|
178
|
+
} = _chunkTUXPFF4Pcjs.useSelfFetch.call(void 0, inScope ? null : `${endpoint}?${listParams.toString()}`, {
|
|
179
179
|
initialData
|
|
180
180
|
});
|
|
181
181
|
const isLoading = inScope || fetching;
|
|
182
|
-
|
|
182
|
+
_chunk6SJYFUGDcjs.usePageDataSync.call(void 0, _optionalChain([data, 'optionalAccess', _3 => _3.sync]), isLoading && !data);
|
|
183
183
|
const releases = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _4 => _4.data]), () => ( []));
|
|
184
184
|
const totalCount = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _5 => _5.count]), () => ( 0));
|
|
185
185
|
const totalPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, totalCount, itemsPerPage);
|
|
@@ -198,10 +198,10 @@ function ProductReleasesView({
|
|
|
198
198
|
router.replace(`${pathname}?${params.toString()}`, { scroll: false });
|
|
199
199
|
};
|
|
200
200
|
if (error) {
|
|
201
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "w-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
201
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "w-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk42JGOJCBcjs.LoadError, { message: "Failed to load releases.", onRetry: reload }) });
|
|
202
202
|
}
|
|
203
203
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk65VVJSQZcjs.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,
|
|
204
|
-
|
|
204
|
+
_chunk6SJYFUGDcjs.ListEmptyState,
|
|
205
205
|
{
|
|
206
206
|
isFiltered: hasActiveFilters,
|
|
207
207
|
filtered: {
|
|
@@ -222,14 +222,14 @@ function ProductReleasesView({
|
|
|
222
222
|
style: { visibility: isLoading || hasData ? "visible" : "hidden" },
|
|
223
223
|
children: !isLoading && release ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReleaseRow, { release, basePath, buildCardProps }) : (
|
|
224
224
|
// Read, or a hidden slot past the page's last release: the card draws its own skeleton.
|
|
225
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
225
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTUXPFF4Pcjs.ProductReleaseCard, { loading: true, size: "lg", title: "", version: "", formattedDate: "" })
|
|
226
226
|
)
|
|
227
227
|
},
|
|
228
228
|
_nullishCoalesce(_optionalChain([release, 'optionalAccess', _6 => _6.id]), () => ( `slot-${i}`))
|
|
229
229
|
);
|
|
230
230
|
}) }),
|
|
231
231
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-6 flex justify-center content-md:mt-8", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
232
|
-
|
|
232
|
+
_chunk5AOKXXHVcjs.UnifiedPagination,
|
|
233
233
|
{
|
|
234
234
|
loading: isLoading,
|
|
235
235
|
currentPage,
|
|
@@ -287,10 +287,10 @@ function MediaGalleryStrip({ items, className }) {
|
|
|
287
287
|
mediaItem.id || index
|
|
288
288
|
);
|
|
289
289
|
}
|
|
290
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: tileClass, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
290
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: tileClass, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3EBUFX4cjs.Video, { url: mediaItem.media_url, layout: "native" }) }, mediaItem.id || index);
|
|
291
291
|
}) }),
|
|
292
292
|
galleryImages.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
293
|
-
|
|
293
|
+
_chunkY3EBUFX4cjs.ImageGalleryModal,
|
|
294
294
|
{
|
|
295
295
|
images: galleryImages,
|
|
296
296
|
isOpen: galleryOpen,
|
|
@@ -314,7 +314,7 @@ function MediaGalleryStripSkeleton({
|
|
|
314
314
|
var _lucidereact = require('lucide-react');
|
|
315
315
|
|
|
316
316
|
|
|
317
|
-
var DefaultMarkdownRenderer =
|
|
317
|
+
var DefaultMarkdownRenderer = _chunk42JGOJCBcjs.RichMarkdownRenderer;
|
|
318
318
|
var CONTENT_STACK_CLASS = "space-y-6 content-md:space-y-8";
|
|
319
319
|
var RELEASE_TITLE_SKELETON_LINES = { phone: 7, md: 4, lg: 2 };
|
|
320
320
|
var METADATA_GRID_CLASS = "grid w-full grid-cols-1 overflow-hidden rounded-md border border-ods-border content-md:grid-cols-4";
|
|
@@ -363,14 +363,14 @@ function ReleaseDetailPage({
|
|
|
363
363
|
shell = true
|
|
364
364
|
}) {
|
|
365
365
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
366
|
-
const captions =
|
|
367
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
366
|
+
const captions = _chunkKWZ62LPZcjs.useCaptions.call(void 0, );
|
|
367
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk42JGOJCBcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
368
368
|
const seed = initialData == null ? void 0 : initialData;
|
|
369
369
|
const {
|
|
370
370
|
data: release,
|
|
371
371
|
isLoading,
|
|
372
372
|
error
|
|
373
|
-
} =
|
|
373
|
+
} = _chunkTUXPFF4Pcjs.useSelfFetch.call(void 0, slug ? `${endpoint}/${encodeURIComponent(slug)}` : null, {
|
|
374
374
|
initialData: seed
|
|
375
375
|
});
|
|
376
376
|
const showBackButton = backButton !== false;
|
|
@@ -470,7 +470,7 @@ function ReleaseDetailPage({
|
|
|
470
470
|
children: [
|
|
471
471
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTENT_STACK_CLASS, children: [
|
|
472
472
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
473
|
-
|
|
473
|
+
_chunk42JGOJCBcjs.EntityTagBadges,
|
|
474
474
|
{
|
|
475
475
|
tags: view.product_release_tags,
|
|
476
476
|
max: RELEASE_TAG_ROW_MAX,
|
|
@@ -479,7 +479,7 @@ function ReleaseDetailPage({
|
|
|
479
479
|
),
|
|
480
480
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: METADATA_GRID_CLASS, children: [
|
|
481
481
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
482
|
-
|
|
482
|
+
_chunkY3EBUFX4cjs.EntityMetadataValueCell,
|
|
483
483
|
{
|
|
484
484
|
value: releaseType,
|
|
485
485
|
label: RELEASE_TYPE_LABEL,
|
|
@@ -487,7 +487,7 @@ function ReleaseDetailPage({
|
|
|
487
487
|
}
|
|
488
488
|
),
|
|
489
489
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
490
|
-
|
|
490
|
+
_chunkY3EBUFX4cjs.EntityMetadataValueCell,
|
|
491
491
|
{
|
|
492
492
|
value: releaseStatus,
|
|
493
493
|
label: RELEASE_STATUS_LABEL,
|
|
@@ -495,16 +495,16 @@ function ReleaseDetailPage({
|
|
|
495
495
|
}
|
|
496
496
|
),
|
|
497
497
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
498
|
-
|
|
498
|
+
_chunkY3EBUFX4cjs.EntityMetadataValueCell,
|
|
499
499
|
{
|
|
500
|
-
value: releaseDate ?
|
|
500
|
+
value: releaseDate ? _chunkY3EBUFX4cjs.formatReleaseDate.call(void 0, releaseDate) : "",
|
|
501
501
|
label: RELEASE_DATE_LABEL,
|
|
502
502
|
className: METADATA_CELL_EDGE_CLASS,
|
|
503
503
|
uppercase: false
|
|
504
504
|
}
|
|
505
505
|
),
|
|
506
506
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
507
|
-
|
|
507
|
+
_chunkY3EBUFX4cjs.EntityMetadataAuthorCell,
|
|
508
508
|
{
|
|
509
509
|
author: _nullishCoalesce(author, () => ( { full_name: null, avatar_url: null })),
|
|
510
510
|
authorHref: _optionalChain([author, 'optionalAccess', _9 => _9.full_name]) ? authorHref : void 0
|
|
@@ -522,18 +522,18 @@ function ReleaseDetailPage({
|
|
|
522
522
|
highlightVideoThumbnail,
|
|
523
523
|
title: releaseTitle,
|
|
524
524
|
videoBites,
|
|
525
|
-
bitesTitle:
|
|
525
|
+
bitesTitle: _chunkY3EBUFX4cjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
526
526
|
filterPublishedBites: true,
|
|
527
|
-
bitesProfile:
|
|
527
|
+
bitesProfile: _chunkY3EBUFX4cjs.toStripProfile.call(void 0, author),
|
|
528
528
|
bitesHref: typeof view.slug === "string" ? `/releases/${view.slug}` : void 0,
|
|
529
529
|
captionsUrl,
|
|
530
530
|
highlightCaptionsUrl
|
|
531
531
|
}
|
|
532
532
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
533
|
-
youtubeUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
534
|
-
!youtubeUrl && mainVideoUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
533
|
+
youtubeUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3EBUFX4cjs.Video, { kind: "youtube", url: youtubeUrl, title: `${releaseTitle} - Video`, layout: "native" }),
|
|
534
|
+
!youtubeUrl && mainVideoUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3EBUFX4cjs.Video, { url: mainVideoUrl, captionsUrl, layout: "centered" }),
|
|
535
535
|
highlightVideoUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
536
|
-
|
|
536
|
+
_chunkY3EBUFX4cjs.Video,
|
|
537
537
|
{
|
|
538
538
|
url: highlightVideoUrl,
|
|
539
539
|
poster: highlightVideoThumbnail,
|
|
@@ -543,7 +543,7 @@ function ReleaseDetailPage({
|
|
|
543
543
|
)
|
|
544
544
|
] }) }),
|
|
545
545
|
releaseContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-ods-text-primary text-h4", "data-loading-optional": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: releaseContent }) }),
|
|
546
|
-
hasBreakingChanges && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
546
|
+
hasBreakingChanges && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3EBUFX4cjs.Card, { className: "border-ods-error bg-ods-error/10", "data-loading-optional": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3EBUFX4cjs.CardContent, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
547
547
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-6 w-6 text-ods-error" }),
|
|
548
548
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
549
549
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-ods-error text-h3", children: "Breaking Changes" }),
|
|
@@ -551,7 +551,7 @@ function ReleaseDetailPage({
|
|
|
551
551
|
] })
|
|
552
552
|
] }) }) }),
|
|
553
553
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
554
|
-
|
|
554
|
+
_chunk42JGOJCBcjs.ReleaseChangelogSection,
|
|
555
555
|
{
|
|
556
556
|
title: "Breaking Changes",
|
|
557
557
|
entries: breakingChanges || [],
|
|
@@ -563,7 +563,7 @@ function ReleaseDetailPage({
|
|
|
563
563
|
}
|
|
564
564
|
),
|
|
565
565
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
566
|
-
|
|
566
|
+
_chunk42JGOJCBcjs.ReleaseChangelogSection,
|
|
567
567
|
{
|
|
568
568
|
title: "Features Added",
|
|
569
569
|
entries: featuresAdded || [],
|
|
@@ -573,7 +573,7 @@ function ReleaseDetailPage({
|
|
|
573
573
|
}
|
|
574
574
|
),
|
|
575
575
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
576
|
-
|
|
576
|
+
_chunk42JGOJCBcjs.ReleaseChangelogSection,
|
|
577
577
|
{
|
|
578
578
|
title: "Bugs Fixed",
|
|
579
579
|
entries: bugFixed || [],
|
|
@@ -583,7 +583,7 @@ function ReleaseDetailPage({
|
|
|
583
583
|
}
|
|
584
584
|
),
|
|
585
585
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
586
|
-
|
|
586
|
+
_chunk42JGOJCBcjs.ReleaseChangelogSection,
|
|
587
587
|
{
|
|
588
588
|
title: "Improvements",
|
|
589
589
|
entries: improvements || [],
|
|
@@ -612,9 +612,9 @@ function ReleaseDetailPage({
|
|
|
612
612
|
return deliveryLoading ? (
|
|
613
613
|
// The loaded preview's frame, its height written into the markup (`fixedHeight`), so the tables'
|
|
614
614
|
// loading state takes the collapsed preview's place, toggle row included. Inert: nothing to open yet.
|
|
615
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { inert: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
615
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { inert: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk42JGOJCBcjs.FadePreview, { fixedHeight: true, collapsedHeight: DELIVERY_PREVIEW_HEIGHT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DELIVERY_TABLES_STACK_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeliverySection, { data: deliveryData, isLoading: deliveryLoading }) }) }) })
|
|
616
616
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
617
|
-
|
|
617
|
+
_chunk42JGOJCBcjs.FadePreview,
|
|
618
618
|
{
|
|
619
619
|
hiddenCount: deliveryCount - 1,
|
|
620
620
|
collapsedHeight: DELIVERY_PREVIEW_HEIGHT,
|
|
@@ -626,7 +626,7 @@ function ReleaseDetailPage({
|
|
|
626
626
|
] }),
|
|
627
627
|
(_optionalChain([githubReleases, 'optionalAccess', _10 => _10.length]) || _optionalChain([knowledgeBaseLinks, 'optionalAccess', _11 => _11.length]) || migrationGuideUrl || documentationUrl) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-full space-y-1", "data-loading-optional": true, children: [
|
|
628
628
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "tracking-[-0.28px] text-ods-text-secondary text-h5", children: "Related Links" }),
|
|
629
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
629
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3EBUFX4cjs.Card, { className: "border-ods-border bg-ods-card p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
630
630
|
githubReleases && githubReleases.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: githubReleases.map((ghRelease) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-1", children: [
|
|
631
631
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEWCFJLNUcjs.GithubClassicIcon, { className: "shrink-0", size: 24, color: "var(--color-text-secondary)" }),
|
|
632
632
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children: "Github Release" }),
|
|
@@ -711,7 +711,7 @@ function RoadmapGridSkeleton({
|
|
|
711
711
|
showLeftMargin = true,
|
|
712
712
|
columns = 2
|
|
713
713
|
}) {
|
|
714
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading the roadmap", announce: region, className: roadmapGridClass(columns, showLeftMargin), children: Array.from({ length: count }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
714
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading the roadmap", announce: region, className: roadmapGridClass(columns, showLeftMargin), children: Array.from({ length: count }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3EBUFX4cjs.RoadmapCardSkeleton, {}) }, i)) });
|
|
715
715
|
}
|
|
716
716
|
|
|
717
717
|
// src/components/shared/roadmap/use-roadmap-voting.ts
|
|
@@ -731,10 +731,10 @@ function readStoredVotes(storageKey) {
|
|
|
731
731
|
function useRoadmapVoting(options = {}) {
|
|
732
732
|
const voteApiEndpoint = _nullishCoalesce(options.voteApiEndpoint, () => ( DEFAULT_VOTE_ENDPOINT));
|
|
733
733
|
const storageKey = _nullishCoalesce(options.storageKey, () => ( DEFAULT_STORAGE_KEY));
|
|
734
|
-
const { getSignals } =
|
|
734
|
+
const { getSignals } = _chunkE64HPPRHcjs.useHumanitySignals.call(void 0, );
|
|
735
735
|
const [votes, setVotes] = _react.useState.call(void 0, NO_VOTES);
|
|
736
736
|
const [loadedKey, setLoadedKey] = _react.useState.call(void 0, null);
|
|
737
|
-
const hydrated =
|
|
737
|
+
const hydrated = _chunkKWZ62LPZcjs.useIsHydrated.call(void 0, );
|
|
738
738
|
if (hydrated && loadedKey !== storageKey) {
|
|
739
739
|
setLoadedKey(storageKey);
|
|
740
740
|
setVotes(readStoredVotes(storageKey));
|
|
@@ -877,10 +877,10 @@ function RoadmapGridSingle({
|
|
|
877
877
|
// and scrolls.
|
|
878
878
|
// `data-loading-item`: how many items a quarter holds is read data (the loading-state gate measures it as a list).
|
|
879
879
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
880
|
-
|
|
880
|
+
_chunkY3EBUFX4cjs.RoadmapCard,
|
|
881
881
|
{
|
|
882
882
|
item,
|
|
883
|
-
id:
|
|
883
|
+
id: _chunkBTVO676Bcjs.devSectionAnchorId.call(void 0, "roadmap", item.id),
|
|
884
884
|
userVote: getVote(item.id),
|
|
885
885
|
onVote: (voteType) => onVote(item.id, voteType),
|
|
886
886
|
isVoting: votingTasks.has(item.id)
|
|
@@ -995,7 +995,7 @@ function RoadmapGrid({
|
|
|
995
995
|
}
|
|
996
996
|
if (items.length === 0) {
|
|
997
997
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
998
|
-
|
|
998
|
+
_chunk5AOKXXHVcjs.EmptyState,
|
|
999
999
|
{
|
|
1000
1000
|
type: "generic",
|
|
1001
1001
|
title: "No roadmap items",
|
|
@@ -1017,7 +1017,7 @@ function RoadmapGrid({
|
|
|
1017
1017
|
);
|
|
1018
1018
|
}
|
|
1019
1019
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1020
|
-
|
|
1020
|
+
_chunk42JGOJCBcjs.Accordion,
|
|
1021
1021
|
{
|
|
1022
1022
|
type: "multiple",
|
|
1023
1023
|
value: expandedQuarters,
|
|
@@ -1027,14 +1027,14 @@ function RoadmapGrid({
|
|
|
1027
1027
|
const itemCount = _optionalChain([itemsByQuarter, 'access', _20 => _20[quarter], 'optionalAccess', _21 => _21.length]) || 0;
|
|
1028
1028
|
const isExpanded = expandedQuarters.includes(quarter);
|
|
1029
1029
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1030
|
-
|
|
1030
|
+
_chunk42JGOJCBcjs.AccordionItem,
|
|
1031
1031
|
{
|
|
1032
1032
|
value: quarter,
|
|
1033
1033
|
id: `quarter-${quarter.replace(/\s+/g, "-").toLowerCase()}`,
|
|
1034
1034
|
className: "border-0",
|
|
1035
1035
|
"data-loading-item": true,
|
|
1036
1036
|
children: [
|
|
1037
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1037
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk42JGOJCBcjs.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: QUARTER_HEAD_CLASS, children: [
|
|
1038
1038
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1039
1039
|
"h3",
|
|
1040
1040
|
{
|
|
@@ -1064,7 +1064,7 @@ function RoadmapGrid({
|
|
|
1064
1064
|
}
|
|
1065
1065
|
)
|
|
1066
1066
|
] }) }),
|
|
1067
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1067
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk42JGOJCBcjs.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,
|
|
1068
1068
|
RoadmapGridSingle,
|
|
1069
1069
|
{
|
|
1070
1070
|
items: itemsByQuarter[quarter],
|
|
@@ -1089,8 +1089,8 @@ function RoadmapGrid({
|
|
|
1089
1089
|
|
|
1090
1090
|
var DEFAULT_ENDPOINT3 = "/api/roadmap";
|
|
1091
1091
|
var SYNCED_LIST_CLASS = "flex w-full flex-col gap-[var(--spacing-system-lf)]";
|
|
1092
|
-
var DEFAULT_SEARCH_PARAM_KEY2 =
|
|
1093
|
-
var DEFAULT_STATUS_PARAM_KEY2 =
|
|
1092
|
+
var DEFAULT_SEARCH_PARAM_KEY2 = _chunkBTVO676Bcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
1093
|
+
var DEFAULT_STATUS_PARAM_KEY2 = _chunkBTVO676Bcjs.DEV_SECTION_PARAM_KEYS.status;
|
|
1094
1094
|
function RoadmapView({
|
|
1095
1095
|
endpoint = DEFAULT_ENDPOINT3,
|
|
1096
1096
|
initialItems,
|
|
@@ -1109,23 +1109,23 @@ function RoadmapView({
|
|
|
1109
1109
|
const qs = listParams.toString();
|
|
1110
1110
|
const url = qs ? `${endpoint}?${qs}` : endpoint;
|
|
1111
1111
|
const initialData = _react.useMemo.call(void 0, () => initialItems ? { items: initialItems } : void 0, [initialItems]);
|
|
1112
|
-
const { data, setData, isLoading, error, reload } =
|
|
1112
|
+
const { data, setData, isLoading, error, reload } = _chunkTUXPFF4Pcjs.useSelfFetch.call(void 0, url, {
|
|
1113
1113
|
initialData
|
|
1114
1114
|
});
|
|
1115
1115
|
const items = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _22 => _22.items]), () => ( []));
|
|
1116
|
-
|
|
1117
|
-
const syncInPage =
|
|
1116
|
+
_chunkE64HPPRHcjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkXXJL5GY3cjs.STICKY_HEADER_OFFSET_PX });
|
|
1117
|
+
const syncInPage = _chunk6SJYFUGDcjs.usePageDataSync.call(void 0, _optionalChain([data, 'optionalAccess', _23 => _23.sync]), isLoading && !data);
|
|
1118
1118
|
if (error) {
|
|
1119
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1119
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk42JGOJCBcjs.LoadError, { message: "Failed to load roadmap.", onRetry: reload });
|
|
1120
1120
|
}
|
|
1121
1121
|
if (isLoading && !data) {
|
|
1122
1122
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SYNCED_LIST_CLASS, children: [
|
|
1123
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1123
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk42JGOJCBcjs.DataSyncLine, { loading: true }),
|
|
1124
1124
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoadmapGridQuarterSkeleton, { showLeftMargin })
|
|
1125
1125
|
] });
|
|
1126
1126
|
}
|
|
1127
1127
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SYNCED_LIST_CLASS, children: [
|
|
1128
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1128
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk42JGOJCBcjs.DataSyncLine, { sync: _optionalChain([data, 'optionalAccess', _24 => _24.sync]) }),
|
|
1129
1129
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1130
1130
|
RoadmapGrid,
|
|
1131
1131
|
{
|
|
@@ -1145,11 +1145,11 @@ function RoadmapView({
|
|
|
1145
1145
|
|
|
1146
1146
|
// src/components/shared/delivery/delivery-table.tsx
|
|
1147
1147
|
|
|
1148
|
-
var TABLE_FRAME_CLASS = `w-full ${
|
|
1148
|
+
var TABLE_FRAME_CLASS = `w-full ${_chunkY3EBUFX4cjs.CONTENT_CARD_SKELETON_FRAME_CLASS}`;
|
|
1149
1149
|
var ROW_SEPARATOR_CLASS = "border-b border-ods-border last:border-b-0";
|
|
1150
1150
|
var DELIVERY_TABLE_SKELETON_ROWS = 5;
|
|
1151
1151
|
function DeliveryTableSkeleton() {
|
|
1152
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TABLE_FRAME_CLASS, "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: Array.from({ length: DELIVERY_TABLE_SKELETON_ROWS }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1152
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TABLE_FRAME_CLASS, "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: Array.from({ length: DELIVERY_TABLE_SKELETON_ROWS }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6SJYFUGDcjs.DeliveryRowSkeleton, {}) }, i)) }) });
|
|
1153
1153
|
}
|
|
1154
1154
|
function DeliveryTable({ items, isLoading = false }) {
|
|
1155
1155
|
if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeliveryTableSkeleton, {});
|
|
@@ -1162,7 +1162,7 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1162
1162
|
// → `#delivery-<external_id>`; `useScrollToHash` in
|
|
1163
1163
|
// `delivery-lists.tsx` finds the row by id and scrolls. The
|
|
1164
1164
|
// outer wrapper here ONLY exists for the row separators.
|
|
1165
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1165
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6SJYFUGDcjs.DeliveryRow, { item, id: _chunkBTVO676Bcjs.devSectionAnchorId.call(void 0, "delivery", item.id) }) }, item.id)
|
|
1166
1166
|
)) }) });
|
|
1167
1167
|
}
|
|
1168
1168
|
|
|
@@ -1171,8 +1171,8 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1171
1171
|
|
|
1172
1172
|
var DEFAULT_COMPLETED_ENDPOINT = "/api/delivery/completed";
|
|
1173
1173
|
var DEFAULT_IN_PROGRESS_ENDPOINT = "/api/delivery/in-progress";
|
|
1174
|
-
var DEFAULT_SEARCH_PARAM_KEY3 =
|
|
1175
|
-
var DEFAULT_TASK_TYPE_PARAM_KEY =
|
|
1174
|
+
var DEFAULT_SEARCH_PARAM_KEY3 = _chunkBTVO676Bcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
1175
|
+
var DEFAULT_TASK_TYPE_PARAM_KEY = _chunkBTVO676Bcjs.DEV_SECTION_PARAM_KEYS.deliveryTaskType;
|
|
1176
1176
|
function DeliveryLists({
|
|
1177
1177
|
completedApiEndpoint = DEFAULT_COMPLETED_ENDPOINT,
|
|
1178
1178
|
inProgressApiEndpoint = DEFAULT_IN_PROGRESS_ENDPOINT,
|
|
@@ -1246,19 +1246,19 @@ function DeliveryLists({
|
|
|
1246
1246
|
]);
|
|
1247
1247
|
const filteredCompleted = _optionalChain([data, 'optionalAccess', _25 => _25.completed]) || [];
|
|
1248
1248
|
const filteredInProgress = _optionalChain([data, 'optionalAccess', _26 => _26.inProgress]) || [];
|
|
1249
|
-
|
|
1250
|
-
const syncInPage =
|
|
1249
|
+
_chunkE64HPPRHcjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkXXJL5GY3cjs.STICKY_HEADER_OFFSET_PX });
|
|
1250
|
+
const syncInPage = _chunk6SJYFUGDcjs.usePageDataSync.call(void 0, sync, isLoading && !data);
|
|
1251
1251
|
const showCompleted = true;
|
|
1252
1252
|
const showInProgress = true;
|
|
1253
1253
|
const hasActiveFilters = searchQuery !== "" || taskTypeFilter !== "all";
|
|
1254
1254
|
const hasResults = showCompleted && filteredCompleted.length > 0 || showInProgress && filteredInProgress.length > 0;
|
|
1255
1255
|
if (error) {
|
|
1256
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1256
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk42JGOJCBcjs.LoadError, { message: error, onRetry: () => window.location.reload() }) });
|
|
1257
1257
|
}
|
|
1258
1258
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[40px]", children: [
|
|
1259
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1259
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk42JGOJCBcjs.DataSyncLine, { sync, loading: isLoading && !data }),
|
|
1260
1260
|
!isLoading && !hasResults && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1261
|
-
|
|
1261
|
+
_chunk6SJYFUGDcjs.ListEmptyState,
|
|
1262
1262
|
{
|
|
1263
1263
|
isFiltered: hasActiveFilters,
|
|
1264
1264
|
filtered: {
|
|
@@ -1483,7 +1483,7 @@ function legalDocumentStampLabel(doc) {
|
|
|
1483
1483
|
}
|
|
1484
1484
|
var LEGAL_DOCUMENT_SKELETON_SECTIONS = 3;
|
|
1485
1485
|
function LegalDocumentSkeleton({ sections = LEGAL_DOCUMENT_SKELETON_SECTIONS }) {
|
|
1486
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading the document", className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1486
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading the document", className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk42JGOJCBcjs.RichMarkdownRendererSkeleton, { title: true, sections }) });
|
|
1487
1487
|
}
|
|
1488
1488
|
function LegalDocumentPage({
|
|
1489
1489
|
docType,
|
|
@@ -1495,7 +1495,7 @@ function LegalDocumentPage({
|
|
|
1495
1495
|
emptyStateMessage: emptyStateMessageProp,
|
|
1496
1496
|
initialData = null,
|
|
1497
1497
|
apiEndpoint,
|
|
1498
|
-
MarkdownRenderer =
|
|
1498
|
+
MarkdownRenderer = _chunk42JGOJCBcjs.RichMarkdownRenderer,
|
|
1499
1499
|
documentsEndpoint,
|
|
1500
1500
|
backButton,
|
|
1501
1501
|
faq,
|
|
@@ -1526,7 +1526,7 @@ function LegalDocumentPage({
|
|
|
1526
1526
|
titleSize: "h1",
|
|
1527
1527
|
titleWrap: true,
|
|
1528
1528
|
children: [
|
|
1529
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1529
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk42JGOJCBcjs.DataSyncLine, { sync: data ? { source: "github", syncedAt: data.lastSynced } : null, loading: isLoading }),
|
|
1530
1530
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-1 flex-col items-start gap-6 lg:flex-row lg:gap-10", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "flex-1", isLoading && "w-full"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "article", { className: "space-y-2", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LegalDocumentSkeleton, {}) : error ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4 text-center", children: [
|
|
1531
1531
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rounded-lg border border-ods-error bg-ods-error-secondary p-6", children: [
|
|
1532
1532
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "mb-2 text-ods-error", children: errorTitle }),
|
|
@@ -1546,11 +1546,11 @@ function LegalDocumentPage({
|
|
|
1546
1546
|
"for more information."
|
|
1547
1547
|
] })
|
|
1548
1548
|
] }) }) }) }) }),
|
|
1549
|
-
faqSlot && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1549
|
+
faqSlot && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL5CKY5WAcjs.FaqSection, { ..._chunkL5CKY5WAcjs.pageFaqProps.call(void 0, faqSlot) })
|
|
1550
1550
|
]
|
|
1551
1551
|
}
|
|
1552
1552
|
);
|
|
1553
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1553
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk42JGOJCBcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
1554
1554
|
}
|
|
1555
1555
|
|
|
1556
1556
|
|