@flamingo-stack/openframe-frontend-core 0.0.621 → 0.0.622-snapshot.20260914021720
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-CFZUWKQF.js → chunk-6EHXQH7C.js} +4 -4
- package/dist/{chunk-PDGVOZCD.cjs → chunk-7CHG2DP2.cjs} +3 -3
- package/dist/{chunk-PDGVOZCD.cjs.map → chunk-7CHG2DP2.cjs.map} +1 -1
- package/dist/{chunk-5QUBQ4WP.js → chunk-AOGRJ4FT.js} +2 -2
- package/dist/{chunk-5YVZQVSR.js → chunk-C7AWXFDL.js} +5 -5
- package/dist/{chunk-A7TZZQGS.js → chunk-CIPIND3J.js} +2 -2
- package/dist/{chunk-CLPPOP5T.cjs → chunk-CKLQVCDP.cjs} +4 -4
- package/dist/{chunk-CLPPOP5T.cjs.map → chunk-CKLQVCDP.cjs.map} +1 -1
- package/dist/{chunk-QCZMCOAD.cjs → chunk-D4Q7BB3N.cjs} +33 -33
- package/dist/{chunk-QCZMCOAD.cjs.map → chunk-D4Q7BB3N.cjs.map} +1 -1
- package/dist/{chunk-EYFFIJEY.js → chunk-DTCNLA67.js} +2 -2
- package/dist/{chunk-CKL3UD5N.js → chunk-DUI764J2.js} +2 -2
- package/dist/{chunk-Q2NPL4FU.cjs → chunk-EP2XHZ4Z.cjs} +17 -17
- package/dist/{chunk-Q2NPL4FU.cjs.map → chunk-EP2XHZ4Z.cjs.map} +1 -1
- package/dist/{chunk-KDZLAUHJ.cjs → chunk-EVUDHIDB.cjs} +17 -17
- package/dist/{chunk-KDZLAUHJ.cjs.map → chunk-EVUDHIDB.cjs.map} +1 -1
- package/dist/{chunk-IQNG52SU.js → chunk-KZ7AKNDM.js} +15 -4
- package/dist/{chunk-IQNG52SU.js.map → chunk-KZ7AKNDM.js.map} +1 -1
- package/dist/{chunk-ADT6RYCG.cjs → chunk-LWBLLL32.cjs} +57 -68
- package/dist/chunk-LWBLLL32.cjs.map +1 -0
- package/dist/{chunk-62TUSJHG.js → chunk-MJJIQJGQ.js} +20 -22
- package/dist/{chunk-62TUSJHG.js.map → chunk-MJJIQJGQ.js.map} +1 -1
- package/dist/{chunk-OHJZD7QU.js → chunk-NIX7EG4G.js} +2 -2
- package/dist/{chunk-2BJONQDE.cjs → chunk-NMCR5YGW.cjs} +18 -18
- package/dist/{chunk-2BJONQDE.cjs.map → chunk-NMCR5YGW.cjs.map} +1 -1
- package/dist/{chunk-RGVXFAWM.cjs → chunk-ORUOBIJT.cjs} +3 -3
- package/dist/{chunk-RGVXFAWM.cjs.map → chunk-ORUOBIJT.cjs.map} +1 -1
- package/dist/{chunk-YEIX26DQ.js → chunk-PQZGMNJQ.js} +3 -3
- package/dist/{chunk-O3P2INXM.cjs → chunk-RZPGGSSW.cjs} +13 -13
- package/dist/{chunk-O3P2INXM.cjs.map → chunk-RZPGGSSW.cjs.map} +1 -1
- package/dist/{chunk-KTYYH3JV.cjs → chunk-SEC6NRAV.cjs} +3 -3
- package/dist/{chunk-KTYYH3JV.cjs.map → chunk-SEC6NRAV.cjs.map} +1 -1
- package/dist/{chunk-F4GW2DPW.js → chunk-SNWPBMPV.js} +2 -2
- package/dist/{chunk-NFITQGUP.js → chunk-V4OA6SVZ.js} +2 -2
- package/dist/{chunk-ALHMMNAZ.js → chunk-V6QYKYY2.js} +73 -38
- package/dist/chunk-V6QYKYY2.js.map +1 -0
- package/dist/{chunk-ME4C6DYA.cjs → chunk-VQCEWQFV.cjs} +4 -4
- package/dist/{chunk-ME4C6DYA.cjs.map → chunk-VQCEWQFV.cjs.map} +1 -1
- package/dist/{chunk-L4FR7YIS.js → chunk-VW57GX5O.js} +2 -2
- package/dist/{chunk-MSEHEEF7.cjs → chunk-XB7Z5ASO.cjs} +47 -12
- package/dist/chunk-XB7Z5ASO.cjs.map +1 -0
- package/dist/{chunk-7EV2UHWQ.cjs → chunk-XFYPKN2D.cjs} +15 -4
- package/dist/chunk-XFYPKN2D.cjs.map +1 -0
- package/dist/{chunk-OEXGPFM2.js → chunk-YU5PQOEU.js} +28 -39
- package/dist/chunk-YU5PQOEU.js.map +1 -0
- package/dist/{chunk-5Y2V24GT.cjs → chunk-YW7GPBB2.cjs} +64 -66
- package/dist/chunk-YW7GPBB2.cjs.map +1 -0
- package/dist/{chunk-IZ5GI3FP.cjs → chunk-YXBY2MDO.cjs} +3 -3
- package/dist/{chunk-IZ5GI3FP.cjs.map → chunk-YXBY2MDO.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/command-box.d.ts +9 -1
- package/dist/components/features/command-box.d.ts.map +1 -1
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +33 -31
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +15 -13
- package/dist/components/index.js.map +1 -1
- package/dist/components/list-empty-state.d.ts +32 -0
- package/dist/components/list-empty-state.d.ts.map +1 -0
- package/dist/components/meeting-scheduler/index.cjs +21 -21
- package/dist/components/meeting-scheduler/index.js +1 -1
- package/dist/components/navigation/index.cjs +5 -5
- package/dist/components/navigation/index.js +4 -4
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/shared/delivery/delivery-lists.d.ts.map +1 -1
- package/dist/components/shared/product-release/product-releases-view.d.ts.map +1 -1
- package/dist/components/tickets/help-center-list.d.ts.map +1 -1
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/src/components/__tests__/list-empty-state.test.tsx +106 -0
- package/src/components/features/.command-box.md +2 -1
- package/src/components/features/command-box.tsx +28 -3
- package/src/components/index.ts +1 -0
- package/src/components/list-empty-state.tsx +57 -0
- package/src/components/shared/delivery/delivery-lists.tsx +18 -25
- package/src/components/shared/product-release/product-releases-view.tsx +11 -18
- package/src/components/tickets/help-center-list.tsx +19 -22
- package/dist/chunk-5Y2V24GT.cjs.map +0 -1
- package/dist/chunk-7EV2UHWQ.cjs.map +0 -1
- package/dist/chunk-ADT6RYCG.cjs.map +0 -1
- package/dist/chunk-ALHMMNAZ.js.map +0 -1
- package/dist/chunk-MSEHEEF7.cjs.map +0 -1
- package/dist/chunk-OEXGPFM2.js.map +0 -1
- /package/dist/{chunk-CFZUWKQF.js.map → chunk-6EHXQH7C.js.map} +0 -0
- /package/dist/{chunk-5QUBQ4WP.js.map → chunk-AOGRJ4FT.js.map} +0 -0
- /package/dist/{chunk-5YVZQVSR.js.map → chunk-C7AWXFDL.js.map} +0 -0
- /package/dist/{chunk-A7TZZQGS.js.map → chunk-CIPIND3J.js.map} +0 -0
- /package/dist/{chunk-EYFFIJEY.js.map → chunk-DTCNLA67.js.map} +0 -0
- /package/dist/{chunk-CKL3UD5N.js.map → chunk-DUI764J2.js.map} +0 -0
- /package/dist/{chunk-OHJZD7QU.js.map → chunk-NIX7EG4G.js.map} +0 -0
- /package/dist/{chunk-YEIX26DQ.js.map → chunk-PQZGMNJQ.js.map} +0 -0
- /package/dist/{chunk-F4GW2DPW.js.map → chunk-SNWPBMPV.js.map} +0 -0
- /package/dist/{chunk-NFITQGUP.js.map → chunk-V4OA6SVZ.js.map} +0 -0
- /package/dist/{chunk-L4FR7YIS.js.map → chunk-VW57GX5O.js.map} +0 -0
|
@@ -1,13 +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 _chunkEP2XHZ4Zcjs = require('./chunk-EP2XHZ4Z.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
var _chunkXB7Z5ASOcjs = require('./chunk-XB7Z5ASO.cjs');
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
|
@@ -18,7 +19,7 @@ var _chunkDV7IBKJIcjs = require('./chunk-DV7IBKJI.cjs');
|
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
|
|
21
|
-
var
|
|
22
|
+
var _chunkSEC6NRAVcjs = require('./chunk-SEC6NRAV.cjs');
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
|
|
@@ -34,7 +35,7 @@ var _chunkKTYYH3JVcjs = require('./chunk-KTYYH3JV.cjs');
|
|
|
34
35
|
|
|
35
36
|
|
|
36
37
|
|
|
37
|
-
var
|
|
38
|
+
var _chunkXFYPKN2Dcjs = require('./chunk-XFYPKN2D.cjs');
|
|
38
39
|
|
|
39
40
|
|
|
40
41
|
|
|
@@ -114,7 +115,7 @@ var TicketActionFailure = class extends Error {
|
|
|
114
115
|
function useTicketActions(options) {
|
|
115
116
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
116
117
|
const ticketActionEndpoint = _nullishCoalesce(_chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, ).endpoints.ticketActionUrl, () => ( TICKET_ACTION_ENDPOINT));
|
|
117
|
-
const ticketLive =
|
|
118
|
+
const ticketLive = _chunkSEC6NRAVcjs.useOptionalTicketLive.call(void 0, );
|
|
118
119
|
const notifyTicketCreated = _optionalChain([ticketLive, 'optionalAccess', _2 => _2.notifyTicketCreated]);
|
|
119
120
|
const { prependOptimistic, removeOptimistic, removeTicketFromCache, toast: toast2, onSupportSystemDown } = options;
|
|
120
121
|
const formInFlightRef = _react.useRef.call(void 0, null);
|
|
@@ -275,10 +276,10 @@ function useTicketActions(options) {
|
|
|
275
276
|
..._optionalChain([input, 'access', _3 => _3.attachments, 'optionalAccess', _4 => _4.length]) ? { attachments: input.attachments } : {}
|
|
276
277
|
});
|
|
277
278
|
if (result.mirror_synced === false) {
|
|
278
|
-
toast2(
|
|
279
|
+
toast2(_chunkSEC6NRAVcjs.TOAST_COPY.open_mirror_pending);
|
|
279
280
|
watchMirrorSync(placeholderId, result.ticket_id);
|
|
280
281
|
} else {
|
|
281
|
-
toast2(
|
|
282
|
+
toast2(_chunkSEC6NRAVcjs.TOAST_COPY.open_success);
|
|
282
283
|
await queryClient.invalidateQueries({ queryKey: ["tickets"] });
|
|
283
284
|
removeOptimistic(placeholderId);
|
|
284
285
|
}
|
|
@@ -364,7 +365,7 @@ function useTicketActions(options) {
|
|
|
364
365
|
...hasText ? { content_addendum: trimmed } : {},
|
|
365
366
|
...hasFiles ? { attachments } : {}
|
|
366
367
|
},
|
|
367
|
-
|
|
368
|
+
_chunkSEC6NRAVcjs.TOAST_COPY.comment_success,
|
|
368
369
|
"send message"
|
|
369
370
|
);
|
|
370
371
|
if (ok) {
|
|
@@ -387,13 +388,13 @@ function useTicketActions(options) {
|
|
|
387
388
|
status: "CLOSED",
|
|
388
389
|
..._optionalChain([resolution, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ? { resolution: resolution.trim() } : {}
|
|
389
390
|
},
|
|
390
|
-
|
|
391
|
+
_chunkSEC6NRAVcjs.TOAST_COPY.close_success,
|
|
391
392
|
"close ticket"
|
|
392
393
|
),
|
|
393
394
|
[updateTicket]
|
|
394
395
|
);
|
|
395
396
|
const reopenTicket = _react.useCallback.call(void 0,
|
|
396
|
-
(ticket) => updateTicket(ticket, { status: "OPEN" },
|
|
397
|
+
(ticket) => updateTicket(ticket, { status: "OPEN" }, _chunkSEC6NRAVcjs.TOAST_COPY.reopen_success, "reopen ticket"),
|
|
397
398
|
[updateTicket]
|
|
398
399
|
);
|
|
399
400
|
return _react.useMemo.call(void 0,
|
|
@@ -618,14 +619,14 @@ function useTicketsList(filters) {
|
|
|
618
619
|
// src/components/tickets/ticket-open-form.tsx
|
|
619
620
|
|
|
620
621
|
var _jsxruntime = require('react/jsx-runtime');
|
|
621
|
-
var COUNTER_VISIBLE_AT = Math.floor(
|
|
622
|
+
var COUNTER_VISIBLE_AT = Math.floor(_chunkSEC6NRAVcjs.TICKET_TEXT_MAX_CHARS * 0.8);
|
|
622
623
|
function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
623
624
|
const [subject, setSubject] = _react.useState.call(void 0, "");
|
|
624
625
|
const [content, setContent] = _react.useState.call(void 0, "");
|
|
625
626
|
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } = _chunkIP4OYYDYcjs.useChatAttachments.call(void 0, );
|
|
626
627
|
const trimmedSubject = subject.trim();
|
|
627
628
|
const trimmedContent = content.trim();
|
|
628
|
-
const overCap = content.length >
|
|
629
|
+
const overCap = content.length > _chunkSEC6NRAVcjs.TICKET_TEXT_MAX_CHARS;
|
|
629
630
|
const showCounter = content.length >= COUNTER_VISIBLE_AT;
|
|
630
631
|
const canSubmit = !isSubmitting && !supportSystemDown && !hasInflightUploads && trimmedSubject.length > 0 && trimmedContent.length > 0 && !overCap;
|
|
631
632
|
const handleSubmit = async (e) => {
|
|
@@ -642,7 +643,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
642
643
|
clear();
|
|
643
644
|
}
|
|
644
645
|
};
|
|
645
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex flex-col gap-6 md:flex-row", ...
|
|
646
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex flex-col gap-6 md:flex-row", ..._chunkXFYPKN2Dcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
646
647
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1 md:max-w-md", children: [
|
|
647
648
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "mb-2 text-ods-text-primary text-h2", children: "Need Support?" }),
|
|
648
649
|
/* @__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." }),
|
|
@@ -667,7 +668,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
667
668
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
668
669
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "ticket-content", className: "mb-1 block text-ods-text-primary text-h6", children: "Your Message" }),
|
|
669
670
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
670
|
-
|
|
671
|
+
_chunkXFYPKN2Dcjs.Textarea,
|
|
671
672
|
{
|
|
672
673
|
id: "ticket-content",
|
|
673
674
|
placeholder: "Describe your issue or question in detail...",
|
|
@@ -681,7 +682,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
681
682
|
showCounter && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: `mt-1 text-right text-h6 ${overCap ? "text-ods-error" : "text-ods-text-secondary"}`, children: [
|
|
682
683
|
content.length,
|
|
683
684
|
"/",
|
|
684
|
-
|
|
685
|
+
_chunkSEC6NRAVcjs.TICKET_TEXT_MAX_CHARS
|
|
685
686
|
] })
|
|
686
687
|
] }),
|
|
687
688
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -797,7 +798,7 @@ function TicketLinkedDeliveryCard({ clickup, className }) {
|
|
|
797
798
|
dateClosed: clickup.date_closed,
|
|
798
799
|
clickupUrl: _nullishCoalesce(clickup.clickup_url, () => ( ""))
|
|
799
800
|
};
|
|
800
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `overflow-hidden rounded-md border border-ods-border bg-ods-bg ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
801
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `overflow-hidden rounded-md border border-ods-border bg-ods-bg ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXB7Z5ASOcjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
|
|
801
802
|
}
|
|
802
803
|
|
|
803
804
|
// src/components/tickets/ticket-reply-composer.tsx
|
|
@@ -850,7 +851,7 @@ function TicketReplyComposer({
|
|
|
850
851
|
sending: busy || attachments.hasInflightUploads,
|
|
851
852
|
disabled: supportSystemDown,
|
|
852
853
|
allowEmptySend: hasReadyFiles,
|
|
853
|
-
maxLength:
|
|
854
|
+
maxLength: _chunkSEC6NRAVcjs.TICKET_TEXT_MAX_CHARS,
|
|
854
855
|
onSend: handleSend
|
|
855
856
|
}
|
|
856
857
|
),
|
|
@@ -879,25 +880,25 @@ function TicketReplyComposer({
|
|
|
879
880
|
}
|
|
880
881
|
)
|
|
881
882
|
] }),
|
|
882
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
883
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
884
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
885
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
883
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFYPKN2Dcjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXFYPKN2Dcjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
|
|
884
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXFYPKN2Dcjs.AlertDialogHeader, { children: [
|
|
885
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFYPKN2Dcjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
|
|
886
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFYPKN2Dcjs.AlertDialogDescription, { className: "text-ods-text-secondary", children: "Add an optional resolution note below. You can reopen the ticket later if needed." })
|
|
886
887
|
] }),
|
|
887
888
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
888
|
-
|
|
889
|
+
_chunkXFYPKN2Dcjs.Textarea,
|
|
889
890
|
{
|
|
890
891
|
value: resolution,
|
|
891
892
|
onChange: (e) => setResolution(e.target.value),
|
|
892
893
|
placeholder: "Resolution (optional)",
|
|
893
894
|
rows: 3,
|
|
894
|
-
maxLength:
|
|
895
|
+
maxLength: _chunkSEC6NRAVcjs.TICKET_TEXT_MAX_CHARS,
|
|
895
896
|
className: "mt-2"
|
|
896
897
|
}
|
|
897
898
|
),
|
|
898
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
899
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXFYPKN2Dcjs.AlertDialogFooter, { children: [
|
|
899
900
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
900
|
-
|
|
901
|
+
_chunkXFYPKN2Dcjs.AlertDialogCancel,
|
|
901
902
|
{
|
|
902
903
|
disabled: busy,
|
|
903
904
|
className: "border-ods-border bg-transparent text-ods-text-primary hover:bg-ods-border",
|
|
@@ -905,7 +906,7 @@ function TicketReplyComposer({
|
|
|
905
906
|
}
|
|
906
907
|
),
|
|
907
908
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
908
|
-
|
|
909
|
+
_chunkXFYPKN2Dcjs.AlertDialogAction,
|
|
909
910
|
{
|
|
910
911
|
onClick: () => void confirmClose(),
|
|
911
912
|
disabled: busy,
|
|
@@ -968,9 +969,9 @@ var TICKET_FEED_INNER = "flex flex-col gap-4 md:gap-6 px-4 md:px-6 py-4 md:py-6"
|
|
|
968
969
|
var TICKET_FEED_SKELETON_ROWS = 6;
|
|
969
970
|
function TicketTimelinePanel({ ticket }) {
|
|
970
971
|
const identity = _chunkIP4OYYDYcjs.useChatIdentity.call(void 0, );
|
|
971
|
-
const externalId =
|
|
972
|
+
const externalId = _chunkSEC6NRAVcjs.isOptimistic.call(void 0, ticket) ? null : ticket.external_id;
|
|
972
973
|
const { engagements, isLoading } = useTicketEngagements(externalId, !!externalId);
|
|
973
|
-
const live =
|
|
974
|
+
const live = _chunkSEC6NRAVcjs.useOptionalTicketLive.call(void 0, );
|
|
974
975
|
const setOpenTicketId = _optionalChain([live, 'optionalAccess', _25 => _25.setOpenTicketId]);
|
|
975
976
|
const markRead = _optionalChain([live, 'optionalAccess', _26 => _26.markRead]);
|
|
976
977
|
const markReadDebounceRef = _react.useRef.call(void 0, null);
|
|
@@ -994,7 +995,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
994
995
|
markReadDebounceRef.current = setTimeout(() => {
|
|
995
996
|
markReadDebounceRef.current = null;
|
|
996
997
|
void markRead(externalId);
|
|
997
|
-
},
|
|
998
|
+
}, _chunkSEC6NRAVcjs.TICKET_MARK_READ_DEBOUNCE_MS);
|
|
998
999
|
}, [engagementsCount, externalId, markRead]);
|
|
999
1000
|
const { scrollRef, contentRef } = _usesticktobottom.useStickToBottom.call(void 0, { initial: "instant", resize: "smooth" });
|
|
1000
1001
|
const bodyTurns = ticket.body ? ticket.body.split(TURN_SEPARATOR_RE).map((t) => t.trim()).filter(Boolean) : [];
|
|
@@ -1063,7 +1064,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1063
1064
|
avatarUrl: avatarSrc,
|
|
1064
1065
|
timeLabel: eng.createdAt ? _chunkIP4OYYDYcjs.formatRelativeTime.call(void 0, eng.createdAt) : null,
|
|
1065
1066
|
body: stripAttachmentsPreamble(_nullishCoalesce(eng.body, () => ( ""))),
|
|
1066
|
-
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1067
|
+
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFYPKN2Dcjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
|
|
1067
1068
|
},
|
|
1068
1069
|
eng.id
|
|
1069
1070
|
);
|
|
@@ -1176,7 +1177,7 @@ function TicketRow({
|
|
|
1176
1177
|
onActionCollapsed,
|
|
1177
1178
|
id
|
|
1178
1179
|
}) {
|
|
1179
|
-
const optimistic =
|
|
1180
|
+
const optimistic = _chunkSEC6NRAVcjs.isOptimistic.call(void 0, ticket);
|
|
1180
1181
|
const rowRef = _react.useRef.call(void 0, null);
|
|
1181
1182
|
const handleClick = _react.useCallback.call(void 0, () => {
|
|
1182
1183
|
onToggle(ticket.id);
|
|
@@ -1345,11 +1346,11 @@ function TicketCenterAuthed({
|
|
|
1345
1346
|
) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS7MVDUFcjs.Card, { className: "overflow-hidden", children: merged.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1346
1347
|
TicketRow,
|
|
1347
1348
|
{
|
|
1348
|
-
id:
|
|
1349
|
+
id: _chunkXFYPKN2Dcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1349
1350
|
ticket,
|
|
1350
1351
|
expanded: expandedTicketId === ticket.id,
|
|
1351
1352
|
onToggle: toggleRow,
|
|
1352
|
-
busy:
|
|
1353
|
+
busy: _chunkSEC6NRAVcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1353
1354
|
supportSystemDown,
|
|
1354
1355
|
onSendMessage: actions.sendMessage,
|
|
1355
1356
|
onClose: actions.closeTicket,
|
|
@@ -1403,7 +1404,7 @@ function HelpCenterCard({
|
|
|
1403
1404
|
onClearReplyError,
|
|
1404
1405
|
id
|
|
1405
1406
|
}) {
|
|
1406
|
-
const optimistic =
|
|
1407
|
+
const optimistic = _chunkSEC6NRAVcjs.isOptimistic.call(void 0, ticket);
|
|
1407
1408
|
const rawStatus = (_nullishCoalesce(ticket.status, () => ( "OPEN"))).toUpperCase();
|
|
1408
1409
|
const priority = (_nullishCoalesce(ticket.priority, () => ( ""))).toUpperCase();
|
|
1409
1410
|
const relativeUpdated = ticket.hubspot_updated_at ? _chunkIP4OYYDYcjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : "recently";
|
|
@@ -1425,7 +1426,7 @@ function HelpCenterCard({
|
|
|
1425
1426
|
});
|
|
1426
1427
|
return () => cancelAnimationFrame(raf);
|
|
1427
1428
|
}, [isExpanded]);
|
|
1428
|
-
const live =
|
|
1429
|
+
const live = _chunkSEC6NRAVcjs.useOptionalTicketLive.call(void 0, );
|
|
1429
1430
|
const unreadCount = !optimistic && ticket.external_id && _optionalChain([live, 'optionalAccess', _64 => _64.unreadByTicket, 'access', _65 => _65[ticket.external_id]]) || 0;
|
|
1430
1431
|
const rightBadges = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1431
1432
|
unreadCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1475,7 +1476,7 @@ function HelpCenterCard({
|
|
|
1475
1476
|
"aria-controls": isExpanded ? `help-center-drawer-${ticket.id}` : void 0,
|
|
1476
1477
|
className: "w-full p-[12px] text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent disabled:cursor-default md:p-[16px]",
|
|
1477
1478
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1478
|
-
|
|
1479
|
+
_chunkXB7Z5ASOcjs.DevCardRowContent,
|
|
1479
1480
|
{
|
|
1480
1481
|
title,
|
|
1481
1482
|
subtitle,
|
|
@@ -1576,7 +1577,7 @@ function HelpCenterCreateForm({
|
|
|
1576
1577
|
subjectError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "help-center-subject-error", className: "mt-1 text-ods-error text-h6", children: subjectError })
|
|
1577
1578
|
] });
|
|
1578
1579
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1579
|
-
|
|
1580
|
+
_chunkEP2XHZ4Zcjs.ContactForm,
|
|
1580
1581
|
{
|
|
1581
1582
|
title: "Open a new ticket",
|
|
1582
1583
|
footerText: "The support team typically responds within one business day.",
|
|
@@ -1618,25 +1619,25 @@ function HelpCenterList({ toast: toast2 = _chunkJJUV7Z4Lcjs.toast, backButton, t
|
|
|
1618
1619
|
const searchParams = _chunkSADRZ4YIcjs.useSearchParams.call(void 0, );
|
|
1619
1620
|
const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
|
|
1620
1621
|
const pathname = _chunkSADRZ4YIcjs.usePathname.call(void 0, );
|
|
1621
|
-
const search = searchParams.get(
|
|
1622
|
+
const search = searchParams.get(_chunkXFYPKN2Dcjs.DEV_SECTION_PARAM_KEYS.search) || "";
|
|
1622
1623
|
const status = searchParams.get("status") || "all";
|
|
1623
|
-
const ticketParam = searchParams.get(
|
|
1624
|
+
const ticketParam = searchParams.get(_chunkXFYPKN2Dcjs.TICKET_OPEN_PARAM) || "";
|
|
1624
1625
|
const page = _chunkCCWI3622cjs.positiveInt.call(void 0, searchParams.get("page"), 1);
|
|
1625
1626
|
if (identity.isLoading) {
|
|
1626
1627
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1627
|
-
|
|
1628
|
+
_chunkXB7Z5ASOcjs.DevSectionPage,
|
|
1628
1629
|
{
|
|
1629
1630
|
sectionKey: "tickets",
|
|
1630
1631
|
backButton,
|
|
1631
1632
|
title,
|
|
1632
1633
|
shell,
|
|
1633
1634
|
preControls: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCreateFormSkeleton, {}),
|
|
1634
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1635
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXB7Z5ASOcjs.DevCardRowSkeletonList, {})
|
|
1635
1636
|
}
|
|
1636
1637
|
);
|
|
1637
1638
|
}
|
|
1638
1639
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _66 => _66.user, 'optionalAccess', _67 => _67.email])) {
|
|
1639
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1640
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXB7Z5ASOcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1640
1641
|
_chunkDV7IBKJIcjs.EmptyState,
|
|
1641
1642
|
{
|
|
1642
1643
|
type: "generic",
|
|
@@ -1688,8 +1689,8 @@ function HelpCenterListAuthed({
|
|
|
1688
1689
|
const setOpenTicket = _react.useCallback.call(void 0,
|
|
1689
1690
|
(externalId) => {
|
|
1690
1691
|
const params = new URLSearchParams(searchParams.toString());
|
|
1691
|
-
if (externalId) params.set(
|
|
1692
|
-
else params.delete(
|
|
1692
|
+
if (externalId) params.set(_chunkXFYPKN2Dcjs.TICKET_OPEN_PARAM, externalId);
|
|
1693
|
+
else params.delete(_chunkXFYPKN2Dcjs.TICKET_OPEN_PARAM);
|
|
1693
1694
|
const qs = params.toString();
|
|
1694
1695
|
router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });
|
|
1695
1696
|
},
|
|
@@ -1766,36 +1767,33 @@ function HelpCenterListAuthed({
|
|
|
1766
1767
|
] }),
|
|
1767
1768
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCJBSU3XBcjs.Button, { type: "button", variant: "accent", onClick: () => refetch(), children: "Retry" })
|
|
1768
1769
|
] }),
|
|
1769
|
-
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1770
|
+
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXB7Z5ASOcjs.DevCardRowSkeletonList, {}) : !hasResults && isFetching ? (
|
|
1770
1771
|
// Bridge state — background refetch in flight and the
|
|
1771
1772
|
// optimistic placeholder was just removed by the mutation
|
|
1772
1773
|
// callback. Without this branch "No tickets yet" would flash
|
|
1773
1774
|
// for ~50ms between `removeOptimistic` and the server
|
|
1774
1775
|
// response landing.
|
|
1775
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1776
|
-
) : !hasResults ?
|
|
1777
|
-
|
|
1776
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXB7Z5ASOcjs.DevCardRowSkeletonList, { rows: 1 })
|
|
1777
|
+
) : !hasResults ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1778
|
+
_chunkXB7Z5ASOcjs.ListEmptyState,
|
|
1778
1779
|
{
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1780
|
+
isFiltered: hasActiveFilters,
|
|
1781
|
+
filtered: {
|
|
1782
|
+
title: "No tickets found",
|
|
1783
|
+
description: "No tickets match your current filters. Try clearing them or broadening your search.",
|
|
1784
|
+
clearText: "Reset filters"
|
|
1785
|
+
},
|
|
1786
|
+
onClearFilters: () => {
|
|
1785
1787
|
const params = new URLSearchParams(searchParams.toString());
|
|
1786
1788
|
params.delete("search");
|
|
1787
1789
|
params.delete("status");
|
|
1788
1790
|
router.replace(`${pathname}?${params.toString()}`, { scroll: false });
|
|
1791
|
+
},
|
|
1792
|
+
empty: {
|
|
1793
|
+
title: "No tickets yet",
|
|
1794
|
+
description: "Open one above to start the conversation with the support team."
|
|
1789
1795
|
}
|
|
1790
1796
|
}
|
|
1791
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1792
|
-
_chunkDV7IBKJIcjs.EmptyState,
|
|
1793
|
-
{
|
|
1794
|
-
type: "generic",
|
|
1795
|
-
title: "No tickets yet",
|
|
1796
|
-
description: "Open one above to start the conversation with the support team.",
|
|
1797
|
-
showCTA: false
|
|
1798
|
-
}
|
|
1799
1797
|
) : (
|
|
1800
1798
|
// `overflow-clip` (NOT `overflow-hidden`) — both visually
|
|
1801
1799
|
// clip the rounded corners, but `hidden` makes the element
|
|
@@ -1808,11 +1806,11 @@ function HelpCenterListAuthed({
|
|
|
1808
1806
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full overflow-clip rounded-[6px] border border-ods-border bg-ods-card", children: merged.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1809
1807
|
HelpCenterCard,
|
|
1810
1808
|
{
|
|
1811
|
-
id:
|
|
1809
|
+
id: _chunkXFYPKN2Dcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1812
1810
|
ticket,
|
|
1813
1811
|
expanded: expandedTicketId === ticket.id,
|
|
1814
1812
|
onToggle: toggleRow,
|
|
1815
|
-
busy:
|
|
1813
|
+
busy: _chunkSEC6NRAVcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1816
1814
|
supportSystemDown,
|
|
1817
1815
|
onSendMessage: actions.sendMessage,
|
|
1818
1816
|
onClose: actions.closeTicket,
|
|
@@ -1826,7 +1824,7 @@ function HelpCenterListAuthed({
|
|
|
1826
1824
|
) }),
|
|
1827
1825
|
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDV7IBKJIcjs.UnifiedPagination, { currentPage: page, totalPages })
|
|
1828
1826
|
] });
|
|
1829
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1827
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXB7Z5ASOcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, preControls: form, children: body });
|
|
1830
1828
|
}
|
|
1831
1829
|
|
|
1832
1830
|
|
|
@@ -1845,4 +1843,4 @@ function HelpCenterListAuthed({
|
|
|
1845
1843
|
|
|
1846
1844
|
|
|
1847
1845
|
exports.useTicketActions = useTicketActions; exports.mapTicketActionError = mapTicketActionError; exports.useTicketsList = useTicketsList; exports.TicketOpenForm = TicketOpenForm; exports.useTicketEngagements = useTicketEngagements; exports.TicketLinkedDeliveryCard = TicketLinkedDeliveryCard; exports.TicketReplyComposer = TicketReplyComposer; exports.TicketDetailDrawer = TicketDetailDrawer; exports.TicketRow = TicketRow; exports.TicketCenter = TicketCenter; exports.HelpCenterCard = HelpCenterCard; exports.HelpCenterCreateFormSkeleton = HelpCenterCreateFormSkeleton; exports.HelpCenterCreateForm = HelpCenterCreateForm; exports.HelpCenterList = HelpCenterList;
|
|
1848
|
-
//# sourceMappingURL=chunk-
|
|
1846
|
+
//# sourceMappingURL=chunk-YW7GPBB2.cjs.map
|