@flamingo-stack/openframe-frontend-core 0.0.776 → 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-WXMWYGSW.cjs +25 -0
- package/dist/{chunk-2MF547RG.cjs → chunk-2JO5HNEF.cjs} +28 -26
- package/dist/{chunk-DDXQGTWB.cjs → chunk-2W3VDE4D.cjs} +5 -5
- package/dist/{chunk-R3JX4MXD.cjs → chunk-3ZLPYEL5.cjs} +10 -10
- package/dist/{chunk-3V27UHSH.cjs → chunk-4BBOHZM3.cjs} +17 -17
- package/dist/{chunk-XT5WEHFM.cjs → chunk-4NRVV3KO.cjs} +3 -3
- package/dist/{chunk-DGFDBPO7.cjs → chunk-5GJM7VRR.cjs} +1 -94
- package/dist/{chunk-E64HPPRH.cjs → chunk-5PK22JP7.cjs} +50 -50
- package/dist/{chunk-57B5RUYD.cjs → chunk-64KBI5MI.cjs} +2 -2
- package/dist/{chunk-ASMNNSUQ.cjs → chunk-7PNRXJX2.cjs} +3 -3
- package/dist/{chunk-OTZQP53Y.cjs → chunk-AQXEM7GI.cjs} +8 -8
- package/dist/{chunk-VFZFCRAL.cjs → chunk-AQXKXZWB.cjs} +4 -4
- package/dist/{chunk-VFUMM6JC.cjs → chunk-BEMGJDXI.cjs} +2 -2
- package/dist/{chunk-HY6BCZH7.cjs → chunk-BNUZKBNV.cjs} +3 -3
- package/dist/{chunk-2YB4X5WT.cjs → chunk-DQALLDTZ.cjs} +6 -6
- package/dist/{chunk-MWH5ZTMB.cjs → chunk-F3BASIMT.cjs} +97 -95
- package/dist/{chunk-Z5KX56TK.cjs → chunk-HUPDPANN.cjs} +4 -4
- package/dist/{chunk-2AZAJ7RK.cjs → chunk-I4IC3BRC.cjs} +53 -53
- package/dist/{chunk-BDYI6HBT.cjs → chunk-IE3QCYBT.cjs} +18 -16
- package/dist/{chunk-UM6HFGTI.cjs → chunk-ILRQXZBA.cjs} +53 -51
- package/dist/{chunk-CZIMISAR.cjs → chunk-JB2SEF6Q.cjs} +7 -7
- package/dist/{chunk-AMVI5VXM.cjs → chunk-KA3VQ6X2.cjs} +91 -89
- package/dist/{chunk-LJT2KRE2.cjs → chunk-KLTUTZBO.cjs} +24 -24
- package/dist/{chunk-EHJE3UWZ.cjs → chunk-LBGAHB6X.cjs} +20 -20
- package/dist/{chunk-LNCBN4BL.cjs → chunk-MLX6Z7TU.cjs} +2 -2
- package/dist/chunk-OH5LAH3X.cjs +1456 -0
- package/dist/{chunk-XXJL5GY3.cjs → chunk-OJZBZH56.cjs} +3 -3
- package/dist/{chunk-IXZNBDXT.cjs → chunk-OMHQZXCD.cjs} +28 -28
- package/dist/{chunk-KM2TVQCH.cjs → chunk-OWQVDWTK.cjs} +259 -247
- package/dist/{chunk-YFTQ2ALU.cjs → chunk-PQBGSVZE.cjs} +116 -82
- package/dist/{chunk-OJLZ7PGO.cjs → chunk-QEFDGI3Z.cjs} +37 -35
- package/dist/{chunk-6HY2NH7D.cjs → chunk-QIQYD75I.cjs} +2 -2
- package/dist/{chunk-RB7VLVMD.cjs → chunk-R6BKQKIF.cjs} +9 -7
- package/dist/{chunk-V3W56L2D.cjs → chunk-SIDDZZKL.cjs} +38 -38
- package/dist/chunk-SZHDXXMK.cjs +102 -0
- package/dist/{chunk-5P4TDV7V.cjs → chunk-TUAATMUE.cjs} +5 -93
- package/dist/{chunk-F65RSJVV.cjs → chunk-TVDQMG7I.cjs} +23 -21
- package/dist/{chunk-XN6LXMH5.cjs → chunk-UPAE4IV5.cjs} +595 -591
- package/dist/chunk-V4FXUIMH.cjs +92 -0
- package/dist/{chunk-2JRSYWFP.cjs → chunk-VXAKQRV7.cjs} +5 -5
- package/dist/{chunk-L55XLH5A.cjs → chunk-WR7KJML6.cjs} +33 -31
- package/dist/{chunk-5QP3K2CE.cjs → chunk-XEYL6AFZ.cjs} +9 -9
- package/dist/{chunk-MYHS4W2H.cjs → chunk-YG72MEHY.cjs} +213 -1647
- package/dist/{chunk-WAQPW4CB.cjs → chunk-YNECNYQF.cjs} +6 -6
- package/dist/{chunk-NWZSYG4S.cjs → chunk-YWQ3VXPL.cjs} +114 -112
- package/dist/{chunk-24OYQQZC.cjs → chunk-ZGWS3NJR.cjs} +22 -22
- package/dist/{cloud-tenants-QFE6QMR5.cjs → cloud-tenants-2ZLGCSGK.cjs} +27 -24
- package/dist/components/case-studies/index.cjs +45 -41
- 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 +21 -17
- 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 +28 -25
- package/dist/components/docs/index.cjs +31 -28
- package/dist/components/embeds/index.cjs +28 -25
- package/dist/components/faq/index.cjs +29 -26
- package/dist/components/features/index.cjs +28 -24
- 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 +131 -127
- package/dist/components/index.cjs +94 -90
- package/dist/components/meeting-scheduler/index.cjs +95 -92
- package/dist/components/navigation/index.cjs +30 -27
- package/dist/components/navigation/nav-panel.d.ts.map +1 -1
- package/dist/components/navigation/nav-panel.js +47 -13
- package/dist/components/onboarding-guides/index.cjs +30 -27
- package/dist/components/product-demo/index.cjs +38 -35
- package/dist/components/related-content/index.cjs +15 -12
- package/dist/components/tickets/index.cjs +33 -30
- package/dist/components/ui/index.cjs +28 -24
- package/dist/{devices-SFJDLXSW.cjs → devices-UOBQFPV3.cjs} +28 -25
- package/dist/{embeddable-chat-XZUWAK4W.cjs → embeddable-chat-SFQWRUIV.cjs} +99 -95
- package/dist/hooks/index.cjs +12 -10
- package/dist/index.cjs +36 -30
- package/dist/{knowledge-SAK3ZGCO.cjs → knowledge-5K3LTHGB.cjs} +28 -25
- package/dist/{logs-CYBGMFA5.cjs → logs-WU3N6ESS.cjs} +35 -32
- package/dist/{policies-XXDOICWF.cjs → policies-2IYASCQO.cjs} +31 -28
- package/dist/{remote-session-TC3BZDBZ.cjs → remote-session-TGM2OTTV.cjs} +12 -10
- package/dist/{scripts-C5T2AQPA.cjs → scripts-IQBKOQEY.cjs} +34 -31
- package/dist/{software-update-XU5AI4TP.cjs → software-update-GJLDO5X5.cjs} +31 -28
- package/dist/{tickets-board-YT25IX3O.cjs → tickets-board-FB5AGLJD.cjs} +16 -14
- package/dist/{video-file-player-6ZFOZFER.cjs → video-file-player-SIJW5UWU.cjs} +3 -2
- 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
- package/src/components/navigation/nav-panel.tsx +74 -14
|
@@ -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,30 +26,30 @@ var _chunk24OYQQZCcjs = require('./chunk-24OYQQZC.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkUPAE4IV5cjs = require('./chunk-UPAE4IV5.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkSIDDZZKLcjs = require('./chunk-SIDDZZKL.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunk5PK22JP7cjs = require('./chunk-5PK22JP7.cjs');
|
|
37
37
|
|
|
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');
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
var
|
|
52
|
+
var _chunkOJZBZH56cjs = require('./chunk-OJZBZH56.cjs');
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
@@ -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,6 +68,7 @@ var _chunkOJLZ7PGOcjs = require('./chunk-OJLZ7PGO.cjs');
|
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
71
|
+
var _chunkYG72MEHYcjs = require('./chunk-YG72MEHY.cjs');
|
|
71
72
|
|
|
72
73
|
|
|
73
74
|
|
|
@@ -75,14 +76,15 @@ var _chunkOJLZ7PGOcjs = require('./chunk-OJLZ7PGO.cjs');
|
|
|
75
76
|
|
|
76
77
|
|
|
77
78
|
|
|
78
|
-
|
|
79
|
+
|
|
80
|
+
var _chunkOH5LAH3Xcjs = require('./chunk-OH5LAH3X.cjs');
|
|
79
81
|
|
|
80
82
|
|
|
81
83
|
|
|
82
84
|
var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
83
85
|
|
|
84
86
|
|
|
85
|
-
var
|
|
87
|
+
var _chunk7PNRXJX2cjs = require('./chunk-7PNRXJX2.cjs');
|
|
86
88
|
|
|
87
89
|
|
|
88
90
|
var _chunkE76ONBKFcjs = require('./chunk-E76ONBKF.cjs');
|
|
@@ -109,8 +111,8 @@ var _chunk65VVJSQZcjs = require('./chunk-65VVJSQZ.cjs');
|
|
|
109
111
|
var _jsxruntime = require('react/jsx-runtime');
|
|
110
112
|
var DEFAULT_ENDPOINT = "/api/releases";
|
|
111
113
|
var PAGER_ROW_CLASS = "flex w-full justify-center";
|
|
112
|
-
var DEFAULT_SEARCH_PARAM_KEY =
|
|
113
|
-
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;
|
|
114
116
|
var DEFAULT_PAGE_PARAM_KEY = "page";
|
|
115
117
|
function ReleaseRow({
|
|
116
118
|
release,
|
|
@@ -119,17 +121,17 @@ function ReleaseRow({
|
|
|
119
121
|
}) {
|
|
120
122
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
121
123
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
122
|
-
const cta =
|
|
124
|
+
const cta = _chunkYWQ3VXPLcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _2 => _2.composeContentUrl]), {
|
|
123
125
|
type: "product_release",
|
|
124
126
|
slug: release.slug,
|
|
125
127
|
basePath,
|
|
126
128
|
platforms: release.product_release_platforms
|
|
127
129
|
});
|
|
128
|
-
const { target, rel } =
|
|
130
|
+
const { target, rel } = _chunkOH5LAH3Xcjs.useEntityCardLink.call(void 0, { href: cta.href, targetPlatform: cta.targetPlatform });
|
|
129
131
|
const onClick = (e) => {
|
|
130
|
-
if (e.defaultPrevented ||
|
|
132
|
+
if (e.defaultPrevented || _chunkYG72MEHYcjs.isModifierClick.call(void 0, e) || target === "_blank") return;
|
|
131
133
|
e.preventDefault();
|
|
132
|
-
|
|
134
|
+
_chunkOWQVDWTKcjs.executeNavigationImperative.call(void 0, {
|
|
133
135
|
runtime,
|
|
134
136
|
href: cta.href,
|
|
135
137
|
targetPlatform: cta.targetPlatform,
|
|
@@ -137,7 +139,7 @@ function ReleaseRow({
|
|
|
137
139
|
});
|
|
138
140
|
};
|
|
139
141
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
140
|
-
|
|
142
|
+
_chunkQEFDGI3Zcjs.ProductReleaseCard,
|
|
141
143
|
{
|
|
142
144
|
size: "lg",
|
|
143
145
|
title: release.title,
|
|
@@ -153,7 +155,7 @@ function ProductReleasesView({
|
|
|
153
155
|
initialData,
|
|
154
156
|
itemsPerPage = 5,
|
|
155
157
|
basePath = "/releases",
|
|
156
|
-
buildCardProps =
|
|
158
|
+
buildCardProps = _chunkYG72MEHYcjs.buildProductReleaseCardProps,
|
|
157
159
|
searchParamKey = DEFAULT_SEARCH_PARAM_KEY,
|
|
158
160
|
statusParamKey = DEFAULT_STATUS_PARAM_KEY,
|
|
159
161
|
pageParamKey = DEFAULT_PAGE_PARAM_KEY,
|
|
@@ -175,11 +177,11 @@ function ProductReleasesView({
|
|
|
175
177
|
isLoading: fetching,
|
|
176
178
|
error,
|
|
177
179
|
reload
|
|
178
|
-
} =
|
|
180
|
+
} = _chunkQEFDGI3Zcjs.useSelfFetch.call(void 0, inScope ? null : `${endpoint}?${listParams.toString()}`, {
|
|
179
181
|
initialData
|
|
180
182
|
});
|
|
181
183
|
const isLoading = inScope || fetching;
|
|
182
|
-
|
|
184
|
+
_chunk2JO5HNEFcjs.usePageDataSync.call(void 0, _optionalChain([data, 'optionalAccess', _3 => _3.sync]), isLoading && !data);
|
|
183
185
|
const releases = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _4 => _4.data]), () => ( []));
|
|
184
186
|
const totalCount = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _5 => _5.count]), () => ( 0));
|
|
185
187
|
const totalPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, totalCount, itemsPerPage);
|
|
@@ -198,10 +200,10 @@ function ProductReleasesView({
|
|
|
198
200
|
router.replace(`${pathname}?${params.toString()}`, { scroll: false });
|
|
199
201
|
};
|
|
200
202
|
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,
|
|
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 }) });
|
|
202
204
|
}
|
|
203
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,
|
|
204
|
-
|
|
206
|
+
_chunk2JO5HNEFcjs.ListEmptyState,
|
|
205
207
|
{
|
|
206
208
|
isFiltered: hasActiveFilters,
|
|
207
209
|
filtered: {
|
|
@@ -222,14 +224,14 @@ function ProductReleasesView({
|
|
|
222
224
|
style: { visibility: isLoading || hasData ? "visible" : "hidden" },
|
|
223
225
|
children: !isLoading && release ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReleaseRow, { release, basePath, buildCardProps }) : (
|
|
224
226
|
// Read, or a hidden slot past the page's last release: the card draws its own skeleton.
|
|
225
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
227
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQEFDGI3Zcjs.ProductReleaseCard, { loading: true, size: "lg", title: "", version: "", formattedDate: "" })
|
|
226
228
|
)
|
|
227
229
|
},
|
|
228
230
|
_nullishCoalesce(_optionalChain([release, 'optionalAccess', _6 => _6.id]), () => ( `slot-${i}`))
|
|
229
231
|
);
|
|
230
232
|
}) }),
|
|
231
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,
|
|
232
|
-
|
|
234
|
+
_chunkHUPDPANNcjs.UnifiedPagination,
|
|
233
235
|
{
|
|
234
236
|
loading: isLoading,
|
|
235
237
|
currentPage,
|
|
@@ -287,10 +289,10 @@ function MediaGalleryStrip({ items, className }) {
|
|
|
287
289
|
mediaItem.id || index
|
|
288
290
|
);
|
|
289
291
|
}
|
|
290
|
-
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);
|
|
291
293
|
}) }),
|
|
292
294
|
galleryImages.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
293
|
-
|
|
295
|
+
_chunkYG72MEHYcjs.ImageGalleryModal,
|
|
294
296
|
{
|
|
295
297
|
images: galleryImages,
|
|
296
298
|
isOpen: galleryOpen,
|
|
@@ -314,7 +316,7 @@ function MediaGalleryStripSkeleton({
|
|
|
314
316
|
var _lucidereact = require('lucide-react');
|
|
315
317
|
|
|
316
318
|
|
|
317
|
-
var DefaultMarkdownRenderer =
|
|
319
|
+
var DefaultMarkdownRenderer = _chunkUPAE4IV5cjs.RichMarkdownRenderer;
|
|
318
320
|
var CONTENT_STACK_CLASS = "space-y-6 content-md:space-y-8";
|
|
319
321
|
var RELEASE_TITLE_SKELETON_LINES = { phone: 7, md: 4, lg: 2 };
|
|
320
322
|
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 +365,14 @@ function ReleaseDetailPage({
|
|
|
363
365
|
shell = true
|
|
364
366
|
}) {
|
|
365
367
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
366
|
-
const captions =
|
|
367
|
-
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 });
|
|
368
370
|
const seed = initialData == null ? void 0 : initialData;
|
|
369
371
|
const {
|
|
370
372
|
data: release,
|
|
371
373
|
isLoading,
|
|
372
374
|
error
|
|
373
|
-
} =
|
|
375
|
+
} = _chunkQEFDGI3Zcjs.useSelfFetch.call(void 0, slug ? `${endpoint}/${encodeURIComponent(slug)}` : null, {
|
|
374
376
|
initialData: seed
|
|
375
377
|
});
|
|
376
378
|
const showBackButton = backButton !== false;
|
|
@@ -390,7 +392,7 @@ function ReleaseDetailPage({
|
|
|
390
392
|
if (roadmapTasksData && roadmapTasksData.length > 0 && RoadmapSection) {
|
|
391
393
|
setRoadmapLoading(true);
|
|
392
394
|
const roadmapIds = roadmapTasksData.map((t) => t.clickup_task_id).join(",");
|
|
393
|
-
const roadmapResponse = await
|
|
395
|
+
const roadmapResponse = await _chunk7PNRXJX2cjs.contentFetch.call(void 0, `${roadmapApiEndpoint}?task_ids=${roadmapIds}`);
|
|
394
396
|
const roadmapData = roadmapResponse.ok ? await roadmapResponse.json() : null;
|
|
395
397
|
if (cancelled) return;
|
|
396
398
|
setRoadmapTasks(_nullishCoalesce(_optionalChain([roadmapData, 'optionalAccess', _8 => _8.items]), () => ( [])));
|
|
@@ -400,7 +402,7 @@ function ReleaseDetailPage({
|
|
|
400
402
|
if (deliveryTasksData && deliveryTasksData.length > 0 && DeliverySection) {
|
|
401
403
|
setDeliveryLoading(true);
|
|
402
404
|
const deliveryIds = deliveryTasksData.map((t) => t.clickup_task_id).join(",");
|
|
403
|
-
const deliveryResponse = await
|
|
405
|
+
const deliveryResponse = await _chunk7PNRXJX2cjs.contentFetch.call(void 0, `${deliveryApiEndpoint}?task_ids=${deliveryIds}`);
|
|
404
406
|
const deliveryPayload = deliveryResponse.ok ? await deliveryResponse.json() : null;
|
|
405
407
|
if (cancelled) return;
|
|
406
408
|
setDeliveryData(
|
|
@@ -457,7 +459,7 @@ function ReleaseDetailPage({
|
|
|
457
459
|
const bugFixed = view.bugs_fixed;
|
|
458
460
|
const improvements = view.improvements;
|
|
459
461
|
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
460
|
-
|
|
462
|
+
_chunkSIDDZZKLcjs.PageLayout,
|
|
461
463
|
{
|
|
462
464
|
title: releaseTitle,
|
|
463
465
|
subtitle: loading ? void 0 : `Version: ${releaseVersion}`,
|
|
@@ -470,7 +472,7 @@ function ReleaseDetailPage({
|
|
|
470
472
|
children: [
|
|
471
473
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTENT_STACK_CLASS, children: [
|
|
472
474
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
473
|
-
|
|
475
|
+
_chunkUPAE4IV5cjs.EntityTagBadges,
|
|
474
476
|
{
|
|
475
477
|
tags: view.product_release_tags,
|
|
476
478
|
max: RELEASE_TAG_ROW_MAX,
|
|
@@ -479,7 +481,7 @@ function ReleaseDetailPage({
|
|
|
479
481
|
),
|
|
480
482
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: METADATA_GRID_CLASS, children: [
|
|
481
483
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
482
|
-
|
|
484
|
+
_chunkYG72MEHYcjs.EntityMetadataValueCell,
|
|
483
485
|
{
|
|
484
486
|
value: releaseType,
|
|
485
487
|
label: RELEASE_TYPE_LABEL,
|
|
@@ -487,7 +489,7 @@ function ReleaseDetailPage({
|
|
|
487
489
|
}
|
|
488
490
|
),
|
|
489
491
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
490
|
-
|
|
492
|
+
_chunkYG72MEHYcjs.EntityMetadataValueCell,
|
|
491
493
|
{
|
|
492
494
|
value: releaseStatus,
|
|
493
495
|
label: RELEASE_STATUS_LABEL,
|
|
@@ -495,16 +497,16 @@ function ReleaseDetailPage({
|
|
|
495
497
|
}
|
|
496
498
|
),
|
|
497
499
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
498
|
-
|
|
500
|
+
_chunkYG72MEHYcjs.EntityMetadataValueCell,
|
|
499
501
|
{
|
|
500
|
-
value: releaseDate ?
|
|
502
|
+
value: releaseDate ? _chunkYG72MEHYcjs.formatReleaseDate.call(void 0, releaseDate) : "",
|
|
501
503
|
label: RELEASE_DATE_LABEL,
|
|
502
504
|
className: METADATA_CELL_EDGE_CLASS,
|
|
503
505
|
uppercase: false
|
|
504
506
|
}
|
|
505
507
|
),
|
|
506
508
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
507
|
-
|
|
509
|
+
_chunkYG72MEHYcjs.EntityMetadataAuthorCell,
|
|
508
510
|
{
|
|
509
511
|
author: _nullishCoalesce(author, () => ( { full_name: null, avatar_url: null })),
|
|
510
512
|
authorHref: _optionalChain([author, 'optionalAccess', _9 => _9.full_name]) ? authorHref : void 0
|
|
@@ -522,18 +524,18 @@ function ReleaseDetailPage({
|
|
|
522
524
|
highlightVideoThumbnail,
|
|
523
525
|
title: releaseTitle,
|
|
524
526
|
videoBites,
|
|
525
|
-
bitesTitle:
|
|
527
|
+
bitesTitle: _chunkOH5LAH3Xcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
526
528
|
filterPublishedBites: true,
|
|
527
|
-
bitesProfile:
|
|
529
|
+
bitesProfile: _chunkOH5LAH3Xcjs.toStripProfile.call(void 0, author),
|
|
528
530
|
bitesHref: typeof view.slug === "string" ? `/releases/${view.slug}` : void 0,
|
|
529
531
|
captionsUrl,
|
|
530
532
|
highlightCaptionsUrl
|
|
531
533
|
}
|
|
532
534
|
) : /* @__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,
|
|
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" }),
|
|
535
537
|
highlightVideoUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
536
|
-
|
|
538
|
+
_chunkOH5LAH3Xcjs.Video,
|
|
537
539
|
{
|
|
538
540
|
url: highlightVideoUrl,
|
|
539
541
|
poster: highlightVideoThumbnail,
|
|
@@ -543,7 +545,7 @@ function ReleaseDetailPage({
|
|
|
543
545
|
)
|
|
544
546
|
] }) }),
|
|
545
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 }) }),
|
|
546
|
-
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: [
|
|
547
549
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-6 w-6 text-ods-error" }),
|
|
548
550
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
549
551
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-ods-error text-h3", children: "Breaking Changes" }),
|
|
@@ -551,7 +553,7 @@ function ReleaseDetailPage({
|
|
|
551
553
|
] })
|
|
552
554
|
] }) }) }),
|
|
553
555
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
554
|
-
|
|
556
|
+
_chunkUPAE4IV5cjs.ReleaseChangelogSection,
|
|
555
557
|
{
|
|
556
558
|
title: "Breaking Changes",
|
|
557
559
|
entries: breakingChanges || [],
|
|
@@ -563,7 +565,7 @@ function ReleaseDetailPage({
|
|
|
563
565
|
}
|
|
564
566
|
),
|
|
565
567
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
566
|
-
|
|
568
|
+
_chunkUPAE4IV5cjs.ReleaseChangelogSection,
|
|
567
569
|
{
|
|
568
570
|
title: "Features Added",
|
|
569
571
|
entries: featuresAdded || [],
|
|
@@ -573,7 +575,7 @@ function ReleaseDetailPage({
|
|
|
573
575
|
}
|
|
574
576
|
),
|
|
575
577
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
576
|
-
|
|
578
|
+
_chunkUPAE4IV5cjs.ReleaseChangelogSection,
|
|
577
579
|
{
|
|
578
580
|
title: "Bugs Fixed",
|
|
579
581
|
entries: bugFixed || [],
|
|
@@ -583,7 +585,7 @@ function ReleaseDetailPage({
|
|
|
583
585
|
}
|
|
584
586
|
),
|
|
585
587
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
586
|
-
|
|
588
|
+
_chunkUPAE4IV5cjs.ReleaseChangelogSection,
|
|
587
589
|
{
|
|
588
590
|
title: "Improvements",
|
|
589
591
|
entries: improvements || [],
|
|
@@ -612,9 +614,9 @@ function ReleaseDetailPage({
|
|
|
612
614
|
return deliveryLoading ? (
|
|
613
615
|
// The loaded preview's frame, its height written into the markup (`fixedHeight`), so the tables'
|
|
614
616
|
// 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,
|
|
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 }) }) }) })
|
|
616
618
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
617
|
-
|
|
619
|
+
_chunkUPAE4IV5cjs.FadePreview,
|
|
618
620
|
{
|
|
619
621
|
hiddenCount: deliveryCount - 1,
|
|
620
622
|
collapsedHeight: DELIVERY_PREVIEW_HEIGHT,
|
|
@@ -626,7 +628,7 @@ function ReleaseDetailPage({
|
|
|
626
628
|
] }),
|
|
627
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: [
|
|
628
630
|
/* @__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,
|
|
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: [
|
|
630
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: [
|
|
631
633
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEWCFJLNUcjs.GithubClassicIcon, { className: "shrink-0", size: 24, color: "var(--color-text-secondary)" }),
|
|
632
634
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children: "Github Release" }),
|
|
@@ -711,7 +713,7 @@ function RoadmapGridSkeleton({
|
|
|
711
713
|
showLeftMargin = true,
|
|
712
714
|
columns = 2
|
|
713
715
|
}) {
|
|
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,
|
|
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)) });
|
|
715
717
|
}
|
|
716
718
|
|
|
717
719
|
// src/components/shared/roadmap/use-roadmap-voting.ts
|
|
@@ -731,10 +733,10 @@ function readStoredVotes(storageKey) {
|
|
|
731
733
|
function useRoadmapVoting(options = {}) {
|
|
732
734
|
const voteApiEndpoint = _nullishCoalesce(options.voteApiEndpoint, () => ( DEFAULT_VOTE_ENDPOINT));
|
|
733
735
|
const storageKey = _nullishCoalesce(options.storageKey, () => ( DEFAULT_STORAGE_KEY));
|
|
734
|
-
const { getSignals } =
|
|
736
|
+
const { getSignals } = _chunk5PK22JP7cjs.useHumanitySignals.call(void 0, );
|
|
735
737
|
const [votes, setVotes] = _react.useState.call(void 0, NO_VOTES);
|
|
736
738
|
const [loadedKey, setLoadedKey] = _react.useState.call(void 0, null);
|
|
737
|
-
const hydrated =
|
|
739
|
+
const hydrated = _chunkOWQVDWTKcjs.useIsHydrated.call(void 0, );
|
|
738
740
|
if (hydrated && loadedKey !== storageKey) {
|
|
739
741
|
setLoadedKey(storageKey);
|
|
740
742
|
setVotes(readStoredVotes(storageKey));
|
|
@@ -765,7 +767,7 @@ function useRoadmapVoting(options = {}) {
|
|
|
765
767
|
action = "remove";
|
|
766
768
|
} else {
|
|
767
769
|
if (currentVote) {
|
|
768
|
-
await
|
|
770
|
+
await _chunk7PNRXJX2cjs.contentFetch.call(void 0, voteApiEndpoint, {
|
|
769
771
|
method: "POST",
|
|
770
772
|
headers: { "Content-Type": "application/json" },
|
|
771
773
|
body: JSON.stringify({
|
|
@@ -784,7 +786,7 @@ function useRoadmapVoting(options = {}) {
|
|
|
784
786
|
[taskId]: newVote
|
|
785
787
|
}));
|
|
786
788
|
try {
|
|
787
|
-
const response = await
|
|
789
|
+
const response = await _chunk7PNRXJX2cjs.contentFetch.call(void 0, voteApiEndpoint, {
|
|
788
790
|
method: "POST",
|
|
789
791
|
headers: { "Content-Type": "application/json" },
|
|
790
792
|
body: JSON.stringify({ taskId, voteType, action, ...getSignals() })
|
|
@@ -877,10 +879,10 @@ function RoadmapGridSingle({
|
|
|
877
879
|
// and scrolls.
|
|
878
880
|
// `data-loading-item`: how many items a quarter holds is read data (the loading-state gate measures it as a list).
|
|
879
881
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
880
|
-
|
|
882
|
+
_chunkYG72MEHYcjs.RoadmapCard,
|
|
881
883
|
{
|
|
882
884
|
item,
|
|
883
|
-
id:
|
|
885
|
+
id: _chunkYWQ3VXPLcjs.devSectionAnchorId.call(void 0, "roadmap", item.id),
|
|
884
886
|
userVote: getVote(item.id),
|
|
885
887
|
onVote: (voteType) => onVote(item.id, voteType),
|
|
886
888
|
isVoting: votingTasks.has(item.id)
|
|
@@ -929,7 +931,7 @@ function RoadmapGrid({
|
|
|
929
931
|
try {
|
|
930
932
|
const result = await toggleVote(taskId, voteType);
|
|
931
933
|
if (result.success) {
|
|
932
|
-
const response = await
|
|
934
|
+
const response = await _chunk7PNRXJX2cjs.contentFetch.call(void 0, buildRefreshUrl(taskId));
|
|
933
935
|
if (response.ok) {
|
|
934
936
|
const data = await response.json();
|
|
935
937
|
if (data.item && onItemUpdate) onItemUpdate(data.item);
|
|
@@ -995,7 +997,7 @@ function RoadmapGrid({
|
|
|
995
997
|
}
|
|
996
998
|
if (items.length === 0) {
|
|
997
999
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
998
|
-
|
|
1000
|
+
_chunkHUPDPANNcjs.EmptyState,
|
|
999
1001
|
{
|
|
1000
1002
|
type: "generic",
|
|
1001
1003
|
title: "No roadmap items",
|
|
@@ -1017,7 +1019,7 @@ function RoadmapGrid({
|
|
|
1017
1019
|
);
|
|
1018
1020
|
}
|
|
1019
1021
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1020
|
-
|
|
1022
|
+
_chunkUPAE4IV5cjs.Accordion,
|
|
1021
1023
|
{
|
|
1022
1024
|
type: "multiple",
|
|
1023
1025
|
value: expandedQuarters,
|
|
@@ -1027,14 +1029,14 @@ function RoadmapGrid({
|
|
|
1027
1029
|
const itemCount = _optionalChain([itemsByQuarter, 'access', _20 => _20[quarter], 'optionalAccess', _21 => _21.length]) || 0;
|
|
1028
1030
|
const isExpanded = expandedQuarters.includes(quarter);
|
|
1029
1031
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1030
|
-
|
|
1032
|
+
_chunkUPAE4IV5cjs.AccordionItem,
|
|
1031
1033
|
{
|
|
1032
1034
|
value: quarter,
|
|
1033
1035
|
id: `quarter-${quarter.replace(/\s+/g, "-").toLowerCase()}`,
|
|
1034
1036
|
className: "border-0",
|
|
1035
1037
|
"data-loading-item": true,
|
|
1036
1038
|
children: [
|
|
1037
|
-
/* @__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: [
|
|
1038
1040
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1039
1041
|
"h3",
|
|
1040
1042
|
{
|
|
@@ -1064,7 +1066,7 @@ function RoadmapGrid({
|
|
|
1064
1066
|
}
|
|
1065
1067
|
)
|
|
1066
1068
|
] }) }),
|
|
1067
|
-
/* @__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,
|
|
1068
1070
|
RoadmapGridSingle,
|
|
1069
1071
|
{
|
|
1070
1072
|
items: itemsByQuarter[quarter],
|
|
@@ -1089,8 +1091,8 @@ function RoadmapGrid({
|
|
|
1089
1091
|
|
|
1090
1092
|
var DEFAULT_ENDPOINT3 = "/api/roadmap";
|
|
1091
1093
|
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 =
|
|
1094
|
+
var DEFAULT_SEARCH_PARAM_KEY2 = _chunkYWQ3VXPLcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
1095
|
+
var DEFAULT_STATUS_PARAM_KEY2 = _chunkYWQ3VXPLcjs.DEV_SECTION_PARAM_KEYS.status;
|
|
1094
1096
|
function RoadmapView({
|
|
1095
1097
|
endpoint = DEFAULT_ENDPOINT3,
|
|
1096
1098
|
initialItems,
|
|
@@ -1109,23 +1111,23 @@ function RoadmapView({
|
|
|
1109
1111
|
const qs = listParams.toString();
|
|
1110
1112
|
const url = qs ? `${endpoint}?${qs}` : endpoint;
|
|
1111
1113
|
const initialData = _react.useMemo.call(void 0, () => initialItems ? { items: initialItems } : void 0, [initialItems]);
|
|
1112
|
-
const { data, setData, isLoading, error, reload } =
|
|
1114
|
+
const { data, setData, isLoading, error, reload } = _chunkQEFDGI3Zcjs.useSelfFetch.call(void 0, url, {
|
|
1113
1115
|
initialData
|
|
1114
1116
|
});
|
|
1115
1117
|
const items = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _22 => _22.items]), () => ( []));
|
|
1116
|
-
|
|
1117
|
-
const syncInPage =
|
|
1118
|
+
_chunk5PK22JP7cjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkOJZBZH56cjs.STICKY_HEADER_OFFSET_PX });
|
|
1119
|
+
const syncInPage = _chunk2JO5HNEFcjs.usePageDataSync.call(void 0, _optionalChain([data, 'optionalAccess', _23 => _23.sync]), isLoading && !data);
|
|
1118
1120
|
if (error) {
|
|
1119
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1121
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.LoadError, { message: "Failed to load roadmap.", onRetry: reload });
|
|
1120
1122
|
}
|
|
1121
1123
|
if (isLoading && !data) {
|
|
1122
1124
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SYNCED_LIST_CLASS, children: [
|
|
1123
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1125
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.DataSyncLine, { loading: true }),
|
|
1124
1126
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoadmapGridQuarterSkeleton, { showLeftMargin })
|
|
1125
1127
|
] });
|
|
1126
1128
|
}
|
|
1127
1129
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SYNCED_LIST_CLASS, children: [
|
|
1128
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1130
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.DataSyncLine, { sync: _optionalChain([data, 'optionalAccess', _24 => _24.sync]) }),
|
|
1129
1131
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1130
1132
|
RoadmapGrid,
|
|
1131
1133
|
{
|
|
@@ -1145,11 +1147,11 @@ function RoadmapView({
|
|
|
1145
1147
|
|
|
1146
1148
|
// src/components/shared/delivery/delivery-table.tsx
|
|
1147
1149
|
|
|
1148
|
-
var TABLE_FRAME_CLASS = `w-full ${
|
|
1150
|
+
var TABLE_FRAME_CLASS = `w-full ${_chunkOH5LAH3Xcjs.CONTENT_CARD_SKELETON_FRAME_CLASS}`;
|
|
1149
1151
|
var ROW_SEPARATOR_CLASS = "border-b border-ods-border last:border-b-0";
|
|
1150
1152
|
var DELIVERY_TABLE_SKELETON_ROWS = 5;
|
|
1151
1153
|
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,
|
|
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)) }) });
|
|
1153
1155
|
}
|
|
1154
1156
|
function DeliveryTable({ items, isLoading = false }) {
|
|
1155
1157
|
if (isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeliveryTableSkeleton, {});
|
|
@@ -1162,7 +1164,7 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1162
1164
|
// → `#delivery-<external_id>`; `useScrollToHash` in
|
|
1163
1165
|
// `delivery-lists.tsx` finds the row by id and scrolls. The
|
|
1164
1166
|
// 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,
|
|
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)
|
|
1166
1168
|
)) }) });
|
|
1167
1169
|
}
|
|
1168
1170
|
|
|
@@ -1171,8 +1173,8 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1171
1173
|
|
|
1172
1174
|
var DEFAULT_COMPLETED_ENDPOINT = "/api/delivery/completed";
|
|
1173
1175
|
var DEFAULT_IN_PROGRESS_ENDPOINT = "/api/delivery/in-progress";
|
|
1174
|
-
var DEFAULT_SEARCH_PARAM_KEY3 =
|
|
1175
|
-
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;
|
|
1176
1178
|
function DeliveryLists({
|
|
1177
1179
|
completedApiEndpoint = DEFAULT_COMPLETED_ENDPOINT,
|
|
1178
1180
|
inProgressApiEndpoint = DEFAULT_IN_PROGRESS_ENDPOINT,
|
|
@@ -1207,8 +1209,8 @@ function DeliveryLists({
|
|
|
1207
1209
|
const queryString = params.toString();
|
|
1208
1210
|
const queryParam = queryString ? `?${queryString}` : "";
|
|
1209
1211
|
const [completedResponse, inProgressResponse] = await Promise.all([
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
+
_chunk7PNRXJX2cjs.contentFetch.call(void 0, `${completedApiEndpoint}${queryParam}`),
|
|
1213
|
+
_chunk7PNRXJX2cjs.contentFetch.call(void 0, `${inProgressApiEndpoint}${queryParam}`)
|
|
1212
1214
|
]);
|
|
1213
1215
|
if (!completedResponse.ok || !inProgressResponse.ok) {
|
|
1214
1216
|
throw new Error("Failed to fetch delivery items");
|
|
@@ -1246,19 +1248,19 @@ function DeliveryLists({
|
|
|
1246
1248
|
]);
|
|
1247
1249
|
const filteredCompleted = _optionalChain([data, 'optionalAccess', _25 => _25.completed]) || [];
|
|
1248
1250
|
const filteredInProgress = _optionalChain([data, 'optionalAccess', _26 => _26.inProgress]) || [];
|
|
1249
|
-
|
|
1250
|
-
const syncInPage =
|
|
1251
|
+
_chunk5PK22JP7cjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkOJZBZH56cjs.STICKY_HEADER_OFFSET_PX });
|
|
1252
|
+
const syncInPage = _chunk2JO5HNEFcjs.usePageDataSync.call(void 0, sync, isLoading && !data);
|
|
1251
1253
|
const showCompleted = true;
|
|
1252
1254
|
const showInProgress = true;
|
|
1253
1255
|
const hasActiveFilters = searchQuery !== "" || taskTypeFilter !== "all";
|
|
1254
1256
|
const hasResults = showCompleted && filteredCompleted.length > 0 || showInProgress && filteredInProgress.length > 0;
|
|
1255
1257
|
if (error) {
|
|
1256
|
-
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() }) });
|
|
1257
1259
|
}
|
|
1258
1260
|
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,
|
|
1261
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUPAE4IV5cjs.DataSyncLine, { sync, loading: isLoading && !data }),
|
|
1260
1262
|
!isLoading && !hasResults && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1261
|
-
|
|
1263
|
+
_chunk2JO5HNEFcjs.ListEmptyState,
|
|
1262
1264
|
{
|
|
1263
1265
|
isFiltered: hasActiveFilters,
|
|
1264
1266
|
filtered: {
|
|
@@ -1368,7 +1370,7 @@ function useLegalDocs(docType, options = {}) {
|
|
|
1368
1370
|
const isCurrent = () => requestId === requestIdRef.current;
|
|
1369
1371
|
const fetchDocument = async () => {
|
|
1370
1372
|
try {
|
|
1371
|
-
const response = await
|
|
1373
|
+
const response = await _chunk7PNRXJX2cjs.contentFetch.call(void 0, effectiveEndpoint);
|
|
1372
1374
|
if (response.status === 404) {
|
|
1373
1375
|
if (!isCurrent()) return;
|
|
1374
1376
|
setData(null);
|
|
@@ -1449,7 +1451,7 @@ function useLegalDocuments(options = {}) {
|
|
|
1449
1451
|
let current = enabled;
|
|
1450
1452
|
const load = async () => {
|
|
1451
1453
|
try {
|
|
1452
|
-
const response = await
|
|
1454
|
+
const response = await _chunk7PNRXJX2cjs.contentFetch.call(void 0, endpoint);
|
|
1453
1455
|
if (!response.ok) throw new Error(`Failed to fetch legal documents: ${response.status} ${response.statusText}`);
|
|
1454
1456
|
const payload = await response.json();
|
|
1455
1457
|
if (current) setState({ documents: toLegalDocumentSummaries(payload), isLoading: false, error: null });
|
|
@@ -1483,7 +1485,7 @@ function legalDocumentStampLabel(doc) {
|
|
|
1483
1485
|
}
|
|
1484
1486
|
var LEGAL_DOCUMENT_SKELETON_SECTIONS = 3;
|
|
1485
1487
|
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,
|
|
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 }) });
|
|
1487
1489
|
}
|
|
1488
1490
|
function LegalDocumentPage({
|
|
1489
1491
|
docType,
|
|
@@ -1495,7 +1497,7 @@ function LegalDocumentPage({
|
|
|
1495
1497
|
emptyStateMessage: emptyStateMessageProp,
|
|
1496
1498
|
initialData = null,
|
|
1497
1499
|
apiEndpoint,
|
|
1498
|
-
MarkdownRenderer =
|
|
1500
|
+
MarkdownRenderer = _chunkUPAE4IV5cjs.RichMarkdownRenderer,
|
|
1499
1501
|
documentsEndpoint,
|
|
1500
1502
|
backButton,
|
|
1501
1503
|
faq,
|
|
@@ -1517,7 +1519,7 @@ function LegalDocumentPage({
|
|
|
1517
1519
|
const emptyStateMessage = _nullishCoalesce(emptyStateMessageProp, () => ( `${title} is not available at this time.`));
|
|
1518
1520
|
const subtitle = isLoading ? void 0 : _nullishCoalesce(legalDocumentStampLabel(data), () => ( fallbackDescription));
|
|
1519
1521
|
const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1520
|
-
|
|
1522
|
+
_chunkSIDDZZKLcjs.PageLayout,
|
|
1521
1523
|
{
|
|
1522
1524
|
title,
|
|
1523
1525
|
subtitle,
|
|
@@ -1526,7 +1528,7 @@ function LegalDocumentPage({
|
|
|
1526
1528
|
titleSize: "h1",
|
|
1527
1529
|
titleWrap: true,
|
|
1528
1530
|
children: [
|
|
1529
|
-
/* @__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 }),
|
|
1530
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: [
|
|
1531
1533
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rounded-lg border border-ods-error bg-ods-error-secondary p-6", children: [
|
|
1532
1534
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "mb-2 text-ods-error", children: errorTitle }),
|
|
@@ -1546,11 +1548,11 @@ function LegalDocumentPage({
|
|
|
1546
1548
|
"for more information."
|
|
1547
1549
|
] })
|
|
1548
1550
|
] }) }) }) }) }),
|
|
1549
|
-
faqSlot && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1551
|
+
faqSlot && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZGWS3NJRcjs.FaqSection, { ..._chunkZGWS3NJRcjs.pageFaqProps.call(void 0, faqSlot) })
|
|
1550
1552
|
]
|
|
1551
1553
|
}
|
|
1552
1554
|
);
|
|
1553
|
-
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 });
|
|
1554
1556
|
}
|
|
1555
1557
|
|
|
1556
1558
|
|