@flamingo-stack/openframe-frontend-core 0.0.796 → 0.0.797
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-K6HYMHL6.cjs +23 -0
- package/dist/{chunk-QVC5CMC5.cjs → chunk-2JCY5KQL.cjs} +4 -4
- package/dist/{chunk-Y3IMXLLL.cjs → chunk-3H3CQ7BQ.cjs} +541 -538
- package/dist/{chunk-IONS6HDF.cjs → chunk-3NGJ7NPT.cjs} +61 -61
- package/dist/{chunk-ZRME3A2D.cjs → chunk-4M5JIVAH.cjs} +3 -3
- package/dist/{chunk-AT4C2YMA.cjs → chunk-4WIJI4AK.cjs} +17 -17
- package/dist/{chunk-UYOGZJPE.cjs → chunk-5CEXT3V7.cjs} +37 -37
- package/dist/{chunk-75PJ2SAZ.cjs → chunk-5RGGUQ4Y.cjs} +2 -2
- package/dist/{chunk-UCHO4BOS.cjs → chunk-6GCXQIUU.cjs} +5 -5
- package/dist/{chunk-GP7NV6BK.cjs → chunk-6UKH22NQ.cjs} +29 -29
- package/dist/{chunk-CC7NRWRF.cjs → chunk-7AMU2ZD2.cjs} +60 -60
- package/dist/{chunk-JC43ULIC.cjs → chunk-7GFKJGWH.cjs} +116 -116
- package/dist/{chunk-6YZNUHXT.cjs → chunk-7JWFMAQB.cjs} +8 -2
- package/dist/{chunk-PALMLL5T.cjs → chunk-7MLK7BGF.cjs} +10 -10
- package/dist/{chunk-TUD7BV6O.cjs → chunk-7MV23NNT.cjs} +54 -54
- package/dist/{chunk-K7I3YYYU.cjs → chunk-AHBTZ7DN.cjs} +44 -44
- package/dist/{chunk-ZMWSN2BD.cjs → chunk-BUCCV72E.cjs} +13 -13
- package/dist/{chunk-CWA6J7KC.cjs → chunk-BWR5ACK3.cjs} +45 -45
- package/dist/{chunk-VUP7ZGZS.cjs → chunk-CHF6PHOR.cjs} +46 -46
- package/dist/{chunk-6JCTKXHX.cjs → chunk-CO6FB4DR.cjs} +31 -31
- package/dist/{chunk-G24OX7AC.cjs → chunk-DTBIIFZG.cjs} +63 -63
- package/dist/{chunk-F64GLU75.cjs → chunk-E56LN23H.cjs} +205 -205
- package/dist/{chunk-QMDXG3VF.cjs → chunk-FFEE2ON2.cjs} +2015 -2015
- package/dist/{chunk-W4QITOT7.cjs → chunk-GAFNJDZV.cjs} +13 -13
- package/dist/{chunk-JRTDBPJT.cjs → chunk-GD47ZGOU.cjs} +3 -3
- package/dist/{chunk-HBAVHYXO.cjs → chunk-HATRCNXJ.cjs} +2 -2
- package/dist/{chunk-OKAHKZP2.cjs → chunk-IS77JFF6.cjs} +17 -17
- package/dist/{chunk-QVKWKY4O.cjs → chunk-JTIGKLKJ.cjs} +23 -23
- package/dist/{chunk-DRWPSN3A.cjs → chunk-KUXHXLJQ.cjs} +5 -5
- package/dist/{chunk-VYXNGADV.cjs → chunk-KWINW3FC.cjs} +44 -44
- package/dist/{chunk-XVVQJXOA.cjs → chunk-LAJNO2EW.cjs} +171 -171
- package/dist/{chunk-GD6RPLHX.cjs → chunk-LKQ33CMY.cjs} +3 -3
- package/dist/{chunk-N3J4U7ML.cjs → chunk-NBUHCGGG.cjs} +8 -8
- package/dist/{chunk-HJBJHQKE.cjs → chunk-NG3RKTQU.cjs} +16 -16
- package/dist/{chunk-HYF4LPXF.cjs → chunk-NL3G642U.cjs} +10 -10
- package/dist/{chunk-XFJ7BZDJ.cjs → chunk-NX4QOEPJ.cjs} +22 -22
- package/dist/{chunk-7SEY3FDF.cjs → chunk-OZUUCVDZ.cjs} +19 -19
- package/dist/{chunk-JXQNECXM.cjs → chunk-P4B6PVSG.cjs} +7 -7
- package/dist/{chunk-7VU4HHUR.cjs → chunk-PBL66EVT.cjs} +51 -51
- package/dist/{chunk-JGURZROB.cjs → chunk-QKXXHOOD.cjs} +321 -321
- package/dist/{chunk-NAJ24ODA.cjs → chunk-RD57WBJK.cjs} +4 -4
- package/dist/{chunk-HCXNFMLO.cjs → chunk-TTZEDDR5.cjs} +14 -14
- package/dist/{chunk-YFHKBIZT.cjs → chunk-UKLSEI7S.cjs} +6 -6
- package/dist/{chunk-QCN46LDL.cjs → chunk-VFCPLZFY.cjs} +110 -110
- package/dist/{chunk-CFXCCQ6T.cjs → chunk-VVLL37EM.cjs} +12 -12
- package/dist/{chunk-LL6PXI6C.cjs → chunk-XR323UBY.cjs} +4 -4
- package/dist/{chunk-UN6LC5PK.cjs → chunk-YBTORXFY.cjs} +110 -110
- package/dist/{chunk-6WXP5IKR.cjs → chunk-YHCC3BLP.cjs} +42 -42
- package/dist/{chunk-NRAH3M66.cjs → chunk-YMWK7GOC.cjs} +197 -197
- package/dist/{chunk-RFIBRGXG.cjs → chunk-YR74H7Z3.cjs} +7 -7
- package/dist/{chunk-RKWEFZ6P.cjs → chunk-ZD6SZLO2.cjs} +3 -3
- package/dist/{chunk-II4A2RUG.cjs → chunk-ZPTHTGHK.cjs} +62 -62
- package/dist/{cloud-tenants-BQUWLMYY.cjs → cloud-tenants-THCY3N2P.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/index.cjs +26 -26
- 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/index.cjs +32 -32
- package/dist/components/help-center-pages/index.cjs +163 -163
- package/dist/components/index.cjs +204 -204
- package/dist/components/meeting-scheduler/index.cjs +191 -191
- package/dist/components/navigation/index.cjs +35 -35
- 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/button/button-styles.d.ts +6 -0
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +7 -1
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +32 -32
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +6 -3
- package/dist/{devices-BFQOLI3D.cjs → devices-N4EF5QDS.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-INYF23ST.cjs → embeddable-chat-7Z2OQK3X.cjs} +115 -115
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +48 -48
- package/dist/{knowledge-GGYWTYTP.cjs → knowledge-TL4DSXYQ.cjs} +33 -33
- package/dist/{logs-NO55PTIO.cjs → logs-4VRUBGKE.cjs} +41 -41
- package/dist/{policies-AAFYTVOJ.cjs → policies-TLNVCQGG.cjs} +36 -36
- package/dist/{remote-session-2CNWLF3P.cjs → remote-session-4LYKEZSY.cjs} +17 -17
- package/dist/{scripts-H4ECJ65X.cjs → scripts-4LFWHIMH.cjs} +39 -39
- package/dist/{software-update-NEEGQBK3.cjs → software-update-J4ZXQABW.cjs} +36 -36
- package/dist/{tickets-board-CXYRAMDL.cjs → tickets-board-3FBVYSXR.cjs} +17 -17
- package/dist/{video-file-player-HZPMCCYF.cjs → video-file-player-2FMFCGXE.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/ui/button/button-styles.ts +11 -1
- package/src/components/ui/tabs.tsx +5 -2
- package/dist/case-study-card-KU4ZIONR.cjs +0 -23
|
@@ -204,6 +204,11 @@ var BUTTON_SIZE_CLASS = {
|
|
|
204
204
|
};
|
|
205
205
|
var KIND_FOCUS = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus";
|
|
206
206
|
var KIND_FOCUS_INSET = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-focus";
|
|
207
|
+
var TAB_FOCUS_CLASS = [
|
|
208
|
+
"outline-none focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
209
|
+
"focus-visible:text-ods-text-primary focus-visible:bg-gradient-to-b focus-visible:from-transparent",
|
|
210
|
+
"focus-visible:to-[color-mix(in_srgb,var(--color-accent-primary)_10%,transparent)]"
|
|
211
|
+
].join(" ");
|
|
207
212
|
var BUTTON_KIND_CLASS = {
|
|
208
213
|
// A control drawn as a form field (a date picker's, a searchable select's, a popup's trigger): Input's box, border
|
|
209
214
|
// and states, the value on the left.
|
|
@@ -279,7 +284,7 @@ var BUTTON_KIND_CLASS = {
|
|
|
279
284
|
"data-[emphasis=fade]:data-[state=active]:bg-gradient-to-b data-[emphasis=fade]:data-[state=active]:from-transparent data-[emphasis=fade]:data-[state=active]:to-[color-mix(in_srgb,var(--color-accent-primary)_10%,transparent)]",
|
|
280
285
|
"data-[emphasis=fade]:hover:bg-gradient-to-b data-[emphasis=fade]:hover:from-transparent data-[emphasis=fade]:hover:to-[color-mix(in_srgb,var(--color-accent-primary)_10%,transparent)]",
|
|
281
286
|
"disabled:cursor-not-allowed disabled:text-ods-text-disabled",
|
|
282
|
-
|
|
287
|
+
TAB_FOCUS_CLASS,
|
|
283
288
|
"[&_svg]:shrink-0"
|
|
284
289
|
].join(" "),
|
|
285
290
|
// A segment of a segmented control (`TabSelector`): the label on the strip, a hover fill, and the selected segment
|
|
@@ -356,4 +361,5 @@ var BUTTON_KIND_CLASS = {
|
|
|
356
361
|
|
|
357
362
|
|
|
358
363
|
|
|
359
|
-
|
|
364
|
+
|
|
365
|
+
exports.cn = cn; exports.LoadingScope = LoadingScope; exports.useLoadingScope = useLoadingScope; exports.LoadingWhen = LoadingWhen; exports.AnnouncedLoadingScope = AnnouncedLoadingScope; exports.InertWhileLoading = InertWhileLoading; exports.LOADING_NOOP = LOADING_NOOP; exports.LoadingStatus = LoadingStatus; exports.loadingItemProps = loadingItemProps; exports.LoadingItems = LoadingItems; exports.buttonSurfaceClasses = buttonSurfaceClasses; exports.outlineBorderClasses = outlineBorderClasses; exports.splitGlyphSizeBySize = splitGlyphSizeBySize; exports.splitDividerColorClasses = splitDividerColorClasses; exports.BUTTON_SIZE_CLASS = BUTTON_SIZE_CLASS; exports.TAB_FOCUS_CLASS = TAB_FOCUS_CLASS; exports.BUTTON_KIND_CLASS = BUTTON_KIND_CLASS;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkOZUUCVDZcjs = require('./chunk-OZUUCVDZ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,10 +12,10 @@ var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
|
12
12
|
var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkAHBTZ7DNcjs = require('./chunk-AHBTZ7DN.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk7JWFMAQBcjs = require('./chunk-7JWFMAQB.cjs');
|
|
19
19
|
|
|
20
20
|
// src/components/empty-state.tsx
|
|
21
21
|
var _lucidereact = require('lucide-react');
|
|
@@ -133,10 +133,10 @@ function EmptyState({
|
|
|
133
133
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-3 flex items-center justify-center content-md:mb-6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rounded-full border border-ods-border bg-ods-card p-3 content-md:p-6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 items-center justify-center text-ods-text-secondary content-md:h-16 content-md:w-16", children: defaultContent.icon }) }) }),
|
|
134
134
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "mb-2 text-ods-text-primary text-h3 content-md:mb-3", children: displayTitle }),
|
|
135
135
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "mb-4 max-w-md text-ods-text-secondary text-h6 content-md:mb-8", children: displayDescription }),
|
|
136
|
-
showCTA && ctaHref && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-3 w-full max-w-xs", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
137
|
-
showCTA && !ctaHref && smartCTA && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-3 w-full max-w-xs", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
136
|
+
showCTA && ctaHref && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-3 w-full max-w-xs", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { href: ctaHref, variant: ctaButtonVariant, className: "w-full", children: ctaText || "Contact us" }) }),
|
|
137
|
+
showCTA && !ctaHref && smartCTA && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mb-3 w-full max-w-xs", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { onClick: smartCTA.action, variant: ctaButtonVariant, className: "w-full", children: smartCTA.text }) }),
|
|
138
138
|
showBackButton && onGoBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full max-w-xs", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
139
|
-
|
|
139
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
140
140
|
{
|
|
141
141
|
onClick: onGoBack,
|
|
142
142
|
variant: "outline",
|
|
@@ -160,7 +160,7 @@ function UnifiedPagination({
|
|
|
160
160
|
}) {
|
|
161
161
|
const searchParams = _chunk7DNL734Scjs.useSearchParams.call(void 0, );
|
|
162
162
|
const pathname = _chunk7DNL734Scjs.usePathname.call(void 0, );
|
|
163
|
-
const loading =
|
|
163
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
164
164
|
const pageHref = (page) => {
|
|
165
165
|
const params = new URLSearchParams(searchParams.toString());
|
|
166
166
|
if (page <= 1) params.delete("page");
|
|
@@ -184,14 +184,14 @@ function UnifiedPagination({
|
|
|
184
184
|
}, 0);
|
|
185
185
|
};
|
|
186
186
|
if (loading) {
|
|
187
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
187
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOZUUCVDZcjs.Pagination, { loading: true, currentPage, totalPages, onPageChange: handlePageChange }) });
|
|
188
188
|
}
|
|
189
189
|
if (totalPages <= 1) {
|
|
190
|
-
return reserveSpace ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none invisible", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
190
|
+
return reserveSpace ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none invisible", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOZUUCVDZcjs.Pagination, { currentPage: 1, totalPages: 1, onPageChange: () => {
|
|
191
191
|
} }) }) }) : null;
|
|
192
192
|
}
|
|
193
193
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
194
|
-
|
|
194
|
+
_chunkOZUUCVDZcjs.Pagination,
|
|
195
195
|
{
|
|
196
196
|
currentPage,
|
|
197
197
|
totalPages,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkJTIGKLKJcjs = require('./chunk-JTIGKLKJ.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 _chunkHATRCNXJcjs = require('./chunk-HATRCNXJ.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 _chunk2JCY5KQLcjs = require('./chunk-2JCY5KQL.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunk6UKH22NQcjs = require('./chunk-6UKH22NQ.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunk5RGGUQ4Ycjs = require('./chunk-5RGGUQ4Y.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkKUXHXLJQcjs = require('./chunk-KUXHXLJQ.cjs');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
var
|
|
47
|
+
var _chunk4WIJI4AKcjs = require('./chunk-4WIJI4AK.cjs');
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunkAHBTZ7DNcjs = require('./chunk-AHBTZ7DN.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunk7JWFMAQBcjs = require('./chunk-7JWFMAQB.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 _chunk6UKH22NQcjs.formatDateWithTimezone.call(void 0, date, _chunk6UKH22NQcjs.VIEWER_TIMEZONE, "numeric", { viewerLocale: true });
|
|
75
75
|
}
|
|
76
76
|
function formatTicketFullTimestamp(iso) {
|
|
77
|
-
return
|
|
77
|
+
return _chunk6UKH22NQcjs.formatDateWithTimezone.call(void 0,
|
|
78
78
|
iso,
|
|
79
|
-
|
|
79
|
+
_chunk6UKH22NQcjs.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 _chunk6UKH22NQcjs.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 _chunk6UKH22NQcjs.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 _chunk6UKH22NQcjs.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 (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { "aria-hidden": true, className: _chunk7JWFMAQBcjs.cn.call(void 0, SWATCH_CLASS, className) });
|
|
179
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, className: _chunk7JWFMAQBcjs.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 = _chunk7JWFMAQBcjs.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": _chunk2JCY5KQLcjs.deriveHoverColor.call(void 0, color),
|
|
293
|
+
"--tag-bg-active": _chunk2JCY5KQLcjs.deriveActiveColor.call(void 0, color),
|
|
294
|
+
color: _chunk2JCY5KQLcjs.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
|
+
_chunk6UKH22NQcjs.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: _chunk7JWFMAQBcjs.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, _chunkJTIGKLKJcjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkJTIGKLKJcjs.Tooltip, { children: [
|
|
311
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJTIGKLKJcjs.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, _chunkJTIGKLKJcjs.TooltipContent, { children: disabledReason })
|
|
313
313
|
] }) });
|
|
314
314
|
}
|
|
315
315
|
return tag;
|
|
316
316
|
}
|
|
317
317
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
318
|
-
|
|
318
|
+
_chunkJTIGKLKJcjs.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
|
+
_chunkAHBTZ7DNcjs.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: _chunk7JWFMAQBcjs.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: _chunk7JWFMAQBcjs.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
|
+
_chunk6UKH22NQcjs.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: _chunk7JWFMAQBcjs.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: _chunk7JWFMAQBcjs.cn.call(void 0, "h-2 w-2 shrink-0 rounded-full bg-ods-flamingo-cyan", _chunk4WIJI4AKcjs.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: _chunk7JWFMAQBcjs.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: _chunk7JWFMAQBcjs.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: _chunk7JWFMAQBcjs.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: _chunk7JWFMAQBcjs.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, _chunkAHBTZ7DNcjs.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, _chunkHATRCNXJcjs.ToolIcon, { toolType, size: 16 }) }),
|
|
628
628
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
629
629
|
"div",
|
|
630
630
|
{
|
|
631
|
-
className:
|
|
631
|
+
className: _chunk7JWFMAQBcjs.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
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
691
691
|
{
|
|
692
692
|
size: "small-legacy",
|
|
693
693
|
variant: "accent",
|
|
694
694
|
onClick: handleApprove,
|
|
695
695
|
disabled: isProcessing,
|
|
696
|
-
className:
|
|
696
|
+
className: _chunk7JWFMAQBcjs.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
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
706
706
|
{
|
|
707
707
|
size: "small-legacy",
|
|
708
708
|
variant: "outline",
|
|
709
709
|
onClick: handleReject,
|
|
710
710
|
disabled: isProcessing,
|
|
711
|
-
className:
|
|
711
|
+
className: _chunk7JWFMAQBcjs.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: _chunk7JWFMAQBcjs.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: _chunk7JWFMAQBcjs.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: _chunk7JWFMAQBcjs.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 = _chunk2JCY5KQLcjs.AGENT_GLYPH_COLOR }) {
|
|
782
|
+
const identity = _chunk2JCY5KQLcjs.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: _chunk7JWFMAQBcjs.cn.call(void 0, "relative inline-block overflow-hidden rounded-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKUXHXLJQcjs.next_image_default, { src: identity.url, alt: "", fill: true, sizes: MARK_IMAGE_SIZES, className: _chunk2JCY5KQLcjs.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, _chunk5RGGUQ4Ycjs.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 = _chunkQVC5CMC5cjs.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 (_chunk7JWFMAQBcjs.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: _chunk7JWFMAQBcjs.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, _chunk4WIJI4AKcjs.UnifiedSkeleton, { as: "span", className: _chunk7JWFMAQBcjs.cn.call(void 0, AGENT_AVATAR_FRAME_CLASS, className), width: size, height: size });
|
|
803
803
|
}
|
|
804
804
|
|
|
805
805
|
|