@flamingo-stack/openframe-frontend-core 0.0.777 → 0.0.780
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/{case-study-card-FMH622O5.cjs → case-study-card-WXMWYGSW.cjs} +2 -2
- package/dist/{chunk-JMFF3L3T.cjs → chunk-2JO5HNEF.cjs} +23 -23
- package/dist/{chunk-SDZG7VV7.cjs → chunk-2W3VDE4D.cjs} +2 -2
- package/dist/{chunk-4JZDJ34E.cjs → chunk-4BBOHZM3.cjs} +4 -4
- package/dist/{chunk-QIATO42V.cjs → chunk-4NRVV3KO.cjs} +3 -3
- package/dist/{chunk-BDDOC425.cjs → chunk-AQXEM7GI.cjs} +3 -3
- package/dist/{chunk-ALA4KHTE.cjs → chunk-DQALLDTZ.cjs} +4 -4
- package/dist/{chunk-LU2DGST4.cjs → chunk-F3BASIMT.cjs} +78 -78
- package/dist/{chunk-Y6MQBLTZ.cjs → chunk-HUPDPANN.cjs} +4 -4
- package/dist/{chunk-3PCSEZNZ.cjs → chunk-I4IC3BRC.cjs} +39 -39
- package/dist/{chunk-7LJSGOWS.cjs → chunk-IE3QCYBT.cjs} +13 -13
- package/dist/{chunk-VY3NGJRH.cjs → chunk-ILRQXZBA.cjs} +52 -52
- package/dist/{chunk-T47VAUYR.cjs → chunk-KA3VQ6X2.cjs} +69 -69
- package/dist/{chunk-WCSWWVPF.cjs → chunk-MLX6Z7TU.cjs} +2 -2
- package/dist/{chunk-MQPTOJMF.cjs → chunk-OH5LAH3X.cjs} +3 -51
- package/dist/{chunk-G2N7INFT.cjs → chunk-OMHQZXCD.cjs} +11 -11
- package/dist/{chunk-TZP7PSPG.cjs → chunk-OWQVDWTK.cjs} +109 -103
- package/dist/{chunk-XVAVQ4BK.cjs → chunk-PQBGSVZE.cjs} +38 -38
- package/dist/{chunk-LGNJTSKB.cjs → chunk-QEFDGI3Z.cjs} +29 -29
- package/dist/{chunk-WMZIBRTR.cjs → chunk-QIQYD75I.cjs} +2 -2
- package/dist/{chunk-T7NDPPLF.cjs → chunk-TVDQMG7I.cjs} +18 -18
- package/dist/{chunk-HXLOCZMG.cjs → chunk-UPAE4IV5.cjs} +167 -167
- package/dist/{chunk-DOM5CUEY.cjs → chunk-WR7KJML6.cjs} +30 -30
- package/dist/{chunk-CGQ7CL62.cjs → chunk-YG72MEHY.cjs} +98 -98
- package/dist/{chunk-U5VQFKRZ.cjs → chunk-YNECNYQF.cjs} +4 -4
- package/dist/{chunk-S3YDUX2I.cjs → chunk-YWQ3VXPL.cjs} +75 -75
- package/dist/{chunk-UW6AOF42.cjs → chunk-ZGWS3NJR.cjs} +13 -13
- package/dist/{cloud-tenants-EUH42CCL.cjs → cloud-tenants-2ZLGCSGK.cjs} +8 -8
- package/dist/components/case-studies/index.cjs +24 -24
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +8 -4
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/chat-message-list.js +2 -0
- package/dist/components/chat/index.cjs +6 -6
- package/dist/components/chat/types/component.types.d.ts +9 -0
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +9 -9
- package/dist/components/docs/index.cjs +12 -12
- package/dist/components/embeds/index.cjs +9 -9
- package/dist/components/faq/index.cjs +10 -10
- package/dist/components/features/index.cjs +8 -8
- package/dist/components/features/video-hover-preview.d.ts.map +1 -1
- package/dist/components/features/video-hover-preview.js +2 -5
- package/dist/components/features/video.d.ts.map +1 -1
- package/dist/components/features/video.js +1 -44
- package/dist/components/help-center-pages/index.cjs +84 -84
- package/dist/components/index.cjs +56 -56
- package/dist/components/meeting-scheduler/index.cjs +38 -38
- package/dist/components/navigation/index.cjs +11 -11
- package/dist/components/onboarding-guides/index.cjs +11 -11
- package/dist/components/product-demo/index.cjs +17 -17
- package/dist/components/related-content/index.cjs +6 -6
- package/dist/components/tickets/index.cjs +14 -14
- package/dist/components/ui/index.cjs +8 -8
- package/dist/{devices-WL3I23EE.cjs → devices-UOBQFPV3.cjs} +9 -9
- package/dist/{embeddable-chat-KEWUGQIF.cjs → embeddable-chat-SFQWRUIV.cjs} +74 -74
- package/dist/index.cjs +12 -12
- package/dist/{knowledge-O3PXUX73.cjs → knowledge-5K3LTHGB.cjs} +9 -9
- package/dist/{logs-XODCXWYI.cjs → logs-WU3N6ESS.cjs} +16 -16
- package/dist/{policies-CQACBIKK.cjs → policies-2IYASCQO.cjs} +12 -12
- package/dist/{scripts-QMM6SEB5.cjs → scripts-IQBKOQEY.cjs} +13 -13
- package/dist/{software-update-CCCKS4ZE.cjs → software-update-GJLDO5X5.cjs} +11 -11
- package/package.json +1 -1
- package/src/components/chat/chat-message-enhanced.tsx +13 -4
- package/src/components/chat/chat-message-list.tsx +2 -0
- package/src/components/chat/types/component.types.ts +9 -0
- package/src/components/features/video-hover-preview.tsx +37 -46
- package/src/components/features/video.tsx +1 -61
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2JO5HNEFcjs = require('./chunk-2JO5HNEF.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkHUPDPANNcjs = require('./chunk-HUPDPANN.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkZGWS3NJRcjs = require('./chunk-ZGWS3NJR.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -26,7 +26,7 @@ var _chunkUW6AOF42cjs = require('./chunk-UW6AOF42.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkUPAE4IV5cjs = require('./chunk-UPAE4IV5.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
var _chunkSIDDZZKLcjs = require('./chunk-SIDDZZKL.cjs');
|
|
@@ -38,12 +38,12 @@ var _chunk5PK22JP7cjs = require('./chunk-5PK22JP7.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkYWQ3VXPLcjs = require('./chunk-YWQ3VXPL.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _chunkOWQVDWTKcjs = require('./chunk-OWQVDWTK.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 _chunkQEFDGI3Zcjs = require('./chunk-QEFDGI3Z.cjs');
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
|
|
@@ -68,7 +68,7 @@ var _chunkLGNJTSKBcjs = require('./chunk-LGNJTSKB.cjs');
|
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
var
|
|
71
|
+
var _chunkYG72MEHYcjs = require('./chunk-YG72MEHY.cjs');
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
@@ -77,7 +77,7 @@ var _chunkCGQ7CL62cjs = require('./chunk-CGQ7CL62.cjs');
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
var
|
|
80
|
+
var _chunkOH5LAH3Xcjs = require('./chunk-OH5LAH3X.cjs');
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
|
|
@@ -111,8 +111,8 @@ var _chunk65VVJSQZcjs = require('./chunk-65VVJSQZ.cjs');
|
|
|
111
111
|
var _jsxruntime = require('react/jsx-runtime');
|
|
112
112
|
var DEFAULT_ENDPOINT = "/api/releases";
|
|
113
113
|
var PAGER_ROW_CLASS = "flex w-full justify-center";
|
|
114
|
-
var DEFAULT_SEARCH_PARAM_KEY =
|
|
115
|
-
var DEFAULT_STATUS_PARAM_KEY =
|
|
114
|
+
var DEFAULT_SEARCH_PARAM_KEY = _chunkYWQ3VXPLcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
115
|
+
var DEFAULT_STATUS_PARAM_KEY = _chunkYWQ3VXPLcjs.DEV_SECTION_PARAM_KEYS.releaseStatus;
|
|
116
116
|
var DEFAULT_PAGE_PARAM_KEY = "page";
|
|
117
117
|
function ReleaseRow({
|
|
118
118
|
release,
|
|
@@ -121,17 +121,17 @@ function ReleaseRow({
|
|
|
121
121
|
}) {
|
|
122
122
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
123
123
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
124
|
-
const cta =
|
|
124
|
+
const cta = _chunkYWQ3VXPLcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _2 => _2.composeContentUrl]), {
|
|
125
125
|
type: "product_release",
|
|
126
126
|
slug: release.slug,
|
|
127
127
|
basePath,
|
|
128
128
|
platforms: release.product_release_platforms
|
|
129
129
|
});
|
|
130
|
-
const { target, rel } =
|
|
130
|
+
const { target, rel } = _chunkOH5LAH3Xcjs.useEntityCardLink.call(void 0, { href: cta.href, targetPlatform: cta.targetPlatform });
|
|
131
131
|
const onClick = (e) => {
|
|
132
|
-
if (e.defaultPrevented ||
|
|
132
|
+
if (e.defaultPrevented || _chunkYG72MEHYcjs.isModifierClick.call(void 0, e) || target === "_blank") return;
|
|
133
133
|
e.preventDefault();
|
|
134
|
-
|
|
134
|
+
_chunkOWQVDWTKcjs.executeNavigationImperative.call(void 0, {
|
|
135
135
|
runtime,
|
|
136
136
|
href: cta.href,
|
|
137
137
|
targetPlatform: cta.targetPlatform,
|
|
@@ -139,7 +139,7 @@ function ReleaseRow({
|
|
|
139
139
|
});
|
|
140
140
|
};
|
|
141
141
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
142
|
-
|
|
142
|
+
_chunkQEFDGI3Zcjs.ProductReleaseCard,
|
|
143
143
|
{
|
|
144
144
|
size: "lg",
|
|
145
145
|
title: release.title,
|
|
@@ -155,7 +155,7 @@ function ProductReleasesView({
|
|
|
155
155
|
initialData,
|
|
156
156
|
itemsPerPage = 5,
|
|
157
157
|
basePath = "/releases",
|
|
158
|
-
buildCardProps =
|
|
158
|
+
buildCardProps = _chunkYG72MEHYcjs.buildProductReleaseCardProps,
|
|
159
159
|
searchParamKey = DEFAULT_SEARCH_PARAM_KEY,
|
|
160
160
|
statusParamKey = DEFAULT_STATUS_PARAM_KEY,
|
|
161
161
|
pageParamKey = DEFAULT_PAGE_PARAM_KEY,
|
|
@@ -177,11 +177,11 @@ function ProductReleasesView({
|
|
|
177
177
|
isLoading: fetching,
|
|
178
178
|
error,
|
|
179
179
|
reload
|
|
180
|
-
} =
|
|
180
|
+
} = _chunkQEFDGI3Zcjs.useSelfFetch.call(void 0, inScope ? null : `${endpoint}?${listParams.toString()}`, {
|
|
181
181
|
initialData
|
|
182
182
|
});
|
|
183
183
|
const isLoading = inScope || fetching;
|
|
184
|
-
|
|
184
|
+
_chunk2JO5HNEFcjs.usePageDataSync.call(void 0, _optionalChain([data, 'optionalAccess', _3 => _3.sync]), isLoading && !data);
|
|
185
185
|
const releases = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _4 => _4.data]), () => ( []));
|
|
186
186
|
const totalCount = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _5 => _5.count]), () => ( 0));
|
|
187
187
|
const totalPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, totalCount, itemsPerPage);
|
|
@@ -200,10 +200,10 @@ function ProductReleasesView({
|
|
|
200
200
|
router.replace(`${pathname}?${params.toString()}`, { scroll: false });
|
|
201
201
|
};
|
|
202
202
|
if (error) {
|
|
203
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "w-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
203
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk65VVJSQZcjs.cn.call(void 0, "w-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.LoadError, { message: "Failed to load releases.", onRetry: reload }) });
|
|
204
204
|
}
|
|
205
205
|
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,
|
|
206
|
-
|
|
206
|
+
_chunk2JO5HNEFcjs.ListEmptyState,
|
|
207
207
|
{
|
|
208
208
|
isFiltered: hasActiveFilters,
|
|
209
209
|
filtered: {
|
|
@@ -224,14 +224,14 @@ function ProductReleasesView({
|
|
|
224
224
|
style: { visibility: isLoading || hasData ? "visible" : "hidden" },
|
|
225
225
|
children: !isLoading && release ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReleaseRow, { release, basePath, buildCardProps }) : (
|
|
226
226
|
// Read, or a hidden slot past the page's last release: the card draws its own skeleton.
|
|
227
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
227
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQEFDGI3Zcjs.ProductReleaseCard, { loading: true, size: "lg", title: "", version: "", formattedDate: "" })
|
|
228
228
|
)
|
|
229
229
|
},
|
|
230
230
|
_nullishCoalesce(_optionalChain([release, 'optionalAccess', _6 => _6.id]), () => ( `slot-${i}`))
|
|
231
231
|
);
|
|
232
232
|
}) }),
|
|
233
233
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-6 flex justify-center content-md:mt-8", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
234
|
-
|
|
234
|
+
_chunkHUPDPANNcjs.UnifiedPagination,
|
|
235
235
|
{
|
|
236
236
|
loading: isLoading,
|
|
237
237
|
currentPage,
|
|
@@ -289,10 +289,10 @@ function MediaGalleryStrip({ items, className }) {
|
|
|
289
289
|
mediaItem.id || index
|
|
290
290
|
);
|
|
291
291
|
}
|
|
292
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: tileClass, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
292
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: tileClass, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOH5LAH3Xcjs.Video, { url: mediaItem.media_url, layout: "native" }) }, mediaItem.id || index);
|
|
293
293
|
}) }),
|
|
294
294
|
galleryImages.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
295
|
-
|
|
295
|
+
_chunkYG72MEHYcjs.ImageGalleryModal,
|
|
296
296
|
{
|
|
297
297
|
images: galleryImages,
|
|
298
298
|
isOpen: galleryOpen,
|
|
@@ -316,7 +316,7 @@ function MediaGalleryStripSkeleton({
|
|
|
316
316
|
var _lucidereact = require('lucide-react');
|
|
317
317
|
|
|
318
318
|
|
|
319
|
-
var DefaultMarkdownRenderer =
|
|
319
|
+
var DefaultMarkdownRenderer = _chunkUPAE4IV5cjs.RichMarkdownRenderer;
|
|
320
320
|
var CONTENT_STACK_CLASS = "space-y-6 content-md:space-y-8";
|
|
321
321
|
var RELEASE_TITLE_SKELETON_LINES = { phone: 7, md: 4, lg: 2 };
|
|
322
322
|
var METADATA_GRID_CLASS = "grid w-full grid-cols-1 overflow-hidden rounded-md border border-ods-border content-md:grid-cols-4";
|
|
@@ -365,14 +365,14 @@ function ReleaseDetailPage({
|
|
|
365
365
|
shell = true
|
|
366
366
|
}) {
|
|
367
367
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
368
|
-
const captions =
|
|
369
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
368
|
+
const captions = _chunkOWQVDWTKcjs.useCaptions.call(void 0, );
|
|
369
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
370
370
|
const seed = initialData == null ? void 0 : initialData;
|
|
371
371
|
const {
|
|
372
372
|
data: release,
|
|
373
373
|
isLoading,
|
|
374
374
|
error
|
|
375
|
-
} =
|
|
375
|
+
} = _chunkQEFDGI3Zcjs.useSelfFetch.call(void 0, slug ? `${endpoint}/${encodeURIComponent(slug)}` : null, {
|
|
376
376
|
initialData: seed
|
|
377
377
|
});
|
|
378
378
|
const showBackButton = backButton !== false;
|
|
@@ -472,7 +472,7 @@ function ReleaseDetailPage({
|
|
|
472
472
|
children: [
|
|
473
473
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTENT_STACK_CLASS, children: [
|
|
474
474
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
475
|
-
|
|
475
|
+
_chunkUPAE4IV5cjs.EntityTagBadges,
|
|
476
476
|
{
|
|
477
477
|
tags: view.product_release_tags,
|
|
478
478
|
max: RELEASE_TAG_ROW_MAX,
|
|
@@ -481,7 +481,7 @@ function ReleaseDetailPage({
|
|
|
481
481
|
),
|
|
482
482
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: METADATA_GRID_CLASS, children: [
|
|
483
483
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
484
|
-
|
|
484
|
+
_chunkYG72MEHYcjs.EntityMetadataValueCell,
|
|
485
485
|
{
|
|
486
486
|
value: releaseType,
|
|
487
487
|
label: RELEASE_TYPE_LABEL,
|
|
@@ -489,7 +489,7 @@ function ReleaseDetailPage({
|
|
|
489
489
|
}
|
|
490
490
|
),
|
|
491
491
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
492
|
-
|
|
492
|
+
_chunkYG72MEHYcjs.EntityMetadataValueCell,
|
|
493
493
|
{
|
|
494
494
|
value: releaseStatus,
|
|
495
495
|
label: RELEASE_STATUS_LABEL,
|
|
@@ -497,16 +497,16 @@ function ReleaseDetailPage({
|
|
|
497
497
|
}
|
|
498
498
|
),
|
|
499
499
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
500
|
-
|
|
500
|
+
_chunkYG72MEHYcjs.EntityMetadataValueCell,
|
|
501
501
|
{
|
|
502
|
-
value: releaseDate ?
|
|
502
|
+
value: releaseDate ? _chunkYG72MEHYcjs.formatReleaseDate.call(void 0, releaseDate) : "",
|
|
503
503
|
label: RELEASE_DATE_LABEL,
|
|
504
504
|
className: METADATA_CELL_EDGE_CLASS,
|
|
505
505
|
uppercase: false
|
|
506
506
|
}
|
|
507
507
|
),
|
|
508
508
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
509
|
-
|
|
509
|
+
_chunkYG72MEHYcjs.EntityMetadataAuthorCell,
|
|
510
510
|
{
|
|
511
511
|
author: _nullishCoalesce(author, () => ( { full_name: null, avatar_url: null })),
|
|
512
512
|
authorHref: _optionalChain([author, 'optionalAccess', _9 => _9.full_name]) ? authorHref : void 0
|
|
@@ -524,18 +524,18 @@ function ReleaseDetailPage({
|
|
|
524
524
|
highlightVideoThumbnail,
|
|
525
525
|
title: releaseTitle,
|
|
526
526
|
videoBites,
|
|
527
|
-
bitesTitle:
|
|
527
|
+
bitesTitle: _chunkOH5LAH3Xcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
528
528
|
filterPublishedBites: true,
|
|
529
|
-
bitesProfile:
|
|
529
|
+
bitesProfile: _chunkOH5LAH3Xcjs.toStripProfile.call(void 0, author),
|
|
530
530
|
bitesHref: typeof view.slug === "string" ? `/releases/${view.slug}` : void 0,
|
|
531
531
|
captionsUrl,
|
|
532
532
|
highlightCaptionsUrl
|
|
533
533
|
}
|
|
534
534
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
535
|
-
youtubeUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
536
|
-
!youtubeUrl && mainVideoUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
535
|
+
youtubeUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOH5LAH3Xcjs.Video, { kind: "youtube", url: youtubeUrl, title: `${releaseTitle} - Video`, layout: "native" }),
|
|
536
|
+
!youtubeUrl && mainVideoUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOH5LAH3Xcjs.Video, { url: mainVideoUrl, captionsUrl, layout: "centered" }),
|
|
537
537
|
highlightVideoUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
538
|
-
|
|
538
|
+
_chunkOH5LAH3Xcjs.Video,
|
|
539
539
|
{
|
|
540
540
|
url: highlightVideoUrl,
|
|
541
541
|
poster: highlightVideoThumbnail,
|
|
@@ -545,7 +545,7 @@ function ReleaseDetailPage({
|
|
|
545
545
|
)
|
|
546
546
|
] }) }),
|
|
547
547
|
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 }) }),
|
|
548
|
-
hasBreakingChanges && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
548
|
+
hasBreakingChanges && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOH5LAH3Xcjs.Card, { className: "border-ods-error bg-ods-error/10", "data-loading-optional": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOH5LAH3Xcjs.CardContent, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
549
549
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-6 w-6 text-ods-error" }),
|
|
550
550
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
551
551
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-ods-error text-h3", children: "Breaking Changes" }),
|
|
@@ -553,7 +553,7 @@ function ReleaseDetailPage({
|
|
|
553
553
|
] })
|
|
554
554
|
] }) }) }),
|
|
555
555
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
556
|
-
|
|
556
|
+
_chunkUPAE4IV5cjs.ReleaseChangelogSection,
|
|
557
557
|
{
|
|
558
558
|
title: "Breaking Changes",
|
|
559
559
|
entries: breakingChanges || [],
|
|
@@ -565,7 +565,7 @@ function ReleaseDetailPage({
|
|
|
565
565
|
}
|
|
566
566
|
),
|
|
567
567
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
568
|
-
|
|
568
|
+
_chunkUPAE4IV5cjs.ReleaseChangelogSection,
|
|
569
569
|
{
|
|
570
570
|
title: "Features Added",
|
|
571
571
|
entries: featuresAdded || [],
|
|
@@ -575,7 +575,7 @@ function ReleaseDetailPage({
|
|
|
575
575
|
}
|
|
576
576
|
),
|
|
577
577
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
578
|
-
|
|
578
|
+
_chunkUPAE4IV5cjs.ReleaseChangelogSection,
|
|
579
579
|
{
|
|
580
580
|
title: "Bugs Fixed",
|
|
581
581
|
entries: bugFixed || [],
|
|
@@ -585,7 +585,7 @@ function ReleaseDetailPage({
|
|
|
585
585
|
}
|
|
586
586
|
),
|
|
587
587
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
588
|
-
|
|
588
|
+
_chunkUPAE4IV5cjs.ReleaseChangelogSection,
|
|
589
589
|
{
|
|
590
590
|
title: "Improvements",
|
|
591
591
|
entries: improvements || [],
|
|
@@ -614,9 +614,9 @@ function ReleaseDetailPage({
|
|
|
614
614
|
return deliveryLoading ? (
|
|
615
615
|
// The loaded preview's frame, its height written into the markup (`fixedHeight`), so the tables'
|
|
616
616
|
// loading state takes the collapsed preview's place, toggle row included. Inert: nothing to open yet.
|
|
617
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { inert: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
617
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { inert: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.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 }) }) }) })
|
|
618
618
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
619
|
-
|
|
619
|
+
_chunkUPAE4IV5cjs.FadePreview,
|
|
620
620
|
{
|
|
621
621
|
hiddenCount: deliveryCount - 1,
|
|
622
622
|
collapsedHeight: DELIVERY_PREVIEW_HEIGHT,
|
|
@@ -628,7 +628,7 @@ function ReleaseDetailPage({
|
|
|
628
628
|
] }),
|
|
629
629
|
(_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: [
|
|
630
630
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "tracking-[-0.28px] text-ods-text-secondary text-h5", children: "Related Links" }),
|
|
631
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
631
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOH5LAH3Xcjs.Card, { className: "border-ods-border bg-ods-card p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
632
632
|
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: [
|
|
633
633
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEWCFJLNUcjs.GithubClassicIcon, { className: "shrink-0", size: 24, color: "var(--color-text-secondary)" }),
|
|
634
634
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children: "Github Release" }),
|
|
@@ -713,7 +713,7 @@ function RoadmapGridSkeleton({
|
|
|
713
713
|
showLeftMargin = true,
|
|
714
714
|
columns = 2
|
|
715
715
|
}) {
|
|
716
|
-
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,
|
|
716
|
+
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, _chunkYG72MEHYcjs.RoadmapCardSkeleton, {}) }, i)) });
|
|
717
717
|
}
|
|
718
718
|
|
|
719
719
|
// src/components/shared/roadmap/use-roadmap-voting.ts
|
|
@@ -736,7 +736,7 @@ function useRoadmapVoting(options = {}) {
|
|
|
736
736
|
const { getSignals } = _chunk5PK22JP7cjs.useHumanitySignals.call(void 0, );
|
|
737
737
|
const [votes, setVotes] = _react.useState.call(void 0, NO_VOTES);
|
|
738
738
|
const [loadedKey, setLoadedKey] = _react.useState.call(void 0, null);
|
|
739
|
-
const hydrated =
|
|
739
|
+
const hydrated = _chunkOWQVDWTKcjs.useIsHydrated.call(void 0, );
|
|
740
740
|
if (hydrated && loadedKey !== storageKey) {
|
|
741
741
|
setLoadedKey(storageKey);
|
|
742
742
|
setVotes(readStoredVotes(storageKey));
|
|
@@ -879,10 +879,10 @@ function RoadmapGridSingle({
|
|
|
879
879
|
// and scrolls.
|
|
880
880
|
// `data-loading-item`: how many items a quarter holds is read data (the loading-state gate measures it as a list).
|
|
881
881
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
882
|
-
|
|
882
|
+
_chunkYG72MEHYcjs.RoadmapCard,
|
|
883
883
|
{
|
|
884
884
|
item,
|
|
885
|
-
id:
|
|
885
|
+
id: _chunkYWQ3VXPLcjs.devSectionAnchorId.call(void 0, "roadmap", item.id),
|
|
886
886
|
userVote: getVote(item.id),
|
|
887
887
|
onVote: (voteType) => onVote(item.id, voteType),
|
|
888
888
|
isVoting: votingTasks.has(item.id)
|
|
@@ -997,7 +997,7 @@ function RoadmapGrid({
|
|
|
997
997
|
}
|
|
998
998
|
if (items.length === 0) {
|
|
999
999
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1000
|
-
|
|
1000
|
+
_chunkHUPDPANNcjs.EmptyState,
|
|
1001
1001
|
{
|
|
1002
1002
|
type: "generic",
|
|
1003
1003
|
title: "No roadmap items",
|
|
@@ -1019,7 +1019,7 @@ function RoadmapGrid({
|
|
|
1019
1019
|
);
|
|
1020
1020
|
}
|
|
1021
1021
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1022
|
-
|
|
1022
|
+
_chunkUPAE4IV5cjs.Accordion,
|
|
1023
1023
|
{
|
|
1024
1024
|
type: "multiple",
|
|
1025
1025
|
value: expandedQuarters,
|
|
@@ -1029,14 +1029,14 @@ function RoadmapGrid({
|
|
|
1029
1029
|
const itemCount = _optionalChain([itemsByQuarter, 'access', _20 => _20[quarter], 'optionalAccess', _21 => _21.length]) || 0;
|
|
1030
1030
|
const isExpanded = expandedQuarters.includes(quarter);
|
|
1031
1031
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1032
|
-
|
|
1032
|
+
_chunkUPAE4IV5cjs.AccordionItem,
|
|
1033
1033
|
{
|
|
1034
1034
|
value: quarter,
|
|
1035
1035
|
id: `quarter-${quarter.replace(/\s+/g, "-").toLowerCase()}`,
|
|
1036
1036
|
className: "border-0",
|
|
1037
1037
|
"data-loading-item": true,
|
|
1038
1038
|
children: [
|
|
1039
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1039
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.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: [
|
|
1040
1040
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1041
1041
|
"h3",
|
|
1042
1042
|
{
|
|
@@ -1066,7 +1066,7 @@ function RoadmapGrid({
|
|
|
1066
1066
|
}
|
|
1067
1067
|
)
|
|
1068
1068
|
] }) }),
|
|
1069
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1069
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.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,
|
|
1070
1070
|
RoadmapGridSingle,
|
|
1071
1071
|
{
|
|
1072
1072
|
items: itemsByQuarter[quarter],
|
|
@@ -1091,8 +1091,8 @@ function RoadmapGrid({
|
|
|
1091
1091
|
|
|
1092
1092
|
var DEFAULT_ENDPOINT3 = "/api/roadmap";
|
|
1093
1093
|
var SYNCED_LIST_CLASS = "flex w-full flex-col gap-[var(--spacing-system-lf)]";
|
|
1094
|
-
var DEFAULT_SEARCH_PARAM_KEY2 =
|
|
1095
|
-
var DEFAULT_STATUS_PARAM_KEY2 =
|
|
1094
|
+
var DEFAULT_SEARCH_PARAM_KEY2 = _chunkYWQ3VXPLcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
1095
|
+
var DEFAULT_STATUS_PARAM_KEY2 = _chunkYWQ3VXPLcjs.DEV_SECTION_PARAM_KEYS.status;
|
|
1096
1096
|
function RoadmapView({
|
|
1097
1097
|
endpoint = DEFAULT_ENDPOINT3,
|
|
1098
1098
|
initialItems,
|
|
@@ -1111,23 +1111,23 @@ function RoadmapView({
|
|
|
1111
1111
|
const qs = listParams.toString();
|
|
1112
1112
|
const url = qs ? `${endpoint}?${qs}` : endpoint;
|
|
1113
1113
|
const initialData = _react.useMemo.call(void 0, () => initialItems ? { items: initialItems } : void 0, [initialItems]);
|
|
1114
|
-
const { data, setData, isLoading, error, reload } =
|
|
1114
|
+
const { data, setData, isLoading, error, reload } = _chunkQEFDGI3Zcjs.useSelfFetch.call(void 0, url, {
|
|
1115
1115
|
initialData
|
|
1116
1116
|
});
|
|
1117
1117
|
const items = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _22 => _22.items]), () => ( []));
|
|
1118
1118
|
_chunk5PK22JP7cjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkOJZBZH56cjs.STICKY_HEADER_OFFSET_PX });
|
|
1119
|
-
const syncInPage =
|
|
1119
|
+
const syncInPage = _chunk2JO5HNEFcjs.usePageDataSync.call(void 0, _optionalChain([data, 'optionalAccess', _23 => _23.sync]), isLoading && !data);
|
|
1120
1120
|
if (error) {
|
|
1121
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1121
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.LoadError, { message: "Failed to load roadmap.", onRetry: reload });
|
|
1122
1122
|
}
|
|
1123
1123
|
if (isLoading && !data) {
|
|
1124
1124
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SYNCED_LIST_CLASS, children: [
|
|
1125
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1125
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.DataSyncLine, { loading: true }),
|
|
1126
1126
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoadmapGridQuarterSkeleton, { showLeftMargin })
|
|
1127
1127
|
] });
|
|
1128
1128
|
}
|
|
1129
1129
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SYNCED_LIST_CLASS, children: [
|
|
1130
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1130
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.DataSyncLine, { sync: _optionalChain([data, 'optionalAccess', _24 => _24.sync]) }),
|
|
1131
1131
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1132
1132
|
RoadmapGrid,
|
|
1133
1133
|
{
|
|
@@ -1147,11 +1147,11 @@ function RoadmapView({
|
|
|
1147
1147
|
|
|
1148
1148
|
// src/components/shared/delivery/delivery-table.tsx
|
|
1149
1149
|
|
|
1150
|
-
var TABLE_FRAME_CLASS = `w-full ${
|
|
1150
|
+
var TABLE_FRAME_CLASS = `w-full ${_chunkOH5LAH3Xcjs.CONTENT_CARD_SKELETON_FRAME_CLASS}`;
|
|
1151
1151
|
var ROW_SEPARATOR_CLASS = "border-b border-ods-border last:border-b-0";
|
|
1152
1152
|
var DELIVERY_TABLE_SKELETON_ROWS = 5;
|
|
1153
1153
|
function DeliveryTableSkeleton() {
|
|
1154
|
-
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,
|
|
1154
|
+
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, _chunk2JO5HNEFcjs.DeliveryRowSkeleton, {}) }, i)) }) });
|
|
1155
1155
|
}
|
|
1156
1156
|
function DeliveryTable({ items, isLoading = false }) {
|
|
1157
1157
|
if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeliveryTableSkeleton, {});
|
|
@@ -1164,7 +1164,7 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1164
1164
|
// → `#delivery-<external_id>`; `useScrollToHash` in
|
|
1165
1165
|
// `delivery-lists.tsx` finds the row by id and scrolls. The
|
|
1166
1166
|
// outer wrapper here ONLY exists for the row separators.
|
|
1167
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1167
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2JO5HNEFcjs.DeliveryRow, { item, id: _chunkYWQ3VXPLcjs.devSectionAnchorId.call(void 0, "delivery", item.id) }) }, item.id)
|
|
1168
1168
|
)) }) });
|
|
1169
1169
|
}
|
|
1170
1170
|
|
|
@@ -1173,8 +1173,8 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1173
1173
|
|
|
1174
1174
|
var DEFAULT_COMPLETED_ENDPOINT = "/api/delivery/completed";
|
|
1175
1175
|
var DEFAULT_IN_PROGRESS_ENDPOINT = "/api/delivery/in-progress";
|
|
1176
|
-
var DEFAULT_SEARCH_PARAM_KEY3 =
|
|
1177
|
-
var DEFAULT_TASK_TYPE_PARAM_KEY =
|
|
1176
|
+
var DEFAULT_SEARCH_PARAM_KEY3 = _chunkYWQ3VXPLcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
1177
|
+
var DEFAULT_TASK_TYPE_PARAM_KEY = _chunkYWQ3VXPLcjs.DEV_SECTION_PARAM_KEYS.deliveryTaskType;
|
|
1178
1178
|
function DeliveryLists({
|
|
1179
1179
|
completedApiEndpoint = DEFAULT_COMPLETED_ENDPOINT,
|
|
1180
1180
|
inProgressApiEndpoint = DEFAULT_IN_PROGRESS_ENDPOINT,
|
|
@@ -1249,18 +1249,18 @@ function DeliveryLists({
|
|
|
1249
1249
|
const filteredCompleted = _optionalChain([data, 'optionalAccess', _25 => _25.completed]) || [];
|
|
1250
1250
|
const filteredInProgress = _optionalChain([data, 'optionalAccess', _26 => _26.inProgress]) || [];
|
|
1251
1251
|
_chunk5PK22JP7cjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkOJZBZH56cjs.STICKY_HEADER_OFFSET_PX });
|
|
1252
|
-
const syncInPage =
|
|
1252
|
+
const syncInPage = _chunk2JO5HNEFcjs.usePageDataSync.call(void 0, sync, isLoading && !data);
|
|
1253
1253
|
const showCompleted = true;
|
|
1254
1254
|
const showInProgress = true;
|
|
1255
1255
|
const hasActiveFilters = searchQuery !== "" || taskTypeFilter !== "all";
|
|
1256
1256
|
const hasResults = showCompleted && filteredCompleted.length > 0 || showInProgress && filteredInProgress.length > 0;
|
|
1257
1257
|
if (error) {
|
|
1258
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1258
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.LoadError, { message: error, onRetry: () => window.location.reload() }) });
|
|
1259
1259
|
}
|
|
1260
1260
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[40px]", children: [
|
|
1261
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1261
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.DataSyncLine, { sync, loading: isLoading && !data }),
|
|
1262
1262
|
!isLoading && !hasResults && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1263
|
-
|
|
1263
|
+
_chunk2JO5HNEFcjs.ListEmptyState,
|
|
1264
1264
|
{
|
|
1265
1265
|
isFiltered: hasActiveFilters,
|
|
1266
1266
|
filtered: {
|
|
@@ -1485,7 +1485,7 @@ function legalDocumentStampLabel(doc) {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
var LEGAL_DOCUMENT_SKELETON_SECTIONS = 3;
|
|
1487
1487
|
function LegalDocumentSkeleton({ sections = LEGAL_DOCUMENT_SKELETON_SECTIONS }) {
|
|
1488
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading the document", className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1488
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { label: "Loading the document", className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.RichMarkdownRendererSkeleton, { title: true, sections }) });
|
|
1489
1489
|
}
|
|
1490
1490
|
function LegalDocumentPage({
|
|
1491
1491
|
docType,
|
|
@@ -1497,7 +1497,7 @@ function LegalDocumentPage({
|
|
|
1497
1497
|
emptyStateMessage: emptyStateMessageProp,
|
|
1498
1498
|
initialData = null,
|
|
1499
1499
|
apiEndpoint,
|
|
1500
|
-
MarkdownRenderer =
|
|
1500
|
+
MarkdownRenderer = _chunkUPAE4IV5cjs.RichMarkdownRenderer,
|
|
1501
1501
|
documentsEndpoint,
|
|
1502
1502
|
backButton,
|
|
1503
1503
|
faq,
|
|
@@ -1528,7 +1528,7 @@ function LegalDocumentPage({
|
|
|
1528
1528
|
titleSize: "h1",
|
|
1529
1529
|
titleWrap: true,
|
|
1530
1530
|
children: [
|
|
1531
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1531
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.DataSyncLine, { sync: data ? { source: "github", syncedAt: data.lastSynced } : null, loading: isLoading }),
|
|
1532
1532
|
/* @__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: [
|
|
1533
1533
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rounded-lg border border-ods-error bg-ods-error-secondary p-6", children: [
|
|
1534
1534
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "mb-2 text-ods-error", children: errorTitle }),
|
|
@@ -1548,11 +1548,11 @@ function LegalDocumentPage({
|
|
|
1548
1548
|
"for more information."
|
|
1549
1549
|
] })
|
|
1550
1550
|
] }) }) }) }) }),
|
|
1551
|
-
faqSlot && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1551
|
+
faqSlot && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZGWS3NJRcjs.FaqSection, { ..._chunkZGWS3NJRcjs.pageFaqProps.call(void 0, faqSlot) })
|
|
1552
1552
|
]
|
|
1553
1553
|
}
|
|
1554
1554
|
);
|
|
1555
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1555
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
1556
1556
|
}
|
|
1557
1557
|
|
|
1558
1558
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkMLX6Z7TUcjs = require('./chunk-MLX6Z7TU.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -184,14 +184,14 @@ function UnifiedPagination({
|
|
|
184
184
|
}, 0);
|
|
185
185
|
};
|
|
186
186
|
if (loading) {
|
|
187
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
187
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMLX6Z7TUcjs.Pagination, { loading: true, currentPage, totalPages, onPageChange: handlePageChange }) });
|
|
188
188
|
}
|
|
189
189
|
if (totalPages <= 1) {
|
|
190
|
-
return reserveSpace ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none invisible", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
190
|
+
return reserveSpace ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none invisible", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMLX6Z7TUcjs.Pagination, { currentPage: 1, totalPages: 1, onPageChange: () => {
|
|
191
191
|
} }) }) }) : null;
|
|
192
192
|
}
|
|
193
193
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
194
|
-
|
|
194
|
+
_chunkMLX6Z7TUcjs.Pagination,
|
|
195
195
|
{
|
|
196
196
|
currentPage,
|
|
197
197
|
totalPages,
|