@flamingo-stack/openframe-frontend-core 0.0.826 → 0.0.827
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-O4IQCJAX.cjs → case-study-card-QMFGPABF.cjs} +2 -2
- package/dist/{chunk-QYJZDEG7.cjs → chunk-3WKQ2GCR.cjs} +4 -4
- package/dist/{chunk-5AQKXEMI.cjs → chunk-4ZH7RPEA.cjs} +178 -178
- package/dist/{chunk-QS6AKUUL.cjs → chunk-6GPMVHJN.cjs} +1 -1
- package/dist/{chunk-PJY3SYCS.cjs → chunk-6SFCI6D4.cjs} +20 -20
- package/dist/{chunk-37OYBX7W.cjs → chunk-6ZLCEIIC.cjs} +32 -32
- package/dist/{chunk-63T2KKDZ.cjs → chunk-7VC5FVWT.cjs} +62 -62
- package/dist/{chunk-74GWFGH2.cjs → chunk-ALRX2VIY.cjs} +11 -11
- package/dist/{chunk-TJG2BJ5J.cjs → chunk-B5H7RKFF.cjs} +4 -4
- package/dist/{chunk-2TQJSB62.cjs → chunk-BGT6JFMP.cjs} +12342 -12354
- package/dist/{chunk-6G4WRMEM.cjs → chunk-DR4P7AEU.cjs} +3 -3
- package/dist/{chunk-DRSFR5AC.cjs → chunk-FMSAN6SR.cjs} +101 -101
- package/dist/{chunk-XDHQC4XH.cjs → chunk-K6X7VP2Y.cjs} +39 -39
- package/dist/{chunk-IWQ2LJGW.cjs → chunk-LKP5R3EQ.cjs} +2 -2
- package/dist/{chunk-GZAPOCKS.cjs → chunk-OKTNRGM5.cjs} +49 -49
- package/dist/{chunk-HQ4FKHOO.cjs → chunk-QMQWXGCH.cjs} +71 -71
- package/dist/{chunk-AJM4YZTW.cjs → chunk-RPKWEBHC.cjs} +3 -3
- package/dist/{chunk-K34TTZAE.cjs → chunk-SVCTAOJR.cjs} +2 -2
- package/dist/{chunk-JDR72QFU.cjs → chunk-UULSSD56.cjs} +5 -5
- package/dist/{chunk-PWAKRRRO.cjs → chunk-UWGPYAB3.cjs} +46 -46
- package/dist/{chunk-MDEOCOIE.cjs → chunk-VAIML6YU.cjs} +17 -17
- package/dist/{chunk-HJAPXKWK.cjs → chunk-XPF74L76.cjs} +2 -2
- package/dist/{chunk-WGMU45NV.cjs → chunk-YKUL6JBI.cjs} +13 -13
- package/dist/{chunk-TYJ73DHW.cjs → chunk-YMLRDVPO.cjs} +8 -8
- package/dist/{chunk-EJNDTSKY.cjs → chunk-ZT7JHN7G.cjs} +74 -74
- package/dist/{cloud-tenants-F67KQ5GC.cjs → cloud-tenants-LKTWIZNS.cjs} +8 -8
- package/dist/components/case-studies/index.cjs +23 -23
- package/dist/components/chat/index.cjs +6 -6
- package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +1 -1
- package/dist/components/chat/stream/chat-stream-reducer.js +2 -15
- package/dist/components/chat/thinking-display.d.ts.map +1 -1
- package/dist/components/chat/thinking-display.js +2 -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/help-center-pages/index.cjs +83 -83
- package/dist/components/index.cjs +53 -53
- package/dist/components/meeting-scheduler/index.cjs +34 -34
- 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 +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/ui/index.cjs +8 -8
- package/dist/{devices-SJORCARH.cjs → devices-JWG72ANF.cjs} +9 -9
- package/dist/{embeddable-chat-7Z4CEZJL.cjs → embeddable-chat-5UT6UHEO.cjs} +76 -76
- package/dist/index.cjs +12 -12
- package/dist/{knowledge-QXILUVEM.cjs → knowledge-DQXVSHME.cjs} +9 -9
- package/dist/{logs-E3KQQQD6.cjs → logs-Z33VBTVX.cjs} +15 -15
- package/dist/{policies-IOYQY6TF.cjs → policies-XE4UMH6Z.cjs} +12 -12
- package/dist/{scripts-E5TWWUNP.cjs → scripts-MECQG5GG.cjs} +13 -13
- package/dist/{software-update-QZGYG4TD.cjs → software-update-PCSIA6BP.cjs} +11 -11
- package/package.json +1 -1
- package/src/components/chat/stream/chat-stream-reducer.ts +4 -18
- package/src/components/chat/thinking-display.tsx +2 -1
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkFMSAN6SRcjs = require('./chunk-FMSAN6SR.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkGRHF5SWLcjs = require('./chunk-GRHF5SWL.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk6GPMVHJNcjs = require('./chunk-6GPMVHJN.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkFX35L4Y6cjs = require('./chunk-FX35L4Y6.cjs');
|
|
@@ -56,7 +56,7 @@ function pickBadgePaletteColor({
|
|
|
56
56
|
var _jsxruntime = require('react/jsx-runtime');
|
|
57
57
|
function PaletteBadge({ text, color, className, variant = "button" }) {
|
|
58
58
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
59
|
-
|
|
59
|
+
_chunk6GPMVHJNcjs.StatusBadge,
|
|
60
60
|
{
|
|
61
61
|
text,
|
|
62
62
|
colorScheme: isBadgePaletteKey(color) ? color : "default",
|
|
@@ -145,12 +145,12 @@ var STATUS_BADGE_SCHEME = {
|
|
|
145
145
|
abandoned: "default"
|
|
146
146
|
};
|
|
147
147
|
function EmployeeEntryBadge({ children }) {
|
|
148
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
148
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.StatusBadge, { text: children, colorScheme: "default", variant: "button", singleLine: true });
|
|
149
149
|
}
|
|
150
150
|
function EmployeeEntryCard(props) {
|
|
151
151
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || props.loading) {
|
|
152
152
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
153
|
-
|
|
153
|
+
_chunkFMSAN6SRcjs.AdminContentCard,
|
|
154
154
|
{
|
|
155
155
|
loading: true,
|
|
156
156
|
title: "",
|
|
@@ -172,9 +172,9 @@ function LoadedEmployeeEntryCard({
|
|
|
172
172
|
anchorProps,
|
|
173
173
|
className
|
|
174
174
|
}) {
|
|
175
|
-
const authorAvatar =
|
|
175
|
+
const authorAvatar = _chunkFMSAN6SRcjs.useProxiedImageUrl.call(void 0, _optionalChain([entry, 'access', _7 => _7.author, 'optionalAccess', _8 => _8.avatar_url]), { directHttps: false });
|
|
176
176
|
const card = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
177
|
-
|
|
177
|
+
_chunkFMSAN6SRcjs.AdminContentCard,
|
|
178
178
|
{
|
|
179
179
|
imageUrl: entry.featured_image || entry.main_video_thumbnail,
|
|
180
180
|
placeholderUrl,
|
|
@@ -182,7 +182,7 @@ function LoadedEmployeeEntryCard({
|
|
|
182
182
|
summary: (_nullishCoalesce(entry.summary, () => ( ""))).slice(0, 140) || "No description",
|
|
183
183
|
badges: entry.status || extraBadges ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
184
184
|
entry.status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
185
|
-
|
|
185
|
+
_chunk6GPMVHJNcjs.StatusBadge,
|
|
186
186
|
{
|
|
187
187
|
text: entry.status,
|
|
188
188
|
colorScheme: _nullishCoalesce(STATUS_BADGE_SCHEME[entry.status], () => ( "default")),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6SFCI6D4cjs = require('./chunk-6SFCI6D4.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ var _chunkENMPSEEQcjs = require('./chunk-ENMPSEEQ.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkYKUL6JBIcjs = require('./chunk-YKUL6JBI.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -24,7 +24,7 @@ var _chunkWGMU45NVcjs = require('./chunk-WGMU45NV.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk4ZH7RPEAcjs = require('./chunk-4ZH7RPEA.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkDU6AF77Xcjs = require('./chunk-DU6AF77X.cjs');
|
|
@@ -41,13 +41,13 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkQMQWXGCHcjs = require('./chunk-QMQWXGCH.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunkBGT6JFMPcjs = require('./chunk-BGT6JFMP.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
var _chunkEWCFJLNUcjs = require('./chunk-EWCFJLNU.cjs');
|
|
@@ -57,7 +57,7 @@ var _chunkEWCFJLNUcjs = require('./chunk-EWCFJLNU.cjs');
|
|
|
57
57
|
var _chunkW4VEDSAXcjs = require('./chunk-W4VEDSAX.cjs');
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var _chunkYMLRDVPOcjs = require('./chunk-YMLRDVPO.cjs');
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
|
|
@@ -66,7 +66,7 @@ var _chunkTYJ73DHWcjs = require('./chunk-TYJ73DHW.cjs');
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
var
|
|
69
|
+
var _chunkFMSAN6SRcjs = require('./chunk-FMSAN6SR.cjs');
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
@@ -75,7 +75,7 @@ var _chunkDRSFR5ACcjs = require('./chunk-DRSFR5AC.cjs');
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
var
|
|
78
|
+
var _chunk6GPMVHJNcjs = require('./chunk-6GPMVHJN.cjs');
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
@@ -119,8 +119,8 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
119
119
|
var DEFAULT_ENDPOINT = "/api/releases";
|
|
120
120
|
var PRODUCT_RELEASES_PAGE_SIZE = 5;
|
|
121
121
|
var PAGER_ROW_CLASS = "flex w-full justify-center";
|
|
122
|
-
var DEFAULT_SEARCH_PARAM_KEY =
|
|
123
|
-
var DEFAULT_STATUS_PARAM_KEY =
|
|
122
|
+
var DEFAULT_SEARCH_PARAM_KEY = _chunkQMQWXGCHcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
123
|
+
var DEFAULT_STATUS_PARAM_KEY = _chunkQMQWXGCHcjs.DEV_SECTION_PARAM_KEYS.releaseStatus;
|
|
124
124
|
var DEFAULT_PAGE_PARAM_KEY = "page";
|
|
125
125
|
function ReleaseRow({
|
|
126
126
|
release,
|
|
@@ -128,13 +128,13 @@ function ReleaseRow({
|
|
|
128
128
|
buildCardProps
|
|
129
129
|
}) {
|
|
130
130
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
131
|
-
const cta =
|
|
131
|
+
const cta = _chunkQMQWXGCHcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _2 => _2.composeContentUrl]), {
|
|
132
132
|
type: "product_release",
|
|
133
133
|
slug: release.slug,
|
|
134
134
|
basePath,
|
|
135
135
|
platforms: release.product_release_platforms
|
|
136
136
|
});
|
|
137
|
-
const { target, rel } =
|
|
137
|
+
const { target, rel } = _chunk6GPMVHJNcjs.useEntityCardLink.call(void 0, { href: cta.href, targetPlatform: cta.targetPlatform });
|
|
138
138
|
const onClick = (e) => {
|
|
139
139
|
if (e.defaultPrevented || _chunkDAKGX2WFcjs.isModifierClick.call(void 0, e) || target === "_blank") return;
|
|
140
140
|
e.preventDefault();
|
|
@@ -145,7 +145,7 @@ function ReleaseRow({
|
|
|
145
145
|
});
|
|
146
146
|
};
|
|
147
147
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
148
|
-
|
|
148
|
+
_chunkFMSAN6SRcjs.ProductReleaseCard,
|
|
149
149
|
{
|
|
150
150
|
size: "lg",
|
|
151
151
|
title: release.title,
|
|
@@ -161,7 +161,7 @@ function ProductReleasesView({
|
|
|
161
161
|
initialData,
|
|
162
162
|
itemsPerPage = PRODUCT_RELEASES_PAGE_SIZE,
|
|
163
163
|
basePath = "/releases",
|
|
164
|
-
buildCardProps =
|
|
164
|
+
buildCardProps = _chunkFMSAN6SRcjs.buildProductReleaseCardProps,
|
|
165
165
|
searchParamKey = DEFAULT_SEARCH_PARAM_KEY,
|
|
166
166
|
statusParamKey = DEFAULT_STATUS_PARAM_KEY,
|
|
167
167
|
pageParamKey = DEFAULT_PAGE_PARAM_KEY,
|
|
@@ -183,11 +183,11 @@ function ProductReleasesView({
|
|
|
183
183
|
isLoading: fetching,
|
|
184
184
|
error,
|
|
185
185
|
reload
|
|
186
|
-
} =
|
|
186
|
+
} = _chunkYMLRDVPOcjs.useSelfFetch.call(void 0, inScope ? null : `${endpoint}?${listParams.toString()}`, {
|
|
187
187
|
initialData
|
|
188
188
|
});
|
|
189
189
|
const isLoading = inScope || fetching;
|
|
190
|
-
|
|
190
|
+
_chunk6SFCI6D4cjs.usePageDataSync.call(void 0, _optionalChain([data, 'optionalAccess', _3 => _3.sync]), isLoading && !data);
|
|
191
191
|
const releases = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _4 => _4.data]), () => ( []));
|
|
192
192
|
const totalCount = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _5 => _5.count]), () => ( 0));
|
|
193
193
|
const totalPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, totalCount, itemsPerPage);
|
|
@@ -206,10 +206,10 @@ function ProductReleasesView({
|
|
|
206
206
|
router.replace(`${pathname}?${params.toString()}`, { scroll: false });
|
|
207
207
|
};
|
|
208
208
|
if (error) {
|
|
209
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "w-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
209
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "w-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.LoadError, { message: "Failed to load releases.", onRetry: reload }) });
|
|
210
210
|
}
|
|
211
211
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.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,
|
|
212
|
-
|
|
212
|
+
_chunk6SFCI6D4cjs.ListEmptyState,
|
|
213
213
|
{
|
|
214
214
|
isFiltered: hasActiveFilters,
|
|
215
215
|
filtered: {
|
|
@@ -230,7 +230,7 @@ function ProductReleasesView({
|
|
|
230
230
|
style: { visibility: isLoading || release ? "visible" : "hidden" },
|
|
231
231
|
children: !isLoading && release ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReleaseRow, { release, basePath, buildCardProps }) : (
|
|
232
232
|
// Read, or a hidden slot past the page's last release: the card draws its own skeleton.
|
|
233
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
233
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFMSAN6SRcjs.ProductReleaseCard, { loading: true, size: "lg", title: "", version: "", formattedDate: "" })
|
|
234
234
|
)
|
|
235
235
|
}
|
|
236
236
|
);
|
|
@@ -298,10 +298,10 @@ function MediaGalleryStrip({ items, className }) {
|
|
|
298
298
|
mediaItem.id || index
|
|
299
299
|
);
|
|
300
300
|
}
|
|
301
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: tileClass, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
301
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: tileClass, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.Video, { url: mediaItem.media_url, layout: "native" }) }, mediaItem.id || index);
|
|
302
302
|
}) }),
|
|
303
303
|
galleryImages.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
304
|
-
|
|
304
|
+
_chunkFMSAN6SRcjs.ImageGalleryModal,
|
|
305
305
|
{
|
|
306
306
|
images: galleryImages,
|
|
307
307
|
isOpen: galleryOpen,
|
|
@@ -322,7 +322,7 @@ function MediaGalleryStripSkeleton({
|
|
|
322
322
|
var _lucidereact = require('lucide-react');
|
|
323
323
|
|
|
324
324
|
|
|
325
|
-
var DefaultMarkdownRenderer =
|
|
325
|
+
var DefaultMarkdownRenderer = _chunk4ZH7RPEAcjs.RichMarkdownRenderer;
|
|
326
326
|
var CONTENT_STACK_CLASS = "space-y-6 content-md:space-y-8";
|
|
327
327
|
var RELEASE_TITLE_SKELETON_LINES = { phone: 7, md: 4, lg: 2 };
|
|
328
328
|
var METADATA_GRID_CLASS = "grid w-full grid-cols-1 overflow-hidden rounded-md border border-ods-border content-md:grid-cols-4";
|
|
@@ -371,14 +371,14 @@ function ReleaseDetailPage({
|
|
|
371
371
|
shell = true
|
|
372
372
|
}) {
|
|
373
373
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
374
|
-
const captions =
|
|
375
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
374
|
+
const captions = _chunkBGT6JFMPcjs.useCaptions.call(void 0, );
|
|
375
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
376
376
|
const seed = initialData == null ? void 0 : initialData;
|
|
377
377
|
const {
|
|
378
378
|
data: release,
|
|
379
379
|
isLoading,
|
|
380
380
|
error
|
|
381
|
-
} =
|
|
381
|
+
} = _chunkYMLRDVPOcjs.useSelfFetch.call(void 0, slug ? `${endpoint}/${encodeURIComponent(slug)}` : null, {
|
|
382
382
|
initialData: seed
|
|
383
383
|
});
|
|
384
384
|
const showBackButton = backButton !== false;
|
|
@@ -478,7 +478,7 @@ function ReleaseDetailPage({
|
|
|
478
478
|
children: [
|
|
479
479
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTENT_STACK_CLASS, children: [
|
|
480
480
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
481
|
-
|
|
481
|
+
_chunk4ZH7RPEAcjs.EntityTagBadges,
|
|
482
482
|
{
|
|
483
483
|
tags: view.product_release_tags,
|
|
484
484
|
max: RELEASE_TAG_ROW_MAX,
|
|
@@ -487,7 +487,7 @@ function ReleaseDetailPage({
|
|
|
487
487
|
),
|
|
488
488
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: METADATA_GRID_CLASS, children: [
|
|
489
489
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
490
|
-
|
|
490
|
+
_chunkFMSAN6SRcjs.EntityMetadataValueCell,
|
|
491
491
|
{
|
|
492
492
|
value: releaseType,
|
|
493
493
|
label: RELEASE_TYPE_LABEL,
|
|
@@ -495,7 +495,7 @@ function ReleaseDetailPage({
|
|
|
495
495
|
}
|
|
496
496
|
),
|
|
497
497
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
498
|
-
|
|
498
|
+
_chunkFMSAN6SRcjs.EntityMetadataValueCell,
|
|
499
499
|
{
|
|
500
500
|
value: releaseStatus,
|
|
501
501
|
label: RELEASE_STATUS_LABEL,
|
|
@@ -503,16 +503,16 @@ function ReleaseDetailPage({
|
|
|
503
503
|
}
|
|
504
504
|
),
|
|
505
505
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
506
|
-
|
|
506
|
+
_chunkFMSAN6SRcjs.EntityMetadataValueCell,
|
|
507
507
|
{
|
|
508
|
-
value: releaseDate ?
|
|
508
|
+
value: releaseDate ? _chunkFMSAN6SRcjs.formatReleaseDate.call(void 0, releaseDate) : "",
|
|
509
509
|
label: RELEASE_DATE_LABEL,
|
|
510
510
|
className: METADATA_CELL_EDGE_CLASS,
|
|
511
511
|
uppercase: false
|
|
512
512
|
}
|
|
513
513
|
),
|
|
514
514
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
515
|
-
|
|
515
|
+
_chunkFMSAN6SRcjs.EntityMetadataAuthorCell,
|
|
516
516
|
{
|
|
517
517
|
author: _nullishCoalesce(author, () => ( { full_name: null, avatar_url: null })),
|
|
518
518
|
authorHref: _optionalChain([author, 'optionalAccess', _8 => _8.full_name]) ? authorHref : void 0
|
|
@@ -530,18 +530,18 @@ function ReleaseDetailPage({
|
|
|
530
530
|
highlightVideoThumbnail,
|
|
531
531
|
title: releaseTitle,
|
|
532
532
|
videoBites,
|
|
533
|
-
bitesTitle:
|
|
533
|
+
bitesTitle: _chunk6GPMVHJNcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
534
534
|
filterPublishedBites: true,
|
|
535
|
-
bitesProfile:
|
|
535
|
+
bitesProfile: _chunk6GPMVHJNcjs.toStripProfile.call(void 0, author),
|
|
536
536
|
bitesHref: typeof view.slug === "string" ? `/releases/${view.slug}` : void 0,
|
|
537
537
|
captionsUrl,
|
|
538
538
|
highlightCaptionsUrl
|
|
539
539
|
}
|
|
540
540
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
541
|
-
youtubeUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
542
|
-
!youtubeUrl && mainVideoUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
541
|
+
youtubeUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.Video, { kind: "youtube", url: youtubeUrl, title: `${releaseTitle} - Video`, layout: "native" }),
|
|
542
|
+
!youtubeUrl && mainVideoUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.Video, { url: mainVideoUrl, captionsUrl, layout: "centered" }),
|
|
543
543
|
highlightVideoUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
544
|
-
|
|
544
|
+
_chunk6GPMVHJNcjs.Video,
|
|
545
545
|
{
|
|
546
546
|
url: highlightVideoUrl,
|
|
547
547
|
poster: highlightVideoThumbnail,
|
|
@@ -551,7 +551,7 @@ function ReleaseDetailPage({
|
|
|
551
551
|
)
|
|
552
552
|
] }) }),
|
|
553
553
|
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 }) }),
|
|
554
|
-
hasBreakingChanges && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
554
|
+
hasBreakingChanges && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.Card, { className: "border-ods-error bg-ods-error/10", "data-loading-optional": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.CardContent, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
555
555
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-6 w-6 text-ods-error" }),
|
|
556
556
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
557
557
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-ods-error text-h3", children: "Breaking Changes" }),
|
|
@@ -559,7 +559,7 @@ function ReleaseDetailPage({
|
|
|
559
559
|
] })
|
|
560
560
|
] }) }) }),
|
|
561
561
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
562
|
-
|
|
562
|
+
_chunk4ZH7RPEAcjs.ReleaseChangelogSection,
|
|
563
563
|
{
|
|
564
564
|
title: "Breaking Changes",
|
|
565
565
|
entries: breakingChanges || [],
|
|
@@ -571,7 +571,7 @@ function ReleaseDetailPage({
|
|
|
571
571
|
}
|
|
572
572
|
),
|
|
573
573
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
574
|
-
|
|
574
|
+
_chunk4ZH7RPEAcjs.ReleaseChangelogSection,
|
|
575
575
|
{
|
|
576
576
|
title: "Features Added",
|
|
577
577
|
entries: featuresAdded || [],
|
|
@@ -581,7 +581,7 @@ function ReleaseDetailPage({
|
|
|
581
581
|
}
|
|
582
582
|
),
|
|
583
583
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
584
|
-
|
|
584
|
+
_chunk4ZH7RPEAcjs.ReleaseChangelogSection,
|
|
585
585
|
{
|
|
586
586
|
title: "Bugs Fixed",
|
|
587
587
|
entries: bugFixed || [],
|
|
@@ -591,7 +591,7 @@ function ReleaseDetailPage({
|
|
|
591
591
|
}
|
|
592
592
|
),
|
|
593
593
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
594
|
-
|
|
594
|
+
_chunk4ZH7RPEAcjs.ReleaseChangelogSection,
|
|
595
595
|
{
|
|
596
596
|
title: "Improvements",
|
|
597
597
|
entries: improvements || [],
|
|
@@ -620,9 +620,9 @@ function ReleaseDetailPage({
|
|
|
620
620
|
return deliveryLoading ? (
|
|
621
621
|
// The loaded preview's frame, its height written into the markup (`fixedHeight`), so the tables'
|
|
622
622
|
// loading state takes the collapsed preview's place, toggle row included. Inert: nothing to open yet.
|
|
623
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { inert: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
623
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { inert: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.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 }) }) }) })
|
|
624
624
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
625
|
-
|
|
625
|
+
_chunk4ZH7RPEAcjs.FadePreview,
|
|
626
626
|
{
|
|
627
627
|
hiddenCount: deliveryCount - 1,
|
|
628
628
|
collapsedHeight: DELIVERY_PREVIEW_HEIGHT,
|
|
@@ -634,7 +634,7 @@ function ReleaseDetailPage({
|
|
|
634
634
|
] }),
|
|
635
635
|
(_optionalChain([githubReleases, 'optionalAccess', _9 => _9.length]) || _optionalChain([knowledgeBaseLinks, 'optionalAccess', _10 => _10.length]) || migrationGuideUrl || documentationUrl) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-full space-y-1", "data-loading-optional": true, children: [
|
|
636
636
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "tracking-[-0.28px] text-ods-text-secondary text-h5", children: "Related Links" }),
|
|
637
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
637
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.Card, { className: "border-ods-border bg-ods-card p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
638
638
|
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: [
|
|
639
639
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEWCFJLNUcjs.GithubClassicIcon, { className: "shrink-0", size: 24, color: "var(--color-text-secondary)" }),
|
|
640
640
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children: "Github Release" }),
|
|
@@ -702,7 +702,7 @@ function ReleaseDetailPage({
|
|
|
702
702
|
]
|
|
703
703
|
}
|
|
704
704
|
);
|
|
705
|
-
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
705
|
+
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGT6JFMPcjs.LoadingFallback, { label: "Loading the release", children: page }) : page);
|
|
706
706
|
}
|
|
707
707
|
|
|
708
708
|
// src/components/shared/roadmap/use-roadmap-voting.ts
|
|
@@ -725,7 +725,7 @@ function useRoadmapVoting(options = {}) {
|
|
|
725
725
|
const { getSignals } = _chunkIKWQW3YJcjs.useHumanitySignals.call(void 0, );
|
|
726
726
|
const [votes, setVotes] = _react.useState.call(void 0, NO_VOTES);
|
|
727
727
|
const [loadedKey, setLoadedKey] = _react.useState.call(void 0, null);
|
|
728
|
-
const hydrated =
|
|
728
|
+
const hydrated = _chunkBGT6JFMPcjs.useIsHydrated.call(void 0, );
|
|
729
729
|
if (hydrated && loadedKey !== storageKey) {
|
|
730
730
|
setLoadedKey(storageKey);
|
|
731
731
|
setVotes(readStoredVotes(storageKey));
|
|
@@ -824,7 +824,7 @@ function RoadmapGridSkeleton({
|
|
|
824
824
|
columns = 2,
|
|
825
825
|
votes = true
|
|
826
826
|
}) {
|
|
827
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.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,
|
|
827
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.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, _chunkFMSAN6SRcjs.RoadmapCard, { loading: true, onVote: votes ? NO_VOTE : void 0 }) }, i)) });
|
|
828
828
|
}
|
|
829
829
|
var DEFAULT_BUILD_REFRESH_URL = (taskId) => `/api/roadmap/${taskId}`;
|
|
830
830
|
var BACKLOG = "Backlog";
|
|
@@ -883,10 +883,10 @@ function RoadmapGridSingle({
|
|
|
883
883
|
// and scrolls.
|
|
884
884
|
// `data-loading-item`: how many items a quarter holds is read data (the loading-state gate measures it as a list).
|
|
885
885
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
886
|
-
|
|
886
|
+
_chunkFMSAN6SRcjs.RoadmapCard,
|
|
887
887
|
{
|
|
888
888
|
item,
|
|
889
|
-
id:
|
|
889
|
+
id: _chunkQMQWXGCHcjs.devSectionAnchorId.call(void 0, "roadmap", item.id),
|
|
890
890
|
userVote: getVote(item.id),
|
|
891
891
|
onVote: onVote ? (voteType) => onVote(item.id, voteType) : void 0,
|
|
892
892
|
isVoting: votingTasks.has(item.id)
|
|
@@ -1056,7 +1056,7 @@ function RoadmapGrid({
|
|
|
1056
1056
|
);
|
|
1057
1057
|
}
|
|
1058
1058
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1059
|
-
|
|
1059
|
+
_chunk4ZH7RPEAcjs.Accordion,
|
|
1060
1060
|
{
|
|
1061
1061
|
type: "multiple",
|
|
1062
1062
|
value: expandedQuarters,
|
|
@@ -1066,14 +1066,14 @@ function RoadmapGrid({
|
|
|
1066
1066
|
const itemCount = _optionalChain([itemsByQuarter, 'access', _19 => _19[quarter], 'optionalAccess', _20 => _20.length]) || 0;
|
|
1067
1067
|
const isExpanded = expandedQuarters.includes(quarter);
|
|
1068
1068
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1069
|
-
|
|
1069
|
+
_chunk4ZH7RPEAcjs.AccordionItem,
|
|
1070
1070
|
{
|
|
1071
1071
|
value: quarter,
|
|
1072
1072
|
id: `quarter-${quarter.replace(/\s+/g, "-").toLowerCase()}`,
|
|
1073
1073
|
className: "border-0",
|
|
1074
1074
|
"data-loading-item": true,
|
|
1075
1075
|
children: [
|
|
1076
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1076
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.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: [
|
|
1077
1077
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1078
1078
|
"h3",
|
|
1079
1079
|
{
|
|
@@ -1103,7 +1103,7 @@ function RoadmapGrid({
|
|
|
1103
1103
|
}
|
|
1104
1104
|
)
|
|
1105
1105
|
] }) }),
|
|
1106
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1106
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.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,
|
|
1107
1107
|
RoadmapGridSingle,
|
|
1108
1108
|
{
|
|
1109
1109
|
items: itemsByQuarter[quarter],
|
|
@@ -1129,8 +1129,8 @@ function RoadmapGrid({
|
|
|
1129
1129
|
var DEFAULT_ENDPOINT3 = "/api/roadmap";
|
|
1130
1130
|
var NO_ITEMS = [];
|
|
1131
1131
|
var SYNCED_LIST_CLASS = "flex w-full flex-col gap-[var(--spacing-system-lf)]";
|
|
1132
|
-
var DEFAULT_SEARCH_PARAM_KEY2 =
|
|
1133
|
-
var DEFAULT_STATUS_PARAM_KEY2 =
|
|
1132
|
+
var DEFAULT_SEARCH_PARAM_KEY2 = _chunkQMQWXGCHcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
1133
|
+
var DEFAULT_STATUS_PARAM_KEY2 = _chunkQMQWXGCHcjs.DEV_SECTION_PARAM_KEYS.status;
|
|
1134
1134
|
function RoadmapView({
|
|
1135
1135
|
endpoint = DEFAULT_ENDPOINT3,
|
|
1136
1136
|
initialItems,
|
|
@@ -1149,23 +1149,23 @@ function RoadmapView({
|
|
|
1149
1149
|
const qs = listParams.toString();
|
|
1150
1150
|
const url = qs ? `${endpoint}?${qs}` : endpoint;
|
|
1151
1151
|
const initialData = _react.useMemo.call(void 0, () => initialItems ? { items: initialItems } : void 0, [initialItems]);
|
|
1152
|
-
const { data, setData, isLoading, error, reload } =
|
|
1152
|
+
const { data, setData, isLoading, error, reload } = _chunkYMLRDVPOcjs.useSelfFetch.call(void 0, url, {
|
|
1153
1153
|
initialData
|
|
1154
1154
|
});
|
|
1155
1155
|
const items = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _21 => _21.items]), () => ( []));
|
|
1156
1156
|
_chunkIKWQW3YJcjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkW4VEDSAXcjs.STICKY_HEADER_OFFSET_PX });
|
|
1157
|
-
const syncInPage =
|
|
1157
|
+
const syncInPage = _chunk6SFCI6D4cjs.usePageDataSync.call(void 0, _optionalChain([data, 'optionalAccess', _22 => _22.sync]), isLoading && !data);
|
|
1158
1158
|
if (error) {
|
|
1159
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1159
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.LoadError, { message: "Failed to load roadmap.", onRetry: reload });
|
|
1160
1160
|
}
|
|
1161
1161
|
if (isLoading && !data) {
|
|
1162
1162
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SYNCED_LIST_CLASS, children: [
|
|
1163
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1163
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.DataSyncLine, { loading: true }),
|
|
1164
1164
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoadmapGrid, { items: NO_ITEMS, isLoading: true, groupByQuarter: true, showLeftMargin })
|
|
1165
1165
|
] });
|
|
1166
1166
|
}
|
|
1167
1167
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SYNCED_LIST_CLASS, children: [
|
|
1168
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1168
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.DataSyncLine, { sync: _optionalChain([data, 'optionalAccess', _23 => _23.sync]) }),
|
|
1169
1169
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1170
1170
|
RoadmapGrid,
|
|
1171
1171
|
{
|
|
@@ -1185,11 +1185,11 @@ function RoadmapView({
|
|
|
1185
1185
|
|
|
1186
1186
|
// src/components/shared/delivery/delivery-table.tsx
|
|
1187
1187
|
|
|
1188
|
-
var TABLE_FRAME_CLASS = `w-full ${
|
|
1188
|
+
var TABLE_FRAME_CLASS = `w-full ${_chunk6GPMVHJNcjs.CONTENT_CARD_SKELETON_FRAME_CLASS}`;
|
|
1189
1189
|
var ROW_SEPARATOR_CLASS = "border-b border-ods-border last:border-b-0";
|
|
1190
1190
|
var DELIVERY_TABLE_SKELETON_ROWS = 5;
|
|
1191
1191
|
function DeliveryTableSkeleton() {
|
|
1192
|
-
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, _chunk63A4GZMBcjs.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,
|
|
1192
|
+
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, _chunk63A4GZMBcjs.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, _chunk6SFCI6D4cjs.DeliveryRow, { loading: true }) }) }) }) });
|
|
1193
1193
|
}
|
|
1194
1194
|
function DeliveryTable({ items, isLoading = false }) {
|
|
1195
1195
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeliveryTableSkeleton, {});
|
|
@@ -1202,7 +1202,7 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1202
1202
|
// → `#delivery-<external_id>`; `useScrollToHash` in
|
|
1203
1203
|
// `delivery-lists.tsx` finds the row by id and scrolls. The
|
|
1204
1204
|
// outer wrapper here ONLY exists for the row separators.
|
|
1205
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1205
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6SFCI6D4cjs.DeliveryRow, { item, id: _chunkQMQWXGCHcjs.devSectionAnchorId.call(void 0, "delivery", item.id) }) }, item.id)
|
|
1206
1206
|
)) }) });
|
|
1207
1207
|
}
|
|
1208
1208
|
|
|
@@ -1211,8 +1211,8 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1211
1211
|
|
|
1212
1212
|
var DEFAULT_COMPLETED_ENDPOINT = "/api/delivery/completed";
|
|
1213
1213
|
var DEFAULT_IN_PROGRESS_ENDPOINT = "/api/delivery/in-progress";
|
|
1214
|
-
var DEFAULT_SEARCH_PARAM_KEY3 =
|
|
1215
|
-
var DEFAULT_TASK_TYPE_PARAM_KEY =
|
|
1214
|
+
var DEFAULT_SEARCH_PARAM_KEY3 = _chunkQMQWXGCHcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
1215
|
+
var DEFAULT_TASK_TYPE_PARAM_KEY = _chunkQMQWXGCHcjs.DEV_SECTION_PARAM_KEYS.deliveryTaskType;
|
|
1216
1216
|
function DeliveryLists({
|
|
1217
1217
|
completedApiEndpoint = DEFAULT_COMPLETED_ENDPOINT,
|
|
1218
1218
|
inProgressApiEndpoint = DEFAULT_IN_PROGRESS_ENDPOINT,
|
|
@@ -1287,18 +1287,18 @@ function DeliveryLists({
|
|
|
1287
1287
|
const filteredCompleted = _optionalChain([data, 'optionalAccess', _24 => _24.completed]) || [];
|
|
1288
1288
|
const filteredInProgress = _optionalChain([data, 'optionalAccess', _25 => _25.inProgress]) || [];
|
|
1289
1289
|
_chunkIKWQW3YJcjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkW4VEDSAXcjs.STICKY_HEADER_OFFSET_PX });
|
|
1290
|
-
const syncInPage =
|
|
1290
|
+
const syncInPage = _chunk6SFCI6D4cjs.usePageDataSync.call(void 0, sync, isLoading && !data);
|
|
1291
1291
|
const showCompleted = true;
|
|
1292
1292
|
const showInProgress = true;
|
|
1293
1293
|
const hasActiveFilters = searchQuery !== "" || taskTypeFilter !== "all";
|
|
1294
1294
|
const hasResults = showCompleted && filteredCompleted.length > 0 || showInProgress && filteredInProgress.length > 0;
|
|
1295
1295
|
if (error) {
|
|
1296
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1296
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.LoadError, { message: error, onRetry: () => window.location.reload() }) });
|
|
1297
1297
|
}
|
|
1298
1298
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[40px]", children: [
|
|
1299
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1299
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.DataSyncLine, { sync, loading: isLoading && !data }),
|
|
1300
1300
|
!isLoading && !hasResults && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1301
|
-
|
|
1301
|
+
_chunk6SFCI6D4cjs.ListEmptyState,
|
|
1302
1302
|
{
|
|
1303
1303
|
isFiltered: hasActiveFilters,
|
|
1304
1304
|
filtered: {
|
|
@@ -1523,7 +1523,7 @@ function legalDocumentStampLabel(doc) {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
var LEGAL_DOCUMENT_SKELETON_SECTIONS = 3;
|
|
1525
1525
|
function LegalDocumentSkeleton({ sections = LEGAL_DOCUMENT_SKELETON_SECTIONS }) {
|
|
1526
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading the document", className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1526
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading the document", className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGT6JFMPcjs.MarkdownEngine, { loading: true, content: "", skeletonTitle: true, skeletonSections: sections, textSize: "article" }) });
|
|
1527
1527
|
}
|
|
1528
1528
|
function LegalDocumentPage({
|
|
1529
1529
|
docType,
|
|
@@ -1535,7 +1535,7 @@ function LegalDocumentPage({
|
|
|
1535
1535
|
emptyStateMessage: emptyStateMessageProp,
|
|
1536
1536
|
initialData = null,
|
|
1537
1537
|
apiEndpoint,
|
|
1538
|
-
MarkdownRenderer =
|
|
1538
|
+
MarkdownRenderer = _chunk4ZH7RPEAcjs.RichMarkdownRenderer,
|
|
1539
1539
|
documentsEndpoint,
|
|
1540
1540
|
backButton,
|
|
1541
1541
|
faq,
|
|
@@ -1566,7 +1566,7 @@ function LegalDocumentPage({
|
|
|
1566
1566
|
titleSize: "h1",
|
|
1567
1567
|
titleWrap: true,
|
|
1568
1568
|
children: [
|
|
1569
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1569
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.DataSyncLine, { sync: data ? { source: "github", syncedAt: data.lastSynced } : null, loading: isLoading }),
|
|
1570
1570
|
/* @__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: _chunk63A4GZMBcjs.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: [
|
|
1571
1571
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rounded-lg border border-ods-error bg-ods-error-secondary p-6", children: [
|
|
1572
1572
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "mb-2 text-ods-error", children: errorTitle }),
|
|
@@ -1586,11 +1586,11 @@ function LegalDocumentPage({
|
|
|
1586
1586
|
"for more information."
|
|
1587
1587
|
] })
|
|
1588
1588
|
] }) }) }) }) }),
|
|
1589
|
-
faqSlot && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1589
|
+
faqSlot && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYKUL6JBIcjs.FaqSection, { ..._chunkYKUL6JBIcjs.pageFaqProps.call(void 0, faqSlot) })
|
|
1590
1590
|
]
|
|
1591
1591
|
}
|
|
1592
1592
|
);
|
|
1593
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1593
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4ZH7RPEAcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
1594
1594
|
}
|
|
1595
1595
|
|
|
1596
1596
|
|