@flamingo-stack/openframe-frontend-core 0.0.781 → 0.0.783
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/case-study-card-WYZPBDDM.cjs +23 -0
- package/dist/{chunk-RJX33Y4Q.cjs → chunk-3INHO6GP.cjs} +22 -22
- package/dist/{chunk-TH5X2BXK.cjs → chunk-3PKORICR.cjs} +115 -115
- package/dist/{chunk-JHDPEYZH.cjs → chunk-4DKPNN2A.cjs} +17 -17
- package/dist/{chunk-L4XOCV7S.cjs → chunk-4DQ4CNAG.cjs} +10 -10
- package/dist/{chunk-HTSRCFXP.cjs → chunk-4MQASMIU.cjs} +7 -7
- package/dist/{chunk-3VINTJPE.cjs → chunk-5WMRVMXH.cjs} +5 -5
- package/dist/{chunk-OHXB6HUX.cjs → chunk-5XAWVXNI.cjs} +320 -320
- package/dist/{chunk-HLZUBJPL.cjs → chunk-62TMGBRO.cjs} +197 -197
- package/dist/{chunk-B6EQVH7D.cjs → chunk-6NEWJ6I2.cjs} +51 -51
- package/dist/{chunk-FWJ5YECN.cjs → chunk-7OJMOG34.cjs} +546 -544
- package/dist/{chunk-63OCO2G5.cjs → chunk-A3UZFFR3.cjs} +4 -4
- package/dist/{chunk-XHJI7R4J.cjs → chunk-AFSVWR3X.cjs} +46 -46
- package/dist/{chunk-LDGR5VCK.cjs → chunk-APO7GMZQ.cjs} +4 -4
- package/dist/{chunk-PID7LUDP.cjs → chunk-BAJB3JF3.cjs} +31 -31
- package/dist/{chunk-T7SDYBST.cjs → chunk-BE4OUWTA.cjs} +54 -54
- package/dist/{chunk-ZV6RQNXE.cjs → chunk-CBKXU77H.cjs} +46 -46
- package/dist/{chunk-IYU2ZH2J.cjs → chunk-CS5SZJFV.cjs} +2 -2
- package/dist/{chunk-Q7HXTF2C.cjs → chunk-DYF6XB27.cjs} +4 -4
- package/dist/{chunk-AKCBLZAO.cjs → chunk-E2ZZOYSM.cjs} +74 -62
- package/dist/{chunk-57NE7SHG.cjs → chunk-EFCWHAYC.cjs} +8 -8
- package/dist/{chunk-KWV23THO.cjs → chunk-EHQ2UGT4.cjs} +14 -14
- package/dist/{chunk-DJTPDK3W.cjs → chunk-F2FFJWOQ.cjs} +4 -4
- package/dist/{chunk-CDBFQVPA.cjs → chunk-FLS6DZEN.cjs} +46 -43
- package/dist/{chunk-VZKAAXU3.cjs → chunk-FS7CBRF4.cjs} +23 -23
- package/dist/{chunk-X6TXMWBV.cjs → chunk-H3RHAN6B.cjs} +61 -61
- package/dist/{chunk-HPGCUYAZ.cjs → chunk-KRXHRL3W.cjs} +110 -110
- package/dist/{chunk-D46WFWWI.cjs → chunk-LGISRUGF.cjs} +41 -39
- package/dist/{chunk-2OYKOHFK.cjs → chunk-LUWYWYNC.cjs} +2 -2
- package/dist/{chunk-N6YCOBLK.cjs → chunk-MGEUZRNQ.cjs} +101 -9
- package/dist/{chunk-YEJWNHD3.cjs → chunk-MKF6XX5A.cjs} +63 -63
- package/dist/{chunk-3IHGS44W.cjs → chunk-N2SVJJLU.cjs} +5 -5
- package/dist/{chunk-TZ6MTHUC.cjs → chunk-N5TPRCSS.cjs} +60 -60
- package/dist/{chunk-YNDH72VU.cjs → chunk-NNNRN4OF.cjs} +14 -14
- package/dist/{chunk-JQWYXC2E.cjs → chunk-ODDUGLYF.cjs} +110 -110
- package/dist/{chunk-T4ZVKEDP.cjs → chunk-OMTH355I.cjs} +3 -3
- package/dist/{chunk-OFX6XEVN.cjs → chunk-PQSTPJQQ.cjs} +13 -13
- package/dist/{chunk-YKJ4JN6T.cjs → chunk-RL45AU2C.cjs} +42 -42
- package/dist/{chunk-DIY4SJZI.cjs → chunk-RT6QATX4.cjs} +19 -19
- package/dist/{chunk-ODZ5XGWA.cjs → chunk-THOGSAFH.cjs} +2076 -2052
- package/dist/{chunk-UONQCE5N.cjs → chunk-TS6TISIF.cjs} +209 -208
- package/dist/{chunk-SMEX3BWO.cjs → chunk-UPQMFK5B.cjs} +7 -7
- package/dist/{chunk-5PBWAF2D.cjs → chunk-URFAMWCA.cjs} +44 -44
- package/dist/{chunk-VDTLVFCV.cjs → chunk-WHNI4QTG.cjs} +13 -13
- package/dist/{chunk-EYNQE2XN.cjs → chunk-WS7IDGEL.cjs} +6 -6
- package/dist/{chunk-QD7SKYCQ.cjs → chunk-WSBWP7IW.cjs} +3 -3
- package/dist/{chunk-RYIWADIB.cjs → chunk-XAA5LUHC.cjs} +12 -12
- package/dist/{chunk-XYKVOBIP.cjs → chunk-XKDJ5ISQ.cjs} +3 -3
- package/dist/{chunk-A7FSNBNV.cjs → chunk-YU23M33V.cjs} +173 -172
- package/dist/{chunk-ZPYFPLPD.cjs → chunk-YXZOP726.cjs} +10 -10
- package/dist/{chunk-4XDYSGRL.cjs → chunk-ZFOMRALU.cjs} +17 -17
- package/dist/{chunk-AFJEUBDS.cjs → chunk-ZJS45HQZ.cjs} +29 -29
- package/dist/{cloud-tenants-UAFVHKX7.cjs → cloud-tenants-QYW3MPPP.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/category-card.d.ts.map +1 -1
- package/dist/components/category-card.js +1 -0
- package/dist/components/chat/ask-display.js +2 -2
- package/dist/components/chat/chat-context-memory-bar.js +2 -2
- package/dist/components/chat/chat-context-picker.d.ts.map +1 -1
- package/dist/components/chat/chat-context-picker.js +4 -2
- package/dist/components/chat/chat-input.d.ts.map +1 -1
- package/dist/components/chat/chat-input.js +2 -1
- package/dist/components/chat/chat-nav-sidebar.d.ts.map +1 -1
- package/dist/components/chat/chat-nav-sidebar.js +12 -1
- package/dist/components/chat/embeddable-chat.js +120 -98
- package/dist/components/chat/guide-mode-banner.js +1 -1
- package/dist/components/chat/index.cjs +26 -26
- package/dist/components/chat/mingo-welcome.js +1 -1
- package/dist/components/contact/index.cjs +33 -33
- package/dist/components/docs/index.cjs +36 -36
- package/dist/components/embeds/index.cjs +33 -33
- package/dist/components/faq/index.cjs +34 -34
- package/dist/components/features/capability-explorer.d.ts.map +1 -1
- package/dist/components/features/capability-explorer.js +11 -1
- package/dist/components/features/command-box.js +1 -1
- package/dist/components/features/devices/devices-grid-filters.d.ts.map +1 -1
- package/dist/components/features/devices/devices-grid-filters.js +15 -4
- package/dist/components/features/filters-dropdown.d.ts.map +1 -1
- package/dist/components/features/filters-dropdown.js +6 -5
- package/dist/components/features/index.cjs +32 -32
- package/dist/components/features/model-token-rates.js +1 -1
- package/dist/components/features/notifications/notification-drawer.d.ts.map +1 -1
- package/dist/components/features/notifications/notification-drawer.js +1 -0
- package/dist/components/features/notifications/notification-tile.js +1 -1
- package/dist/components/features/paths-display.js +1 -1
- package/dist/components/features/remote-session/remote-session-events.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-session-events.js +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.js +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.js +1 -1
- package/dist/components/features/select-button.js +0 -1
- package/dist/components/features/tags-selector.js +1 -1
- package/dist/components/help-center-pages/index.cjs +163 -163
- package/dist/components/index.cjs +205 -204
- package/dist/components/loading/loading-region.d.ts.map +1 -1
- package/dist/components/loading/loading-region.js +2 -2
- package/dist/components/meeting-scheduler/index.cjs +187 -187
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/navigation/mobile-burger-menu.d.ts.map +1 -1
- package/dist/components/navigation/mobile-burger-menu.js +2 -1
- package/dist/components/navigation/multi-level-navigation.d.ts.map +1 -1
- package/dist/components/navigation/multi-level-navigation.js +4 -2
- package/dist/components/navigation/navigation-sidebar-item.js +3 -3
- package/dist/components/onboarding-guides/index.cjs +35 -35
- package/dist/components/product-demo/index.cjs +45 -45
- package/dist/components/related-content/index.cjs +17 -17
- package/dist/components/tickets/index.cjs +39 -39
- package/dist/components/ui/allowed-domains-input.d.ts.map +1 -1
- package/dist/components/ui/allowed-domains-input.js +1 -0
- package/dist/components/ui/button/button-styles.d.ts +12 -4
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +99 -7
- package/dist/components/ui/button/button.d.ts +1 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +3 -0
- package/dist/components/ui/file-manager/file-manager-breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/file-manager/file-manager-breadcrumb.js +1 -0
- package/dist/components/ui/file-manager/index.cjs +56 -55
- package/dist/components/ui/file-upload.d.ts.map +1 -1
- package/dist/components/ui/file-upload.js +5 -3
- package/dist/components/ui/hidden-tags-popup.js +1 -1
- package/dist/components/ui/hover-dropdown.js +1 -1
- package/dist/components/ui/index.cjs +32 -32
- package/dist/components/ui/info-card.js +1 -1
- package/dist/components/ui/info-section.d.ts.map +1 -1
- package/dist/components/ui/info-section.js +1 -0
- package/dist/components/ui/loading-scope.d.ts.map +1 -1
- package/dist/components/ui/loading-scope.js +2 -2
- package/dist/components/ui/modal-v2.js +1 -1
- package/dist/components/ui/organization-card.d.ts.map +1 -1
- package/dist/components/ui/organization-card.js +2 -1
- package/dist/components/ui/page-actions.d.ts +2 -2
- package/dist/components/ui/page-actions.d.ts.map +1 -1
- package/dist/components/ui/password-input.js +1 -1
- package/dist/components/ui/service-card.js +3 -3
- package/dist/components/ui/tab-selector.d.ts.map +1 -1
- package/dist/components/ui/tab-selector.js +3 -3
- package/dist/components/ui/test-run.d.ts.map +1 -1
- package/dist/components/ui/test-run.js +2 -1
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea.js +2 -1
- package/dist/components/ui/ticket-attachments-list.d.ts.map +1 -1
- package/dist/components/ui/ticket-attachments-list.js +3 -2
- package/dist/components/ui/ticket-info-section.d.ts.map +1 -1
- package/dist/components/ui/ticket-info-section.js +1 -0
- package/dist/components/ui/ticket-note-card.d.ts.map +1 -1
- package/dist/components/ui/ticket-note-card.js +6 -4
- package/dist/components/ui/ticket-status-config-row.d.ts.map +1 -1
- package/dist/components/ui/ticket-status-config-row.js +1 -10
- package/dist/components/ui/toaster.js +1 -1
- package/dist/components/vendor-display-button.js +1 -1
- package/dist/{devices-TDKCKWRP.cjs → devices-DMMMEO2B.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-HEL4Z2FL.cjs → embeddable-chat-OSSPL7L4.cjs} +226 -204
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +48 -48
- package/dist/{knowledge-A5KJ4CAD.cjs → knowledge-XQQXVV6C.cjs} +33 -33
- package/dist/{logs-6WRBPIMM.cjs → logs-BHKMDCBP.cjs} +41 -41
- package/dist/{policies-ICRXHW3H.cjs → policies-5IY7QUED.cjs} +36 -36
- package/dist/{remote-session-MEV5JL2Z.cjs → remote-session-IEOWFBF7.cjs} +17 -17
- package/dist/{scripts-AZVCZE6C.cjs → scripts-ZQXRBGVK.cjs} +39 -39
- package/dist/{software-update-4ZBCGJGA.cjs → software-update-RGFRYL3N.cjs} +36 -36
- package/dist/{tickets-board-BJPQD3HE.cjs → tickets-board-EYKLSB36.cjs} +17 -17
- package/dist/{video-file-player-DETXW4OJ.cjs → video-file-player-ZU666VUY.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/category-card.tsx +2 -0
- package/src/components/chat/ask-display.tsx +2 -2
- package/src/components/chat/chat-context-memory-bar.tsx +2 -2
- package/src/components/chat/chat-context-picker.tsx +4 -2
- package/src/components/chat/chat-input.tsx +3 -1
- package/src/components/chat/chat-nav-sidebar.tsx +10 -1
- package/src/components/chat/embeddable-chat.tsx +21 -4
- package/src/components/chat/guide-mode-banner.tsx +1 -1
- package/src/components/chat/mingo-welcome.tsx +1 -1
- package/src/components/features/capability-explorer.tsx +8 -1
- package/src/components/features/command-box.tsx +1 -1
- package/src/components/features/devices/devices-grid-filters.tsx +8 -1
- package/src/components/features/filters-dropdown.tsx +6 -1
- package/src/components/features/model-token-rates.tsx +1 -1
- package/src/components/features/notifications/notification-drawer.tsx +1 -0
- package/src/components/features/notifications/notification-tile.tsx +1 -1
- package/src/components/features/paths-display.tsx +1 -1
- package/src/components/features/remote-session/remote-session-events.tsx +2 -0
- package/src/components/features/scripts/schedule-form/schedule-script-picker-card.tsx +1 -1
- package/src/components/features/scripts/schedule-form/schedule-timing-fields.tsx +1 -1
- package/src/components/features/select-button.tsx +2 -2
- package/src/components/features/tags-selector.tsx +1 -1
- package/src/components/loading/loading-region.tsx +4 -1
- package/src/components/navigation/mobile-burger-menu.tsx +3 -1
- package/src/components/navigation/multi-level-navigation.tsx +6 -2
- package/src/components/navigation/navigation-sidebar-item.tsx +5 -5
- package/src/components/ui/allowed-domains-input.tsx +1 -0
- package/src/components/ui/button/button-styles.ts +106 -9
- package/src/components/ui/button/button.tsx +3 -0
- package/src/components/ui/file-manager/file-manager-breadcrumb.tsx +1 -0
- package/src/components/ui/file-upload.tsx +5 -3
- package/src/components/ui/hidden-tags-popup.tsx +1 -1
- package/src/components/ui/hover-dropdown.tsx +1 -1
- package/src/components/ui/info-card.tsx +1 -1
- package/src/components/ui/info-section.tsx +2 -0
- package/src/components/ui/loading-scope.tsx +2 -1
- package/src/components/ui/modal-v2.tsx +1 -1
- package/src/components/ui/organization-card.tsx +3 -1
- package/src/components/ui/page-actions.tsx +14 -2
- package/src/components/ui/password-input.tsx +1 -1
- package/src/components/ui/service-card.tsx +3 -3
- package/src/components/ui/tab-selector.tsx +5 -3
- package/src/components/ui/test-run.tsx +2 -1
- package/src/components/ui/textarea.tsx +3 -1
- package/src/components/ui/ticket-attachments-list.tsx +3 -2
- package/src/components/ui/ticket-info-section.tsx +1 -0
- package/src/components/ui/ticket-note-card.tsx +6 -4
- package/src/components/ui/ticket-status-config-row.tsx +1 -6
- package/src/components/ui/toaster.tsx +1 -1
- package/src/components/vendor-display-button.tsx +1 -1
- package/dist/case-study-card-CYJ3JXU6.cjs +0 -23
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkZFOMRALUcjs = require('./chunk-ZFOMRALU.cjs');
|
|
8
8
|
require('./chunk-24I6RFVU.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -57,20 +57,20 @@ require('./chunk-24I6RFVU.cjs');
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var _chunk7OJMOG34cjs = require('./chunk-7OJMOG34.cjs');
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
var
|
|
64
|
-
require('./chunk-
|
|
63
|
+
var _chunkBE4OUWTAcjs = require('./chunk-BE4OUWTA.cjs');
|
|
64
|
+
require('./chunk-WSBWP7IW.cjs');
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkE2ZZOYSMcjs = require('./chunk-E2ZZOYSM.cjs');
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
var
|
|
73
|
+
var _chunkFS7CBRF4cjs = require('./chunk-FS7CBRF4.cjs');
|
|
74
74
|
require('./chunk-ZOZR3QI2.cjs');
|
|
75
75
|
require('./chunk-OMV5S5PI.cjs');
|
|
76
76
|
require('./chunk-KHPX3KU4.cjs');
|
|
@@ -1872,7 +1872,7 @@ require('./chunk-TMVC7S2R.cjs');
|
|
|
1872
1872
|
require('./chunk-IYHH5EIO.cjs');
|
|
1873
1873
|
require('./chunk-XIBCMGBW.cjs');
|
|
1874
1874
|
require('./chunk-OJZBZH56.cjs');
|
|
1875
|
-
require('./chunk-
|
|
1875
|
+
require('./chunk-LUWYWYNC.cjs');
|
|
1876
1876
|
require('./chunk-JKX2C3I2.cjs');
|
|
1877
1877
|
|
|
1878
1878
|
|
|
@@ -1883,18 +1883,18 @@ var _chunkWWUSFOJ7cjs = require('./chunk-WWUSFOJ7.cjs');
|
|
|
1883
1883
|
require('./chunk-SKI6NKOE.cjs');
|
|
1884
1884
|
|
|
1885
1885
|
|
|
1886
|
-
var
|
|
1886
|
+
var _chunk5XAWVXNIcjs = require('./chunk-5XAWVXNI.cjs');
|
|
1887
1887
|
|
|
1888
1888
|
|
|
1889
1889
|
|
|
1890
1890
|
|
|
1891
|
-
var
|
|
1892
|
-
require('./chunk-
|
|
1893
|
-
require('./chunk-
|
|
1894
|
-
require('./chunk-
|
|
1891
|
+
var _chunkODDUGLYFcjs = require('./chunk-ODDUGLYF.cjs');
|
|
1892
|
+
require('./chunk-DYF6XB27.cjs');
|
|
1893
|
+
require('./chunk-4MQASMIU.cjs');
|
|
1894
|
+
require('./chunk-XAA5LUHC.cjs');
|
|
1895
1895
|
|
|
1896
1896
|
|
|
1897
|
-
var
|
|
1897
|
+
var _chunkZJS45HQZcjs = require('./chunk-ZJS45HQZ.cjs');
|
|
1898
1898
|
require('./chunk-S5C3OZCO.cjs');
|
|
1899
1899
|
require('./chunk-32ASZMTV.cjs');
|
|
1900
1900
|
require('./chunk-OOYBIS7D.cjs');
|
|
@@ -1902,7 +1902,7 @@ require('./chunk-4IYNDV3G.cjs');
|
|
|
1902
1902
|
require('./chunk-6VOOPMP5.cjs');
|
|
1903
1903
|
require('./chunk-ORO54HDF.cjs');
|
|
1904
1904
|
require('./chunk-RUHKTWGB.cjs');
|
|
1905
|
-
require('./chunk-
|
|
1905
|
+
require('./chunk-F2FFJWOQ.cjs');
|
|
1906
1906
|
require('./chunk-7PNRXJX2.cjs');
|
|
1907
1907
|
require('./chunk-NTPX5GXI.cjs');
|
|
1908
1908
|
require('./chunk-AQXKXZWB.cjs');
|
|
@@ -1910,30 +1910,30 @@ require('./chunk-V4FXUIMH.cjs');
|
|
|
1910
1910
|
require('./chunk-SZHDXXMK.cjs');
|
|
1911
1911
|
|
|
1912
1912
|
|
|
1913
|
-
var
|
|
1913
|
+
var _chunkCS5SZJFVcjs = require('./chunk-CS5SZJFV.cjs');
|
|
1914
1914
|
require('./chunk-5GJM7VRR.cjs');
|
|
1915
|
-
require('./chunk-
|
|
1915
|
+
require('./chunk-5WMRVMXH.cjs');
|
|
1916
1916
|
|
|
1917
1917
|
|
|
1918
1918
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
1919
|
-
require('./chunk-
|
|
1919
|
+
require('./chunk-OMTH355I.cjs');
|
|
1920
1920
|
|
|
1921
1921
|
|
|
1922
1922
|
|
|
1923
|
-
var
|
|
1923
|
+
var _chunk4DQ4CNAGcjs = require('./chunk-4DQ4CNAG.cjs');
|
|
1924
1924
|
|
|
1925
1925
|
|
|
1926
1926
|
var _chunkZ74QE57Tcjs = require('./chunk-Z74QE57T.cjs');
|
|
1927
1927
|
require('./chunk-XZJCBIYR.cjs');
|
|
1928
|
-
require('./chunk-
|
|
1929
|
-
require('./chunk-
|
|
1928
|
+
require('./chunk-A3UZFFR3.cjs');
|
|
1929
|
+
require('./chunk-NNNRN4OF.cjs');
|
|
1930
1930
|
|
|
1931
1931
|
|
|
1932
|
-
var
|
|
1932
|
+
var _chunkFLS6DZENcjs = require('./chunk-FLS6DZEN.cjs');
|
|
1933
1933
|
|
|
1934
1934
|
|
|
1935
1935
|
|
|
1936
|
-
var
|
|
1936
|
+
var _chunkMGEUZRNQcjs = require('./chunk-MGEUZRNQ.cjs');
|
|
1937
1937
|
|
|
1938
1938
|
|
|
1939
1939
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -2008,7 +2008,7 @@ function useChatDialogManager({
|
|
|
2008
2008
|
setArchivedLoading(true);
|
|
2009
2009
|
}
|
|
2010
2010
|
try {
|
|
2011
|
-
const result = await fetchArchivedDialogs({ cursor, limit:
|
|
2011
|
+
const result = await fetchArchivedDialogs({ cursor, limit: _chunk7OJMOG34cjs.CHAT_HISTORY_PAGE_SIZE });
|
|
2012
2012
|
if (!isCurrent()) return;
|
|
2013
2013
|
setArchivedCursor(result.nextCursor);
|
|
2014
2014
|
setArchivedDialogs((prev) => cursor ? [...prev, ...result.dialogs] : result.dialogs);
|
|
@@ -2135,7 +2135,7 @@ function splitCitedSources(sources, content) {
|
|
|
2135
2135
|
}
|
|
2136
2136
|
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
2137
|
const uncited = sources.filter((source) => !firstMentionAt.has(source.index));
|
|
2138
|
-
return { cited:
|
|
2138
|
+
return { cited: _chunk7OJMOG34cjs.groupSourcesByTable.call(void 0, cited), uncited: _chunk7OJMOG34cjs.groupSourcesByTable.call(void 0, uncited) };
|
|
2139
2139
|
}
|
|
2140
2140
|
|
|
2141
2141
|
// src/components/chat/utils/host-message.ts
|
|
@@ -2186,7 +2186,7 @@ function pruneTimestampCache(timestampCache, liveIds) {
|
|
|
2186
2186
|
// src/components/chat/embeddable-chat.tsx
|
|
2187
2187
|
var _jsxruntime = require('react/jsx-runtime');
|
|
2188
2188
|
var HISTORY_RAIL_WIDTH = 320;
|
|
2189
|
-
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH +
|
|
2189
|
+
var SPLIT_MIN_WIDTH = HISTORY_RAIL_WIDTH + _chunk7OJMOG34cjs.CHAT_BLOCK_MIN_WIDTH;
|
|
2190
2190
|
var DRAWER_DEFAULT_WIDTH_RATIO = 0.5;
|
|
2191
2191
|
var DRAWER_WIDTH_KEY = "mingo-chat-width-v4";
|
|
2192
2192
|
var DRAWER_DEFAULT_WIDTH_PX = 750;
|
|
@@ -2242,14 +2242,14 @@ function RailSlot({
|
|
|
2242
2242
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2243
2243
|
"div",
|
|
2244
2244
|
{
|
|
2245
|
-
className:
|
|
2245
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0,
|
|
2246
2246
|
// Border on the OUTER so the rail/chat divider tracks the animating
|
|
2247
2247
|
// boundary (and fades out with the panel) instead of vanishing early.
|
|
2248
2248
|
"shrink-0 overflow-hidden border-r border-ods-border transition-[width,opacity] ease-out",
|
|
2249
|
-
active ?
|
|
2249
|
+
active ? _chunkMGEUZRNQcjs.cn.call(void 0, "duration-[240ms] opacity-100", width) : "duration-[300ms] w-0 opacity-0",
|
|
2250
2250
|
className
|
|
2251
2251
|
),
|
|
2252
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2252
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "h-full", width, innerClassName), children })
|
|
2253
2253
|
}
|
|
2254
2254
|
);
|
|
2255
2255
|
}
|
|
@@ -2259,7 +2259,7 @@ function dispatchSlashCommandAction(actionId, cmdId, ref) {
|
|
|
2259
2259
|
if (!input) return;
|
|
2260
2260
|
switch (actionId) {
|
|
2261
2261
|
case "browse":
|
|
2262
|
-
input.submit(
|
|
2262
|
+
input.submit(_chunk7OJMOG34cjs.formatSingularLookupInvocation.call(void 0, cmdId));
|
|
2263
2263
|
return;
|
|
2264
2264
|
case "search":
|
|
2265
2265
|
input.setValue(`/${cmdId} `);
|
|
@@ -2285,7 +2285,7 @@ function SourceChip({
|
|
|
2285
2285
|
}) {
|
|
2286
2286
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2287
2287
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
2288
|
-
const cta =
|
|
2288
|
+
const cta = _chunk7OJMOG34cjs.resolveSourceRowCTA.call(void 0,
|
|
2289
2289
|
{
|
|
2290
2290
|
sourceRepo: src.sourceRepo,
|
|
2291
2291
|
documentType: src.documentType,
|
|
@@ -2295,15 +2295,15 @@ function SourceChip({
|
|
|
2295
2295
|
targetPlatform: _nullishCoalesce(src.targetPlatform, () => ( null)),
|
|
2296
2296
|
path: src.path
|
|
2297
2297
|
},
|
|
2298
|
-
|
|
2298
|
+
_chunk7OJMOG34cjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
2299
2299
|
);
|
|
2300
2300
|
const Icon = cta.icon;
|
|
2301
2301
|
const icon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: "h-3.5 w-3.5" });
|
|
2302
|
-
const chipClass =
|
|
2303
|
-
const decideTab = (href, targetPlatform) =>
|
|
2302
|
+
const chipClass = _chunk7OJMOG34cjs.chatChipClass.call(void 0, { tone: "secondary" });
|
|
2303
|
+
const decideTab = (href, targetPlatform) => _chunkODDUGLYFcjs.computeIsNewTab.call(void 0, runtime, href, targetPlatform);
|
|
2304
2304
|
if (src.items && src.items.length > 0) {
|
|
2305
2305
|
const dropdownItems = src.items.map((item) => {
|
|
2306
|
-
const itemCta =
|
|
2306
|
+
const itemCta = _chunk7OJMOG34cjs.resolveSourceRowCTA.call(void 0,
|
|
2307
2307
|
{
|
|
2308
2308
|
sourceRepo: src.sourceRepo,
|
|
2309
2309
|
documentType: item.documentType,
|
|
@@ -2313,7 +2313,7 @@ function SourceChip({
|
|
|
2313
2313
|
targetPlatform: _nullishCoalesce(item.targetPlatform, () => ( null)),
|
|
2314
2314
|
path: item.path
|
|
2315
2315
|
},
|
|
2316
|
-
|
|
2316
|
+
_chunk7OJMOG34cjs.sourceRowCtxFromRuntime.call(void 0, runtime, { baseRoute, chipBasePlatform })
|
|
2317
2317
|
);
|
|
2318
2318
|
const ItemIcon = itemCta.icon;
|
|
2319
2319
|
const itemChatRef = itemCta.chatRef;
|
|
@@ -2333,13 +2333,13 @@ function SourceChip({
|
|
|
2333
2333
|
};
|
|
2334
2334
|
});
|
|
2335
2335
|
const itemIndices = src.items.flatMap((item) => item.index === void 0 ? [] : [item.index]);
|
|
2336
|
-
const groupIndices = itemIndices.length > 0 ?
|
|
2336
|
+
const groupIndices = itemIndices.length > 0 ? _chunk7OJMOG34cjs.formatCitationIndices.call(void 0, itemIndices) : `${src.index}`;
|
|
2337
2337
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2338
|
-
|
|
2338
|
+
_chunkZFOMRALUcjs.HoverDropdown,
|
|
2339
2339
|
{
|
|
2340
2340
|
items: dropdownItems,
|
|
2341
2341
|
renderAnchor: ({ href, targetPlatform, path, className, children }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2342
|
-
|
|
2342
|
+
_chunk7OJMOG34cjs.NavLinkAnchorViaRuntime,
|
|
2343
2343
|
{
|
|
2344
2344
|
href,
|
|
2345
2345
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)),
|
|
@@ -2372,10 +2372,10 @@ function SourceChip({
|
|
|
2372
2372
|
] });
|
|
2373
2373
|
const wrapChip = (clickable) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "inline-flex items-center", children: [
|
|
2374
2374
|
clickable,
|
|
2375
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2375
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OJMOG34cjs.SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
|
|
2376
2376
|
] });
|
|
2377
2377
|
const buildClickHandler = (href, path, targetPlatform, isNewTab) => (e) => {
|
|
2378
|
-
const handled =
|
|
2378
|
+
const handled = _chunk7OJMOG34cjs.executeNavigation.call(void 0, {
|
|
2379
2379
|
event: e,
|
|
2380
2380
|
runtime,
|
|
2381
2381
|
href,
|
|
@@ -2386,14 +2386,14 @@ function SourceChip({
|
|
|
2386
2386
|
if (handled && !isNewTab && onClose) onClose();
|
|
2387
2387
|
};
|
|
2388
2388
|
if (cta.href && !!src.externalUrl) {
|
|
2389
|
-
const resolvedHref =
|
|
2389
|
+
const resolvedHref = _chunk5XAWVXNIcjs.resolveHrefForRuntime.call(void 0, cta.href, runtime);
|
|
2390
2390
|
const isNewTab = decideTab(resolvedHref, _nullishCoalesce(cta.targetPlatform, () => ( null)));
|
|
2391
2391
|
return wrapChip(
|
|
2392
2392
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2393
2393
|
_chunkV45KLJQPcjs.next_link_default,
|
|
2394
2394
|
{
|
|
2395
2395
|
href: resolvedHref,
|
|
2396
|
-
...
|
|
2396
|
+
..._chunkODDUGLYFcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
2397
2397
|
onClick: buildClickHandler(resolvedHref, null, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
2398
2398
|
className: chipClass,
|
|
2399
2399
|
children: chipBody(src.name)
|
|
@@ -2402,14 +2402,14 @@ function SourceChip({
|
|
|
2402
2402
|
);
|
|
2403
2403
|
}
|
|
2404
2404
|
if (cta.href) {
|
|
2405
|
-
const resolvedHref =
|
|
2405
|
+
const resolvedHref = _chunk5XAWVXNIcjs.resolveHrefForRuntime.call(void 0, cta.href, runtime);
|
|
2406
2406
|
const isNewTab = decideTab(resolvedHref, _nullishCoalesce(cta.targetPlatform, () => ( null)));
|
|
2407
2407
|
return wrapChip(
|
|
2408
2408
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2409
2409
|
_chunkV45KLJQPcjs.next_link_default,
|
|
2410
2410
|
{
|
|
2411
2411
|
href: resolvedHref,
|
|
2412
|
-
...
|
|
2412
|
+
..._chunkODDUGLYFcjs.newTabAnchorAttrs.call(void 0, isNewTab),
|
|
2413
2413
|
onClick: buildClickHandler(resolvedHref, src.path, _nullishCoalesce(cta.targetPlatform, () => ( null)), isNewTab),
|
|
2414
2414
|
className: chipClass,
|
|
2415
2415
|
title: displayName,
|
|
@@ -2477,7 +2477,7 @@ function SourceChips({
|
|
|
2477
2477
|
src.index
|
|
2478
2478
|
)),
|
|
2479
2479
|
hasOverflow && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2480
|
-
|
|
2480
|
+
_chunkFLS6DZENcjs.Button,
|
|
2481
2481
|
{
|
|
2482
2482
|
variant: "link",
|
|
2483
2483
|
size: "compact",
|
|
@@ -2524,7 +2524,7 @@ function EmbeddableChatInner({
|
|
|
2524
2524
|
defaultActiveMode,
|
|
2525
2525
|
shell = "drawer",
|
|
2526
2526
|
closable = true,
|
|
2527
|
-
appearance =
|
|
2527
|
+
appearance = _chunkE2ZZOYSMcjs.CHAT_APPEARANCE.CLASSIC,
|
|
2528
2528
|
onCollapse,
|
|
2529
2529
|
collapseTo = "list",
|
|
2530
2530
|
onExpand,
|
|
@@ -2547,11 +2547,11 @@ function EmbeddableChatInner({
|
|
|
2547
2547
|
handleRef
|
|
2548
2548
|
}) {
|
|
2549
2549
|
const shellLess = shell !== "drawer";
|
|
2550
|
-
const isV2 = appearance ===
|
|
2550
|
+
const isV2 = appearance === _chunkE2ZZOYSMcjs.CHAT_APPEARANCE.V2;
|
|
2551
2551
|
const runtime = _chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, );
|
|
2552
2552
|
const source = _nullishCoalesce(runtime.source, () => ( ""));
|
|
2553
2553
|
const commandsUrl = runtime.endpoints.commandsUrl;
|
|
2554
|
-
const { attachmentsEnabled, user: identityUser } =
|
|
2554
|
+
const { attachmentsEnabled, user: identityUser } = _chunk7OJMOG34cjs.useChatIdentity.call(void 0, );
|
|
2555
2555
|
const viewUrlPrefix = runtime.endpoints.attachmentViewUrlPrefix;
|
|
2556
2556
|
_react.useEffect.call(void 0, () => {
|
|
2557
2557
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -2605,11 +2605,11 @@ function EmbeddableChatInner({
|
|
|
2605
2605
|
const [quickActionPreview, setQuickActionPreview] = _react.useState.call(void 0, null);
|
|
2606
2606
|
const slashCommandsProp = _react.useMemo.call(void 0,
|
|
2607
2607
|
() => ({
|
|
2608
|
-
fetchCommands: (prefix, signal) =>
|
|
2608
|
+
fetchCommands: (prefix, signal) => _chunk7OJMOG34cjs.fetchSlashCommands.call(void 0, prefix, signal, commandsUrl),
|
|
2609
2609
|
resolveSourceIcon: (sourceId) => {
|
|
2610
|
-
const iconName =
|
|
2610
|
+
const iconName = _chunk7OJMOG34cjs.getSourceIconName.call(void 0, sourceId);
|
|
2611
2611
|
if (!iconName) return void 0;
|
|
2612
|
-
return { Icon:
|
|
2612
|
+
return { Icon: _chunkCS5SZJFVcjs.resolveIcon.call(void 0, iconName, { variant: "brand" }), label: sourceId };
|
|
2613
2613
|
},
|
|
2614
2614
|
onAction: (cmd, actionId) => {
|
|
2615
2615
|
dispatchSlashCommandAction(actionId, cmd.id, chatInputRef);
|
|
@@ -2636,7 +2636,7 @@ function EmbeddableChatInner({
|
|
|
2636
2636
|
},
|
|
2637
2637
|
[controlledActiveMode, onActiveModeChange]
|
|
2638
2638
|
);
|
|
2639
|
-
const { commands: commandsList, loaded: commandsLoaded } =
|
|
2639
|
+
const { commands: commandsList, loaded: commandsLoaded } = _chunk7OJMOG34cjs.useSlashCommandRegistry.call(void 0, commandsUrl, {
|
|
2640
2640
|
enabled: activeMode === "guide"
|
|
2641
2641
|
});
|
|
2642
2642
|
const commandsById = _react.useMemo.call(void 0, () => {
|
|
@@ -2647,7 +2647,7 @@ function EmbeddableChatInner({
|
|
|
2647
2647
|
const resolveAgentConfigUrl = _nullishCoalesce(_nullishCoalesce(aiAgentConfigUrlProp, () => ( runtime.endpoints.aiAgentConfigUrl)), () => ( DEFAULT_AI_AGENT_CONFIG_URL));
|
|
2648
2648
|
const agentConfigUrl = activeAgentSlug ? resolveAgentConfigUrl(activeAgentSlug) : void 0;
|
|
2649
2649
|
const emptyStateUrl = _nullishCoalesce(agentConfigUrl, () => ( runtime.endpoints.emptyStateUrl));
|
|
2650
|
-
const { config: emptyStateConfig, loading: emptyStateLoading } =
|
|
2650
|
+
const { config: emptyStateConfig, loading: emptyStateLoading } = _chunk7OJMOG34cjs.useEmptyStateConfig.call(void 0, emptyStateUrl, {
|
|
2651
2651
|
enabled: activeMode === "guide" || !!activeAgentSlug
|
|
2652
2652
|
});
|
|
2653
2653
|
const effectiveGreeting = _nullishCoalesce(emptyStateConfig.greeting, () => ( emptyStateGreeting));
|
|
@@ -2694,7 +2694,7 @@ function EmbeddableChatInner({
|
|
|
2694
2694
|
hasMoreMessages,
|
|
2695
2695
|
loadMoreMessages,
|
|
2696
2696
|
dialogCapabilities
|
|
2697
|
-
} =
|
|
2697
|
+
} = _chunk7OJMOG34cjs.useUnifiedChat.call(void 0, {
|
|
2698
2698
|
modes: effectiveModes,
|
|
2699
2699
|
activeMode,
|
|
2700
2700
|
mingoStateOverride: mingoState,
|
|
@@ -2741,8 +2741,8 @@ function EmbeddableChatInner({
|
|
|
2741
2741
|
addFiles: addAttachmentFiles,
|
|
2742
2742
|
removeAttachment,
|
|
2743
2743
|
clear: clearAttachments
|
|
2744
|
-
} =
|
|
2745
|
-
const { panelRef: galleryPanelRef, modal: galleryModal } =
|
|
2744
|
+
} = _chunk7OJMOG34cjs.useChatAttachments.call(void 0, );
|
|
2745
|
+
const { panelRef: galleryPanelRef, modal: galleryModal } = _chunk7OJMOG34cjs.useChatAttachmentImageGallery.call(void 0, );
|
|
2746
2746
|
const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _16 => _16.maxItems]), () => ( 10));
|
|
2747
2747
|
const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
|
|
2748
2748
|
const [contextItems, setContextItems] = _react.useState.call(void 0, NO_CONTEXT_ITEMS);
|
|
@@ -2862,7 +2862,7 @@ function EmbeddableChatInner({
|
|
|
2862
2862
|
const askAboutRef = _react.useRef.call(void 0, discussRef);
|
|
2863
2863
|
const askAbout = _react.useCallback.call(void 0, (reference) => askAboutRef.current(reference), []);
|
|
2864
2864
|
const renderEntityCard = _react.useCallback.call(void 0,
|
|
2865
|
-
(reference) =>
|
|
2865
|
+
(reference) => _chunk7OJMOG34cjs.renderChatInlineEntityCard.call(void 0, reference, {
|
|
2866
2866
|
onDiscuss: askAbout,
|
|
2867
2867
|
onDisplay: displayRef,
|
|
2868
2868
|
baseRoute: resolvedBaseRoute,
|
|
@@ -2872,7 +2872,7 @@ function EmbeddableChatInner({
|
|
|
2872
2872
|
[askAbout, displayRef, resolvedBaseRoute, chipBasePlatform, extras]
|
|
2873
2873
|
);
|
|
2874
2874
|
const mingoAssistantIcon = _react.useMemo.call(void 0,
|
|
2875
|
-
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2875
|
+
() => effectiveAssistantIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkODDUGLYFcjs.EntityIcon, { icon: effectiveAssistantIcon, size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBE4OUWTAcjs.AgentMark, { agent: "mingo", className: "h-6 w-6" }),
|
|
2876
2876
|
[effectiveAssistantIcon]
|
|
2877
2877
|
);
|
|
2878
2878
|
const [timestampCache] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
|
|
@@ -2884,13 +2884,13 @@ function EmbeddableChatInner({
|
|
|
2884
2884
|
pruneTimestampCache(timestampCache, new Set(rawMessages.map((m) => m.id)));
|
|
2885
2885
|
return mapped;
|
|
2886
2886
|
}, [rawMessages, guideUserName, guideUserAvatar, timestampCache]);
|
|
2887
|
-
const whatToAsk =
|
|
2887
|
+
const whatToAsk = _chunk7OJMOG34cjs.useWhatToAsk.call(void 0, {
|
|
2888
2888
|
dialogId: activeDialogId,
|
|
2889
2889
|
content: typeof whatToAskContent === "function" ? void 0 : whatToAskContent,
|
|
2890
2890
|
user: {
|
|
2891
2891
|
name: _nullishCoalesce(headerUserName, () => ( "You")),
|
|
2892
2892
|
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:
|
|
2893
|
+
authorType: _chunkE2ZZOYSMcjs.AUTHOR_TYPE.ADMIN
|
|
2894
2894
|
},
|
|
2895
2895
|
assistant: { name: "Mingo", assistantType: "mingo" }
|
|
2896
2896
|
});
|
|
@@ -2903,7 +2903,7 @@ function EmbeddableChatInner({
|
|
|
2903
2903
|
noteWhatToAskSend();
|
|
2904
2904
|
let augmentedText = text;
|
|
2905
2905
|
if (readyAttachments.length > 0) {
|
|
2906
|
-
const markdown = readyAttachments.map((att) =>
|
|
2906
|
+
const markdown = readyAttachments.map((att) => _chunk7OJMOG34cjs.formatChatAttachmentMarkdownForBubble.call(void 0, att, viewUrlPrefix)).join("");
|
|
2907
2907
|
augmentedText = `${text}${markdown}`;
|
|
2908
2908
|
}
|
|
2909
2909
|
void sendMessage(augmentedText, {
|
|
@@ -2942,7 +2942,7 @@ function EmbeddableChatInner({
|
|
|
2942
2942
|
// agent/persona (`icon_props.color`) wins; the built-in slug map
|
|
2943
2943
|
// (fae→pink, mingo→cyan) is only the fallback for unconfigured
|
|
2944
2944
|
// built-in agents.
|
|
2945
|
-
accent: _nullishCoalesce(
|
|
2945
|
+
accent: _nullishCoalesce(_chunk7OJMOG34cjs.accentFromIdentityIcon.call(void 0, effectiveAssistantIcon), () => ( _chunk7OJMOG34cjs.getAgentAccent.call(void 0, activeAgentSlug)))
|
|
2946
2946
|
}));
|
|
2947
2947
|
}
|
|
2948
2948
|
return (_nullishCoalesce(effectiveSuggestedQueries, () => ( []))).map((q, i) => ({
|
|
@@ -2990,7 +2990,7 @@ function EmbeddableChatInner({
|
|
|
2990
2990
|
unarchiveDialog: mingoCaps.unarchiveDialog
|
|
2991
2991
|
});
|
|
2992
2992
|
const handleOpen = _react.useCallback.call(void 0, () => setIsOpen(true), [setIsOpen]);
|
|
2993
|
-
|
|
2993
|
+
_chunk7OJMOG34cjs.useCloseOnNavigation.call(void 0, handleNavigationClose, null);
|
|
2994
2994
|
_react.useEffect.call(void 0, () => {
|
|
2995
2995
|
const handler = (e) => {
|
|
2996
2996
|
const detail = e.detail;
|
|
@@ -2998,8 +2998,8 @@ function EmbeddableChatInner({
|
|
|
2998
2998
|
setIsOpen(true);
|
|
2999
2999
|
setTimeout(() => askAbout(detail.ref), 0);
|
|
3000
3000
|
};
|
|
3001
|
-
window.addEventListener(
|
|
3002
|
-
return () => window.removeEventListener(
|
|
3001
|
+
window.addEventListener(_chunk7OJMOG34cjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3002
|
+
return () => window.removeEventListener(_chunk7OJMOG34cjs.ASK_AI_OPEN_WITH_REF_EVENT, handler);
|
|
3003
3003
|
}, [source, askAbout, setIsOpen]);
|
|
3004
3004
|
const pendingAskRef = _react.useRef.call(void 0, null);
|
|
3005
3005
|
const isDraft = activeDialogId == null && messages.length === 0;
|
|
@@ -3033,14 +3033,15 @@ function EmbeddableChatInner({
|
|
|
3033
3033
|
const prompt = typeof detail.prompt === "string" ? detail.prompt.trim() : "";
|
|
3034
3034
|
if (prompt) setTimeout(() => sendAskPrompt(prompt), 0);
|
|
3035
3035
|
};
|
|
3036
|
-
window.addEventListener(
|
|
3037
|
-
return () => window.removeEventListener(
|
|
3036
|
+
window.addEventListener(_chunk7OJMOG34cjs.ASK_AI_OPEN_EVENT, handler);
|
|
3037
|
+
return () => window.removeEventListener(_chunk7OJMOG34cjs.ASK_AI_OPEN_EVENT, handler);
|
|
3038
3038
|
}, [source, setIsOpen, sendAskPrompt]);
|
|
3039
|
-
_react.useEffect.call(void 0, () =>
|
|
3039
|
+
_react.useEffect.call(void 0, () => _chunk7OJMOG34cjs.chatListensForAskAiOpens.call(void 0, ), []);
|
|
3040
3040
|
const hasMessages = messages.length > 0;
|
|
3041
3041
|
const dialogsInitialLoading = isDialogsLoading && dialogs.length === 0;
|
|
3042
3042
|
const dialogsLoadError = dialogsError && dialogs.length === 0;
|
|
3043
3043
|
const isLoadingActiveDialogMessages = activeDialogId != null && isMessagesLoading;
|
|
3044
|
+
const hasAboveComposer = aboveComposer != null && aboveComposer !== false;
|
|
3044
3045
|
const hasConversation = hasMessages || isOpeningDialog || isViewingArchived || isLoadingActiveDialogMessages || previewMode && isMessagesLoading;
|
|
3045
3046
|
const messagesInitialLoading = isMessagesLoading && !hasMessages;
|
|
3046
3047
|
const contentViewKey = hasConversation ? "conversation" : activeMode;
|
|
@@ -3072,7 +3073,7 @@ function EmbeddableChatInner({
|
|
|
3072
3073
|
(message, index) => {
|
|
3073
3074
|
if (message.role !== "assistant") return null;
|
|
3074
3075
|
if (chatLoading && index === messages.length - 1) return null;
|
|
3075
|
-
const { cited, uncited } = splitCitedSources(message.sources,
|
|
3076
|
+
const { cited, uncited } = splitCitedSources(message.sources, _chunk7OJMOG34cjs.flattenAssistantContent.call(void 0, message.content));
|
|
3076
3077
|
if (cited.length === 0 && uncited.length === 0) return null;
|
|
3077
3078
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pb-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3078
3079
|
SourceChips,
|
|
@@ -3090,7 +3091,7 @@ function EmbeddableChatInner({
|
|
|
3090
3091
|
);
|
|
3091
3092
|
const [portalHost, setPortalHost] = _react.useState.call(void 0, null);
|
|
3092
3093
|
const [panelBoundary, setPanelBoundary] = _react.useState.call(void 0, null);
|
|
3093
|
-
const splitMinWidth = (isV2 ?
|
|
3094
|
+
const splitMinWidth = (isV2 ? _chunk7OJMOG34cjs.MINGO_V2_RAIL_WIDTH : HISTORY_RAIL_WIDTH) + _chunk7OJMOG34cjs.CHAT_BLOCK_MIN_WIDTH;
|
|
3094
3095
|
const [canSplit, setCanSplit] = _react.useState.call(void 0, false);
|
|
3095
3096
|
_react.useEffect.call(void 0, () => {
|
|
3096
3097
|
if (!panelBoundary || typeof ResizeObserver === "undefined") return void 0;
|
|
@@ -3109,7 +3110,7 @@ function EmbeddableChatInner({
|
|
|
3109
3110
|
[splitMinWidth]
|
|
3110
3111
|
);
|
|
3111
3112
|
const [railCollapsed, setRailCollapsed] = _react.useState.call(void 0, false);
|
|
3112
|
-
const railStorageHydrated =
|
|
3113
|
+
const railStorageHydrated = _chunk7OJMOG34cjs.useIsHydrated.call(void 0, );
|
|
3113
3114
|
const [railStorageRead, setRailStorageRead] = _react.useState.call(void 0, false);
|
|
3114
3115
|
if (railStorageHydrated && !railStorageRead) {
|
|
3115
3116
|
setRailStorageRead(true);
|
|
@@ -3163,7 +3164,7 @@ function EmbeddableChatInner({
|
|
|
3163
3164
|
resetToNewChat();
|
|
3164
3165
|
}, [clearWhatToAskDraft, resetToNewChat]);
|
|
3165
3166
|
const activeDialogStatus = activeDialog && dialogStatusOf ? dialogStatusOf(activeDialog) : void 0;
|
|
3166
|
-
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 ||
|
|
3167
|
+
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 || _chunk7OJMOG34cjs.awaitsDecision.call(void 0, hostMessages);
|
|
3167
3168
|
const showWhatToAsk = (content) => {
|
|
3168
3169
|
whatToAsk.clearDraft();
|
|
3169
3170
|
resetToNewChat();
|
|
@@ -3259,7 +3260,7 @@ function EmbeddableChatInner({
|
|
|
3259
3260
|
}),
|
|
3260
3261
|
[resetToNewChat, contextMaxItems]
|
|
3261
3262
|
);
|
|
3262
|
-
const splitHeaderMenuItems =
|
|
3263
|
+
const splitHeaderMenuItems = _chunk7OJMOG34cjs.chatDialogMenuItems.call(void 0, {
|
|
3263
3264
|
onCopyLink: headerOnCopyLink,
|
|
3264
3265
|
onRename: headerOnRename,
|
|
3265
3266
|
onCompact: headerOnCompact,
|
|
@@ -3339,7 +3340,7 @@ function EmbeddableChatInner({
|
|
|
3339
3340
|
onRetry: reloadDialogs
|
|
3340
3341
|
};
|
|
3341
3342
|
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,
|
|
3342
|
-
|
|
3343
|
+
_chunk7OJMOG34cjs.MingoChatHeader,
|
|
3343
3344
|
{
|
|
3344
3345
|
title: archiveOpen ? "Chat Archive" : headerShowBack || isGuideEmpty ? headerTitle : freshConversationTitle,
|
|
3345
3346
|
subtitle: archiveOpen ? void 0 : headerPersonName,
|
|
@@ -3359,7 +3360,7 @@ function EmbeddableChatInner({
|
|
|
3359
3360
|
const body = (
|
|
3360
3361
|
// The whole panel reads the appearance (the composer's footer too), not
|
|
3361
3362
|
// only the thread `ChatMessageList` provides it to.
|
|
3362
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3363
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OJMOG34cjs.ChatAppearanceContext.Provider, { value: appearance, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4DQ4CNAGcjs.PortalContainerContext.Provider, { value: portalHost, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk4DQ4CNAGcjs.CollisionBoundaryContext.Provider, { value: panelBoundary, children: [
|
|
3363
3364
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3364
3365
|
"div",
|
|
3365
3366
|
{
|
|
@@ -3367,7 +3368,7 @@ function EmbeddableChatInner({
|
|
|
3367
3368
|
"data-surface": isV2 ? "mingo" : void 0,
|
|
3368
3369
|
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" : ""}`,
|
|
3369
3370
|
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,
|
|
3370
|
-
|
|
3371
|
+
_chunk7OJMOG34cjs.ChatArchivePage,
|
|
3371
3372
|
{
|
|
3372
3373
|
dialogs: archivedDialogs,
|
|
3373
3374
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3383,7 +3384,7 @@ function EmbeddableChatInner({
|
|
|
3383
3384
|
) }, "archive-view") : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3384
3385
|
"div",
|
|
3385
3386
|
{
|
|
3386
|
-
className:
|
|
3387
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0,
|
|
3387
3388
|
"min-h-0 flex-1 duration-200 animate-in fade-in-0",
|
|
3388
3389
|
// v2: the list runs the full height beside a column of header,
|
|
3389
3390
|
// banner and chat; each child below takes its cell explicitly.
|
|
@@ -3397,7 +3398,7 @@ function EmbeddableChatInner({
|
|
|
3397
3398
|
narrow: true,
|
|
3398
3399
|
className: "col-start-1 row-span-3 row-start-1",
|
|
3399
3400
|
innerClassName: "flex min-h-0 flex-col",
|
|
3400
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3401
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OJMOG34cjs.MingoChatRail, { ...mingoRailProps, className: "w-full border-r-0" })
|
|
3401
3402
|
}
|
|
3402
3403
|
),
|
|
3403
3404
|
isV2 ? v2Header : showWideHeader ? (
|
|
@@ -3426,7 +3427,7 @@ function EmbeddableChatInner({
|
|
|
3426
3427
|
// Back is a full-height leading cell, matching the other
|
|
3427
3428
|
// header cells (not a small inline chevron).
|
|
3428
3429
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3429
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3430
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { variant: "cell", className: "w-14", onClick: closeArchive, "aria-label": "Back to chats", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFC7N7BQXcjs.Chevron02LeftIcon, { size: 24 }) }),
|
|
3430
3431
|
/* @__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" }) })
|
|
3431
3432
|
] })
|
|
3432
3433
|
) : (
|
|
@@ -3436,7 +3437,7 @@ function EmbeddableChatInner({
|
|
|
3436
3437
|
// (Figma 116:51217) and the magnifier toggle is hidden.
|
|
3437
3438
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3438
3439
|
railSearchOpen && mingoCaps.onSearchChange ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3439
|
-
|
|
3440
|
+
_chunk7OJMOG34cjs.ChatHeaderSearchField,
|
|
3440
3441
|
{
|
|
3441
3442
|
initialValue: mingoCaps.searchQuery,
|
|
3442
3443
|
onSearchChange: mingoCaps.onSearchChange,
|
|
@@ -3445,7 +3446,7 @@ function EmbeddableChatInner({
|
|
|
3445
3446
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3446
3447
|
/* @__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" }) }),
|
|
3447
3448
|
mingoCaps.onSearchChange && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3448
|
-
|
|
3449
|
+
_chunkFLS6DZENcjs.Button,
|
|
3449
3450
|
{
|
|
3450
3451
|
variant: "cell",
|
|
3451
3452
|
className: "w-14",
|
|
@@ -3457,7 +3458,7 @@ function EmbeddableChatInner({
|
|
|
3457
3458
|
)
|
|
3458
3459
|
] }),
|
|
3459
3460
|
headerOnOpenArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3460
|
-
|
|
3461
|
+
_chunkFLS6DZENcjs.Button,
|
|
3461
3462
|
{
|
|
3462
3463
|
variant: "cell",
|
|
3463
3464
|
className: "w-14",
|
|
@@ -3472,7 +3473,7 @@ function EmbeddableChatInner({
|
|
|
3472
3473
|
),
|
|
3473
3474
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 divide-x divide-ods-border", children: [
|
|
3474
3475
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3475
|
-
|
|
3476
|
+
_chunkFLS6DZENcjs.Button,
|
|
3476
3477
|
{
|
|
3477
3478
|
variant: "cell",
|
|
3478
3479
|
type: "button",
|
|
@@ -3491,7 +3492,7 @@ function EmbeddableChatInner({
|
|
|
3491
3492
|
headerAvatar ? (
|
|
3492
3493
|
// Owner avatar at the title cell's right edge (Figma 113:63273).
|
|
3493
3494
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3494
|
-
|
|
3495
|
+
_chunkZJS45HQZcjs.SquareAvatar,
|
|
3495
3496
|
{
|
|
3496
3497
|
variant: "round",
|
|
3497
3498
|
sizePx: 32,
|
|
@@ -3505,17 +3506,17 @@ function EmbeddableChatInner({
|
|
|
3505
3506
|
)
|
|
3506
3507
|
) : null
|
|
3507
3508
|
] }),
|
|
3508
|
-
isViewingArchived && headerOnRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3509
|
+
isViewingArchived && headerOnRestore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { variant: "cell", className: "w-14", onClick: headerOnRestore, "aria-label": "Unarchive chat", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPX2JK6Pcjs.Refresh01LeftIcon, { size: 24 }) }),
|
|
3509
3510
|
headerShowBack && !isViewingArchived && splitHeaderMenuItems.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3510
|
-
|
|
3511
|
+
_chunkFS7CBRF4cjs.ActionsMenuDropdown,
|
|
3511
3512
|
{
|
|
3512
3513
|
triggerAriaLabel: "Chat actions",
|
|
3513
3514
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
3514
3515
|
groups: [{ items: splitHeaderMenuItems }],
|
|
3515
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3516
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { variant: "cell", className: "w-14", "aria-label": "Chat actions", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWHUL32Wcjs.Ellipsis01Icon, { size: 24 }) })
|
|
3516
3517
|
}
|
|
3517
3518
|
),
|
|
3518
|
-
closeControl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3519
|
+
closeControl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLS6DZENcjs.Button, { variant: "cell", className: "w-14", onClick: closeControl, "aria-label": "Close", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { size: 24 }) })
|
|
3519
3520
|
] })
|
|
3520
3521
|
] })
|
|
3521
3522
|
) : (
|
|
@@ -3523,20 +3524,20 @@ function EmbeddableChatInner({
|
|
|
3523
3524
|
// guide, resolved into `narrowHeaderProps` above. (Wide layouts,
|
|
3524
3525
|
// including rail-collapsed, use the wide header above.) Embedded
|
|
3525
3526
|
// previews (hero demo tabs) force the compact bar via `compact`.
|
|
3526
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3527
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OJMOG34cjs.ChatPanelHeader, { ...narrowHeaderProps, compact: previewMode })
|
|
3527
3528
|
),
|
|
3528
3529
|
activeMode === "guide" && hasMingoMode && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3529
|
-
|
|
3530
|
+
_chunk7OJMOG34cjs.GuideModeBanner,
|
|
3530
3531
|
{
|
|
3531
|
-
className:
|
|
3532
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0, "duration-200 animate-in fade-in-0", isV2 && "col-start-2 row-start-2")
|
|
3532
3533
|
}
|
|
3533
3534
|
),
|
|
3534
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
3535
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "flex min-h-0 flex-1 overflow-hidden", isV2 && "col-start-2 row-start-3 min-w-0"), children: [
|
|
3535
3536
|
!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 ? (
|
|
3536
3537
|
// Archive list inside the rail (header lives in the split
|
|
3537
3538
|
// header's left cell above). Right chat block stays put.
|
|
3538
3539
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3539
|
-
|
|
3540
|
+
_chunk7OJMOG34cjs.ChatArchivePage,
|
|
3540
3541
|
{
|
|
3541
3542
|
embedded: true,
|
|
3542
3543
|
dialogs: archivedDialogs,
|
|
@@ -3550,7 +3551,7 @@ function EmbeddableChatInner({
|
|
|
3550
3551
|
}
|
|
3551
3552
|
)
|
|
3552
3553
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3553
|
-
|
|
3554
|
+
_chunk7OJMOG34cjs.MingoHistoryRail,
|
|
3554
3555
|
{
|
|
3555
3556
|
dialogs,
|
|
3556
3557
|
activeDialogId: _nullishCoalesce(activeDialogId, () => ( void 0)),
|
|
@@ -3574,11 +3575,11 @@ function EmbeddableChatInner({
|
|
|
3574
3575
|
onRetry: reloadDialogs
|
|
3575
3576
|
}
|
|
3576
3577
|
) }),
|
|
3577
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
3578
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkMGEUZRNQcjs.cn.call(void 0, "flex min-h-0 min-w-0 flex-1 flex-col", isV2 && "ods-glow-accent-corner"), children: isV2 && archiveOpen ? (
|
|
3578
3579
|
// v2: the archive opens in the chat column under the chat's
|
|
3579
3580
|
// header; the list stays, and "Chat Archive" there toggles back.
|
|
3580
3581
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3581
|
-
|
|
3582
|
+
_chunk7OJMOG34cjs.MingoArchiveList,
|
|
3582
3583
|
{
|
|
3583
3584
|
dialogs: archivedDialogs,
|
|
3584
3585
|
onSelectDialog: handleArchivedSelect,
|
|
@@ -3591,7 +3592,7 @@ function EmbeddableChatInner({
|
|
|
3591
3592
|
}
|
|
3592
3593
|
)
|
|
3593
3594
|
) : stackedListView && isV2 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3594
|
-
|
|
3595
|
+
_chunk7OJMOG34cjs.MingoChatRail,
|
|
3595
3596
|
{
|
|
3596
3597
|
...mingoRailProps,
|
|
3597
3598
|
onNewChat: () => setComposeOpen(true),
|
|
@@ -3610,7 +3611,7 @@ function EmbeddableChatInner({
|
|
|
3610
3611
|
// single-column view. No composer here; "Start New Chat" opens
|
|
3611
3612
|
// the compose view.
|
|
3612
3613
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3613
|
-
|
|
3614
|
+
_chunk7OJMOG34cjs.MingoHistoryRail,
|
|
3614
3615
|
{
|
|
3615
3616
|
className: "duration-200 animate-in fade-in-0",
|
|
3616
3617
|
dialogs,
|
|
@@ -3636,110 +3637,131 @@ function EmbeddableChatInner({
|
|
|
3636
3637
|
}
|
|
3637
3638
|
)
|
|
3638
3639
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3639
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3640
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3640
3641
|
"div",
|
|
3641
3642
|
{
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3643
|
+
ref: galleryPanelRef,
|
|
3644
|
+
"data-testid": "chat-content-panel",
|
|
3645
|
+
className: _chunkMGEUZRNQcjs.cn.call(void 0,
|
|
3646
|
+
"flex min-h-0 flex-1 flex-col p-[var(--spacing-system-m)]",
|
|
3647
|
+
// With a host block above the composer the thread keeps room
|
|
3648
|
+
// for a line and the working status: the block gives way
|
|
3649
|
+
// instead (below), so the status never lands on it.
|
|
3650
|
+
hasAboveComposer && "min-h-32"
|
|
3651
|
+
),
|
|
3652
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3653
|
+
"div",
|
|
3645
3654
|
{
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3655
|
+
className: "flex min-h-0 flex-1 flex-col duration-200 animate-in fade-in-0",
|
|
3656
|
+
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
|
+
_chunk7OJMOG34cjs.ChatMessageList,
|
|
3658
|
+
{
|
|
3659
|
+
messages,
|
|
3660
|
+
isLoading: messagesInitialLoading,
|
|
3661
|
+
fill: previewMode,
|
|
3662
|
+
appearance,
|
|
3663
|
+
isTyping: chatLoading,
|
|
3664
|
+
typingMessage: streamingProgress ? _chunk7OJMOG34cjs.chatProgressLabel.call(void 0, streamingProgress) : void 0,
|
|
3665
|
+
pendingApprovals,
|
|
3666
|
+
autoScroll: !previewMode,
|
|
3667
|
+
pinBottom: previewMode,
|
|
3668
|
+
overscrollContain: !previewMode,
|
|
3669
|
+
assistantType: "mingo",
|
|
3670
|
+
assistantIcon: mingoAssistantIcon,
|
|
3671
|
+
renderEntityCard,
|
|
3672
|
+
resolveContextIcon,
|
|
3673
|
+
renderContextItem,
|
|
3674
|
+
renderMention,
|
|
3675
|
+
renderAfterMessage: renderMessageSources,
|
|
3676
|
+
onAskSelect: chatLoading || previewMode ? void 0 : handleAskSelect,
|
|
3677
|
+
NavLinkAnchor: _chunk7OJMOG34cjs.NavLinkAnchorViaRuntime,
|
|
3678
|
+
className: previewMode ? "pointer-events-auto flex-1" : "flex-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
3679
|
+
contentClassName: "max-w-none pb-0",
|
|
3680
|
+
fullWidth: true,
|
|
3681
|
+
hasNextPage: hasMoreMessages,
|
|
3682
|
+
isFetchingNextPage: isMessagesLoading,
|
|
3683
|
+
onLoadMore: loadMoreMessages
|
|
3684
|
+
}
|
|
3685
|
+
) }) : activeMode === "mingo" ? (
|
|
3686
|
+
/* Figma node 7532:222444 — default (Mingo-mode) empty state:
|
|
3687
|
+
centred greeting + capability grid + Guide-chat promo +
|
|
3688
|
+
quick-action chips. Guide mode keeps the slash-command
|
|
3689
|
+
onboarding list below. */
|
|
3690
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3691
|
+
_chunk7OJMOG34cjs.MingoWelcome,
|
|
3692
|
+
{
|
|
3693
|
+
onStartGuideChat: effectiveModes.guide ? () => handleActiveModeChange("guide") : void 0,
|
|
3694
|
+
historyPageSize,
|
|
3695
|
+
...mingoWelcome,
|
|
3696
|
+
hasExistingChats: false,
|
|
3697
|
+
onQuickActionHover: (action) => setQuickActionPreview(_nullishCoalesce(action.prompt, () => ( action.label))),
|
|
3698
|
+
onQuickActionHoverEnd: () => setQuickActionPreview(null),
|
|
3699
|
+
agentSlug: _nullishCoalesce(activeAgentSlug, () => ( "mingo"))
|
|
3700
|
+
}
|
|
3701
|
+
)
|
|
3702
|
+
) : (
|
|
3703
|
+
/* Figma node 7532:328214 — Guide-mode empty state: greeting
|
|
3704
|
+
+ slash-command onboarding list share one scroll region,
|
|
3705
|
+
with a pinned quick-action chip row above the composer. */
|
|
3706
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3707
|
+
_chunk7OJMOG34cjs.GuideWelcome,
|
|
3708
|
+
{
|
|
3709
|
+
subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
|
|
3710
|
+
subtitleLoading: emptyStateLoading,
|
|
3711
|
+
...guideWelcome,
|
|
3712
|
+
title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _68 => _68.title]))),
|
|
3713
|
+
icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _69 => _69.icon]))),
|
|
3714
|
+
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _70 => _70.quickActions]), () => ( guideSuggestedActions)),
|
|
3715
|
+
onQuickAction: (action) => {
|
|
3716
|
+
setQuickActionPreview(null);
|
|
3717
|
+
handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
|
|
3718
|
+
},
|
|
3719
|
+
onQuickActionHover: (action) => setQuickActionPreview(_nullishCoalesce(action.prompt, () => ( action.label))),
|
|
3720
|
+
onQuickActionHoverEnd: () => setQuickActionPreview(null),
|
|
3721
|
+
agentSlug: activeAgentSlug,
|
|
3722
|
+
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, _chunkMGEUZRNQcjs.LoadingItems, { count: _chunkE2ZZOYSMcjs.MINGO_ONBOARDING_SKELETON_ROWS, children: (i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE2ZZOYSMcjs.MingoOnboardingCard, { loading: true, "data-loading-item": true, skeletonIndex: i, title: "" }) }),
|
|
3724
|
+
chipCommands.map((cmd) => {
|
|
3725
|
+
const Icon = _chunkCS5SZJFVcjs.resolveIcon.call(void 0, cmd.iconName);
|
|
3726
|
+
const cmdId = cmd.id;
|
|
3727
|
+
const label = _nullishCoalesce(cmd.label, () => ( `/${cmdId}`));
|
|
3728
|
+
const cardActions = cmd.actions.map((action) => ({
|
|
3729
|
+
id: action.id,
|
|
3730
|
+
label: action.label,
|
|
3731
|
+
onClick: () => dispatchSlashCommandAction(action.id, cmdId, chatInputRef)
|
|
3732
|
+
}));
|
|
3733
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3734
|
+
_chunkE2ZZOYSMcjs.MingoOnboardingCard,
|
|
3735
|
+
{
|
|
3736
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 16 }),
|
|
3737
|
+
title: label,
|
|
3738
|
+
slashCommand: `/${cmdId}`,
|
|
3739
|
+
description: cmd.description,
|
|
3740
|
+
actions: cardActions,
|
|
3741
|
+
"data-loading-item": true
|
|
3742
|
+
},
|
|
3743
|
+
cmdId
|
|
3744
|
+
);
|
|
3745
|
+
})
|
|
3746
|
+
] })
|
|
3747
|
+
}
|
|
3748
|
+
)
|
|
3749
|
+
)
|
|
3750
|
+
},
|
|
3751
|
+
contentViewKey
|
|
3736
3752
|
)
|
|
3737
|
-
}
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3753
|
+
}
|
|
3754
|
+
),
|
|
3755
|
+
hasAboveComposer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3756
|
+
"div",
|
|
3757
|
+
{
|
|
3758
|
+
"data-testid": "chat-above-composer",
|
|
3759
|
+
className: "flex min-h-0 shrink flex-col px-[var(--spacing-system-m)] pb-[var(--spacing-system-m)]",
|
|
3760
|
+
children: aboveComposer
|
|
3761
|
+
}
|
|
3762
|
+
),
|
|
3741
3763
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3742
|
-
|
|
3764
|
+
_chunk7OJMOG34cjs.ChatAttachmentChipStrip,
|
|
3743
3765
|
{
|
|
3744
3766
|
attachments: stagedAttachments,
|
|
3745
3767
|
onRemove: removeAttachment,
|
|
@@ -3747,7 +3769,7 @@ function EmbeddableChatInner({
|
|
|
3747
3769
|
}
|
|
3748
3770
|
),
|
|
3749
3771
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3750
|
-
|
|
3772
|
+
_chunk7OJMOG34cjs.ChatComposer,
|
|
3751
3773
|
{
|
|
3752
3774
|
archived: isViewingArchived,
|
|
3753
3775
|
lock: composerLock,
|
|
@@ -3798,7 +3820,7 @@ function EmbeddableChatInner({
|
|
|
3798
3820
|
),
|
|
3799
3821
|
galleryModal,
|
|
3800
3822
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3801
|
-
|
|
3823
|
+
_chunk7OJMOG34cjs.ChatDialogModals,
|
|
3802
3824
|
{
|
|
3803
3825
|
renameTarget,
|
|
3804
3826
|
setRenameTarget,
|
|
@@ -3814,14 +3836,14 @@ function EmbeddableChatInner({
|
|
|
3814
3836
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
3815
3837
|
] }) }) })
|
|
3816
3838
|
);
|
|
3817
|
-
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3839
|
+
const panel = shellLess ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk7OJMOG34cjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: [
|
|
3818
3840
|
shell === "none" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactvisuallyhidden.VisuallyHidden, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Title, { children: [
|
|
3819
3841
|
sourceLabel,
|
|
3820
3842
|
" AI Assistant"
|
|
3821
3843
|
] }) }),
|
|
3822
3844
|
body
|
|
3823
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3824
|
-
|
|
3845
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZFOMRALUcjs.Drawer, { open: isOpen, onOpenChange: (o) => !o && handleClose(), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OJMOG34cjs.ChatPanelContext.Provider, { value: chatPanelHandle, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3846
|
+
_chunkZFOMRALUcjs.DrawerContent,
|
|
3825
3847
|
{
|
|
3826
3848
|
side: "right",
|
|
3827
3849
|
flush: true,
|
|
@@ -3850,10 +3872,10 @@ function EmbeddableChatInner({
|
|
|
3850
3872
|
"aria-hidden": isOpen,
|
|
3851
3873
|
className: `pointer-events-none sticky bottom-0 z-[9990] h-0 ${isOpen ? "opacity-0" : "opacity-100"}`,
|
|
3852
3874
|
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,
|
|
3853
|
-
|
|
3875
|
+
_chunkFLS6DZENcjs.Button,
|
|
3854
3876
|
{
|
|
3855
3877
|
onClick: handleOpen,
|
|
3856
|
-
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3878
|
+
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBE4OUWTAcjs.AgentMark, { agent: "mingo", className: "h-5 w-5" }),
|
|
3857
3879
|
tabIndex: isOpen ? -1 : 0,
|
|
3858
3880
|
className: `pointer-events-auto !w-auto shadow-lg ${isOpen ? "!pointer-events-none" : ""}`,
|
|
3859
3881
|
children: "Ask AI"
|