@flamingo-stack/openframe-frontend-core 0.0.790 → 0.0.792
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/{chunk-7GNSCDUK.cjs → chunk-2I2AXIBD.cjs} +136 -139
- package/dist/{chunk-6YPT2BD4.cjs → chunk-3AN35WAO.cjs} +61 -61
- package/dist/{chunk-O4XBGLMA.cjs → chunk-4G2KZHZW.cjs} +8 -4
- package/dist/{chunk-LZG7PBF3.cjs → chunk-5MIGBLDC.cjs} +14 -14
- package/dist/{chunk-TIDJN3OQ.cjs → chunk-6ZPHUDTP.cjs} +3 -3
- package/dist/{chunk-ISSBE5JP.cjs → chunk-7EH7KKFW.cjs} +25 -25
- package/dist/{chunk-HKMEI2NX.cjs → chunk-ABZGBMC2.cjs} +30 -30
- package/dist/{chunk-PLNLTN4R.cjs → chunk-EPWLLLGW.cjs} +11 -11
- package/dist/{chunk-V4RKY4ZY.cjs → chunk-FBA6S4ES.cjs} +43 -42
- package/dist/{chunk-DKOLQPE7.cjs → chunk-FDZOE5TL.cjs} +16 -1
- package/dist/{chunk-RIIMY7XW.cjs → chunk-HMV32LV4.cjs} +4 -4
- package/dist/{chunk-ANQCSCNU.cjs → chunk-IHLGPIFO.cjs} +2 -2
- package/dist/{chunk-STEJZPIO.cjs → chunk-LHV2R6QU.cjs} +3 -3
- package/dist/{chunk-RYSEW4XI.cjs → chunk-O4TKEWNW.cjs} +11 -11
- package/dist/{chunk-OWKLWCLZ.cjs → chunk-OKQQJ5TD.cjs} +50 -40
- package/dist/{chunk-5FV2FQQD.cjs → chunk-OZIPPOSJ.cjs} +7 -5
- package/dist/{chunk-EU3NQPFE.cjs → chunk-P2JY2XCV.cjs} +48 -48
- package/dist/{chunk-4YIDZCTL.cjs → chunk-SMZWXY4X.cjs} +7 -13
- package/dist/{chunk-KI5TJDK3.cjs → chunk-SXEIK7RU.cjs} +2 -2
- package/dist/{chunk-F7UIQ6UG.cjs → chunk-TBGVWIF7.cjs} +2 -2
- package/dist/{chunk-GYSRYYDM.cjs → chunk-UNUJ5YQ5.cjs} +4 -4
- package/dist/{chunk-QPXC3LEV.cjs → chunk-VUQNTCAL.cjs} +13 -13
- package/dist/{chunk-WTNAXQJW.cjs → chunk-W3Q7ZQLS.cjs} +4 -4
- package/dist/{chunk-EY64NXE7.cjs → chunk-WWWLOMZI.cjs} +82 -75
- package/dist/{chunk-F62QXKNL.cjs → chunk-YPWFYQFE.cjs} +16 -16
- package/dist/{chunk-PHWLEYAG.cjs → chunk-YWNXZAQ2.cjs} +32 -32
- package/dist/{chunk-IYWVS3SS.cjs → chunk-ZW2TS775.cjs} +2 -2
- package/dist/{chunk-F4RCB5LB.cjs → chunk-ZZPGSLMO.cjs} +4 -4
- package/dist/{cloud-tenants-D6DYR6UV.cjs → cloud-tenants-CQOD6DDR.cjs} +16 -16
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/ask-display.d.ts.map +1 -1
- package/dist/components/chat/ask-display.js +2 -4
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/docs/skeletons.d.ts.map +1 -1
- package/dist/components/docs/skeletons.js +11 -1
- package/dist/components/embeds/index.cjs +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/features/cards-strip.d.ts.map +1 -1
- package/dist/components/features/cards-strip.js +4 -1
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/help-center-pages/index.cjs +83 -83
- package/dist/components/help-center-pages/trust-center-sections.js +1 -1
- package/dist/components/index.cjs +52 -52
- package/dist/components/meeting-scheduler/directory.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/directory.js +3 -1
- package/dist/components/meeting-scheduler/index.cjs +41 -39
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/onboarding-guides/index.cjs +9 -9
- package/dist/components/product-demo/fixtures/devices.d.ts.map +1 -1
- package/dist/components/product-demo/fixtures/devices.js +5 -12
- package/dist/components/product-demo/fixtures/shared.d.ts +89 -0
- package/dist/components/product-demo/fixtures/shared.d.ts.map +1 -1
- package/dist/components/product-demo/fixtures/shared.js +15 -0
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/product-demo/screens/devices-view.d.ts.map +1 -1
- package/dist/components/product-demo/screens/devices-view.js +3 -1
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/shared/roadmap/roadmap-grid.d.ts.map +1 -1
- package/dist/components/shared/roadmap/roadmap-grid.js +15 -8
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/ui/image-gallery-modal.d.ts.map +1 -1
- package/dist/components/ui/image-gallery-modal.js +7 -5
- package/dist/components/ui/index.cjs +6 -6
- package/dist/components/ui/snap-carousel.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.js +9 -12
- package/dist/{devices-MZQ4573H.cjs → devices-PEBUW34G.cjs} +12 -12
- package/dist/{embeddable-chat-QLJ2KSWT.cjs → embeddable-chat-54X3TTG4.cjs} +62 -62
- package/dist/index.cjs +10 -10
- package/dist/{knowledge-QZTFICLS.cjs → knowledge-KL4BP2YK.cjs} +11 -11
- package/dist/{logs-2YOR2SUA.cjs → logs-TO277M4F.cjs} +28 -28
- package/dist/{policies-KKFC4UOU.cjs → policies-6HSKMG4I.cjs} +13 -13
- package/dist/{remote-session-WKLEYACD.cjs → remote-session-4ZNTOLOQ.cjs} +5 -5
- package/dist/{scripts-UA46WAET.cjs → scripts-4IO2LPMY.cjs} +17 -17
- package/dist/{software-update-IN6TJL73.cjs → software-update-RMAWEZKX.cjs} +17 -17
- package/dist/{tickets-board-URMIIAKD.cjs → tickets-board-X4GHEKPB.cjs} +17 -17
- package/package.json +1 -1
- package/src/components/chat/ask-display.tsx +2 -4
- package/src/components/docs/skeletons.tsx +7 -1
- package/src/components/features/cards-strip.tsx +6 -2
- package/src/components/help-center-pages/trust-center-sections.tsx +1 -1
- package/src/components/meeting-scheduler/directory.tsx +6 -1
- package/src/components/product-demo/fixtures/devices.ts +5 -12
- package/src/components/product-demo/fixtures/shared.ts +20 -0
- package/src/components/product-demo/screens/devices-view.tsx +3 -0
- package/src/components/shared/roadmap/roadmap-grid.tsx +29 -7
- package/src/components/ui/image-gallery-modal.tsx +10 -7
- package/src/components/ui/snap-carousel.tsx +12 -11
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkYPWFYQFEcjs = require('./chunk-YPWFYQFE.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkHMV32LV4cjs = require('./chunk-HMV32LV4.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkVUQNTCALcjs = require('./chunk-VUQNTCAL.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -24,7 +24,7 @@ var _chunkQPXC3LEVcjs = require('./chunk-QPXC3LEV.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk2I2AXIBDcjs = require('./chunk-2I2AXIBD.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkRPC4P7GYcjs = require('./chunk-RPC4P7GY.cjs');
|
|
@@ -36,14 +36,14 @@ var _chunkCWA6J7KCcjs = require('./chunk-CWA6J7KC.cjs');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunk7EH7KKFWcjs = require('./chunk-7EH7KKFW.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _chunkFBA6S4EScjs = require('./chunk-FBA6S4ES.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 _chunkZZPGSLMOcjs = require('./chunk-ZZPGSLMO.cjs');
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
|
|
@@ -67,7 +67,7 @@ var _chunkF4RCB5LBcjs = require('./chunk-F4RCB5LB.cjs');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkOZIPPOSJcjs = require('./chunk-OZIPPOSJ.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 = _chunk7EH7KKFWcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
118
|
+
var DEFAULT_STATUS_PARAM_KEY = _chunk7EH7KKFWcjs.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 = _chunk7EH7KKFWcjs.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 } = _chunkC5EPWKM7cjs.useEntityCardLink.call(void 0, { href: cta.href, targetPlatform: cta.targetPlatform });
|
|
134
134
|
const onClick = (e) => {
|
|
135
|
-
if (e.defaultPrevented ||
|
|
135
|
+
if (e.defaultPrevented || _chunkOZIPPOSJcjs.isModifierClick.call(void 0, e) || target === "_blank") return;
|
|
136
136
|
e.preventDefault();
|
|
137
|
-
|
|
137
|
+
_chunkFBA6S4EScjs.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
|
+
_chunkOZIPPOSJcjs.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 = _chunkOZIPPOSJcjs.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
|
+
} = _chunkZZPGSLMOcjs.useSelfFetch.call(void 0, inScope ? null : `${endpoint}?${listParams.toString()}`, {
|
|
184
184
|
initialData
|
|
185
185
|
});
|
|
186
186
|
const isLoading = inScope || fetching;
|
|
187
|
-
|
|
187
|
+
_chunkYPWFYQFEcjs.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, _chunk2I2AXIBDcjs.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
|
+
_chunkYPWFYQFEcjs.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, _chunkOZIPPOSJcjs.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
|
+
_chunkHMV32LV4cjs.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, _chunkC5EPWKM7cjs.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
|
+
_chunkOZIPPOSJcjs.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 = _chunk2I2AXIBDcjs.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 = _chunkFBA6S4EScjs.useCaptions.call(void 0, );
|
|
372
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.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
|
+
} = _chunkZZPGSLMOcjs.useSelfFetch.call(void 0, slug ? `${endpoint}/${encodeURIComponent(slug)}` : null, {
|
|
379
379
|
initialData: seed
|
|
380
380
|
});
|
|
381
381
|
const showBackButton = backButton !== false;
|
|
@@ -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
|
+
_chunk2I2AXIBDcjs.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
|
+
_chunkOZIPPOSJcjs.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
|
+
_chunkOZIPPOSJcjs.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
|
+
_chunkOZIPPOSJcjs.EntityMetadataValueCell,
|
|
504
504
|
{
|
|
505
|
-
value: releaseDate ?
|
|
505
|
+
value: releaseDate ? _chunkOZIPPOSJcjs.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
|
+
_chunkOZIPPOSJcjs.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
|
+
_chunk2I2AXIBDcjs.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
|
+
_chunk2I2AXIBDcjs.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
|
+
_chunk2I2AXIBDcjs.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
|
+
_chunk2I2AXIBDcjs.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, _chunk2I2AXIBDcjs.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
|
+
_chunk2I2AXIBDcjs.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, _chunkFBA6S4EScjs.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 = _chunkFBA6S4EScjs.useIsHydrated.call(void 0, );
|
|
726
726
|
if (hydrated && loadedKey !== storageKey) {
|
|
727
727
|
setLoadedKey(storageKey);
|
|
728
728
|
setVotes(readStoredVotes(storageKey));
|
|
@@ -818,7 +818,7 @@ function RoadmapGridSkeleton({
|
|
|
818
818
|
showLeftMargin = true,
|
|
819
819
|
columns = 2
|
|
820
820
|
}) {
|
|
821
|
-
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,
|
|
821
|
+
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, _chunkOZIPPOSJcjs.RoadmapCard, { loading: true }) }, i)) });
|
|
822
822
|
}
|
|
823
823
|
var DEFAULT_BUILD_REFRESH_URL = (taskId) => `/api/roadmap/${taskId}`;
|
|
824
824
|
var BACKLOG = "Backlog";
|
|
@@ -877,10 +877,10 @@ function RoadmapGridSingle({
|
|
|
877
877
|
// and scrolls.
|
|
878
878
|
// `data-loading-item`: how many items a quarter holds is read data (the loading-state gate measures it as a list).
|
|
879
879
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
880
|
-
|
|
880
|
+
_chunkOZIPPOSJcjs.RoadmapCard,
|
|
881
881
|
{
|
|
882
882
|
item,
|
|
883
|
-
id:
|
|
883
|
+
id: _chunk7EH7KKFWcjs.devSectionAnchorId.call(void 0, "roadmap", item.id),
|
|
884
884
|
userVote: getVote(item.id),
|
|
885
885
|
onVote: (voteType) => onVote(item.id, voteType),
|
|
886
886
|
isVoting: votingTasks.has(item.id)
|
|
@@ -892,18 +892,25 @@ var QUARTER_LIST_CLASS = "flex flex-col gap-10";
|
|
|
892
892
|
var QUARTER_HEAD_CLASS = "flex items-center gap-3";
|
|
893
893
|
var QUARTER_CONTENT_CLASS = "pt-4";
|
|
894
894
|
var QUARTER_CONTENT_INNER_CLASS = "pb-4";
|
|
895
|
+
var ROADMAP_SKELETON_CLOSED_QUARTERS = 4;
|
|
896
|
+
function RoadmapQuarterHeadSkeleton() {
|
|
897
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: QUARTER_HEAD_CLASS, children: [
|
|
898
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h2", className: "w-40" }),
|
|
899
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-16" })
|
|
900
|
+
] });
|
|
901
|
+
}
|
|
895
902
|
function RoadmapGridQuarterSkeleton({
|
|
896
903
|
showLeftMargin = true,
|
|
897
904
|
columns = 2,
|
|
898
905
|
count
|
|
899
906
|
}) {
|
|
900
|
-
return /* @__PURE__ */ _jsxruntime.
|
|
901
|
-
/* @__PURE__ */ _jsxruntime.
|
|
902
|
-
|
|
903
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
] })
|
|
907
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: QUARTER_LIST_CLASS, "aria-hidden": true, children: [
|
|
908
|
+
/* @__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, {}) }) }),
|
|
909
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", "data-loading-item": true, children: [
|
|
910
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoadmapQuarterHeadSkeleton, {}),
|
|
911
|
+
/* @__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, RoadmapGridSkeleton, { region: false, count, showLeftMargin, columns }) }) })
|
|
912
|
+
] })
|
|
913
|
+
] });
|
|
907
914
|
}
|
|
908
915
|
function RoadmapGrid({
|
|
909
916
|
items,
|
|
@@ -993,7 +1000,7 @@ function RoadmapGrid({
|
|
|
993
1000
|
}
|
|
994
1001
|
if (items.length === 0) {
|
|
995
1002
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
996
|
-
|
|
1003
|
+
_chunkHMV32LV4cjs.EmptyState,
|
|
997
1004
|
{
|
|
998
1005
|
type: "generic",
|
|
999
1006
|
title: "No roadmap items",
|
|
@@ -1015,7 +1022,7 @@ function RoadmapGrid({
|
|
|
1015
1022
|
);
|
|
1016
1023
|
}
|
|
1017
1024
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1018
|
-
|
|
1025
|
+
_chunk2I2AXIBDcjs.Accordion,
|
|
1019
1026
|
{
|
|
1020
1027
|
type: "multiple",
|
|
1021
1028
|
value: expandedQuarters,
|
|
@@ -1025,14 +1032,14 @@ function RoadmapGrid({
|
|
|
1025
1032
|
const itemCount = _optionalChain([itemsByQuarter, 'access', _19 => _19[quarter], 'optionalAccess', _20 => _20.length]) || 0;
|
|
1026
1033
|
const isExpanded = expandedQuarters.includes(quarter);
|
|
1027
1034
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1028
|
-
|
|
1035
|
+
_chunk2I2AXIBDcjs.AccordionItem,
|
|
1029
1036
|
{
|
|
1030
1037
|
value: quarter,
|
|
1031
1038
|
id: `quarter-${quarter.replace(/\s+/g, "-").toLowerCase()}`,
|
|
1032
1039
|
className: "border-0",
|
|
1033
1040
|
"data-loading-item": true,
|
|
1034
1041
|
children: [
|
|
1035
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1042
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.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: [
|
|
1036
1043
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1037
1044
|
"h3",
|
|
1038
1045
|
{
|
|
@@ -1062,7 +1069,7 @@ function RoadmapGrid({
|
|
|
1062
1069
|
}
|
|
1063
1070
|
)
|
|
1064
1071
|
] }) }),
|
|
1065
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1072
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.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,
|
|
1066
1073
|
RoadmapGridSingle,
|
|
1067
1074
|
{
|
|
1068
1075
|
items: itemsByQuarter[quarter],
|
|
@@ -1088,8 +1095,8 @@ function RoadmapGrid({
|
|
|
1088
1095
|
var DEFAULT_ENDPOINT3 = "/api/roadmap";
|
|
1089
1096
|
var NO_ITEMS = [];
|
|
1090
1097
|
var SYNCED_LIST_CLASS = "flex w-full flex-col gap-[var(--spacing-system-lf)]";
|
|
1091
|
-
var DEFAULT_SEARCH_PARAM_KEY2 =
|
|
1092
|
-
var DEFAULT_STATUS_PARAM_KEY2 =
|
|
1098
|
+
var DEFAULT_SEARCH_PARAM_KEY2 = _chunk7EH7KKFWcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
1099
|
+
var DEFAULT_STATUS_PARAM_KEY2 = _chunk7EH7KKFWcjs.DEV_SECTION_PARAM_KEYS.status;
|
|
1093
1100
|
function RoadmapView({
|
|
1094
1101
|
endpoint = DEFAULT_ENDPOINT3,
|
|
1095
1102
|
initialItems,
|
|
@@ -1108,23 +1115,23 @@ function RoadmapView({
|
|
|
1108
1115
|
const qs = listParams.toString();
|
|
1109
1116
|
const url = qs ? `${endpoint}?${qs}` : endpoint;
|
|
1110
1117
|
const initialData = _react.useMemo.call(void 0, () => initialItems ? { items: initialItems } : void 0, [initialItems]);
|
|
1111
|
-
const { data, setData, isLoading, error, reload } =
|
|
1118
|
+
const { data, setData, isLoading, error, reload } = _chunkZZPGSLMOcjs.useSelfFetch.call(void 0, url, {
|
|
1112
1119
|
initialData
|
|
1113
1120
|
});
|
|
1114
1121
|
const items = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _21 => _21.items]), () => ( []));
|
|
1115
1122
|
_chunkCWA6J7KCcjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkOJZBZH56cjs.STICKY_HEADER_OFFSET_PX });
|
|
1116
|
-
const syncInPage =
|
|
1123
|
+
const syncInPage = _chunkYPWFYQFEcjs.usePageDataSync.call(void 0, _optionalChain([data, 'optionalAccess', _22 => _22.sync]), isLoading && !data);
|
|
1117
1124
|
if (error) {
|
|
1118
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1125
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.LoadError, { message: "Failed to load roadmap.", onRetry: reload });
|
|
1119
1126
|
}
|
|
1120
1127
|
if (isLoading && !data) {
|
|
1121
1128
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SYNCED_LIST_CLASS, children: [
|
|
1122
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1129
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.DataSyncLine, { loading: true }),
|
|
1123
1130
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoadmapGrid, { items: NO_ITEMS, isLoading: true, groupByQuarter: true, showLeftMargin })
|
|
1124
1131
|
] });
|
|
1125
1132
|
}
|
|
1126
1133
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SYNCED_LIST_CLASS, children: [
|
|
1127
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1134
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.DataSyncLine, { sync: _optionalChain([data, 'optionalAccess', _23 => _23.sync]) }),
|
|
1128
1135
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1129
1136
|
RoadmapGrid,
|
|
1130
1137
|
{
|
|
@@ -1148,7 +1155,7 @@ var TABLE_FRAME_CLASS = `w-full ${_chunkC5EPWKM7cjs.CONTENT_CARD_SKELETON_FRAME_
|
|
|
1148
1155
|
var ROW_SEPARATOR_CLASS = "border-b border-ods-border last:border-b-0";
|
|
1149
1156
|
var DELIVERY_TABLE_SKELETON_ROWS = 5;
|
|
1150
1157
|
function DeliveryTableSkeleton() {
|
|
1151
|
-
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,
|
|
1158
|
+
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, _chunkYPWFYQFEcjs.DeliveryRow, { loading: true }) }) }) }) });
|
|
1152
1159
|
}
|
|
1153
1160
|
function DeliveryTable({ items, isLoading = false }) {
|
|
1154
1161
|
if (_chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeliveryTableSkeleton, {});
|
|
@@ -1161,7 +1168,7 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1161
1168
|
// → `#delivery-<external_id>`; `useScrollToHash` in
|
|
1162
1169
|
// `delivery-lists.tsx` finds the row by id and scrolls. The
|
|
1163
1170
|
// outer wrapper here ONLY exists for the row separators.
|
|
1164
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1171
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYPWFYQFEcjs.DeliveryRow, { item, id: _chunk7EH7KKFWcjs.devSectionAnchorId.call(void 0, "delivery", item.id) }) }, item.id)
|
|
1165
1172
|
)) }) });
|
|
1166
1173
|
}
|
|
1167
1174
|
|
|
@@ -1170,8 +1177,8 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1170
1177
|
|
|
1171
1178
|
var DEFAULT_COMPLETED_ENDPOINT = "/api/delivery/completed";
|
|
1172
1179
|
var DEFAULT_IN_PROGRESS_ENDPOINT = "/api/delivery/in-progress";
|
|
1173
|
-
var DEFAULT_SEARCH_PARAM_KEY3 =
|
|
1174
|
-
var DEFAULT_TASK_TYPE_PARAM_KEY =
|
|
1180
|
+
var DEFAULT_SEARCH_PARAM_KEY3 = _chunk7EH7KKFWcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
1181
|
+
var DEFAULT_TASK_TYPE_PARAM_KEY = _chunk7EH7KKFWcjs.DEV_SECTION_PARAM_KEYS.deliveryTaskType;
|
|
1175
1182
|
function DeliveryLists({
|
|
1176
1183
|
completedApiEndpoint = DEFAULT_COMPLETED_ENDPOINT,
|
|
1177
1184
|
inProgressApiEndpoint = DEFAULT_IN_PROGRESS_ENDPOINT,
|
|
@@ -1246,18 +1253,18 @@ function DeliveryLists({
|
|
|
1246
1253
|
const filteredCompleted = _optionalChain([data, 'optionalAccess', _24 => _24.completed]) || [];
|
|
1247
1254
|
const filteredInProgress = _optionalChain([data, 'optionalAccess', _25 => _25.inProgress]) || [];
|
|
1248
1255
|
_chunkCWA6J7KCcjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkOJZBZH56cjs.STICKY_HEADER_OFFSET_PX });
|
|
1249
|
-
const syncInPage =
|
|
1256
|
+
const syncInPage = _chunkYPWFYQFEcjs.usePageDataSync.call(void 0, sync, isLoading && !data);
|
|
1250
1257
|
const showCompleted = true;
|
|
1251
1258
|
const showInProgress = true;
|
|
1252
1259
|
const hasActiveFilters = searchQuery !== "" || taskTypeFilter !== "all";
|
|
1253
1260
|
const hasResults = showCompleted && filteredCompleted.length > 0 || showInProgress && filteredInProgress.length > 0;
|
|
1254
1261
|
if (error) {
|
|
1255
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1262
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.LoadError, { message: error, onRetry: () => window.location.reload() }) });
|
|
1256
1263
|
}
|
|
1257
1264
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[40px]", children: [
|
|
1258
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1265
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.DataSyncLine, { sync, loading: isLoading && !data }),
|
|
1259
1266
|
!isLoading && !hasResults && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1260
|
-
|
|
1267
|
+
_chunkYPWFYQFEcjs.ListEmptyState,
|
|
1261
1268
|
{
|
|
1262
1269
|
isFiltered: hasActiveFilters,
|
|
1263
1270
|
filtered: {
|
|
@@ -1482,7 +1489,7 @@ function legalDocumentStampLabel(doc) {
|
|
|
1482
1489
|
}
|
|
1483
1490
|
var LEGAL_DOCUMENT_SKELETON_SECTIONS = 3;
|
|
1484
1491
|
function LegalDocumentSkeleton({ sections = LEGAL_DOCUMENT_SKELETON_SECTIONS }) {
|
|
1485
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD6RPLHXcjs.LoadingRegion, { label: "Loading the document", className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1492
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD6RPLHXcjs.LoadingRegion, { label: "Loading the document", className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFBA6S4EScjs.MarkdownEngine, { loading: true, content: "", skeletonTitle: true, skeletonSections: sections, textSize: "article" }) });
|
|
1486
1493
|
}
|
|
1487
1494
|
function LegalDocumentPage({
|
|
1488
1495
|
docType,
|
|
@@ -1494,7 +1501,7 @@ function LegalDocumentPage({
|
|
|
1494
1501
|
emptyStateMessage: emptyStateMessageProp,
|
|
1495
1502
|
initialData = null,
|
|
1496
1503
|
apiEndpoint,
|
|
1497
|
-
MarkdownRenderer =
|
|
1504
|
+
MarkdownRenderer = _chunk2I2AXIBDcjs.RichMarkdownRenderer,
|
|
1498
1505
|
documentsEndpoint,
|
|
1499
1506
|
backButton,
|
|
1500
1507
|
faq,
|
|
@@ -1525,7 +1532,7 @@ function LegalDocumentPage({
|
|
|
1525
1532
|
titleSize: "h1",
|
|
1526
1533
|
titleWrap: true,
|
|
1527
1534
|
children: [
|
|
1528
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1535
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.DataSyncLine, { sync: data ? { source: "github", syncedAt: data.lastSynced } : null, loading: isLoading }),
|
|
1529
1536
|
/* @__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: [
|
|
1530
1537
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rounded-lg border border-ods-error bg-ods-error-secondary p-6", children: [
|
|
1531
1538
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "mb-2 text-ods-error", children: errorTitle }),
|
|
@@ -1545,11 +1552,11 @@ function LegalDocumentPage({
|
|
|
1545
1552
|
"for more information."
|
|
1546
1553
|
] })
|
|
1547
1554
|
] }) }) }) }) }),
|
|
1548
|
-
faqSlot && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1555
|
+
faqSlot && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVUQNTCALcjs.FaqSection, { ..._chunkVUQNTCALcjs.pageFaqProps.call(void 0, faqSlot) })
|
|
1549
1556
|
]
|
|
1550
1557
|
}
|
|
1551
1558
|
);
|
|
1552
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1559
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2I2AXIBDcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
1553
1560
|
}
|
|
1554
1561
|
|
|
1555
1562
|
|