@flamingo-stack/openframe-frontend-core 0.0.794 → 0.0.796
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-FYHXMHY6.cjs → chunk-6JCTKXHX.cjs} +13 -13
- package/dist/{chunk-HXL7AUPG.cjs → chunk-6WXP5IKR.cjs} +16 -16
- package/dist/{chunk-6VP5UWZG.cjs → chunk-7SEY3FDF.cjs} +2 -2
- package/dist/{chunk-BFCGOHQG.cjs → chunk-7VU4HHUR.cjs} +32 -32
- package/dist/{chunk-43ZVXQJK.cjs → chunk-CC7NRWRF.cjs} +48 -48
- package/dist/{chunk-72NE4G63.cjs → chunk-CFXCCQ6T.cjs} +2 -2
- package/dist/{chunk-RPC4P7GY.cjs → chunk-F64GLU75.cjs} +33 -33
- package/dist/{chunk-PQIWR4Q2.cjs → chunk-G24OX7AC.cjs} +16 -16
- package/dist/{chunk-7VXMO4XJ.cjs → chunk-GP7NV6BK.cjs} +3 -1
- package/dist/{chunk-6TUI5KQS.cjs → chunk-II4A2RUG.cjs} +41 -41
- package/dist/{chunk-ZCMXBX4Z.cjs → chunk-IONS6HDF.cjs} +5 -5
- package/dist/{chunk-UAZTXYPC.cjs → chunk-JC43ULIC.cjs} +107 -78
- package/dist/{chunk-FYPVCCCV.cjs → chunk-JGURZROB.cjs} +27 -27
- package/dist/{chunk-FOWQ4XTB.cjs → chunk-N3J4U7ML.cjs} +2 -2
- package/dist/{chunk-IJ23KNYI.cjs → chunk-NAJ24ODA.cjs} +4 -4
- package/dist/{chunk-F73DM65J.cjs → chunk-NRAH3M66.cjs} +46 -46
- package/dist/{chunk-3XAFK4WH.cjs → chunk-OKAHKZP2.cjs} +8 -8
- package/dist/{chunk-2KLYMAHF.cjs → chunk-PALMLL5T.cjs} +4 -4
- package/dist/{chunk-CLEZ6TWZ.cjs → chunk-QCN46LDL.cjs} +69 -69
- package/dist/{chunk-YPKAMHYA.cjs → chunk-QMDXG3VF.cjs} +574 -457
- package/dist/{chunk-BIYLAAFI.cjs → chunk-TUD7BV6O.cjs} +9 -9
- package/dist/{chunk-OK467OQJ.cjs → chunk-UYOGZJPE.cjs} +4 -4
- package/dist/{chunk-IQTVKPRG.cjs → chunk-VUP7ZGZS.cjs} +20 -20
- package/dist/{chunk-YYKXX5NA.cjs → chunk-VYXNGADV.cjs} +24 -24
- package/dist/{chunk-A6E5ZNQR.cjs → chunk-W4QITOT7.cjs} +5 -5
- package/dist/{chunk-NGGEYE5R.cjs → chunk-XFJ7BZDJ.cjs} +5 -5
- package/dist/{chunk-U4D4ABXK.cjs → chunk-XVVQJXOA.cjs} +39 -39
- package/dist/{chunk-QDW64E6T.cjs → chunk-Y3IMXLLL.cjs} +143 -143
- package/dist/{chunk-NIW4ETGC.cjs → chunk-YFHKBIZT.cjs} +6 -6
- package/dist/{chunk-KQPU5N7T.cjs → chunk-ZMWSN2BD.cjs} +11 -11
- package/dist/{chunk-ZIMPE7D5.cjs → chunk-ZRME3A2D.cjs} +3 -3
- package/dist/{cloud-tenants-Z3AYAXF5.cjs → cloud-tenants-BQUWLMYY.cjs} +12 -12
- package/dist/components/case-studies/index.cjs +26 -26
- package/dist/components/chat/index.cjs +9 -9
- package/dist/components/contact/index.cjs +13 -13
- package/dist/components/docs/index.cjs +16 -16
- package/dist/components/embeds/index.cjs +13 -13
- package/dist/components/faq/index.cjs +14 -14
- package/dist/components/features/index.cjs +12 -12
- package/dist/components/help-center-pages/index.cjs +98 -98
- package/dist/components/index.cjs +82 -68
- package/dist/components/meeting-scheduler/index.cjs +72 -72
- package/dist/components/navigation/index.cjs +15 -15
- package/dist/components/onboarding-guides/index.cjs +15 -15
- package/dist/components/product-demo/index.cjs +23 -23
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/shared/roadmap/roadmap-grid.d.ts +6 -1
- package/dist/components/shared/roadmap/roadmap-grid.d.ts.map +1 -1
- package/dist/components/shared/roadmap/roadmap-grid.js +37 -8
- package/dist/components/tickets/index.cjs +19 -19
- package/dist/components/ui/floating-tooltip.d.ts.map +1 -1
- package/dist/components/ui/floating-tooltip.js +3 -1
- package/dist/components/ui/index.cjs +26 -12
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +9 -1
- package/dist/components/ui/trendline.d.ts +60 -0
- package/dist/components/ui/trendline.d.ts.map +1 -0
- package/dist/components/ui/trendline.js +121 -0
- package/dist/{devices-P6XQL23S.cjs → devices-BFQOLI3D.cjs} +13 -13
- package/dist/{embeddable-chat-6BNLOSBB.cjs → embeddable-chat-INYF23ST.cjs} +74 -74
- package/dist/index.cjs +31 -17
- package/dist/{knowledge-IU5ORU7U.cjs → knowledge-GGYWTYTP.cjs} +13 -13
- package/dist/{logs-DCFTQVKA.cjs → logs-NO55PTIO.cjs} +20 -20
- package/dist/{policies-ESC6XCVH.cjs → policies-AAFYTVOJ.cjs} +16 -16
- package/dist/{remote-session-4ZNTOLOQ.cjs → remote-session-2CNWLF3P.cjs} +7 -7
- package/dist/{scripts-24PIP2VO.cjs → scripts-H4ECJ65X.cjs} +19 -19
- package/dist/{software-update-47GDTKMI.cjs → software-update-NEEGQBK3.cjs} +16 -16
- package/dist/{tickets-board-X4GHEKPB.cjs → tickets-board-CXYRAMDL.cjs} +8 -8
- package/package.json +1 -1
- package/src/components/shared/roadmap/roadmap-grid.tsx +38 -9
- package/src/components/ui/floating-tooltip.tsx +4 -1
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/trendline.tsx +221 -0
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkVUP7ZGZScjs = require('./chunk-VUP7ZGZS.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkPALMLL5Tcjs = require('./chunk-PALMLL5T.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk6JCTKXHXcjs = require('./chunk-6JCTKXHX.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -24,10 +24,10 @@ var _chunkFYHXMHY6cjs = require('./chunk-FYHXMHY6.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkQMDXG3VFcjs = require('./chunk-QMDXG3VF.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkF64GLU75cjs = require('./chunk-F64GLU75.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -36,14 +36,14 @@ var _chunkCWA6J7KCcjs = require('./chunk-CWA6J7KC.cjs');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkNRAH3M66cjs = require('./chunk-NRAH3M66.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _chunkY3IMXLLLcjs = require('./chunk-Y3IMXLLL.cjs');
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
var _chunkEWCFJLNUcjs = require('./chunk-EWCFJLNU.cjs');
|
|
@@ -57,7 +57,7 @@ var _chunkOJZBZH56cjs = require('./chunk-OJZBZH56.cjs');
|
|
|
57
57
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var _chunkOKAHKZP2cjs = require('./chunk-OKAHKZP2.cjs');
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
|
|
@@ -67,7 +67,7 @@ var _chunk3XAFK4WHcjs = require('./chunk-3XAFK4WH.cjs');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkJGURZROBcjs = require('./chunk-JGURZROB.cjs');
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
@@ -114,8 +114,8 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
114
114
|
var DEFAULT_ENDPOINT = "/api/releases";
|
|
115
115
|
var PRODUCT_RELEASES_PAGE_SIZE = 5;
|
|
116
116
|
var PAGER_ROW_CLASS = "flex w-full justify-center";
|
|
117
|
-
var DEFAULT_SEARCH_PARAM_KEY =
|
|
118
|
-
var DEFAULT_STATUS_PARAM_KEY =
|
|
117
|
+
var DEFAULT_SEARCH_PARAM_KEY = _chunkNRAH3M66cjs.DEV_SECTION_PARAM_KEYS.search;
|
|
118
|
+
var DEFAULT_STATUS_PARAM_KEY = _chunkNRAH3M66cjs.DEV_SECTION_PARAM_KEYS.releaseStatus;
|
|
119
119
|
var DEFAULT_PAGE_PARAM_KEY = "page";
|
|
120
120
|
function ReleaseRow({
|
|
121
121
|
release,
|
|
@@ -124,7 +124,7 @@ function ReleaseRow({
|
|
|
124
124
|
}) {
|
|
125
125
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
126
126
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
127
|
-
const cta =
|
|
127
|
+
const cta = _chunkNRAH3M66cjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _2 => _2.composeContentUrl]), {
|
|
128
128
|
type: "product_release",
|
|
129
129
|
slug: release.slug,
|
|
130
130
|
basePath,
|
|
@@ -132,9 +132,9 @@ function ReleaseRow({
|
|
|
132
132
|
});
|
|
133
133
|
const { target, rel } = _chunkUN6LC5PKcjs.useEntityCardLink.call(void 0, { href: cta.href, targetPlatform: cta.targetPlatform });
|
|
134
134
|
const onClick = (e) => {
|
|
135
|
-
if (e.defaultPrevented ||
|
|
135
|
+
if (e.defaultPrevented || _chunkJGURZROBcjs.isModifierClick.call(void 0, e) || target === "_blank") return;
|
|
136
136
|
e.preventDefault();
|
|
137
|
-
|
|
137
|
+
_chunkY3IMXLLLcjs.executeNavigationImperative.call(void 0, {
|
|
138
138
|
runtime,
|
|
139
139
|
href: cta.href,
|
|
140
140
|
targetPlatform: cta.targetPlatform,
|
|
@@ -142,7 +142,7 @@ function ReleaseRow({
|
|
|
142
142
|
});
|
|
143
143
|
};
|
|
144
144
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
145
|
-
|
|
145
|
+
_chunkJGURZROBcjs.ProductReleaseCard,
|
|
146
146
|
{
|
|
147
147
|
size: "lg",
|
|
148
148
|
title: release.title,
|
|
@@ -158,7 +158,7 @@ function ProductReleasesView({
|
|
|
158
158
|
initialData,
|
|
159
159
|
itemsPerPage = PRODUCT_RELEASES_PAGE_SIZE,
|
|
160
160
|
basePath = "/releases",
|
|
161
|
-
buildCardProps =
|
|
161
|
+
buildCardProps = _chunkJGURZROBcjs.buildProductReleaseCardProps,
|
|
162
162
|
searchParamKey = DEFAULT_SEARCH_PARAM_KEY,
|
|
163
163
|
statusParamKey = DEFAULT_STATUS_PARAM_KEY,
|
|
164
164
|
pageParamKey = DEFAULT_PAGE_PARAM_KEY,
|
|
@@ -180,11 +180,11 @@ function ProductReleasesView({
|
|
|
180
180
|
isLoading: fetching,
|
|
181
181
|
error,
|
|
182
182
|
reload
|
|
183
|
-
} =
|
|
183
|
+
} = _chunkOKAHKZP2cjs.useSelfFetch.call(void 0, inScope ? null : `${endpoint}?${listParams.toString()}`, {
|
|
184
184
|
initialData
|
|
185
185
|
});
|
|
186
186
|
const isLoading = inScope || fetching;
|
|
187
|
-
|
|
187
|
+
_chunkVUP7ZGZScjs.usePageDataSync.call(void 0, _optionalChain([data, 'optionalAccess', _3 => _3.sync]), isLoading && !data);
|
|
188
188
|
const releases = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _4 => _4.data]), () => ( []));
|
|
189
189
|
const totalCount = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _5 => _5.count]), () => ( 0));
|
|
190
190
|
const totalPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, totalCount, itemsPerPage);
|
|
@@ -203,10 +203,10 @@ function ProductReleasesView({
|
|
|
203
203
|
router.replace(`${pathname}?${params.toString()}`, { scroll: false });
|
|
204
204
|
};
|
|
205
205
|
if (error) {
|
|
206
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "w-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
206
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "w-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.LoadError, { message: "Failed to load releases.", onRetry: reload }) });
|
|
207
207
|
}
|
|
208
208
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.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,
|
|
209
|
-
|
|
209
|
+
_chunkVUP7ZGZScjs.ListEmptyState,
|
|
210
210
|
{
|
|
211
211
|
isFiltered: hasActiveFilters,
|
|
212
212
|
filtered: {
|
|
@@ -227,13 +227,13 @@ function ProductReleasesView({
|
|
|
227
227
|
style: { visibility: isLoading || release ? "visible" : "hidden" },
|
|
228
228
|
children: !isLoading && release ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReleaseRow, { release, basePath, buildCardProps }) : (
|
|
229
229
|
// Read, or a hidden slot past the page's last release: the card draws its own skeleton.
|
|
230
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
230
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGURZROBcjs.ProductReleaseCard, { loading: true, size: "lg", title: "", version: "", formattedDate: "" })
|
|
231
231
|
)
|
|
232
232
|
}
|
|
233
233
|
);
|
|
234
234
|
} }) }),
|
|
235
235
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-6 flex justify-center content-md:mt-8", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
236
|
-
|
|
236
|
+
_chunkPALMLL5Tcjs.UnifiedPagination,
|
|
237
237
|
{
|
|
238
238
|
loading: isLoading,
|
|
239
239
|
currentPage,
|
|
@@ -298,7 +298,7 @@ function MediaGalleryStrip({ items, className }) {
|
|
|
298
298
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: tileClass, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6LC5PKcjs.Video, { url: mediaItem.media_url, layout: "native" }) }, mediaItem.id || index);
|
|
299
299
|
}) }),
|
|
300
300
|
galleryImages.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
301
|
-
|
|
301
|
+
_chunkJGURZROBcjs.ImageGalleryModal,
|
|
302
302
|
{
|
|
303
303
|
images: galleryImages,
|
|
304
304
|
isOpen: galleryOpen,
|
|
@@ -319,7 +319,7 @@ function MediaGalleryStripSkeleton({
|
|
|
319
319
|
var _lucidereact = require('lucide-react');
|
|
320
320
|
|
|
321
321
|
|
|
322
|
-
var DefaultMarkdownRenderer =
|
|
322
|
+
var DefaultMarkdownRenderer = _chunkQMDXG3VFcjs.RichMarkdownRenderer;
|
|
323
323
|
var CONTENT_STACK_CLASS = "space-y-6 content-md:space-y-8";
|
|
324
324
|
var RELEASE_TITLE_SKELETON_LINES = { phone: 7, md: 4, lg: 2 };
|
|
325
325
|
var METADATA_GRID_CLASS = "grid w-full grid-cols-1 overflow-hidden rounded-md border border-ods-border content-md:grid-cols-4";
|
|
@@ -368,14 +368,14 @@ function ReleaseDetailPage({
|
|
|
368
368
|
shell = true
|
|
369
369
|
}) {
|
|
370
370
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
371
|
-
const captions =
|
|
372
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
371
|
+
const captions = _chunkY3IMXLLLcjs.useCaptions.call(void 0, );
|
|
372
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
373
373
|
const seed = initialData == null ? void 0 : initialData;
|
|
374
374
|
const {
|
|
375
375
|
data: release,
|
|
376
376
|
isLoading,
|
|
377
377
|
error
|
|
378
|
-
} =
|
|
378
|
+
} = _chunkOKAHKZP2cjs.useSelfFetch.call(void 0, slug ? `${endpoint}/${encodeURIComponent(slug)}` : null, {
|
|
379
379
|
initialData: seed
|
|
380
380
|
});
|
|
381
381
|
const showBackButton = backButton !== false;
|
|
@@ -462,7 +462,7 @@ function ReleaseDetailPage({
|
|
|
462
462
|
const bugFixed = view.bugs_fixed;
|
|
463
463
|
const improvements = view.improvements;
|
|
464
464
|
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
465
|
-
|
|
465
|
+
_chunkF64GLU75cjs.PageLayout,
|
|
466
466
|
{
|
|
467
467
|
title: releaseTitle,
|
|
468
468
|
subtitle: loading ? void 0 : `Version: ${releaseVersion}`,
|
|
@@ -475,7 +475,7 @@ function ReleaseDetailPage({
|
|
|
475
475
|
children: [
|
|
476
476
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTENT_STACK_CLASS, children: [
|
|
477
477
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
478
|
-
|
|
478
|
+
_chunkQMDXG3VFcjs.EntityTagBadges,
|
|
479
479
|
{
|
|
480
480
|
tags: view.product_release_tags,
|
|
481
481
|
max: RELEASE_TAG_ROW_MAX,
|
|
@@ -484,7 +484,7 @@ function ReleaseDetailPage({
|
|
|
484
484
|
),
|
|
485
485
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: METADATA_GRID_CLASS, children: [
|
|
486
486
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
487
|
-
|
|
487
|
+
_chunkJGURZROBcjs.EntityMetadataValueCell,
|
|
488
488
|
{
|
|
489
489
|
value: releaseType,
|
|
490
490
|
label: RELEASE_TYPE_LABEL,
|
|
@@ -492,7 +492,7 @@ function ReleaseDetailPage({
|
|
|
492
492
|
}
|
|
493
493
|
),
|
|
494
494
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
495
|
-
|
|
495
|
+
_chunkJGURZROBcjs.EntityMetadataValueCell,
|
|
496
496
|
{
|
|
497
497
|
value: releaseStatus,
|
|
498
498
|
label: RELEASE_STATUS_LABEL,
|
|
@@ -500,16 +500,16 @@ function ReleaseDetailPage({
|
|
|
500
500
|
}
|
|
501
501
|
),
|
|
502
502
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
503
|
-
|
|
503
|
+
_chunkJGURZROBcjs.EntityMetadataValueCell,
|
|
504
504
|
{
|
|
505
|
-
value: releaseDate ?
|
|
505
|
+
value: releaseDate ? _chunkJGURZROBcjs.formatReleaseDate.call(void 0, releaseDate) : "",
|
|
506
506
|
label: RELEASE_DATE_LABEL,
|
|
507
507
|
className: METADATA_CELL_EDGE_CLASS,
|
|
508
508
|
uppercase: false
|
|
509
509
|
}
|
|
510
510
|
),
|
|
511
511
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
512
|
-
|
|
512
|
+
_chunkJGURZROBcjs.EntityMetadataAuthorCell,
|
|
513
513
|
{
|
|
514
514
|
author: _nullishCoalesce(author, () => ( { full_name: null, avatar_url: null })),
|
|
515
515
|
authorHref: _optionalChain([author, 'optionalAccess', _8 => _8.full_name]) ? authorHref : void 0
|
|
@@ -556,7 +556,7 @@ function ReleaseDetailPage({
|
|
|
556
556
|
] })
|
|
557
557
|
] }) }) }),
|
|
558
558
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
559
|
-
|
|
559
|
+
_chunkQMDXG3VFcjs.ReleaseChangelogSection,
|
|
560
560
|
{
|
|
561
561
|
title: "Breaking Changes",
|
|
562
562
|
entries: breakingChanges || [],
|
|
@@ -568,7 +568,7 @@ function ReleaseDetailPage({
|
|
|
568
568
|
}
|
|
569
569
|
),
|
|
570
570
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
571
|
-
|
|
571
|
+
_chunkQMDXG3VFcjs.ReleaseChangelogSection,
|
|
572
572
|
{
|
|
573
573
|
title: "Features Added",
|
|
574
574
|
entries: featuresAdded || [],
|
|
@@ -578,7 +578,7 @@ function ReleaseDetailPage({
|
|
|
578
578
|
}
|
|
579
579
|
),
|
|
580
580
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
581
|
-
|
|
581
|
+
_chunkQMDXG3VFcjs.ReleaseChangelogSection,
|
|
582
582
|
{
|
|
583
583
|
title: "Bugs Fixed",
|
|
584
584
|
entries: bugFixed || [],
|
|
@@ -588,7 +588,7 @@ function ReleaseDetailPage({
|
|
|
588
588
|
}
|
|
589
589
|
),
|
|
590
590
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
591
|
-
|
|
591
|
+
_chunkQMDXG3VFcjs.ReleaseChangelogSection,
|
|
592
592
|
{
|
|
593
593
|
title: "Improvements",
|
|
594
594
|
entries: improvements || [],
|
|
@@ -617,9 +617,9 @@ function ReleaseDetailPage({
|
|
|
617
617
|
return deliveryLoading ? (
|
|
618
618
|
// The loaded preview's frame, its height written into the markup (`fixedHeight`), so the tables'
|
|
619
619
|
// loading state takes the collapsed preview's place, toggle row included. Inert: nothing to open yet.
|
|
620
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { inert: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
620
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { inert: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.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 }) }) }) })
|
|
621
621
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
622
|
-
|
|
622
|
+
_chunkQMDXG3VFcjs.FadePreview,
|
|
623
623
|
{
|
|
624
624
|
hiddenCount: deliveryCount - 1,
|
|
625
625
|
collapsedHeight: DELIVERY_PREVIEW_HEIGHT,
|
|
@@ -699,7 +699,7 @@ function ReleaseDetailPage({
|
|
|
699
699
|
]
|
|
700
700
|
}
|
|
701
701
|
);
|
|
702
|
-
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
702
|
+
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3IMXLLLcjs.LoadingFallback, { label: "Loading the release", children: page }) : page);
|
|
703
703
|
}
|
|
704
704
|
|
|
705
705
|
// src/components/shared/roadmap/use-roadmap-voting.ts
|
|
@@ -722,7 +722,7 @@ function useRoadmapVoting(options = {}) {
|
|
|
722
722
|
const { getSignals } = _chunkCWA6J7KCcjs.useHumanitySignals.call(void 0, );
|
|
723
723
|
const [votes, setVotes] = _react.useState.call(void 0, NO_VOTES);
|
|
724
724
|
const [loadedKey, setLoadedKey] = _react.useState.call(void 0, null);
|
|
725
|
-
const hydrated =
|
|
725
|
+
const hydrated = _chunkY3IMXLLLcjs.useIsHydrated.call(void 0, );
|
|
726
726
|
if (hydrated && loadedKey !== storageKey) {
|
|
727
727
|
setLoadedKey(storageKey);
|
|
728
728
|
setVotes(readStoredVotes(storageKey));
|
|
@@ -818,9 +818,10 @@ function RoadmapGridSkeleton({
|
|
|
818
818
|
region = true,
|
|
819
819
|
count = ROADMAP_GRID_SKELETON_CARDS,
|
|
820
820
|
showLeftMargin = true,
|
|
821
|
-
columns = 2
|
|
821
|
+
columns = 2,
|
|
822
|
+
votes = true
|
|
822
823
|
}) {
|
|
823
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD6RPLHXcjs.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,
|
|
824
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD6RPLHXcjs.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, _chunkJGURZROBcjs.RoadmapCard, { loading: true, onVote: votes ? NO_VOTE : void 0 }) }, i)) });
|
|
824
825
|
}
|
|
825
826
|
var DEFAULT_BUILD_REFRESH_URL = (taskId) => `/api/roadmap/${taskId}`;
|
|
826
827
|
var BACKLOG = "Backlog";
|
|
@@ -879,12 +880,12 @@ function RoadmapGridSingle({
|
|
|
879
880
|
// and scrolls.
|
|
880
881
|
// `data-loading-item`: how many items a quarter holds is read data (the loading-state gate measures it as a list).
|
|
881
882
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
882
|
-
|
|
883
|
+
_chunkJGURZROBcjs.RoadmapCard,
|
|
883
884
|
{
|
|
884
885
|
item,
|
|
885
|
-
id:
|
|
886
|
+
id: _chunkNRAH3M66cjs.devSectionAnchorId.call(void 0, "roadmap", item.id),
|
|
886
887
|
userVote: getVote(item.id),
|
|
887
|
-
onVote: (voteType) => onVote(item.id, voteType),
|
|
888
|
+
onVote: onVote ? (voteType) => onVote(item.id, voteType) : void 0,
|
|
888
889
|
isVoting: votingTasks.has(item.id)
|
|
889
890
|
}
|
|
890
891
|
) }, item.id)
|
|
@@ -904,13 +905,23 @@ function RoadmapQuarterHeadSkeleton() {
|
|
|
904
905
|
function RoadmapGridQuarterSkeleton({
|
|
905
906
|
showLeftMargin = true,
|
|
906
907
|
columns = 2,
|
|
907
|
-
count
|
|
908
|
+
count,
|
|
909
|
+
votes = true
|
|
908
910
|
}) {
|
|
909
911
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: QUARTER_LIST_CLASS, "aria-hidden": true, children: [
|
|
910
912
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: ROADMAP_SKELETON_CLOSED_QUARTERS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoadmapQuarterHeadSkeleton, {}) }) }),
|
|
911
913
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", "data-loading-item": true, children: [
|
|
912
914
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoadmapQuarterHeadSkeleton, {}),
|
|
913
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: QUARTER_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: QUARTER_CONTENT_INNER_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
915
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: QUARTER_CONTENT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: QUARTER_CONTENT_INNER_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
916
|
+
RoadmapGridSkeleton,
|
|
917
|
+
{
|
|
918
|
+
region: false,
|
|
919
|
+
count,
|
|
920
|
+
showLeftMargin,
|
|
921
|
+
columns,
|
|
922
|
+
votes
|
|
923
|
+
}
|
|
924
|
+
) }) })
|
|
914
925
|
] })
|
|
915
926
|
] });
|
|
916
927
|
}
|
|
@@ -921,6 +932,7 @@ function RoadmapGrid({
|
|
|
921
932
|
columns = 2,
|
|
922
933
|
buildRefreshUrl = DEFAULT_BUILD_REFRESH_URL,
|
|
923
934
|
votingOptions,
|
|
935
|
+
votes = true,
|
|
924
936
|
groupByQuarter = false,
|
|
925
937
|
hasActiveFilters = false,
|
|
926
938
|
quartersToKeepClosed = 2,
|
|
@@ -998,11 +1010,28 @@ function RoadmapGrid({
|
|
|
998
1010
|
);
|
|
999
1011
|
}, [hasActiveFilters, sortedQuartersKey, isInitialized, quartersToKeepClosed]);
|
|
1000
1012
|
if (inScope || isLoading) {
|
|
1001
|
-
return groupByQuarter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1013
|
+
return groupByQuarter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1014
|
+
RoadmapGridQuarterSkeleton,
|
|
1015
|
+
{
|
|
1016
|
+
showLeftMargin,
|
|
1017
|
+
columns,
|
|
1018
|
+
count: skeletonCount,
|
|
1019
|
+
votes
|
|
1020
|
+
}
|
|
1021
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1022
|
+
RoadmapGridSkeleton,
|
|
1023
|
+
{
|
|
1024
|
+
region: !inScope,
|
|
1025
|
+
count: skeletonCount,
|
|
1026
|
+
showLeftMargin,
|
|
1027
|
+
columns,
|
|
1028
|
+
votes
|
|
1029
|
+
}
|
|
1030
|
+
);
|
|
1002
1031
|
}
|
|
1003
1032
|
if (items.length === 0) {
|
|
1004
1033
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1005
|
-
|
|
1034
|
+
_chunkPALMLL5Tcjs.EmptyState,
|
|
1006
1035
|
{
|
|
1007
1036
|
type: "generic",
|
|
1008
1037
|
title: "No roadmap items",
|
|
@@ -1018,13 +1047,13 @@ function RoadmapGrid({
|
|
|
1018
1047
|
showLeftMargin,
|
|
1019
1048
|
columns,
|
|
1020
1049
|
getVote,
|
|
1021
|
-
onVote: handleVote,
|
|
1050
|
+
onVote: votes ? handleVote : void 0,
|
|
1022
1051
|
votingTasks
|
|
1023
1052
|
}
|
|
1024
1053
|
);
|
|
1025
1054
|
}
|
|
1026
1055
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1027
|
-
|
|
1056
|
+
_chunkQMDXG3VFcjs.Accordion,
|
|
1028
1057
|
{
|
|
1029
1058
|
type: "multiple",
|
|
1030
1059
|
value: expandedQuarters,
|
|
@@ -1034,14 +1063,14 @@ function RoadmapGrid({
|
|
|
1034
1063
|
const itemCount = _optionalChain([itemsByQuarter, 'access', _19 => _19[quarter], 'optionalAccess', _20 => _20.length]) || 0;
|
|
1035
1064
|
const isExpanded = expandedQuarters.includes(quarter);
|
|
1036
1065
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1037
|
-
|
|
1066
|
+
_chunkQMDXG3VFcjs.AccordionItem,
|
|
1038
1067
|
{
|
|
1039
1068
|
value: quarter,
|
|
1040
1069
|
id: `quarter-${quarter.replace(/\s+/g, "-").toLowerCase()}`,
|
|
1041
1070
|
className: "border-0",
|
|
1042
1071
|
"data-loading-item": true,
|
|
1043
1072
|
children: [
|
|
1044
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1073
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.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: [
|
|
1045
1074
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1046
1075
|
"h3",
|
|
1047
1076
|
{
|
|
@@ -1071,14 +1100,14 @@ function RoadmapGrid({
|
|
|
1071
1100
|
}
|
|
1072
1101
|
)
|
|
1073
1102
|
] }) }),
|
|
1074
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1103
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.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,
|
|
1075
1104
|
RoadmapGridSingle,
|
|
1076
1105
|
{
|
|
1077
1106
|
items: itemsByQuarter[quarter],
|
|
1078
1107
|
showLeftMargin,
|
|
1079
1108
|
columns,
|
|
1080
1109
|
getVote,
|
|
1081
|
-
onVote: handleVote,
|
|
1110
|
+
onVote: votes ? handleVote : void 0,
|
|
1082
1111
|
votingTasks
|
|
1083
1112
|
}
|
|
1084
1113
|
) })
|
|
@@ -1097,8 +1126,8 @@ function RoadmapGrid({
|
|
|
1097
1126
|
var DEFAULT_ENDPOINT3 = "/api/roadmap";
|
|
1098
1127
|
var NO_ITEMS = [];
|
|
1099
1128
|
var SYNCED_LIST_CLASS = "flex w-full flex-col gap-[var(--spacing-system-lf)]";
|
|
1100
|
-
var DEFAULT_SEARCH_PARAM_KEY2 =
|
|
1101
|
-
var DEFAULT_STATUS_PARAM_KEY2 =
|
|
1129
|
+
var DEFAULT_SEARCH_PARAM_KEY2 = _chunkNRAH3M66cjs.DEV_SECTION_PARAM_KEYS.search;
|
|
1130
|
+
var DEFAULT_STATUS_PARAM_KEY2 = _chunkNRAH3M66cjs.DEV_SECTION_PARAM_KEYS.status;
|
|
1102
1131
|
function RoadmapView({
|
|
1103
1132
|
endpoint = DEFAULT_ENDPOINT3,
|
|
1104
1133
|
initialItems,
|
|
@@ -1117,23 +1146,23 @@ function RoadmapView({
|
|
|
1117
1146
|
const qs = listParams.toString();
|
|
1118
1147
|
const url = qs ? `${endpoint}?${qs}` : endpoint;
|
|
1119
1148
|
const initialData = _react.useMemo.call(void 0, () => initialItems ? { items: initialItems } : void 0, [initialItems]);
|
|
1120
|
-
const { data, setData, isLoading, error, reload } =
|
|
1149
|
+
const { data, setData, isLoading, error, reload } = _chunkOKAHKZP2cjs.useSelfFetch.call(void 0, url, {
|
|
1121
1150
|
initialData
|
|
1122
1151
|
});
|
|
1123
1152
|
const items = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _21 => _21.items]), () => ( []));
|
|
1124
1153
|
_chunkCWA6J7KCcjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkOJZBZH56cjs.STICKY_HEADER_OFFSET_PX });
|
|
1125
|
-
const syncInPage =
|
|
1154
|
+
const syncInPage = _chunkVUP7ZGZScjs.usePageDataSync.call(void 0, _optionalChain([data, 'optionalAccess', _22 => _22.sync]), isLoading && !data);
|
|
1126
1155
|
if (error) {
|
|
1127
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1156
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.LoadError, { message: "Failed to load roadmap.", onRetry: reload });
|
|
1128
1157
|
}
|
|
1129
1158
|
if (isLoading && !data) {
|
|
1130
1159
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SYNCED_LIST_CLASS, children: [
|
|
1131
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1160
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.DataSyncLine, { loading: true }),
|
|
1132
1161
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoadmapGrid, { items: NO_ITEMS, isLoading: true, groupByQuarter: true, showLeftMargin })
|
|
1133
1162
|
] });
|
|
1134
1163
|
}
|
|
1135
1164
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SYNCED_LIST_CLASS, children: [
|
|
1136
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1165
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.DataSyncLine, { sync: _optionalChain([data, 'optionalAccess', _23 => _23.sync]) }),
|
|
1137
1166
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1138
1167
|
RoadmapGrid,
|
|
1139
1168
|
{
|
|
@@ -1157,7 +1186,7 @@ var TABLE_FRAME_CLASS = `w-full ${_chunkUN6LC5PKcjs.CONTENT_CARD_SKELETON_FRAME_
|
|
|
1157
1186
|
var ROW_SEPARATOR_CLASS = "border-b border-ods-border last:border-b-0";
|
|
1158
1187
|
var DELIVERY_TABLE_SKELETON_ROWS = 5;
|
|
1159
1188
|
function DeliveryTableSkeleton() {
|
|
1160
|
-
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: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: DELIVERY_TABLE_SKELETON_ROWS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1189
|
+
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: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: DELIVERY_TABLE_SKELETON_ROWS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUP7ZGZScjs.DeliveryRow, { loading: true }) }) }) }) });
|
|
1161
1190
|
}
|
|
1162
1191
|
function DeliveryTable({ items, isLoading = false }) {
|
|
1163
1192
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeliveryTableSkeleton, {});
|
|
@@ -1170,7 +1199,7 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1170
1199
|
// → `#delivery-<external_id>`; `useScrollToHash` in
|
|
1171
1200
|
// `delivery-lists.tsx` finds the row by id and scrolls. The
|
|
1172
1201
|
// outer wrapper here ONLY exists for the row separators.
|
|
1173
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1202
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUP7ZGZScjs.DeliveryRow, { item, id: _chunkNRAH3M66cjs.devSectionAnchorId.call(void 0, "delivery", item.id) }) }, item.id)
|
|
1174
1203
|
)) }) });
|
|
1175
1204
|
}
|
|
1176
1205
|
|
|
@@ -1179,8 +1208,8 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1179
1208
|
|
|
1180
1209
|
var DEFAULT_COMPLETED_ENDPOINT = "/api/delivery/completed";
|
|
1181
1210
|
var DEFAULT_IN_PROGRESS_ENDPOINT = "/api/delivery/in-progress";
|
|
1182
|
-
var DEFAULT_SEARCH_PARAM_KEY3 =
|
|
1183
|
-
var DEFAULT_TASK_TYPE_PARAM_KEY =
|
|
1211
|
+
var DEFAULT_SEARCH_PARAM_KEY3 = _chunkNRAH3M66cjs.DEV_SECTION_PARAM_KEYS.search;
|
|
1212
|
+
var DEFAULT_TASK_TYPE_PARAM_KEY = _chunkNRAH3M66cjs.DEV_SECTION_PARAM_KEYS.deliveryTaskType;
|
|
1184
1213
|
function DeliveryLists({
|
|
1185
1214
|
completedApiEndpoint = DEFAULT_COMPLETED_ENDPOINT,
|
|
1186
1215
|
inProgressApiEndpoint = DEFAULT_IN_PROGRESS_ENDPOINT,
|
|
@@ -1255,18 +1284,18 @@ function DeliveryLists({
|
|
|
1255
1284
|
const filteredCompleted = _optionalChain([data, 'optionalAccess', _24 => _24.completed]) || [];
|
|
1256
1285
|
const filteredInProgress = _optionalChain([data, 'optionalAccess', _25 => _25.inProgress]) || [];
|
|
1257
1286
|
_chunkCWA6J7KCcjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkOJZBZH56cjs.STICKY_HEADER_OFFSET_PX });
|
|
1258
|
-
const syncInPage =
|
|
1287
|
+
const syncInPage = _chunkVUP7ZGZScjs.usePageDataSync.call(void 0, sync, isLoading && !data);
|
|
1259
1288
|
const showCompleted = true;
|
|
1260
1289
|
const showInProgress = true;
|
|
1261
1290
|
const hasActiveFilters = searchQuery !== "" || taskTypeFilter !== "all";
|
|
1262
1291
|
const hasResults = showCompleted && filteredCompleted.length > 0 || showInProgress && filteredInProgress.length > 0;
|
|
1263
1292
|
if (error) {
|
|
1264
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1293
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.LoadError, { message: error, onRetry: () => window.location.reload() }) });
|
|
1265
1294
|
}
|
|
1266
1295
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[40px]", children: [
|
|
1267
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1296
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.DataSyncLine, { sync, loading: isLoading && !data }),
|
|
1268
1297
|
!isLoading && !hasResults && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1269
|
-
|
|
1298
|
+
_chunkVUP7ZGZScjs.ListEmptyState,
|
|
1270
1299
|
{
|
|
1271
1300
|
isFiltered: hasActiveFilters,
|
|
1272
1301
|
filtered: {
|
|
@@ -1491,7 +1520,7 @@ function legalDocumentStampLabel(doc) {
|
|
|
1491
1520
|
}
|
|
1492
1521
|
var LEGAL_DOCUMENT_SKELETON_SECTIONS = 3;
|
|
1493
1522
|
function LegalDocumentSkeleton({ sections = LEGAL_DOCUMENT_SKELETON_SECTIONS }) {
|
|
1494
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD6RPLHXcjs.LoadingRegion, { label: "Loading the document", className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1523
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD6RPLHXcjs.LoadingRegion, { label: "Loading the document", className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY3IMXLLLcjs.MarkdownEngine, { loading: true, content: "", skeletonTitle: true, skeletonSections: sections, textSize: "article" }) });
|
|
1495
1524
|
}
|
|
1496
1525
|
function LegalDocumentPage({
|
|
1497
1526
|
docType,
|
|
@@ -1503,7 +1532,7 @@ function LegalDocumentPage({
|
|
|
1503
1532
|
emptyStateMessage: emptyStateMessageProp,
|
|
1504
1533
|
initialData = null,
|
|
1505
1534
|
apiEndpoint,
|
|
1506
|
-
MarkdownRenderer =
|
|
1535
|
+
MarkdownRenderer = _chunkQMDXG3VFcjs.RichMarkdownRenderer,
|
|
1507
1536
|
documentsEndpoint,
|
|
1508
1537
|
backButton,
|
|
1509
1538
|
faq,
|
|
@@ -1525,7 +1554,7 @@ function LegalDocumentPage({
|
|
|
1525
1554
|
const emptyStateMessage = _nullishCoalesce(emptyStateMessageProp, () => ( `${title} is not available at this time.`));
|
|
1526
1555
|
const subtitle = isLoading ? void 0 : _nullishCoalesce(legalDocumentStampLabel(data), () => ( fallbackDescription));
|
|
1527
1556
|
const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1528
|
-
|
|
1557
|
+
_chunkF64GLU75cjs.PageLayout,
|
|
1529
1558
|
{
|
|
1530
1559
|
title,
|
|
1531
1560
|
subtitle,
|
|
@@ -1534,7 +1563,7 @@ function LegalDocumentPage({
|
|
|
1534
1563
|
titleSize: "h1",
|
|
1535
1564
|
titleWrap: true,
|
|
1536
1565
|
children: [
|
|
1537
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1566
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.DataSyncLine, { sync: data ? { source: "github", syncedAt: data.lastSynced } : null, loading: isLoading }),
|
|
1538
1567
|
/* @__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: _chunk6YZNUHXTcjs.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: [
|
|
1539
1568
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rounded-lg border border-ods-error bg-ods-error-secondary p-6", children: [
|
|
1540
1569
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "mb-2 text-ods-error", children: errorTitle }),
|
|
@@ -1554,11 +1583,11 @@ function LegalDocumentPage({
|
|
|
1554
1583
|
"for more information."
|
|
1555
1584
|
] })
|
|
1556
1585
|
] }) }) }) }) }),
|
|
1557
|
-
faqSlot && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1586
|
+
faqSlot && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6JCTKXHXcjs.FaqSection, { ..._chunk6JCTKXHXcjs.pageFaqProps.call(void 0, faqSlot) })
|
|
1558
1587
|
]
|
|
1559
1588
|
}
|
|
1560
1589
|
);
|
|
1561
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1590
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMDXG3VFcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
1562
1591
|
}
|
|
1563
1592
|
|
|
1564
1593
|
|