@flamingo-stack/openframe-frontend-core 0.0.628-snapshot.20260914045040 → 0.0.628
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-T46STYS2.js → chunk-2E543KJD.js} +2 -2
- package/dist/{chunk-LQLL4S4V.js → chunk-6AFJQOT2.js} +2 -2
- package/dist/{chunk-LHYRLL64.cjs → chunk-6QLOSGE7.cjs} +33 -33
- package/dist/{chunk-LHYRLL64.cjs.map → chunk-6QLOSGE7.cjs.map} +1 -1
- package/dist/{chunk-CKMJQ46H.cjs → chunk-BND25SXU.cjs} +18 -18
- package/dist/{chunk-CKMJQ46H.cjs.map → chunk-BND25SXU.cjs.map} +1 -1
- package/dist/{chunk-3ZY4CE7N.cjs → chunk-C3DDNRJG.cjs} +3 -3
- package/dist/{chunk-3ZY4CE7N.cjs.map → chunk-C3DDNRJG.cjs.map} +1 -1
- package/dist/{chunk-HVWNOPDV.cjs → chunk-E523WX5V.cjs} +3 -3
- package/dist/{chunk-HVWNOPDV.cjs.map → chunk-E523WX5V.cjs.map} +1 -1
- package/dist/{chunk-K7EJ7HYJ.cjs → chunk-GH4WLDPS.cjs} +10 -10
- package/dist/{chunk-K7EJ7HYJ.cjs.map → chunk-GH4WLDPS.cjs.map} +1 -1
- package/dist/{chunk-OXTV63QO.js → chunk-HLZKMYST.js} +2 -2
- package/dist/{chunk-4NMVDTHA.js → chunk-HNNR5CGX.js} +2 -2
- package/dist/{chunk-PFBMVQ5R.js → chunk-JVLLA3Z7.js} +2 -2
- package/dist/{chunk-4VPCIREO.js → chunk-JWXEEZKD.js} +2 -2
- package/dist/{chunk-2MXKO5BN.js → chunk-K43T7N7O.js} +4 -4
- package/dist/{chunk-W523NIJ6.cjs → chunk-KT47FRJC.cjs} +3 -3
- package/dist/{chunk-W523NIJ6.cjs.map → chunk-KT47FRJC.cjs.map} +1 -1
- package/dist/{chunk-KO52PXL4.cjs → chunk-KTBZJP5J.cjs} +4 -4
- package/dist/{chunk-KO52PXL4.cjs.map → chunk-KTBZJP5J.cjs.map} +1 -1
- package/dist/{chunk-DLHGJYYA.cjs → chunk-L6GJV7E7.cjs} +36 -36
- package/dist/{chunk-DLHGJYYA.cjs.map → chunk-L6GJV7E7.cjs.map} +1 -1
- package/dist/{chunk-MTLDYBXK.js → chunk-LCMXGM2P.js} +4 -4
- package/dist/{chunk-MOB5AA3X.js → chunk-LLSX5T7X.js} +3 -3
- package/dist/{chunk-SCPJ53CM.js → chunk-MB4IEWLH.js} +2 -2
- package/dist/{chunk-7P6M5G3W.cjs → chunk-Q544C4Z7.cjs} +17 -17
- package/dist/{chunk-7P6M5G3W.cjs.map → chunk-Q544C4Z7.cjs.map} +1 -1
- package/dist/{chunk-XNC37UQP.cjs → chunk-SWJ6QLD7.cjs} +51 -51
- package/dist/{chunk-XNC37UQP.cjs.map → chunk-SWJ6QLD7.cjs.map} +1 -1
- package/dist/{chunk-5OMBSMRI.cjs → chunk-TDKOW2C5.cjs} +13 -13
- package/dist/{chunk-5OMBSMRI.cjs.map → chunk-TDKOW2C5.cjs.map} +1 -1
- package/dist/{chunk-DGY4NVIB.js → chunk-TUUSLED7.js} +5 -5
- package/dist/{chunk-GR3WOOM7.js → chunk-U4UNC3RP.js} +5 -5
- package/dist/{chunk-WR67VM2J.cjs → chunk-UBX3ATG5.cjs} +145 -172
- package/dist/chunk-UBX3ATG5.cjs.map +1 -0
- package/dist/{chunk-5JAB5LVO.cjs → chunk-VCY2KHOE.cjs} +17 -17
- package/dist/{chunk-5JAB5LVO.cjs.map → chunk-VCY2KHOE.cjs.map} +1 -1
- package/dist/{chunk-2ZSGDKZI.cjs → chunk-WIP5JO2O.cjs} +4 -4
- package/dist/{chunk-2ZSGDKZI.cjs.map → chunk-WIP5JO2O.cjs.map} +1 -1
- package/dist/{chunk-PJZYJDR7.js → chunk-XQ4II4BK.js} +2 -2
- package/dist/{chunk-CV2SESZT.cjs → chunk-Y5QXDVPP.cjs} +3 -3
- package/dist/{chunk-CV2SESZT.cjs.map → chunk-Y5QXDVPP.cjs.map} +1 -1
- package/dist/{chunk-QGWBMPQY.js → chunk-YZJL6WGP.js} +7 -34
- package/dist/chunk-YZJL6WGP.js.map +1 -0
- package/dist/{chunk-D5CKXMMC.js → chunk-ZRCWXJDW.js} +2 -2
- 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/changelog-manager.d.ts +1 -17
- package/dist/components/features/changelog-manager.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 +31 -31
- package/dist/components/index.js +12 -12
- 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/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/dist/types/index.cjs.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/product-release.d.ts +0 -5
- package/dist/types/product-release.d.ts.map +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/features/changelog-manager.tsx +5 -69
- package/src/types/product-release.ts +0 -5
- package/dist/chunk-QGWBMPQY.js.map +0 -1
- package/dist/chunk-WR67VM2J.cjs.map +0 -1
- package/src/components/features/__tests__/changelog-manager-tags.test.tsx +0 -57
- /package/dist/{chunk-T46STYS2.js.map → chunk-2E543KJD.js.map} +0 -0
- /package/dist/{chunk-LQLL4S4V.js.map → chunk-6AFJQOT2.js.map} +0 -0
- /package/dist/{chunk-OXTV63QO.js.map → chunk-HLZKMYST.js.map} +0 -0
- /package/dist/{chunk-4NMVDTHA.js.map → chunk-HNNR5CGX.js.map} +0 -0
- /package/dist/{chunk-PFBMVQ5R.js.map → chunk-JVLLA3Z7.js.map} +0 -0
- /package/dist/{chunk-4VPCIREO.js.map → chunk-JWXEEZKD.js.map} +0 -0
- /package/dist/{chunk-2MXKO5BN.js.map → chunk-K43T7N7O.js.map} +0 -0
- /package/dist/{chunk-MTLDYBXK.js.map → chunk-LCMXGM2P.js.map} +0 -0
- /package/dist/{chunk-MOB5AA3X.js.map → chunk-LLSX5T7X.js.map} +0 -0
- /package/dist/{chunk-SCPJ53CM.js.map → chunk-MB4IEWLH.js.map} +0 -0
- /package/dist/{chunk-DGY4NVIB.js.map → chunk-TUUSLED7.js.map} +0 -0
- /package/dist/{chunk-GR3WOOM7.js.map → chunk-U4UNC3RP.js.map} +0 -0
- /package/dist/{chunk-PJZYJDR7.js.map → chunk-XQ4II4BK.js.map} +0 -0
- /package/dist/{chunk-D5CKXMMC.js.map → chunk-ZRCWXJDW.js.map} +0 -0
|
@@ -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 _chunkQ544C4Z7cjs = require('./chunk-Q544C4Z7.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkGH4WLDPScjs = require('./chunk-GH4WLDPS.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -19,7 +19,7 @@ var _chunk2MMEPNSXcjs = require('./chunk-2MMEPNSX.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkY5QXDVPPcjs = require('./chunk-Y5QXDVPP.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -35,7 +35,7 @@ var _chunkCV2SESZTcjs = require('./chunk-CV2SESZT.cjs');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkUBX3ATG5cjs = require('./chunk-UBX3ATG5.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
@@ -115,7 +115,7 @@ var TicketActionFailure = class extends Error {
|
|
|
115
115
|
function useTicketActions(options) {
|
|
116
116
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
117
117
|
const ticketActionEndpoint = _nullishCoalesce(_chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, ).endpoints.ticketActionUrl, () => ( TICKET_ACTION_ENDPOINT));
|
|
118
|
-
const ticketLive =
|
|
118
|
+
const ticketLive = _chunkY5QXDVPPcjs.useOptionalTicketLive.call(void 0, );
|
|
119
119
|
const notifyTicketCreated = _optionalChain([ticketLive, 'optionalAccess', _2 => _2.notifyTicketCreated]);
|
|
120
120
|
const { prependOptimistic, removeOptimistic, removeTicketFromCache, toast: toast2, onSupportSystemDown } = options;
|
|
121
121
|
const formInFlightRef = _react.useRef.call(void 0, null);
|
|
@@ -276,10 +276,10 @@ function useTicketActions(options) {
|
|
|
276
276
|
..._optionalChain([input, 'access', _3 => _3.attachments, 'optionalAccess', _4 => _4.length]) ? { attachments: input.attachments } : {}
|
|
277
277
|
});
|
|
278
278
|
if (result.mirror_synced === false) {
|
|
279
|
-
toast2(
|
|
279
|
+
toast2(_chunkY5QXDVPPcjs.TOAST_COPY.open_mirror_pending);
|
|
280
280
|
watchMirrorSync(placeholderId, result.ticket_id);
|
|
281
281
|
} else {
|
|
282
|
-
toast2(
|
|
282
|
+
toast2(_chunkY5QXDVPPcjs.TOAST_COPY.open_success);
|
|
283
283
|
await queryClient.invalidateQueries({ queryKey: ["tickets"] });
|
|
284
284
|
removeOptimistic(placeholderId);
|
|
285
285
|
}
|
|
@@ -365,7 +365,7 @@ function useTicketActions(options) {
|
|
|
365
365
|
...hasText ? { content_addendum: trimmed } : {},
|
|
366
366
|
...hasFiles ? { attachments } : {}
|
|
367
367
|
},
|
|
368
|
-
|
|
368
|
+
_chunkY5QXDVPPcjs.TOAST_COPY.comment_success,
|
|
369
369
|
"send message"
|
|
370
370
|
);
|
|
371
371
|
if (ok) {
|
|
@@ -388,13 +388,13 @@ function useTicketActions(options) {
|
|
|
388
388
|
status: "CLOSED",
|
|
389
389
|
..._optionalChain([resolution, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ? { resolution: resolution.trim() } : {}
|
|
390
390
|
},
|
|
391
|
-
|
|
391
|
+
_chunkY5QXDVPPcjs.TOAST_COPY.close_success,
|
|
392
392
|
"close ticket"
|
|
393
393
|
),
|
|
394
394
|
[updateTicket]
|
|
395
395
|
);
|
|
396
396
|
const reopenTicket = _react.useCallback.call(void 0,
|
|
397
|
-
(ticket) => updateTicket(ticket, { status: "OPEN" },
|
|
397
|
+
(ticket) => updateTicket(ticket, { status: "OPEN" }, _chunkY5QXDVPPcjs.TOAST_COPY.reopen_success, "reopen ticket"),
|
|
398
398
|
[updateTicket]
|
|
399
399
|
);
|
|
400
400
|
return _react.useMemo.call(void 0,
|
|
@@ -619,14 +619,14 @@ function useTicketsList(filters) {
|
|
|
619
619
|
// src/components/tickets/ticket-open-form.tsx
|
|
620
620
|
|
|
621
621
|
var _jsxruntime = require('react/jsx-runtime');
|
|
622
|
-
var COUNTER_VISIBLE_AT = Math.floor(
|
|
622
|
+
var COUNTER_VISIBLE_AT = Math.floor(_chunkY5QXDVPPcjs.TICKET_TEXT_MAX_CHARS * 0.8);
|
|
623
623
|
function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
624
624
|
const [subject, setSubject] = _react.useState.call(void 0, "");
|
|
625
625
|
const [content, setContent] = _react.useState.call(void 0, "");
|
|
626
626
|
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } = _chunkUNI3POHUcjs.useChatAttachments.call(void 0, );
|
|
627
627
|
const trimmedSubject = subject.trim();
|
|
628
628
|
const trimmedContent = content.trim();
|
|
629
|
-
const overCap = content.length >
|
|
629
|
+
const overCap = content.length > _chunkY5QXDVPPcjs.TICKET_TEXT_MAX_CHARS;
|
|
630
630
|
const showCounter = content.length >= COUNTER_VISIBLE_AT;
|
|
631
631
|
const canSubmit = !isSubmitting && !supportSystemDown && !hasInflightUploads && trimmedSubject.length > 0 && trimmedContent.length > 0 && !overCap;
|
|
632
632
|
const handleSubmit = async (e) => {
|
|
@@ -643,7 +643,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
643
643
|
clear();
|
|
644
644
|
}
|
|
645
645
|
};
|
|
646
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQHFHKUGcjs.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, _chunkOQHFHKUGcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex flex-col gap-6 md:flex-row", ..._chunkUBX3ATG5cjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
647
647
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1 md:max-w-md", children: [
|
|
648
648
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "mb-2 text-ods-text-primary text-h2", children: "Need Support?" }),
|
|
649
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." }),
|
|
@@ -668,7 +668,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
668
668
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
669
669
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "ticket-content", className: "mb-1 block text-ods-text-primary text-h6", children: "Your Message" }),
|
|
670
670
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
671
|
-
|
|
671
|
+
_chunkUBX3ATG5cjs.Textarea,
|
|
672
672
|
{
|
|
673
673
|
id: "ticket-content",
|
|
674
674
|
placeholder: "Describe your issue or question in detail...",
|
|
@@ -682,7 +682,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
682
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: [
|
|
683
683
|
content.length,
|
|
684
684
|
"/",
|
|
685
|
-
|
|
685
|
+
_chunkY5QXDVPPcjs.TICKET_TEXT_MAX_CHARS
|
|
686
686
|
] })
|
|
687
687
|
] }),
|
|
688
688
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -798,7 +798,7 @@ function TicketLinkedDeliveryCard({ clickup, className }) {
|
|
|
798
798
|
dateClosed: clickup.date_closed,
|
|
799
799
|
clickupUrl: _nullishCoalesce(clickup.clickup_url, () => ( ""))
|
|
800
800
|
};
|
|
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,
|
|
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, _chunkGH4WLDPScjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
|
|
802
802
|
}
|
|
803
803
|
|
|
804
804
|
// src/components/tickets/ticket-reply-composer.tsx
|
|
@@ -851,7 +851,7 @@ function TicketReplyComposer({
|
|
|
851
851
|
sending: busy || attachments.hasInflightUploads,
|
|
852
852
|
disabled: supportSystemDown,
|
|
853
853
|
allowEmptySend: hasReadyFiles,
|
|
854
|
-
maxLength:
|
|
854
|
+
maxLength: _chunkY5QXDVPPcjs.TICKET_TEXT_MAX_CHARS,
|
|
855
855
|
onSend: handleSend
|
|
856
856
|
}
|
|
857
857
|
),
|
|
@@ -880,25 +880,25 @@ function TicketReplyComposer({
|
|
|
880
880
|
}
|
|
881
881
|
)
|
|
882
882
|
] }),
|
|
883
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
884
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
885
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
886
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
883
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBX3ATG5cjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUBX3ATG5cjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
|
|
884
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUBX3ATG5cjs.AlertDialogHeader, { children: [
|
|
885
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBX3ATG5cjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
|
|
886
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUBX3ATG5cjs.AlertDialogDescription, { className: "text-ods-text-secondary", children: "Add an optional resolution note below. You can reopen the ticket later if needed." })
|
|
887
887
|
] }),
|
|
888
888
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
889
|
-
|
|
889
|
+
_chunkUBX3ATG5cjs.Textarea,
|
|
890
890
|
{
|
|
891
891
|
value: resolution,
|
|
892
892
|
onChange: (e) => setResolution(e.target.value),
|
|
893
893
|
placeholder: "Resolution (optional)",
|
|
894
894
|
rows: 3,
|
|
895
|
-
maxLength:
|
|
895
|
+
maxLength: _chunkY5QXDVPPcjs.TICKET_TEXT_MAX_CHARS,
|
|
896
896
|
className: "mt-2"
|
|
897
897
|
}
|
|
898
898
|
),
|
|
899
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
899
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkUBX3ATG5cjs.AlertDialogFooter, { children: [
|
|
900
900
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
901
|
-
|
|
901
|
+
_chunkUBX3ATG5cjs.AlertDialogCancel,
|
|
902
902
|
{
|
|
903
903
|
disabled: busy,
|
|
904
904
|
className: "border-ods-border bg-transparent text-ods-text-primary hover:bg-ods-border",
|
|
@@ -906,7 +906,7 @@ function TicketReplyComposer({
|
|
|
906
906
|
}
|
|
907
907
|
),
|
|
908
908
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
909
|
-
|
|
909
|
+
_chunkUBX3ATG5cjs.AlertDialogAction,
|
|
910
910
|
{
|
|
911
911
|
onClick: () => void confirmClose(),
|
|
912
912
|
disabled: busy,
|
|
@@ -969,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"
|
|
|
969
969
|
var TICKET_FEED_SKELETON_ROWS = 6;
|
|
970
970
|
function TicketTimelinePanel({ ticket }) {
|
|
971
971
|
const identity = _chunkUNI3POHUcjs.useChatIdentity.call(void 0, );
|
|
972
|
-
const externalId =
|
|
972
|
+
const externalId = _chunkY5QXDVPPcjs.isOptimistic.call(void 0, ticket) ? null : ticket.external_id;
|
|
973
973
|
const { engagements, isLoading } = useTicketEngagements(externalId, !!externalId);
|
|
974
|
-
const live =
|
|
974
|
+
const live = _chunkY5QXDVPPcjs.useOptionalTicketLive.call(void 0, );
|
|
975
975
|
const setOpenTicketId = _optionalChain([live, 'optionalAccess', _25 => _25.setOpenTicketId]);
|
|
976
976
|
const markRead = _optionalChain([live, 'optionalAccess', _26 => _26.markRead]);
|
|
977
977
|
const markReadDebounceRef = _react.useRef.call(void 0, null);
|
|
@@ -995,7 +995,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
995
995
|
markReadDebounceRef.current = setTimeout(() => {
|
|
996
996
|
markReadDebounceRef.current = null;
|
|
997
997
|
void markRead(externalId);
|
|
998
|
-
},
|
|
998
|
+
}, _chunkY5QXDVPPcjs.TICKET_MARK_READ_DEBOUNCE_MS);
|
|
999
999
|
}, [engagementsCount, externalId, markRead]);
|
|
1000
1000
|
const { scrollRef, contentRef } = _usesticktobottom.useStickToBottom.call(void 0, { initial: "instant", resize: "smooth" });
|
|
1001
1001
|
const bodyTurns = ticket.body ? ticket.body.split(TURN_SEPARATOR_RE).map((t) => t.trim()).filter(Boolean) : [];
|
|
@@ -1064,7 +1064,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1064
1064
|
avatarUrl: avatarSrc,
|
|
1065
1065
|
timeLabel: eng.createdAt ? _chunkUNI3POHUcjs.formatRelativeTime.call(void 0, eng.createdAt) : null,
|
|
1066
1066
|
body: stripAttachmentsPreamble(_nullishCoalesce(eng.body, () => ( ""))),
|
|
1067
|
-
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, _chunkUBX3ATG5cjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
|
|
1068
1068
|
},
|
|
1069
1069
|
eng.id
|
|
1070
1070
|
);
|
|
@@ -1177,7 +1177,7 @@ function TicketRow({
|
|
|
1177
1177
|
onActionCollapsed,
|
|
1178
1178
|
id
|
|
1179
1179
|
}) {
|
|
1180
|
-
const optimistic =
|
|
1180
|
+
const optimistic = _chunkY5QXDVPPcjs.isOptimistic.call(void 0, ticket);
|
|
1181
1181
|
const rowRef = _react.useRef.call(void 0, null);
|
|
1182
1182
|
const handleClick = _react.useCallback.call(void 0, () => {
|
|
1183
1183
|
onToggle(ticket.id);
|
|
@@ -1346,11 +1346,11 @@ function TicketCenterAuthed({
|
|
|
1346
1346
|
) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQHFHKUGcjs.Card, { className: "overflow-hidden", children: merged.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1347
1347
|
TicketRow,
|
|
1348
1348
|
{
|
|
1349
|
-
id:
|
|
1349
|
+
id: _chunkUBX3ATG5cjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1350
1350
|
ticket,
|
|
1351
1351
|
expanded: expandedTicketId === ticket.id,
|
|
1352
1352
|
onToggle: toggleRow,
|
|
1353
|
-
busy:
|
|
1353
|
+
busy: _chunkY5QXDVPPcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1354
1354
|
supportSystemDown,
|
|
1355
1355
|
onSendMessage: actions.sendMessage,
|
|
1356
1356
|
onClose: actions.closeTicket,
|
|
@@ -1404,7 +1404,7 @@ function HelpCenterCard({
|
|
|
1404
1404
|
onClearReplyError,
|
|
1405
1405
|
id
|
|
1406
1406
|
}) {
|
|
1407
|
-
const optimistic =
|
|
1407
|
+
const optimistic = _chunkY5QXDVPPcjs.isOptimistic.call(void 0, ticket);
|
|
1408
1408
|
const rawStatus = (_nullishCoalesce(ticket.status, () => ( "OPEN"))).toUpperCase();
|
|
1409
1409
|
const priority = (_nullishCoalesce(ticket.priority, () => ( ""))).toUpperCase();
|
|
1410
1410
|
const relativeUpdated = ticket.hubspot_updated_at ? _chunkUNI3POHUcjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : "recently";
|
|
@@ -1426,7 +1426,7 @@ function HelpCenterCard({
|
|
|
1426
1426
|
});
|
|
1427
1427
|
return () => cancelAnimationFrame(raf);
|
|
1428
1428
|
}, [isExpanded]);
|
|
1429
|
-
const live =
|
|
1429
|
+
const live = _chunkY5QXDVPPcjs.useOptionalTicketLive.call(void 0, );
|
|
1430
1430
|
const unreadCount = !optimistic && ticket.external_id && _optionalChain([live, 'optionalAccess', _64 => _64.unreadByTicket, 'access', _65 => _65[ticket.external_id]]) || 0;
|
|
1431
1431
|
const rightBadges = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1432
1432
|
unreadCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1476,7 +1476,7 @@ function HelpCenterCard({
|
|
|
1476
1476
|
"aria-controls": isExpanded ? `help-center-drawer-${ticket.id}` : void 0,
|
|
1477
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]",
|
|
1478
1478
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1479
|
-
|
|
1479
|
+
_chunkGH4WLDPScjs.DevCardRowContent,
|
|
1480
1480
|
{
|
|
1481
1481
|
title,
|
|
1482
1482
|
subtitle,
|
|
@@ -1577,7 +1577,7 @@ function HelpCenterCreateForm({
|
|
|
1577
1577
|
subjectError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "help-center-subject-error", className: "mt-1 text-ods-error text-h6", children: subjectError })
|
|
1578
1578
|
] });
|
|
1579
1579
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1580
|
-
|
|
1580
|
+
_chunkQ544C4Z7cjs.ContactForm,
|
|
1581
1581
|
{
|
|
1582
1582
|
title: "Open a new ticket",
|
|
1583
1583
|
footerText: "The support team typically responds within one business day.",
|
|
@@ -1619,25 +1619,25 @@ function HelpCenterList({ toast: toast2 = _chunkJJUV7Z4Lcjs.toast, backButton, t
|
|
|
1619
1619
|
const searchParams = _chunkSADRZ4YIcjs.useSearchParams.call(void 0, );
|
|
1620
1620
|
const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
|
|
1621
1621
|
const pathname = _chunkSADRZ4YIcjs.usePathname.call(void 0, );
|
|
1622
|
-
const search = searchParams.get(
|
|
1622
|
+
const search = searchParams.get(_chunkUBX3ATG5cjs.DEV_SECTION_PARAM_KEYS.search) || "";
|
|
1623
1623
|
const status = searchParams.get("status") || "all";
|
|
1624
|
-
const ticketParam = searchParams.get(
|
|
1624
|
+
const ticketParam = searchParams.get(_chunkUBX3ATG5cjs.TICKET_OPEN_PARAM) || "";
|
|
1625
1625
|
const page = _chunkCCWI3622cjs.positiveInt.call(void 0, searchParams.get("page"), 1);
|
|
1626
1626
|
if (identity.isLoading) {
|
|
1627
1627
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1628
|
-
|
|
1628
|
+
_chunkGH4WLDPScjs.DevSectionPage,
|
|
1629
1629
|
{
|
|
1630
1630
|
sectionKey: "tickets",
|
|
1631
1631
|
backButton,
|
|
1632
1632
|
title,
|
|
1633
1633
|
shell,
|
|
1634
1634
|
preControls: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCreateFormSkeleton, {}),
|
|
1635
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1635
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGH4WLDPScjs.DevCardRowSkeletonList, {})
|
|
1636
1636
|
}
|
|
1637
1637
|
);
|
|
1638
1638
|
}
|
|
1639
1639
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _66 => _66.user, 'optionalAccess', _67 => _67.email])) {
|
|
1640
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1640
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGH4WLDPScjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1641
1641
|
_chunk2MMEPNSXcjs.EmptyState,
|
|
1642
1642
|
{
|
|
1643
1643
|
type: "generic",
|
|
@@ -1689,8 +1689,8 @@ function HelpCenterListAuthed({
|
|
|
1689
1689
|
const setOpenTicket = _react.useCallback.call(void 0,
|
|
1690
1690
|
(externalId) => {
|
|
1691
1691
|
const params = new URLSearchParams(searchParams.toString());
|
|
1692
|
-
if (externalId) params.set(
|
|
1693
|
-
else params.delete(
|
|
1692
|
+
if (externalId) params.set(_chunkUBX3ATG5cjs.TICKET_OPEN_PARAM, externalId);
|
|
1693
|
+
else params.delete(_chunkUBX3ATG5cjs.TICKET_OPEN_PARAM);
|
|
1694
1694
|
const qs = params.toString();
|
|
1695
1695
|
router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });
|
|
1696
1696
|
},
|
|
@@ -1767,15 +1767,15 @@ function HelpCenterListAuthed({
|
|
|
1767
1767
|
] }),
|
|
1768
1768
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWRJVEB2Jcjs.Button, { type: "button", variant: "accent", onClick: () => refetch(), children: "Retry" })
|
|
1769
1769
|
] }),
|
|
1770
|
-
!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, _chunkGH4WLDPScjs.DevCardRowSkeletonList, {}) : !hasResults && isFetching ? (
|
|
1771
1771
|
// Bridge state — background refetch in flight and the
|
|
1772
1772
|
// optimistic placeholder was just removed by the mutation
|
|
1773
1773
|
// callback. Without this branch "No tickets yet" would flash
|
|
1774
1774
|
// for ~50ms between `removeOptimistic` and the server
|
|
1775
1775
|
// response landing.
|
|
1776
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1776
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGH4WLDPScjs.DevCardRowSkeletonList, { rows: 1 })
|
|
1777
1777
|
) : !hasResults ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1778
|
-
|
|
1778
|
+
_chunkGH4WLDPScjs.ListEmptyState,
|
|
1779
1779
|
{
|
|
1780
1780
|
isFiltered: hasActiveFilters,
|
|
1781
1781
|
filtered: {
|
|
@@ -1806,11 +1806,11 @@ function HelpCenterListAuthed({
|
|
|
1806
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,
|
|
1807
1807
|
HelpCenterCard,
|
|
1808
1808
|
{
|
|
1809
|
-
id:
|
|
1809
|
+
id: _chunkUBX3ATG5cjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1810
1810
|
ticket,
|
|
1811
1811
|
expanded: expandedTicketId === ticket.id,
|
|
1812
1812
|
onToggle: toggleRow,
|
|
1813
|
-
busy:
|
|
1813
|
+
busy: _chunkY5QXDVPPcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1814
1814
|
supportSystemDown,
|
|
1815
1815
|
onSendMessage: actions.sendMessage,
|
|
1816
1816
|
onClose: actions.closeTicket,
|
|
@@ -1824,7 +1824,7 @@ function HelpCenterListAuthed({
|
|
|
1824
1824
|
) }),
|
|
1825
1825
|
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2MMEPNSXcjs.UnifiedPagination, { currentPage: page, totalPages })
|
|
1826
1826
|
] });
|
|
1827
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1827
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGH4WLDPScjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, preControls: form, children: body });
|
|
1828
1828
|
}
|
|
1829
1829
|
|
|
1830
1830
|
|
|
@@ -1843,4 +1843,4 @@ function HelpCenterListAuthed({
|
|
|
1843
1843
|
|
|
1844
1844
|
|
|
1845
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;
|
|
1846
|
-
//# sourceMappingURL=chunk-
|
|
1846
|
+
//# sourceMappingURL=chunk-SWJ6QLD7.cjs.map
|