@flamingo-stack/openframe-frontend-core 0.0.776 → 0.0.780
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-WXMWYGSW.cjs +25 -0
- package/dist/{chunk-2MF547RG.cjs → chunk-2JO5HNEF.cjs} +28 -26
- package/dist/{chunk-DDXQGTWB.cjs → chunk-2W3VDE4D.cjs} +5 -5
- package/dist/{chunk-R3JX4MXD.cjs → chunk-3ZLPYEL5.cjs} +10 -10
- package/dist/{chunk-3V27UHSH.cjs → chunk-4BBOHZM3.cjs} +17 -17
- package/dist/{chunk-XT5WEHFM.cjs → chunk-4NRVV3KO.cjs} +3 -3
- package/dist/{chunk-DGFDBPO7.cjs → chunk-5GJM7VRR.cjs} +1 -94
- package/dist/{chunk-E64HPPRH.cjs → chunk-5PK22JP7.cjs} +50 -50
- package/dist/{chunk-57B5RUYD.cjs → chunk-64KBI5MI.cjs} +2 -2
- package/dist/{chunk-ASMNNSUQ.cjs → chunk-7PNRXJX2.cjs} +3 -3
- package/dist/{chunk-OTZQP53Y.cjs → chunk-AQXEM7GI.cjs} +8 -8
- package/dist/{chunk-VFZFCRAL.cjs → chunk-AQXKXZWB.cjs} +4 -4
- package/dist/{chunk-VFUMM6JC.cjs → chunk-BEMGJDXI.cjs} +2 -2
- package/dist/{chunk-HY6BCZH7.cjs → chunk-BNUZKBNV.cjs} +3 -3
- package/dist/{chunk-2YB4X5WT.cjs → chunk-DQALLDTZ.cjs} +6 -6
- package/dist/{chunk-MWH5ZTMB.cjs → chunk-F3BASIMT.cjs} +97 -95
- package/dist/{chunk-Z5KX56TK.cjs → chunk-HUPDPANN.cjs} +4 -4
- package/dist/{chunk-2AZAJ7RK.cjs → chunk-I4IC3BRC.cjs} +53 -53
- package/dist/{chunk-BDYI6HBT.cjs → chunk-IE3QCYBT.cjs} +18 -16
- package/dist/{chunk-UM6HFGTI.cjs → chunk-ILRQXZBA.cjs} +53 -51
- package/dist/{chunk-CZIMISAR.cjs → chunk-JB2SEF6Q.cjs} +7 -7
- package/dist/{chunk-AMVI5VXM.cjs → chunk-KA3VQ6X2.cjs} +91 -89
- package/dist/{chunk-LJT2KRE2.cjs → chunk-KLTUTZBO.cjs} +24 -24
- package/dist/{chunk-EHJE3UWZ.cjs → chunk-LBGAHB6X.cjs} +20 -20
- package/dist/{chunk-LNCBN4BL.cjs → chunk-MLX6Z7TU.cjs} +2 -2
- package/dist/chunk-OH5LAH3X.cjs +1456 -0
- package/dist/{chunk-XXJL5GY3.cjs → chunk-OJZBZH56.cjs} +3 -3
- package/dist/{chunk-IXZNBDXT.cjs → chunk-OMHQZXCD.cjs} +28 -28
- package/dist/{chunk-KM2TVQCH.cjs → chunk-OWQVDWTK.cjs} +259 -247
- package/dist/{chunk-YFTQ2ALU.cjs → chunk-PQBGSVZE.cjs} +116 -82
- package/dist/{chunk-OJLZ7PGO.cjs → chunk-QEFDGI3Z.cjs} +37 -35
- package/dist/{chunk-6HY2NH7D.cjs → chunk-QIQYD75I.cjs} +2 -2
- package/dist/{chunk-RB7VLVMD.cjs → chunk-R6BKQKIF.cjs} +9 -7
- package/dist/{chunk-V3W56L2D.cjs → chunk-SIDDZZKL.cjs} +38 -38
- package/dist/chunk-SZHDXXMK.cjs +102 -0
- package/dist/{chunk-5P4TDV7V.cjs → chunk-TUAATMUE.cjs} +5 -93
- package/dist/{chunk-F65RSJVV.cjs → chunk-TVDQMG7I.cjs} +23 -21
- package/dist/{chunk-XN6LXMH5.cjs → chunk-UPAE4IV5.cjs} +595 -591
- package/dist/chunk-V4FXUIMH.cjs +92 -0
- package/dist/{chunk-2JRSYWFP.cjs → chunk-VXAKQRV7.cjs} +5 -5
- package/dist/{chunk-L55XLH5A.cjs → chunk-WR7KJML6.cjs} +33 -31
- package/dist/{chunk-5QP3K2CE.cjs → chunk-XEYL6AFZ.cjs} +9 -9
- package/dist/{chunk-MYHS4W2H.cjs → chunk-YG72MEHY.cjs} +213 -1647
- package/dist/{chunk-WAQPW4CB.cjs → chunk-YNECNYQF.cjs} +6 -6
- package/dist/{chunk-NWZSYG4S.cjs → chunk-YWQ3VXPL.cjs} +114 -112
- package/dist/{chunk-24OYQQZC.cjs → chunk-ZGWS3NJR.cjs} +22 -22
- package/dist/{cloud-tenants-QFE6QMR5.cjs → cloud-tenants-2ZLGCSGK.cjs} +27 -24
- package/dist/components/case-studies/index.cjs +45 -41
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +8 -4
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/chat-message-list.js +2 -0
- package/dist/components/chat/index.cjs +21 -17
- package/dist/components/chat/types/component.types.d.ts +9 -0
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +28 -25
- package/dist/components/docs/index.cjs +31 -28
- package/dist/components/embeds/index.cjs +28 -25
- package/dist/components/faq/index.cjs +29 -26
- package/dist/components/features/index.cjs +28 -24
- package/dist/components/features/video-hover-preview.d.ts.map +1 -1
- package/dist/components/features/video-hover-preview.js +2 -5
- package/dist/components/features/video.d.ts.map +1 -1
- package/dist/components/features/video.js +1 -44
- package/dist/components/help-center-pages/index.cjs +131 -127
- package/dist/components/index.cjs +94 -90
- package/dist/components/meeting-scheduler/index.cjs +95 -92
- package/dist/components/navigation/index.cjs +30 -27
- package/dist/components/navigation/nav-panel.d.ts.map +1 -1
- package/dist/components/navigation/nav-panel.js +47 -13
- package/dist/components/onboarding-guides/index.cjs +30 -27
- package/dist/components/product-demo/index.cjs +38 -35
- package/dist/components/related-content/index.cjs +15 -12
- package/dist/components/tickets/index.cjs +33 -30
- package/dist/components/ui/index.cjs +28 -24
- package/dist/{devices-SFJDLXSW.cjs → devices-UOBQFPV3.cjs} +28 -25
- package/dist/{embeddable-chat-XZUWAK4W.cjs → embeddable-chat-SFQWRUIV.cjs} +99 -95
- package/dist/hooks/index.cjs +12 -10
- package/dist/index.cjs +36 -30
- package/dist/{knowledge-SAK3ZGCO.cjs → knowledge-5K3LTHGB.cjs} +28 -25
- package/dist/{logs-CYBGMFA5.cjs → logs-WU3N6ESS.cjs} +35 -32
- package/dist/{policies-XXDOICWF.cjs → policies-2IYASCQO.cjs} +31 -28
- package/dist/{remote-session-TC3BZDBZ.cjs → remote-session-TGM2OTTV.cjs} +12 -10
- package/dist/{scripts-C5T2AQPA.cjs → scripts-IQBKOQEY.cjs} +34 -31
- package/dist/{software-update-XU5AI4TP.cjs → software-update-GJLDO5X5.cjs} +31 -28
- package/dist/{tickets-board-YT25IX3O.cjs → tickets-board-FB5AGLJD.cjs} +16 -14
- package/dist/{video-file-player-6ZFOZFER.cjs → video-file-player-SIJW5UWU.cjs} +3 -2
- package/package.json +1 -1
- package/src/components/chat/chat-message-enhanced.tsx +13 -4
- package/src/components/chat/chat-message-list.tsx +2 -0
- package/src/components/chat/types/component.types.ts +9 -0
- package/src/components/features/video-hover-preview.tsx +37 -46
- package/src/components/features/video.tsx +1 -61
- package/src/components/navigation/nav-panel.tsx +74 -14
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkVXAKQRV7cjs = require('./chunk-VXAKQRV7.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ var _chunk2JRSYWFPcjs = require('./chunk-2JRSYWFP.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkLBGAHB6Xcjs = require('./chunk-LBGAHB6X.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 _chunk3ZLPYEL5cjs = require('./chunk-3ZLPYEL5.cjs');
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
var
|
|
76
|
+
var _chunkBNUZKBNVcjs = require('./chunk-BNUZKBNV.cjs');
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
var
|
|
79
|
+
var _chunkV4FXUIMHcjs = require('./chunk-V4FXUIMH.cjs');
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
var
|
|
82
|
+
var _chunkSZHDXXMKcjs = require('./chunk-SZHDXXMK.cjs');
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
var _chunkXFRBEXQNcjs = require('./chunk-XFRBEXQN.cjs');
|
|
@@ -177,7 +177,7 @@ function BoardColumnHeader({
|
|
|
177
177
|
}) {
|
|
178
178
|
const count = _nullishCoalesce(column.total, () => ( column.tickets.length));
|
|
179
179
|
const tagStatus = _nullishCoalesce(column.statusKey, () => ( column.id));
|
|
180
|
-
const useStatusVariant =
|
|
180
|
+
const useStatusVariant = _chunkLBGAHB6Xcjs.resolveTicketStatus.call(void 0, tagStatus) !== null;
|
|
181
181
|
const actionClass = "h-8 w-8 p-0 content-md:h-8 content-md:w-8";
|
|
182
182
|
if (collapsed) {
|
|
183
183
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full flex-col items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
@@ -193,7 +193,7 @@ function BoardColumnHeader({
|
|
|
193
193
|
}
|
|
194
194
|
),
|
|
195
195
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
196
|
-
|
|
196
|
+
_chunkLBGAHB6Xcjs.TicketStatusTag,
|
|
197
197
|
{
|
|
198
198
|
status: tagStatus,
|
|
199
199
|
label: column.label,
|
|
@@ -206,7 +206,7 @@ function BoardColumnHeader({
|
|
|
206
206
|
}
|
|
207
207
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
208
208
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
209
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
209
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBGAHB6Xcjs.TicketStatusTag, { status: tagStatus, label: column.label, color: useStatusVariant ? void 0 : column.color }),
|
|
210
210
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h5", style: useStatusVariant ? void 0 : { color: column.color }, children: count })
|
|
211
211
|
] }),
|
|
212
212
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
@@ -264,7 +264,7 @@ function tintOnDark(hex) {
|
|
|
264
264
|
|
|
265
265
|
function BoardTicketApproval({ pendingApproval, onApprove, onReject }) {
|
|
266
266
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
267
|
-
const { innerRef, containerStyle } =
|
|
267
|
+
const { innerRef, containerStyle } = _chunkLBGAHB6Xcjs.useCollapsible.call(void 0, { expanded });
|
|
268
268
|
const isAdmin = pendingApproval.approvalType === "ADMIN";
|
|
269
269
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "pointer-events-auto flex flex-col", children: [
|
|
270
270
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -293,7 +293,7 @@ function BoardTicketApproval({ pendingApproval, onApprove, onReject }) {
|
|
|
293
293
|
}
|
|
294
294
|
),
|
|
295
295
|
/* @__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,
|
|
296
|
-
|
|
296
|
+
_chunkLBGAHB6Xcjs.ApprovalBatchMessage,
|
|
297
297
|
{
|
|
298
298
|
className: "mb-0",
|
|
299
299
|
data: {
|
|
@@ -362,7 +362,7 @@ function cardPositions(root) {
|
|
|
362
362
|
}
|
|
363
363
|
function useLaneScrollAnchor(scrollRef, tickets) {
|
|
364
364
|
const positionsRef = _react.useRef.call(void 0, []);
|
|
365
|
-
|
|
365
|
+
_chunkSZHDXXMKcjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
366
366
|
const root = scrollRef.current;
|
|
367
367
|
if (!root) return;
|
|
368
368
|
const previous = positionsRef.current;
|
|
@@ -467,7 +467,7 @@ function TicketCardBody({
|
|
|
467
467
|
onLinkClick
|
|
468
468
|
}) {
|
|
469
469
|
const showNewMessage = !!ticket.hasNewMessage && !!columnColor;
|
|
470
|
-
const newMessageTextColor = columnColor ?
|
|
470
|
+
const newMessageTextColor = columnColor ? _chunk3ZLPYEL5cjs.getReadableTextColor.call(void 0, columnColor) : void 0;
|
|
471
471
|
const showDeviceRow = !!(_optionalChain([ticket, 'access', _12 => _12.deviceHostnames, 'optionalAccess', _13 => _13.length]) || ticket.organizationName);
|
|
472
472
|
const deviceText = [_optionalChain([ticket, 'access', _14 => _14.deviceHostnames, 'optionalAccess', _15 => _15.join, 'call', _16 => _16(", ")]), ticket.organizationName].filter(Boolean).join(", ");
|
|
473
473
|
const hasRightSection = !!(ticket.priority || ticket.agent || _optionalChain([ticket, 'access', _17 => _17.assignees, 'optionalAccess', _18 => _18.length]) || renderAssignSlot);
|
|
@@ -485,7 +485,7 @@ function TicketCardBody({
|
|
|
485
485
|
role: "img",
|
|
486
486
|
"aria-label": `Owned by ${ticket.agent === "fae" ? "Fae" : "Mingo"}`,
|
|
487
487
|
className: "flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full border border-ods-border bg-ods-bg",
|
|
488
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
488
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBGAHB6Xcjs.AgentMark, { agent: ticket.agent, className: ticket.agent === "fae" ? "size-full" : "size-5" })
|
|
489
489
|
}
|
|
490
490
|
),
|
|
491
491
|
renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access', _19 => _19.assignees, 'optionalAccess', _20 => _20.length]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex -space-x-2", children: [
|
|
@@ -498,7 +498,7 @@ function TicketCardBody({
|
|
|
498
498
|
},
|
|
499
499
|
a.id
|
|
500
500
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
501
|
-
|
|
501
|
+
_chunkBNUZKBNVcjs.SquareAvatar,
|
|
502
502
|
{
|
|
503
503
|
src: a.avatarUrl,
|
|
504
504
|
alt: _nullishCoalesce(_nullishCoalesce(a.name, () => ( a.initials)), () => ( a.id)),
|
|
@@ -515,8 +515,8 @@ function TicketCardBody({
|
|
|
515
515
|
] })
|
|
516
516
|
] }) : null
|
|
517
517
|
] }) : null;
|
|
518
|
-
const timestampLabel = ticket.createdAt ?
|
|
519
|
-
const tooltipLabel = ticket.createdAt ?
|
|
518
|
+
const timestampLabel = ticket.createdAt ? _chunkLBGAHB6Xcjs.formatTicketRelativeTime.call(void 0, ticket.createdAt) : null;
|
|
519
|
+
const tooltipLabel = ticket.createdAt ? _chunkLBGAHB6Xcjs.formatTicketFullTimestamp.call(void 0, ticket.createdAt) : null;
|
|
520
520
|
const metaLabel = [ticket.ticketNumber || null, timestampLabel].filter(Boolean).join(" \u2022 ");
|
|
521
521
|
const metaClass = "truncate text-ods-text-secondary text-h6";
|
|
522
522
|
const meta = href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -565,7 +565,7 @@ function TicketCardBody({
|
|
|
565
565
|
}
|
|
566
566
|
),
|
|
567
567
|
showNewMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
568
|
-
|
|
568
|
+
_chunkBNUZKBNVcjs.Tag,
|
|
569
569
|
{
|
|
570
570
|
label: "New Message",
|
|
571
571
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJSIUVERGcjs.MessagesIcon, { size: 16, color: newMessageTextColor }),
|
|
@@ -785,8 +785,8 @@ function TicketTagRow({ tags }) {
|
|
|
785
785
|
const visible = tags.slice(0, MAX_VISIBLE_TAGS);
|
|
786
786
|
const hidden = tags.length - visible.length;
|
|
787
787
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-8 flex-wrap items-start gap-[var(--spacing-system-xxs)] overflow-clip", children: [
|
|
788
|
-
visible.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
789
|
-
hidden > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
788
|
+
visible.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBNUZKBNVcjs.Tag, { variant: "outline", label: tag }, tag)),
|
|
789
|
+
hidden > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBNUZKBNVcjs.Tag, { variant: "outline", label: `+${hidden}` })
|
|
790
790
|
] });
|
|
791
791
|
}
|
|
792
792
|
|
|
@@ -1077,7 +1077,7 @@ function EmptyState({ columnId, touchMode }) {
|
|
|
1077
1077
|
// src/components/features/board/use-board-collapse.ts
|
|
1078
1078
|
|
|
1079
1079
|
function useBoardCollapse(storageKey, initial) {
|
|
1080
|
-
const [persisted, setPersisted] =
|
|
1080
|
+
const [persisted, setPersisted] = _chunkVXAKQRV7cjs.useLocalStorage.call(void 0, _nullishCoalesce(storageKey, () => ( "__board_collapse_unused__")), {});
|
|
1081
1081
|
const [memory, setMemory] = _react.useState.call(void 0, _nullishCoalesce(initial, () => ( {})));
|
|
1082
1082
|
const collapsed = storageKey ? persisted : memory;
|
|
1083
1083
|
const setMap = storageKey ? setPersisted : setMemory;
|
|
@@ -1219,7 +1219,7 @@ var DROP_EASING = "cubic-bezier(0.2, 0, 0, 1)";
|
|
|
1219
1219
|
var DRAG_PREVIEW_Z = 1200;
|
|
1220
1220
|
var ARROW_KEYS = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"];
|
|
1221
1221
|
function Board(props) {
|
|
1222
|
-
const dragAndDropEnabled =
|
|
1222
|
+
const dragAndDropEnabled = _chunkV4FXUIMHcjs.useMediaQuery.call(void 0, _chunkVXAKQRV7cjs.DRAG_AND_DROP_MEDIA_QUERY);
|
|
1223
1223
|
if (dragAndDropEnabled === void 0) {
|
|
1224
1224
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: _chunk65VVJSQZcjs.cn.call(void 0, "flex h-full min-h-0 flex-col", props.className) });
|
|
1225
1225
|
}
|
|
@@ -1253,7 +1253,7 @@ function DragBoard({
|
|
|
1253
1253
|
onThumbPointerMove,
|
|
1254
1254
|
onThumbPointerUp,
|
|
1255
1255
|
onThumbPointerCancel
|
|
1256
|
-
} =
|
|
1256
|
+
} = _chunkVXAKQRV7cjs.useHorizontalScrollbar.call(void 0, );
|
|
1257
1257
|
const columnsRef = _react.useRef.call(void 0, columns);
|
|
1258
1258
|
const onChangeRef = _react.useRef.call(void 0, onChange);
|
|
1259
1259
|
const boardRef = _react.useRef.call(void 0, null);
|
|
@@ -1442,7 +1442,7 @@ function DragBoard({
|
|
|
1442
1442
|
})
|
|
1443
1443
|
);
|
|
1444
1444
|
}, []);
|
|
1445
|
-
|
|
1445
|
+
_chunkSZHDXXMKcjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
1446
1446
|
if (!landing) return void 0;
|
|
1447
1447
|
const finish = () => {
|
|
1448
1448
|
landingTimer.current = null;
|
|
@@ -14,7 +14,7 @@ var _chunkC7GIHB3Vcjs = require('./chunk-C7GIHB3V.cjs');
|
|
|
14
14
|
var _chunkHFNBMV5Mcjs = require('./chunk-HFNBMV5M.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk64KBI5MIcjs = require('./chunk-64KBI5MI.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
@@ -25,19 +25,19 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk3ZLPYEL5cjs = require('./chunk-3ZLPYEL5.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkBNUZKBNVcjs = require('./chunk-BNUZKBNV.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkTUAATMUEcjs = require('./chunk-TUAATMUE.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunkE76ONBKFcjs = require('./chunk-E76ONBKF.cjs');
|
|
@@ -70,12 +70,12 @@ function formatTicketRelativeTime(iso) {
|
|
|
70
70
|
if (diffMin < 60) return `${diffMin} min ago`;
|
|
71
71
|
const diffHours = Math.floor(diffMin / 60);
|
|
72
72
|
if (diffHours < 24) return diffHours === 1 ? "1 hour ago" : `${diffHours} hours ago`;
|
|
73
|
-
return
|
|
73
|
+
return _chunkBNUZKBNVcjs.formatDateWithTimezone.call(void 0, date, _chunkBNUZKBNVcjs.VIEWER_TIMEZONE, "numeric", { viewerLocale: true });
|
|
74
74
|
}
|
|
75
75
|
function formatTicketFullTimestamp(iso) {
|
|
76
|
-
return
|
|
76
|
+
return _chunkBNUZKBNVcjs.formatDateWithTimezone.call(void 0,
|
|
77
77
|
iso,
|
|
78
|
-
|
|
78
|
+
_chunkBNUZKBNVcjs.VIEWER_TIMEZONE,
|
|
79
79
|
{ year: "numeric", month: "2-digit", day: "2-digit", hour: "numeric", minute: "2-digit" },
|
|
80
80
|
{ viewerLocale: true }
|
|
81
81
|
);
|
|
@@ -104,7 +104,7 @@ function formatRelativeTimeFrom(timestamp, now) {
|
|
|
104
104
|
const weeks = Math.floor(diffInDays / 7);
|
|
105
105
|
return `${weeks}w ago`;
|
|
106
106
|
}
|
|
107
|
-
return
|
|
107
|
+
return _chunkBNUZKBNVcjs.formatDateWithTimezone.call(void 0, targetTime, null, {
|
|
108
108
|
month: "short",
|
|
109
109
|
day: "numeric",
|
|
110
110
|
year: targetTime.getUTCFullYear() !== now.getUTCFullYear() ? "numeric" : void 0
|
|
@@ -116,7 +116,7 @@ function formatAbsoluteDate(timestamp, options = {}) {
|
|
|
116
116
|
console.warn("\u26A0\uFE0F Invalid timestamp in formatAbsoluteDate:", timestamp);
|
|
117
117
|
return "Invalid date";
|
|
118
118
|
}
|
|
119
|
-
return
|
|
119
|
+
return _chunkBNUZKBNVcjs.formatDateWithTimezone.call(void 0, targetTime, _nullishCoalesce(options.timeZone, () => ( null)), {
|
|
120
120
|
year: "numeric",
|
|
121
121
|
month: "short",
|
|
122
122
|
day: "numeric",
|
|
@@ -129,7 +129,7 @@ function formatDateTime(timestamp, options = {}) {
|
|
|
129
129
|
console.warn("\u26A0\uFE0F Invalid timestamp in formatDateTime:", timestamp);
|
|
130
130
|
return "Invalid date";
|
|
131
131
|
}
|
|
132
|
-
return
|
|
132
|
+
return _chunkBNUZKBNVcjs.formatDateWithTimezone.call(void 0, targetTime, _nullishCoalesce(options.timeZone, () => ( null)), {
|
|
133
133
|
...ZONED_DATE_FIELDS_MEDIUM_DATETIME,
|
|
134
134
|
...options
|
|
135
135
|
});
|
|
@@ -291,13 +291,13 @@ function TicketStatusTag({
|
|
|
291
291
|
const config = getTicketStatusConfig(status);
|
|
292
292
|
const customStyle = color ? {
|
|
293
293
|
"--tag-bg": color,
|
|
294
|
-
"--tag-bg-hover":
|
|
295
|
-
"--tag-bg-active":
|
|
296
|
-
color:
|
|
294
|
+
"--tag-bg-hover": _chunk3ZLPYEL5cjs.deriveHoverColor.call(void 0, color),
|
|
295
|
+
"--tag-bg-active": _chunk3ZLPYEL5cjs.deriveActiveColor.call(void 0, color),
|
|
296
|
+
color: _chunk3ZLPYEL5cjs.getReadableTextColor.call(void 0, color)
|
|
297
297
|
} : void 0;
|
|
298
298
|
const customColorClasses = color ? "bg-[var(--tag-bg)] hover:bg-[var(--tag-bg-hover)] active:bg-[var(--tag-bg-active)]" : void 0;
|
|
299
299
|
const tag = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
300
|
-
|
|
300
|
+
_chunkBNUZKBNVcjs.Tag,
|
|
301
301
|
{
|
|
302
302
|
label: _nullishCoalesce(label, () => ( config.label)),
|
|
303
303
|
variant: _nullishCoalesce(variant, () => ( config.variant)),
|
|
@@ -340,7 +340,7 @@ function TicketStatusTag({
|
|
|
340
340
|
className: _chunk65VVJSQZcjs.cn.call(void 0,
|
|
341
341
|
// Reuse the tag's variant styling, but split into a label section and a
|
|
342
342
|
// separated chevron section (the common dropdown-button seam).
|
|
343
|
-
|
|
343
|
+
_chunkBNUZKBNVcjs.tagVariants.call(void 0, { variant: _nullishCoalesce(variant, () => ( config.variant)) }),
|
|
344
344
|
"w-fit shrink-0 items-stretch justify-start gap-0 overflow-hidden p-0",
|
|
345
345
|
"disabled:cursor-not-allowed disabled:opacity-60",
|
|
346
346
|
// Custom color: bg/hover/active from the CSS vars set above.
|
|
@@ -622,7 +622,7 @@ function ToolCallRow({ call, expanded, onToggle, batchStatus, execution, showExe
|
|
|
622
622
|
onClick: onToggle,
|
|
623
623
|
className: "flex w-full cursor-pointer items-start gap-[var(--spacing-system-xsf)] p-[var(--spacing-system-sf)] text-left",
|
|
624
624
|
children: [
|
|
625
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
625
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk64KBI5MIcjs.ToolIcon, { toolType, size: 16 }) }),
|
|
626
626
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
627
627
|
"div",
|
|
628
628
|
{
|
|
@@ -778,13 +778,13 @@ ApprovalBatchMessage.displayName = "ApprovalBatchMessage";
|
|
|
778
778
|
|
|
779
779
|
|
|
780
780
|
var MARK_IMAGE_SIZES = "96px";
|
|
781
|
-
function AgentMark({ agent, className = "", color =
|
|
782
|
-
const identity =
|
|
781
|
+
function AgentMark({ agent, className = "", color = _chunk3ZLPYEL5cjs.AGENT_GLYPH_COLOR }) {
|
|
782
|
+
const identity = _chunk3ZLPYEL5cjs.useAgentIdentityIcon.call(void 0, agent);
|
|
783
783
|
if (_optionalChain([identity, 'optionalAccess', _15 => _15.url])) {
|
|
784
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: _chunk65VVJSQZcjs.cn.call(void 0, "relative inline-block overflow-hidden rounded-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE76ONBKFcjs.next_image_default, { src: identity.url, alt: "", fill: true, sizes: MARK_IMAGE_SIZES, className:
|
|
784
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: _chunk65VVJSQZcjs.cn.call(void 0, "relative inline-block overflow-hidden rounded-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE76ONBKFcjs.next_image_default, { src: identity.url, alt: "", fill: true, sizes: MARK_IMAGE_SIZES, className: _chunk3ZLPYEL5cjs.AGENT_PICTURE_CLASS }) });
|
|
785
785
|
}
|
|
786
786
|
if (_optionalChain([identity, 'optionalAccess', _16 => _16.name])) {
|
|
787
|
-
return _react.createElement.call(void 0,
|
|
787
|
+
return _react.createElement.call(void 0, _chunkTUAATMUEcjs.resolveIcon.call(void 0, identity.name), {
|
|
788
788
|
className,
|
|
789
789
|
"aria-hidden": true,
|
|
790
790
|
color,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkYG72MEHYcjs = require('./chunk-YG72MEHY.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -49,7 +49,7 @@ function PaginationControl({
|
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
51
|
const handleClick = (event) => {
|
|
52
|
-
if (
|
|
52
|
+
if (_chunkYG72MEHYcjs.isModifierClick.call(void 0, event)) return;
|
|
53
53
|
event.preventDefault();
|
|
54
54
|
onPageChange(page);
|
|
55
55
|
};
|