@flamingo-stack/openframe-frontend-core 0.0.811 → 0.0.813
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/export-map.json +1 -1
- package/dist/case-study-card-NLT2JVI7.cjs +23 -0
- package/dist/{chunk-5QLDHPPU.cjs → chunk-25HBH4J6.cjs} +15 -15
- package/dist/{chunk-TKK66KHU.cjs → chunk-2WD7XGWA.cjs} +6 -6
- package/dist/{chunk-LKQ33CMY.cjs → chunk-2XCORRJV.cjs} +3 -3
- package/dist/{chunk-JTIGKLKJ.cjs → chunk-2XLPRW7V.cjs} +23 -23
- package/dist/{chunk-4WIJI4AK.cjs → chunk-3TOWCFIK.cjs} +20 -26
- package/dist/{chunk-KUXHXLJQ.cjs → chunk-3V5JWG27.cjs} +5 -5
- package/dist/{chunk-ZZO3FGPM.cjs → chunk-467T3LCG.cjs} +63 -63
- package/dist/{chunk-Q7QYAINS.cjs → chunk-4PMD3JUC.cjs} +19 -19
- package/dist/{chunk-PCVY63WQ.cjs → chunk-5M5JVVSL.cjs} +13 -13
- package/dist/{chunk-CB77J5L7.cjs → chunk-5RBL7A2Y.cjs} +544 -544
- package/dist/{chunk-YR74H7Z3.cjs → chunk-5SZ4ILU3.cjs} +7 -7
- package/dist/{chunk-J6C7F63P.cjs → chunk-5V3CNLCB.cjs} +199 -199
- package/dist/{chunk-7JWFMAQB.cjs → chunk-63A4GZMB.cjs} +18 -2
- package/dist/{chunk-ZD6SZLO2.cjs → chunk-6CZVQ72C.cjs} +3 -3
- package/dist/{chunk-R55KNVPR.cjs → chunk-7BJ22OH2.cjs} +171 -171
- package/dist/{chunk-GU3GJ5DH.cjs → chunk-7O7EX7HQ.cjs} +45 -45
- package/dist/{chunk-U2MHQBL4.cjs → chunk-BOS7OIC4.cjs} +30 -30
- package/dist/{chunk-SFUNXMY3.cjs → chunk-EHANO6UE.cjs} +16 -16
- package/dist/{chunk-XLEWM5X5.cjs → chunk-EJQRX6S5.cjs} +62 -62
- package/dist/{chunk-ACCZCRXT.cjs → chunk-F4ZJRMMM.cjs} +20 -20
- package/dist/{chunk-AHBTZ7DN.cjs → chunk-FCZAUK4D.cjs} +52 -50
- package/dist/{chunk-MDBOYMCW.cjs → chunk-FTGXZHLO.cjs} +31 -31
- package/dist/{chunk-CPP2APON.cjs → chunk-G2AN67DP.cjs} +110 -110
- package/dist/{chunk-UP3TLY2V.cjs → chunk-GAR2IIU6.cjs} +349 -349
- package/dist/{chunk-IQLXO6EI.cjs → chunk-GNGXHIBC.cjs} +119 -119
- package/dist/{chunk-FK2WFU7R.cjs → chunk-GTOT4ZQV.cjs} +37 -37
- package/dist/{chunk-KVDUWXVZ.cjs → chunk-HM7VCQSX.cjs} +10 -10
- package/dist/{chunk-243TS7YL.cjs → chunk-IJCSQFLD.cjs} +209 -209
- package/dist/{chunk-CC3Q3MQG.cjs → chunk-IKB6AZPV.cjs} +8 -8
- package/dist/{chunk-66J7ZSI5.cjs → chunk-JFA3VHXC.cjs} +51 -51
- package/dist/{chunk-PMOMZSCX.cjs → chunk-JOKOQOLJ.cjs} +22 -22
- package/dist/{chunk-WX5WDSKV.cjs → chunk-MBU45QUB.cjs} +2050 -2045
- package/dist/{chunk-CJ7W2SY4.cjs → chunk-MUH7X7ZA.cjs} +13 -13
- package/dist/{chunk-GD47ZGOU.cjs → chunk-N3MBQRCQ.cjs} +3 -3
- package/dist/{chunk-ERLMCSGF.cjs → chunk-NONMZ5WJ.cjs} +5 -5
- package/dist/{chunk-ZW25QUJK.cjs → chunk-OBQ5WUNG.cjs} +67 -67
- package/dist/{chunk-6GT3ZL27.cjs → chunk-OGHG6REG.cjs} +44 -44
- package/dist/{chunk-JNWJB4Z5.cjs → chunk-PAI4A3UM.cjs} +60 -60
- package/dist/{chunk-O4MEG2ZS.cjs → chunk-PXR27MXW.cjs} +45 -45
- package/dist/{chunk-XYZBN6D7.cjs → chunk-QDDBOCG3.cjs} +2 -2
- package/dist/{chunk-VXXOUM2K.cjs → chunk-QOAA7ZHB.cjs} +6 -2
- package/dist/{chunk-OQDPZOGC.cjs → chunk-QQT23JJ7.cjs} +4 -4
- package/dist/{chunk-STLJCAIZ.cjs → chunk-RD66AGUI.cjs} +6 -6
- package/dist/{chunk-NL3G642U.cjs → chunk-S3QXLD4X.cjs} +10 -10
- package/dist/{chunk-7RM4NM2C.cjs → chunk-SWF6TNZ3.cjs} +14 -14
- package/dist/{chunk-O32RLIN4.cjs → chunk-TOBROYSJ.cjs} +4 -4
- package/dist/{chunk-P4B6PVSG.cjs → chunk-USUVHAQ7.cjs} +7 -7
- package/dist/{chunk-VXMPVDOS.cjs → chunk-WKODIG3L.cjs} +46 -46
- package/dist/{chunk-CLU2KJFB.cjs → chunk-XWCZSEW7.cjs} +3 -3
- package/dist/{chunk-7Y6M4FW4.cjs → chunk-Y6MJMPHV.cjs} +126 -126
- package/dist/{chunk-NZSWROGM.cjs → chunk-ZRDVFADQ.cjs} +61 -61
- package/dist/{cloud-tenants-XGGQG7SO.cjs → cloud-tenants-ODZVCP5X.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/index.cjs +26 -26
- package/dist/components/chat/utils/icon-registry.d.ts.map +1 -1
- package/dist/components/chat/utils/icon-registry.js +4 -0
- package/dist/components/contact/index.cjs +33 -33
- package/dist/components/docs/index.cjs +36 -36
- package/dist/components/embeds/index.cjs +33 -33
- package/dist/components/faq/index.cjs +34 -34
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +1 -1
- package/dist/components/features/index.cjs +32 -32
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.d.ts.map +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.js +4 -2
- package/dist/components/features/select-button.js +1 -1
- package/dist/components/help-center-pages/index.cjs +165 -165
- package/dist/components/index.cjs +220 -218
- package/dist/components/meeting-scheduler/index.cjs +238 -192
- package/dist/components/meeting-scheduler/index.d.ts +30 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +43 -3
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/onboarding-guides/index.cjs +35 -35
- package/dist/components/platform/ScriptArguments.d.ts +2 -0
- package/dist/components/platform/ScriptArguments.d.ts.map +1 -1
- package/dist/components/platform/ScriptArguments.js +3 -2
- package/dist/components/product-demo/index.cjs +45 -45
- package/dist/components/related-content/index.cjs +17 -17
- package/dist/components/tickets/index.cjs +39 -39
- package/dist/components/ui/button/button-styles.d.ts +8 -0
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +8 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +6 -4
- package/dist/components/ui/button/split-button.d.ts.map +1 -1
- package/dist/components/ui/button/split-button.js +3 -2
- package/dist/components/ui/checkbox-block.d.ts.map +1 -1
- package/dist/components/ui/checkbox-block.js +3 -1
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +34 -32
- package/dist/components/ui/input-styles.d.ts +2 -0
- package/dist/components/ui/input-styles.d.ts.map +1 -1
- package/dist/components/ui/input-styles.js +2 -0
- package/dist/{devices-H5Y4DBVC.cjs → devices-GWBR7MJD.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-77ZOLCCK.cjs → embeddable-chat-4RLUXHDH.cjs} +115 -115
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +50 -48
- package/dist/{knowledge-MGH65HXM.cjs → knowledge-ZNRITHW5.cjs} +33 -33
- package/dist/{logs-OL7ETVK6.cjs → logs-QN5H5JT6.cjs} +41 -41
- package/dist/{policies-BCECWQ3F.cjs → policies-SCUYEYGJ.cjs} +36 -36
- package/dist/{remote-session-HML4UF7W.cjs → remote-session-BQMTIQTU.cjs} +17 -17
- package/dist/{scripts-XCD6V2JB.cjs → scripts-BP7UTAG5.cjs} +39 -39
- package/dist/{software-update-U5ESXRG5.cjs → software-update-O4BQJCJ4.cjs} +36 -36
- package/dist/{tickets-board-EICQ5VLE.cjs → tickets-board-TRXOX77R.cjs} +17 -17
- package/dist/utils/index.cjs +4 -0
- package/dist/{video-file-player-4QMVTOBE.cjs → video-file-player-IAMWBKEQ.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/chat/utils/icon-registry.ts +4 -0
- package/src/components/features/devices/devices-table-columns.tsx +5 -2
- package/src/components/features/scripts/schedule-form/schedule-script-picker-card.tsx +4 -2
- package/src/components/features/select-button.tsx +1 -1
- package/src/components/meeting-scheduler/index.tsx +85 -3
- package/src/components/platform/ScriptArguments.tsx +8 -1
- package/src/components/ui/button/button-styles.ts +18 -1
- package/src/components/ui/button/button.tsx +7 -4
- package/src/components/ui/button/split-button.tsx +3 -2
- package/src/components/ui/checkbox-block.tsx +3 -1
- package/src/components/ui/input-styles.ts +2 -0
- package/dist/case-study-card-AMINZROX.cjs +0 -23
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkWKODIG3Lcjs = require('./chunk-WKODIG3L.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkHM7VCQSXcjs = require('./chunk-HM7VCQSX.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkFTGXZHLOcjs = require('./chunk-FTGXZHLO.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -24,26 +24,26 @@ var _chunkMDBOYMCWcjs = require('./chunk-MDBOYMCW.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkMBU45QUBcjs = require('./chunk-MBU45QUB.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkIJCSQFLDcjs = require('./chunk-IJCSQFLD.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunk7O7EX7HQcjs = require('./chunk-7O7EX7HQ.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunk5V3CNLCBcjs = require('./chunk-5V3CNLCB.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _chunk5RBL7A2Ycjs = require('./chunk-5RBL7A2Y.cjs');
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
var _chunkEWCFJLNUcjs = require('./chunk-EWCFJLNU.cjs');
|
|
@@ -57,7 +57,7 @@ var _chunkCNTBGJA7cjs = require('./chunk-CNTBGJA7.cjs');
|
|
|
57
57
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var _chunkF4ZJRMMMcjs = require('./chunk-F4ZJRMMM.cjs');
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
|
|
@@ -67,7 +67,7 @@ var _chunkACCZCRXTcjs = require('./chunk-ACCZCRXT.cjs');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkGAR2IIU6cjs = require('./chunk-GAR2IIU6.cjs');
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
@@ -76,7 +76,7 @@ var _chunkUP3TLY2Vcjs = require('./chunk-UP3TLY2V.cjs');
|
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
var
|
|
79
|
+
var _chunkY6MJMPHVcjs = require('./chunk-Y6MJMPHV.cjs');
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
@@ -86,28 +86,28 @@ var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
|
86
86
|
var _chunkFX35L4Y6cjs = require('./chunk-FX35L4Y6.cjs');
|
|
87
87
|
|
|
88
88
|
|
|
89
|
-
var
|
|
89
|
+
var _chunkQOAA7ZHBcjs = require('./chunk-QOAA7ZHB.cjs');
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
var
|
|
92
|
+
var _chunk3V5JWG27cjs = require('./chunk-3V5JWG27.cjs');
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
96
96
|
|
|
97
97
|
|
|
98
|
-
var
|
|
98
|
+
var _chunk2XCORRJVcjs = require('./chunk-2XCORRJV.cjs');
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
|
|
102
|
-
var
|
|
102
|
+
var _chunk3TOWCFIKcjs = require('./chunk-3TOWCFIK.cjs');
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
var
|
|
105
|
+
var _chunkFCZAUK4Dcjs = require('./chunk-FCZAUK4D.cjs');
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
var
|
|
110
|
+
var _chunk63A4GZMBcjs = require('./chunk-63A4GZMB.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -117,8 +117,8 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
117
117
|
var DEFAULT_ENDPOINT = "/api/releases";
|
|
118
118
|
var PRODUCT_RELEASES_PAGE_SIZE = 5;
|
|
119
119
|
var PAGER_ROW_CLASS = "flex w-full justify-center";
|
|
120
|
-
var DEFAULT_SEARCH_PARAM_KEY =
|
|
121
|
-
var DEFAULT_STATUS_PARAM_KEY =
|
|
120
|
+
var DEFAULT_SEARCH_PARAM_KEY = _chunk5V3CNLCBcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
121
|
+
var DEFAULT_STATUS_PARAM_KEY = _chunk5V3CNLCBcjs.DEV_SECTION_PARAM_KEYS.releaseStatus;
|
|
122
122
|
var DEFAULT_PAGE_PARAM_KEY = "page";
|
|
123
123
|
function ReleaseRow({
|
|
124
124
|
release,
|
|
@@ -127,17 +127,17 @@ function ReleaseRow({
|
|
|
127
127
|
}) {
|
|
128
128
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
129
129
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
130
|
-
const cta =
|
|
130
|
+
const cta = _chunk5V3CNLCBcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _2 => _2.composeContentUrl]), {
|
|
131
131
|
type: "product_release",
|
|
132
132
|
slug: release.slug,
|
|
133
133
|
basePath,
|
|
134
134
|
platforms: release.product_release_platforms
|
|
135
135
|
});
|
|
136
|
-
const { target, rel } =
|
|
136
|
+
const { target, rel } = _chunkY6MJMPHVcjs.useEntityCardLink.call(void 0, { href: cta.href, targetPlatform: cta.targetPlatform });
|
|
137
137
|
const onClick = (e) => {
|
|
138
|
-
if (e.defaultPrevented ||
|
|
138
|
+
if (e.defaultPrevented || _chunkGAR2IIU6cjs.isModifierClick.call(void 0, e) || target === "_blank") return;
|
|
139
139
|
e.preventDefault();
|
|
140
|
-
|
|
140
|
+
_chunk5RBL7A2Ycjs.executeNavigationImperative.call(void 0, {
|
|
141
141
|
runtime,
|
|
142
142
|
href: cta.href,
|
|
143
143
|
targetPlatform: cta.targetPlatform,
|
|
@@ -145,7 +145,7 @@ function ReleaseRow({
|
|
|
145
145
|
});
|
|
146
146
|
};
|
|
147
147
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
148
|
-
|
|
148
|
+
_chunkGAR2IIU6cjs.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 = _chunkGAR2IIU6cjs.buildProductReleaseCardProps,
|
|
165
165
|
searchParamKey = DEFAULT_SEARCH_PARAM_KEY,
|
|
166
166
|
statusParamKey = DEFAULT_STATUS_PARAM_KEY,
|
|
167
167
|
pageParamKey = DEFAULT_PAGE_PARAM_KEY,
|
|
@@ -177,17 +177,17 @@ function ProductReleasesView({
|
|
|
177
177
|
const listParams = new URLSearchParams({ limit: String(itemsPerPage), offset: String(offset) });
|
|
178
178
|
if (search) listParams.set(searchParamKey, search);
|
|
179
179
|
if (status && status !== "all") listParams.set(statusParamKey, status);
|
|
180
|
-
const inScope =
|
|
180
|
+
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
181
181
|
const {
|
|
182
182
|
data,
|
|
183
183
|
isLoading: fetching,
|
|
184
184
|
error,
|
|
185
185
|
reload
|
|
186
|
-
} =
|
|
186
|
+
} = _chunkF4ZJRMMMcjs.useSelfFetch.call(void 0, inScope ? null : `${endpoint}?${listParams.toString()}`, {
|
|
187
187
|
initialData
|
|
188
188
|
});
|
|
189
189
|
const isLoading = inScope || fetching;
|
|
190
|
-
|
|
190
|
+
_chunkWKODIG3Lcjs.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:
|
|
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, _chunkMBU45QUBcjs.LoadError, { message: "Failed to load releases.", onRetry: reload }) });
|
|
210
210
|
}
|
|
211
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
212
|
-
|
|
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
|
+
_chunkWKODIG3Lcjs.ListEmptyState,
|
|
213
213
|
{
|
|
214
214
|
isFiltered: hasActiveFilters,
|
|
215
215
|
filtered: {
|
|
@@ -221,7 +221,7 @@ function ProductReleasesView({
|
|
|
221
221
|
empty: { title: "No releases available", description: "Check back soon for product updates!" }
|
|
222
222
|
}
|
|
223
223
|
) }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
224
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
224
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading releases", announce: isLoading, className: "flex flex-col gap-6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: itemsPerPage, children: (i) => {
|
|
225
225
|
const release = releases[i];
|
|
226
226
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
227
227
|
"div",
|
|
@@ -230,13 +230,13 @@ 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, _chunkGAR2IIU6cjs.ProductReleaseCard, { loading: true, size: "lg", title: "", version: "", formattedDate: "" })
|
|
234
234
|
)
|
|
235
235
|
}
|
|
236
236
|
);
|
|
237
237
|
} }) }),
|
|
238
238
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-6 flex justify-center content-md:mt-8", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
239
|
-
|
|
239
|
+
_chunkHM7VCQSXcjs.UnifiedPagination,
|
|
240
240
|
{
|
|
241
241
|
loading: isLoading,
|
|
242
242
|
currentPage,
|
|
@@ -259,12 +259,12 @@ var STRIP_CLASS = "flex w-full gap-6 overflow-x-auto";
|
|
|
259
259
|
var TILE_BOX_CLASS = "shrink-0 w-[240px] h-[200px]";
|
|
260
260
|
var TILE_SIZE_CLASS = `${TILE_BOX_CLASS} rounded-md`;
|
|
261
261
|
var TILE_FRAME_CLASS = "overflow-hidden rounded-md border border-ods-border bg-ods-bg";
|
|
262
|
-
var TILE_CLASS =
|
|
262
|
+
var TILE_CLASS = _chunk63A4GZMBcjs.cn.call(void 0, TILE_SIZE_CLASS, TILE_FRAME_CLASS);
|
|
263
263
|
var MEDIA_GALLERY_STRIP_SKELETON_COUNT = 4;
|
|
264
264
|
function MediaGalleryStrip({ items, className }) {
|
|
265
265
|
const [galleryOpen, setGalleryOpen] = _react.useState.call(void 0, false);
|
|
266
266
|
const [galleryIndex, setGalleryIndex] = _react.useState.call(void 0, 0);
|
|
267
|
-
if (
|
|
267
|
+
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) && !_optionalChain([items, 'optionalAccess', _6 => _6.length])) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MediaGalleryStripSkeleton, { className });
|
|
268
268
|
if (!items || items.length === 0) return null;
|
|
269
269
|
const galleryImages = items.filter((m) => isGalleryImage(m.media_type)).map((m) => m.media_url);
|
|
270
270
|
const tileClass = TILE_CLASS;
|
|
@@ -272,7 +272,7 @@ function MediaGalleryStrip({ items, className }) {
|
|
|
272
272
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${STRIP_CLASS} ${_nullishCoalesce(className, () => ( ""))}`, children: items.map((mediaItem, index) => {
|
|
273
273
|
if (isGalleryImage(mediaItem.media_type)) {
|
|
274
274
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
275
|
-
|
|
275
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
276
276
|
{
|
|
277
277
|
variant: "card",
|
|
278
278
|
"data-loading-item": true,
|
|
@@ -283,14 +283,14 @@ function MediaGalleryStrip({ items, className }) {
|
|
|
283
283
|
setGalleryIndex(items.slice(0, index).filter((m) => isGalleryImage(m.media_type)).length);
|
|
284
284
|
setGalleryOpen(true);
|
|
285
285
|
},
|
|
286
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
287
|
-
|
|
286
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "block h-full w-full", TILE_FRAME_CLASS), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
287
|
+
_chunk3V5JWG27cjs.next_image_default,
|
|
288
288
|
{
|
|
289
289
|
src: mediaItem.media_url,
|
|
290
290
|
alt: mediaItem.title || `Media ${index + 1}`,
|
|
291
291
|
className: "h-full w-full object-cover",
|
|
292
|
-
width:
|
|
293
|
-
height:
|
|
292
|
+
width: _chunkQOAA7ZHBcjs.IMAGE_FIXED_PX.cover,
|
|
293
|
+
height: _chunkQOAA7ZHBcjs.IMAGE_FIXED_PX.cover * 5 / 6,
|
|
294
294
|
unoptimized: true
|
|
295
295
|
}
|
|
296
296
|
) })
|
|
@@ -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, _chunkY6MJMPHVcjs.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
|
+
_chunkGAR2IIU6cjs.ImageGalleryModal,
|
|
305
305
|
{
|
|
306
306
|
images: galleryImages,
|
|
307
307
|
isOpen: galleryOpen,
|
|
@@ -315,14 +315,14 @@ function MediaGalleryStripSkeleton({
|
|
|
315
315
|
count = MEDIA_GALLERY_STRIP_SKELETON_COUNT,
|
|
316
316
|
className
|
|
317
317
|
}) {
|
|
318
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
318
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, STRIP_CLASS, "overflow-hidden", className), "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: TILE_SIZE_CLASS, "data-loading-item": true }) }) });
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
// src/components/shared/product-release/release-detail-page.tsx
|
|
322
322
|
var _lucidereact = require('lucide-react');
|
|
323
323
|
|
|
324
324
|
|
|
325
|
-
var DefaultMarkdownRenderer =
|
|
325
|
+
var DefaultMarkdownRenderer = _chunkMBU45QUBcjs.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";
|
|
@@ -343,10 +343,10 @@ var EMPTY_RELEASE = {
|
|
|
343
343
|
release_status: ""
|
|
344
344
|
};
|
|
345
345
|
function ReleaseSummary({ summary }) {
|
|
346
|
-
if (
|
|
346
|
+
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) {
|
|
347
347
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: SUMMARY_CLASS, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { children: [
|
|
348
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
349
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
348
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", lines: 7, className: "w-full content-md:hidden" }),
|
|
349
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", lines: 3, className: "hidden w-full content-md:block" })
|
|
350
350
|
] }) });
|
|
351
351
|
}
|
|
352
352
|
if (!summary) return null;
|
|
@@ -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 = _chunk5RBL7A2Ycjs.useCaptions.call(void 0, );
|
|
375
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMBU45QUBcjs.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
|
+
} = _chunkF4ZJRMMMcjs.useSelfFetch.call(void 0, slug ? `${endpoint}/${encodeURIComponent(slug)}` : null, {
|
|
382
382
|
initialData: seed
|
|
383
383
|
});
|
|
384
384
|
const showBackButton = backButton !== false;
|
|
@@ -388,7 +388,7 @@ function ReleaseDetailPage({
|
|
|
388
388
|
const [deliveryData, setDeliveryData] = _react.useState.call(void 0, null);
|
|
389
389
|
const [roadmapLoading, setRoadmapLoading] = _react.useState.call(void 0, false);
|
|
390
390
|
const [deliveryLoading, setDeliveryLoading] = _react.useState.call(void 0, false);
|
|
391
|
-
const scoped =
|
|
391
|
+
const scoped = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
392
392
|
_react.useEffect.call(void 0, () => {
|
|
393
393
|
let cancelled = false;
|
|
394
394
|
async function fetchLinkedTasks() {
|
|
@@ -465,7 +465,7 @@ function ReleaseDetailPage({
|
|
|
465
465
|
const bugFixed = view.bugs_fixed;
|
|
466
466
|
const improvements = view.improvements;
|
|
467
467
|
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
468
|
-
|
|
468
|
+
_chunkIJCSQFLDcjs.PageLayout,
|
|
469
469
|
{
|
|
470
470
|
title: releaseTitle,
|
|
471
471
|
subtitle: loading ? void 0 : `Version: ${releaseVersion}`,
|
|
@@ -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
|
+
_chunkMBU45QUBcjs.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
|
+
_chunkGAR2IIU6cjs.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
|
+
_chunkGAR2IIU6cjs.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
|
+
_chunkGAR2IIU6cjs.EntityMetadataValueCell,
|
|
507
507
|
{
|
|
508
|
-
value: releaseDate ?
|
|
508
|
+
value: releaseDate ? _chunkGAR2IIU6cjs.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
|
+
_chunkGAR2IIU6cjs.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: _chunkY6MJMPHVcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
534
534
|
filterPublishedBites: true,
|
|
535
|
-
bitesProfile:
|
|
535
|
+
bitesProfile: _chunkY6MJMPHVcjs.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, _chunkY6MJMPHVcjs.Video, { kind: "youtube", url: youtubeUrl, title: `${releaseTitle} - Video`, layout: "native" }),
|
|
542
|
+
!youtubeUrl && mainVideoUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.Video, { url: mainVideoUrl, captionsUrl, layout: "centered" }),
|
|
543
543
|
highlightVideoUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
544
|
-
|
|
544
|
+
_chunkY6MJMPHVcjs.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, _chunkY6MJMPHVcjs.Card, { className: "border-ods-error bg-ods-error/10", "data-loading-optional": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.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
|
+
_chunkMBU45QUBcjs.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
|
+
_chunkMBU45QUBcjs.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
|
+
_chunkMBU45QUBcjs.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
|
+
_chunkMBU45QUBcjs.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, _chunkMBU45QUBcjs.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
|
+
_chunkMBU45QUBcjs.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, _chunkY6MJMPHVcjs.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, _chunk5RBL7A2Ycjs.LoadingFallback, { label: "Loading the release", children: page }) : page);
|
|
706
706
|
}
|
|
707
707
|
|
|
708
708
|
// src/components/shared/roadmap/use-roadmap-voting.ts
|
|
@@ -722,10 +722,10 @@ function readStoredVotes(storageKey) {
|
|
|
722
722
|
function useRoadmapVoting(options = {}) {
|
|
723
723
|
const voteApiEndpoint = _nullishCoalesce(options.voteApiEndpoint, () => ( DEFAULT_VOTE_ENDPOINT));
|
|
724
724
|
const storageKey = _nullishCoalesce(options.storageKey, () => ( DEFAULT_STORAGE_KEY));
|
|
725
|
-
const { getSignals } =
|
|
725
|
+
const { getSignals } = _chunk7O7EX7HQcjs.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 = _chunk5RBL7A2Ycjs.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,
|
|
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, _chunkGAR2IIU6cjs.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
|
+
_chunkGAR2IIU6cjs.RoadmapCard,
|
|
887
887
|
{
|
|
888
888
|
item,
|
|
889
|
-
id:
|
|
889
|
+
id: _chunk5V3CNLCBcjs.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)
|
|
@@ -901,8 +901,8 @@ var QUARTER_CONTENT_INNER_CLASS = "pb-4";
|
|
|
901
901
|
var ROADMAP_SKELETON_CLOSED_QUARTERS = 4;
|
|
902
902
|
function RoadmapQuarterHeadSkeleton() {
|
|
903
903
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: QUARTER_HEAD_CLASS, children: [
|
|
904
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
905
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
904
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h2", className: "w-40" }),
|
|
905
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-16" })
|
|
906
906
|
] });
|
|
907
907
|
}
|
|
908
908
|
function RoadmapGridQuarterSkeleton({
|
|
@@ -912,7 +912,7 @@ function RoadmapGridQuarterSkeleton({
|
|
|
912
912
|
votes = true
|
|
913
913
|
}) {
|
|
914
914
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: QUARTER_LIST_CLASS, "aria-hidden": true, children: [
|
|
915
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
915
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.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, {}) }) }),
|
|
916
916
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", "data-loading-item": true, children: [
|
|
917
917
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoadmapQuarterHeadSkeleton, {}),
|
|
918
918
|
/* @__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,
|
|
@@ -943,7 +943,7 @@ function RoadmapGrid({
|
|
|
943
943
|
skeletonCount
|
|
944
944
|
}) {
|
|
945
945
|
const { getVote, toggleVote } = useRoadmapVoting(votingOptions);
|
|
946
|
-
const inScope =
|
|
946
|
+
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
947
947
|
const [votingTasks, setVotingTasks] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
|
|
948
948
|
const handleVote = async (taskId, voteType) => {
|
|
949
949
|
if (votingTasks.has(taskId)) return;
|
|
@@ -1034,7 +1034,7 @@ function RoadmapGrid({
|
|
|
1034
1034
|
}
|
|
1035
1035
|
if (items.length === 0) {
|
|
1036
1036
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1037
|
-
|
|
1037
|
+
_chunkHM7VCQSXcjs.EmptyState,
|
|
1038
1038
|
{
|
|
1039
1039
|
type: "generic",
|
|
1040
1040
|
title: "No roadmap items",
|
|
@@ -1056,7 +1056,7 @@ function RoadmapGrid({
|
|
|
1056
1056
|
);
|
|
1057
1057
|
}
|
|
1058
1058
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1059
|
-
|
|
1059
|
+
_chunkMBU45QUBcjs.Accordion,
|
|
1060
1060
|
{
|
|
1061
1061
|
type: "multiple",
|
|
1062
1062
|
value: expandedQuarters,
|
|
@@ -1066,18 +1066,18 @@ 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
|
+
_chunkMBU45QUBcjs.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, _chunkMBU45QUBcjs.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
|
{
|
|
1080
|
-
className:
|
|
1080
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1081
1081
|
"text-ods-text-primary transition-opacity text-h2",
|
|
1082
1082
|
isExpanded ? "opacity-100" : "opacity-60"
|
|
1083
1083
|
),
|
|
@@ -1090,7 +1090,7 @@ function RoadmapGrid({
|
|
|
1090
1090
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1091
1091
|
"span",
|
|
1092
1092
|
{
|
|
1093
|
-
className:
|
|
1093
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1094
1094
|
"transition-opacity text-h6",
|
|
1095
1095
|
isExpanded ? "text-ods-text-secondary opacity-100" : "text-ods-text-tertiary opacity-60"
|
|
1096
1096
|
),
|
|
@@ -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, _chunkMBU45QUBcjs.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 = _chunk5V3CNLCBcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
1133
|
+
var DEFAULT_STATUS_PARAM_KEY2 = _chunk5V3CNLCBcjs.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 } = _chunkF4ZJRMMMcjs.useSelfFetch.call(void 0, url, {
|
|
1153
1153
|
initialData
|
|
1154
1154
|
});
|
|
1155
1155
|
const items = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _21 => _21.items]), () => ( []));
|
|
1156
|
-
|
|
1157
|
-
const syncInPage =
|
|
1156
|
+
_chunk7O7EX7HQcjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkCNTBGJA7cjs.STICKY_HEADER_OFFSET_PX });
|
|
1157
|
+
const syncInPage = _chunkWKODIG3Lcjs.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, _chunkMBU45QUBcjs.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, _chunkMBU45QUBcjs.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, _chunkMBU45QUBcjs.DataSyncLine, { sync: _optionalChain([data, 'optionalAccess', _23 => _23.sync]) }),
|
|
1169
1169
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1170
1170
|
RoadmapGrid,
|
|
1171
1171
|
{
|
|
@@ -1185,14 +1185,14 @@ 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 ${_chunkY6MJMPHVcjs.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,
|
|
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, _chunkWKODIG3Lcjs.DeliveryRow, { loading: true }) }) }) }) });
|
|
1193
1193
|
}
|
|
1194
1194
|
function DeliveryTable({ items, isLoading = false }) {
|
|
1195
|
-
if (
|
|
1195
|
+
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeliveryTableSkeleton, {});
|
|
1196
1196
|
if (items.length === 0) {
|
|
1197
1197
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${TABLE_FRAME_CLASS} p-[var(--spacing-system-xlf)] text-center`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "No tasks available" }) });
|
|
1198
1198
|
}
|
|
@@ -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, _chunkWKODIG3Lcjs.DeliveryRow, { item, id: _chunk5V3CNLCBcjs.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 = _chunk5V3CNLCBcjs.DEV_SECTION_PARAM_KEYS.search;
|
|
1215
|
+
var DEFAULT_TASK_TYPE_PARAM_KEY = _chunk5V3CNLCBcjs.DEV_SECTION_PARAM_KEYS.deliveryTaskType;
|
|
1216
1216
|
function DeliveryLists({
|
|
1217
1217
|
completedApiEndpoint = DEFAULT_COMPLETED_ENDPOINT,
|
|
1218
1218
|
inProgressApiEndpoint = DEFAULT_IN_PROGRESS_ENDPOINT,
|
|
@@ -1224,7 +1224,7 @@ function DeliveryLists({
|
|
|
1224
1224
|
const pathname = _chunk7DNL734Scjs.usePathname.call(void 0, );
|
|
1225
1225
|
const [data, setData] = _react.useState.call(void 0, null);
|
|
1226
1226
|
const [isFetching, setIsLoading] = _react.useState.call(void 0, true);
|
|
1227
|
-
const inScope =
|
|
1227
|
+
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
1228
1228
|
const isLoading = inScope || isFetching;
|
|
1229
1229
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
1230
1230
|
const [sync, setSync] = _react.useState.call(void 0, null);
|
|
@@ -1286,19 +1286,19 @@ function DeliveryLists({
|
|
|
1286
1286
|
]);
|
|
1287
1287
|
const filteredCompleted = _optionalChain([data, 'optionalAccess', _24 => _24.completed]) || [];
|
|
1288
1288
|
const filteredInProgress = _optionalChain([data, 'optionalAccess', _25 => _25.inProgress]) || [];
|
|
1289
|
-
|
|
1290
|
-
const syncInPage =
|
|
1289
|
+
_chunk7O7EX7HQcjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkCNTBGJA7cjs.STICKY_HEADER_OFFSET_PX });
|
|
1290
|
+
const syncInPage = _chunkWKODIG3Lcjs.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, _chunkMBU45QUBcjs.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, _chunkMBU45QUBcjs.DataSyncLine, { sync, loading: isLoading && !data }),
|
|
1300
1300
|
!isLoading && !hasResults && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1301
|
-
|
|
1301
|
+
_chunkWKODIG3Lcjs.ListEmptyState,
|
|
1302
1302
|
{
|
|
1303
1303
|
isFiltered: hasActiveFilters,
|
|
1304
1304
|
filtered: {
|
|
@@ -1400,7 +1400,7 @@ function useLegalDocs(docType, options = {}) {
|
|
|
1400
1400
|
setIsLoading(!initialData);
|
|
1401
1401
|
setReloadCount(0);
|
|
1402
1402
|
}
|
|
1403
|
-
const held =
|
|
1403
|
+
const held = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
1404
1404
|
_react.useEffect.call(void 0, () => {
|
|
1405
1405
|
if (held) return;
|
|
1406
1406
|
if (initialData && reloadCount === 0) return;
|
|
@@ -1482,7 +1482,7 @@ function toLegalDocumentSummaries(payload) {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
function useLegalDocuments(options = {}) {
|
|
1484
1484
|
const endpoint = _nullishCoalesce(options.apiEndpoint, () => ( "/api/legal"));
|
|
1485
|
-
const held =
|
|
1485
|
+
const held = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
1486
1486
|
const enabled = (_nullishCoalesce(options.enabled, () => ( true))) && !held;
|
|
1487
1487
|
const [state, setState] = _react.useState.call(void 0, { documents: [], isLoading: enabled, error: null });
|
|
1488
1488
|
_react.useEffect.call(void 0, () => {
|
|
@@ -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,
|
|
1526
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading the document", className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5RBL7A2Ycjs.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 = _chunkMBU45QUBcjs.RichMarkdownRenderer,
|
|
1539
1539
|
documentsEndpoint,
|
|
1540
1540
|
backButton,
|
|
1541
1541
|
faq,
|
|
@@ -1543,7 +1543,7 @@ function LegalDocumentPage({
|
|
|
1543
1543
|
}) {
|
|
1544
1544
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
1545
1545
|
const { data, isLoading: fetching, error } = useLegalDocs(docType, { initialData, apiEndpoint });
|
|
1546
|
-
const isLoading =
|
|
1546
|
+
const isLoading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || fetching;
|
|
1547
1547
|
const backCfg = backButton === false ? void 0 : {
|
|
1548
1548
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _28 => _28.label]), () => ( "Back to home")),
|
|
1549
1549
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _29 => _29.href]), () => ( "/")))
|
|
@@ -1557,7 +1557,7 @@ function LegalDocumentPage({
|
|
|
1557
1557
|
const emptyStateMessage = _nullishCoalesce(emptyStateMessageProp, () => ( `${title} is not available at this time.`));
|
|
1558
1558
|
const subtitle = isLoading ? void 0 : _nullishCoalesce(legalDocumentStampLabel(data), () => ( fallbackDescription));
|
|
1559
1559
|
const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1560
|
-
|
|
1560
|
+
_chunkIJCSQFLDcjs.PageLayout,
|
|
1561
1561
|
{
|
|
1562
1562
|
title,
|
|
1563
1563
|
subtitle,
|
|
@@ -1566,8 +1566,8 @@ function LegalDocumentPage({
|
|
|
1566
1566
|
titleSize: "h1",
|
|
1567
1567
|
titleWrap: true,
|
|
1568
1568
|
children: [
|
|
1569
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
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:
|
|
1569
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMBU45QUBcjs.DataSyncLine, { sync: data ? { source: "github", syncedAt: data.lastSynced } : null, loading: isLoading }),
|
|
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 }),
|
|
1573
1573
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-error text-h6", children: error })
|
|
@@ -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, _chunkFTGXZHLOcjs.FaqSection, { ..._chunkFTGXZHLOcjs.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, _chunkMBU45QUBcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
1594
1594
|
}
|
|
1595
1595
|
|
|
1596
1596
|
|