@flamingo-stack/openframe-frontend-core 0.0.781 → 0.0.783
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-WYZPBDDM.cjs +23 -0
- package/dist/{chunk-RJX33Y4Q.cjs → chunk-3INHO6GP.cjs} +22 -22
- package/dist/{chunk-TH5X2BXK.cjs → chunk-3PKORICR.cjs} +115 -115
- package/dist/{chunk-JHDPEYZH.cjs → chunk-4DKPNN2A.cjs} +17 -17
- package/dist/{chunk-L4XOCV7S.cjs → chunk-4DQ4CNAG.cjs} +10 -10
- package/dist/{chunk-HTSRCFXP.cjs → chunk-4MQASMIU.cjs} +7 -7
- package/dist/{chunk-3VINTJPE.cjs → chunk-5WMRVMXH.cjs} +5 -5
- package/dist/{chunk-OHXB6HUX.cjs → chunk-5XAWVXNI.cjs} +320 -320
- package/dist/{chunk-HLZUBJPL.cjs → chunk-62TMGBRO.cjs} +197 -197
- package/dist/{chunk-B6EQVH7D.cjs → chunk-6NEWJ6I2.cjs} +51 -51
- package/dist/{chunk-FWJ5YECN.cjs → chunk-7OJMOG34.cjs} +546 -544
- package/dist/{chunk-63OCO2G5.cjs → chunk-A3UZFFR3.cjs} +4 -4
- package/dist/{chunk-XHJI7R4J.cjs → chunk-AFSVWR3X.cjs} +46 -46
- package/dist/{chunk-LDGR5VCK.cjs → chunk-APO7GMZQ.cjs} +4 -4
- package/dist/{chunk-PID7LUDP.cjs → chunk-BAJB3JF3.cjs} +31 -31
- package/dist/{chunk-T7SDYBST.cjs → chunk-BE4OUWTA.cjs} +54 -54
- package/dist/{chunk-ZV6RQNXE.cjs → chunk-CBKXU77H.cjs} +46 -46
- package/dist/{chunk-IYU2ZH2J.cjs → chunk-CS5SZJFV.cjs} +2 -2
- package/dist/{chunk-Q7HXTF2C.cjs → chunk-DYF6XB27.cjs} +4 -4
- package/dist/{chunk-AKCBLZAO.cjs → chunk-E2ZZOYSM.cjs} +74 -62
- package/dist/{chunk-57NE7SHG.cjs → chunk-EFCWHAYC.cjs} +8 -8
- package/dist/{chunk-KWV23THO.cjs → chunk-EHQ2UGT4.cjs} +14 -14
- package/dist/{chunk-DJTPDK3W.cjs → chunk-F2FFJWOQ.cjs} +4 -4
- package/dist/{chunk-CDBFQVPA.cjs → chunk-FLS6DZEN.cjs} +46 -43
- package/dist/{chunk-VZKAAXU3.cjs → chunk-FS7CBRF4.cjs} +23 -23
- package/dist/{chunk-X6TXMWBV.cjs → chunk-H3RHAN6B.cjs} +61 -61
- package/dist/{chunk-HPGCUYAZ.cjs → chunk-KRXHRL3W.cjs} +110 -110
- package/dist/{chunk-D46WFWWI.cjs → chunk-LGISRUGF.cjs} +41 -39
- package/dist/{chunk-2OYKOHFK.cjs → chunk-LUWYWYNC.cjs} +2 -2
- package/dist/{chunk-N6YCOBLK.cjs → chunk-MGEUZRNQ.cjs} +101 -9
- package/dist/{chunk-YEJWNHD3.cjs → chunk-MKF6XX5A.cjs} +63 -63
- package/dist/{chunk-3IHGS44W.cjs → chunk-N2SVJJLU.cjs} +5 -5
- package/dist/{chunk-TZ6MTHUC.cjs → chunk-N5TPRCSS.cjs} +60 -60
- package/dist/{chunk-YNDH72VU.cjs → chunk-NNNRN4OF.cjs} +14 -14
- package/dist/{chunk-JQWYXC2E.cjs → chunk-ODDUGLYF.cjs} +110 -110
- package/dist/{chunk-T4ZVKEDP.cjs → chunk-OMTH355I.cjs} +3 -3
- package/dist/{chunk-OFX6XEVN.cjs → chunk-PQSTPJQQ.cjs} +13 -13
- package/dist/{chunk-YKJ4JN6T.cjs → chunk-RL45AU2C.cjs} +42 -42
- package/dist/{chunk-DIY4SJZI.cjs → chunk-RT6QATX4.cjs} +19 -19
- package/dist/{chunk-ODZ5XGWA.cjs → chunk-THOGSAFH.cjs} +2076 -2052
- package/dist/{chunk-UONQCE5N.cjs → chunk-TS6TISIF.cjs} +209 -208
- package/dist/{chunk-SMEX3BWO.cjs → chunk-UPQMFK5B.cjs} +7 -7
- package/dist/{chunk-5PBWAF2D.cjs → chunk-URFAMWCA.cjs} +44 -44
- package/dist/{chunk-VDTLVFCV.cjs → chunk-WHNI4QTG.cjs} +13 -13
- package/dist/{chunk-EYNQE2XN.cjs → chunk-WS7IDGEL.cjs} +6 -6
- package/dist/{chunk-QD7SKYCQ.cjs → chunk-WSBWP7IW.cjs} +3 -3
- package/dist/{chunk-RYIWADIB.cjs → chunk-XAA5LUHC.cjs} +12 -12
- package/dist/{chunk-XYKVOBIP.cjs → chunk-XKDJ5ISQ.cjs} +3 -3
- package/dist/{chunk-A7FSNBNV.cjs → chunk-YU23M33V.cjs} +173 -172
- package/dist/{chunk-ZPYFPLPD.cjs → chunk-YXZOP726.cjs} +10 -10
- package/dist/{chunk-4XDYSGRL.cjs → chunk-ZFOMRALU.cjs} +17 -17
- package/dist/{chunk-AFJEUBDS.cjs → chunk-ZJS45HQZ.cjs} +29 -29
- package/dist/{cloud-tenants-UAFVHKX7.cjs → cloud-tenants-QYW3MPPP.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/category-card.d.ts.map +1 -1
- package/dist/components/category-card.js +1 -0
- package/dist/components/chat/ask-display.js +2 -2
- package/dist/components/chat/chat-context-memory-bar.js +2 -2
- package/dist/components/chat/chat-context-picker.d.ts.map +1 -1
- package/dist/components/chat/chat-context-picker.js +4 -2
- package/dist/components/chat/chat-input.d.ts.map +1 -1
- package/dist/components/chat/chat-input.js +2 -1
- package/dist/components/chat/chat-nav-sidebar.d.ts.map +1 -1
- package/dist/components/chat/chat-nav-sidebar.js +12 -1
- package/dist/components/chat/embeddable-chat.js +120 -98
- package/dist/components/chat/guide-mode-banner.js +1 -1
- package/dist/components/chat/index.cjs +26 -26
- package/dist/components/chat/mingo-welcome.js +1 -1
- package/dist/components/contact/index.cjs +33 -33
- package/dist/components/docs/index.cjs +36 -36
- package/dist/components/embeds/index.cjs +33 -33
- package/dist/components/faq/index.cjs +34 -34
- package/dist/components/features/capability-explorer.d.ts.map +1 -1
- package/dist/components/features/capability-explorer.js +11 -1
- package/dist/components/features/command-box.js +1 -1
- package/dist/components/features/devices/devices-grid-filters.d.ts.map +1 -1
- package/dist/components/features/devices/devices-grid-filters.js +15 -4
- package/dist/components/features/filters-dropdown.d.ts.map +1 -1
- package/dist/components/features/filters-dropdown.js +6 -5
- package/dist/components/features/index.cjs +32 -32
- package/dist/components/features/model-token-rates.js +1 -1
- package/dist/components/features/notifications/notification-drawer.d.ts.map +1 -1
- package/dist/components/features/notifications/notification-drawer.js +1 -0
- package/dist/components/features/notifications/notification-tile.js +1 -1
- package/dist/components/features/paths-display.js +1 -1
- package/dist/components/features/remote-session/remote-session-events.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-session-events.js +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.js +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.js +1 -1
- package/dist/components/features/select-button.js +0 -1
- package/dist/components/features/tags-selector.js +1 -1
- package/dist/components/help-center-pages/index.cjs +163 -163
- package/dist/components/index.cjs +205 -204
- package/dist/components/loading/loading-region.d.ts.map +1 -1
- package/dist/components/loading/loading-region.js +2 -2
- package/dist/components/meeting-scheduler/index.cjs +187 -187
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/navigation/mobile-burger-menu.d.ts.map +1 -1
- package/dist/components/navigation/mobile-burger-menu.js +2 -1
- package/dist/components/navigation/multi-level-navigation.d.ts.map +1 -1
- package/dist/components/navigation/multi-level-navigation.js +4 -2
- package/dist/components/navigation/navigation-sidebar-item.js +3 -3
- package/dist/components/onboarding-guides/index.cjs +35 -35
- package/dist/components/product-demo/index.cjs +45 -45
- package/dist/components/related-content/index.cjs +17 -17
- package/dist/components/tickets/index.cjs +39 -39
- package/dist/components/ui/allowed-domains-input.d.ts.map +1 -1
- package/dist/components/ui/allowed-domains-input.js +1 -0
- package/dist/components/ui/button/button-styles.d.ts +12 -4
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +99 -7
- package/dist/components/ui/button/button.d.ts +1 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +3 -0
- package/dist/components/ui/file-manager/file-manager-breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/file-manager/file-manager-breadcrumb.js +1 -0
- package/dist/components/ui/file-manager/index.cjs +56 -55
- package/dist/components/ui/file-upload.d.ts.map +1 -1
- package/dist/components/ui/file-upload.js +5 -3
- package/dist/components/ui/hidden-tags-popup.js +1 -1
- package/dist/components/ui/hover-dropdown.js +1 -1
- package/dist/components/ui/index.cjs +32 -32
- package/dist/components/ui/info-card.js +1 -1
- package/dist/components/ui/info-section.d.ts.map +1 -1
- package/dist/components/ui/info-section.js +1 -0
- package/dist/components/ui/loading-scope.d.ts.map +1 -1
- package/dist/components/ui/loading-scope.js +2 -2
- package/dist/components/ui/modal-v2.js +1 -1
- package/dist/components/ui/organization-card.d.ts.map +1 -1
- package/dist/components/ui/organization-card.js +2 -1
- package/dist/components/ui/page-actions.d.ts +2 -2
- package/dist/components/ui/page-actions.d.ts.map +1 -1
- package/dist/components/ui/password-input.js +1 -1
- package/dist/components/ui/service-card.js +3 -3
- package/dist/components/ui/tab-selector.d.ts.map +1 -1
- package/dist/components/ui/tab-selector.js +3 -3
- package/dist/components/ui/test-run.d.ts.map +1 -1
- package/dist/components/ui/test-run.js +2 -1
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea.js +2 -1
- package/dist/components/ui/ticket-attachments-list.d.ts.map +1 -1
- package/dist/components/ui/ticket-attachments-list.js +3 -2
- package/dist/components/ui/ticket-info-section.d.ts.map +1 -1
- package/dist/components/ui/ticket-info-section.js +1 -0
- package/dist/components/ui/ticket-note-card.d.ts.map +1 -1
- package/dist/components/ui/ticket-note-card.js +6 -4
- package/dist/components/ui/ticket-status-config-row.d.ts.map +1 -1
- package/dist/components/ui/ticket-status-config-row.js +1 -10
- package/dist/components/ui/toaster.js +1 -1
- package/dist/components/vendor-display-button.js +1 -1
- package/dist/{devices-TDKCKWRP.cjs → devices-DMMMEO2B.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-HEL4Z2FL.cjs → embeddable-chat-OSSPL7L4.cjs} +226 -204
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +48 -48
- package/dist/{knowledge-A5KJ4CAD.cjs → knowledge-XQQXVV6C.cjs} +33 -33
- package/dist/{logs-6WRBPIMM.cjs → logs-BHKMDCBP.cjs} +41 -41
- package/dist/{policies-ICRXHW3H.cjs → policies-5IY7QUED.cjs} +36 -36
- package/dist/{remote-session-MEV5JL2Z.cjs → remote-session-IEOWFBF7.cjs} +17 -17
- package/dist/{scripts-AZVCZE6C.cjs → scripts-ZQXRBGVK.cjs} +39 -39
- package/dist/{software-update-4ZBCGJGA.cjs → software-update-RGFRYL3N.cjs} +36 -36
- package/dist/{tickets-board-BJPQD3HE.cjs → tickets-board-EYKLSB36.cjs} +17 -17
- package/dist/{video-file-player-DETXW4OJ.cjs → video-file-player-ZU666VUY.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/category-card.tsx +2 -0
- package/src/components/chat/ask-display.tsx +2 -2
- package/src/components/chat/chat-context-memory-bar.tsx +2 -2
- package/src/components/chat/chat-context-picker.tsx +4 -2
- package/src/components/chat/chat-input.tsx +3 -1
- package/src/components/chat/chat-nav-sidebar.tsx +10 -1
- package/src/components/chat/embeddable-chat.tsx +21 -4
- package/src/components/chat/guide-mode-banner.tsx +1 -1
- package/src/components/chat/mingo-welcome.tsx +1 -1
- package/src/components/features/capability-explorer.tsx +8 -1
- package/src/components/features/command-box.tsx +1 -1
- package/src/components/features/devices/devices-grid-filters.tsx +8 -1
- package/src/components/features/filters-dropdown.tsx +6 -1
- package/src/components/features/model-token-rates.tsx +1 -1
- package/src/components/features/notifications/notification-drawer.tsx +1 -0
- package/src/components/features/notifications/notification-tile.tsx +1 -1
- package/src/components/features/paths-display.tsx +1 -1
- package/src/components/features/remote-session/remote-session-events.tsx +2 -0
- package/src/components/features/scripts/schedule-form/schedule-script-picker-card.tsx +1 -1
- package/src/components/features/scripts/schedule-form/schedule-timing-fields.tsx +1 -1
- package/src/components/features/select-button.tsx +2 -2
- package/src/components/features/tags-selector.tsx +1 -1
- package/src/components/loading/loading-region.tsx +4 -1
- package/src/components/navigation/mobile-burger-menu.tsx +3 -1
- package/src/components/navigation/multi-level-navigation.tsx +6 -2
- package/src/components/navigation/navigation-sidebar-item.tsx +5 -5
- package/src/components/ui/allowed-domains-input.tsx +1 -0
- package/src/components/ui/button/button-styles.ts +106 -9
- package/src/components/ui/button/button.tsx +3 -0
- package/src/components/ui/file-manager/file-manager-breadcrumb.tsx +1 -0
- package/src/components/ui/file-upload.tsx +5 -3
- package/src/components/ui/hidden-tags-popup.tsx +1 -1
- package/src/components/ui/hover-dropdown.tsx +1 -1
- package/src/components/ui/info-card.tsx +1 -1
- package/src/components/ui/info-section.tsx +2 -0
- package/src/components/ui/loading-scope.tsx +2 -1
- package/src/components/ui/modal-v2.tsx +1 -1
- package/src/components/ui/organization-card.tsx +3 -1
- package/src/components/ui/page-actions.tsx +14 -2
- package/src/components/ui/password-input.tsx +1 -1
- package/src/components/ui/service-card.tsx +3 -3
- package/src/components/ui/tab-selector.tsx +5 -3
- package/src/components/ui/test-run.tsx +2 -1
- package/src/components/ui/textarea.tsx +3 -1
- package/src/components/ui/ticket-attachments-list.tsx +3 -2
- package/src/components/ui/ticket-info-section.tsx +1 -0
- package/src/components/ui/ticket-note-card.tsx +6 -4
- package/src/components/ui/ticket-status-config-row.tsx +1 -6
- package/src/components/ui/toaster.tsx +1 -1
- package/src/components/vendor-display-button.tsx +1 -1
- package/dist/case-study-card-CYJ3JXU6.cjs +0 -23
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkFS7CBRF4cjs = require('./chunk-FS7CBRF4.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkC7GIHB3Vcjs = require('./chunk-C7GIHB3V.cjs');
|
|
@@ -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 _chunkLUWYWYNCcjs = require('./chunk-LUWYWYNC.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
@@ -25,33 +25,33 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkDYF6XB27cjs = require('./chunk-DYF6XB27.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkZJS45HQZcjs = require('./chunk-ZJS45HQZ.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkCS5SZJFVcjs = require('./chunk-CS5SZJFV.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunk5WMRVMXHcjs = require('./chunk-5WMRVMXH.cjs');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
var
|
|
47
|
+
var _chunkNNNRN4OFcjs = require('./chunk-NNNRN4OF.cjs');
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunkFLS6DZENcjs = require('./chunk-FLS6DZEN.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunkMGEUZRNQcjs = require('./chunk-MGEUZRNQ.cjs');
|
|
55
55
|
|
|
56
56
|
// src/utils/date-utils.ts
|
|
57
57
|
var ZONED_DATE_FIELDS_MEDIUM_DATETIME = {
|
|
@@ -71,12 +71,12 @@ function formatTicketRelativeTime(iso) {
|
|
|
71
71
|
if (diffMin < 60) return `${diffMin} min ago`;
|
|
72
72
|
const diffHours = Math.floor(diffMin / 60);
|
|
73
73
|
if (diffHours < 24) return diffHours === 1 ? "1 hour ago" : `${diffHours} hours ago`;
|
|
74
|
-
return
|
|
74
|
+
return _chunkZJS45HQZcjs.formatDateWithTimezone.call(void 0, date, _chunkZJS45HQZcjs.VIEWER_TIMEZONE, "numeric", { viewerLocale: true });
|
|
75
75
|
}
|
|
76
76
|
function formatTicketFullTimestamp(iso) {
|
|
77
|
-
return
|
|
77
|
+
return _chunkZJS45HQZcjs.formatDateWithTimezone.call(void 0,
|
|
78
78
|
iso,
|
|
79
|
-
|
|
79
|
+
_chunkZJS45HQZcjs.VIEWER_TIMEZONE,
|
|
80
80
|
{ year: "numeric", month: "2-digit", day: "2-digit", hour: "numeric", minute: "2-digit" },
|
|
81
81
|
{ viewerLocale: true }
|
|
82
82
|
);
|
|
@@ -105,7 +105,7 @@ function formatRelativeTimeFrom(timestamp, now) {
|
|
|
105
105
|
const weeks = Math.floor(diffInDays / 7);
|
|
106
106
|
return `${weeks}w ago`;
|
|
107
107
|
}
|
|
108
|
-
return
|
|
108
|
+
return _chunkZJS45HQZcjs.formatDateWithTimezone.call(void 0, targetTime, null, {
|
|
109
109
|
month: "short",
|
|
110
110
|
day: "numeric",
|
|
111
111
|
year: targetTime.getUTCFullYear() !== now.getUTCFullYear() ? "numeric" : void 0
|
|
@@ -117,7 +117,7 @@ function formatAbsoluteDate(timestamp, options = {}) {
|
|
|
117
117
|
console.warn("\u26A0\uFE0F Invalid timestamp in formatAbsoluteDate:", timestamp);
|
|
118
118
|
return "Invalid date";
|
|
119
119
|
}
|
|
120
|
-
return
|
|
120
|
+
return _chunkZJS45HQZcjs.formatDateWithTimezone.call(void 0, targetTime, _nullishCoalesce(options.timeZone, () => ( null)), {
|
|
121
121
|
year: "numeric",
|
|
122
122
|
month: "short",
|
|
123
123
|
day: "numeric",
|
|
@@ -130,7 +130,7 @@ function formatDateTime(timestamp, options = {}) {
|
|
|
130
130
|
console.warn("\u26A0\uFE0F Invalid timestamp in formatDateTime:", timestamp);
|
|
131
131
|
return "Invalid date";
|
|
132
132
|
}
|
|
133
|
-
return
|
|
133
|
+
return _chunkZJS45HQZcjs.formatDateWithTimezone.call(void 0, targetTime, _nullishCoalesce(options.timeZone, () => ( null)), {
|
|
134
134
|
...ZONED_DATE_FIELDS_MEDIUM_DATETIME,
|
|
135
135
|
...options
|
|
136
136
|
});
|
|
@@ -175,8 +175,8 @@ function createUTCTimestamp() {
|
|
|
175
175
|
var _jsxruntime = require('react/jsx-runtime');
|
|
176
176
|
var SWATCH_CLASS = "inline-block size-4 shrink-0 rounded-sm";
|
|
177
177
|
function ColorSwatch({ color, className }) {
|
|
178
|
-
if (
|
|
179
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, className:
|
|
178
|
+
if (_chunkMGEUZRNQcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.UnifiedSkeleton, { "aria-hidden": true, className: _chunkMGEUZRNQcjs.cn.call(void 0, SWATCH_CLASS, className) });
|
|
179
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, className: _chunkMGEUZRNQcjs.cn.call(void 0, SWATCH_CLASS, className), style: { backgroundColor: color } });
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
// src/components/ui/ticket-status-tag.tsx
|
|
@@ -285,37 +285,37 @@ function TicketStatusTag({
|
|
|
285
285
|
disabledReason,
|
|
286
286
|
loading: loadingProp = false
|
|
287
287
|
}) {
|
|
288
|
-
const loading =
|
|
288
|
+
const loading = _chunkMGEUZRNQcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
289
289
|
const config = getTicketStatusConfig(status);
|
|
290
290
|
const customStyle = color ? {
|
|
291
291
|
"--tag-bg": color,
|
|
292
|
-
"--tag-bg-hover":
|
|
293
|
-
"--tag-bg-active":
|
|
294
|
-
color:
|
|
292
|
+
"--tag-bg-hover": _chunkDYF6XB27cjs.deriveHoverColor.call(void 0, color),
|
|
293
|
+
"--tag-bg-active": _chunkDYF6XB27cjs.deriveActiveColor.call(void 0, color),
|
|
294
|
+
color: _chunkDYF6XB27cjs.getReadableTextColor.call(void 0, color)
|
|
295
295
|
} : void 0;
|
|
296
296
|
const customColorClasses = color ? "bg-[var(--tag-bg)] hover:bg-[var(--tag-bg-hover)] active:bg-[var(--tag-bg-active)]" : void 0;
|
|
297
297
|
const tag = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
298
|
-
|
|
298
|
+
_chunkZJS45HQZcjs.Tag,
|
|
299
299
|
{
|
|
300
300
|
loading,
|
|
301
301
|
label: _nullishCoalesce(label, () => ( config.label)),
|
|
302
302
|
variant: _nullishCoalesce(variant, () => ( config.variant)),
|
|
303
303
|
icon: showIcon ? config.icon : void 0,
|
|
304
|
-
className:
|
|
304
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0, "w-fit shrink-0", customColorClasses, className),
|
|
305
305
|
style: customStyle
|
|
306
306
|
}
|
|
307
307
|
);
|
|
308
308
|
if (loading || disabled || !options || options.length === 0 || !onSelect) {
|
|
309
309
|
if (!loading && disabled && disabledReason) {
|
|
310
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
311
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
312
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
310
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFS7CBRF4cjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFS7CBRF4cjs.Tooltip, { children: [
|
|
311
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFS7CBRF4cjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-fit shrink-0 cursor-not-allowed", children: tag }) }),
|
|
312
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFS7CBRF4cjs.TooltipContent, { children: disabledReason })
|
|
313
313
|
] }) });
|
|
314
314
|
}
|
|
315
315
|
return tag;
|
|
316
316
|
}
|
|
317
317
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
318
|
-
|
|
318
|
+
_chunkFS7CBRF4cjs.ActionsMenuDropdown,
|
|
319
319
|
{
|
|
320
320
|
align: "start",
|
|
321
321
|
groups: [
|
|
@@ -333,22 +333,22 @@ function TicketStatusTag({
|
|
|
333
333
|
// The tag IS the control's look (its status colour), so the button contributes the click, the focus ring and
|
|
334
334
|
// the menu semantics and no surface of its own (`glyph` + `wrap`).
|
|
335
335
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
336
|
-
|
|
336
|
+
_chunkFLS6DZENcjs.Button,
|
|
337
337
|
{
|
|
338
338
|
variant: "glyph",
|
|
339
339
|
size: "wrap",
|
|
340
340
|
type: "button",
|
|
341
341
|
disabled: isPending,
|
|
342
342
|
"aria-label": "Change status",
|
|
343
|
-
className:
|
|
343
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0, "w-fit shrink-0", className),
|
|
344
344
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
345
345
|
"span",
|
|
346
346
|
{
|
|
347
347
|
style: customStyle,
|
|
348
|
-
className:
|
|
348
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0,
|
|
349
349
|
// The tag's variant styling, split into a label section and a separated chevron section (the common
|
|
350
350
|
// dropdown-button seam). Custom color: bg/hover/active from the CSS vars set above.
|
|
351
|
-
|
|
351
|
+
_chunkZJS45HQZcjs.tagVariants.call(void 0, { variant: _nullishCoalesce(variant, () => ( config.variant)) }),
|
|
352
352
|
"items-stretch justify-start gap-0 overflow-hidden p-0",
|
|
353
353
|
customColorClasses
|
|
354
354
|
),
|
|
@@ -374,13 +374,13 @@ function StatusLine({ tone, label, className }) {
|
|
|
374
374
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
375
375
|
"span",
|
|
376
376
|
{
|
|
377
|
-
className:
|
|
377
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0,
|
|
378
378
|
"inline-flex items-center gap-1.5 whitespace-nowrap text-h6",
|
|
379
379
|
tone === "waiting" ? "text-ods-warning" : tone === "error" ? "text-ods-error" : tone === "muted" ? "text-ods-text-secondary" : "text-ods-text-primary",
|
|
380
380
|
className
|
|
381
381
|
),
|
|
382
382
|
children: [
|
|
383
|
-
tone === "working" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
383
|
+
tone === "working" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "h-2 w-2 shrink-0 rounded-full bg-ods-flamingo-cyan", _chunkNNNRN4OFcjs.LIVE_PULSE_CLASS), "aria-hidden": true }),
|
|
384
384
|
tone === "success" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHFNBMV5Mcjs.CheckCircleIcon, { size: 16, className: "shrink-0 text-ods-success", "aria-hidden": true }),
|
|
385
385
|
tone === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRUHKTWGBcjs.XmarkCircleIcon, { size: 16, className: "shrink-0 text-ods-error", "aria-hidden": true }),
|
|
386
386
|
label
|
|
@@ -395,7 +395,7 @@ function ExpandChevron({ expanded, className }) {
|
|
|
395
395
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
396
396
|
_chunkSKI6NKOEcjs.Chevron02DownIcon,
|
|
397
397
|
{
|
|
398
|
-
className:
|
|
398
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0,
|
|
399
399
|
"h-4 w-4 shrink-0 text-ods-text-secondary transition-transform duration-200",
|
|
400
400
|
expanded && "rotate-180",
|
|
401
401
|
className
|
|
@@ -563,19 +563,19 @@ function ResultBlock({ result, className }) {
|
|
|
563
563
|
const formatted = formatToolResult(result);
|
|
564
564
|
if (!formatted.text) return null;
|
|
565
565
|
if (formatted.kind === "inline") {
|
|
566
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
566
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "flex w-full flex-col items-start gap-[var(--spacing-system-xxs)]", className), children: [
|
|
567
567
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary", children: "Result:" }),
|
|
568
568
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "break-all text-ods-text-primary", children: formatted.text })
|
|
569
569
|
] });
|
|
570
570
|
}
|
|
571
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
571
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "flex w-full flex-col items-start gap-[var(--spacing-system-xxs)]", className), children: [
|
|
572
572
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary", children: "Result:" }),
|
|
573
573
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "pre", { className: CODE_PRE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "code", { children: formatted.text }) })
|
|
574
574
|
] });
|
|
575
575
|
}
|
|
576
576
|
function CommandBlock({ command, className }) {
|
|
577
577
|
if (!command) return null;
|
|
578
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "pre", { className:
|
|
578
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "pre", { className: _chunkMGEUZRNQcjs.cn.call(void 0, CODE_PRE_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "code", { children: command }) });
|
|
579
579
|
}
|
|
580
580
|
|
|
581
581
|
// src/components/chat/approval-batch-message.tsx
|
|
@@ -623,12 +623,12 @@ function ToolCallRow({ call, expanded, onToggle, batchStatus, execution, showExe
|
|
|
623
623
|
const result = _optionalChain([execution, 'optionalAccess', _ => _.status]) === "done" ? execution.result : void 0;
|
|
624
624
|
const hasExpandableBody = args.length > 0 || typeof result === "string" && result.length > 0;
|
|
625
625
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col items-start border-b border-ods-border bg-ods-card last:border-b-0", children: [
|
|
626
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
627
|
-
/* @__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,
|
|
626
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFLS6DZENcjs.Button, { variant: "row", type: "button", onClick: onToggle, "aria-expanded": expanded, children: [
|
|
627
|
+
/* @__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, _chunkLUWYWYNCcjs.ToolIcon, { toolType, size: 16 }) }),
|
|
628
628
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
629
629
|
"div",
|
|
630
630
|
{
|
|
631
|
-
className:
|
|
631
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0,
|
|
632
632
|
"min-w-0 flex-1 text-h6",
|
|
633
633
|
expanded ? "whitespace-pre-wrap break-all text-ods-text-primary" : "line-clamp-2 max-h-10 break-all text-ods-text-secondary"
|
|
634
634
|
),
|
|
@@ -687,13 +687,13 @@ var ApprovalBatchMessage = _react.forwardRef.call(void 0,
|
|
|
687
687
|
};
|
|
688
688
|
const actionButtons = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
689
689
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
690
|
-
|
|
690
|
+
_chunkFLS6DZENcjs.Button,
|
|
691
691
|
{
|
|
692
692
|
size: "small-legacy",
|
|
693
693
|
variant: "accent",
|
|
694
694
|
onClick: handleApprove,
|
|
695
695
|
disabled: isProcessing,
|
|
696
|
-
className:
|
|
696
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0,
|
|
697
697
|
"bg-ods-accent hover:bg-ods-accent/90",
|
|
698
698
|
"text-ods-bg text-h5",
|
|
699
699
|
"h-8 px-[var(--spacing-system-xsf)]"
|
|
@@ -702,13 +702,13 @@ var ApprovalBatchMessage = _react.forwardRef.call(void 0,
|
|
|
702
702
|
}
|
|
703
703
|
),
|
|
704
704
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
705
|
-
|
|
705
|
+
_chunkFLS6DZENcjs.Button,
|
|
706
706
|
{
|
|
707
707
|
size: "small-legacy",
|
|
708
708
|
variant: "outline",
|
|
709
709
|
onClick: handleReject,
|
|
710
710
|
disabled: isProcessing,
|
|
711
|
-
className:
|
|
711
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0,
|
|
712
712
|
"border-ods-border bg-ods-card",
|
|
713
713
|
"text-ods-text-primary text-h5",
|
|
714
714
|
"h-8 px-[var(--spacing-system-xsf)] hover:bg-ods-bg"
|
|
@@ -719,7 +719,7 @@ var ApprovalBatchMessage = _react.forwardRef.call(void 0,
|
|
|
719
719
|
] });
|
|
720
720
|
if (isClient) {
|
|
721
721
|
const titles = data.toolCalls.map((c) => _optionalChain([c, 'access', _7 => _7.toolExplanation, 'optionalAccess', _8 => _8.trim, 'call', _9 => _9()]) || _optionalChain([c, 'access', _10 => _10.toolTitle, 'optionalAccess', _11 => _11.trim, 'call', _12 => _12()])).filter((s) => !!s);
|
|
722
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className:
|
|
722
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunkMGEUZRNQcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", CHAT_BLOCK_CLASS, className), ...props, children: [
|
|
723
723
|
titles.length > 0 ? titles.map((title, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full whitespace-pre-line break-words text-ods-text-primary text-h4", children: title }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: "Approval required" }),
|
|
724
724
|
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalWaitingLine, {}),
|
|
725
725
|
showFooterActions && (status === "pending" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: actionButtons }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) }))
|
|
@@ -730,7 +730,7 @@ var ApprovalBatchMessage = _react.forwardRef.call(void 0,
|
|
|
730
730
|
"div",
|
|
731
731
|
{
|
|
732
732
|
ref,
|
|
733
|
-
className:
|
|
733
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0,
|
|
734
734
|
"mb-[var(--spacing-system-xsf)] flex flex-col overflow-hidden",
|
|
735
735
|
CHAT_BLOCK_FRAME_CLASS,
|
|
736
736
|
className
|
|
@@ -740,7 +740,7 @@ var ApprovalBatchMessage = _react.forwardRef.call(void 0,
|
|
|
740
740
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
741
741
|
"div",
|
|
742
742
|
{
|
|
743
|
-
className:
|
|
743
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0, "flex flex-col", maxBodyHeight != null && "overflow-y-auto overscroll-contain"),
|
|
744
744
|
style: maxBodyHeight != null ? { maxHeight: maxBodyHeight } : void 0,
|
|
745
745
|
children: data.toolCalls.map((call) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
746
746
|
ToolCallRow,
|
|
@@ -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 = _chunkDYF6XB27cjs.AGENT_GLYPH_COLOR }) {
|
|
782
|
+
const identity = _chunkDYF6XB27cjs.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:
|
|
784
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: _chunkMGEUZRNQcjs.cn.call(void 0, "relative inline-block overflow-hidden rounded-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5WMRVMXHcjs.next_image_default, { src: identity.url, alt: "", fill: true, sizes: MARK_IMAGE_SIZES, className: _chunkDYF6XB27cjs.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, _chunkCS5SZJFVcjs.resolveIcon.call(void 0, identity.name), {
|
|
788
788
|
className,
|
|
789
789
|
"aria-hidden": true,
|
|
790
790
|
color,
|
|
@@ -795,11 +795,11 @@ function AgentMark({ agent, className = "", color = _chunkQ7HXTF2Ccjs.AGENT_GLYP
|
|
|
795
795
|
}
|
|
796
796
|
var AGENT_AVATAR_FRAME_CLASS = "inline-flex shrink-0 overflow-hidden rounded-full";
|
|
797
797
|
function AgentAvatar({ agent, size, className, loading = false }) {
|
|
798
|
-
if (
|
|
799
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
798
|
+
if (_chunkMGEUZRNQcjs.useLoadingScope.call(void 0, ) || loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AgentAvatarSkeleton, { size, className });
|
|
799
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkMGEUZRNQcjs.cn.call(void 0, AGENT_AVATAR_FRAME_CLASS, className), style: { width: size, height: size }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AgentMark, { agent, className: "h-full w-full" }) });
|
|
800
800
|
}
|
|
801
801
|
function AgentAvatarSkeleton({ size, className }) {
|
|
802
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
802
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNNNRN4OFcjs.UnifiedSkeleton, { as: "span", className: _chunkMGEUZRNQcjs.cn.call(void 0, AGENT_AVATAR_FRAME_CLASS, className), width: size, height: size });
|
|
803
803
|
}
|
|
804
804
|
|
|
805
805
|
|