@flamingo-stack/openframe-frontend-core 0.0.810 → 0.0.812
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/{case-study-card-MEWJNF4N.cjs → case-study-card-3XLKCGLV.cjs} +7 -7
- package/dist/{chunk-CLMUD56S.cjs → chunk-2IZHRVKD.cjs} +26 -26
- package/dist/{chunk-XYZBN6D7.cjs → chunk-4IU462LR.cjs} +2 -2
- package/dist/{chunk-STLJCAIZ.cjs → chunk-4SZKJPQJ.cjs} +2 -2
- package/dist/{chunk-TOWVMBAP.cjs → chunk-4ZTGCCNI.cjs} +17 -17
- package/dist/{chunk-VXXOUM2K.cjs → chunk-5DBW6ERF.cjs} +4 -0
- package/dist/{chunk-GAHXURKJ.cjs → chunk-5QLDHPPU.cjs} +2 -2
- package/dist/{chunk-PIKHEBG5.cjs → chunk-6LZ4BI7Z.cjs} +52 -52
- package/dist/{chunk-5MTYKS2Q.cjs → chunk-743MM5B6.cjs} +4 -4
- package/dist/{chunk-ZXBRPQND.cjs → chunk-7HNZHENA.cjs} +17 -17
- package/dist/{chunk-4W77VLQV.cjs → chunk-7Q2PFKU3.cjs} +10 -10
- package/dist/{chunk-KVJKKVB3.cjs → chunk-7TBXHZLB.cjs} +9 -9
- package/dist/{chunk-VXAKQRV7.cjs → chunk-APOMNC7H.cjs} +5 -5
- package/dist/{chunk-OJZBZH56.cjs → chunk-CNTBGJA7.cjs} +3 -3
- package/dist/{chunk-TUZV2ZQY.cjs → chunk-COTJLBOS.cjs} +2 -2
- package/dist/{chunk-FLW2VL5W.cjs → chunk-CUDJP7R7.cjs} +24 -24
- package/dist/{chunk-B6DIM5JG.cjs → chunk-D2EPUQ35.cjs} +6 -6
- package/dist/{chunk-MSAXZRXZ.cjs → chunk-D322VUSH.cjs} +622 -621
- package/dist/{chunk-TOTR2WMH.cjs → chunk-DA2TWDGJ.cjs} +8 -8
- package/dist/{chunk-JLKGLPDC.cjs → chunk-E64HJMY6.cjs} +20 -20
- package/dist/{chunk-X2JSCOOR.cjs → chunk-EPMAMFQE.cjs} +100 -100
- package/dist/{chunk-MAQFG62O.cjs → chunk-FCFLZPID.cjs} +36 -36
- package/dist/{chunk-7PNRXJX2.cjs → chunk-FX35L4Y6.cjs} +3 -3
- package/dist/{chunk-5GJM7VRR.cjs → chunk-GI3MMBP3.cjs} +91 -26
- package/dist/{chunk-GG36TCKP.cjs → chunk-JMAKYJ3Q.cjs} +6 -6
- package/dist/{chunk-2C63MX75.cjs → chunk-JMRO7CK2.cjs} +23 -23
- package/dist/{chunk-F26COFTW.cjs → chunk-K7IX2NAG.cjs} +89 -89
- package/dist/{chunk-V4FXUIMH.cjs → chunk-LC65AC6M.cjs} +4 -4
- package/dist/{chunk-AQXKXZWB.cjs → chunk-MG3HJIGG.cjs} +4 -4
- package/dist/{chunk-ETI7OMPU.cjs → chunk-NEDFRRLM.cjs} +71 -71
- package/dist/{chunk-RKNCNL6K.cjs → chunk-OKI5KSUV.cjs} +28 -28
- package/dist/{chunk-3FBXQSSC.cjs → chunk-PQ76VC2P.cjs} +865 -671
- package/dist/{chunk-R2ABQG2T.cjs → chunk-RSLLS6C4.cjs} +53 -53
- package/dist/{chunk-PRCGRDHV.cjs → chunk-SC3I3YWM.cjs} +18 -18
- package/dist/{chunk-NG3RKTQU.cjs → chunk-SFUNXMY3.cjs} +8 -8
- package/dist/{chunk-J4QORJMC.cjs → chunk-TCMUVY3M.cjs} +113 -113
- package/dist/{chunk-ML3DG4SS.cjs → chunk-TS4PKCG3.cjs} +5 -5
- package/dist/{chunk-TGOJHOQR.cjs → chunk-U2MHQBL4.cjs} +3 -3
- package/dist/{chunk-EKDLVUEA.cjs → chunk-VEN6MGNX.cjs} +50 -50
- package/dist/{chunk-FCFYZIOY.cjs → chunk-VPYGK4AV.cjs} +22 -22
- package/dist/{chunk-I3RJLXEL.cjs → chunk-VT2ACO3Z.cjs} +159 -159
- package/dist/{chunk-FRS2VO22.cjs → chunk-VYLBW6ZV.cjs} +41 -41
- package/dist/{chunk-RPBOWCME.cjs → chunk-WFJDKP2Q.cjs} +17 -17
- package/dist/{chunk-CZWQCYKV.cjs → chunk-XB7VPJNY.cjs} +3 -3
- package/dist/{chunk-VHX4A4SA.cjs → chunk-XZKYU57A.cjs} +2 -2
- package/dist/{chunk-SZHDXXMK.cjs → chunk-YSDB6HGQ.cjs} +3 -3
- package/dist/{chunk-TT64NRFU.cjs → chunk-ZFUNSXSH.cjs} +7 -7
- package/dist/{cloud-tenants-QTASS5KP.cjs → cloud-tenants-CW3I7AIM.cjs} +27 -27
- package/dist/components/case-studies/index.cjs +43 -43
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +4 -1
- package/dist/components/chat/index.cjs +21 -21
- package/dist/components/chat/utils/icon-registry.d.ts.map +1 -1
- package/dist/components/chat/utils/icon-registry.js +4 -0
- package/dist/components/contact/index.cjs +28 -28
- package/dist/components/docs/index.cjs +31 -31
- package/dist/components/embeds/index.cjs +28 -28
- package/dist/components/faq/index.cjs +29 -29
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +1 -1
- package/dist/components/features/index.cjs +27 -27
- package/dist/components/help-center-pages/index.cjs +133 -133
- package/dist/components/index.cjs +98 -98
- package/dist/components/meeting-scheduler/index.cjs +143 -97
- package/dist/components/meeting-scheduler/index.d.ts +30 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +43 -3
- package/dist/components/navigation/index.cjs +30 -30
- package/dist/components/onboarding-guides/index.cjs +30 -30
- package/dist/components/product-demo/index.cjs +38 -38
- package/dist/components/related-content/index.cjs +16 -16
- package/dist/components/tickets/index.cjs +34 -34
- package/dist/components/ui/index.cjs +27 -27
- package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
- package/dist/components/ui/markdown/base-components.js +6 -7
- package/dist/components/ui/markdown/engine.d.ts +7 -0
- package/dist/components/ui/markdown/engine.d.ts.map +1 -1
- package/dist/components/ui/markdown/engine.js +12 -3
- package/dist/components/ui/markdown/external-media-notice.d.ts +33 -0
- package/dist/components/ui/markdown/external-media-notice.d.ts.map +1 -0
- package/dist/components/ui/markdown/external-media-notice.js +56 -0
- package/dist/components/ui/markdown/mermaid-diagram.d.ts +24 -2
- package/dist/components/ui/markdown/mermaid-diagram.d.ts.map +1 -1
- package/dist/components/ui/markdown/mermaid-diagram.js +66 -6
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts +4 -4
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts.map +1 -1
- package/dist/components/ui/markdown/rich/rich-markdown-renderer.js +2 -1
- package/dist/components/ui/markdown/sanitize.d.ts +28 -3
- package/dist/components/ui/markdown/sanitize.d.ts.map +1 -1
- package/dist/components/ui/markdown/sanitize.js +84 -12
- package/dist/components/ui/markdown/simple-markdown-renderer.d.ts +3 -2
- package/dist/components/ui/markdown/simple-markdown-renderer.d.ts.map +1 -1
- package/dist/{devices-KPMQI57Y.cjs → devices-KKRAB4Q2.cjs} +28 -28
- package/dist/{embeddable-chat-LB7NDFVQ.cjs → embeddable-chat-5UO66U4F.cjs} +93 -93
- package/dist/hooks/index.cjs +13 -13
- package/dist/index.cjs +33 -33
- package/dist/{knowledge-JWGBY3ZJ.cjs → knowledge-Z2PTGBA3.cjs} +28 -28
- package/dist/{logs-QENTXKWY.cjs → logs-6T5VK2TY.cjs} +35 -35
- package/dist/{policies-2HXFZ2EL.cjs → policies-JPIC5YDE.cjs} +31 -31
- package/dist/{remote-session-LMUFV2RZ.cjs → remote-session-VBVUMIUP.cjs} +12 -12
- package/dist/{scripts-TMXULK6L.cjs → scripts-BSYJJFBQ.cjs} +34 -34
- package/dist/{software-update-H2LAEWDN.cjs → software-update-KVEYYORC.cjs} +31 -31
- package/dist/{tickets-board-QF5JNSH2.cjs → tickets-board-YRZ54JJS.cjs} +16 -16
- package/dist/utils/app-origins.d.ts +41 -0
- package/dist/utils/app-origins.d.ts.map +1 -0
- package/dist/utils/app-origins.js +51 -0
- package/dist/utils/embed-auth-adapter-registry.d.ts +7 -0
- package/dist/utils/embed-auth-adapter-registry.d.ts.map +1 -0
- package/dist/utils/embed-auth-adapter-registry.js +34 -0
- package/dist/utils/embed-authed-fetch.d.ts.map +1 -1
- package/dist/utils/embed-authed-fetch.js +6 -19
- package/dist/utils/index.cjs +32 -12
- package/dist/{video-file-player-2FMFCGXE.cjs → video-file-player-4QMVTOBE.cjs} +3 -3
- package/package.json +1 -1
- package/src/components/chat/entity-cards/dispatch.tsx +12 -1
- package/src/components/chat/utils/icon-registry.ts +4 -0
- package/src/components/features/devices/devices-table-columns.tsx +5 -2
- package/src/components/meeting-scheduler/index.tsx +85 -3
- package/src/components/ui/markdown/base-components.tsx +6 -7
- package/src/components/ui/markdown/engine.tsx +29 -5
- package/src/components/ui/markdown/external-media-notice.tsx +84 -0
- package/src/components/ui/markdown/mermaid-diagram.tsx +107 -5
- package/src/components/ui/markdown/rich/rich-markdown-renderer.tsx +11 -5
- package/src/components/ui/markdown/sanitize.ts +162 -15
- package/src/components/ui/markdown/simple-markdown-renderer.tsx +6 -2
- package/src/utils/app-origins.ts +95 -0
- package/src/utils/embed-auth-adapter-registry.ts +49 -0
- package/src/utils/embed-authed-fetch.ts +7 -35
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkLC65AC6Mcjs = require('./chunk-LC65AC6M.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkGI3MMBP3cjs = require('./chunk-GI3MMBP3.cjs');
|
|
9
9
|
|
|
10
10
|
// src/hooks/ui/use-drag-and-drop-enabled.ts
|
|
11
|
-
var DRAG_AND_DROP_MEDIA_QUERY = `(pointer: fine) and (hover: hover) and ${
|
|
11
|
+
var DRAG_AND_DROP_MEDIA_QUERY = `(pointer: fine) and (hover: hover) and ${_chunkLC65AC6Mcjs.breakpoints.md}`;
|
|
12
12
|
function useDragAndDropEnabled() {
|
|
13
|
-
return _nullishCoalesce(
|
|
13
|
+
return _nullishCoalesce(_chunkLC65AC6Mcjs.useMediaQuery.call(void 0, DRAG_AND_DROP_MEDIA_QUERY), () => ( false));
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
// src/hooks/ui/use-horizontal-scrollbar.ts
|
|
@@ -236,7 +236,7 @@ function useLocalStorage(key, initialValue, options) {
|
|
|
236
236
|
});
|
|
237
237
|
const validate = _optionalChain([options, 'optionalAccess', _ => _.validate]);
|
|
238
238
|
const storage = _react.useMemo.call(void 0,
|
|
239
|
-
() =>
|
|
239
|
+
() => _chunkGI3MMBP3cjs.createLocalStorageAdapter.call(void 0, { key, validate, logTag: `[useLocalStorage:${key}]` }),
|
|
240
240
|
[key, validate]
|
|
241
241
|
);
|
|
242
242
|
const [storedValue, setStoredValue] = _react.useState.call(void 0, () => _nullishCoalesce(storage.load(), () => ( initialValue)));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkLC65AC6Mcjs = require('./chunk-LC65AC6M.cjs');
|
|
5
5
|
|
|
6
6
|
// src/hooks/ui/use-debounce.ts
|
|
7
7
|
var _react = require('react');
|
|
@@ -131,10 +131,10 @@ function useSuppressCloneFocus(active) {
|
|
|
131
131
|
// src/hooks/ui/use-prefers-reduced-motion.ts
|
|
132
132
|
var PREFERS_REDUCED_MOTION_QUERY = "(prefers-reduced-motion: reduce)";
|
|
133
133
|
function usePrefersReducedMotion() {
|
|
134
|
-
return
|
|
134
|
+
return _chunkLC65AC6Mcjs.useMediaQuery.call(void 0, PREFERS_REDUCED_MOTION_QUERY) === true;
|
|
135
135
|
}
|
|
136
136
|
function usePrefersReducedMotionState() {
|
|
137
|
-
return
|
|
137
|
+
return _chunkLC65AC6Mcjs.useMediaQuery.call(void 0, PREFERS_REDUCED_MOTION_QUERY);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
// src/hooks/ui/use-in-view.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkVT2ACO3Zcjs = require('./chunk-VT2ACO3Z.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk4WIJI4AKcjs = require('./chunk-4WIJI4AK.cjs');
|
|
@@ -49,7 +49,7 @@ function PaginationControl({
|
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
51
|
const handleClick = (event) => {
|
|
52
|
-
if (
|
|
52
|
+
if (_chunkVT2ACO3Zcjs.isModifierClick.call(void 0, event)) return;
|
|
53
53
|
event.preventDefault();
|
|
54
54
|
onPageChange(page);
|
|
55
55
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkAPOMNC7Hcjs = require('./chunk-APOMNC7H.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ var _chunkVXAKQRV7cjs = require('./chunk-VXAKQRV7.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkE64HJMY6cjs = require('./chunk-E64HJMY6.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -69,17 +69,17 @@ var _chunkZ7OPT4PNcjs = require('./chunk-Z7OPT4PN.cjs');
|
|
|
69
69
|
var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
var
|
|
72
|
+
var _chunk7Q2PFKU3cjs = require('./chunk-7Q2PFKU3.cjs');
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
var
|
|
76
|
+
var _chunkU2MHQBL4cjs = require('./chunk-U2MHQBL4.cjs');
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
var
|
|
79
|
+
var _chunkLC65AC6Mcjs = require('./chunk-LC65AC6M.cjs');
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
var
|
|
82
|
+
var _chunkYSDB6HGQcjs = require('./chunk-YSDB6HGQ.cjs');
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
|
|
@@ -181,7 +181,7 @@ function BoardColumnHeader({
|
|
|
181
181
|
}) {
|
|
182
182
|
const count = _nullishCoalesce(column.total, () => ( column.tickets.length));
|
|
183
183
|
const tagStatus = _nullishCoalesce(column.statusKey, () => ( column.id));
|
|
184
|
-
const useStatusVariant =
|
|
184
|
+
const useStatusVariant = _chunkE64HJMY6cjs.resolveTicketStatus.call(void 0, tagStatus) !== null;
|
|
185
185
|
const actionClass = "h-8 w-8 p-0 content-md:h-8 content-md:w-8";
|
|
186
186
|
if (collapsed) {
|
|
187
187
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full flex-col items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
@@ -197,7 +197,7 @@ function BoardColumnHeader({
|
|
|
197
197
|
}
|
|
198
198
|
),
|
|
199
199
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
200
|
-
|
|
200
|
+
_chunkE64HJMY6cjs.TicketStatusTag,
|
|
201
201
|
{
|
|
202
202
|
status: tagStatus,
|
|
203
203
|
label: column.label,
|
|
@@ -210,7 +210,7 @@ function BoardColumnHeader({
|
|
|
210
210
|
}
|
|
211
211
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
212
212
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
213
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
213
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.TicketStatusTag, { status: tagStatus, label: column.label, color: useStatusVariant ? void 0 : column.color }),
|
|
214
214
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h5", style: useStatusVariant ? void 0 : { color: column.color }, children: count })
|
|
215
215
|
] }),
|
|
216
216
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
@@ -268,7 +268,7 @@ function tintOnDark(hex) {
|
|
|
268
268
|
|
|
269
269
|
function BoardTicketApproval({ pendingApproval, onApprove, onReject }) {
|
|
270
270
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
271
|
-
const { innerRef, containerStyle } =
|
|
271
|
+
const { innerRef, containerStyle } = _chunkE64HJMY6cjs.useCollapsible.call(void 0, { expanded });
|
|
272
272
|
const isAdmin = pendingApproval.approvalType === "ADMIN";
|
|
273
273
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "pointer-events-auto flex flex-col", children: [
|
|
274
274
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "row", type: "button", onClick: () => setExpanded((v) => !v), "aria-expanded": expanded, children: [
|
|
@@ -288,7 +288,7 @@ function BoardTicketApproval({ pendingApproval, onApprove, onReject }) {
|
|
|
288
288
|
expanded ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3MRRIHC2cjs.Chevron02UpIcon, { className: "size-4 shrink-0 text-ods-text-secondary" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSKI6NKOEcjs.Chevron02DownIcon, { className: "size-4 shrink-0 text-ods-text-secondary" })
|
|
289
289
|
] }),
|
|
290
290
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, className: "pt-[var(--spacing-system-xs)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
291
|
-
|
|
291
|
+
_chunkE64HJMY6cjs.ApprovalBatchMessage,
|
|
292
292
|
{
|
|
293
293
|
className: "mb-0",
|
|
294
294
|
data: {
|
|
@@ -357,7 +357,7 @@ function cardPositions(root) {
|
|
|
357
357
|
}
|
|
358
358
|
function useLaneScrollAnchor(scrollRef, tickets) {
|
|
359
359
|
const positionsRef = _react.useRef.call(void 0, []);
|
|
360
|
-
|
|
360
|
+
_chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
361
361
|
const root = scrollRef.current;
|
|
362
362
|
if (!root) return;
|
|
363
363
|
const previous = positionsRef.current;
|
|
@@ -463,7 +463,7 @@ function TicketCardBody({
|
|
|
463
463
|
onLinkClick
|
|
464
464
|
}) {
|
|
465
465
|
const showNewMessage = !!ticket.hasNewMessage && !!columnColor;
|
|
466
|
-
const newMessageTextColor = columnColor ?
|
|
466
|
+
const newMessageTextColor = columnColor ? _chunk7Q2PFKU3cjs.getReadableTextColor.call(void 0, columnColor) : void 0;
|
|
467
467
|
const showDeviceRow = !!(_optionalChain([ticket, 'access', _11 => _11.deviceHostnames, 'optionalAccess', _12 => _12.length]) || ticket.organizationName);
|
|
468
468
|
const deviceText = [_optionalChain([ticket, 'access', _13 => _13.deviceHostnames, 'optionalAccess', _14 => _14.join, 'call', _15 => _15(", ")]), ticket.organizationName].filter(Boolean).join(", ");
|
|
469
469
|
const hasRightSection = !!(ticket.priority || ticket.agent || _optionalChain([ticket, 'access', _16 => _16.assignees, 'optionalAccess', _17 => _17.length]) || renderAssignSlot);
|
|
@@ -481,7 +481,7 @@ function TicketCardBody({
|
|
|
481
481
|
role: "img",
|
|
482
482
|
"aria-label": `Owned by ${ticket.agent === "fae" ? "Fae" : "Mingo"}`,
|
|
483
483
|
className: "flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full border border-ods-border bg-ods-bg",
|
|
484
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
484
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE64HJMY6cjs.AgentMark, { agent: ticket.agent, className: ticket.agent === "fae" ? "size-full" : "size-5" })
|
|
485
485
|
}
|
|
486
486
|
),
|
|
487
487
|
renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access', _18 => _18.assignees, 'optionalAccess', _19 => _19.length]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex -space-x-2", children: [
|
|
@@ -494,7 +494,7 @@ function TicketCardBody({
|
|
|
494
494
|
},
|
|
495
495
|
a.id
|
|
496
496
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
497
|
-
|
|
497
|
+
_chunkU2MHQBL4cjs.SquareAvatar,
|
|
498
498
|
{
|
|
499
499
|
src: a.avatarUrl,
|
|
500
500
|
alt: _nullishCoalesce(_nullishCoalesce(a.name, () => ( a.initials)), () => ( a.id)),
|
|
@@ -511,8 +511,8 @@ function TicketCardBody({
|
|
|
511
511
|
] })
|
|
512
512
|
] }) : null
|
|
513
513
|
] }) : null;
|
|
514
|
-
const timestampLabel = ticket.createdAt ?
|
|
515
|
-
const tooltipLabel = ticket.createdAt ?
|
|
514
|
+
const timestampLabel = ticket.createdAt ? _chunkE64HJMY6cjs.formatTicketRelativeTime.call(void 0, ticket.createdAt) : null;
|
|
515
|
+
const tooltipLabel = ticket.createdAt ? _chunkE64HJMY6cjs.formatTicketFullTimestamp.call(void 0, ticket.createdAt) : null;
|
|
516
516
|
const metaLabel = [ticket.ticketNumber || null, timestampLabel].filter(Boolean).join(" \u2022 ");
|
|
517
517
|
const meta = href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
518
518
|
_chunkV45KLJQPcjs.next_link_default,
|
|
@@ -560,7 +560,7 @@ function TicketCardBody({
|
|
|
560
560
|
}
|
|
561
561
|
),
|
|
562
562
|
showNewMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
563
|
-
|
|
563
|
+
_chunkU2MHQBL4cjs.Tag,
|
|
564
564
|
{
|
|
565
565
|
label: "New Message",
|
|
566
566
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJSIUVERGcjs.MessagesIcon, { size: 16, color: newMessageTextColor }),
|
|
@@ -788,8 +788,8 @@ function TicketTagRow({ tags }) {
|
|
|
788
788
|
const visible = tags.slice(0, MAX_VISIBLE_TAGS);
|
|
789
789
|
const hidden = tags.length - visible.length;
|
|
790
790
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-8 flex-wrap items-start gap-[var(--spacing-system-xxs)] overflow-clip", children: [
|
|
791
|
-
visible.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
792
|
-
hidden > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
791
|
+
visible.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { variant: "outline", label: tag }, tag)),
|
|
792
|
+
hidden > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU2MHQBL4cjs.Tag, { variant: "outline", label: `+${hidden}` })
|
|
793
793
|
] });
|
|
794
794
|
}
|
|
795
795
|
function TicketCardSkeleton({ className, ...props }) {
|
|
@@ -1119,7 +1119,7 @@ function EmptyState({ columnId, touchMode }) {
|
|
|
1119
1119
|
// src/components/features/board/use-board-collapse.ts
|
|
1120
1120
|
|
|
1121
1121
|
function useBoardCollapse(storageKey, initial) {
|
|
1122
|
-
const [persisted, setPersisted] =
|
|
1122
|
+
const [persisted, setPersisted] = _chunkAPOMNC7Hcjs.useLocalStorage.call(void 0, _nullishCoalesce(storageKey, () => ( "__board_collapse_unused__")), {});
|
|
1123
1123
|
const [memory, setMemory] = _react.useState.call(void 0, _nullishCoalesce(initial, () => ( {})));
|
|
1124
1124
|
const collapsed = storageKey ? persisted : memory;
|
|
1125
1125
|
const setMap = storageKey ? setPersisted : setMemory;
|
|
@@ -1261,7 +1261,7 @@ var DROP_EASING = "cubic-bezier(0.2, 0, 0, 1)";
|
|
|
1261
1261
|
var DRAG_PREVIEW_Z = 1200;
|
|
1262
1262
|
var ARROW_KEYS = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"];
|
|
1263
1263
|
function Board(props) {
|
|
1264
|
-
const dragAndDropEnabled =
|
|
1264
|
+
const dragAndDropEnabled = _chunkLC65AC6Mcjs.useMediaQuery.call(void 0, _chunkAPOMNC7Hcjs.DRAG_AND_DROP_MEDIA_QUERY);
|
|
1265
1265
|
if (dragAndDropEnabled === void 0) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BoardShell, { ...props });
|
|
1266
1266
|
return dragAndDropEnabled ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DragBoard, { ...props }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TouchBoard, { ...props });
|
|
1267
1267
|
}
|
|
@@ -1308,7 +1308,7 @@ function DragBoard({
|
|
|
1308
1308
|
onThumbPointerMove,
|
|
1309
1309
|
onThumbPointerUp,
|
|
1310
1310
|
onThumbPointerCancel
|
|
1311
|
-
} =
|
|
1311
|
+
} = _chunkAPOMNC7Hcjs.useHorizontalScrollbar.call(void 0, );
|
|
1312
1312
|
const columnsRef = _react.useRef.call(void 0, columns);
|
|
1313
1313
|
const onChangeRef = _react.useRef.call(void 0, onChange);
|
|
1314
1314
|
const boardRef = _react.useRef.call(void 0, null);
|
|
@@ -1497,7 +1497,7 @@ function DragBoard({
|
|
|
1497
1497
|
})
|
|
1498
1498
|
);
|
|
1499
1499
|
}, []);
|
|
1500
|
-
|
|
1500
|
+
_chunkYSDB6HGQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
1501
1501
|
if (!landing) return void 0;
|
|
1502
1502
|
const finish = () => {
|
|
1503
1503
|
landingTimer.current = null;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkTCMUVY3Mcjs = require('./chunk-TCMUVY3M.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPQ76VC2Pcjs = require('./chunk-PQ76VC2P.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkGI3MMBP3cjs = require('./chunk-GI3MMBP3.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -44,7 +44,7 @@ function isSummaryData(value) {
|
|
|
44
44
|
}
|
|
45
45
|
function TicketLiveProvider({ children, enabled = true }) {
|
|
46
46
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
47
|
-
const identity =
|
|
47
|
+
const identity = _chunkPQ76VC2Pcjs.useChatIdentity.call(void 0, enabled);
|
|
48
48
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
49
49
|
const streamUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _ => _.endpoints, 'access', _2 => _2.ticketStreamUrl]), () => ( TICKET_STREAM_ENDPOINT));
|
|
50
50
|
const readUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _3 => _3.endpoints, 'access', _4 => _4.ticketReadUrl]), () => ( TICKET_READ_ENDPOINT));
|
|
@@ -160,7 +160,7 @@ function TicketLiveProvider({ children, enabled = true }) {
|
|
|
160
160
|
_react2.default.useEffect(() => {
|
|
161
161
|
if (!streamEnabled) return void 0;
|
|
162
162
|
if (typeof window === "undefined") return void 0;
|
|
163
|
-
subscriptionRef.current =
|
|
163
|
+
subscriptionRef.current = _chunkTCMUVY3Mcjs.createSseSubscription.call(void 0, {
|
|
164
164
|
url: streamUrl,
|
|
165
165
|
onEvent: (name, data) => handlersRef.current.onEvent(name, data),
|
|
166
166
|
onStatusChange: (status) => handlersRef.current.onStatus(status),
|
|
@@ -191,7 +191,7 @@ function TicketLiveProvider({ children, enabled = true }) {
|
|
|
191
191
|
const markRead = _react2.default.useCallback(
|
|
192
192
|
async (ticketExternalId) => {
|
|
193
193
|
try {
|
|
194
|
-
const response = await
|
|
194
|
+
const response = await _chunkGI3MMBP3cjs.embedAuthedFetch.call(void 0, readUrl, {
|
|
195
195
|
method: "POST",
|
|
196
196
|
body: JSON.stringify({ ticket_id: ticketExternalId })
|
|
197
197
|
});
|