@flamingo-stack/openframe-frontend-core 0.0.852 → 0.0.853
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/{chunk-MXY2OGEV.cjs → chunk-53QPG7SJ.cjs} +3 -3
- package/dist/{chunk-X3WIOMEE.cjs → chunk-67CZ2Q5K.cjs} +7 -7
- package/dist/{chunk-477P6AQH.cjs → chunk-6V2M2X3M.cjs} +2 -2
- package/dist/{chunk-VUHHLRAY.cjs → chunk-7RZHSBNX.cjs} +24 -24
- package/dist/{chunk-GEZ3UXCA.cjs → chunk-BNG6JOGZ.cjs} +4 -4
- package/dist/{chunk-CHGIACIP.cjs → chunk-E4MFQKPC.cjs} +31 -31
- package/dist/{chunk-MFDRCTM3.cjs → chunk-EF2FZ7GT.cjs} +9 -9
- package/dist/{chunk-D3H6AI7O.cjs → chunk-GI6ECCWB.cjs} +28 -8
- package/dist/{chunk-WFAZMASF.cjs → chunk-HF3V6WBJ.cjs} +3 -3
- package/dist/{chunk-3ZQESOPJ.cjs → chunk-KEV6F3QN.cjs} +21 -21
- package/dist/{chunk-3SJVF3HW.cjs → chunk-TBGQMHCG.cjs} +3 -3
- package/dist/{cloud-tenants-O33HCUYB.cjs → cloud-tenants-QUL2XPAS.cjs} +2 -2
- package/dist/components/case-studies/index.cjs +11 -11
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/docs/index.cjs +4 -4
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/help-center-pages/index.cjs +46 -46
- package/dist/components/help-center-pages/trust-center-page.d.ts +1 -1
- package/dist/components/index.cjs +23 -17
- package/dist/components/meeting-scheduler/index.cjs +17 -17
- package/dist/components/navigation/index.cjs +3 -3
- package/dist/components/onboarding-guides/index.cjs +3 -3
- package/dist/components/platform/tool-badge-mark.d.ts +1 -1
- package/dist/components/product-demo/index.cjs +11 -11
- package/dist/components/tickets/index.cjs +5 -5
- package/dist/components/ui/data-attribution.d.ts +8 -3
- package/dist/components/ui/data-attribution.d.ts.map +1 -1
- package/dist/components/ui/data-attribution.js +17 -6
- package/dist/components/ui/index.cjs +8 -2
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -0
- package/dist/{devices-2RGGMC2B.cjs → devices-LNB4CYPP.cjs} +3 -3
- package/dist/index.cjs +5 -3
- package/dist/{knowledge-5TJIXVMD.cjs → knowledge-UTWKB6XG.cjs} +2 -2
- package/dist/{logs-HGQOTRKZ.cjs → logs-PMXIWMBQ.cjs} +9 -9
- package/dist/{policies-GWFSLVSM.cjs → policies-6DCMFDL7.cjs} +6 -6
- package/dist/{scripts-PGJNAZF4.cjs → scripts-2G7LXW7Z.cjs} +7 -7
- package/dist/{software-update-KKLSYHDI.cjs → software-update-MYLKHDHC.cjs} +5 -5
- package/dist/types/data-sync.d.ts +4 -1
- package/dist/types/data-sync.d.ts.map +1 -1
- package/dist/types/data-sync.js +4 -1
- package/dist/types/index.cjs +4 -1
- package/package.json +1 -1
- package/src/components/help-center-pages/trust-center-page.tsx +1 -1
- package/src/components/platform/tool-badge-mark.ts +1 -1
- package/src/components/ui/data-attribution.tsx +20 -8
- package/src/components/ui/index.ts +2 -0
- package/src/types/data-sync.ts +4 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkGI6ECCWBcjs = require('./chunk-GI6ECCWB.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -209,7 +209,7 @@ function ContactForm({
|
|
|
209
209
|
!showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
|
|
210
210
|
!showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
|
|
211
211
|
!showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
|
|
212
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
212
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.HoneypotField, { ...honeypotInputProps }),
|
|
213
213
|
extraTopField,
|
|
214
214
|
showNameEmailRow && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
|
|
215
215
|
showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
@@ -334,7 +334,7 @@ function ContactForm({
|
|
|
334
334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHXURNKXIcjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunkGI6ECCWBcjs.Textarea,
|
|
338
338
|
{
|
|
339
339
|
id: "message",
|
|
340
340
|
...register("message"),
|
|
@@ -12,7 +12,7 @@ var _chunk5RMBLOJ5cjs = require('./chunk-5RMBLOJ5.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkGI6ECCWBcjs = require('./chunk-GI6ECCWB.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkCOJG2ATYcjs = require('./chunk-COJG2ATY.cjs');
|
|
@@ -173,7 +173,7 @@ function OnboardingGuidesCatalogView({
|
|
|
173
173
|
}
|
|
174
174
|
),
|
|
175
175
|
(loading || sections.length > 0) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
176
|
-
|
|
176
|
+
_chunkGI6ECCWBcjs.FilterPillRow,
|
|
177
177
|
{
|
|
178
178
|
label: "Section",
|
|
179
179
|
selectedValue: activeSection,
|
|
@@ -184,7 +184,7 @@ function OnboardingGuidesCatalogView({
|
|
|
184
184
|
)
|
|
185
185
|
] });
|
|
186
186
|
if (!loading && selfFetch && guidesRes.error) {
|
|
187
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
187
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
188
188
|
}
|
|
189
189
|
const view = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_VIEW_CLASS, children: [
|
|
190
190
|
preControls,
|
|
@@ -304,7 +304,7 @@ function OnboardingGuideDetailView({
|
|
|
304
304
|
slug,
|
|
305
305
|
guideEndpoint,
|
|
306
306
|
related = [],
|
|
307
|
-
MarkdownRenderer =
|
|
307
|
+
MarkdownRenderer = _chunkGI6ECCWBcjs.RichMarkdownRenderer,
|
|
308
308
|
renderRelatedCard,
|
|
309
309
|
backHref,
|
|
310
310
|
backLabel = "Back to Getting Started",
|
|
@@ -316,7 +316,7 @@ function OnboardingGuideDetailView({
|
|
|
316
316
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
317
317
|
const captions = _chunkLFEURIZNcjs.useCaptions.call(void 0, );
|
|
318
318
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
319
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
319
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
320
320
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
321
321
|
const scoped = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
322
322
|
const {
|
|
@@ -334,7 +334,7 @@ function OnboardingGuideDetailView({
|
|
|
334
334
|
const backCfg = { label: backLabel, onClick: () => router.push(resolvedBackHref) };
|
|
335
335
|
const loading = scoped || !guide && isLoading;
|
|
336
336
|
if (!loading && (error || !guide)) {
|
|
337
|
-
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
+
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
338
338
|
}
|
|
339
339
|
const view = _nullishCoalesce(guide, () => ( EMPTY_ONBOARDING_GUIDE));
|
|
340
340
|
const { captionsUrl, highlightCaptionsUrl } = captions.forEntity("onboarding_guide", view);
|
|
@@ -352,7 +352,7 @@ function OnboardingGuideDetailView({
|
|
|
352
352
|
};
|
|
353
353
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
354
354
|
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkCOJG2ATYcjs.PageLayout, { title: view.title, loading, titleSize: "h1", titleWrap: true, backButton: backCfg, children: [
|
|
355
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
355
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.EntityTagBadges, { tags: view.onboarding_guide_tags }),
|
|
356
356
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
357
357
|
_chunkNMWLXHFHcjs.EntityAuthorCard,
|
|
358
358
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkQOW2GP3Vcjs = require('./chunk-QOW2GP3V.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkGI6ECCWBcjs = require('./chunk-GI6ECCWB.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkCOJG2ATYcjs = require('./chunk-COJG2ATY.cjs');
|
|
@@ -51,7 +51,7 @@ function FaqDocumentPage({
|
|
|
51
51
|
skeletonNav
|
|
52
52
|
}
|
|
53
53
|
) });
|
|
54
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
54
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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 _chunk53QPG7SJcjs = require('./chunk-53QPG7SJ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkBNG6JOGZcjs = require('./chunk-BNG6JOGZ.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -28,7 +28,7 @@ var _chunkKHOB3TEScjs = require('./chunk-KHOB3TES.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkGI6ECCWBcjs = require('./chunk-GI6ECCWB.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -693,7 +693,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
693
693
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
694
694
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVCFQHPOOcjs.Label, { htmlFor: "ticket-content", className: "mb-1", children: "Your Message" }),
|
|
695
695
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
696
|
-
|
|
696
|
+
_chunkGI6ECCWBcjs.Textarea,
|
|
697
697
|
{
|
|
698
698
|
id: "ticket-content",
|
|
699
699
|
placeholder: "Describe your issue or question in detail...",
|
|
@@ -823,7 +823,7 @@ function TicketLinkedDeliveryCard({ clickup, className }) {
|
|
|
823
823
|
dateClosed: clickup.date_closed,
|
|
824
824
|
clickupUrl: _nullishCoalesce(clickup.clickup_url, () => ( ""))
|
|
825
825
|
};
|
|
826
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${_chunkO3EKOXFZcjs.CONTENT_CARD_SKELETON_FRAME_CLASS} ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
826
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${_chunkO3EKOXFZcjs.CONTENT_CARD_SKELETON_FRAME_CLASS} ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBNG6JOGZcjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
|
|
827
827
|
}
|
|
828
828
|
|
|
829
829
|
// src/components/tickets/ticket-reply-composer.tsx
|
|
@@ -905,13 +905,13 @@ function TicketReplyComposer({
|
|
|
905
905
|
}
|
|
906
906
|
)
|
|
907
907
|
] }),
|
|
908
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
909
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
910
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
911
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
908
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGI6ECCWBcjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
|
|
909
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGI6ECCWBcjs.AlertDialogHeader, { children: [
|
|
910
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
|
|
911
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.AlertDialogDescription, { className: "text-ods-text-secondary", children: "Add an optional resolution note below. You can reopen the ticket later if needed." })
|
|
912
912
|
] }),
|
|
913
913
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
914
|
-
|
|
914
|
+
_chunkGI6ECCWBcjs.Textarea,
|
|
915
915
|
{
|
|
916
916
|
value: resolution,
|
|
917
917
|
onChange: (e) => setResolution(e.target.value),
|
|
@@ -921,9 +921,9 @@ function TicketReplyComposer({
|
|
|
921
921
|
className: "mt-2"
|
|
922
922
|
}
|
|
923
923
|
),
|
|
924
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
924
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGI6ECCWBcjs.AlertDialogFooter, { children: [
|
|
925
925
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
926
|
-
|
|
926
|
+
_chunkGI6ECCWBcjs.AlertDialogCancel,
|
|
927
927
|
{
|
|
928
928
|
disabled: busy,
|
|
929
929
|
className: "border-ods-border bg-transparent text-ods-text-primary hover:bg-ods-border",
|
|
@@ -931,7 +931,7 @@ function TicketReplyComposer({
|
|
|
931
931
|
}
|
|
932
932
|
),
|
|
933
933
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
934
|
-
|
|
934
|
+
_chunkGI6ECCWBcjs.AlertDialogAction,
|
|
935
935
|
{
|
|
936
936
|
onClick: () => void confirmClose(),
|
|
937
937
|
disabled: busy,
|
|
@@ -1092,7 +1092,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1092
1092
|
avatarUrl: avatarSrc,
|
|
1093
1093
|
timeLabel: eng.createdAt ? _chunkU767P4JUcjs.formatRelativeTime.call(void 0, eng.createdAt) : null,
|
|
1094
1094
|
body: stripAttachmentsPreamble(_nullishCoalesce(eng.body, () => ( ""))),
|
|
1095
|
-
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1095
|
+
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
|
|
1096
1096
|
},
|
|
1097
1097
|
eng.id
|
|
1098
1098
|
);
|
|
@@ -1339,7 +1339,7 @@ function TicketCenterAuthed({
|
|
|
1339
1339
|
const toggleRow = _react.useCallback.call(void 0, (id) => {
|
|
1340
1340
|
setExpandedTicketId((prev) => prev === id ? null : id);
|
|
1341
1341
|
}, []);
|
|
1342
|
-
const syncInPage =
|
|
1342
|
+
const syncInPage = _chunkBNG6JOGZcjs.usePageDataSync.call(void 0, sync, isLoading);
|
|
1343
1343
|
const merged = [...optimisticTickets, ...tickets];
|
|
1344
1344
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1345
1345
|
TicketCenterView,
|
|
@@ -1375,7 +1375,7 @@ function TicketCenterAuthed({
|
|
|
1375
1375
|
function TicketCenterPending({
|
|
1376
1376
|
region = true
|
|
1377
1377
|
} = {}) {
|
|
1378
|
-
const syncInPage =
|
|
1378
|
+
const syncInPage = _chunkBNG6JOGZcjs.usePageDataSync.call(void 0, null, true);
|
|
1379
1379
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLFEURIZNcjs.LoadingFallback, { label: "Loading tickets", status: region, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1380
1380
|
TicketCenterView,
|
|
1381
1381
|
{
|
|
@@ -1438,7 +1438,7 @@ function TicketListHeader({
|
|
|
1438
1438
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-3", children: [
|
|
1439
1439
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h5", children: "Your Current Tickets" }),
|
|
1440
1440
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3 text-ods-text-secondary text-h6", children: [
|
|
1441
|
-
sync !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1441
|
+
sync !== void 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.DataSyncLine, { sync, loading: syncLoading, inline: true }),
|
|
1442
1442
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { inert: !onRefresh || void 0, "aria-hidden": !onRefresh || void 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1443
1443
|
_chunkFCZAUK4Dcjs.Button,
|
|
1444
1444
|
{
|
|
@@ -1473,7 +1473,7 @@ function HelpCenterCard(props) {
|
|
|
1473
1473
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCardLoaded, { ...props });
|
|
1474
1474
|
}
|
|
1475
1475
|
function HelpCenterCardSkeleton({ id, ...props }) {
|
|
1476
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id, className: HELP_CENTER_ROW_CLASS, "aria-hidden": true, ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HELP_CENTER_SUMMARY_PAD_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1476
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id, className: HELP_CENTER_ROW_CLASS, "aria-hidden": true, ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: HELP_CENTER_SUMMARY_PAD_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBNG6JOGZcjs.DevCardRowContent, { loading: true, title: "", subtitle: "", description: "", rightBadges: null }) }) });
|
|
1477
1477
|
}
|
|
1478
1478
|
function HelpCenterCardLoaded({
|
|
1479
1479
|
ticket,
|
|
@@ -1567,7 +1567,7 @@ function HelpCenterCardLoaded({
|
|
|
1567
1567
|
"aria-expanded": isExpandable ? isExpanded : void 0,
|
|
1568
1568
|
"aria-controls": isExpanded ? `help-center-drawer-${ticket.id}` : void 0,
|
|
1569
1569
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "block", HELP_CENTER_SUMMARY_PAD_CLASS), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1570
|
-
|
|
1570
|
+
_chunkBNG6JOGZcjs.DevCardRowContent,
|
|
1571
1571
|
{
|
|
1572
1572
|
title,
|
|
1573
1573
|
subtitle,
|
|
@@ -1648,7 +1648,7 @@ function HelpCenterCreateFormBody({
|
|
|
1648
1648
|
subjectError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "help-center-subject-error", className: "mt-1 text-ods-error text-h6", children: subjectError })
|
|
1649
1649
|
] });
|
|
1650
1650
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1651
|
-
|
|
1651
|
+
_chunk53QPG7SJcjs.ContactForm,
|
|
1652
1652
|
{
|
|
1653
1653
|
rescue: null,
|
|
1654
1654
|
title: "Open a new ticket",
|
|
@@ -1698,7 +1698,7 @@ function HelpCenterList({ toast: toast2 = _chunkUO2EJGRJcjs.toast, backButton, t
|
|
|
1698
1698
|
const page = _chunkBLH2SFOOcjs.positiveInt.call(void 0, searchParams.get("page"), 1);
|
|
1699
1699
|
if (identity.isLoading) {
|
|
1700
1700
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1701
|
-
|
|
1701
|
+
_chunkBNG6JOGZcjs.DevSectionPage,
|
|
1702
1702
|
{
|
|
1703
1703
|
sectionKey: "tickets",
|
|
1704
1704
|
backButton,
|
|
@@ -1710,7 +1710,7 @@ function HelpCenterList({ toast: toast2 = _chunkUO2EJGRJcjs.toast, backButton, t
|
|
|
1710
1710
|
);
|
|
1711
1711
|
}
|
|
1712
1712
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _66 => _66.user, 'optionalAccess', _67 => _67.email])) {
|
|
1713
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1713
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBNG6JOGZcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1714
1714
|
_chunk6GWRPW6Bcjs.EmptyState,
|
|
1715
1715
|
{
|
|
1716
1716
|
type: "generic",
|
|
@@ -1841,7 +1841,7 @@ function HelpCenterListAuthed({
|
|
|
1841
1841
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { type: "button", variant: "accent", onClick: () => refetch(), children: "Retry" })
|
|
1842
1842
|
] }),
|
|
1843
1843
|
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading || !hasResults && isFetching ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterRowsFrame, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: pageSize, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCard, { ticket: null, "data-loading-item": true }) }) }) : !hasResults ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1844
|
-
|
|
1844
|
+
_chunkBNG6JOGZcjs.ListEmptyState,
|
|
1845
1845
|
{
|
|
1846
1846
|
isFiltered: hasActiveFilters,
|
|
1847
1847
|
filtered: {
|
|
@@ -1881,7 +1881,7 @@ function HelpCenterListAuthed({
|
|
|
1881
1881
|
)) }) }),
|
|
1882
1882
|
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GWRPW6Bcjs.UnifiedPagination, { currentPage: page, totalPages })
|
|
1883
1883
|
] });
|
|
1884
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1884
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBNG6JOGZcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, preControls: form, children: body });
|
|
1885
1885
|
}
|
|
1886
1886
|
function HelpCenterRowsFrame({ children }) {
|
|
1887
1887
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full overflow-clip rounded-[6px] border border-ods-border bg-ods-card", children });
|
|
@@ -13,7 +13,7 @@ var _chunkHEVW75L3cjs = require('./chunk-HEVW75L3.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkGI6ECCWBcjs = require('./chunk-GI6ECCWB.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkCOJG2ATYcjs = require('./chunk-COJG2ATY.cjs');
|
|
@@ -106,7 +106,7 @@ function PageDataSyncProvider({
|
|
|
106
106
|
function PageDataSyncRow({ inline = false }) {
|
|
107
107
|
const context = _react.useContext.call(void 0, PageDataSyncContext);
|
|
108
108
|
if (!context) return null;
|
|
109
|
-
const line = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
109
|
+
const line = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.DataSyncLine, { sync: context.state.sync, loading: context.state.loading, stated: context.stated, inline });
|
|
110
110
|
return context.stated ? line : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "contents", "data-loading-optional": "", children: line });
|
|
111
111
|
}
|
|
112
112
|
function usePageDataSync(sync, loading) {
|
|
@@ -177,7 +177,7 @@ function DevSectionView({ sectionKey, preControls, children, showHeading = true
|
|
|
177
177
|
}
|
|
178
178
|
),
|
|
179
179
|
filter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
180
|
-
|
|
180
|
+
_chunkGI6ECCWBcjs.StatusFilterComponent,
|
|
181
181
|
{
|
|
182
182
|
selectedStatus: currentFilterValue,
|
|
183
183
|
onStatusChange: handleFilterChange,
|
|
@@ -228,7 +228,7 @@ function DevSectionPage({
|
|
|
228
228
|
}
|
|
229
229
|
)
|
|
230
230
|
);
|
|
231
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
231
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
// src/components/shared/dev-section/dev-card-row.tsx
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkBNG6JOGZcjs = require('./chunk-BNG6JOGZ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -23,7 +23,7 @@ var _chunkQOW2GP3Vcjs = require('./chunk-QOW2GP3V.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkGI6ECCWBcjs = require('./chunk-GI6ECCWB.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
var _chunkCOJG2ATYcjs = require('./chunk-COJG2ATY.cjs');
|
|
@@ -186,7 +186,7 @@ function ProductReleasesView({
|
|
|
186
186
|
initialData
|
|
187
187
|
});
|
|
188
188
|
const isLoading = inScope || fetching;
|
|
189
|
-
|
|
189
|
+
_chunkBNG6JOGZcjs.usePageDataSync.call(void 0, _optionalChain([data, 'optionalAccess', _3 => _3.sync]), isLoading && !data);
|
|
190
190
|
const releases = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _4 => _4.data]), () => ( []));
|
|
191
191
|
const totalCount = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _5 => _5.count]), () => ( 0));
|
|
192
192
|
const totalPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, totalCount, itemsPerPage);
|
|
@@ -205,10 +205,10 @@ function ProductReleasesView({
|
|
|
205
205
|
router.replace(`${pathname}?${params.toString()}`, { scroll: false });
|
|
206
206
|
};
|
|
207
207
|
if (error) {
|
|
208
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "w-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
208
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "w-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.LoadError, { message: "Failed to load releases.", onRetry: reload }) });
|
|
209
209
|
}
|
|
210
210
|
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,
|
|
211
|
-
|
|
211
|
+
_chunkBNG6JOGZcjs.ListEmptyState,
|
|
212
212
|
{
|
|
213
213
|
isFiltered: hasActiveFilters,
|
|
214
214
|
filtered: {
|
|
@@ -321,7 +321,7 @@ function MediaGalleryStripSkeleton({
|
|
|
321
321
|
var _lucidereact = require('lucide-react');
|
|
322
322
|
|
|
323
323
|
|
|
324
|
-
var DefaultMarkdownRenderer =
|
|
324
|
+
var DefaultMarkdownRenderer = _chunkGI6ECCWBcjs.RichMarkdownRenderer;
|
|
325
325
|
var CONTENT_STACK_CLASS = "space-y-6 content-md:space-y-8";
|
|
326
326
|
var RELEASE_TITLE_SKELETON_LINES = { phone: 7, md: 4, lg: 2 };
|
|
327
327
|
var METADATA_GRID_CLASS = "grid w-full grid-cols-1 overflow-hidden rounded-md border border-ods-border content-md:grid-cols-4";
|
|
@@ -371,7 +371,7 @@ function ReleaseDetailPage({
|
|
|
371
371
|
}) {
|
|
372
372
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
373
373
|
const captions = _chunkLFEURIZNcjs.useCaptions.call(void 0, );
|
|
374
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
374
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
375
375
|
const seed = initialData == null ? void 0 : initialData;
|
|
376
376
|
const {
|
|
377
377
|
data: release,
|
|
@@ -477,7 +477,7 @@ function ReleaseDetailPage({
|
|
|
477
477
|
children: [
|
|
478
478
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTENT_STACK_CLASS, children: [
|
|
479
479
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
480
|
-
|
|
480
|
+
_chunkGI6ECCWBcjs.EntityTagBadges,
|
|
481
481
|
{
|
|
482
482
|
tags: view.product_release_tags,
|
|
483
483
|
max: RELEASE_TAG_ROW_MAX,
|
|
@@ -558,7 +558,7 @@ function ReleaseDetailPage({
|
|
|
558
558
|
] })
|
|
559
559
|
] }) }) }),
|
|
560
560
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
561
|
-
|
|
561
|
+
_chunkGI6ECCWBcjs.ReleaseChangelogSection,
|
|
562
562
|
{
|
|
563
563
|
title: "Breaking Changes",
|
|
564
564
|
entries: breakingChanges || [],
|
|
@@ -570,7 +570,7 @@ function ReleaseDetailPage({
|
|
|
570
570
|
}
|
|
571
571
|
),
|
|
572
572
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
573
|
-
|
|
573
|
+
_chunkGI6ECCWBcjs.ReleaseChangelogSection,
|
|
574
574
|
{
|
|
575
575
|
title: "Features Added",
|
|
576
576
|
entries: featuresAdded || [],
|
|
@@ -580,7 +580,7 @@ function ReleaseDetailPage({
|
|
|
580
580
|
}
|
|
581
581
|
),
|
|
582
582
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
583
|
-
|
|
583
|
+
_chunkGI6ECCWBcjs.ReleaseChangelogSection,
|
|
584
584
|
{
|
|
585
585
|
title: "Bugs Fixed",
|
|
586
586
|
entries: bugFixed || [],
|
|
@@ -590,7 +590,7 @@ function ReleaseDetailPage({
|
|
|
590
590
|
}
|
|
591
591
|
),
|
|
592
592
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
593
|
-
|
|
593
|
+
_chunkGI6ECCWBcjs.ReleaseChangelogSection,
|
|
594
594
|
{
|
|
595
595
|
title: "Improvements",
|
|
596
596
|
entries: improvements || [],
|
|
@@ -619,9 +619,9 @@ function ReleaseDetailPage({
|
|
|
619
619
|
return deliveryLoading ? (
|
|
620
620
|
// The loaded preview's frame, its height written into the markup (`fixedHeight`), so the tables'
|
|
621
621
|
// loading state takes the collapsed preview's place, toggle row included. Inert: nothing to open yet.
|
|
622
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { inert: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
622
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { inert: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.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 }) }) }) })
|
|
623
623
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
624
|
-
|
|
624
|
+
_chunkGI6ECCWBcjs.FadePreview,
|
|
625
625
|
{
|
|
626
626
|
hiddenCount: deliveryCount - 1,
|
|
627
627
|
collapsedHeight: DELIVERY_PREVIEW_HEIGHT,
|
|
@@ -1055,7 +1055,7 @@ function RoadmapGrid({
|
|
|
1055
1055
|
);
|
|
1056
1056
|
}
|
|
1057
1057
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1058
|
-
|
|
1058
|
+
_chunkGI6ECCWBcjs.Accordion,
|
|
1059
1059
|
{
|
|
1060
1060
|
type: "multiple",
|
|
1061
1061
|
value: expandedQuarters,
|
|
@@ -1065,14 +1065,14 @@ function RoadmapGrid({
|
|
|
1065
1065
|
const itemCount = _optionalChain([itemsByQuarter, 'access', _19 => _19[quarter], 'optionalAccess', _20 => _20.length]) || 0;
|
|
1066
1066
|
const isExpanded = expandedQuarters.includes(quarter);
|
|
1067
1067
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1068
|
-
|
|
1068
|
+
_chunkGI6ECCWBcjs.AccordionItem,
|
|
1069
1069
|
{
|
|
1070
1070
|
value: quarter,
|
|
1071
1071
|
id: `quarter-${quarter.replace(/\s+/g, "-").toLowerCase()}`,
|
|
1072
1072
|
className: "border-0",
|
|
1073
1073
|
"data-loading-item": true,
|
|
1074
1074
|
children: [
|
|
1075
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1075
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.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: [
|
|
1076
1076
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1077
1077
|
"h3",
|
|
1078
1078
|
{
|
|
@@ -1102,7 +1102,7 @@ function RoadmapGrid({
|
|
|
1102
1102
|
}
|
|
1103
1103
|
)
|
|
1104
1104
|
] }) }),
|
|
1105
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1105
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.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,
|
|
1106
1106
|
RoadmapGridSingle,
|
|
1107
1107
|
{
|
|
1108
1108
|
items: itemsByQuarter[quarter],
|
|
@@ -1153,18 +1153,18 @@ function RoadmapView({
|
|
|
1153
1153
|
});
|
|
1154
1154
|
const items = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _21 => _21.items]), () => ( []));
|
|
1155
1155
|
_chunkUO2EJGRJcjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkG7GF4PWAcjs.STICKY_HEADER_OFFSET_PX });
|
|
1156
|
-
const syncInPage =
|
|
1156
|
+
const syncInPage = _chunkBNG6JOGZcjs.usePageDataSync.call(void 0, _optionalChain([data, 'optionalAccess', _22 => _22.sync]), isLoading && !data);
|
|
1157
1157
|
if (error) {
|
|
1158
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1158
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.LoadError, { message: "Failed to load roadmap.", onRetry: reload });
|
|
1159
1159
|
}
|
|
1160
1160
|
if (isLoading && !data) {
|
|
1161
1161
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SYNCED_LIST_CLASS, children: [
|
|
1162
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1162
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.DataSyncLine, { loading: true }),
|
|
1163
1163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoadmapGrid, { items: NO_ITEMS, isLoading: true, groupByQuarter: true, showLeftMargin })
|
|
1164
1164
|
] });
|
|
1165
1165
|
}
|
|
1166
1166
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SYNCED_LIST_CLASS, children: [
|
|
1167
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1167
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.DataSyncLine, { sync: _optionalChain([data, 'optionalAccess', _23 => _23.sync]) }),
|
|
1168
1168
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1169
1169
|
RoadmapGrid,
|
|
1170
1170
|
{
|
|
@@ -1188,7 +1188,7 @@ var TABLE_FRAME_CLASS = `w-full ${_chunkO3EKOXFZcjs.CONTENT_CARD_SKELETON_FRAME_
|
|
|
1188
1188
|
var ROW_SEPARATOR_CLASS = "border-b border-ods-border last:border-b-0";
|
|
1189
1189
|
var DELIVERY_TABLE_SKELETON_ROWS = 5;
|
|
1190
1190
|
function DeliveryTableSkeleton() {
|
|
1191
|
-
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,
|
|
1191
|
+
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, _chunkBNG6JOGZcjs.DeliveryRow, { loading: true }) }) }) }) });
|
|
1192
1192
|
}
|
|
1193
1193
|
function DeliveryTable({ items, isLoading = false }) {
|
|
1194
1194
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeliveryTableSkeleton, {});
|
|
@@ -1201,7 +1201,7 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1201
1201
|
// → `#delivery-<external_id>`; `useScrollToHash` in
|
|
1202
1202
|
// `delivery-lists.tsx` finds the row by id and scrolls. The
|
|
1203
1203
|
// outer wrapper here ONLY exists for the row separators.
|
|
1204
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1204
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBNG6JOGZcjs.DeliveryRow, { item, id: _chunkIC4IJJB2cjs.devSectionAnchorId.call(void 0, "delivery", item.id) }) }, item.id)
|
|
1205
1205
|
)) }) });
|
|
1206
1206
|
}
|
|
1207
1207
|
|
|
@@ -1286,18 +1286,18 @@ function DeliveryLists({
|
|
|
1286
1286
|
const filteredCompleted = _optionalChain([data, 'optionalAccess', _24 => _24.completed]) || [];
|
|
1287
1287
|
const filteredInProgress = _optionalChain([data, 'optionalAccess', _25 => _25.inProgress]) || [];
|
|
1288
1288
|
_chunkUO2EJGRJcjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkG7GF4PWAcjs.STICKY_HEADER_OFFSET_PX });
|
|
1289
|
-
const syncInPage =
|
|
1289
|
+
const syncInPage = _chunkBNG6JOGZcjs.usePageDataSync.call(void 0, sync, isLoading && !data);
|
|
1290
1290
|
const showCompleted = true;
|
|
1291
1291
|
const showInProgress = true;
|
|
1292
1292
|
const hasActiveFilters = searchQuery !== "" || taskTypeFilter !== "all";
|
|
1293
1293
|
const hasResults = showCompleted && filteredCompleted.length > 0 || showInProgress && filteredInProgress.length > 0;
|
|
1294
1294
|
if (error) {
|
|
1295
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1295
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.LoadError, { message: error, onRetry: () => window.location.reload() }) });
|
|
1296
1296
|
}
|
|
1297
1297
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[40px]", children: [
|
|
1298
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1298
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.DataSyncLine, { sync, loading: isLoading && !data }),
|
|
1299
1299
|
!isLoading && !hasResults && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1300
|
-
|
|
1300
|
+
_chunkBNG6JOGZcjs.ListEmptyState,
|
|
1301
1301
|
{
|
|
1302
1302
|
isFiltered: hasActiveFilters,
|
|
1303
1303
|
filtered: {
|
|
@@ -1533,7 +1533,7 @@ function LegalDocumentPage({
|
|
|
1533
1533
|
emptyStateMessage: emptyStateMessageProp,
|
|
1534
1534
|
initialData = null,
|
|
1535
1535
|
apiEndpoint,
|
|
1536
|
-
MarkdownRenderer =
|
|
1536
|
+
MarkdownRenderer = _chunkGI6ECCWBcjs.RichMarkdownRenderer,
|
|
1537
1537
|
documentsEndpoint,
|
|
1538
1538
|
backButton,
|
|
1539
1539
|
shell = true
|
|
@@ -1561,7 +1561,7 @@ function LegalDocumentPage({
|
|
|
1561
1561
|
titleSize: "h1",
|
|
1562
1562
|
titleWrap: true,
|
|
1563
1563
|
children: [
|
|
1564
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1564
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.DataSyncLine, { sync: data ? { source: "github", syncedAt: data.lastSynced } : null, loading: isLoading }),
|
|
1565
1565
|
/* @__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: [
|
|
1566
1566
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rounded-lg border border-ods-error bg-ods-error-secondary p-6", children: [
|
|
1567
1567
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "mb-2 text-ods-error", children: errorTitle }),
|
|
@@ -1585,7 +1585,7 @@ function LegalDocumentPage({
|
|
|
1585
1585
|
]
|
|
1586
1586
|
}
|
|
1587
1587
|
);
|
|
1588
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1588
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
1589
1589
|
}
|
|
1590
1590
|
|
|
1591
1591
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkTBGQMHCGcjs = require('./chunk-TBGQMHCG.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -19,7 +19,7 @@ var _chunk5RMBLOJ5cjs = require('./chunk-5RMBLOJ5.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkGI6ECCWBcjs = require('./chunk-GI6ECCWB.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkCOJG2ATYcjs = require('./chunk-COJG2ATY.cjs');
|
|
@@ -328,7 +328,7 @@ function toDocContent(value, requestedPath) {
|
|
|
328
328
|
function toDataSync(value) {
|
|
329
329
|
if (!isRecord(value)) return void 0;
|
|
330
330
|
const source = readString(value, "source");
|
|
331
|
-
if (!
|
|
331
|
+
if (!_chunkGI6ECCWBcjs.isDataSyncSource.call(void 0, source)) return void 0;
|
|
332
332
|
return { source, syncedAt: _nullishCoalesce(readString(value, "syncedAt"), () => ( null)) };
|
|
333
333
|
}
|
|
334
334
|
function useDocumentTree(config, initialPath) {
|
|
@@ -790,7 +790,7 @@ function DocViewerContent({
|
|
|
790
790
|
const containerBgStyle = colorPalette.containerBackground !== "transparent" ? { backgroundColor: colorPalette.containerBackground } : {};
|
|
791
791
|
const resolvedEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : emptyStateText || "No documents yet.";
|
|
792
792
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.PageLayout, { title, subtitle, titleSize: "h1", titleWrap: true, backButton: _nullishCoalesce(backCfg, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-10", children: [
|
|
793
|
-
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
793
|
+
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _18 => _18.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
|
|
794
794
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
795
795
|
_chunk5RMBLOJ5cjs.DocSearchBar,
|
|
796
796
|
{
|
|
@@ -887,18 +887,18 @@ function DocViewerContent({
|
|
|
887
887
|
) })
|
|
888
888
|
] })
|
|
889
889
|
] }) }) });
|
|
890
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
890
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
891
891
|
}
|
|
892
892
|
|
|
893
893
|
// src/components/docs/docs-hub-page.tsx
|
|
894
894
|
|
|
895
895
|
var DEFAULT_TITLE = "Documents";
|
|
896
896
|
var defaultFallbackRenderer = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "py-16 text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: "Unsupported document type" }) });
|
|
897
|
-
var defaultPdfRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
898
|
-
var defaultGoogleSheetRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
899
|
-
var defaultFigmaRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
897
|
+
var defaultPdfRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTBGQMHCGcjs.PdfViewer, { src: _nullishCoalesce(content.fileUrl, () => ( "")), fileName: content.fileName });
|
|
898
|
+
var defaultGoogleSheetRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTBGQMHCGcjs.GoogleSheetsViewer, { externalUrl: _nullishCoalesce(content.externalUrl, () => ( "")), fileName: content.fileName });
|
|
899
|
+
var defaultFigmaRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.FigmaEmbed, { url: _nullishCoalesce(content.externalUrl, () => ( "")), title: content.fileName, iframeLoading: "eager" });
|
|
900
900
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
901
|
-
|
|
901
|
+
_chunkTBGQMHCGcjs.FileDownloadCard,
|
|
902
902
|
{
|
|
903
903
|
fileName: content.fileName,
|
|
904
904
|
mimeType: content.mimeType,
|