@flamingo-stack/openframe-frontend-core 0.0.837 → 0.0.838
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-4644MFU2.cjs → chunk-2QAUQPGC.cjs} +3 -3
- package/dist/{chunk-KBPKMASF.cjs → chunk-2X5LYDNA.cjs} +3 -3
- package/dist/{chunk-S5HBEMZN.cjs → chunk-4TUHHKLR.cjs} +42 -42
- package/dist/{chunk-WAYYHZFS.cjs → chunk-5E4YEHHO.cjs} +8 -7
- package/dist/{chunk-RJJPOPF7.cjs → chunk-64PF3UC7.cjs} +2 -2
- package/dist/{chunk-J63RYNMW.cjs → chunk-7QNGILIY.cjs} +10 -10
- package/dist/{chunk-EDBQXRKN.cjs → chunk-B4THEQOW.cjs} +76 -76
- package/dist/{chunk-ZWI6A4SG.cjs → chunk-ENK75WN4.cjs} +2 -2
- package/dist/{chunk-66ENLZYE.cjs → chunk-JFR3OFE6.cjs} +4 -4
- package/dist/{chunk-BWJHIPB6.cjs → chunk-JI34QKPJ.cjs} +32 -32
- package/dist/{chunk-FU7VLVYI.cjs → chunk-MMPMQUQM.cjs} +9 -9
- package/dist/{chunk-FEISG7YJ.cjs → chunk-NV5AHL4G.cjs} +3 -3
- package/dist/{chunk-UU5MDCD4.cjs → chunk-S5RMRQKT.cjs} +11 -11
- package/dist/{chunk-S3CSQIDW.cjs → chunk-TMD55O5U.cjs} +41 -41
- package/dist/{chunk-NAB6HCQ3.cjs → chunk-U4MJ2Z4V.cjs} +32 -32
- package/dist/{chunk-D4DRZIUK.cjs → chunk-V322TUBY.cjs} +5 -5
- package/dist/{cloud-tenants-MJHJKTLX.cjs → cloud-tenants-GLPDB2F5.cjs} +3 -3
- package/dist/components/case-studies/index.cjs +12 -12
- package/dist/components/chat/composer-sheet.d.ts +5 -3
- package/dist/components/chat/composer-sheet.d.ts.map +1 -1
- package/dist/components/chat/composer-sheet.js +7 -6
- package/dist/components/chat/embeddable-chat.js +5 -2
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/help-center-pages/index.cjs +55 -55
- package/dist/components/index.cjs +32 -32
- package/dist/components/meeting-scheduler/index.cjs +26 -26
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/onboarding-guides/index.cjs +4 -4
- package/dist/components/product-demo/index.cjs +12 -12
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/ui/index.cjs +3 -3
- package/dist/{devices-CXVCHKOY.cjs → devices-GHPW5WCO.cjs} +4 -4
- package/dist/{embeddable-chat-M7L3DBNO.cjs → embeddable-chat-RBC7F4TL.cjs} +5 -2
- package/dist/index.cjs +7 -7
- package/dist/{knowledge-FLQDJJPG.cjs → knowledge-4TOSY2S5.cjs} +3 -3
- package/dist/{logs-D5QE4XXT.cjs → logs-MUODFY6N.cjs} +10 -10
- package/dist/{policies-W62WSRBO.cjs → policies-TJHO3VLE.cjs} +7 -7
- package/dist/{scripts-MVJAIKSW.cjs → scripts-X5CMYE2V.cjs} +8 -8
- package/dist/{software-update-XP5CN7YZ.cjs → software-update-2UZKHTYM.cjs} +6 -6
- package/package.json +1 -1
- package/src/components/chat/composer-sheet.tsx +12 -9
- package/src/components/chat/embeddable-chat.tsx +5 -2
|
@@ -1,21 +1,21 @@
|
|
|
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 _chunkV322TUBYcjs = require('./chunk-V322TUBY.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkMMPMQUQMcjs = require('./chunk-MMPMQUQM.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkWVNUCKB7cjs = require('./chunk-WVNUCKB7.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkENK75WN4cjs = require('./chunk-ENK75WN4.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -28,7 +28,7 @@ var _chunkZWI6A4SGcjs = require('./chunk-ZWI6A4SG.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkB4THEQOWcjs = require('./chunk-B4THEQOW.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -40,7 +40,7 @@ var _chunkLWMWY3JOcjs = require('./chunk-LWMWY3JO.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunk5E4YEHHOcjs = require('./chunk-5E4YEHHO.cjs');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
@@ -155,7 +155,7 @@ var TicketActionFailure = class extends Error {
|
|
|
155
155
|
function useTicketActions(options) {
|
|
156
156
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
157
157
|
const ticketActionEndpoint = _nullishCoalesce(_chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, ).endpoints.ticketActionUrl, () => ( TICKET_ACTION_ENDPOINT));
|
|
158
|
-
const ticketLive =
|
|
158
|
+
const ticketLive = _chunkENK75WN4cjs.useOptionalTicketLive.call(void 0, );
|
|
159
159
|
const notifyTicketCreated = _optionalChain([ticketLive, 'optionalAccess', _ => _.notifyTicketCreated]);
|
|
160
160
|
const { prependOptimistic, removeOptimistic, removeTicketFromCache, toast: toast2, onSupportSystemDown } = options;
|
|
161
161
|
const formInFlightRef = _react.useRef.call(void 0, null);
|
|
@@ -668,7 +668,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
668
668
|
clear();
|
|
669
669
|
}
|
|
670
670
|
};
|
|
671
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTD4CC4KVcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex flex-col gap-6 md:flex-row", ...
|
|
671
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTD4CC4KVcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex flex-col gap-6 md:flex-row", ..._chunk5E4YEHHOcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
672
672
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1 md:max-w-md", children: [
|
|
673
673
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "mb-2 text-ods-text-primary text-h2", children: "Need Support?" }),
|
|
674
674
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Can't find what you're looking for? Submit a support ticket below \u2014 we'll follow up shortly." }),
|
|
@@ -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, _chunkN3MBQRCQcjs.Label, { htmlFor: "ticket-content", className: "mb-1", children: "Your Message" }),
|
|
695
695
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
696
|
-
|
|
696
|
+
_chunkB4THEQOWcjs.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: `${_chunkTD4CC4KVcjs.CONTENT_CARD_SKELETON_FRAME_CLASS} ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
826
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${_chunkTD4CC4KVcjs.CONTENT_CARD_SKELETON_FRAME_CLASS} ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMMPMQUQMcjs.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, _chunkB4THEQOWcjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkB4THEQOWcjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
|
|
909
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkB4THEQOWcjs.AlertDialogHeader, { children: [
|
|
910
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4THEQOWcjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
|
|
911
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4THEQOWcjs.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
|
+
_chunkB4THEQOWcjs.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, _chunkB4THEQOWcjs.AlertDialogFooter, { children: [
|
|
925
925
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
926
|
-
|
|
926
|
+
_chunkB4THEQOWcjs.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
|
+
_chunkB4THEQOWcjs.AlertDialogAction,
|
|
935
935
|
{
|
|
936
936
|
onClick: () => void confirmClose(),
|
|
937
937
|
disabled: busy,
|
|
@@ -997,7 +997,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
997
997
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
998
998
|
const externalId = isOptimistic(ticket) ? null : ticket.external_id;
|
|
999
999
|
const { engagements, isLoading } = useTicketEngagements(externalId, !!externalId);
|
|
1000
|
-
const live =
|
|
1000
|
+
const live = _chunkENK75WN4cjs.useOptionalTicketLive.call(void 0, );
|
|
1001
1001
|
const setOpenTicketId = _optionalChain([live, 'optionalAccess', _25 => _25.setOpenTicketId]);
|
|
1002
1002
|
const markRead = _optionalChain([live, 'optionalAccess', _26 => _26.markRead]);
|
|
1003
1003
|
const markReadDebounceRef = _react.useRef.call(void 0, null);
|
|
@@ -1036,7 +1036,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1036
1036
|
const customerName = (isViewerTheCustomer ? viewerName : null) || ticketCustomerName || viewerName || _optionalChain([identity, 'access', _40 => _40.user, 'optionalAccess', _41 => _41.email]) || "You";
|
|
1037
1037
|
const customerAvatar = isViewerTheCustomer ? _nullishCoalesce(_optionalChain([identity, 'access', _42 => _42.user, 'optionalAccess', _43 => _43.avatarUrl]), () => ( void 0)) : void 0;
|
|
1038
1038
|
if (isLoading) {
|
|
1039
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${TICKET_FEED_FRAME} ${TICKET_FEED_HEIGHT}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading messages", className: TICKET_FEED_INNER, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: TICKET_FEED_SKELETON_ROWS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1039
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${TICKET_FEED_FRAME} ${TICKET_FEED_HEIGHT}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading messages", className: TICKET_FEED_INNER, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: TICKET_FEED_SKELETON_ROWS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5E4YEHHOcjs.ChatMessageRow, { loading: true, displayName: "", body: "", "data-loading-item": true }) }) }) });
|
|
1040
1040
|
}
|
|
1041
1041
|
if (bodyTurns.length === 0 && engagements.length === 0) {
|
|
1042
1042
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1055,7 +1055,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1055
1055
|
const isResolution = turn.startsWith("[Resolution]");
|
|
1056
1056
|
const text = isResolution ? turn.replace(/^\[Resolution\]\s*/, "") : turn;
|
|
1057
1057
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1058
|
-
|
|
1058
|
+
_chunk5E4YEHHOcjs.ChatMessageRow,
|
|
1059
1059
|
{
|
|
1060
1060
|
"data-loading-item": true,
|
|
1061
1061
|
displayName: customerName,
|
|
@@ -1085,14 +1085,14 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
const engAttachments = mapEngagementAttachments(eng.attachments, runtime);
|
|
1087
1087
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1088
|
-
|
|
1088
|
+
_chunk5E4YEHHOcjs.ChatMessageRow,
|
|
1089
1089
|
{
|
|
1090
1090
|
"data-loading-item": true,
|
|
1091
1091
|
displayName: author,
|
|
1092
1092
|
avatarUrl: avatarSrc,
|
|
1093
1093
|
timeLabel: eng.createdAt ? _chunk5L3UKDC6cjs.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, _chunkB4THEQOWcjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
|
|
1096
1096
|
},
|
|
1097
1097
|
eng.id
|
|
1098
1098
|
);
|
|
@@ -1197,7 +1197,7 @@ var TICKET_ROW_FRAME_CLASS = "border-b border-ods-border last:border-b-0";
|
|
|
1197
1197
|
var TICKET_ROW_OUTER_CLASS = "scroll-mt-24";
|
|
1198
1198
|
function TicketRow(props) {
|
|
1199
1199
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || props.loading) {
|
|
1200
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id: props.id, className: TICKET_ROW_OUTER_CLASS, ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TICKET_ROW_FRAME_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1200
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { id: props.id, className: TICKET_ROW_OUTER_CLASS, ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TICKET_ROW_FRAME_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5E4YEHHOcjs.ChatTicketItem, { loading: true }) }) });
|
|
1201
1201
|
}
|
|
1202
1202
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketRowLoaded, { ...props });
|
|
1203
1203
|
}
|
|
@@ -1252,7 +1252,7 @@ function TicketRowLoaded({
|
|
|
1252
1252
|
};
|
|
1253
1253
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rowRef, id, className: TICKET_ROW_OUTER_CLASS, ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, markers), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Collapsible, { open: expanded && !optimistic, className: TICKET_ROW_FRAME_CLASS, children: [
|
|
1254
1254
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1255
|
-
|
|
1255
|
+
_chunk5E4YEHHOcjs.ChatTicketItem,
|
|
1256
1256
|
{
|
|
1257
1257
|
ticket: tileData,
|
|
1258
1258
|
onClick: optimistic ? void 0 : handleClick,
|
|
@@ -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 = _chunkMMPMQUQMcjs.usePageDataSync.call(void 0, sync, isLoading);
|
|
1343
1343
|
const merged = [...optimisticTickets, ...tickets];
|
|
1344
1344
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1345
1345
|
TicketCenterView,
|
|
@@ -1356,7 +1356,7 @@ function TicketCenterAuthed({
|
|
|
1356
1356
|
TicketRow,
|
|
1357
1357
|
{
|
|
1358
1358
|
"data-loading-item": true,
|
|
1359
|
-
id:
|
|
1359
|
+
id: _chunk5E4YEHHOcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1360
1360
|
ticket,
|
|
1361
1361
|
expanded: expandedTicketId === ticket.id,
|
|
1362
1362
|
onToggle: toggleRow,
|
|
@@ -1375,7 +1375,7 @@ function TicketCenterAuthed({
|
|
|
1375
1375
|
function TicketCenterPending({
|
|
1376
1376
|
region = true
|
|
1377
1377
|
} = {}) {
|
|
1378
|
-
const syncInPage =
|
|
1378
|
+
const syncInPage = _chunkMMPMQUQMcjs.usePageDataSync.call(void 0, null, true);
|
|
1379
1379
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ7A7IZWLcjs.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, _chunkB4THEQOWcjs.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, _chunkMMPMQUQMcjs.DevCardRowContent, { loading: true, title: "", subtitle: "", description: "", rightBadges: null }) }) });
|
|
1477
1477
|
}
|
|
1478
1478
|
function HelpCenterCardLoaded({
|
|
1479
1479
|
ticket,
|
|
@@ -1512,7 +1512,7 @@ function HelpCenterCardLoaded({
|
|
|
1512
1512
|
});
|
|
1513
1513
|
return () => cancelAnimationFrame(raf);
|
|
1514
1514
|
}, [isExpanded]);
|
|
1515
|
-
const live =
|
|
1515
|
+
const live = _chunkENK75WN4cjs.useOptionalTicketLive.call(void 0, );
|
|
1516
1516
|
const unreadCount = !optimistic && ticket.external_id && _optionalChain([live, 'optionalAccess', _64 => _64.unreadByTicket, 'access', _65 => _65[ticket.external_id]]) || 0;
|
|
1517
1517
|
const rightBadges = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1518
1518
|
unreadCount > 0 && // Only rows with unread replies carry it; the row's loading form draws the status badge alone.
|
|
@@ -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
|
+
_chunkMMPMQUQMcjs.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
|
+
_chunkV322TUBYcjs.ContactForm,
|
|
1652
1652
|
{
|
|
1653
1653
|
rescue: null,
|
|
1654
1654
|
title: "Open a new ticket",
|
|
@@ -1692,13 +1692,13 @@ function HelpCenterList({ toast: toast2 = _chunkLWMWY3JOcjs.toast, backButton, t
|
|
|
1692
1692
|
const searchParams = _chunk7DNL734Scjs.useSearchParams.call(void 0, );
|
|
1693
1693
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
1694
1694
|
const pathname = _chunk7DNL734Scjs.usePathname.call(void 0, );
|
|
1695
|
-
const search = searchParams.get(
|
|
1695
|
+
const search = searchParams.get(_chunk5E4YEHHOcjs.DEV_SECTION_PARAM_KEYS.search) || "";
|
|
1696
1696
|
const status = searchParams.get("status") || "all";
|
|
1697
|
-
const ticketParam = searchParams.get(
|
|
1697
|
+
const ticketParam = searchParams.get(_chunk5E4YEHHOcjs.TICKET_OPEN_PARAM) || "";
|
|
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
|
+
_chunkMMPMQUQMcjs.DevSectionPage,
|
|
1702
1702
|
{
|
|
1703
1703
|
sectionKey: "tickets",
|
|
1704
1704
|
backButton,
|
|
@@ -1710,7 +1710,7 @@ function HelpCenterList({ toast: toast2 = _chunkLWMWY3JOcjs.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, _chunkMMPMQUQMcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1714
1714
|
_chunkWVNUCKB7cjs.EmptyState,
|
|
1715
1715
|
{
|
|
1716
1716
|
type: "generic",
|
|
@@ -1762,8 +1762,8 @@ function HelpCenterListAuthed({
|
|
|
1762
1762
|
const setOpenTicket = _react.useCallback.call(void 0,
|
|
1763
1763
|
(externalId) => {
|
|
1764
1764
|
const params = new URLSearchParams(searchParams.toString());
|
|
1765
|
-
if (externalId) params.set(
|
|
1766
|
-
else params.delete(
|
|
1765
|
+
if (externalId) params.set(_chunk5E4YEHHOcjs.TICKET_OPEN_PARAM, externalId);
|
|
1766
|
+
else params.delete(_chunk5E4YEHHOcjs.TICKET_OPEN_PARAM);
|
|
1767
1767
|
const qs = params.toString();
|
|
1768
1768
|
router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });
|
|
1769
1769
|
},
|
|
@@ -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
|
+
_chunkMMPMQUQMcjs.ListEmptyState,
|
|
1845
1845
|
{
|
|
1846
1846
|
isFiltered: hasActiveFilters,
|
|
1847
1847
|
filtered: {
|
|
@@ -1864,7 +1864,7 @@ function HelpCenterListAuthed({
|
|
|
1864
1864
|
HelpCenterCard,
|
|
1865
1865
|
{
|
|
1866
1866
|
"data-loading-item": true,
|
|
1867
|
-
id:
|
|
1867
|
+
id: _chunk5E4YEHHOcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1868
1868
|
ticket,
|
|
1869
1869
|
expanded: expandedTicketId === ticket.id,
|
|
1870
1870
|
onToggle: toggleRow,
|
|
@@ -1881,7 +1881,7 @@ function HelpCenterListAuthed({
|
|
|
1881
1881
|
)) }) }),
|
|
1882
1882
|
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWVNUCKB7cjs.UnifiedPagination, { currentPage: page, totalPages })
|
|
1883
1883
|
] });
|
|
1884
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1884
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMMPMQUQMcjs.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 });
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk2X5LYDNAcjs = require('./chunk-2X5LYDNA.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk64PF3UC7cjs = require('./chunk-64PF3UC7.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -20,7 +20,7 @@ var _chunk7XRFAHJFcjs = require('./chunk-7XRFAHJF.cjs');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkB4THEQOWcjs = require('./chunk-B4THEQOW.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkFNNDGOR3cjs = require('./chunk-FNNDGOR3.cjs');
|
|
@@ -29,7 +29,7 @@ var _chunkFNNDGOR3cjs = require('./chunk-FNNDGOR3.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunk5E4YEHHOcjs = require('./chunk-5E4YEHHO.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -354,13 +354,13 @@ function toDocContent(value, requestedPath) {
|
|
|
354
354
|
function toDataSync(value) {
|
|
355
355
|
if (!isRecord(value)) return void 0;
|
|
356
356
|
const source = readString(value, "source");
|
|
357
|
-
if (!
|
|
357
|
+
if (!_chunkB4THEQOWcjs.isDataSyncSource.call(void 0, source)) return void 0;
|
|
358
358
|
return { source, syncedAt: _nullishCoalesce(readString(value, "syncedAt"), () => ( null)) };
|
|
359
359
|
}
|
|
360
360
|
function useDocumentTree(config, initialPath) {
|
|
361
361
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
362
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
363
|
-
const cleanInitialPath =
|
|
362
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunk5E4YEHHOcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
363
|
+
const cleanInitialPath = _chunk5E4YEHHOcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
364
364
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
365
365
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
366
366
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -386,12 +386,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
386
386
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
387
387
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
388
388
|
}
|
|
389
|
-
pathFromUrl =
|
|
389
|
+
pathFromUrl = _chunk5E4YEHHOcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
390
390
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
391
391
|
setSelectedPath(pathFromUrl);
|
|
392
392
|
if (pathFromUrl) {
|
|
393
393
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
394
|
-
setExpandedNodes(new Set(
|
|
394
|
+
setExpandedNodes(new Set(_chunk5E4YEHHOcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
395
395
|
}
|
|
396
396
|
setTimeout(() => {
|
|
397
397
|
scrollToContent();
|
|
@@ -409,7 +409,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
409
409
|
setSelectedPath(cleanInitialPath);
|
|
410
410
|
if (cleanInitialPath) {
|
|
411
411
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
412
|
-
setExpandedNodes(new Set(
|
|
412
|
+
setExpandedNodes(new Set(_chunk5E4YEHHOcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
413
413
|
}
|
|
414
414
|
setExternalNavCount((n) => n + 1);
|
|
415
415
|
}
|
|
@@ -434,7 +434,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
434
434
|
if (cleanInitialPath) {
|
|
435
435
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
436
436
|
if (pathForExpansion) {
|
|
437
|
-
setExpandedNodes(new Set(
|
|
437
|
+
setExpandedNodes(new Set(_chunk5E4YEHHOcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
438
438
|
}
|
|
439
439
|
} else if (nodes.length > 0) {
|
|
440
440
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -474,7 +474,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
474
474
|
setContent(null);
|
|
475
475
|
return;
|
|
476
476
|
}
|
|
477
|
-
const probe =
|
|
477
|
+
const probe = _chunk5E4YEHHOcjs.findDocNodeByPath.call(void 0, _chunk5E4YEHHOcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
478
478
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
479
479
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
480
480
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -533,7 +533,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
533
533
|
if (selectedPath === "") {
|
|
534
534
|
pathToFetch = folderIndexFile;
|
|
535
535
|
} else {
|
|
536
|
-
const node =
|
|
536
|
+
const node = _chunk5E4YEHHOcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
537
537
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
538
538
|
const firstDocPath = findFirstDocPath(node);
|
|
539
539
|
if (!firstDocPath) {
|
|
@@ -574,16 +574,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
574
574
|
if (node.type === "folder") {
|
|
575
575
|
setExpandedNodes((prev) => {
|
|
576
576
|
if (prev.has(node.id)) {
|
|
577
|
-
const ancestorIds =
|
|
577
|
+
const ancestorIds = _chunk5E4YEHHOcjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
578
578
|
ancestorIds.pop();
|
|
579
579
|
return new Set(ancestorIds);
|
|
580
580
|
}
|
|
581
|
-
return new Set(
|
|
581
|
+
return new Set(_chunk5E4YEHHOcjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
582
582
|
});
|
|
583
583
|
} else {
|
|
584
584
|
const lastSlash = node.path.lastIndexOf("/");
|
|
585
585
|
if (lastSlash > 0) {
|
|
586
|
-
setExpandedNodes(new Set(
|
|
586
|
+
setExpandedNodes(new Set(_chunk5E4YEHHOcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
589
|
lastFetchedPath.current = null;
|
|
@@ -598,7 +598,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
598
598
|
const hashIndex = path.indexOf("#");
|
|
599
599
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
600
600
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
601
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
601
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunk5E4YEHHOcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
602
602
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
603
603
|
_chunkZABZIM2Ycjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkZABZIM2Ycjs.HUB_HEADER_OFFSET_PX });
|
|
604
604
|
return;
|
|
@@ -662,15 +662,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
662
662
|
return docNavigation.register({
|
|
663
663
|
baseRoute: normalizedBaseRoute,
|
|
664
664
|
findNodeByPath: (path) => {
|
|
665
|
-
const clean =
|
|
666
|
-
return _nullishCoalesce(
|
|
665
|
+
const clean = _chunk5E4YEHHOcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
666
|
+
return _nullishCoalesce(_chunk5E4YEHHOcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
667
667
|
},
|
|
668
668
|
selectNode
|
|
669
669
|
});
|
|
670
670
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
671
671
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
672
672
|
if (!selectedPath || structure.length === 0) return false;
|
|
673
|
-
const node =
|
|
673
|
+
const node = _chunk5E4YEHHOcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
674
674
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
675
675
|
}, [selectedPath, structure]);
|
|
676
676
|
return {
|
|
@@ -753,7 +753,7 @@ function DocViewerContent({
|
|
|
753
753
|
},
|
|
754
754
|
docPath
|
|
755
755
|
);
|
|
756
|
-
const { activeSection, handleSectionClick } =
|
|
756
|
+
const { activeSection, handleSectionClick } = _chunk64PF3UC7cjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
|
|
757
757
|
const docNav = useDocNavigation();
|
|
758
758
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
759
759
|
const backCfg = backButton === false ? null : {
|
|
@@ -784,7 +784,7 @@ function DocViewerContent({
|
|
|
784
784
|
onResolveLink: resolveLink
|
|
785
785
|
});
|
|
786
786
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
787
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
787
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunk5E4YEHHOcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
|
|
788
788
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _15 => _15.documentType]), () => ( selectedNodeDocType));
|
|
789
789
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
790
790
|
const showStickyNav = isMarkdownContent;
|
|
@@ -796,7 +796,7 @@ function DocViewerContent({
|
|
|
796
796
|
const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
|
|
797
797
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
798
798
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFNNDGOR3cjs.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: [
|
|
799
|
-
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
799
|
+
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4THEQOWcjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
|
|
800
800
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
801
801
|
_chunk7XRFAHJFcjs.DocSearchBar,
|
|
802
802
|
{
|
|
@@ -819,7 +819,7 @@ function DocViewerContent({
|
|
|
819
819
|
!error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-start gap-6 content-lg:flex-row content-lg:gap-10", children: [
|
|
820
820
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: [
|
|
821
821
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
822
|
-
|
|
822
|
+
_chunk64PF3UC7cjs.MobileNavigationDropdown,
|
|
823
823
|
{
|
|
824
824
|
nodes: structure,
|
|
825
825
|
selectedPath,
|
|
@@ -833,7 +833,7 @@ function DocViewerContent({
|
|
|
833
833
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentSidebar, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
834
834
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
835
835
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
836
|
-
|
|
836
|
+
_chunk64PF3UC7cjs.MultiLevelNavigation,
|
|
837
837
|
{
|
|
838
838
|
nodes: structure,
|
|
839
839
|
selectedPath,
|
|
@@ -872,7 +872,7 @@ function DocViewerContent({
|
|
|
872
872
|
showStickyNav && content && stickyNavSections.length > 0 && !isLoadingContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
|
|
873
873
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: ON_THIS_PAGE_HEADING_CLASS, children: ON_THIS_PAGE_LABEL }),
|
|
874
874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
875
|
-
|
|
875
|
+
_chunk64PF3UC7cjs.StickySectionNav,
|
|
876
876
|
{
|
|
877
877
|
sections: stickyNavSections,
|
|
878
878
|
activeSection,
|
|
@@ -887,7 +887,7 @@ 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, _chunkB4THEQOWcjs.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/skeletons.tsx
|
|
@@ -959,7 +959,7 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
959
959
|
] }),
|
|
960
960
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-center gap-2 content-sm:w-auto", children: Array.from({ length: buttonCount }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-10 w-full flex-1 rounded content-sm:w-32 content-sm:flex-initial" }, i)) })
|
|
961
961
|
] }),
|
|
962
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
962
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4THEQOWcjs.EmbedLoadingSkeleton, { region: false })
|
|
963
963
|
] });
|
|
964
964
|
}
|
|
965
965
|
|
|
@@ -967,11 +967,11 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
967
967
|
|
|
968
968
|
var DEFAULT_TITLE = "Documents";
|
|
969
969
|
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" }) });
|
|
970
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
971
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
972
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
970
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2X5LYDNAcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
971
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2X5LYDNAcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
972
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4THEQOWcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
973
973
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
974
|
-
|
|
974
|
+
_chunk2X5LYDNAcjs.FileDownloadCard,
|
|
975
975
|
{
|
|
976
976
|
fileName: content.fileName,
|
|
977
977
|
mimeType: content.mimeType,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkB4THEQOWcjs = require('./chunk-B4THEQOW.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -17,7 +17,7 @@ var _chunkFNNDGOR3cjs = require('./chunk-FNNDGOR3.cjs');
|
|
|
17
17
|
var _chunkLWMWY3JOcjs = require('./chunk-LWMWY3JO.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk5E4YEHHOcjs = require('./chunk-5E4YEHHO.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -203,13 +203,13 @@ function ContactForm({
|
|
|
203
203
|
);
|
|
204
204
|
}),
|
|
205
205
|
className: "flex flex-grow flex-col space-y-4 content-md:space-y-6",
|
|
206
|
-
...
|
|
206
|
+
..._chunk5E4YEHHOcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
207
207
|
children: [
|
|
208
208
|
!showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("name") }),
|
|
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, _chunkB4THEQOWcjs.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, _chunkSWF6TNZ3cjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunkB4THEQOWcjs.Textarea,
|
|
338
338
|
{
|
|
339
339
|
id: "message",
|
|
340
340
|
...register("message"),
|
|
@@ -9,7 +9,7 @@ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
|
|
|
9
9
|
var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkB4THEQOWcjs = require('./chunk-B4THEQOW.cjs');
|
|
13
13
|
require('./chunk-FNNDGOR3.cjs');
|
|
14
14
|
require('./chunk-SWMUW3RR.cjs');
|
|
15
15
|
require('./chunk-TRZEFT2N.cjs');
|
|
@@ -20,7 +20,7 @@ require('./chunk-APOMNC7H.cjs');
|
|
|
20
20
|
require('./chunk-24I6RFVU.cjs');
|
|
21
21
|
require('./chunk-MZ4KBSH7.cjs');
|
|
22
22
|
require('./chunk-5SZ4ILU3.cjs');
|
|
23
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-5E4YEHHO.cjs');
|
|
24
24
|
require('./chunk-OT6P57ZS.cjs');
|
|
25
25
|
require('./chunk-Z7A7IZWL.cjs');
|
|
26
26
|
require('./chunk-4JHO2NVI.cjs');
|
|
@@ -1921,7 +1921,7 @@ var getHref = () => "#";
|
|
|
1921
1921
|
function CloudTenantsScreen(_props) {
|
|
1922
1922
|
const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
|
|
1923
1923
|
const fixture = _react.useMemo.call(void 0, () => buildCloudTenantsFixture(cast), [cast]);
|
|
1924
|
-
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1924
|
+
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4THEQOWcjs.TenantsTableView, { rows: fixture.rows, getHref, now: fixture.now });
|
|
1925
1925
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-l)]", children: table });
|
|
1926
1926
|
}
|
|
1927
1927
|
|