@flamingo-stack/openframe-frontend-core 0.0.812 → 0.0.814
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/case-study-card-NLT2JVI7.cjs +23 -0
- package/dist/{chunk-5QLDHPPU.cjs → chunk-25HBH4J6.cjs} +15 -15
- package/dist/{chunk-WFJDKP2Q.cjs → chunk-2H7XPKKT.cjs} +37 -37
- package/dist/{chunk-LKQ33CMY.cjs → chunk-2XCORRJV.cjs} +3 -3
- package/dist/{chunk-JTIGKLKJ.cjs → chunk-2XLPRW7V.cjs} +23 -23
- package/dist/{chunk-4WIJI4AK.cjs → chunk-3TOWCFIK.cjs} +20 -26
- package/dist/{chunk-KUXHXLJQ.cjs → chunk-3V5JWG27.cjs} +5 -5
- package/dist/{chunk-CUDJP7R7.cjs → chunk-467T3LCG.cjs} +63 -63
- package/dist/{chunk-COTJLBOS.cjs → chunk-4PMD3JUC.cjs} +19 -19
- package/dist/{chunk-YR74H7Z3.cjs → chunk-5SZ4ILU3.cjs} +7 -7
- package/dist/{chunk-7JWFMAQB.cjs → chunk-63A4GZMB.cjs} +18 -2
- package/dist/{chunk-ZD6SZLO2.cjs → chunk-6CZVQ72C.cjs} +3 -3
- package/dist/{chunk-PQ76VC2P.cjs → chunk-7ERD34HQ.cjs} +1073 -825
- package/dist/{chunk-VEN6MGNX.cjs → chunk-7O7EX7HQ.cjs} +45 -45
- package/dist/{chunk-FCFLZPID.cjs → chunk-AYMKG55T.cjs} +51 -51
- package/dist/{chunk-U2MHQBL4.cjs → chunk-BOS7OIC4.cjs} +30 -30
- package/dist/{chunk-NEDFRRLM.cjs → chunk-CVPHODOE.cjs} +171 -171
- package/dist/{chunk-JMRO7CK2.cjs → chunk-D23VVC3K.cjs} +45 -45
- package/dist/{chunk-D2EPUQ35.cjs → chunk-E5VF3IXO.cjs} +4 -4
- package/dist/{chunk-SFUNXMY3.cjs → chunk-EHANO6UE.cjs} +16 -16
- package/dist/{chunk-4ZTGCCNI.cjs → chunk-F4ZJRMMM.cjs} +20 -20
- package/dist/{chunk-AHBTZ7DN.cjs → chunk-FCZAUK4D.cjs} +52 -50
- package/dist/{chunk-RSLLS6C4.cjs → chunk-G2B6EA4J.cjs} +62 -62
- package/dist/{chunk-XB7VPJNY.cjs → chunk-G5CCYMCU.cjs} +3 -3
- package/dist/{chunk-VT2ACO3Z.cjs → chunk-GAR2IIU6.cjs} +349 -349
- package/dist/{chunk-743MM5B6.cjs → chunk-HM7VCQSX.cjs} +10 -10
- package/dist/{chunk-DA2TWDGJ.cjs → chunk-IBYT5I7K.cjs} +13 -13
- package/dist/{chunk-D322VUSH.cjs → chunk-IDEOLXY6.cjs} +2050 -2078
- package/dist/{chunk-VYLBW6ZV.cjs → chunk-IJCSQFLD.cjs} +209 -209
- package/dist/{chunk-XZKYU57A.cjs → chunk-IKB6AZPV.cjs} +8 -8
- package/dist/{chunk-VPYGK4AV.cjs → chunk-ILV243HM.cjs} +31 -31
- package/dist/{chunk-TS4PKCG3.cjs → chunk-JOKOQOLJ.cjs} +22 -22
- package/dist/{chunk-TCMUVY3M.cjs → chunk-KINBPFAC.cjs} +199 -199
- package/dist/{chunk-2IZHRVKD.cjs → chunk-KNGULKOU.cjs} +46 -46
- package/dist/{chunk-JMAKYJ3Q.cjs → chunk-LUR2ED43.cjs} +6 -6
- package/dist/{chunk-EPMAMFQE.cjs → chunk-M6VLEXN3.cjs} +119 -119
- package/dist/{chunk-GD47ZGOU.cjs → chunk-N3MBQRCQ.cjs} +3 -3
- package/dist/{chunk-ZFUNSXSH.cjs → chunk-NONMZ5WJ.cjs} +5 -5
- package/dist/{chunk-E64HJMY6.cjs → chunk-OBQ5WUNG.cjs} +67 -67
- package/dist/{chunk-6LZ4BI7Z.cjs → chunk-PAI4A3UM.cjs} +60 -60
- package/dist/{chunk-4IU462LR.cjs → chunk-QDDBOCG3.cjs} +2 -2
- package/dist/{chunk-5DBW6ERF.cjs → chunk-QOAA7ZHB.cjs} +2 -2
- package/dist/{chunk-7Q2PFKU3.cjs → chunk-QQT23JJ7.cjs} +4 -4
- package/dist/{chunk-4SZKJPQJ.cjs → chunk-RD66AGUI.cjs} +6 -6
- package/dist/{chunk-NL3G642U.cjs → chunk-S3QXLD4X.cjs} +10 -10
- package/dist/{chunk-7RM4NM2C.cjs → chunk-SWF6TNZ3.cjs} +14 -14
- package/dist/{chunk-P4B6PVSG.cjs → chunk-USUVHAQ7.cjs} +7 -7
- package/dist/{chunk-K7IX2NAG.cjs → chunk-UTRRECPV.cjs} +110 -110
- package/dist/{chunk-7HNZHENA.cjs → chunk-WJPEDREU.cjs} +13 -13
- package/dist/{chunk-SC3I3YWM.cjs → chunk-Y6MJMPHV.cjs} +126 -126
- package/dist/{chunk-OKI5KSUV.cjs → chunk-ZNZ6453J.cjs} +44 -44
- package/dist/{chunk-7TBXHZLB.cjs → chunk-ZRDVFADQ.cjs} +61 -61
- package/dist/{cloud-tenants-CW3I7AIM.cjs → cloud-tenants-JSH6AQMZ.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +8 -1
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +34 -2
- package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts +93 -0
- package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts.map +1 -0
- package/dist/components/chat/entity-cards/chat-card-disclosure.js +126 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts +5 -0
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +82 -55
- package/dist/components/chat/entity-cards/index.d.ts +1 -0
- package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/index.js +14 -0
- package/dist/components/chat/index.cjs +42 -26
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +3 -0
- package/dist/components/chat/inline-app-link-chip.d.ts +35 -0
- package/dist/components/chat/inline-app-link-chip.d.ts.map +1 -0
- package/dist/components/chat/inline-app-link-chip.js +37 -0
- package/dist/components/chat/source-action-button.d.ts +15 -1
- package/dist/components/chat/source-action-button.d.ts.map +1 -1
- package/dist/components/chat/source-action-button.js +40 -2
- 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/features/scripts/schedule-form/schedule-script-picker-card.d.ts.map +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.js +4 -2
- package/dist/components/features/select-button.js +1 -1
- package/dist/components/help-center-pages/index.cjs +165 -165
- package/dist/components/index.cjs +238 -220
- package/dist/components/meeting-scheduler/index.cjs +196 -196
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/onboarding-guides/index.cjs +35 -35
- package/dist/components/platform/ScriptArguments.d.ts +2 -0
- package/dist/components/platform/ScriptArguments.d.ts.map +1 -1
- package/dist/components/platform/ScriptArguments.js +3 -2
- 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 +8 -0
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +8 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +6 -4
- package/dist/components/ui/button/split-button.d.ts.map +1 -1
- package/dist/components/ui/button/split-button.js +3 -2
- package/dist/components/ui/checkbox-block.d.ts.map +1 -1
- package/dist/components/ui/checkbox-block.js +3 -1
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +52 -34
- package/dist/components/ui/input-styles.d.ts +2 -0
- package/dist/components/ui/input-styles.d.ts.map +1 -1
- package/dist/components/ui/input-styles.js +2 -0
- package/dist/{devices-KKRAB4Q2.cjs → devices-OCEOO6OW.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-5UO66U4F.cjs → embeddable-chat-YRKMPFDY.cjs} +150 -117
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +68 -50
- package/dist/{knowledge-Z2PTGBA3.cjs → knowledge-3GEE4LPY.cjs} +33 -33
- package/dist/{logs-6T5VK2TY.cjs → logs-7GGUZSDB.cjs} +41 -41
- package/dist/{policies-JPIC5YDE.cjs → policies-S74WTNL4.cjs} +36 -36
- package/dist/{remote-session-VBVUMIUP.cjs → remote-session-BQMTIQTU.cjs} +17 -17
- package/dist/{scripts-BSYJJFBQ.cjs → scripts-G4QAT4NZ.cjs} +39 -39
- package/dist/{software-update-KVEYYORC.cjs → software-update-IYHJABLP.cjs} +36 -36
- package/dist/{tickets-board-YRZ54JJS.cjs → tickets-board-TRXOX77R.cjs} +17 -17
- package/dist/{video-file-player-4QMVTOBE.cjs → video-file-player-IAMWBKEQ.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/chat/chat-message-enhanced.tsx +24 -1
- package/src/components/chat/embeddable-chat.tsx +61 -1
- package/src/components/chat/entity-cards/chat-card-disclosure.tsx +233 -0
- package/src/components/chat/entity-cards/dispatch.tsx +104 -63
- package/src/components/chat/entity-cards/index.ts +9 -0
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/inline-app-link-chip.tsx +79 -0
- package/src/components/chat/source-action-button.tsx +53 -2
- package/src/components/features/scripts/schedule-form/schedule-script-picker-card.tsx +4 -2
- package/src/components/features/select-button.tsx +1 -1
- package/src/components/platform/ScriptArguments.tsx +8 -1
- package/src/components/ui/button/button-styles.ts +18 -1
- package/src/components/ui/button/button.tsx +7 -4
- package/src/components/ui/button/split-button.tsx +3 -2
- package/src/components/ui/checkbox-block.tsx +3 -1
- package/src/components/ui/input-styles.ts +2 -0
- package/dist/case-study-card-3XLKCGLV.cjs +0 -23
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkEHANO6UEcjs = require('./chunk-EHANO6UE.cjs');
|
|
8
8
|
require('./chunk-24I6RFVU.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -57,20 +57,21 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var _chunkPQ76VC2Pcjs = require('./chunk-PQ76VC2P.cjs');
|
|
61
60
|
|
|
61
|
+
var _chunk7ERD34HQcjs = require('./chunk-7ERD34HQ.cjs');
|
|
62
62
|
|
|
63
|
-
var _chunkE64HJMY6cjs = require('./chunk-E64HJMY6.cjs');
|
|
64
|
-
require('./chunk-ZD6SZLO2.cjs');
|
|
65
63
|
|
|
64
|
+
var _chunkOBQ5WUNGcjs = require('./chunk-OBQ5WUNG.cjs');
|
|
65
|
+
require('./chunk-6CZVQ72C.cjs');
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var _chunk7TBXHZLBcjs = require('./chunk-7TBXHZLB.cjs');
|
|
71
70
|
|
|
71
|
+
var _chunkZRDVFADQcjs = require('./chunk-ZRDVFADQ.cjs');
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
|
|
74
|
+
var _chunk2XLPRW7Vcjs = require('./chunk-2XLPRW7V.cjs');
|
|
74
75
|
require('./chunk-ZOZR3QI2.cjs');
|
|
75
76
|
require('./chunk-OMV5S5PI.cjs');
|
|
76
77
|
require('./chunk-KHPX3KU4.cjs');
|
|
@@ -1872,7 +1873,7 @@ require('./chunk-TMVC7S2R.cjs');
|
|
|
1872
1873
|
require('./chunk-IYHH5EIO.cjs');
|
|
1873
1874
|
require('./chunk-XIBCMGBW.cjs');
|
|
1874
1875
|
require('./chunk-CNTBGJA7.cjs');
|
|
1875
|
-
require('./chunk-
|
|
1876
|
+
require('./chunk-QDDBOCG3.cjs');
|
|
1876
1877
|
require('./chunk-JKX2C3I2.cjs');
|
|
1877
1878
|
|
|
1878
1879
|
|
|
@@ -1883,18 +1884,18 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
1883
1884
|
require('./chunk-SKI6NKOE.cjs');
|
|
1884
1885
|
|
|
1885
1886
|
|
|
1886
|
-
var
|
|
1887
|
+
var _chunkGAR2IIU6cjs = require('./chunk-GAR2IIU6.cjs');
|
|
1887
1888
|
|
|
1888
1889
|
|
|
1889
1890
|
|
|
1890
1891
|
|
|
1891
|
-
var
|
|
1892
|
-
require('./chunk-
|
|
1893
|
-
require('./chunk-
|
|
1894
|
-
require('./chunk-
|
|
1892
|
+
var _chunkY6MJMPHVcjs = require('./chunk-Y6MJMPHV.cjs');
|
|
1893
|
+
require('./chunk-QQT23JJ7.cjs');
|
|
1894
|
+
require('./chunk-USUVHAQ7.cjs');
|
|
1895
|
+
require('./chunk-25HBH4J6.cjs');
|
|
1895
1896
|
|
|
1896
1897
|
|
|
1897
|
-
var
|
|
1898
|
+
var _chunkBOS7OIC4cjs = require('./chunk-BOS7OIC4.cjs');
|
|
1898
1899
|
require('./chunk-S5C3OZCO.cjs');
|
|
1899
1900
|
require('./chunk-32ASZMTV.cjs');
|
|
1900
1901
|
require('./chunk-OOYBIS7D.cjs');
|
|
@@ -1902,7 +1903,7 @@ require('./chunk-4IYNDV3G.cjs');
|
|
|
1902
1903
|
require('./chunk-6VOOPMP5.cjs');
|
|
1903
1904
|
require('./chunk-ORO54HDF.cjs');
|
|
1904
1905
|
require('./chunk-RUHKTWGB.cjs');
|
|
1905
|
-
require('./chunk-
|
|
1906
|
+
require('./chunk-RD66AGUI.cjs');
|
|
1906
1907
|
require('./chunk-FX35L4Y6.cjs');
|
|
1907
1908
|
require('./chunk-NTPX5GXI.cjs');
|
|
1908
1909
|
require('./chunk-MG3HJIGG.cjs');
|
|
@@ -1910,30 +1911,32 @@ require('./chunk-LC65AC6M.cjs');
|
|
|
1910
1911
|
require('./chunk-YSDB6HGQ.cjs');
|
|
1911
1912
|
|
|
1912
1913
|
|
|
1913
|
-
var
|
|
1914
|
+
var _chunkQOAA7ZHBcjs = require('./chunk-QOAA7ZHB.cjs');
|
|
1914
1915
|
require('./chunk-GI3MMBP3.cjs');
|
|
1915
|
-
require('./chunk-
|
|
1916
|
+
require('./chunk-3V5JWG27.cjs');
|
|
1916
1917
|
|
|
1917
1918
|
|
|
1918
1919
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
1919
|
-
require('./chunk-
|
|
1920
|
+
require('./chunk-N3MBQRCQ.cjs');
|
|
1920
1921
|
|
|
1921
1922
|
|
|
1922
1923
|
|
|
1923
|
-
var
|
|
1924
|
+
var _chunkS3QXLD4Xcjs = require('./chunk-S3QXLD4X.cjs');
|
|
1924
1925
|
|
|
1925
1926
|
|
|
1926
1927
|
var _chunkZ74QE57Tcjs = require('./chunk-Z74QE57T.cjs');
|
|
1927
1928
|
require('./chunk-XZJCBIYR.cjs');
|
|
1928
|
-
require('./chunk-
|
|
1929
|
-
|
|
1929
|
+
require('./chunk-2XCORRJV.cjs');
|
|
1930
|
+
|
|
1931
|
+
|
|
1932
|
+
var _chunk3TOWCFIKcjs = require('./chunk-3TOWCFIK.cjs');
|
|
1930
1933
|
|
|
1931
1934
|
|
|
1932
|
-
var
|
|
1935
|
+
var _chunkFCZAUK4Dcjs = require('./chunk-FCZAUK4D.cjs');
|
|
1933
1936
|
|
|
1934
1937
|
|
|
1935
1938
|
|
|
1936
|
-
var
|
|
1939
|
+
var _chunk63A4GZMBcjs = require('./chunk-63A4GZMB.cjs');
|
|
1937
1940
|
|
|
1938
1941
|
|
|
1939
1942
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -2008,7 +2011,7 @@ function useChatDialogManager({
|
|
|
2008
2011
|
setArchivedLoading(true);
|
|
2009
2012
|
}
|
|
2010
2013
|
try {
|
|
2011
|
-
const result = await fetchArchivedDialogs({ cursor, limit:
|
|
2014
|
+
const result = await fetchArchivedDialogs({ cursor, limit: _chunk7ERD34HQcjs.CHAT_HISTORY_PAGE_SIZE });
|
|
2012
2015
|
if (!isCurrent()) return;
|
|
2013
2016
|
setArchivedCursor(result.nextCursor);
|
|
2014
2017
|
setArchivedDialogs((prev) => cursor ? [...prev, ...result.dialogs] : result.dialogs);
|
|
@@ -2135,7 +2138,7 @@ function splitCitedSources(sources, content) {
|
|
|
2135
2138
|
}
|
|
2136
2139
|
const cited = sources.filter((source) => firstMentionAt.has(source.index)).sort((a, b) => (_nullishCoalesce(firstMentionAt.get(a.index), () => ( 0))) - (_nullishCoalesce(firstMentionAt.get(b.index), () => ( 0))));
|
|
2137
2140
|
const uncited = sources.filter((source) => !firstMentionAt.has(source.index));
|
|
2138
|
-
return { cited:
|
|
2141
|
+
return { cited: _chunk7ERD34HQcjs.groupSourcesByTable.call(void 0, cited), uncited: _chunk7ERD34HQcjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2139
2142
|
}
|
|
2140
2143
|
|
|
2141
2144
|
// src/components/chat/utils/host-message.ts
|
|
@@ -2186,7 +2189,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
|
|
|
2186
2189
|
// src/components/chat/embeddable-chat.tsx
|
|
2187
2190
|
var _jsxruntime = require('react/jsx-runtime');
|
|
2188
2191
|
var HISTORY_RAIL_WIDTH = 320;
|
|
2189
|
-
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH +
|
|
2192
|
+
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunk7ERD34HQcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
2190
2193
|
var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
|
|
2191
2194
|
var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
|
|
2192
2195
|
var DRAWER_DEFAULT_WIDTH_PX = 750;
|
|
@@ -2242,14 +2245,14 @@ function RailSlot({
|
|
|
2242
2245
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2243
2246
|
"div",
|
|
2244
2247
|
{
|
|
2245
|
-
className:
|
|
2248
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
2246
2249
|
// Border on the OUTER so the rail/chat divider tracks the animating
|
|
2247
2250
|
// boundary (and fades out with the panel) instead of vanishing early.
|
|
2248
2251
|
"shrink-0 overflow-hidden border-r border-ods-border transition-[width,opacity] ease-out",
|
|
2249
|
-
active ?
|
|
2252
|
+
active ? _chunk63A4GZMBcjs.cn.call(void 0, "duration-[240ms] opacity-100", width) : "duration-[300ms] w-0 opacity-0",
|
|
2250
2253
|
className
|
|
2251
2254
|
),
|
|
2252
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2255
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "h-full", width, innerClassName), children })
|
|
2253
2256
|
}
|
|
2254
2257
|
);
|
|
2255
2258
|
}
|
|
@@ -2259,7 +2262,7 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
|
|
|
2259
2262
|
if (!input) return;
|
|
2260
2263
|
switch (actionId) {
|
|
2261
2264
|
case "browse":
|
|
2262
|
-
input.submit(
|
|
2265
|
+
input.submit(_chunk7ERD34HQcjs.formatSingularLookupInvocation.call(void 0, cmdId));
|
|
2263
2266
|
return;
|
|
2264
2267
|
case "search":
|
|
2265
2268
|
input.setValue(`/${cmdId} `);
|
|
@@ -2276,6 +2279,17 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
|
|
|
2276
2279
|
}
|
|
2277
2280
|
}
|
|
2278
2281
|
}
|
|
2282
|
+
var ONE_TEXT_LINE = "\xA0";
|
|
2283
|
+
var SOURCE_CHIP_SKELETON_COUNT = 2;
|
|
2284
|
+
function SourceChipSkeleton({ className }) {
|
|
2285
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { "aria-hidden": true, className: _chunk63A4GZMBcjs.cn.call(void 0, "pointer-events-none inline-flex shrink-0 items-center", className), children: [
|
|
2286
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7ERD34HQcjs.chatChipClass.call(void 0, { tone: "secondary" }), children: [
|
|
2287
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk3TOWCFIKcjs.SKELETON_SURFACE_CLASS, "inline-block h-3.5 w-3.5 rounded-sm") }),
|
|
2288
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk3TOWCFIKcjs.SKELETON_SURFACE_CLASS, "w-28 rounded-sm"), children: ONE_TEXT_LINE })
|
|
2289
|
+
] }),
|
|
2290
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, _chunk3TOWCFIKcjs.SKELETON_SURFACE_CLASS, "-mr-1 ml-1 inline-block h-5 w-5 rounded-sm") })
|
|
2291
|
+
] });
|
|
2292
|
+
}
|
|
2279
2293
|
function SourceChip({
|
|
2280
2294
|
src,
|
|
2281
2295
|
baseRoute,
|
|
@@ -2285,7 +2299,7 @@ function SourceChip({
|
|
|
2285
2299
|
}) {
|
|
2286
2300
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2287
2301
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
2288
|
-
const cta =
|
|
2302
|
+
const cta = _chunk7ERD34HQcjs.resolveSourceRowCTA.call(void 0,
|
|
2289
2303
|
{
|
|
2290
2304
|
sourceRepo: src.sourceRepo,
|
|
2291
2305
|
documentType: src.documentType,
|
|
@@ -2295,15 +2309,15 @@ function SourceChip({
|
|
|
2295
2309
|
targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
|
|
2296
2310
|
path: src.path
|
|
2297
2311
|
},
|
|
2298
|
-
|
|
2312
|
+
_chunk7ERD34HQcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
2299
2313
|
);
|
|
2300
2314
|
const Icon = cta.icon;
|
|
2301
2315
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
2302
|
-
const chipClass =
|
|
2303
|
-
const decideTab = (href, targetPlatform) =>
|
|
2316
|
+
const chipClass = _chunk7ERD34HQcjs.chatChipClass.call(void 0, { tone: "secondary" });
|
|
2317
|
+
const decideTab = (href, targetPlatform) => _chunkY6MJMPHVcjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
|
|
2304
2318
|
if (src.items && src.items.length > 0) {
|
|
2305
2319
|
const dropdownItems = src.items.map((item) => {
|
|
2306
|
-
const itemCta =
|
|
2320
|
+
const itemCta = _chunk7ERD34HQcjs.resolveSourceRowCTA.call(void 0,
|
|
2307
2321
|
{
|
|
2308
2322
|
sourceRepo: src.sourceRepo,
|
|
2309
2323
|
documentType: item.documentType,
|
|
@@ -2313,7 +2327,7 @@ function SourceChip({
|
|
|
2313
2327
|
targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
|
|
2314
2328
|
path: item.path
|
|
2315
2329
|
},
|
|
2316
|
-
|
|
2330
|
+
_chunk7ERD34HQcjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
2317
2331
|
);
|
|
2318
2332
|
const ItemIcon = itemCta.icon;
|
|
2319
2333
|
const itemChatRef = itemCta.chatRef;
|
|
@@ -2333,13 +2347,13 @@ function SourceChip({
|
|
|
2333
2347
|
};
|
|
2334
2348
|
});
|
|
2335
2349
|
const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
|
|
2336
|
-
const groupIndices = itemIndices.length > 0 ?
|
|
2350
|
+
const groupIndices = itemIndices.length > 0 ? _chunk7ERD34HQcjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
|
|
2337
2351
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2338
|
-
|
|
2352
|
+
_chunkEHANO6UEcjs.HoverDropdown,
|
|
2339
2353
|
{
|
|
2340
2354
|
items: dropdownItems,
|
|
2341
2355
|
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2342
|
-
|
|
2356
|
+
_chunk7ERD34HQcjs.NavLinkAnchorViaRuntime,
|
|
2343
2357
|
{
|
|
2344
2358
|
href,
|
|
2345
2359
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
|
|
@@ -2372,10 +2386,10 @@ function SourceChip({
|
|
|
2372
2386
|
] });
|
|
2373
2387
|
const wrapChip = (clickable) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center", children: [
|
|
2374
2388
|
clickable,
|
|
2375
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2389
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ERD34HQcjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
|
|
2376
2390
|
] });
|
|
2377
2391
|
const buildClickHandler = (href, path, targetPlatform, isNewTab) => (e) => {
|
|
2378
|
-
const handled =
|
|
2392
|
+
const handled = _chunk7ERD34HQcjs.executeNavigation.call(void 0, {
|
|
2379
2393
|
event: e,
|
|
2380
2394
|
runtime,
|
|
2381
2395
|
href,
|
|
@@ -2386,14 +2400,14 @@ function SourceChip({
|
|
|
2386
2400
|
if (handled && !isNewTab && onClose) onClose();
|
|
2387
2401
|
};
|
|
2388
2402
|
if (cta.href && !!src.externalUrl) {
|
|
2389
|
-
const resolvedHref =
|
|
2403
|
+
const resolvedHref = _chunkGAR2IIU6cjs.resolveHrefForRuntime.call(void 0, cta.href, runtime);
|
|
2390
2404
|
const isNewTab = decideTab(resolvedHref, _nullishCoalesce(cta.targetPlatform, () => ( null)));
|
|
2391
2405
|
return wrapChip(
|
|
2392
2406
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2393
2407
|
_chunkV45KLJQPcjs.next_link_default,
|
|
2394
2408
|
{
|
|
2395
2409
|
href: resolvedHref,
|
|
2396
|
-
...
|
|
2410
|
+
..._chunkY6MJMPHVcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
2397
2411
|
onClick: buildClickHandler(resolvedHref, null, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
2398
2412
|
className: chipClass,
|
|
2399
2413
|
children: chipBody(src.name)
|
|
@@ -2402,14 +2416,14 @@ function SourceChip({
|
|
|
2402
2416
|
);
|
|
2403
2417
|
}
|
|
2404
2418
|
if (cta.href) {
|
|
2405
|
-
const resolvedHref =
|
|
2419
|
+
const resolvedHref = _chunkGAR2IIU6cjs.resolveHrefForRuntime.call(void 0, cta.href, runtime);
|
|
2406
2420
|
const isNewTab = decideTab(resolvedHref, _nullishCoalesce(cta.targetPlatform, () => ( null)));
|
|
2407
2421
|
return wrapChip(
|
|
2408
2422
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2409
2423
|
_chunkV45KLJQPcjs.next_link_default,
|
|
2410
2424
|
{
|
|
2411
2425
|
href: resolvedHref,
|
|
2412
|
-
...
|
|
2426
|
+
..._chunkY6MJMPHVcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
2413
2427
|
onClick: buildClickHandler(resolvedHref, src.path, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
2414
2428
|
className: chipClass,
|
|
2415
2429
|
title: displayName,
|
|
@@ -2428,9 +2442,16 @@ function SourceChips({
|
|
|
2428
2442
|
baseRoute,
|
|
2429
2443
|
chipBasePlatform,
|
|
2430
2444
|
onClose,
|
|
2431
|
-
onDiscuss
|
|
2445
|
+
onDiscuss,
|
|
2446
|
+
loading
|
|
2432
2447
|
}) {
|
|
2433
2448
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
2449
|
+
if (loading) {
|
|
2450
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "aria-hidden": true, className: "mt-2 flex flex-col gap-1.5 border-t border-ods-border pt-2", children: [
|
|
2451
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase text-ods-text-muted text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ERD34HQcjs.TextHold, { children: "Sources" }) }),
|
|
2452
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-nowrap gap-1.5 overflow-hidden", children: Array.from({ length: SOURCE_CHIP_SKELETON_COUNT }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SourceChipSkeleton, { className: i > 0 ? "max-md:hidden" : void 0 }, i)) })
|
|
2453
|
+
] });
|
|
2454
|
+
}
|
|
2434
2455
|
if (cited.length === 0) {
|
|
2435
2456
|
const fallback = uncited.slice(0, FALLBACK_TOP_RETRIEVED);
|
|
2436
2457
|
if (fallback.length === 0) return null;
|
|
@@ -2477,7 +2498,7 @@ function SourceChips({
|
|
|
2477
2498
|
src.index
|
|
2478
2499
|
)),
|
|
2479
2500
|
hasOverflow && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2480
|
-
|
|
2501
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
2481
2502
|
{
|
|
2482
2503
|
variant: "link",
|
|
2483
2504
|
size: "compact",
|
|
@@ -2524,7 +2545,7 @@ function EmbeddableChatInner({
|
|
|
2524
2545
|
defaultActiveMode,
|
|
2525
2546
|
shell = "drawer",
|
|
2526
2547
|
closable = true,
|
|
2527
|
-
appearance =
|
|
2548
|
+
appearance = _chunkZRDVFADQcjs.CHAT_APPEARANCE.CLASSIC,
|
|
2528
2549
|
onCollapse,
|
|
2529
2550
|
collapseTo = "list",
|
|
2530
2551
|
onExpand,
|
|
@@ -2547,11 +2568,11 @@ function EmbeddableChatInner({
|
|
|
2547
2568
|
handleRef
|
|
2548
2569
|
}) {
|
|
2549
2570
|
const shellLess = shell !== "drawer";
|
|
2550
|
-
const isV2 = appearance ===
|
|
2571
|
+
const isV2 = appearance === _chunkZRDVFADQcjs.CHAT_APPEARANCE.V2;
|
|
2551
2572
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2552
2573
|
const source = _nullishCoalesce(runtime.source, () => ( ""));
|
|
2553
2574
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
2554
|
-
const { attachmentsEnabled, user: identityUser } =
|
|
2575
|
+
const { attachmentsEnabled, user: identityUser } = _chunk7ERD34HQcjs.useChatIdentity.call(void 0, );
|
|
2555
2576
|
const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
|
|
2556
2577
|
_react.useEffect.call(void 0, () => {
|
|
2557
2578
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2605,11 +2626,11 @@ function EmbeddableChatInner({
|
|
|
2605
2626
|
const [quickActionPreview, setQuickActionPreview] = _react.useState.call(void 0, null);
|
|
2606
2627
|
const slashCommandsProp = _react.useMemo.call(void 0,
|
|
2607
2628
|
() => ({
|
|
2608
|
-
fetchCommands: (prefix, signal) =>
|
|
2629
|
+
fetchCommands: (prefix, signal) => _chunk7ERD34HQcjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
|
|
2609
2630
|
resolveSourceIcon: (sourceId) => {
|
|
2610
|
-
const iconName =
|
|
2631
|
+
const iconName = _chunk7ERD34HQcjs.getSourceIconName.call(void 0, sourceId);
|
|
2611
2632
|
if (!iconName) return void 0;
|
|
2612
|
-
return { Icon:
|
|
2633
|
+
return { Icon: _chunkQOAA7ZHBcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
|
|
2613
2634
|
},
|
|
2614
2635
|
onAction: (cmd, actionId) => {
|
|
2615
2636
|
dispatchSlashCommandAction(actionId, cmd.id, chatInputRef);
|
|
@@ -2636,7 +2657,7 @@ function EmbeddableChatInner({
|
|
|
2636
2657
|
},
|
|
2637
2658
|
[controlledActiveMode, onActiveModeChange]
|
|
2638
2659
|
);
|
|
2639
|
-
const { commands: commandsList, loaded: commandsLoaded } =
|
|
2660
|
+
const { commands: commandsList, loaded: commandsLoaded } = _chunk7ERD34HQcjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
|
|
2640
2661
|
enabled: activeMode === "guide"
|
|
2641
2662
|
});
|
|
2642
2663
|
const commandsById = _react.useMemo.call(void 0, () => {
|
|
@@ -2647,7 +2668,7 @@ function EmbeddableChatInner({
|
|
|
2647
2668
|
const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
|
|
2648
2669
|
const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
|
|
2649
2670
|
const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
|
|
2650
|
-
const { config: emptyStateConfig, loading: emptyStateLoading } =
|
|
2671
|
+
const { config: emptyStateConfig, loading: emptyStateLoading } = _chunk7ERD34HQcjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
|
|
2651
2672
|
enabled: activeMode === "guide" || !!activeAgentSlug
|
|
2652
2673
|
});
|
|
2653
2674
|
const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
|
|
@@ -2694,7 +2715,7 @@ function EmbeddableChatInner({
|
|
|
2694
2715
|
hasMoreMessages,
|
|
2695
2716
|
loadMoreMessages,
|
|
2696
2717
|
dialogCapabilities
|
|
2697
|
-
} =
|
|
2718
|
+
} = _chunk7ERD34HQcjs.useUnifiedChat.call(void 0, {
|
|
2698
2719
|
modes: effectiveModes,
|
|
2699
2720
|
activeMode,
|
|
2700
2721
|
mingoStateOverride: mingoState,
|
|
@@ -2741,8 +2762,8 @@ function EmbeddableChatInner({
|
|
|
2741
2762
|
addFiles: addAttachmentFiles,
|
|
2742
2763
|
removeAttachment,
|
|
2743
2764
|
clear: clearAttachments
|
|
2744
|
-
} =
|
|
2745
|
-
const { panelRef: galleryPanelRef, modal: galleryModal } =
|
|
2765
|
+
} = _chunk7ERD34HQcjs.useChatAttachments.call(void 0, );
|
|
2766
|
+
const { panelRef: galleryPanelRef, modal: galleryModal } = _chunk7ERD34HQcjs.useChatAttachmentImageGallery.call(void 0, );
|
|
2746
2767
|
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
|
|
2747
2768
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
2748
2769
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
@@ -2862,7 +2883,7 @@ function EmbeddableChatInner({
|
|
|
2862
2883
|
const askAboutRef = _react.useRef.call(void 0, discussRef);
|
|
2863
2884
|
const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
|
|
2864
2885
|
const renderEntityCard = _react.useCallback.call(void 0,
|
|
2865
|
-
(reference) =>
|
|
2886
|
+
(reference) => _chunk7ERD34HQcjs.renderChatInlineEntityCard.call(void 0, reference, {
|
|
2866
2887
|
onDiscuss: askAbout,
|
|
2867
2888
|
onDisplay: displayRef,
|
|
2868
2889
|
baseRoute: resolvedBaseRoute,
|
|
@@ -2872,7 +2893,7 @@ function EmbeddableChatInner({
|
|
|
2872
2893
|
[askAbout, displayRef, resolvedBaseRoute, chipBasePlatform, extras]
|
|
2873
2894
|
);
|
|
2874
2895
|
const mingoAssistantIcon = _react.useMemo.call(void 0,
|
|
2875
|
-
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2896
|
+
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY6MJMPHVcjs.EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.AgentMark, { agent: "mingo", className: "h-6 w-6" }),
|
|
2876
2897
|
[effectiveAssistantIcon]
|
|
2877
2898
|
);
|
|
2878
2899
|
const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
|
|
@@ -2884,13 +2905,13 @@ function EmbeddableChatInner({
|
|
|
2884
2905
|
pruneTimestampCache(timestampCache, new Set(rawMessages.map((m) => m.id)));
|
|
2885
2906
|
return mapped;
|
|
2886
2907
|
}, [rawMessages, guideUserName, guideUserAvatar, timestampCache]);
|
|
2887
|
-
const whatToAsk =
|
|
2908
|
+
const whatToAsk = _chunk7ERD34HQcjs.useWhatToAsk.call(void 0, {
|
|
2888
2909
|
dialogId: activeDialogId,
|
|
2889
2910
|
content: typeof whatToAskContent === "function" ? void 0 : whatToAskContent,
|
|
2890
2911
|
user: {
|
|
2891
2912
|
name: _nullishCoalesce(headerUserName, () => ( "You")),
|
|
2892
2913
|
avatar: _optionalChain([identityUser, 'optionalAccess', _40 => _40.avatarUrl, 'optionalAccess', _41 => _41.trim, 'call', _42 => _42()]) || _optionalChain([userAvatarUrl, 'optionalAccess', _43 => _43.trim, 'call', _44 => _44()]) || null,
|
|
2893
|
-
authorType:
|
|
2914
|
+
authorType: _chunkZRDVFADQcjs.AUTHOR_TYPE.ADMIN
|
|
2894
2915
|
},
|
|
2895
2916
|
assistant: { name: "Mingo", assistantType: "mingo" }
|
|
2896
2917
|
});
|
|
@@ -2903,7 +2924,7 @@ function EmbeddableChatInner({
|
|
|
2903
2924
|
noteWhatToAskSend();
|
|
2904
2925
|
let augmentedText = text;
|
|
2905
2926
|
if (readyAttachments.length > 0) {
|
|
2906
|
-
const markdown = readyAttachments.map((att) =>
|
|
2927
|
+
const markdown = readyAttachments.map((att) => _chunk7ERD34HQcjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
|
|
2907
2928
|
augmentedText = `${text}${markdown}`;
|
|
2908
2929
|
}
|
|
2909
2930
|
void sendMessage(augmentedText, {
|
|
@@ -2942,7 +2963,7 @@ function EmbeddableChatInner({
|
|
|
2942
2963
|
// agent/persona (`icon_props.color`) wins; the built-in slug map
|
|
2943
2964
|
// (fae→pink, mingo→cyan) is only the fallback for unconfigured
|
|
2944
2965
|
// built-in agents.
|
|
2945
|
-
accent: _nullishCoalesce(
|
|
2966
|
+
accent: _nullishCoalesce(_chunk7ERD34HQcjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunk7ERD34HQcjs.getAgentAccent.call(void 0, activeAgentSlug)))
|
|
2946
2967
|
}));
|
|
2947
2968
|
}
|
|
2948
2969
|
return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
|
|
@@ -2990,7 +3011,7 @@ function EmbeddableChatInner({
|
|
|
2990
3011
|
unarchiveDialog: mingoCaps.unarchiveDialog
|
|
2991
3012
|
});
|
|
2992
3013
|
const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
|
|
2993
|
-
|
|
3014
|
+
_chunk7ERD34HQcjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
|
|
2994
3015
|
_react.useEffect.call(void 0, () => {
|
|
2995
3016
|
const handler = (e) => {
|
|
2996
3017
|
const detail = e.detail;
|
|
@@ -2998,8 +3019,8 @@ function EmbeddableChatInner({
|
|
|
2998
3019
|
setIsOpen(true);
|
|
2999
3020
|
setTimeout(() => askAbout(detail.ref), 0);
|
|
3000
3021
|
};
|
|
3001
|
-
window.addEventListener(
|
|
3002
|
-
return () => window.removeEventListener(
|
|
3022
|
+
window.addEventListener(_chunk7ERD34HQcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3023
|
+
return () => window.removeEventListener(_chunk7ERD34HQcjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3003
3024
|
}, [source, askAbout, setIsOpen]);
|
|
3004
3025
|
const pendingAskRef = _react.useRef.call(void 0, null);
|
|
3005
3026
|
const isDraft = activeDialogId == null && messages.length === 0;
|
|
@@ -3033,10 +3054,10 @@ function EmbeddableChatInner({
|
|
|
3033
3054
|
const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
|
|
3034
3055
|
if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
|
|
3035
3056
|
};
|
|
3036
|
-
window.addEventListener(
|
|
3037
|
-
return () => window.removeEventListener(
|
|
3057
|
+
window.addEventListener(_chunk7ERD34HQcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3058
|
+
return () => window.removeEventListener(_chunk7ERD34HQcjs.ASK_AI_OPEN_EVENT, handler);
|
|
3038
3059
|
}, [source, setIsOpen, sendAskPrompt]);
|
|
3039
|
-
_react.useEffect.call(void 0, () =>
|
|
3060
|
+
_react.useEffect.call(void 0, () => _chunk7ERD34HQcjs.chatListensForAskAiOpens.call(void 0, ), []);
|
|
3040
3061
|
const hasMessages = messages.length > 0;
|
|
3041
3062
|
const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
|
|
3042
3063
|
const dialogsLoadError = dialogsError && dialogs.length === 0;
|
|
@@ -3072,8 +3093,20 @@ function EmbeddableChatInner({
|
|
|
3072
3093
|
const renderMessageSources = _react.useCallback.call(void 0,
|
|
3073
3094
|
(message, index) => {
|
|
3074
3095
|
if (message.role !== "assistant") return null;
|
|
3075
|
-
if (chatLoading && index === messages.length - 1)
|
|
3076
|
-
|
|
3096
|
+
if (chatLoading && index === messages.length - 1) {
|
|
3097
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3098
|
+
SourceChips,
|
|
3099
|
+
{
|
|
3100
|
+
loading: true,
|
|
3101
|
+
cited: [],
|
|
3102
|
+
uncited: [],
|
|
3103
|
+
baseRoute: resolvedBaseRoute,
|
|
3104
|
+
chipBasePlatform,
|
|
3105
|
+
onClose: handleNavigationClose
|
|
3106
|
+
}
|
|
3107
|
+
) });
|
|
3108
|
+
}
|
|
3109
|
+
const { cited, uncited } = splitCitedSources(message.sources, _chunk7ERD34HQcjs.flattenAssistantContent.call(void 0, message.content));
|
|
3077
3110
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
3078
3111
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3079
3112
|
SourceChips,
|
|
@@ -3091,7 +3124,7 @@ function EmbeddableChatInner({
|
|
|
3091
3124
|
);
|
|
3092
3125
|
const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
|
|
3093
3126
|
const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
|
|
3094
|
-
const splitMinWidth = (isV2 ?
|
|
3127
|
+
const splitMinWidth = (isV2 ? _chunk7ERD34HQcjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunk7ERD34HQcjs.CHAT_BLOCK_MIN_WIDTH;
|
|
3095
3128
|
const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
|
|
3096
3129
|
_react.useEffect.call(void 0, () => {
|
|
3097
3130
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -3110,7 +3143,7 @@ function EmbeddableChatInner({
|
|
|
3110
3143
|
[splitMinWidth]
|
|
3111
3144
|
);
|
|
3112
3145
|
const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
|
|
3113
|
-
const railStorageHydrated =
|
|
3146
|
+
const railStorageHydrated = _chunk7ERD34HQcjs.useIsHydrated.call(void 0, );
|
|
3114
3147
|
const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
|
|
3115
3148
|
if (railStorageHydrated && !railStorageRead) {
|
|
3116
3149
|
setRailStorageRead(true);
|
|
@@ -3164,7 +3197,7 @@ function EmbeddableChatInner({
|
|
|
3164
3197
|
resetToNewChat();
|
|
3165
3198
|
}, [clearWhatToAskDraft, resetToNewChat]);
|
|
3166
3199
|
const activeDialogStatus = activeDialog && dialogStatusOf ? dialogStatusOf(activeDialog) : void 0;
|
|
3167
|
-
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 ||
|
|
3200
|
+
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 || _chunk7ERD34HQcjs.awaitsDecision.call(void 0, hostMessages);
|
|
3168
3201
|
const showWhatToAsk = (content) => {
|
|
3169
3202
|
whatToAsk.clearDraft();
|
|
3170
3203
|
resetToNewChat();
|
|
@@ -3260,7 +3293,7 @@ function EmbeddableChatInner({
|
|
|
3260
3293
|
}),
|
|
3261
3294
|
[resetToNewChat, contextMaxItems]
|
|
3262
3295
|
);
|
|
3263
|
-
const splitHeaderMenuItems =
|
|
3296
|
+
const splitHeaderMenuItems = _chunk7ERD34HQcjs.chatDialogMenuItems.call(void 0, {
|
|
3264
3297
|
onCopyLink: headerOnCopyLink,
|
|
3265
3298
|
onRename: headerOnRename,
|
|
3266
3299
|
onCompact: headerOnCompact,
|
|
@@ -3340,7 +3373,7 @@ function EmbeddableChatInner({
|
|
|
3340
3373
|
onRetry: reloadDialogs
|
|
3341
3374
|
};
|
|
3342
3375
|
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,
|
|
3343
|
-
|
|
3376
|
+
_chunk7ERD34HQcjs.MingoChatHeader,
|
|
3344
3377
|
{
|
|
3345
3378
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3346
3379
|
subtitle: archiveOpen ? void 0 : headerPersonName,
|
|
@@ -3360,7 +3393,7 @@ function EmbeddableChatInner({
|
|
|
3360
3393
|
const body = (
|
|
3361
3394
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
3362
3395
|
// only the thread `ChatMessageList` provides it to.
|
|
3363
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3396
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ERD34HQcjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.CollisionBoundaryContext.Provider, { value: panelBoundary, children: [
|
|
3364
3397
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3365
3398
|
"div",
|
|
3366
3399
|
{
|
|
@@ -3368,7 +3401,7 @@ function EmbeddableChatInner({
|
|
|
3368
3401
|
"data-surface": isV2 ? "mingo" : void 0,
|
|
3369
3402
|
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" : ""}`,
|
|
3370
3403
|
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,
|
|
3371
|
-
|
|
3404
|
+
_chunk7ERD34HQcjs.ChatArchivePage,
|
|
3372
3405
|
{
|
|
3373
3406
|
dialogs: archivedDialogs,
|
|
3374
3407
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3384,7 +3417,7 @@ function EmbeddableChatInner({
|
|
|
3384
3417
|
) }, "archive-view") : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3385
3418
|
"div",
|
|
3386
3419
|
{
|
|
3387
|
-
className:
|
|
3420
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3388
3421
|
"min-h-0 flex-1 duration-200 animate-in fade-in-0",
|
|
3389
3422
|
// v2: the list runs the full height beside a column of header,
|
|
3390
3423
|
// banner and chat; each child below takes its cell explicitly.
|
|
@@ -3398,7 +3431,7 @@ function EmbeddableChatInner({
|
|
|
3398
3431
|
narrow: true,
|
|
3399
3432
|
className: "col-start-1 row-span-3 row-start-1",
|
|
3400
3433
|
innerClassName: "flex min-h-0 flex-col",
|
|
3401
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3434
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ERD34HQcjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
|
|
3402
3435
|
}
|
|
3403
3436
|
),
|
|
3404
3437
|
isV2 ? v2Header : showWideHeader ? (
|
|
@@ -3427,7 +3460,7 @@ function EmbeddableChatInner({
|
|
|
3427
3460
|
// Back is a full-height leading cell, matching the other
|
|
3428
3461
|
// header cells (not a small inline chevron).
|
|
3429
3462
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3430
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3463
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: closeArchive, "aria-label": "Back to chats", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24 }) }),
|
|
3431
3464
|
/* @__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" }) })
|
|
3432
3465
|
] })
|
|
3433
3466
|
) : (
|
|
@@ -3437,7 +3470,7 @@ function EmbeddableChatInner({
|
|
|
3437
3470
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
3438
3471
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3439
3472
|
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3440
|
-
|
|
3473
|
+
_chunk7ERD34HQcjs.ChatHeaderSearchField,
|
|
3441
3474
|
{
|
|
3442
3475
|
initialValue: mingoCaps.searchQuery,
|
|
3443
3476
|
onSearchChange: mingoCaps.onSearchChange,
|
|
@@ -3446,7 +3479,7 @@ function EmbeddableChatInner({
|
|
|
3446
3479
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3447
3480
|
/* @__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" }) }),
|
|
3448
3481
|
mingoCaps.onSearchChange && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3449
|
-
|
|
3482
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
3450
3483
|
{
|
|
3451
3484
|
variant: "cell",
|
|
3452
3485
|
className: "w-14",
|
|
@@ -3458,7 +3491,7 @@ function EmbeddableChatInner({
|
|
|
3458
3491
|
)
|
|
3459
3492
|
] }),
|
|
3460
3493
|
headerOnOpenArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3461
|
-
|
|
3494
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
3462
3495
|
{
|
|
3463
3496
|
variant: "cell",
|
|
3464
3497
|
className: "w-14",
|
|
@@ -3473,7 +3506,7 @@ function EmbeddableChatInner({
|
|
|
3473
3506
|
),
|
|
3474
3507
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 divide-x divide-ods-border", children: [
|
|
3475
3508
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3476
|
-
|
|
3509
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
3477
3510
|
{
|
|
3478
3511
|
variant: "cell",
|
|
3479
3512
|
type: "button",
|
|
@@ -3492,7 +3525,7 @@ function EmbeddableChatInner({
|
|
|
3492
3525
|
headerAvatar ? (
|
|
3493
3526
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
3494
3527
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3495
|
-
|
|
3528
|
+
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
3496
3529
|
{
|
|
3497
3530
|
variant: "round",
|
|
3498
3531
|
sizePx: 32,
|
|
@@ -3506,17 +3539,17 @@ function EmbeddableChatInner({
|
|
|
3506
3539
|
)
|
|
3507
3540
|
) : null
|
|
3508
3541
|
] }),
|
|
3509
|
-
isViewingArchived && headerOnRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3542
|
+
isViewingArchived && headerOnRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: headerOnRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
3510
3543
|
headerShowBack && !isViewingArchived && splitHeaderMenuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3511
|
-
|
|
3544
|
+
_chunk2XLPRW7Vcjs.ActionsMenuDropdown,
|
|
3512
3545
|
{
|
|
3513
3546
|
triggerAriaLabel: "Chat actions",
|
|
3514
3547
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
3515
3548
|
groups: [{ items: splitHeaderMenuItems }],
|
|
3516
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3549
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", "aria-label": "Chat actions", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 24 }) })
|
|
3517
3550
|
}
|
|
3518
3551
|
),
|
|
3519
|
-
closeControl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3552
|
+
closeControl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "cell", className: "w-14", onClick: closeControl, "aria-label": "Close", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { size: 24 }) })
|
|
3520
3553
|
] })
|
|
3521
3554
|
] })
|
|
3522
3555
|
) : (
|
|
@@ -3524,20 +3557,20 @@ function EmbeddableChatInner({
|
|
|
3524
3557
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
3525
3558
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
3526
3559
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
3527
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3560
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ERD34HQcjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
3528
3561
|
),
|
|
3529
3562
|
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3530
|
-
|
|
3563
|
+
_chunk7ERD34HQcjs.GuideModeBanner,
|
|
3531
3564
|
{
|
|
3532
|
-
className:
|
|
3565
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
|
|
3533
3566
|
}
|
|
3534
3567
|
),
|
|
3535
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
3568
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-h-0 flex-1 overflow-hidden", isV2 && "col-start-2 row-start-3 min-w-0"), children: [
|
|
3536
3569
|
!isV2 && railPresence.mounted && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RailSlot, { active: railPresence.active, innerClassName: "flex flex-col min-h-0 bg-ods-card", children: archiveOpen ? (
|
|
3537
3570
|
// Archive list inside the rail (header lives in the split
|
|
3538
3571
|
// header's left cell above). Right chat block stays put.
|
|
3539
3572
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3540
|
-
|
|
3573
|
+
_chunk7ERD34HQcjs.ChatArchivePage,
|
|
3541
3574
|
{
|
|
3542
3575
|
embedded: true,
|
|
3543
3576
|
dialogs: archivedDialogs,
|
|
@@ -3551,7 +3584,7 @@ function EmbeddableChatInner({
|
|
|
3551
3584
|
}
|
|
3552
3585
|
)
|
|
3553
3586
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3554
|
-
|
|
3587
|
+
_chunk7ERD34HQcjs.MingoHistoryRail,
|
|
3555
3588
|
{
|
|
3556
3589
|
dialogs,
|
|
3557
3590
|
activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
|
|
@@ -3575,11 +3608,11 @@ function EmbeddableChatInner({
|
|
|
3575
3608
|
onRetry: reloadDialogs
|
|
3576
3609
|
}
|
|
3577
3610
|
) }),
|
|
3578
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
3611
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-h-0 min-w-0 flex-1 flex-col", isV2 && "ods-glow-accent-corner"), children: isV2 && archiveOpen ? (
|
|
3579
3612
|
// v2: the archive opens in the chat column under the chat's
|
|
3580
3613
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
3581
3614
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3582
|
-
|
|
3615
|
+
_chunk7ERD34HQcjs.MingoArchiveList,
|
|
3583
3616
|
{
|
|
3584
3617
|
dialogs: archivedDialogs,
|
|
3585
3618
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3592,7 +3625,7 @@ function EmbeddableChatInner({
|
|
|
3592
3625
|
}
|
|
3593
3626
|
)
|
|
3594
3627
|
) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3595
|
-
|
|
3628
|
+
_chunk7ERD34HQcjs.MingoChatRail,
|
|
3596
3629
|
{
|
|
3597
3630
|
...mingoRailProps,
|
|
3598
3631
|
onNewChat: () => setComposeOpen(true),
|
|
@@ -3611,7 +3644,7 @@ function EmbeddableChatInner({
|
|
|
3611
3644
|
// single-column view. No composer here; "Start New Chat" opens
|
|
3612
3645
|
// the compose view.
|
|
3613
3646
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3614
|
-
|
|
3647
|
+
_chunk7ERD34HQcjs.MingoHistoryRail,
|
|
3615
3648
|
{
|
|
3616
3649
|
className: "duration-200 animate-in fade-in-0",
|
|
3617
3650
|
dialogs,
|
|
@@ -3642,7 +3675,7 @@ function EmbeddableChatInner({
|
|
|
3642
3675
|
{
|
|
3643
3676
|
ref: galleryPanelRef,
|
|
3644
3677
|
"data-testid": "chat-content-panel",
|
|
3645
|
-
className:
|
|
3678
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3646
3679
|
"flex min-h-0 flex-1 flex-col p-[var(--spacing-system-m)]",
|
|
3647
3680
|
// With a host block above the composer the thread keeps room
|
|
3648
3681
|
// for a line and the working status: the block gives way
|
|
@@ -3654,14 +3687,14 @@ function EmbeddableChatInner({
|
|
|
3654
3687
|
{
|
|
3655
3688
|
className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0",
|
|
3656
3689
|
children: hasConversation ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3657
|
-
|
|
3690
|
+
_chunk7ERD34HQcjs.ChatMessageList,
|
|
3658
3691
|
{
|
|
3659
3692
|
messages,
|
|
3660
3693
|
isLoading: messagesInitialLoading,
|
|
3661
3694
|
fill: previewMode,
|
|
3662
3695
|
appearance,
|
|
3663
3696
|
isTyping: chatLoading,
|
|
3664
|
-
typingMessage: streamingProgress ?
|
|
3697
|
+
typingMessage: streamingProgress ? _chunk7ERD34HQcjs.chatProgressLabel.call(void 0, streamingProgress) : void 0,
|
|
3665
3698
|
pendingApprovals,
|
|
3666
3699
|
autoScroll: !previewMode,
|
|
3667
3700
|
pinBottom: previewMode,
|
|
@@ -3674,7 +3707,7 @@ function EmbeddableChatInner({
|
|
|
3674
3707
|
renderMention,
|
|
3675
3708
|
renderAfterMessage: renderMessageSources,
|
|
3676
3709
|
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
3677
|
-
NavLinkAnchor:
|
|
3710
|
+
NavLinkAnchor: _chunk7ERD34HQcjs.NavLinkAnchorViaRuntime,
|
|
3678
3711
|
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3679
3712
|
contentClassName: "max-w-none pb-0",
|
|
3680
3713
|
fullWidth: true,
|
|
@@ -3688,7 +3721,7 @@ function EmbeddableChatInner({
|
|
|
3688
3721
|
quick-action chips. Guide mode keeps the slash-command
|
|
3689
3722
|
onboarding list below. */
|
|
3690
3723
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3691
|
-
|
|
3724
|
+
_chunk7ERD34HQcjs.MingoWelcome,
|
|
3692
3725
|
{
|
|
3693
3726
|
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
3694
3727
|
historyPageSize,
|
|
@@ -3704,7 +3737,7 @@ function EmbeddableChatInner({
|
|
|
3704
3737
|
+ slash-command onboarding list share one scroll region,
|
|
3705
3738
|
with a pinned quick-action chip row above the composer. */
|
|
3706
3739
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3707
|
-
|
|
3740
|
+
_chunk7ERD34HQcjs.GuideWelcome,
|
|
3708
3741
|
{
|
|
3709
3742
|
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
3710
3743
|
subtitleLoading: emptyStateLoading,
|
|
@@ -3720,9 +3753,9 @@ function EmbeddableChatInner({
|
|
|
3720
3753
|
onQuickActionHoverEnd: () => setQuickActionPreview(null),
|
|
3721
3754
|
agentSlug: activeAgentSlug,
|
|
3722
3755
|
children: (chipCommands.length > 0 || !commandsLoaded) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-md border border-ods-border", children: [
|
|
3723
|
-
!commandsLoaded && chipCommands.length === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3756
|
+
!commandsLoaded && chipCommands.length === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: _chunkZRDVFADQcjs.MINGO_ONBOARDING_SKELETON_ROWS, children: (i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.MingoOnboardingCard, { loading: true, "data-loading-item": true, skeletonIndex: i, title: "" }) }),
|
|
3724
3757
|
chipCommands.map((cmd) => {
|
|
3725
|
-
const Icon =
|
|
3758
|
+
const Icon = _chunkQOAA7ZHBcjs.resolveIcon.call(void 0, cmd.iconName);
|
|
3726
3759
|
const cmdId = cmd.id;
|
|
3727
3760
|
const label = _nullishCoalesce(cmd.label, () => ( `/${cmdId}`));
|
|
3728
3761
|
const cardActions = cmd.actions.map((action) => ({
|
|
@@ -3731,7 +3764,7 @@ function EmbeddableChatInner({
|
|
|
3731
3764
|
onClick: () => dispatchSlashCommandAction(action.id, cmdId, chatInputRef)
|
|
3732
3765
|
}));
|
|
3733
3766
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3734
|
-
|
|
3767
|
+
_chunkZRDVFADQcjs.MingoOnboardingCard,
|
|
3735
3768
|
{
|
|
3736
3769
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 16 }),
|
|
3737
3770
|
title: label,
|
|
@@ -3761,7 +3794,7 @@ function EmbeddableChatInner({
|
|
|
3761
3794
|
}
|
|
3762
3795
|
),
|
|
3763
3796
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3764
|
-
|
|
3797
|
+
_chunk7ERD34HQcjs.ChatAttachmentChipStrip,
|
|
3765
3798
|
{
|
|
3766
3799
|
attachments: stagedAttachments,
|
|
3767
3800
|
onRemove: removeAttachment,
|
|
@@ -3769,7 +3802,7 @@ function EmbeddableChatInner({
|
|
|
3769
3802
|
}
|
|
3770
3803
|
),
|
|
3771
3804
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3772
|
-
|
|
3805
|
+
_chunk7ERD34HQcjs.ChatComposer,
|
|
3773
3806
|
{
|
|
3774
3807
|
archived: isViewingArchived,
|
|
3775
3808
|
lock: composerLock,
|
|
@@ -3821,7 +3854,7 @@ function EmbeddableChatInner({
|
|
|
3821
3854
|
),
|
|
3822
3855
|
galleryModal,
|
|
3823
3856
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3824
|
-
|
|
3857
|
+
_chunk7ERD34HQcjs.ChatDialogModals,
|
|
3825
3858
|
{
|
|
3826
3859
|
renameTarget,
|
|
3827
3860
|
setRenameTarget,
|
|
@@ -3837,14 +3870,14 @@ function EmbeddableChatInner({
|
|
|
3837
3870
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
3838
3871
|
] }) }) })
|
|
3839
3872
|
);
|
|
3840
|
-
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3873
|
+
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7ERD34HQcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
3841
3874
|
shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
|
|
3842
3875
|
sourceLabel,
|
|
3843
3876
|
" AI Assistant"
|
|
3844
3877
|
] }) }),
|
|
3845
3878
|
body
|
|
3846
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3847
|
-
|
|
3879
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEHANO6UEcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ERD34HQcjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3880
|
+
_chunkEHANO6UEcjs.DrawerContent,
|
|
3848
3881
|
{
|
|
3849
3882
|
side: "right",
|
|
3850
3883
|
flush: true,
|
|
@@ -3873,10 +3906,10 @@ function EmbeddableChatInner({
|
|
|
3873
3906
|
"aria-hidden": isOpen,
|
|
3874
3907
|
className: `pointer-events-none sticky bottom-0 z-[9990] h-0 ${isOpen ? "opacity-0" : "opacity-100"}`,
|
|
3875
3908
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute bottom-4 right-4 md:bottom-6 md:right-6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3876
|
-
|
|
3909
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
3877
3910
|
{
|
|
3878
3911
|
onClick: handleOpen,
|
|
3879
|
-
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3912
|
+
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOBQ5WUNGcjs.AgentMark, { agent: "mingo", className: "h-5 w-5" }),
|
|
3880
3913
|
tabIndex: isOpen ? -1 : 0,
|
|
3881
3914
|
className: `pointer-events-auto !w-auto shadow-lg ${isOpen ? "!pointer-events-none" : ""}`,
|
|
3882
3915
|
children: "Ask AI"
|