@flamingo-stack/openframe-frontend-core 0.0.555 → 0.0.556
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-6ER3AYJM.js → chunk-5756Q6UN.js} +3 -3
- package/dist/{chunk-E2IPBWGT.js → chunk-5EES5HD4.js} +6 -6
- package/dist/{chunk-ODRMPI3Y.js → chunk-5JWLZJK5.js} +2 -2
- package/dist/{chunk-CVCQW7WG.js → chunk-5M4PS3XX.js} +3 -3
- package/dist/{chunk-6QRKCVYR.cjs → chunk-7Q7GFIFB.cjs} +7 -7
- package/dist/{chunk-6QRKCVYR.cjs.map → chunk-7Q7GFIFB.cjs.map} +1 -1
- package/dist/{chunk-UXW63WCV.cjs → chunk-BNMKHG2L.cjs} +4 -4
- package/dist/{chunk-UXW63WCV.cjs.map → chunk-BNMKHG2L.cjs.map} +1 -1
- package/dist/{chunk-SST2YI7S.cjs → chunk-BZKUID4R.cjs} +14 -14
- package/dist/{chunk-SST2YI7S.cjs.map → chunk-BZKUID4R.cjs.map} +1 -1
- package/dist/{chunk-YAOBDOI5.cjs → chunk-C74PZU6M.cjs} +32 -32
- package/dist/{chunk-YAOBDOI5.cjs.map → chunk-C74PZU6M.cjs.map} +1 -1
- package/dist/{chunk-P7MSXPGL.js → chunk-CGUSNV6R.js} +8 -8
- package/dist/{chunk-N5A4AC2J.cjs → chunk-CRGIXNUE.cjs} +23 -23
- package/dist/{chunk-N5A4AC2J.cjs.map → chunk-CRGIXNUE.cjs.map} +1 -1
- package/dist/{chunk-Q6RC3YGW.cjs → chunk-DFJ7TWH6.cjs} +3 -3
- package/dist/{chunk-Q6RC3YGW.cjs.map → chunk-DFJ7TWH6.cjs.map} +1 -1
- package/dist/{chunk-HO3Q7NXJ.js → chunk-FLSEJSTN.js} +2 -2
- package/dist/{chunk-UL3WQWTF.js → chunk-FZT7BYNF.js} +2 -2
- package/dist/{chunk-XOKRFZBD.cjs → chunk-HOEOGFQM.cjs} +97 -97
- package/dist/{chunk-XOKRFZBD.cjs.map → chunk-HOEOGFQM.cjs.map} +1 -1
- package/dist/{chunk-MLVF3OXU.cjs → chunk-HYABNMBN.cjs} +76 -76
- package/dist/{chunk-MLVF3OXU.cjs.map → chunk-HYABNMBN.cjs.map} +1 -1
- package/dist/{chunk-J76LCSR4.cjs → chunk-ICG7JRYT.cjs} +40 -40
- package/dist/{chunk-J76LCSR4.cjs.map → chunk-ICG7JRYT.cjs.map} +1 -1
- package/dist/{chunk-P22HM2MO.cjs → chunk-JDUPAHJR.cjs} +18 -18
- package/dist/{chunk-P22HM2MO.cjs.map → chunk-JDUPAHJR.cjs.map} +1 -1
- package/dist/{chunk-B2GEKAAA.js → chunk-JRWOHH7K.js} +2 -2
- package/dist/{chunk-TXV444YV.js → chunk-JXJ4FTKN.js} +3 -3
- package/dist/{chunk-CU6Q2KQT.cjs → chunk-LZD3VSPS.cjs} +12 -12
- package/dist/{chunk-CU6Q2KQT.cjs.map → chunk-LZD3VSPS.cjs.map} +1 -1
- package/dist/{chunk-M5TWHFIN.cjs → chunk-Q5SZ2QTZ.cjs} +42 -42
- package/dist/{chunk-M5TWHFIN.cjs.map → chunk-Q5SZ2QTZ.cjs.map} +1 -1
- package/dist/{chunk-GSONSIWG.js → chunk-R7A7WHXP.js} +60 -35
- package/dist/chunk-R7A7WHXP.js.map +1 -0
- package/dist/{chunk-E56VNTBV.cjs → chunk-S4LL6QI6.cjs} +147 -147
- package/dist/{chunk-E56VNTBV.cjs.map → chunk-S4LL6QI6.cjs.map} +1 -1
- package/dist/{chunk-KQKU4VXB.cjs → chunk-STHVHAV4.cjs} +82 -57
- package/dist/chunk-STHVHAV4.cjs.map +1 -0
- package/dist/{chunk-A7ES3NZK.cjs → chunk-SXMJLNOF.cjs} +3 -3
- package/dist/{chunk-A7ES3NZK.cjs.map → chunk-SXMJLNOF.cjs.map} +1 -1
- package/dist/{chunk-CTTY5EKH.js → chunk-VF4DCOPD.js} +5 -5
- package/dist/{chunk-QTO3WYB2.cjs → chunk-VJTD2DGF.cjs} +3 -3
- package/dist/{chunk-QTO3WYB2.cjs.map → chunk-VJTD2DGF.cjs.map} +1 -1
- package/dist/{chunk-VGLDA77S.js → chunk-VRX6Y6A7.js} +2 -2
- package/dist/{chunk-L36R3G7Z.js → chunk-VXNMOGRP.js} +6 -6
- package/dist/{chunk-OR67WC32.js → chunk-WBQ3NOH7.js} +2 -2
- package/dist/{chunk-QMQQ37RW.js → chunk-WX5UCLL7.js} +2 -2
- package/dist/{chunk-QZ64JOE2.js → chunk-XGBVHQP7.js} +3 -3
- package/dist/{chunk-K432ES7N.js → chunk-YM2WHYYK.js} +4 -4
- package/dist/{chunk-KXLQITOX.cjs → chunk-Z3R3LOC5.cjs} +5 -5
- package/dist/{chunk-KXLQITOX.cjs.map → chunk-Z3R3LOC5.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +10 -10
- package/dist/components/case-studies/index.js +4 -4
- package/dist/components/chat/index.cjs +4 -4
- package/dist/components/chat/index.js +3 -3
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/contact/index.js +4 -4
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/docs/index.js +6 -6
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/embeds/index.js +4 -4
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/faq/index.js +5 -5
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/features/index.js +3 -3
- package/dist/components/help-center-pages/index.cjs +25 -25
- package/dist/components/help-center-pages/index.js +16 -16
- package/dist/components/index.cjs +138 -138
- package/dist/components/index.js +14 -14
- package/dist/components/meeting-scheduler/index.cjs +35 -35
- package/dist/components/meeting-scheduler/index.js +5 -5
- package/dist/components/navigation/index.cjs +4 -4
- package/dist/components/navigation/index.js +3 -3
- package/dist/components/onboarding-guides/index.cjs +8 -8
- package/dist/components/onboarding-guides/index.js +7 -7
- package/dist/components/related-content/index.cjs +6 -6
- package/dist/components/related-content/index.js +5 -5
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/tickets/index.js +7 -7
- package/dist/components/ui/index.cjs +4 -4
- package/dist/components/ui/index.js +3 -3
- package/dist/hooks/index.cjs +3 -3
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.js +3 -3
- package/dist/nats/index.cjs +2 -2
- package/dist/nats/index.js +1 -1
- package/dist/nats/nats.d.ts.map +1 -1
- package/dist/nats/shared-connection.d.ts +13 -6
- package/dist/nats/shared-connection.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/nats/__tests__/reconnect-lifecycle.test.tsx +814 -0
- package/src/nats/nats.ts +56 -13
- package/src/nats/shared-connection.ts +132 -36
- package/dist/chunk-GSONSIWG.js.map +0 -1
- package/dist/chunk-KQKU4VXB.cjs.map +0 -1
- /package/dist/{chunk-6ER3AYJM.js.map → chunk-5756Q6UN.js.map} +0 -0
- /package/dist/{chunk-E2IPBWGT.js.map → chunk-5EES5HD4.js.map} +0 -0
- /package/dist/{chunk-ODRMPI3Y.js.map → chunk-5JWLZJK5.js.map} +0 -0
- /package/dist/{chunk-CVCQW7WG.js.map → chunk-5M4PS3XX.js.map} +0 -0
- /package/dist/{chunk-P7MSXPGL.js.map → chunk-CGUSNV6R.js.map} +0 -0
- /package/dist/{chunk-HO3Q7NXJ.js.map → chunk-FLSEJSTN.js.map} +0 -0
- /package/dist/{chunk-UL3WQWTF.js.map → chunk-FZT7BYNF.js.map} +0 -0
- /package/dist/{chunk-B2GEKAAA.js.map → chunk-JRWOHH7K.js.map} +0 -0
- /package/dist/{chunk-TXV444YV.js.map → chunk-JXJ4FTKN.js.map} +0 -0
- /package/dist/{chunk-CTTY5EKH.js.map → chunk-VF4DCOPD.js.map} +0 -0
- /package/dist/{chunk-VGLDA77S.js.map → chunk-VRX6Y6A7.js.map} +0 -0
- /package/dist/{chunk-L36R3G7Z.js.map → chunk-VXNMOGRP.js.map} +0 -0
- /package/dist/{chunk-OR67WC32.js.map → chunk-WBQ3NOH7.js.map} +0 -0
- /package/dist/{chunk-QMQQ37RW.js.map → chunk-WX5UCLL7.js.map} +0 -0
- /package/dist/{chunk-QZ64JOE2.js.map → chunk-XGBVHQP7.js.map} +0 -0
- /package/dist/{chunk-K432ES7N.js.map → chunk-YM2WHYYK.js.map} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkSXMJLNOFcjs = require('./chunk-SXMJLNOF.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkBZKUID4Rcjs = require('./chunk-BZKUID4R.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkBNMKHG2Lcjs = require('./chunk-BNMKHG2L.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkZ3R3LOC5cjs = require('./chunk-Z3R3LOC5.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkDFJ7TWH6cjs = require('./chunk-DFJ7TWH6.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -46,12 +46,12 @@ var _chunkQ6RC3YGWcjs = require('./chunk-Q6RC3YGW.cjs');
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunkS4LL6QI6cjs = require('./chunk-S4LL6QI6.cjs');
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunkVJTD2DGFcjs = require('./chunk-VJTD2DGF.cjs');
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
@@ -77,8 +77,8 @@ var _chunkKI4EGKNVcjs = require('./chunk-KI4EGKNV.cjs');
|
|
|
77
77
|
_chunkKI4EGKNVcjs.init_cn.call(void 0, );
|
|
78
78
|
var _jsxruntime = require('react/jsx-runtime');
|
|
79
79
|
var DEFAULT_ENDPOINT = "/api/releases";
|
|
80
|
-
var DEFAULT_SEARCH_PARAM_KEY =
|
|
81
|
-
var DEFAULT_STATUS_PARAM_KEY =
|
|
80
|
+
var DEFAULT_SEARCH_PARAM_KEY = _chunkS4LL6QI6cjs.DEV_SECTION_PARAM_KEYS.search;
|
|
81
|
+
var DEFAULT_STATUS_PARAM_KEY = _chunkS4LL6QI6cjs.DEV_SECTION_PARAM_KEYS.releaseStatus;
|
|
82
82
|
var DEFAULT_PAGE_PARAM_KEY = "page";
|
|
83
83
|
function ReleaseRow({
|
|
84
84
|
release,
|
|
@@ -87,17 +87,17 @@ function ReleaseRow({
|
|
|
87
87
|
}) {
|
|
88
88
|
const runtime = _chunkCEAAOVCVcjs.useChatRuntime.call(void 0, );
|
|
89
89
|
const router = _chunkSSJNN5BScjs.useRouter.call(void 0, );
|
|
90
|
-
const cta =
|
|
90
|
+
const cta = _chunkS4LL6QI6cjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _2 => _2.composeContentUrl]), {
|
|
91
91
|
type: "product_release",
|
|
92
92
|
slug: release.slug,
|
|
93
93
|
basePath,
|
|
94
94
|
platforms: release.product_release_platforms
|
|
95
95
|
});
|
|
96
|
-
const { target, rel } =
|
|
96
|
+
const { target, rel } = _chunkS4LL6QI6cjs.useEntityCardLink.call(void 0, { href: cta.href, targetPlatform: cta.targetPlatform });
|
|
97
97
|
const onClick = (e) => {
|
|
98
|
-
if (e.defaultPrevented ||
|
|
98
|
+
if (e.defaultPrevented || _chunkS4LL6QI6cjs.isModifierClick.call(void 0, e) || target === "_blank") return;
|
|
99
99
|
e.preventDefault();
|
|
100
|
-
|
|
100
|
+
_chunkS4LL6QI6cjs.executeNavigationImperative.call(void 0, {
|
|
101
101
|
runtime,
|
|
102
102
|
href: cta.href,
|
|
103
103
|
targetPlatform: cta.targetPlatform,
|
|
@@ -105,7 +105,7 @@ function ReleaseRow({
|
|
|
105
105
|
});
|
|
106
106
|
};
|
|
107
107
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
108
|
-
|
|
108
|
+
_chunkS4LL6QI6cjs.ProductReleaseCard,
|
|
109
109
|
{
|
|
110
110
|
size: "lg",
|
|
111
111
|
title: release.title,
|
|
@@ -121,7 +121,7 @@ function ProductReleasesView({
|
|
|
121
121
|
initialData,
|
|
122
122
|
itemsPerPage = 5,
|
|
123
123
|
basePath = "/releases",
|
|
124
|
-
buildCardProps =
|
|
124
|
+
buildCardProps = _chunkS4LL6QI6cjs.buildProductReleaseCardProps,
|
|
125
125
|
searchParamKey = DEFAULT_SEARCH_PARAM_KEY,
|
|
126
126
|
statusParamKey = DEFAULT_STATUS_PARAM_KEY,
|
|
127
127
|
pageParamKey = DEFAULT_PAGE_PARAM_KEY,
|
|
@@ -137,7 +137,7 @@ function ProductReleasesView({
|
|
|
137
137
|
const listParams = new URLSearchParams({ limit: String(itemsPerPage), offset: String(offset) });
|
|
138
138
|
if (search) listParams.set(searchParamKey, search);
|
|
139
139
|
if (status && status !== "all") listParams.set(statusParamKey, status);
|
|
140
|
-
const { data, isLoading, error, reload } =
|
|
140
|
+
const { data, isLoading, error, reload } = _chunkDFJ7TWH6cjs.useSelfFetch.call(void 0,
|
|
141
141
|
`${endpoint}?${listParams.toString()}`,
|
|
142
142
|
{ initialData }
|
|
143
143
|
);
|
|
@@ -159,10 +159,10 @@ function ProductReleasesView({
|
|
|
159
159
|
router.replace(`${pathname}?${params.toString()}`, { scroll: false });
|
|
160
160
|
};
|
|
161
161
|
if (error) {
|
|
162
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkKI4EGKNVcjs.cn.call(void 0, "w-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
162
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkKI4EGKNVcjs.cn.call(void 0, "w-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS4LL6QI6cjs.LoadError, { message: "Failed to load releases.", onRetry: reload }) });
|
|
163
163
|
}
|
|
164
164
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkKI4EGKNVcjs.cn.call(void 0, "w-full flex 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: "h-[600px] flex items-center justify-center", children: hasActiveFilters ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
165
|
-
|
|
165
|
+
_chunkBNMKHG2Lcjs.EmptyState,
|
|
166
166
|
{
|
|
167
167
|
type: "search",
|
|
168
168
|
title: "No releases found",
|
|
@@ -172,7 +172,7 @@ function ProductReleasesView({
|
|
|
172
172
|
onCtaClick: resetFilters
|
|
173
173
|
}
|
|
174
174
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
175
|
-
|
|
175
|
+
_chunkBNMKHG2Lcjs.EmptyState,
|
|
176
176
|
{
|
|
177
177
|
type: "generic",
|
|
178
178
|
title: "No releases available",
|
|
@@ -187,13 +187,13 @@ function ProductReleasesView({
|
|
|
187
187
|
"div",
|
|
188
188
|
{
|
|
189
189
|
style: { visibility: isLoading || hasData ? "visible" : "hidden" },
|
|
190
|
-
children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
190
|
+
children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS4LL6QI6cjs.ProductReleaseCardSkeleton, { size: "lg" }) : release ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReleaseRow, { release, basePath, buildCardProps }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS4LL6QI6cjs.ProductReleaseCardSkeleton, { size: "lg" })
|
|
191
191
|
},
|
|
192
192
|
_nullishCoalesce(_optionalChain([release, 'optionalAccess', _5 => _5.id]), () => ( `slot-${i}`))
|
|
193
193
|
);
|
|
194
194
|
}) }),
|
|
195
195
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-6 md:mt-8 flex justify-center", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-12 m-3 w-64" }) : releases.length > 0 && totalPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
196
|
-
|
|
196
|
+
_chunkSXMJLNOFcjs.PersistentPaginationWrapper,
|
|
197
197
|
{
|
|
198
198
|
isLoading: false,
|
|
199
199
|
currentPage,
|
|
@@ -235,10 +235,10 @@ function MediaGalleryStrip({ items, className }) {
|
|
|
235
235
|
mediaItem.id || index
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: tileClass, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
238
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: tileClass, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS4LL6QI6cjs.Video, { url: mediaItem.media_url, layout: "native" }) }, mediaItem.id || index);
|
|
239
239
|
}) }),
|
|
240
240
|
galleryImages.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
241
|
-
|
|
241
|
+
_chunkS4LL6QI6cjs.ImageGalleryModal,
|
|
242
242
|
{
|
|
243
243
|
images: galleryImages,
|
|
244
244
|
isOpen: galleryOpen,
|
|
@@ -255,7 +255,7 @@ _chunkSSJNN5BScjs.init_next_navigation.call(void 0, );
|
|
|
255
255
|
|
|
256
256
|
var _lucidereact = require('lucide-react');
|
|
257
257
|
|
|
258
|
-
var DefaultMarkdownRenderer =
|
|
258
|
+
var DefaultMarkdownRenderer = _chunkS4LL6QI6cjs.RichMarkdownRenderer;
|
|
259
259
|
function ReleaseDetailPage({
|
|
260
260
|
authorHref,
|
|
261
261
|
slug,
|
|
@@ -272,8 +272,8 @@ function ReleaseDetailPage({
|
|
|
272
272
|
shell = true
|
|
273
273
|
}) {
|
|
274
274
|
const router = _chunkSSJNN5BScjs.useRouter.call(void 0, );
|
|
275
|
-
const captions =
|
|
276
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
275
|
+
const captions = _chunkS4LL6QI6cjs.useCaptions.call(void 0, );
|
|
276
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS4LL6QI6cjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
277
277
|
const { data: fetchedRelease, error, isLoading } = useRelease(initialData ? void 0 : slug);
|
|
278
278
|
const release = initialData || fetchedRelease;
|
|
279
279
|
const showBackButton = backButton !== false;
|
|
@@ -291,7 +291,7 @@ function ReleaseDetailPage({
|
|
|
291
291
|
if (roadmapTasksData && roadmapTasksData.length > 0 && RoadmapSection) {
|
|
292
292
|
setRoadmapLoading(true);
|
|
293
293
|
const roadmapIds = roadmapTasksData.map((t) => t.clickup_task_id).join(",");
|
|
294
|
-
const roadmapResponse = await
|
|
294
|
+
const roadmapResponse = await _chunkVJTD2DGFcjs.contentFetch.call(void 0, `${roadmapApiEndpoint}?task_ids=${roadmapIds}`);
|
|
295
295
|
const roadmapData = await roadmapResponse.json();
|
|
296
296
|
setRoadmapTasks(roadmapData.items || []);
|
|
297
297
|
setRoadmapLoading(false);
|
|
@@ -300,7 +300,7 @@ function ReleaseDetailPage({
|
|
|
300
300
|
if (deliveryTasksData && deliveryTasksData.length > 0 && DeliverySection) {
|
|
301
301
|
setDeliveryLoading(true);
|
|
302
302
|
const deliveryIds = deliveryTasksData.map((t) => t.clickup_task_id).join(",");
|
|
303
|
-
const deliveryResponse = await
|
|
303
|
+
const deliveryResponse = await _chunkVJTD2DGFcjs.contentFetch.call(void 0, `${deliveryApiEndpoint}?task_ids=${deliveryIds}`);
|
|
304
304
|
const deliveryResponseData = await deliveryResponse.json();
|
|
305
305
|
setDeliveryData(deliveryResponseData);
|
|
306
306
|
setDeliveryLoading(false);
|
|
@@ -317,7 +317,7 @@ function ReleaseDetailPage({
|
|
|
317
317
|
return renderShell(
|
|
318
318
|
// Match the loaded page's top offset (TitleBlock's
|
|
319
319
|
// `pt-[var(--spacing-system-l)]`) so content doesn't jump on load.
|
|
320
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
320
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ3R3LOC5cjs.DetailPageSkeleton, { bare: true, metadataColumns: 4, showImageGallery: true }) })
|
|
321
321
|
);
|
|
322
322
|
}
|
|
323
323
|
if (error || !release) {
|
|
@@ -356,7 +356,7 @@ function ReleaseDetailPage({
|
|
|
356
356
|
const improvements = release.improvements;
|
|
357
357
|
return renderShell(
|
|
358
358
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
359
|
-
|
|
359
|
+
_chunkS4LL6QI6cjs.PageLayout,
|
|
360
360
|
{
|
|
361
361
|
title: releaseTitle,
|
|
362
362
|
subtitle: `Version: ${releaseVersion}`,
|
|
@@ -365,7 +365,7 @@ function ReleaseDetailPage({
|
|
|
365
365
|
backButton: showBackButton ? { label: backLabel, onClick: () => router.push(backHref) } : void 0,
|
|
366
366
|
children: [
|
|
367
367
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-6 md:space-y-8", children: [
|
|
368
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
368
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS4LL6QI6cjs.EntityTagBadges, { tags: release.product_release_tags }),
|
|
369
369
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 md:grid-cols-4 border border-ods-border rounded-md overflow-hidden w-full", children: [
|
|
370
370
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-ods-card border-b md:border-b-0 md:border-r border-ods-border p-4 flex flex-col gap-3", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-0", children: [
|
|
371
371
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h4 text-ods-text-primary", children: releaseType.toLocaleUpperCase() }),
|
|
@@ -376,11 +376,11 @@ function ReleaseDetailPage({
|
|
|
376
376
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h6 text-ods-text-secondary", children: "Release Status" })
|
|
377
377
|
] }) }),
|
|
378
378
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-ods-card border-b md:border-b-0 md:border-r border-ods-border p-4 flex flex-col gap-3", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-0", children: [
|
|
379
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h4 text-ods-text-primary", children:
|
|
379
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h4 text-ods-text-primary", children: _chunkS4LL6QI6cjs.formatReleaseDate.call(void 0, releaseDate) }),
|
|
380
380
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h6 text-ods-text-secondary", children: "Release Date" })
|
|
381
381
|
] }) }),
|
|
382
382
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
383
|
-
|
|
383
|
+
_chunkS4LL6QI6cjs.EntityMetadataAuthorCell,
|
|
384
384
|
{
|
|
385
385
|
author: _nullishCoalesce(author, () => ( { full_name: null, avatar_url: null })),
|
|
386
386
|
authorHref: _optionalChain([author, 'optionalAccess', _6 => _6.full_name]) ? authorHref : void 0
|
|
@@ -398,9 +398,9 @@ function ReleaseDetailPage({
|
|
|
398
398
|
highlightVideoThumbnail,
|
|
399
399
|
title: releaseTitle,
|
|
400
400
|
videoBites,
|
|
401
|
-
bitesTitle:
|
|
401
|
+
bitesTitle: _chunkS4LL6QI6cjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
402
402
|
filterPublishedBites: true,
|
|
403
|
-
bitesProfile:
|
|
403
|
+
bitesProfile: _chunkS4LL6QI6cjs.toStripProfile.call(void 0, author),
|
|
404
404
|
bitesHref: typeof release.slug === "string" ? `/releases/${release.slug}` : void 0,
|
|
405
405
|
srtContent: _optionalChain([release, 'optionalAccess', _7 => _7.srt_content]),
|
|
406
406
|
captionsUrl,
|
|
@@ -408,7 +408,7 @@ function ReleaseDetailPage({
|
|
|
408
408
|
}
|
|
409
409
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
410
410
|
youtubeUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
411
|
-
|
|
411
|
+
_chunkS4LL6QI6cjs.Video,
|
|
412
412
|
{
|
|
413
413
|
kind: "youtube",
|
|
414
414
|
url: youtubeUrl,
|
|
@@ -417,7 +417,7 @@ function ReleaseDetailPage({
|
|
|
417
417
|
}
|
|
418
418
|
),
|
|
419
419
|
!youtubeUrl && mainVideoUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
420
|
-
|
|
420
|
+
_chunkS4LL6QI6cjs.Video,
|
|
421
421
|
{
|
|
422
422
|
url: mainVideoUrl,
|
|
423
423
|
srtContent: _optionalChain([release, 'optionalAccess', _8 => _8.srt_content]),
|
|
@@ -426,7 +426,7 @@ function ReleaseDetailPage({
|
|
|
426
426
|
}
|
|
427
427
|
),
|
|
428
428
|
highlightVideoUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
429
|
-
|
|
429
|
+
_chunkS4LL6QI6cjs.Video,
|
|
430
430
|
{
|
|
431
431
|
url: highlightVideoUrl,
|
|
432
432
|
poster: highlightVideoThumbnail,
|
|
@@ -436,7 +436,7 @@ function ReleaseDetailPage({
|
|
|
436
436
|
)
|
|
437
437
|
] }),
|
|
438
438
|
releaseContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-h4 text-ods-text-primary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: releaseContent }) }),
|
|
439
|
-
hasBreakingChanges && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
439
|
+
hasBreakingChanges && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS4LL6QI6cjs.Card, { className: "border-ods-error bg-ods-error/10", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS4LL6QI6cjs.CardContent, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
440
440
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-6 w-6 text-ods-error" }),
|
|
441
441
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
442
442
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-h3 text-ods-error", children: "Breaking Changes" }),
|
|
@@ -444,7 +444,7 @@ function ReleaseDetailPage({
|
|
|
444
444
|
] })
|
|
445
445
|
] }) }) }),
|
|
446
446
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
447
|
-
|
|
447
|
+
_chunkS4LL6QI6cjs.ReleaseChangelogSection,
|
|
448
448
|
{
|
|
449
449
|
title: "Breaking Changes",
|
|
450
450
|
entries: breakingChanges || [],
|
|
@@ -455,7 +455,7 @@ function ReleaseDetailPage({
|
|
|
455
455
|
}
|
|
456
456
|
),
|
|
457
457
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
458
|
-
|
|
458
|
+
_chunkS4LL6QI6cjs.ReleaseChangelogSection,
|
|
459
459
|
{
|
|
460
460
|
title: "Features Added",
|
|
461
461
|
entries: featuresAdded || [],
|
|
@@ -465,7 +465,7 @@ function ReleaseDetailPage({
|
|
|
465
465
|
}
|
|
466
466
|
),
|
|
467
467
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
468
|
-
|
|
468
|
+
_chunkS4LL6QI6cjs.ReleaseChangelogSection,
|
|
469
469
|
{
|
|
470
470
|
title: "Bugs Fixed",
|
|
471
471
|
entries: bugFixed || [],
|
|
@@ -475,7 +475,7 @@ function ReleaseDetailPage({
|
|
|
475
475
|
}
|
|
476
476
|
),
|
|
477
477
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
478
|
-
|
|
478
|
+
_chunkS4LL6QI6cjs.ReleaseChangelogSection,
|
|
479
479
|
{
|
|
480
480
|
title: "Improvements",
|
|
481
481
|
entries: improvements || [],
|
|
@@ -506,7 +506,7 @@ function ReleaseDetailPage({
|
|
|
506
506
|
(() => {
|
|
507
507
|
const deliveryCount = deliveryData ? deliveryData.completed.length + deliveryData.inProgress.length : 0;
|
|
508
508
|
return deliveryLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeliverySection, { data: deliveryData, isLoading: deliveryLoading }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
509
|
-
|
|
509
|
+
_chunkS4LL6QI6cjs.FadePreview,
|
|
510
510
|
{
|
|
511
511
|
hiddenCount: deliveryCount - 1,
|
|
512
512
|
collapsedHeight: 300,
|
|
@@ -518,7 +518,7 @@ function ReleaseDetailPage({
|
|
|
518
518
|
] }),
|
|
519
519
|
(_optionalChain([githubReleases, 'optionalAccess', _9 => _9.length]) || _optionalChain([knowledgeBaseLinks, 'optionalAccess', _10 => _10.length]) || migrationGuideUrl || documentationUrl) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1 w-full", children: [
|
|
520
520
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h5 tracking-[-0.28px] text-ods-text-secondary", children: "Related Links" }),
|
|
521
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
521
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS4LL6QI6cjs.Card, { className: "bg-ods-card border-ods-border p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
522
522
|
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: [
|
|
523
523
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3M2MFP2Ycjs.GitHubIcon, { className: "shrink-0", width: 24, height: 24, color: "var(--color-text-secondary)" }),
|
|
524
524
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h4 text-ods-text-primary", children: "Github Release" }),
|
|
@@ -592,7 +592,7 @@ function ReleaseDetailPage({
|
|
|
592
592
|
// src/components/shared/product-release/release-detail-skeleton.tsx
|
|
593
593
|
|
|
594
594
|
function ReleaseDetailSkeleton() {
|
|
595
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
595
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ3R3LOC5cjs.DetailPageSkeleton, { metadataColumns: 4, showImageGallery: true });
|
|
596
596
|
}
|
|
597
597
|
|
|
598
598
|
// src/components/shared/roadmap/use-roadmap-voting.ts
|
|
@@ -643,7 +643,7 @@ function useRoadmapVoting(options = {}) {
|
|
|
643
643
|
action = "remove";
|
|
644
644
|
} else {
|
|
645
645
|
if (currentVote) {
|
|
646
|
-
await
|
|
646
|
+
await _chunkVJTD2DGFcjs.contentFetch.call(void 0, voteApiEndpoint, {
|
|
647
647
|
method: "POST",
|
|
648
648
|
headers: { "Content-Type": "application/json" },
|
|
649
649
|
body: JSON.stringify({
|
|
@@ -661,7 +661,7 @@ function useRoadmapVoting(options = {}) {
|
|
|
661
661
|
[taskId]: newVote
|
|
662
662
|
}));
|
|
663
663
|
try {
|
|
664
|
-
const response = await
|
|
664
|
+
const response = await _chunkVJTD2DGFcjs.contentFetch.call(void 0, voteApiEndpoint, {
|
|
665
665
|
method: "POST",
|
|
666
666
|
headers: { "Content-Type": "application/json" },
|
|
667
667
|
body: JSON.stringify({ taskId, voteType, action })
|
|
@@ -753,10 +753,10 @@ function RoadmapGridSingle({
|
|
|
753
753
|
// `useScrollToHash` in `roadmap-view.tsx` finds the card by id
|
|
754
754
|
// and scrolls.
|
|
755
755
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
756
|
-
|
|
756
|
+
_chunkS4LL6QI6cjs.RoadmapCard,
|
|
757
757
|
{
|
|
758
758
|
item,
|
|
759
|
-
id:
|
|
759
|
+
id: _chunkS4LL6QI6cjs.devSectionAnchorId.call(void 0, "roadmap", item.id),
|
|
760
760
|
userVote: getVote(item.id),
|
|
761
761
|
onVote: (voteType) => onVote(item.id, voteType),
|
|
762
762
|
isVoting: votingTasks.has(item.id)
|
|
@@ -783,7 +783,7 @@ function RoadmapGrid({
|
|
|
783
783
|
try {
|
|
784
784
|
const result = await toggleVote(taskId, voteType);
|
|
785
785
|
if (result.success) {
|
|
786
|
-
const response = await
|
|
786
|
+
const response = await _chunkVJTD2DGFcjs.contentFetch.call(void 0, buildRefreshUrl(taskId));
|
|
787
787
|
if (response.ok) {
|
|
788
788
|
const data = await response.json();
|
|
789
789
|
if (data.item && onItemUpdate) onItemUpdate(data.item);
|
|
@@ -836,7 +836,7 @@ function RoadmapGrid({
|
|
|
836
836
|
}, [hasActiveFilters, sortedQuartersKey, isInitialized, quartersToKeepClosed]);
|
|
837
837
|
if (items.length === 0) {
|
|
838
838
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
839
|
-
|
|
839
|
+
_chunkBNMKHG2Lcjs.EmptyState,
|
|
840
840
|
{
|
|
841
841
|
type: "generic",
|
|
842
842
|
title: "No roadmap items",
|
|
@@ -857,7 +857,7 @@ function RoadmapGrid({
|
|
|
857
857
|
);
|
|
858
858
|
}
|
|
859
859
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
860
|
-
|
|
860
|
+
_chunkS4LL6QI6cjs.Accordion,
|
|
861
861
|
{
|
|
862
862
|
type: "multiple",
|
|
863
863
|
value: expandedQuarters,
|
|
@@ -867,13 +867,13 @@ function RoadmapGrid({
|
|
|
867
867
|
const itemCount = _optionalChain([itemsByQuarter, 'access', _19 => _19[quarter], 'optionalAccess', _20 => _20.length]) || 0;
|
|
868
868
|
const isExpanded = expandedQuarters.includes(quarter);
|
|
869
869
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
870
|
-
|
|
870
|
+
_chunkS4LL6QI6cjs.AccordionItem,
|
|
871
871
|
{
|
|
872
872
|
value: quarter,
|
|
873
873
|
id: `quarter-${quarter.replace(/\s+/g, "-").toLowerCase()}`,
|
|
874
874
|
className: "border-0",
|
|
875
875
|
children: [
|
|
876
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
876
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS4LL6QI6cjs.AccordionTrigger, { className: "w-full p-0 hover:no-underline [&>svg]:h-5 [&>svg]:w-5 [&>svg]:text-ods-text-secondary [&>svg]:ml-auto [&>svg]:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
877
877
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
878
878
|
"h3",
|
|
879
879
|
{
|
|
@@ -903,7 +903,7 @@ function RoadmapGrid({
|
|
|
903
903
|
}
|
|
904
904
|
)
|
|
905
905
|
] }) }),
|
|
906
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
906
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS4LL6QI6cjs.AccordionContent, { className: "pt-4 pb-0 overflow-hidden data-[state=closed]:animate-none data-[state=open]:animate-none", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
907
907
|
RoadmapGridSingle,
|
|
908
908
|
{
|
|
909
909
|
items: itemsByQuarter[quarter],
|
|
@@ -954,8 +954,8 @@ function RoadmapGridSkeleton({ count = 4, showLeftMargin = true }) {
|
|
|
954
954
|
|
|
955
955
|
|
|
956
956
|
var DEFAULT_ENDPOINT2 = "/api/roadmap";
|
|
957
|
-
var DEFAULT_SEARCH_PARAM_KEY2 =
|
|
958
|
-
var DEFAULT_STATUS_PARAM_KEY2 =
|
|
957
|
+
var DEFAULT_SEARCH_PARAM_KEY2 = _chunkS4LL6QI6cjs.DEV_SECTION_PARAM_KEYS.search;
|
|
958
|
+
var DEFAULT_STATUS_PARAM_KEY2 = _chunkS4LL6QI6cjs.DEV_SECTION_PARAM_KEYS.status;
|
|
959
959
|
function RoadmapView({
|
|
960
960
|
endpoint = DEFAULT_ENDPOINT2,
|
|
961
961
|
initialItems,
|
|
@@ -974,14 +974,14 @@ function RoadmapView({
|
|
|
974
974
|
const qs = listParams.toString();
|
|
975
975
|
const url = qs ? `${endpoint}?${qs}` : endpoint;
|
|
976
976
|
const initialData = _react.useMemo.call(void 0, () => initialItems ? { items: initialItems } : void 0, [initialItems]);
|
|
977
|
-
const { data, setData, isLoading, error, reload } =
|
|
977
|
+
const { data, setData, isLoading, error, reload } = _chunkDFJ7TWH6cjs.useSelfFetch.call(void 0,
|
|
978
978
|
url,
|
|
979
979
|
{ initialData }
|
|
980
980
|
);
|
|
981
981
|
const items = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _21 => _21.items]), () => ( []));
|
|
982
|
-
|
|
982
|
+
_chunkVJTD2DGFcjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkVJTD2DGFcjs.STICKY_HEADER_OFFSET_PX });
|
|
983
983
|
if (error) {
|
|
984
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
984
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS4LL6QI6cjs.LoadError, { message: "Failed to load roadmap.", onRetry: reload });
|
|
985
985
|
}
|
|
986
986
|
if (isLoading && !data) {
|
|
987
987
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoadmapGridSkeleton, { showLeftMargin });
|
|
@@ -1038,7 +1038,7 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1038
1038
|
"div",
|
|
1039
1039
|
{
|
|
1040
1040
|
className: "border-b border-ods-border last:border-b-0",
|
|
1041
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1041
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBZKUID4Rcjs.DeliveryRow, { item, id: _chunkS4LL6QI6cjs.devSectionAnchorId.call(void 0, "delivery", item.id) })
|
|
1042
1042
|
},
|
|
1043
1043
|
item.id
|
|
1044
1044
|
)
|
|
@@ -1050,8 +1050,8 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1050
1050
|
|
|
1051
1051
|
var DEFAULT_COMPLETED_ENDPOINT = "/api/delivery/completed";
|
|
1052
1052
|
var DEFAULT_IN_PROGRESS_ENDPOINT = "/api/delivery/in-progress";
|
|
1053
|
-
var DEFAULT_SEARCH_PARAM_KEY3 =
|
|
1054
|
-
var DEFAULT_TASK_TYPE_PARAM_KEY =
|
|
1053
|
+
var DEFAULT_SEARCH_PARAM_KEY3 = _chunkS4LL6QI6cjs.DEV_SECTION_PARAM_KEYS.search;
|
|
1054
|
+
var DEFAULT_TASK_TYPE_PARAM_KEY = _chunkS4LL6QI6cjs.DEV_SECTION_PARAM_KEYS.deliveryTaskType;
|
|
1055
1055
|
function DeliveryLists({
|
|
1056
1056
|
completedApiEndpoint = DEFAULT_COMPLETED_ENDPOINT,
|
|
1057
1057
|
inProgressApiEndpoint = DEFAULT_IN_PROGRESS_ENDPOINT,
|
|
@@ -1081,8 +1081,8 @@ function DeliveryLists({
|
|
|
1081
1081
|
const queryString = params.toString();
|
|
1082
1082
|
const queryParam = queryString ? `?${queryString}` : "";
|
|
1083
1083
|
const [completedResponse, inProgressResponse] = await Promise.all([
|
|
1084
|
-
|
|
1085
|
-
|
|
1084
|
+
_chunkVJTD2DGFcjs.contentFetch.call(void 0, `${completedApiEndpoint}${queryParam}`),
|
|
1085
|
+
_chunkVJTD2DGFcjs.contentFetch.call(void 0, `${inProgressApiEndpoint}${queryParam}`)
|
|
1086
1086
|
]);
|
|
1087
1087
|
if (!completedResponse.ok || !inProgressResponse.ok) {
|
|
1088
1088
|
throw new Error("Failed to fetch delivery items");
|
|
@@ -1106,17 +1106,17 @@ function DeliveryLists({
|
|
|
1106
1106
|
}, [searchQuery, taskTypeFilter, completedApiEndpoint, inProgressApiEndpoint, searchParamKey, taskTypeParamKey]);
|
|
1107
1107
|
const filteredCompleted = _optionalChain([data, 'optionalAccess', _22 => _22.completed]) || [];
|
|
1108
1108
|
const filteredInProgress = _optionalChain([data, 'optionalAccess', _23 => _23.inProgress]) || [];
|
|
1109
|
-
|
|
1109
|
+
_chunkVJTD2DGFcjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkVJTD2DGFcjs.STICKY_HEADER_OFFSET_PX });
|
|
1110
1110
|
const showCompleted = true;
|
|
1111
1111
|
const showInProgress = true;
|
|
1112
1112
|
const hasActiveFilters = searchQuery !== "" || taskTypeFilter !== "all";
|
|
1113
1113
|
const hasResults = showCompleted && filteredCompleted.length > 0 || showInProgress && filteredInProgress.length > 0;
|
|
1114
1114
|
if (error) {
|
|
1115
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1115
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS4LL6QI6cjs.LoadError, { message: error, onRetry: () => window.location.reload() }) });
|
|
1116
1116
|
}
|
|
1117
1117
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-full flex flex-col gap-[40px]", children: [
|
|
1118
1118
|
!isLoading && !hasResults && (hasActiveFilters ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1119
|
-
|
|
1119
|
+
_chunkBNMKHG2Lcjs.EmptyState,
|
|
1120
1120
|
{
|
|
1121
1121
|
type: "search",
|
|
1122
1122
|
title: "No tasks found",
|
|
@@ -1131,7 +1131,7 @@ function DeliveryLists({
|
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
1133
1133
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1134
|
-
|
|
1134
|
+
_chunkBNMKHG2Lcjs.EmptyState,
|
|
1135
1135
|
{
|
|
1136
1136
|
type: "generic",
|
|
1137
1137
|
title: "No tasks available",
|
|
@@ -1180,7 +1180,7 @@ function useLegalDocs(docType, options = {}) {
|
|
|
1180
1180
|
try {
|
|
1181
1181
|
setIsLoading(true);
|
|
1182
1182
|
setError(null);
|
|
1183
|
-
const response = await
|
|
1183
|
+
const response = await _chunkVJTD2DGFcjs.contentFetch.call(void 0, effectiveEndpoint);
|
|
1184
1184
|
if (!response.ok) {
|
|
1185
1185
|
throw new Error(
|
|
1186
1186
|
`Failed to fetch ${docType} document: ${response.status} ${response.statusText}`
|
|
@@ -1233,7 +1233,7 @@ function LegalDocumentPage({
|
|
|
1233
1233
|
initialData = null,
|
|
1234
1234
|
initialLastUpdatedLabel = null,
|
|
1235
1235
|
apiEndpoint,
|
|
1236
|
-
MarkdownRenderer =
|
|
1236
|
+
MarkdownRenderer = _chunkS4LL6QI6cjs.RichMarkdownRenderer,
|
|
1237
1237
|
backButton,
|
|
1238
1238
|
shell = true
|
|
1239
1239
|
}) {
|
|
@@ -1243,10 +1243,10 @@ function LegalDocumentPage({
|
|
|
1243
1243
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _24 => _24.label]), () => ( "Back to home")),
|
|
1244
1244
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _25 => _25.href]), () => ( "/")))
|
|
1245
1245
|
};
|
|
1246
|
-
const fallbackLastUpdatedLabel = _optionalChain([data, 'optionalAccess', _26 => _26.lastSynced]) != null ?
|
|
1246
|
+
const fallbackLastUpdatedLabel = _optionalChain([data, 'optionalAccess', _26 => _26.lastSynced]) != null ? _chunkS4LL6QI6cjs.formatLegalDate.call(void 0, data.lastSynced) : null;
|
|
1247
1247
|
const effectiveLastUpdatedLabel = _nullishCoalesce(initialLastUpdatedLabel, () => ( fallbackLastUpdatedLabel));
|
|
1248
1248
|
const subtitle = effectiveLastUpdatedLabel ? `Last Updated: ${effectiveLastUpdatedLabel}` : fallbackDescription;
|
|
1249
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1249
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS4LL6QI6cjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: [
|
|
1250
1250
|
_optionalChain([data, 'optionalAccess', _27 => _27.sourceFile]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-h6 text-ods-text-secondary opacity-75", children: [
|
|
1251
1251
|
"Source: ",
|
|
1252
1252
|
data.sourceFile
|
|
@@ -1293,7 +1293,7 @@ function LegalDocumentPage({
|
|
|
1293
1293
|
] })
|
|
1294
1294
|
] }) }) }) }) })
|
|
1295
1295
|
] });
|
|
1296
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1296
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS4LL6QI6cjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
1297
1297
|
}
|
|
1298
1298
|
|
|
1299
1299
|
|
|
@@ -1310,4 +1310,4 @@ function LegalDocumentPage({
|
|
|
1310
1310
|
|
|
1311
1311
|
|
|
1312
1312
|
exports.ProductReleasesView = ProductReleasesView; exports.MediaGalleryStrip = MediaGalleryStrip; exports.ReleaseDetailPage = ReleaseDetailPage; exports.ReleaseDetailSkeleton = ReleaseDetailSkeleton; exports.useRoadmapVoting = useRoadmapVoting; exports.RoadmapGrid = RoadmapGrid; exports.RoadmapGridSkeleton = RoadmapGridSkeleton; exports.RoadmapView = RoadmapView; exports.DeliveryTable = DeliveryTable; exports.DeliveryLists = DeliveryLists; exports.useLegalDocs = useLegalDocs; exports.LegalDocumentPage = LegalDocumentPage;
|
|
1313
|
-
//# sourceMappingURL=chunk-
|
|
1313
|
+
//# sourceMappingURL=chunk-HYABNMBN.cjs.map
|