@flamingo-stack/openframe-frontend-core 0.0.731 → 0.0.733
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/build/export-map.json +1 -1
- package/dist/{chunk-RAHRDJBP.cjs → chunk-3HPB4H4C.cjs} +4 -4
- package/dist/{chunk-2UNQJVYN.cjs → chunk-3KGICRH7.cjs} +1457 -1187
- package/dist/{chunk-A4HNF4MP.cjs → chunk-3UTPZW36.cjs} +89 -89
- package/dist/{chunk-GID62YEN.cjs → chunk-AAFW4STC.cjs} +3 -3
- package/dist/{chunk-XDBHGWFH.cjs → chunk-ATMBJBOI.cjs} +16 -16
- package/dist/{chunk-YDGBRI3Y.cjs → chunk-AV5533DH.cjs} +15 -15
- package/dist/{chunk-BFHLGEJK.cjs → chunk-BP6R5WDW.cjs} +63 -60
- package/dist/{chunk-CLILWI6O.cjs → chunk-CJVAA7KL.cjs} +32 -32
- package/dist/{chunk-YJFN2W7A.cjs → chunk-DUVOQHQI.cjs} +7 -7
- package/dist/{chunk-E3N24573.cjs → chunk-DUXLZPMJ.cjs} +9 -9
- package/dist/{chunk-TH4N726A.cjs → chunk-E26I4XH6.cjs} +17 -17
- package/dist/{chunk-Y4QRK3CB.cjs → chunk-EMG3T55N.cjs} +7 -7
- package/dist/{chunk-JK75ZZP3.cjs → chunk-EQORT7NK.cjs} +59 -59
- package/dist/chunk-FCGLSWKR.cjs +417 -0
- package/dist/{chunk-MANNIJ42.cjs → chunk-FICJS5OA.cjs} +6 -0
- package/dist/{chunk-QP6QS3YU.cjs → chunk-FNRMDDVN.cjs} +48 -50
- package/dist/{chunk-KLXHCNDC.cjs → chunk-FTTLBMHU.cjs} +3 -3
- package/dist/{chunk-JPZ4Y6X3.cjs → chunk-GB3CHAW7.cjs} +93 -93
- package/dist/{chunk-7DUXR4HL.cjs → chunk-GVTDVS5U.cjs} +3 -3
- package/dist/{chunk-ZV6473Z4.cjs → chunk-HSWHOCZ3.cjs} +20 -20
- package/dist/{chunk-53XZ6MJ5.cjs → chunk-IC4FT3A6.cjs} +28 -28
- package/dist/{chunk-6V4GEE55.cjs → chunk-J7JKPTGO.cjs} +12 -12
- package/dist/{chunk-FKKUQK4C.cjs → chunk-L4ZNR5V7.cjs} +43 -39
- package/dist/{chunk-NYY25425.cjs → chunk-MYBTNOS6.cjs} +2 -2
- package/dist/chunk-NTJE6SM6.cjs +28 -0
- package/dist/{chunk-RBOIGJYF.cjs → chunk-P3R23TOE.cjs} +35 -35
- package/dist/chunk-PX7FY655.cjs +114 -0
- package/dist/{chunk-YUXRIR45.cjs → chunk-SA7LDEVJ.cjs} +98 -50
- package/dist/{chunk-32ENYVFA.cjs → chunk-TIMCHP4X.cjs} +42 -42
- package/dist/{chunk-3SWLL4IM.cjs → chunk-U4T5NLZD.cjs} +8 -8
- package/dist/{chunk-HI7EFAFQ.cjs → chunk-XDWY6HAW.cjs} +28 -28
- package/dist/{chunk-25H2SZH7.cjs → chunk-XY632BCH.cjs} +4 -4
- package/dist/{chunk-HY2KTQSL.cjs → chunk-YIXKH2JO.cjs} +236 -236
- package/dist/{chunk-4YPV4OI4.cjs → chunk-ZBNA6TCW.cjs} +82 -82
- package/dist/{chunk-HLIJ3U2T.cjs → chunk-ZJNYWNCB.cjs} +23 -21
- package/dist/{chunk-HEOD765R.cjs → chunk-ZRYKDN2J.cjs} +32 -379
- package/dist/{cloud-tenants-SC4FNAC2.cjs → cloud-tenants-3GOGR3EN.cjs} +22 -22
- package/dist/components/agent-identity.d.ts +8 -0
- package/dist/components/agent-identity.d.ts.map +1 -1
- package/dist/components/agent-identity.js +13 -1
- package/dist/components/case-studies/index.cjs +35 -35
- package/dist/components/chat/embeddable-chat.d.ts +16 -0
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +5 -2
- package/dist/components/chat/index.cjs +16 -16
- package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
- package/dist/components/chat/utils/icon-library.js +6 -0
- package/dist/components/contact/index.cjs +23 -23
- package/dist/components/docs/index.cjs +26 -26
- package/dist/components/embeds/index.cjs +23 -23
- package/dist/components/faq/index.cjs +23 -23
- package/dist/components/features/index.cjs +22 -22
- package/dist/components/help-center-pages/index.cjs +138 -138
- package/dist/components/index.cjs +89 -82
- package/dist/components/meeting-scheduler/index.cjs +67 -67
- package/dist/components/navigation/index.cjs +25 -25
- package/dist/components/onboarding-guides/index.cjs +25 -25
- package/dist/components/product-demo/index.cjs +8 -8
- package/dist/components/product-demo/screens/remote-desktop-picture.d.ts.map +1 -1
- package/dist/components/product-demo/screens/remote-desktop-picture.js +2 -1
- package/dist/components/related-content/index.cjs +10 -10
- package/dist/components/tickets/index.cjs +26 -26
- package/dist/components/ui/device-wallpaper.d.ts +7 -0
- package/dist/components/ui/device-wallpaper.d.ts.map +1 -0
- package/dist/components/ui/device-wallpaper.js +5 -0
- package/dist/components/ui/feature-list.d.ts +9 -4
- package/dist/components/ui/feature-list.d.ts.map +1 -1
- package/dist/components/ui/feature-list.js +26 -35
- package/dist/components/ui/index.cjs +28 -22
- package/dist/components/ui/index.d.ts +3 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +3 -1
- package/dist/components/ui/notification-stack.d.ts +33 -0
- package/dist/components/ui/notification-stack.d.ts.map +1 -0
- package/dist/components/ui/notification-stack.js +78 -0
- package/dist/components/ui/numbered-step.d.ts +29 -0
- package/dist/components/ui/numbered-step.d.ts.map +1 -0
- package/dist/components/ui/numbered-step.js +57 -0
- package/dist/components/ui/phone-frame.d.ts +14 -9
- package/dist/components/ui/phone-frame.d.ts.map +1 -1
- package/dist/components/ui/phone-frame.js +50 -6
- package/dist/components/ui/phone-glyphs/lock-camera-glyph.d.ts +5 -0
- package/dist/components/ui/phone-glyphs/lock-camera-glyph.d.ts.map +1 -0
- package/dist/components/ui/phone-glyphs/lock-camera-glyph.js +14 -0
- package/dist/components/ui/phone-glyphs/lock-flashlight-glyph.d.ts +5 -0
- package/dist/components/ui/phone-glyphs/lock-flashlight-glyph.d.ts.map +1 -0
- package/dist/components/ui/phone-glyphs/lock-flashlight-glyph.js +14 -0
- package/dist/components/ui/phone-glyphs/status-bar-glyphs.d.ts +5 -0
- package/dist/components/ui/phone-glyphs/status-bar-glyphs.d.ts.map +1 -0
- package/dist/components/ui/phone-glyphs/status-bar-glyphs.js +68 -0
- package/dist/components/ui/searchable-select.d.ts +29 -3
- package/dist/components/ui/searchable-select.d.ts.map +1 -1
- package/dist/components/ui/searchable-select.js +101 -45
- package/dist/components/ui/snap-carousel.d.ts +5 -8
- package/dist/components/ui/snap-carousel.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.js +2 -27
- package/dist/components/ui/tab-navigation.d.ts +8 -1
- package/dist/components/ui/tab-navigation.d.ts.map +1 -1
- package/dist/components/ui/tab-navigation.js +30 -20
- package/dist/{devices-7MHSJNXS.cjs → devices-POZXTP7X.cjs} +23 -23
- package/dist/{embeddable-chat-VPIG3F7E.cjs → embeddable-chat-I3Y5GCCR.cjs} +96 -93
- package/dist/hooks/index.cjs +9 -9
- package/dist/hooks/ui/use-autoplay.d.ts +50 -13
- package/dist/hooks/ui/use-autoplay.d.ts.map +1 -1
- package/dist/hooks/ui/use-autoplay.js +76 -13
- package/dist/hooks/ui/use-in-view.d.ts +8 -0
- package/dist/hooks/ui/use-in-view.d.ts.map +1 -1
- package/dist/hooks/ui/use-in-view.js +21 -36
- package/dist/hooks/use-agent-identities.d.ts +6 -0
- package/dist/hooks/use-agent-identities.d.ts.map +1 -1
- package/dist/hooks/use-scenario-player.d.ts +26 -9
- package/dist/hooks/use-scenario-player.d.ts.map +1 -1
- package/dist/hooks/use-scenario-player.js +12 -9
- package/dist/index.cjs +58 -51
- package/dist/{knowledge-4DREGSOZ.cjs → knowledge-AP34IMXN.cjs} +23 -23
- package/dist/{logs-BWXNT2KP.cjs → logs-CEVMIOPW.cjs} +30 -30
- package/dist/{policies-MGFUI23M.cjs → policies-AMBMRCGB.cjs} +26 -26
- package/dist/{remote-session-O6QGXV2N.cjs → remote-session-Z4YZFG5E.cjs} +10 -9
- package/dist/{software-update-7LF7XEYC.cjs → software-update-Z3MWMSHI.cjs} +26 -26
- package/dist/{tickets-board-KNXK747O.cjs → tickets-board-JOSYLOS7.cjs} +13 -13
- package/package.json +1 -1
- package/src/components/agent-identity.tsx +20 -1
- package/src/components/chat/embeddable-chat.tsx +29 -2
- package/src/components/chat/utils/icon-library.tsx +7 -0
- package/src/components/product-demo/screens/remote-desktop-picture.tsx +2 -1
- package/src/components/ui/device-wallpaper.ts +7 -0
- package/src/components/ui/feature-list.tsx +24 -30
- package/src/components/ui/index.ts +3 -1
- package/src/components/ui/notification-stack.tsx +133 -0
- package/src/components/ui/numbered-step.tsx +81 -0
- package/src/components/ui/phone-frame.tsx +83 -19
- package/src/components/ui/phone-glyphs/lock-camera-glyph.tsx +14 -0
- package/src/components/ui/phone-glyphs/lock-flashlight-glyph.tsx +14 -0
- package/src/components/ui/phone-glyphs/status-bar-glyphs.tsx +45 -0
- package/src/components/ui/searchable-select.tsx +124 -32
- package/src/components/ui/snap-carousel.tsx +6 -38
- package/src/components/ui/tab-navigation.tsx +49 -21
- package/src/hooks/ui/use-autoplay.ts +144 -27
- package/src/hooks/ui/use-in-view.ts +31 -38
- package/src/hooks/use-agent-identities.ts +6 -0
- package/src/hooks/use-scenario-player.ts +44 -20
- package/dist/chunk-2WXLQ5R5.cjs +0 -99
- package/dist/chunk-BE2WAMG5.cjs +0 -54
- package/dist/chunk-LCTDHLDL.cjs +0 -43
- package/dist/components/ui/playback-toggle.d.ts +0 -24
- package/dist/components/ui/playback-toggle.d.ts.map +0 -1
- package/dist/components/ui/playback-toggle.js +0 -32
- package/src/components/ui/playback-toggle.tsx +0 -53
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk3HPB4H4Ccjs = require('./chunk-3HPB4H4C.cjs');
|
|
8
8
|
require('./chunk-24I6RFVU.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -58,15 +58,15 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
var
|
|
61
|
+
var _chunkYIXKH2JOcjs = require('./chunk-YIXKH2JO.cjs');
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
var
|
|
64
|
+
var _chunkZRYKDN2Jcjs = require('./chunk-ZRYKDN2J.cjs');
|
|
65
65
|
require('./chunk-HZJRERJW.cjs');
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
var
|
|
69
|
+
var _chunkDUXLZPMJcjs = require('./chunk-DUXLZPMJ.cjs');
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
var _chunkMJGX357Lcjs = require('./chunk-MJGX357L.cjs');
|
|
@@ -1870,8 +1870,8 @@ require('./chunk-LMBYZITR.cjs');
|
|
|
1870
1870
|
require('./chunk-TMVC7S2R.cjs');
|
|
1871
1871
|
require('./chunk-IYHH5EIO.cjs');
|
|
1872
1872
|
require('./chunk-XIBCMGBW.cjs');
|
|
1873
|
-
require('./chunk-
|
|
1874
|
-
require('./chunk-
|
|
1873
|
+
require('./chunk-SA7LDEVJ.cjs');
|
|
1874
|
+
require('./chunk-NTJE6SM6.cjs');
|
|
1875
1875
|
require('./chunk-JKX2C3I2.cjs');
|
|
1876
1876
|
|
|
1877
1877
|
|
|
@@ -1884,13 +1884,13 @@ require('./chunk-SKI6NKOE.cjs');
|
|
|
1884
1884
|
|
|
1885
1885
|
|
|
1886
1886
|
|
|
1887
|
-
var
|
|
1888
|
-
require('./chunk-
|
|
1887
|
+
var _chunkP3R23TOEcjs = require('./chunk-P3R23TOE.cjs');
|
|
1888
|
+
require('./chunk-FCGLSWKR.cjs');
|
|
1889
1889
|
require('./chunk-YADG5Q7C.cjs');
|
|
1890
|
-
require('./chunk-
|
|
1890
|
+
require('./chunk-MYBTNOS6.cjs');
|
|
1891
1891
|
|
|
1892
1892
|
|
|
1893
|
-
var
|
|
1893
|
+
var _chunkFTTLBMHUcjs = require('./chunk-FTTLBMHU.cjs');
|
|
1894
1894
|
require('./chunk-S5C3OZCO.cjs');
|
|
1895
1895
|
require('./chunk-32ASZMTV.cjs');
|
|
1896
1896
|
require('./chunk-OOYBIS7D.cjs');
|
|
@@ -1899,12 +1899,12 @@ require('./chunk-6VOOPMP5.cjs');
|
|
|
1899
1899
|
require('./chunk-ORO54HDF.cjs');
|
|
1900
1900
|
require('./chunk-RUHKTWGB.cjs');
|
|
1901
1901
|
require('./chunk-EAY6ZUES.cjs');
|
|
1902
|
-
require('./chunk-
|
|
1902
|
+
require('./chunk-PX7FY655.cjs');
|
|
1903
1903
|
require('./chunk-CW3ML76U.cjs');
|
|
1904
|
-
require('./chunk-
|
|
1904
|
+
require('./chunk-GVTDVS5U.cjs');
|
|
1905
1905
|
|
|
1906
1906
|
|
|
1907
|
-
var
|
|
1907
|
+
var _chunkFICJS5OAcjs = require('./chunk-FICJS5OA.cjs');
|
|
1908
1908
|
require('./chunk-VOX4E6AX.cjs');
|
|
1909
1909
|
require('./chunk-UR4K2NSL.cjs');
|
|
1910
1910
|
|
|
@@ -2128,7 +2128,7 @@ function splitCitedSources(sources, content) {
|
|
|
2128
2128
|
}
|
|
2129
2129
|
const cited = sources.filter((source) => firstMentionAt.has(source.index)).sort((a, b) => (_nullishCoalesce(firstMentionAt.get(a.index), () => ( 0))) - (_nullishCoalesce(firstMentionAt.get(b.index), () => ( 0))));
|
|
2130
2130
|
const uncited = sources.filter((source) => !firstMentionAt.has(source.index));
|
|
2131
|
-
return { cited:
|
|
2131
|
+
return { cited: _chunkYIXKH2JOcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunkYIXKH2JOcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2132
2132
|
}
|
|
2133
2133
|
|
|
2134
2134
|
// src/components/chat/utils/host-message.ts
|
|
@@ -2179,7 +2179,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
|
|
|
2179
2179
|
// src/components/chat/embeddable-chat.tsx
|
|
2180
2180
|
var _jsxruntime = require('react/jsx-runtime');
|
|
2181
2181
|
var HISTORY_RAIL_WIDTH = 320;
|
|
2182
|
-
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH +
|
|
2182
|
+
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunkYIXKH2JOcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
2183
2183
|
var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
|
|
2184
2184
|
var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
|
|
2185
2185
|
var DRAWER_DEFAULT_WIDTH_PX = 750;
|
|
@@ -2260,7 +2260,7 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
|
|
|
2260
2260
|
if (!input) return;
|
|
2261
2261
|
switch (actionId) {
|
|
2262
2262
|
case "browse":
|
|
2263
|
-
input.submit(
|
|
2263
|
+
input.submit(_chunkYIXKH2JOcjs.formatSingularLookupInvocation.call(void 0, cmdId));
|
|
2264
2264
|
return;
|
|
2265
2265
|
case "search":
|
|
2266
2266
|
input.setValue(`/${cmdId} `);
|
|
@@ -2286,7 +2286,7 @@ function SourceChip({
|
|
|
2286
2286
|
}) {
|
|
2287
2287
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2288
2288
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
2289
|
-
const cta =
|
|
2289
|
+
const cta = _chunkYIXKH2JOcjs.resolveSourceRowCTA.call(void 0,
|
|
2290
2290
|
{
|
|
2291
2291
|
sourceRepo: src.sourceRepo,
|
|
2292
2292
|
documentType: src.documentType,
|
|
@@ -2296,15 +2296,15 @@ function SourceChip({
|
|
|
2296
2296
|
targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
|
|
2297
2297
|
path: src.path
|
|
2298
2298
|
},
|
|
2299
|
-
|
|
2299
|
+
_chunkYIXKH2JOcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
2300
2300
|
);
|
|
2301
2301
|
const Icon = cta.icon;
|
|
2302
2302
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
2303
|
-
const chipClass =
|
|
2304
|
-
const decideTab = (href, targetPlatform) =>
|
|
2303
|
+
const chipClass = _chunkYIXKH2JOcjs.chatChipClass.call(void 0, { tone: "secondary" });
|
|
2304
|
+
const decideTab = (href, targetPlatform) => _chunkP3R23TOEcjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
|
|
2305
2305
|
if (src.items && src.items.length > 0) {
|
|
2306
2306
|
const dropdownItems = src.items.map((item) => {
|
|
2307
|
-
const itemCta =
|
|
2307
|
+
const itemCta = _chunkYIXKH2JOcjs.resolveSourceRowCTA.call(void 0,
|
|
2308
2308
|
{
|
|
2309
2309
|
sourceRepo: src.sourceRepo,
|
|
2310
2310
|
documentType: item.documentType,
|
|
@@ -2314,7 +2314,7 @@ function SourceChip({
|
|
|
2314
2314
|
targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
|
|
2315
2315
|
path: item.path
|
|
2316
2316
|
},
|
|
2317
|
-
|
|
2317
|
+
_chunkYIXKH2JOcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
2318
2318
|
);
|
|
2319
2319
|
const ItemIcon = itemCta.icon;
|
|
2320
2320
|
const itemChatRef = itemCta.chatRef;
|
|
@@ -2334,13 +2334,13 @@ function SourceChip({
|
|
|
2334
2334
|
};
|
|
2335
2335
|
});
|
|
2336
2336
|
const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
|
|
2337
|
-
const groupIndices = itemIndices.length > 0 ?
|
|
2337
|
+
const groupIndices = itemIndices.length > 0 ? _chunkYIXKH2JOcjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
|
|
2338
2338
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2339
|
-
|
|
2339
|
+
_chunk3HPB4H4Ccjs.HoverDropdown,
|
|
2340
2340
|
{
|
|
2341
2341
|
items: dropdownItems,
|
|
2342
2342
|
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2343
|
-
|
|
2343
|
+
_chunkYIXKH2JOcjs.NavLinkAnchorViaRuntime,
|
|
2344
2344
|
{
|
|
2345
2345
|
href,
|
|
2346
2346
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
|
|
@@ -2373,10 +2373,10 @@ function SourceChip({
|
|
|
2373
2373
|
] });
|
|
2374
2374
|
const wrapChip = (clickable) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center", children: [
|
|
2375
2375
|
clickable,
|
|
2376
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2376
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYIXKH2JOcjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
|
|
2377
2377
|
] });
|
|
2378
2378
|
const buildClickHandler = (href, path, targetPlatform, isNewTab) => (e) => {
|
|
2379
|
-
const handled =
|
|
2379
|
+
const handled = _chunkYIXKH2JOcjs.executeNavigation.call(void 0, {
|
|
2380
2380
|
event: e,
|
|
2381
2381
|
runtime,
|
|
2382
2382
|
href,
|
|
@@ -2387,14 +2387,14 @@ function SourceChip({
|
|
|
2387
2387
|
if (handled && !isNewTab && onClose) onClose();
|
|
2388
2388
|
};
|
|
2389
2389
|
if (cta.href && !!src.externalUrl) {
|
|
2390
|
-
const resolvedHref =
|
|
2390
|
+
const resolvedHref = _chunkYIXKH2JOcjs.resolveHrefForRuntime.call(void 0, cta.href, runtime);
|
|
2391
2391
|
const isNewTab = decideTab(resolvedHref, _nullishCoalesce(cta.targetPlatform, () => ( null)));
|
|
2392
2392
|
return wrapChip(
|
|
2393
2393
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2394
2394
|
_chunkV45KLJQPcjs.next_link_default,
|
|
2395
2395
|
{
|
|
2396
2396
|
href: resolvedHref,
|
|
2397
|
-
...
|
|
2397
|
+
..._chunkP3R23TOEcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
2398
2398
|
onClick: buildClickHandler(resolvedHref, null, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
2399
2399
|
className: chipClass,
|
|
2400
2400
|
children: chipBody(src.name)
|
|
@@ -2403,14 +2403,14 @@ function SourceChip({
|
|
|
2403
2403
|
);
|
|
2404
2404
|
}
|
|
2405
2405
|
if (cta.href) {
|
|
2406
|
-
const resolvedHref =
|
|
2406
|
+
const resolvedHref = _chunkYIXKH2JOcjs.resolveHrefForRuntime.call(void 0, cta.href, runtime);
|
|
2407
2407
|
const isNewTab = decideTab(resolvedHref, _nullishCoalesce(cta.targetPlatform, () => ( null)));
|
|
2408
2408
|
return wrapChip(
|
|
2409
2409
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2410
2410
|
_chunkV45KLJQPcjs.next_link_default,
|
|
2411
2411
|
{
|
|
2412
2412
|
href: resolvedHref,
|
|
2413
|
-
...
|
|
2413
|
+
..._chunkP3R23TOEcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
2414
2414
|
onClick: buildClickHandler(resolvedHref, src.path, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
2415
2415
|
className: chipClass,
|
|
2416
2416
|
title: displayName,
|
|
@@ -2522,7 +2522,7 @@ function EmbeddableChatInner({
|
|
|
2522
2522
|
defaultActiveMode,
|
|
2523
2523
|
shell = "drawer",
|
|
2524
2524
|
closable = true,
|
|
2525
|
-
appearance =
|
|
2525
|
+
appearance = _chunkDUXLZPMJcjs.CHAT_APPEARANCE.CLASSIC,
|
|
2526
2526
|
onCollapse,
|
|
2527
2527
|
collapseTo = "list",
|
|
2528
2528
|
onExpand,
|
|
@@ -2537,14 +2537,16 @@ function EmbeddableChatInner({
|
|
|
2537
2537
|
guidePendingPrompt,
|
|
2538
2538
|
onGuidePromptConsumed,
|
|
2539
2539
|
contextMemory,
|
|
2540
|
+
aboveComposer,
|
|
2541
|
+
onWhatToAsk,
|
|
2540
2542
|
handleRef
|
|
2541
2543
|
}) {
|
|
2542
2544
|
const shellLess = shell !== "drawer";
|
|
2543
|
-
const isV2 = appearance ===
|
|
2545
|
+
const isV2 = appearance === _chunkDUXLZPMJcjs.CHAT_APPEARANCE.V2;
|
|
2544
2546
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2545
2547
|
const source = _nullishCoalesce(runtime.source, () => ( ""));
|
|
2546
2548
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
2547
|
-
const { attachmentsEnabled, user: identityUser } =
|
|
2549
|
+
const { attachmentsEnabled, user: identityUser } = _chunkYIXKH2JOcjs.useChatIdentity.call(void 0, );
|
|
2548
2550
|
const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
|
|
2549
2551
|
_react.useEffect.call(void 0, () => {
|
|
2550
2552
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2598,11 +2600,11 @@ function EmbeddableChatInner({
|
|
|
2598
2600
|
const [quickActionPreview, setQuickActionPreview] = _react.useState.call(void 0, null);
|
|
2599
2601
|
const slashCommandsProp = _react.useMemo.call(void 0,
|
|
2600
2602
|
() => ({
|
|
2601
|
-
fetchCommands: (prefix, signal) =>
|
|
2603
|
+
fetchCommands: (prefix, signal) => _chunkYIXKH2JOcjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
|
|
2602
2604
|
resolveSourceIcon: (sourceId) => {
|
|
2603
|
-
const iconName =
|
|
2605
|
+
const iconName = _chunkYIXKH2JOcjs.getSourceIconName.call(void 0, sourceId);
|
|
2604
2606
|
if (!iconName) return void 0;
|
|
2605
|
-
return { Icon:
|
|
2607
|
+
return { Icon: _chunkFICJS5OAcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
|
|
2606
2608
|
},
|
|
2607
2609
|
onAction: (cmd, actionId) => {
|
|
2608
2610
|
dispatchSlashCommandAction(actionId, cmd.id, chatInputRef);
|
|
@@ -2629,7 +2631,7 @@ function EmbeddableChatInner({
|
|
|
2629
2631
|
},
|
|
2630
2632
|
[controlledActiveMode, onActiveModeChange]
|
|
2631
2633
|
);
|
|
2632
|
-
const { commands: commandsList, loaded: commandsLoaded } =
|
|
2634
|
+
const { commands: commandsList, loaded: commandsLoaded } = _chunkYIXKH2JOcjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
|
|
2633
2635
|
enabled: activeMode === "guide"
|
|
2634
2636
|
});
|
|
2635
2637
|
const commandsById = _react.useMemo.call(void 0, () => {
|
|
@@ -2640,7 +2642,7 @@ function EmbeddableChatInner({
|
|
|
2640
2642
|
const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
|
|
2641
2643
|
const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
|
|
2642
2644
|
const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
|
|
2643
|
-
const { config: emptyStateConfig, loading: emptyStateLoading } =
|
|
2645
|
+
const { config: emptyStateConfig, loading: emptyStateLoading } = _chunkYIXKH2JOcjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
|
|
2644
2646
|
enabled: activeMode === "guide" || !!activeAgentSlug
|
|
2645
2647
|
});
|
|
2646
2648
|
const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
|
|
@@ -2687,7 +2689,7 @@ function EmbeddableChatInner({
|
|
|
2687
2689
|
hasMoreMessages,
|
|
2688
2690
|
loadMoreMessages,
|
|
2689
2691
|
dialogCapabilities
|
|
2690
|
-
} =
|
|
2692
|
+
} = _chunkYIXKH2JOcjs.useUnifiedChat.call(void 0, {
|
|
2691
2693
|
modes: effectiveModes,
|
|
2692
2694
|
activeMode,
|
|
2693
2695
|
mingoStateOverride: mingoState,
|
|
@@ -2734,8 +2736,8 @@ function EmbeddableChatInner({
|
|
|
2734
2736
|
addFiles: addAttachmentFiles,
|
|
2735
2737
|
removeAttachment,
|
|
2736
2738
|
clear: clearAttachments
|
|
2737
|
-
} =
|
|
2738
|
-
const { panelRef: galleryPanelRef, modal: galleryModal } =
|
|
2739
|
+
} = _chunkYIXKH2JOcjs.useChatAttachments.call(void 0, );
|
|
2740
|
+
const { panelRef: galleryPanelRef, modal: galleryModal } = _chunkYIXKH2JOcjs.useChatAttachmentImageGallery.call(void 0, );
|
|
2739
2741
|
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
|
|
2740
2742
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
2741
2743
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
@@ -2850,7 +2852,7 @@ function EmbeddableChatInner({
|
|
|
2850
2852
|
const askAboutRef = _react.useRef.call(void 0, discussRef);
|
|
2851
2853
|
const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
|
|
2852
2854
|
const renderEntityCard = _react.useCallback.call(void 0,
|
|
2853
|
-
(reference) =>
|
|
2855
|
+
(reference) => _chunkYIXKH2JOcjs.renderChatInlineEntityCard.call(void 0, reference, {
|
|
2854
2856
|
onDiscuss: askAbout,
|
|
2855
2857
|
onDisplay: displayRef,
|
|
2856
2858
|
baseRoute: resolvedBaseRoute,
|
|
@@ -2860,7 +2862,7 @@ function EmbeddableChatInner({
|
|
|
2860
2862
|
[askAbout, displayRef, resolvedBaseRoute, chipBasePlatform, extras]
|
|
2861
2863
|
);
|
|
2862
2864
|
const mingoAssistantIcon = _react.useMemo.call(void 0,
|
|
2863
|
-
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2865
|
+
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP3R23TOEcjs.EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRYKDN2Jcjs.AgentMark, { agent: "mingo", className: "h-6 w-6" }),
|
|
2864
2866
|
[effectiveAssistantIcon]
|
|
2865
2867
|
);
|
|
2866
2868
|
const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
|
|
@@ -2877,7 +2879,7 @@ function EmbeddableChatInner({
|
|
|
2877
2879
|
if (composerLock) return;
|
|
2878
2880
|
let augmentedText = text;
|
|
2879
2881
|
if (readyAttachments.length > 0) {
|
|
2880
|
-
const markdown = readyAttachments.map((att) =>
|
|
2882
|
+
const markdown = readyAttachments.map((att) => _chunkYIXKH2JOcjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
|
|
2881
2883
|
augmentedText = `${text}${markdown}`;
|
|
2882
2884
|
}
|
|
2883
2885
|
void sendMessage(augmentedText, {
|
|
@@ -2916,7 +2918,7 @@ function EmbeddableChatInner({
|
|
|
2916
2918
|
// agent/persona (`icon_props.color`) wins; the built-in slug map
|
|
2917
2919
|
// (fae→pink, mingo→cyan) is only the fallback for unconfigured
|
|
2918
2920
|
// built-in agents.
|
|
2919
|
-
accent: _nullishCoalesce(
|
|
2921
|
+
accent: _nullishCoalesce(_chunkYIXKH2JOcjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunkYIXKH2JOcjs.getAgentAccent.call(void 0, activeAgentSlug)))
|
|
2920
2922
|
}));
|
|
2921
2923
|
}
|
|
2922
2924
|
return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
|
|
@@ -2964,7 +2966,7 @@ function EmbeddableChatInner({
|
|
|
2964
2966
|
unarchiveDialog: mingoCaps.unarchiveDialog
|
|
2965
2967
|
});
|
|
2966
2968
|
const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
|
|
2967
|
-
|
|
2969
|
+
_chunkYIXKH2JOcjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
|
|
2968
2970
|
_react.useEffect.call(void 0, () => {
|
|
2969
2971
|
const handler = (e) => {
|
|
2970
2972
|
const detail = e.detail;
|
|
@@ -2972,8 +2974,8 @@ function EmbeddableChatInner({
|
|
|
2972
2974
|
setIsOpen(true);
|
|
2973
2975
|
setTimeout(() => askAbout(detail.ref), 0);
|
|
2974
2976
|
};
|
|
2975
|
-
window.addEventListener(
|
|
2976
|
-
return () => window.removeEventListener(
|
|
2977
|
+
window.addEventListener(_chunkYIXKH2JOcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
2978
|
+
return () => window.removeEventListener(_chunkYIXKH2JOcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
2977
2979
|
}, [source, askAbout, setIsOpen]);
|
|
2978
2980
|
const pendingAskRef = _react.useRef.call(void 0, null);
|
|
2979
2981
|
const isDraft = activeDialogId == null && messages.length === 0;
|
|
@@ -3007,10 +3009,10 @@ function EmbeddableChatInner({
|
|
|
3007
3009
|
const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
|
|
3008
3010
|
if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
|
|
3009
3011
|
};
|
|
3010
|
-
window.addEventListener(
|
|
3011
|
-
return () => window.removeEventListener(
|
|
3012
|
+
window.addEventListener(_chunkYIXKH2JOcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3013
|
+
return () => window.removeEventListener(_chunkYIXKH2JOcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3012
3014
|
}, [source, setIsOpen, sendAskPrompt]);
|
|
3013
|
-
_react.useEffect.call(void 0, () =>
|
|
3015
|
+
_react.useEffect.call(void 0, () => _chunkYIXKH2JOcjs.chatListensForAskAiOpens.call(void 0, ), []);
|
|
3014
3016
|
const hasMessages = messages.length > 0;
|
|
3015
3017
|
const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
|
|
3016
3018
|
const dialogsLoadError = dialogsError && dialogs.length === 0;
|
|
@@ -3046,7 +3048,7 @@ function EmbeddableChatInner({
|
|
|
3046
3048
|
(message, index) => {
|
|
3047
3049
|
if (message.role !== "assistant") return null;
|
|
3048
3050
|
if (chatLoading && index === messages.length - 1) return null;
|
|
3049
|
-
const { cited, uncited } = splitCitedSources(message.sources,
|
|
3051
|
+
const { cited, uncited } = splitCitedSources(message.sources, _chunkYIXKH2JOcjs.flattenAssistantContent.call(void 0, message.content));
|
|
3050
3052
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
3051
3053
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3052
3054
|
SourceChips,
|
|
@@ -3064,7 +3066,7 @@ function EmbeddableChatInner({
|
|
|
3064
3066
|
);
|
|
3065
3067
|
const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
|
|
3066
3068
|
const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
|
|
3067
|
-
const splitMinWidth = (isV2 ?
|
|
3069
|
+
const splitMinWidth = (isV2 ? _chunkYIXKH2JOcjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunkYIXKH2JOcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
3068
3070
|
const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
|
|
3069
3071
|
_react.useEffect.call(void 0, () => {
|
|
3070
3072
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -3083,7 +3085,7 @@ function EmbeddableChatInner({
|
|
|
3083
3085
|
[splitMinWidth]
|
|
3084
3086
|
);
|
|
3085
3087
|
const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
|
|
3086
|
-
const railStorageHydrated =
|
|
3088
|
+
const railStorageHydrated = _chunkYIXKH2JOcjs.useIsHydrated.call(void 0, );
|
|
3087
3089
|
const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
|
|
3088
3090
|
if (railStorageHydrated && !railStorageRead) {
|
|
3089
3091
|
setRailStorageRead(true);
|
|
@@ -3194,7 +3196,7 @@ function EmbeddableChatInner({
|
|
|
3194
3196
|
}),
|
|
3195
3197
|
[resetToNewChat, contextMaxItems]
|
|
3196
3198
|
);
|
|
3197
|
-
const splitHeaderMenuItems =
|
|
3199
|
+
const splitHeaderMenuItems = _chunkYIXKH2JOcjs.chatDialogMenuItems.call(void 0, {
|
|
3198
3200
|
onCopyLink: headerOnCopyLink,
|
|
3199
3201
|
onRename: headerOnRename,
|
|
3200
3202
|
onCompact: headerOnCompact,
|
|
@@ -3247,8 +3249,8 @@ function EmbeddableChatInner({
|
|
|
3247
3249
|
onNewChat: leaveArchiveThen(handleNewChat),
|
|
3248
3250
|
onOpenArchive: headerOnOpenArchive && (archiveOpen ? closeArchive : headerOnOpenArchive),
|
|
3249
3251
|
archiveActive: archiveOpen,
|
|
3250
|
-
// The suggestions a new chat opens on.
|
|
3251
|
-
onWhatToAsk: leaveArchiveThen(handleNewChat),
|
|
3252
|
+
// The suggestions a new chat opens on, unless the host has a surface of its own.
|
|
3253
|
+
onWhatToAsk: leaveArchiveThen(_nullishCoalesce(onWhatToAsk, () => ( handleNewChat))),
|
|
3252
3254
|
statusOf: dialogStatusOf,
|
|
3253
3255
|
onRequestRename: mingoCaps.canRename ? setRenameTarget : void 0,
|
|
3254
3256
|
onRequestArchive: mingoCaps.canArchive ? setArchiveTarget : void 0,
|
|
@@ -3268,7 +3270,7 @@ function EmbeddableChatInner({
|
|
|
3268
3270
|
onRetry: reloadDialogs
|
|
3269
3271
|
};
|
|
3270
3272
|
const v2Header = isV2 && !stackedListView ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "col-start-2 row-start-1 min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3271
|
-
|
|
3273
|
+
_chunkYIXKH2JOcjs.MingoChatHeader,
|
|
3272
3274
|
{
|
|
3273
3275
|
title: headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3274
3276
|
subtitle: headerPersonName,
|
|
@@ -3287,7 +3289,7 @@ function EmbeddableChatInner({
|
|
|
3287
3289
|
const body = (
|
|
3288
3290
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
3289
3291
|
// only the thread `ChatMessageList` provides it to.
|
|
3290
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3292
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYIXKH2JOcjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5M5C6UV4cjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk5M5C6UV4cjs.CollisionBoundaryContext.Provider, { value: panelBoundary, children: [
|
|
3291
3293
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3292
3294
|
"div",
|
|
3293
3295
|
{
|
|
@@ -3295,7 +3297,7 @@ function EmbeddableChatInner({
|
|
|
3295
3297
|
"data-surface": isV2 ? "mingo" : void 0,
|
|
3296
3298
|
className: `flex h-full flex-col overflow-hidden transition-colors duration-200 ${!isV2 && (archiveOpen && !splitActive || stackedListView) ? "bg-ods-card" : "bg-ods-bg"} ${previewMode ? "pointer-events-none select-none" : ""}`,
|
|
3297
3299
|
children: archiveOpen && !splitActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3298
|
-
|
|
3300
|
+
_chunkYIXKH2JOcjs.ChatArchivePage,
|
|
3299
3301
|
{
|
|
3300
3302
|
dialogs: archivedDialogs,
|
|
3301
3303
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3325,7 +3327,7 @@ function EmbeddableChatInner({
|
|
|
3325
3327
|
narrow: true,
|
|
3326
3328
|
className: "col-start-1 row-span-3 row-start-1",
|
|
3327
3329
|
innerClassName: "flex min-h-0 flex-col",
|
|
3328
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3330
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYIXKH2JOcjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
|
|
3329
3331
|
}
|
|
3330
3332
|
),
|
|
3331
3333
|
isV2 ? v2Header : showWideHeader ? (
|
|
@@ -3349,7 +3351,7 @@ function EmbeddableChatInner({
|
|
|
3349
3351
|
// Back is a full-height leading cell, matching the other
|
|
3350
3352
|
// header cells (not a small inline chevron).
|
|
3351
3353
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3352
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3354
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYIXKH2JOcjs.ChatHeaderIconButton, { divider: "right", onClick: closeArchive, "aria-label": "Back to chats", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24 }) }),
|
|
3353
3355
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center px-[var(--spacing-system-mf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h3", children: "Chat Archive" }) })
|
|
3354
3356
|
] })
|
|
3355
3357
|
) : (
|
|
@@ -3359,7 +3361,7 @@ function EmbeddableChatInner({
|
|
|
3359
3361
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
3360
3362
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3361
3363
|
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3362
|
-
|
|
3364
|
+
_chunkYIXKH2JOcjs.ChatHeaderSearchField,
|
|
3363
3365
|
{
|
|
3364
3366
|
initialValue: mingoCaps.searchQuery,
|
|
3365
3367
|
onSearchChange: mingoCaps.onSearchChange,
|
|
@@ -3368,7 +3370,7 @@ function EmbeddableChatInner({
|
|
|
3368
3370
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3369
3371
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center px-[var(--spacing-system-mf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-ods-text-primary text-h3", children: "Current Chats" }) }),
|
|
3370
3372
|
mingoCaps.onSearchChange && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3371
|
-
|
|
3373
|
+
_chunkYIXKH2JOcjs.ChatHeaderIconButton,
|
|
3372
3374
|
{
|
|
3373
3375
|
onClick: () => setRailSearchOpen((o) => !o),
|
|
3374
3376
|
"aria-label": "Search chats",
|
|
@@ -3377,7 +3379,7 @@ function EmbeddableChatInner({
|
|
|
3377
3379
|
}
|
|
3378
3380
|
)
|
|
3379
3381
|
] }),
|
|
3380
|
-
headerOnOpenArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3382
|
+
headerOnOpenArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYIXKH2JOcjs.ChatHeaderIconButton, { onClick: headerOnOpenArchive, "aria-label": "Chat archive", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JKBT3LTcjs.ClockHistoryIcon, { size: 24 }) })
|
|
3381
3383
|
] })
|
|
3382
3384
|
) }),
|
|
3383
3385
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1", children: [
|
|
@@ -3400,7 +3402,7 @@ function EmbeddableChatInner({
|
|
|
3400
3402
|
headerAvatar ? (
|
|
3401
3403
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
3402
3404
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3403
|
-
|
|
3405
|
+
_chunkFTTLBMHUcjs.SquareAvatar,
|
|
3404
3406
|
{
|
|
3405
3407
|
variant: "round",
|
|
3406
3408
|
sizePx: 32,
|
|
@@ -3414,17 +3416,17 @@ function EmbeddableChatInner({
|
|
|
3414
3416
|
)
|
|
3415
3417
|
) : null
|
|
3416
3418
|
] }),
|
|
3417
|
-
isViewingArchived && headerOnRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3419
|
+
isViewingArchived && headerOnRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYIXKH2JOcjs.ChatHeaderIconButton, { onClick: headerOnRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
3418
3420
|
headerShowBack && !isViewingArchived && splitHeaderMenuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3419
3421
|
_chunkMJGX357Lcjs.ActionsMenuDropdown,
|
|
3420
3422
|
{
|
|
3421
3423
|
triggerAriaLabel: "Chat actions",
|
|
3422
3424
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
3423
3425
|
groups: [{ items: splitHeaderMenuItems }],
|
|
3424
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3426
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYIXKH2JOcjs.ChatHeaderIconButton, { "aria-label": "Chat actions", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 24 }) })
|
|
3425
3427
|
}
|
|
3426
3428
|
),
|
|
3427
|
-
closeControl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3429
|
+
closeControl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYIXKH2JOcjs.ChatHeaderIconButton, { onClick: closeControl, "aria-label": "Close", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { size: 24 }) })
|
|
3428
3430
|
] })
|
|
3429
3431
|
] })
|
|
3430
3432
|
) : (
|
|
@@ -3432,10 +3434,10 @@ function EmbeddableChatInner({
|
|
|
3432
3434
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
3433
3435
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
3434
3436
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
3435
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3437
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYIXKH2JOcjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
3436
3438
|
),
|
|
3437
3439
|
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3438
|
-
|
|
3440
|
+
_chunkYIXKH2JOcjs.GuideModeBanner,
|
|
3439
3441
|
{
|
|
3440
3442
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
|
|
3441
3443
|
}
|
|
@@ -3445,7 +3447,7 @@ function EmbeddableChatInner({
|
|
|
3445
3447
|
// Archive list inside the rail (header lives in the split
|
|
3446
3448
|
// header's left cell above). Right chat block stays put.
|
|
3447
3449
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3448
|
-
|
|
3450
|
+
_chunkYIXKH2JOcjs.ChatArchivePage,
|
|
3449
3451
|
{
|
|
3450
3452
|
embedded: true,
|
|
3451
3453
|
dialogs: archivedDialogs,
|
|
@@ -3459,7 +3461,7 @@ function EmbeddableChatInner({
|
|
|
3459
3461
|
}
|
|
3460
3462
|
)
|
|
3461
3463
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3462
|
-
|
|
3464
|
+
_chunkYIXKH2JOcjs.MingoHistoryRail,
|
|
3463
3465
|
{
|
|
3464
3466
|
dialogs,
|
|
3465
3467
|
activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
|
|
@@ -3486,7 +3488,7 @@ function EmbeddableChatInner({
|
|
|
3486
3488
|
// v2: the archive opens in the chat column under the chat's
|
|
3487
3489
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
3488
3490
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3489
|
-
|
|
3491
|
+
_chunkYIXKH2JOcjs.MingoArchiveList,
|
|
3490
3492
|
{
|
|
3491
3493
|
dialogs: archivedDialogs,
|
|
3492
3494
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3499,7 +3501,7 @@ function EmbeddableChatInner({
|
|
|
3499
3501
|
}
|
|
3500
3502
|
)
|
|
3501
3503
|
) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3502
|
-
|
|
3504
|
+
_chunkYIXKH2JOcjs.MingoChatRail,
|
|
3503
3505
|
{
|
|
3504
3506
|
...mingoRailProps,
|
|
3505
3507
|
onNewChat: () => setComposeOpen(true),
|
|
@@ -3518,7 +3520,7 @@ function EmbeddableChatInner({
|
|
|
3518
3520
|
// single-column view. No composer here; "Start New Chat" opens
|
|
3519
3521
|
// the compose view.
|
|
3520
3522
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3521
|
-
|
|
3523
|
+
_chunkYIXKH2JOcjs.MingoHistoryRail,
|
|
3522
3524
|
{
|
|
3523
3525
|
className: "duration-200 animate-in fade-in-0",
|
|
3524
3526
|
dialogs,
|
|
@@ -3558,14 +3560,14 @@ function EmbeddableChatInner({
|
|
|
3558
3560
|
// skeleton overflows a short panel and grows its OWN
|
|
3559
3561
|
// scrollbar — ugly. `fill` top-anchors + clips overflow so
|
|
3560
3562
|
// it reads as "the whole panel is loading" and never scrolls.
|
|
3561
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3563
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYIXKH2JOcjs.ChatMessageListSkeleton, { fullWidth: true, fill: previewMode, className: "flex-1" })
|
|
3562
3564
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3563
|
-
|
|
3565
|
+
_chunkYIXKH2JOcjs.ChatMessageList,
|
|
3564
3566
|
{
|
|
3565
3567
|
messages,
|
|
3566
3568
|
appearance,
|
|
3567
3569
|
isTyping: chatLoading,
|
|
3568
|
-
typingMessage: streamingProgress ?
|
|
3570
|
+
typingMessage: streamingProgress ? _chunkYIXKH2JOcjs.chatProgressLabel.call(void 0, streamingProgress) : void 0,
|
|
3569
3571
|
pendingApprovals,
|
|
3570
3572
|
autoScroll: !previewMode,
|
|
3571
3573
|
pinBottom: previewMode,
|
|
@@ -3578,7 +3580,7 @@ function EmbeddableChatInner({
|
|
|
3578
3580
|
renderMention,
|
|
3579
3581
|
renderAfterMessage: renderMessageSources,
|
|
3580
3582
|
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
3581
|
-
NavLinkAnchor:
|
|
3583
|
+
NavLinkAnchor: _chunkYIXKH2JOcjs.NavLinkAnchorViaRuntime,
|
|
3582
3584
|
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3583
3585
|
contentClassName: "max-w-none pb-0",
|
|
3584
3586
|
fullWidth: true,
|
|
@@ -3592,7 +3594,7 @@ function EmbeddableChatInner({
|
|
|
3592
3594
|
quick-action chips. Guide mode keeps the slash-command
|
|
3593
3595
|
onboarding list below. */
|
|
3594
3596
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3595
|
-
|
|
3597
|
+
_chunkYIXKH2JOcjs.MingoWelcome,
|
|
3596
3598
|
{
|
|
3597
3599
|
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
3598
3600
|
...mingoWelcome,
|
|
@@ -3607,7 +3609,7 @@ function EmbeddableChatInner({
|
|
|
3607
3609
|
+ slash-command onboarding list share one scroll region,
|
|
3608
3610
|
with a pinned quick-action chip row above the composer. */
|
|
3609
3611
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3610
|
-
|
|
3612
|
+
_chunkYIXKH2JOcjs.GuideWelcome,
|
|
3611
3613
|
{
|
|
3612
3614
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
3613
3615
|
subtitleLoading: emptyStateLoading,
|
|
@@ -3624,7 +3626,7 @@ function EmbeddableChatInner({
|
|
|
3624
3626
|
agentSlug: activeAgentSlug,
|
|
3625
3627
|
children: (chipCommands.length > 0 || !commandsLoaded) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-md border border-ods-border", children: [
|
|
3626
3628
|
!commandsLoaded && chipCommands.length === 0 && SKELETON_ROW_VARIANTS.map((variant, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3627
|
-
|
|
3629
|
+
_chunkYIXKH2JOcjs.MingoOnboardingCardSkeleton,
|
|
3628
3630
|
{
|
|
3629
3631
|
titleWidth: variant.titleWidth,
|
|
3630
3632
|
slashWidth: variant.slashWidth,
|
|
@@ -3633,7 +3635,7 @@ function EmbeddableChatInner({
|
|
|
3633
3635
|
`chip-skeleton-${i}`
|
|
3634
3636
|
)),
|
|
3635
3637
|
chipCommands.map((cmd) => {
|
|
3636
|
-
const Icon =
|
|
3638
|
+
const Icon = _chunkFICJS5OAcjs.resolveIcon.call(void 0, cmd.iconName);
|
|
3637
3639
|
const cmdId = cmd.id;
|
|
3638
3640
|
const label = _nullishCoalesce(cmd.label, () => ( `/${cmdId}`));
|
|
3639
3641
|
const cardActions = cmd.actions.map((action) => ({
|
|
@@ -3642,7 +3644,7 @@ function EmbeddableChatInner({
|
|
|
3642
3644
|
onClick: () => dispatchSlashCommandAction(action.id, cmdId, chatInputRef)
|
|
3643
3645
|
}));
|
|
3644
3646
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3645
|
-
|
|
3647
|
+
_chunkDUXLZPMJcjs.MingoOnboardingCard,
|
|
3646
3648
|
{
|
|
3647
3649
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 16 }),
|
|
3648
3650
|
title: label,
|
|
@@ -3660,8 +3662,9 @@ function EmbeddableChatInner({
|
|
|
3660
3662
|
},
|
|
3661
3663
|
contentViewKey
|
|
3662
3664
|
) }),
|
|
3665
|
+
aboveComposer != null && aboveComposer !== false && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 px-[var(--spacing-system-m)] pb-[var(--spacing-system-m)]", children: aboveComposer }),
|
|
3663
3666
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3664
|
-
|
|
3667
|
+
_chunkYIXKH2JOcjs.ChatAttachmentChipStrip,
|
|
3665
3668
|
{
|
|
3666
3669
|
attachments: stagedAttachments,
|
|
3667
3670
|
onRemove: removeAttachment,
|
|
@@ -3669,7 +3672,7 @@ function EmbeddableChatInner({
|
|
|
3669
3672
|
}
|
|
3670
3673
|
),
|
|
3671
3674
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3672
|
-
|
|
3675
|
+
_chunkYIXKH2JOcjs.ChatComposer,
|
|
3673
3676
|
{
|
|
3674
3677
|
archived: isViewingArchived,
|
|
3675
3678
|
lock: composerLock,
|
|
@@ -3720,7 +3723,7 @@ function EmbeddableChatInner({
|
|
|
3720
3723
|
),
|
|
3721
3724
|
galleryModal,
|
|
3722
3725
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3723
|
-
|
|
3726
|
+
_chunkYIXKH2JOcjs.ChatDialogModals,
|
|
3724
3727
|
{
|
|
3725
3728
|
renameTarget,
|
|
3726
3729
|
setRenameTarget,
|
|
@@ -3736,14 +3739,14 @@ function EmbeddableChatInner({
|
|
|
3736
3739
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
3737
3740
|
] }) }) })
|
|
3738
3741
|
);
|
|
3739
|
-
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3742
|
+
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYIXKH2JOcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
3740
3743
|
shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
|
|
3741
3744
|
sourceLabel,
|
|
3742
3745
|
" AI Assistant"
|
|
3743
3746
|
] }) }),
|
|
3744
3747
|
body
|
|
3745
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3746
|
-
|
|
3748
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3HPB4H4Ccjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYIXKH2JOcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3749
|
+
_chunk3HPB4H4Ccjs.DrawerContent,
|
|
3747
3750
|
{
|
|
3748
3751
|
side: "right",
|
|
3749
3752
|
flush: true,
|
|
@@ -3775,7 +3778,7 @@ function EmbeddableChatInner({
|
|
|
3775
3778
|
_chunkAZL332TKcjs.Button,
|
|
3776
3779
|
{
|
|
3777
3780
|
onClick: handleOpen,
|
|
3778
|
-
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3781
|
+
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRYKDN2Jcjs.AgentMark, { agent: "mingo", className: "h-5 w-5" }),
|
|
3779
3782
|
tabIndex: isOpen ? -1 : 0,
|
|
3780
3783
|
className: `pointer-events-auto !w-auto shadow-lg ${isOpen ? "!pointer-events-none" : ""}`,
|
|
3781
3784
|
children: "Ask AI"
|