@flamingo-stack/openframe-frontend-core 0.0.754 → 0.0.756
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-AG4HR6Z6.cjs → chunk-2ANICXS7.cjs} +16 -16
- package/dist/{chunk-U4I3QR2A.cjs → chunk-4YL4Y3BV.cjs} +11 -11
- package/dist/{chunk-YSFOYBYC.cjs → chunk-57JA37HP.cjs} +428 -411
- package/dist/{chunk-TPJTFN7O.cjs → chunk-7KPU7RGS.cjs} +73 -73
- package/dist/{chunk-MGF3FUKD.cjs → chunk-AKK3EO37.cjs} +4 -1
- package/dist/{chunk-3GG3QAPT.cjs → chunk-AXBVN5SW.cjs} +63 -57
- package/dist/{chunk-JXACH52M.cjs → chunk-BTIYXBA2.cjs} +4 -4
- package/dist/{chunk-BLZIUELR.cjs → chunk-CYDWQYIQ.cjs} +22 -22
- package/dist/{chunk-P6F6PHVK.cjs → chunk-EFTUFJS2.cjs} +4 -4
- package/dist/{chunk-LVO7FALW.cjs → chunk-F64VMOIB.cjs} +5 -5
- package/dist/{chunk-MOEILCEX.cjs → chunk-KFUC2XF7.cjs} +7 -7
- package/dist/{chunk-GQYCVZJI.cjs → chunk-KNNJ4WLF.cjs} +4 -4
- package/dist/{chunk-BQQ3JGEO.cjs → chunk-KSU3CXKY.cjs} +3 -3
- package/dist/{chunk-YRULLK7N.cjs → chunk-LOFDIDSD.cjs} +8 -2
- package/dist/{chunk-EDSFLB7J.cjs → chunk-MBQTLZAG.cjs} +11 -11
- package/dist/{chunk-TBDVF4SN.cjs → chunk-MDXZMTCK.cjs} +38 -38
- package/dist/{chunk-FAFFWYEH.cjs → chunk-MR5KMPSE.cjs} +6 -6
- package/dist/{chunk-ZNV5FE4T.cjs → chunk-PUK27ZB6.cjs} +22 -22
- package/dist/{chunk-RTQN35EP.cjs → chunk-QKFJ6ORK.cjs} +21 -21
- package/dist/{chunk-SDF5UUTE.cjs → chunk-QTYSYEHK.cjs} +74 -74
- package/dist/{chunk-OGKV5NOP.cjs → chunk-TAEEGNFL.cjs} +42 -42
- package/dist/{chunk-DW5OKTUP.cjs → chunk-VOXDBCBV.cjs} +36 -36
- package/dist/{chunk-UNRNLSG4.cjs → chunk-VUSXDMCE.cjs} +2 -2
- package/dist/{chunk-IVAAQSOU.cjs → chunk-W5MEHJRQ.cjs} +6 -6
- package/dist/{cloud-tenants-5OTPO7FL.cjs → cloud-tenants-NOZGXQZY.cjs} +10 -10
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/embeddable-chat.js +11 -6
- package/dist/components/chat/index.cjs +7 -7
- package/dist/components/contact/index.cjs +11 -11
- package/dist/components/context-menu.d.ts +2 -2
- package/dist/components/context-menu.d.ts.map +1 -1
- package/dist/components/context-menu.js +19 -12
- package/dist/components/docs/index.cjs +14 -14
- package/dist/components/embeds/index.cjs +11 -11
- package/dist/components/faq/index.cjs +12 -12
- package/dist/components/features/index.cjs +10 -10
- package/dist/components/features/time-tracker/time-tracker-header-button.d.ts.map +1 -1
- package/dist/components/features/time-tracker/time-tracker-header-button.js +3 -1
- package/dist/components/help-center-pages/index.cjs +71 -71
- package/dist/components/index.cjs +44 -44
- package/dist/components/meeting-scheduler/index.cjs +35 -35
- package/dist/components/navigation/index.cjs +13 -13
- package/dist/components/onboarding-guides/index.cjs +13 -13
- package/dist/components/popover.d.ts.map +1 -1
- package/dist/components/popover.js +3 -1
- package/dist/components/product-demo/index.cjs +9 -9
- package/dist/components/tickets/index.cjs +15 -15
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/date-picker.js +9 -4
- package/dist/components/ui/dropdown-menu.d.ts +2 -2
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +4 -1
- package/dist/components/ui/file-manager/index.cjs +6 -6
- package/dist/components/ui/index.cjs +10 -10
- package/dist/components/ui/menubar.d.ts +2 -2
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +22 -15
- package/dist/components/ui/modal-v2.d.ts.map +1 -1
- package/dist/components/ui/modal-v2.js +5 -2
- package/dist/components/ui/searchable-select.d.ts.map +1 -1
- package/dist/components/ui/searchable-select.js +3 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +27 -23
- package/dist/components/ui/tag-select-dropdown.d.ts.map +1 -1
- package/dist/components/ui/tag-select-dropdown.js +3 -1
- package/dist/{devices-MBGMD7BO.cjs → devices-M4KBTOTC.cjs} +11 -11
- package/dist/{embeddable-chat-CMEHSDV7.cjs → embeddable-chat-KGJVVG2V.cjs} +88 -83
- package/dist/index.cjs +14 -14
- package/dist/{knowledge-LO5RK6PM.cjs → knowledge-VVF6CJEG.cjs} +11 -11
- package/dist/{logs-QRGJSZ4G.cjs → logs-7E6HBJ55.cjs} +18 -18
- package/dist/{policies-OIQDO6F5.cjs → policies-UMZLJTBD.cjs} +14 -14
- package/dist/{remote-session-57DGC4X3.cjs → remote-session-SKNXYG6K.cjs} +7 -7
- package/dist/{scripts-XULUNPDV.cjs → scripts-XVNAEYCH.cjs} +17 -17
- package/dist/{software-update-SRF55434.cjs → software-update-U43ZFHMC.cjs} +14 -14
- package/dist/{tickets-board-EP6L3BSV.cjs → tickets-board-B2FH7Z4B.cjs} +9 -9
- package/eslint-config/base.js +7 -1
- package/eslint-config/popup-portal.js +68 -0
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +13 -6
- package/src/components/context-menu.tsx +20 -13
- package/src/components/features/time-tracker/time-tracker-header-button.tsx +3 -1
- package/src/components/popover.tsx +3 -1
- package/src/components/ui/date-picker.tsx +9 -4
- package/src/components/ui/dropdown-menu.tsx +4 -1
- package/src/components/ui/menubar.tsx +23 -16
- package/src/components/ui/modal-v2.tsx +17 -3
- package/src/components/ui/searchable-select.tsx +3 -1
- package/src/components/ui/select.tsx +28 -24
- package/src/components/ui/tag-select-dropdown.tsx +3 -1
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkF64VMOIBcjs = require('./chunk-F64VMOIB.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunk3RFQPQ7Zcjs = require('./chunk-3RFQPQ7Z.cjs');
|
|
@@ -32,7 +32,7 @@ var _chunk3RFQPQ7Zcjs = require('./chunk-3RFQPQ7Z.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkLOFDIDSDcjs = require('./chunk-LOFDIDSD.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -41,7 +41,7 @@ var _chunkYRULLK7Ncjs = require('./chunk-YRULLK7N.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkEFTUFJS2cjs = require('./chunk-EFTUFJS2.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
var _chunkREEXZ35Ocjs = require('./chunk-REEXZ35O.cjs');
|
|
@@ -3257,7 +3257,7 @@ function chatListensForAskAiOpens() {
|
|
|
3257
3257
|
|
|
3258
3258
|
// src/components/chat/chat-appearance-context.tsx
|
|
3259
3259
|
|
|
3260
|
-
var ChatAppearanceContext = _react.createContext.call(void 0,
|
|
3260
|
+
var ChatAppearanceContext = _react.createContext.call(void 0, _chunkLOFDIDSDcjs.CHAT_APPEARANCE.CLASSIC);
|
|
3261
3261
|
function useChatAppearance() {
|
|
3262
3262
|
return _react.useContext.call(void 0, ChatAppearanceContext);
|
|
3263
3263
|
}
|
|
@@ -3296,7 +3296,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3296
3296
|
...props
|
|
3297
3297
|
}, ref) => {
|
|
3298
3298
|
const [isProcessing, setIsProcessing] = _react.useState.call(void 0, false);
|
|
3299
|
-
const isV2 = useChatAppearance() ===
|
|
3299
|
+
const isV2 = useChatAppearance() === _chunkLOFDIDSDcjs.CHAT_APPEARANCE.V2;
|
|
3300
3300
|
const handleApprove = async () => {
|
|
3301
3301
|
setIsProcessing(true);
|
|
3302
3302
|
try {
|
|
@@ -3319,7 +3319,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3319
3319
|
{
|
|
3320
3320
|
ref,
|
|
3321
3321
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
3322
|
-
|
|
3322
|
+
_chunkF64VMOIBcjs.CHAT_BLOCK_CLASS,
|
|
3323
3323
|
// v2: the thread owns the space below the card.
|
|
3324
3324
|
!isV2 && "mb-[var(--spacing-system-xsf)]",
|
|
3325
3325
|
className
|
|
@@ -3327,7 +3327,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3327
3327
|
...props,
|
|
3328
3328
|
children: [
|
|
3329
3329
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full whitespace-pre-line break-words text-ods-text-primary text-h4", children: _optionalChain([data, 'access', _49 => _49.explanation, 'optionalAccess', _50 => _50.trim, 'call', _51 => _51()]) || "Approval required" }),
|
|
3330
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3330
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64VMOIBcjs.ApprovalWaitingLine, {}),
|
|
3331
3331
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3332
3332
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3333
3333
|
_chunk2QMBXGMQcjs.Button,
|
|
@@ -3359,14 +3359,14 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3359
3359
|
children: "Reject"
|
|
3360
3360
|
}
|
|
3361
3361
|
)
|
|
3362
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3362
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64VMOIBcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3363
3363
|
]
|
|
3364
3364
|
}
|
|
3365
3365
|
);
|
|
3366
3366
|
}
|
|
3367
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]",
|
|
3367
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", _chunkF64VMOIBcjs.CHAT_BLOCK_CLASS, className), ...props, children: [
|
|
3368
3368
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalCardBody, { data }),
|
|
3369
|
-
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3369
|
+
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64VMOIBcjs.ApprovalWaitingLine, {}),
|
|
3370
3370
|
!showFooterActions ? null : status === "pending" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
3371
3371
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3372
3372
|
_chunk2QMBXGMQcjs.Button,
|
|
@@ -3398,7 +3398,7 @@ var ApprovalRequestMessage = _react.forwardRef.call(void 0,
|
|
|
3398
3398
|
children: "Reject"
|
|
3399
3399
|
}
|
|
3400
3400
|
)
|
|
3401
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3401
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64VMOIBcjs.ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) })
|
|
3402
3402
|
] });
|
|
3403
3403
|
}
|
|
3404
3404
|
);
|
|
@@ -3428,7 +3428,7 @@ EscalationOfferMessage.displayName = "EscalationOfferMessage";
|
|
|
3428
3428
|
|
|
3429
3429
|
var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
3430
3430
|
({ className, icon, leading, title, body, timestamp, ...props }, ref) => {
|
|
3431
|
-
const isV2 = useChatAppearance() ===
|
|
3431
|
+
const isV2 = useChatAppearance() === _chunkLOFDIDSDcjs.CHAT_APPEARANCE.V2;
|
|
3432
3432
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3433
3433
|
"div",
|
|
3434
3434
|
{
|
|
@@ -3444,7 +3444,7 @@ var AiAssistantInfo = _react.forwardRef.call(void 0,
|
|
|
3444
3444
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
3445
3445
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-start", children: [
|
|
3446
3446
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h4", title, children: title }),
|
|
3447
|
-
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children:
|
|
3447
|
+
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-right text-ods-text-secondary text-h6", children: _chunkLOFDIDSDcjs.formatTime.call(void 0, timestamp) })
|
|
3448
3448
|
] }),
|
|
3449
3449
|
body != null && body !== "" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full break-words text-ods-text-secondary text-h4", children: body })
|
|
3450
3450
|
] })
|
|
@@ -3643,7 +3643,7 @@ var thoughtMdClasses = [
|
|
|
3643
3643
|
var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
3644
3644
|
({ className, text: text2, isStreaming = false, ...props }, ref) => {
|
|
3645
3645
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3646
|
-
const { innerRef, isOverflowing, containerStyle } =
|
|
3646
|
+
const { innerRef, isOverflowing, containerStyle } = _chunkF64VMOIBcjs.useCollapsible.call(void 0, {
|
|
3647
3647
|
expanded,
|
|
3648
3648
|
collapsedHeight: 19,
|
|
3649
3649
|
disableTransition: isStreaming
|
|
@@ -3658,7 +3658,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3658
3658
|
setExpanded(!expanded);
|
|
3659
3659
|
}
|
|
3660
3660
|
};
|
|
3661
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
3661
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, _chunkF64VMOIBcjs.CHAT_BLOCK_FRAME_CLASS, "p-1.5", className), ...props, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3662
3662
|
"div",
|
|
3663
3663
|
{
|
|
3664
3664
|
role: "button",
|
|
@@ -3676,7 +3676,7 @@ var ThinkingDisplay = _react.forwardRef.call(void 0,
|
|
|
3676
3676
|
isStreaming && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC7GIHB3Vcjs.DotsLoaderIcon, { size: 16, className: "text-ods-text-secondary" })
|
|
3677
3677
|
] }),
|
|
3678
3678
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, className: _chunk3ATAYP36cjs.cn.call(void 0, "text-sm leading-snug text-ods-text-secondary", thoughtMdClasses), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SimpleMarkdownRenderer, { content: text2, textSize: "compact" }) }) }),
|
|
3679
|
-
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3679
|
+
canToggle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[19px] shrink-0 items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64VMOIBcjs.ExpandChevron, { expanded }) })
|
|
3680
3680
|
]
|
|
3681
3681
|
}
|
|
3682
3682
|
) });
|
|
@@ -3988,9 +3988,9 @@ var iconTint = {
|
|
|
3988
3988
|
var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
3989
3989
|
({ className, title, details, type = "error", ...props }, ref) => {
|
|
3990
3990
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
3991
|
-
const { innerRef, containerStyle } =
|
|
3991
|
+
const { innerRef, containerStyle } = _chunkF64VMOIBcjs.useCollapsible.call(void 0, { expanded });
|
|
3992
3992
|
const hasDetails = Boolean(details);
|
|
3993
|
-
const isV2 = useChatAppearance() ===
|
|
3993
|
+
const isV2 = useChatAppearance() === _chunkLOFDIDSDcjs.CHAT_APPEARANCE.V2;
|
|
3994
3994
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3995
3995
|
"div",
|
|
3996
3996
|
{
|
|
@@ -4027,7 +4027,7 @@ var ErrorMessageDisplay = _react.forwardRef.call(void 0,
|
|
|
4027
4027
|
children: title
|
|
4028
4028
|
}
|
|
4029
4029
|
),
|
|
4030
|
-
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4030
|
+
hasDetails && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64VMOIBcjs.ExpandChevron, { expanded })
|
|
4031
4031
|
]
|
|
4032
4032
|
}
|
|
4033
4033
|
),
|
|
@@ -4302,9 +4302,9 @@ var ChatHeader = _react.forwardRef.call(void 0,
|
|
|
4302
4302
|
)
|
|
4303
4303
|
] }),
|
|
4304
4304
|
(ticketInfo.status || ticketInfo.statusName) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4305
|
-
|
|
4305
|
+
_chunkF64VMOIBcjs.TicketStatusTag,
|
|
4306
4306
|
{
|
|
4307
|
-
...
|
|
4307
|
+
..._chunkF64VMOIBcjs.resolveStatusTagProps.call(void 0, {
|
|
4308
4308
|
status: ticketInfo.status,
|
|
4309
4309
|
statusKind: ticketInfo.statusKind,
|
|
4310
4310
|
statusName: ticketInfo.statusName,
|
|
@@ -4862,11 +4862,11 @@ var remarkMentionChips = () => {
|
|
|
4862
4862
|
// src/components/chat/tool-execution-display.tsx
|
|
4863
4863
|
|
|
4864
4864
|
|
|
4865
|
-
var COMMAND_BODY_KEYS = new Set(
|
|
4865
|
+
var COMMAND_BODY_KEYS = new Set(_chunkF64VMOIBcjs.COMMAND_BODY_ARG_KEYS);
|
|
4866
4866
|
var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
4867
4867
|
({ className, message, assistantType, variant = "admin", ...props }, ref) => {
|
|
4868
4868
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
4869
|
-
const { innerRef, containerStyle } =
|
|
4869
|
+
const { innerRef, containerStyle } = _chunkF64VMOIBcjs.useCollapsible.call(void 0, { expanded });
|
|
4870
4870
|
const isClient = assistantType === "fae";
|
|
4871
4871
|
const isClientView = variant === "client";
|
|
4872
4872
|
const isExecuting = message.type === "EXECUTING_TOOL";
|
|
@@ -4909,7 +4909,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4909
4909
|
}
|
|
4910
4910
|
),
|
|
4911
4911
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: renderStatusIcon() }),
|
|
4912
|
-
!isStaticRow && hasBody && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4912
|
+
!isStaticRow && hasBody && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64VMOIBcjs.ExpandChevron, { expanded: isExpanded }) })
|
|
4913
4913
|
] });
|
|
4914
4914
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4915
4915
|
"div",
|
|
@@ -4919,7 +4919,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4919
4919
|
// The command running block keeps its bordered box in both chats
|
|
4920
4920
|
// (Figma 1972-6109). CLIENT (Fae) only drops the tool icon below.
|
|
4921
4921
|
"flex w-full flex-col overflow-hidden",
|
|
4922
|
-
|
|
4922
|
+
_chunkF64VMOIBcjs.CHAT_BLOCK_FRAME_CLASS,
|
|
4923
4923
|
className
|
|
4924
4924
|
),
|
|
4925
4925
|
...props,
|
|
@@ -4930,7 +4930,7 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4930
4930
|
// It reads as a card: what was done, then one status line under it.
|
|
4931
4931
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xsf)] p-[var(--spacing-system-sf)] text-left", children: [
|
|
4932
4932
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 whitespace-pre-wrap break-words text-ods-text-primary text-h4", children: previewText }),
|
|
4933
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4933
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64VMOIBcjs.StatusLine, { tone: statusTone, label: statusLabel })
|
|
4934
4934
|
] })
|
|
4935
4935
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
4936
4936
|
hasBody ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4943,9 +4943,9 @@ var ToolExecutionDisplay = _react.forwardRef.call(void 0,
|
|
|
4943
4943
|
}
|
|
4944
4944
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-start gap-[var(--spacing-system-xs)] p-[var(--spacing-system-s)] text-left", children: headerContent }),
|
|
4945
4945
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, children: hasBody && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col items-start gap-0 border-t border-ods-border p-[var(--spacing-system-sf)] text-h6", children: [
|
|
4946
|
-
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4946
|
+
argEntries.map(([key, value]) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64VMOIBcjs.ArgRow, { argKey: key, value }, key)),
|
|
4947
4947
|
hasResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4948
|
-
|
|
4948
|
+
_chunkF64VMOIBcjs.ResultBlock,
|
|
4949
4949
|
{
|
|
4950
4950
|
result: message.result,
|
|
4951
4951
|
className: argEntries.length > 0 ? "mt-[var(--spacing-system-xsf)]" : void 0
|
|
@@ -4999,8 +4999,8 @@ var remarkStripCitations = () => {
|
|
|
4999
4999
|
var MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
5000
5000
|
var CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
5001
5001
|
function formatMessageTimestamp(timestamp) {
|
|
5002
|
-
const time =
|
|
5003
|
-
return
|
|
5002
|
+
const time = _chunkLOFDIDSDcjs.formatTime.call(void 0, timestamp);
|
|
5003
|
+
return _chunkF64VMOIBcjs.isToday.call(void 0, timestamp) ? time : `${_chunkLOFDIDSDcjs.formatDate.call(void 0, timestamp)} ${time}`;
|
|
5004
5004
|
}
|
|
5005
5005
|
function normalizeContent(content) {
|
|
5006
5006
|
if (typeof content === "string") {
|
|
@@ -5054,7 +5054,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5054
5054
|
const isError = role === "error";
|
|
5055
5055
|
const inheritedAppearance = useChatAppearance();
|
|
5056
5056
|
const appearance = _nullishCoalesce(appearanceProp, () => ( inheritedAppearance));
|
|
5057
|
-
const isV2 = appearance ===
|
|
5057
|
+
const isV2 = appearance === _chunkLOFDIDSDcjs.CHAT_APPEARANCE.V2;
|
|
5058
5058
|
const authorType = _nullishCoalesce(authorTypeProp, () => ( (isUser ? "user" : assistantType === "mingo" ? "mingo" : "fae")));
|
|
5059
5059
|
const hasMarkerSupport = !!renderEntityCard;
|
|
5060
5060
|
const segments = _react.useMemo.call(void 0, () => normalizeContent(content), [content]);
|
|
@@ -5238,7 +5238,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5238
5238
|
const faceBox = "h-5 w-5 flex-shrink-0";
|
|
5239
5239
|
const face = !showAvatar || isSystem ? null : !isUser && !avatar && assistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-center justify-center", faceBox), children: assistantIcon }) : !isUser && !avatar && assistantType ? (
|
|
5240
5240
|
// An agent with no picture shows its packaged mark, never initials.
|
|
5241
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk3ATAYP36cjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5241
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "img", "aria-label": displayName, title: displayName, className: _chunk3ATAYP36cjs.cn.call(void 0, "inline-flex", faceBox), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64VMOIBcjs.AgentMark, { agent: assistantType, className: "h-full w-full rounded-full" }) })
|
|
5242
5242
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: displayName, className: "inline-flex flex-shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5243
5243
|
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
5244
5244
|
{
|
|
@@ -5321,7 +5321,7 @@ var ChatMessageEnhanced = _react.forwardRef.call(void 0,
|
|
|
5321
5321
|
);
|
|
5322
5322
|
} else if (segment.type === "approval_batch") {
|
|
5323
5323
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5324
|
-
|
|
5324
|
+
_chunkF64VMOIBcjs.ApprovalBatchMessage,
|
|
5325
5325
|
{
|
|
5326
5326
|
data: segment.data,
|
|
5327
5327
|
status: segment.status,
|
|
@@ -5581,7 +5581,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5581
5581
|
contentClassName,
|
|
5582
5582
|
assistantType,
|
|
5583
5583
|
approvalVariant,
|
|
5584
|
-
appearance =
|
|
5584
|
+
appearance = _chunkLOFDIDSDcjs.CHAT_APPEARANCE.CLASSIC,
|
|
5585
5585
|
assistantIcon,
|
|
5586
5586
|
pendingApprovals,
|
|
5587
5587
|
hasNextPage,
|
|
@@ -5931,7 +5931,7 @@ var ChatMessageList = _react.forwardRef.call(void 0,
|
|
|
5931
5931
|
const lastSegment = _optionalChain([lastSegments, 'optionalAccess', _120 => _120[lastSegments.length - 1]]);
|
|
5932
5932
|
const isPausedOnApproval = !!lastSegment && (lastSegment.type === "approval_request" || lastSegment.type === "approval_batch" || lastSegment.type === "escalation_offer") && (lastSegment.status === void 0 || lastSegment.status === "pending");
|
|
5933
5933
|
const showStreamingLoader = isTyping && !isPausedOnApproval && !(pendingApprovals && pendingApprovals.length > 0);
|
|
5934
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5934
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEFTUFJS2cjs.OverlayOpenRegistryProvider, { onOpenChange: handleOverlayOpenChange, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", children: [
|
|
5935
5935
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
5936
5936
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5937
5937
|
"div",
|
|
@@ -7524,7 +7524,7 @@ function MingoChatHistoryRow({
|
|
|
7524
7524
|
menuOpen ? "opacity-100" : "opacity-0 focus-within:opacity-100 group-hover/row:opacity-100"
|
|
7525
7525
|
),
|
|
7526
7526
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7527
|
-
|
|
7527
|
+
_chunkEFTUFJS2cjs.ActionsMenuDropdown,
|
|
7528
7528
|
{
|
|
7529
7529
|
triggerAriaLabel: "Chat actions",
|
|
7530
7530
|
groups: [{ items: menuItems }],
|
|
@@ -7768,7 +7768,7 @@ function MingoWelcome({
|
|
|
7768
7768
|
onScroll: updateScrollFade,
|
|
7769
7769
|
className: "flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)] overflow-y-auto overscroll-contain",
|
|
7770
7770
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-center justify-center gap-[var(--spacing-system-l)] px-[var(--spacing-system-l)] py-[var(--spacing-system-xxl)] text-center", children: [
|
|
7771
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7771
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64VMOIBcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7772
7772
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7773
7773
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: heading }),
|
|
7774
7774
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
@@ -7891,7 +7891,7 @@ function GuideWelcome({
|
|
|
7891
7891
|
// Agent-mode identity glyph (chat-config Identity tab). Sized to
|
|
7892
7892
|
// match the default Mingo mark (48px).
|
|
7893
7893
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Z4EQOIXcjs.EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
|
|
7894
|
-
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7894
|
+
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64VMOIBcjs.AgentMark, { agent: "mingo", className: "h-12 w-12" }),
|
|
7895
7895
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)]", children: [
|
|
7896
7896
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h2", children: title }),
|
|
7897
7897
|
subtitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle }) : subtitleLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-5 w-3/4 max-w-80 rounded-sm" }) }) : null
|
|
@@ -7937,8 +7937,8 @@ function GuideModeBanner({ label = DEFAULT_LABEL, tooltip = DEFAULT_TOOLTIP, cla
|
|
|
7937
7937
|
children: [
|
|
7938
7938
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZFJDLJSIcjs.CompassIcon, { size: 16, className: "shrink-0 text-ods-text-on-accent" }),
|
|
7939
7939
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "flex-1 truncate uppercase text-ods-text-on-accent text-h5", children: label }),
|
|
7940
|
-
tooltip != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7941
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7940
|
+
tooltip != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEFTUFJS2cjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkEFTUFJS2cjs.Tooltip, { children: [
|
|
7941
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEFTUFJS2cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7942
7942
|
"button",
|
|
7943
7943
|
{
|
|
7944
7944
|
type: "button",
|
|
@@ -7947,7 +7947,7 @@ function GuideModeBanner({ label = DEFAULT_LABEL, tooltip = DEFAULT_TOOLTIP, cla
|
|
|
7947
7947
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 16 })
|
|
7948
7948
|
}
|
|
7949
7949
|
) }),
|
|
7950
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7950
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEFTUFJS2cjs.TooltipContent, { side: "bottom", align: "end", className: "max-w-[280px] normal-case text-h6", children: tooltip })
|
|
7951
7951
|
] }) })
|
|
7952
7952
|
]
|
|
7953
7953
|
}
|
|
@@ -8093,7 +8093,7 @@ function MingoArchiveList({
|
|
|
8093
8093
|
title: dialog.title || "Untitled Chat",
|
|
8094
8094
|
onClick: () => _optionalChain([onSelectDialog, 'optionalCall', _177 => _177(dialog.id)]),
|
|
8095
8095
|
trailing: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
8096
|
-
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children:
|
|
8096
|
+
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: _chunkF64VMOIBcjs.formatRelativeTime.call(void 0, dialog.timestamp) }),
|
|
8097
8097
|
dialog.owner && (dialog.owner.name || dialog.owner.avatarUrl) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8098
8098
|
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
8099
8099
|
{
|
|
@@ -8195,7 +8195,7 @@ function MingoChatHeader({
|
|
|
8195
8195
|
] }),
|
|
8196
8196
|
onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatHeaderIconButton, { onClick: onRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
8197
8197
|
menuGroups.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8198
|
-
|
|
8198
|
+
_chunkEFTUFJS2cjs.ActionsMenuDropdown,
|
|
8199
8199
|
{
|
|
8200
8200
|
triggerAriaLabel: "Chat actions",
|
|
8201
8201
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
@@ -8458,7 +8458,7 @@ function MingoChatRail({
|
|
|
8458
8458
|
"data-accent": "mingo",
|
|
8459
8459
|
"aria-label": "Mingo chats",
|
|
8460
8460
|
logo: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 items-center justify-between", children: [
|
|
8461
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8461
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64VMOIBcjs.AgentMark, { agent: "mingo", className: "size-6 text-ods-text-primary" }),
|
|
8462
8462
|
onExpand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8463
8463
|
_chunk2QMBXGMQcjs.Button,
|
|
8464
8464
|
{
|
|
@@ -8474,7 +8474,7 @@ function MingoChatRail({
|
|
|
8474
8474
|
items,
|
|
8475
8475
|
sectionLabel: "Your Current Chats",
|
|
8476
8476
|
sectionActions: listMenu.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8477
|
-
|
|
8477
|
+
_chunkEFTUFJS2cjs.ActionsMenuDropdown,
|
|
8478
8478
|
{
|
|
8479
8479
|
triggerAriaLabel: "Chat list options",
|
|
8480
8480
|
groups: [{ items: listMenu }],
|
|
@@ -8537,7 +8537,7 @@ function MingoChatRailRow({ dialog, active, status, onSelect, menuItems }) {
|
|
|
8537
8537
|
menuOpen ? "opacity-100" : "opacity-0 focus-within:opacity-100 group-hover/row:opacity-100"
|
|
8538
8538
|
),
|
|
8539
8539
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8540
|
-
|
|
8540
|
+
_chunkEFTUFJS2cjs.ActionsMenuDropdown,
|
|
8541
8541
|
{
|
|
8542
8542
|
triggerAriaLabel: `Actions for ${title}`,
|
|
8543
8543
|
groups: [{ items: menuItems }],
|
|
@@ -8573,7 +8573,7 @@ function TabSelector({
|
|
|
8573
8573
|
scrollable = false,
|
|
8574
8574
|
className
|
|
8575
8575
|
}) {
|
|
8576
|
-
const flush =
|
|
8576
|
+
const flush = _chunkEFTUFJS2cjs.useIsInActionsMenuHeader.call(void 0, );
|
|
8577
8577
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8578
8578
|
"div",
|
|
8579
8579
|
{
|
|
@@ -8738,8 +8738,8 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8738
8738
|
const save = () => {
|
|
8739
8739
|
if (canSave) onSave(name.trim());
|
|
8740
8740
|
};
|
|
8741
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8742
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8741
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLOFDIDSDcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8742
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLOFDIDSDcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLOFDIDSDcjs.ModalTitle, { children: "Rename Chat" }) }),
|
|
8743
8743
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
8744
8744
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "rename-chat-input", className: "text-ods-text-primary text-h4", children: "Chat Name" }),
|
|
8745
8745
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -8756,27 +8756,27 @@ function RenameChatModal({ isOpen, initialName = "", onClose, onSave }) {
|
|
|
8756
8756
|
}
|
|
8757
8757
|
)
|
|
8758
8758
|
] }),
|
|
8759
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8759
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLOFDIDSDcjs.ModalFooter, { children: [
|
|
8760
8760
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8761
8761
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: save, disabled: !canSave, className: saveBtn, children: "Save" })
|
|
8762
8762
|
] })
|
|
8763
8763
|
] });
|
|
8764
8764
|
}
|
|
8765
8765
|
function ArchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8766
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8767
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8766
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLOFDIDSDcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8767
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLOFDIDSDcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLOFDIDSDcjs.ModalTitle, { children: "Archive Chat" }) }),
|
|
8768
8768
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: "This chat will be hidden from your current chats." }),
|
|
8769
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8769
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLOFDIDSDcjs.ModalFooter, { children: [
|
|
8770
8770
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8771
8771
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: dangerBtn, children: "Archive Chat" })
|
|
8772
8772
|
] })
|
|
8773
8773
|
] });
|
|
8774
8774
|
}
|
|
8775
8775
|
function UnarchiveChatModal({ isOpen, onClose, onConfirm }) {
|
|
8776
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8777
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8776
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLOFDIDSDcjs.Modal, { isOpen, onClose, className: "md:max-w-[600px]", children: [
|
|
8777
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLOFDIDSDcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLOFDIDSDcjs.ModalTitle, { children: "Unarchive Chat" }) }),
|
|
8778
8778
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: "This chat will be moved back to your current chats." }),
|
|
8779
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
8779
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkLOFDIDSDcjs.ModalFooter, { children: [
|
|
8780
8780
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onClose, className: cancelBtn, children: "Cancel" }),
|
|
8781
8781
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick: onConfirm, className: saveBtn, children: "Unarchive Chat" })
|
|
8782
8782
|
] })
|
|
@@ -8862,7 +8862,7 @@ function ChatPanelHeaderMobile({
|
|
|
8862
8862
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-end gap-[var(--spacing-system-m)] pt-[var(--spacing-system-xl)]", children: [
|
|
8863
8863
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-[var(--spacing-system-xs)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 truncate text-ods-text-primary text-h2", title, children: title }) }),
|
|
8864
8864
|
menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8865
|
-
|
|
8865
|
+
_chunkEFTUFJS2cjs.ActionsMenuDropdown,
|
|
8866
8866
|
{
|
|
8867
8867
|
groups: [{ items: menuItems }],
|
|
8868
8868
|
triggerAriaLabel: "Chat actions",
|
|
@@ -8965,7 +8965,7 @@ function ChatPanelHeader({
|
|
|
8965
8965
|
] }),
|
|
8966
8966
|
isArchivedView && onRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatHeaderIconButton, { onClick: onRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
8967
8967
|
showBack && !isArchivedView && menuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8968
|
-
|
|
8968
|
+
_chunkEFTUFJS2cjs.ActionsMenuDropdown,
|
|
8969
8969
|
{
|
|
8970
8970
|
triggerAriaLabel: "Chat actions",
|
|
8971
8971
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
@@ -9356,7 +9356,7 @@ var ModelDisplay = _react2.default.forwardRef(
|
|
|
9356
9356
|
}, ref) => {
|
|
9357
9357
|
const icon = getProviderIcon(provider);
|
|
9358
9358
|
const name = displayName || modelName;
|
|
9359
|
-
const isV2 = useChatAppearance() ===
|
|
9359
|
+
const isV2 = useChatAppearance() === _chunkLOFDIDSDcjs.CHAT_APPEARANCE.V2;
|
|
9360
9360
|
const formatCount = (count) => isV2 ? count.toLocaleString("en-US") : formatTokenCount(count);
|
|
9361
9361
|
const inline = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-center gap-1 text-ods-text-secondary", "text-h6", className), ...props, children: [
|
|
9362
9362
|
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex items-center justify-center", children: icon }),
|
|
@@ -9485,7 +9485,7 @@ function ChatComposer({
|
|
|
9485
9485
|
}, [entityTypes]);
|
|
9486
9486
|
const resolveContextIcon = _react.useCallback.call(void 0, (item) => iconByType.get(item.type), [iconByType]);
|
|
9487
9487
|
const inputNode = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9488
|
-
|
|
9488
|
+
_chunkLOFDIDSDcjs.ChatInput,
|
|
9489
9489
|
{
|
|
9490
9490
|
ref: inputRef,
|
|
9491
9491
|
onSend,
|
|
@@ -11402,7 +11402,7 @@ function MingoInfoCard({
|
|
|
11402
11402
|
isAnchor ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: _chunk3ATAYP36cjs.cn.call(void 0, contentClass, "no-underline"), children: content }) : onClick ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", onClick, className: contentClass, children: content }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: contentClass, children: content }),
|
|
11403
11403
|
action && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "button", { type: "button", "aria-label": action.label, onClick: action.onClick, className: TRAILING_BUTTON_CLASS, children: action.icon }),
|
|
11404
11404
|
hasMenu && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11405
|
-
|
|
11405
|
+
_chunkEFTUFJS2cjs.ActionsMenuDropdown,
|
|
11406
11406
|
{
|
|
11407
11407
|
groups: menuGroups,
|
|
11408
11408
|
triggerAriaLabel: menuAriaLabel,
|
|
@@ -12787,7 +12787,7 @@ function ChatCardLoader({
|
|
|
12787
12787
|
const discussFn = useDisplay ? onDisplay : onDiscuss;
|
|
12788
12788
|
const discuss = discussFn ? {
|
|
12789
12789
|
label: useDisplay ? "Display" : "Ask Mingo",
|
|
12790
|
-
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12790
|
+
icon: useDisplay ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU4USZF42cjs.FileContentIcon, { size: 20 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF64VMOIBcjs.AgentMark, { agent: "mingo", className: "size-5" }),
|
|
12791
12791
|
run: () => discussFn(finalChatRef)
|
|
12792
12792
|
} : void 0;
|
|
12793
12793
|
const renderOpts = {
|
|
@@ -12896,12 +12896,12 @@ function makeBatchDedupKey(item) {
|
|
|
12896
12896
|
return `${item.messageType}:${seq}:${type}:${text2}:${integratedToolType}:${toolFunction}:${approvalRequestId}`;
|
|
12897
12897
|
}
|
|
12898
12898
|
function getChatTypeMessageType(chatType) {
|
|
12899
|
-
return chatType ===
|
|
12899
|
+
return chatType === _chunkLOFDIDSDcjs.CHAT_TYPE.ADMIN ? "admin-message" : "message";
|
|
12900
12900
|
}
|
|
12901
12901
|
function useChunkCatchup({
|
|
12902
12902
|
dialogId,
|
|
12903
12903
|
onChunkReceived,
|
|
12904
|
-
chatTypes = [
|
|
12904
|
+
chatTypes = [_chunkLOFDIDSDcjs.CHAT_TYPE.CLIENT],
|
|
12905
12905
|
fetchChunks
|
|
12906
12906
|
}) {
|
|
12907
12907
|
const processedSequenceKeys = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -15729,7 +15729,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15729
15729
|
const status = approvalStatuses[requestId] || "pending";
|
|
15730
15730
|
if (!displayInline(approvalType)) {
|
|
15731
15731
|
const required = _nullishCoalesce(toolCalls.find((c) => c.requiresApproval), () => ( toolCalls[0]));
|
|
15732
|
-
const summary = required ?
|
|
15732
|
+
const summary = required ? _chunkF64VMOIBcjs.getCommandText.call(void 0, required) : `Batch of ${toolCalls.length} tool calls`;
|
|
15733
15733
|
pendingEscalated.set(requestId, {
|
|
15734
15734
|
command: summary,
|
|
15735
15735
|
explanation: _optionalChain([required, 'optionalAccess', _536 => _536.toolExplanation]),
|
|
@@ -15762,7 +15762,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15762
15762
|
if (!call.requiresApproval) continue;
|
|
15763
15763
|
segments = accumulator.addApprovalRequest(
|
|
15764
15764
|
requestId,
|
|
15765
|
-
|
|
15765
|
+
_chunkF64VMOIBcjs.getCommandText.call(void 0, call),
|
|
15766
15766
|
call.toolExplanation,
|
|
15767
15767
|
approvalType,
|
|
15768
15768
|
status,
|
|
@@ -15841,7 +15841,7 @@ function createChatStreamReducer(options = {}) {
|
|
|
15841
15841
|
if (!call.requiresApproval) continue;
|
|
15842
15842
|
segments = accumulator.addApprovalRequest(
|
|
15843
15843
|
requestId,
|
|
15844
|
-
|
|
15844
|
+
_chunkF64VMOIBcjs.getCommandText.call(void 0, call),
|
|
15845
15845
|
call.toolExplanation,
|
|
15846
15846
|
escalatedData.approvalType,
|
|
15847
15847
|
status
|
|
@@ -18018,12 +18018,12 @@ function decodeNatsChunk(chunk) {
|
|
|
18018
18018
|
|
|
18019
18019
|
// src/components/chat/utils/process-historical-messages.ts
|
|
18020
18020
|
function getOwnerDisplayName(owner) {
|
|
18021
|
-
if (_optionalChain([owner, 'optionalAccess', _614 => _614.type]) ===
|
|
18021
|
+
if (_optionalChain([owner, 'optionalAccess', _614 => _614.type]) === _chunkLOFDIDSDcjs.OWNER_TYPE.ADMIN && owner.user) {
|
|
18022
18022
|
const { firstName, lastName } = owner.user;
|
|
18023
18023
|
const name = [firstName, lastName].filter(Boolean).join(" ");
|
|
18024
18024
|
if (name) return name;
|
|
18025
18025
|
}
|
|
18026
|
-
return _optionalChain([owner, 'optionalAccess', _615 => _615.type]) ===
|
|
18026
|
+
return _optionalChain([owner, 'optionalAccess', _615 => _615.type]) === _chunkLOFDIDSDcjs.OWNER_TYPE.ADMIN ? "Admin" : "You";
|
|
18027
18027
|
}
|
|
18028
18028
|
function getOwnerAvatar(owner) {
|
|
18029
18029
|
return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _616 => _616.user, 'optionalAccess', _617 => _617.image, 'optionalAccess', _618 => _618.imageUrl]), () => ( void 0));
|
|
@@ -18286,7 +18286,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18286
18286
|
if (!call.requiresApproval) continue;
|
|
18287
18287
|
accumulator.addApprovalRequest(
|
|
18288
18288
|
event.requestId,
|
|
18289
|
-
|
|
18289
|
+
_chunkF64VMOIBcjs.getCommandText.call(void 0, call),
|
|
18290
18290
|
call.toolExplanation,
|
|
18291
18291
|
approvalType,
|
|
18292
18292
|
status,
|
|
@@ -18347,7 +18347,7 @@ function applyHistoryEvent(event, accumulator, approvalStatuses, options, escala
|
|
|
18347
18347
|
if (!call.requiresApproval) continue;
|
|
18348
18348
|
accumulator.addApprovalRequest(
|
|
18349
18349
|
requestId,
|
|
18350
|
-
|
|
18350
|
+
_chunkF64VMOIBcjs.getCommandText.call(void 0, call),
|
|
18351
18351
|
call.toolExplanation,
|
|
18352
18352
|
escalatedData.approvalType,
|
|
18353
18353
|
status
|
|
@@ -18455,10 +18455,10 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18455
18455
|
pushStandaloneMessages(processedMessages, msg, messageDataArray);
|
|
18456
18456
|
return;
|
|
18457
18457
|
}
|
|
18458
|
-
const isUserMessage = _optionalChain([msg, 'access', _631 => _631.owner, 'optionalAccess', _632 => _632.type]) ===
|
|
18458
|
+
const isUserMessage = _optionalChain([msg, 'access', _631 => _631.owner, 'optionalAccess', _632 => _632.type]) === _chunkLOFDIDSDcjs.OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _633 => _633.owner, 'optionalAccess', _634 => _634.type]) === _chunkLOFDIDSDcjs.OWNER_TYPE.ADMIN;
|
|
18459
18459
|
if (isUserMessage) {
|
|
18460
18460
|
flushAssistantMessage();
|
|
18461
|
-
const userAuthorType = _optionalChain([msg, 'access', _635 => _635.owner, 'optionalAccess', _636 => _636.type]) ===
|
|
18461
|
+
const userAuthorType = _optionalChain([msg, 'access', _635 => _635.owner, 'optionalAccess', _636 => _636.type]) === _chunkLOFDIDSDcjs.OWNER_TYPE.ADMIN ? "admin" : "user";
|
|
18462
18462
|
messageDataArray.forEach((data) => {
|
|
18463
18463
|
if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
|
|
18464
18464
|
const rawContext = data.contextItems;
|
|
@@ -18509,7 +18509,7 @@ function processHistoricalMessages(messages, options = {}) {
|
|
|
18509
18509
|
});
|
|
18510
18510
|
const nextMsg = messages[index + 1];
|
|
18511
18511
|
const isLastMessage = index === messages.length - 1;
|
|
18512
|
-
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _639 => _639.owner, 'optionalAccess', _640 => _640.type]) ===
|
|
18512
|
+
const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _639 => _639.owner, 'optionalAccess', _640 => _640.type]) === _chunkLOFDIDSDcjs.OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _641 => _641.owner, 'optionalAccess', _642 => _642.type]) === _chunkLOFDIDSDcjs.OWNER_TYPE.ADMIN);
|
|
18513
18513
|
if (isLastMessage || nextIsFromUser) {
|
|
18514
18514
|
flushAssistantMessage();
|
|
18515
18515
|
}
|