@flamingo-stack/openframe-frontend-core 0.0.829 → 0.0.831
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-QMFGPABF.cjs → case-study-card-TK7ZCNLM.cjs} +5 -5
- package/dist/{chunk-LKP5R3EQ.cjs → chunk-46LATWQR.cjs} +2 -2
- package/dist/{chunk-IBD2FPSX.cjs → chunk-4JHO2NVI.cjs} +2 -2
- package/dist/{chunk-3B6ZE4EZ.cjs → chunk-5L3UKDC6.cjs} +16 -16
- package/dist/{chunk-THPAGFT6.cjs → chunk-7COZUANC.cjs} +60 -69
- package/dist/{chunk-DWSU35QQ.cjs → chunk-7WQD3R5J.cjs} +84 -84
- package/dist/{chunk-DAKGX2WF.cjs → chunk-APNONOHY.cjs} +2 -2
- package/dist/{chunk-KPGKTEEB.cjs → chunk-BUEEQD3G.cjs} +2 -2
- package/dist/{chunk-YMLRDVPO.cjs → chunk-C4OQIYGW.cjs} +11 -11
- package/dist/{chunk-IFLGIBFZ.cjs → chunk-CP46CVUC.cjs} +91 -91
- package/dist/{chunk-UO6F6LLI.cjs → chunk-D6ZSRGH2.cjs} +699 -642
- package/dist/{chunk-UE5ZBCJ4.cjs → chunk-DAQMCWCK.cjs} +3 -3
- package/dist/{chunk-MFYSV7DE.cjs → chunk-EYSIQORA.cjs} +94 -94
- package/dist/{chunk-DU6AF77X.cjs → chunk-FNNDGOR3.cjs} +33 -33
- package/dist/{chunk-OKTNRGM5.cjs → chunk-GPXKG34G.cjs} +54 -54
- package/dist/{chunk-FMSAN6SR.cjs → chunk-H3WTYAVR.cjs} +129 -129
- package/dist/{chunk-HMC2IWV4.cjs → chunk-HDLY6OMQ.cjs} +6 -6
- package/dist/{chunk-2VLPXUQK.cjs → chunk-HLJXCOMA.cjs} +4 -4
- package/dist/{chunk-PBHP3FHO.cjs → chunk-JBTH3O2C.cjs} +4 -4
- package/dist/{chunk-2HQNXX2K.cjs → chunk-JQCQCE6U.cjs} +2 -2
- package/dist/{chunk-AY6XJOIN.cjs → chunk-LWMWY3JO.cjs} +45 -45
- package/dist/{chunk-R3PKAIX3.cjs → chunk-OGPAVRNF.cjs} +17 -17
- package/dist/{chunk-4DUVTJ6A.cjs → chunk-P5DWAVWK.cjs} +28 -28
- package/dist/{chunk-4ZIKDOPY.cjs → chunk-QHBKZJ6A.cjs} +4 -4
- package/dist/{chunk-PRZAEPGG.cjs → chunk-R6QZHOJB.cjs} +46 -46
- package/dist/{chunk-F2J5WN6U.cjs → chunk-SOCCHWDK.cjs} +2 -2
- package/dist/{chunk-IMDYB77M.cjs → chunk-SRHHLDBP.cjs} +36 -36
- package/dist/{chunk-7PZQ7SHB.cjs → chunk-SWMUW3RR.cjs} +18 -18
- package/dist/{chunk-6GPMVHJN.cjs → chunk-TD4CC4KV.cjs} +20 -20
- package/dist/{chunk-6WNSZ5XP.cjs → chunk-UGM3YDCK.cjs} +25 -25
- package/dist/{chunk-AH4YWTWZ.cjs → chunk-UQS2RI5Y.cjs} +12 -12
- package/dist/{chunk-IHRMX3X6.cjs → chunk-VBGBKRDO.cjs} +684 -661
- package/dist/{chunk-YHQDB5QJ.cjs → chunk-VQG2A7GA.cjs} +2 -2
- package/dist/{chunk-S6UJEW4G.cjs → chunk-WCOSGDGA.cjs} +2 -2
- package/dist/{chunk-ENMPSEEQ.cjs → chunk-WVNUCKB7.cjs} +4 -4
- package/dist/{chunk-LNXRTVOY.cjs → chunk-X76TZ5YR.cjs} +21 -21
- package/dist/{chunk-IBQ3CSKL.cjs → chunk-X7VQM5TU.cjs} +6 -6
- package/dist/{chunk-BIG3O33P.cjs → chunk-YJZ7R3W5.cjs} +28 -2
- package/dist/{chunk-W4VEDSAX.cjs → chunk-ZABZIM2Y.cjs} +6 -6
- package/dist/{chunk-ZJXLNIWC.cjs → chunk-ZJ5K6XHW.cjs} +21 -21
- package/dist/{cloud-tenants-YVCSVVIS.cjs → cloud-tenants-E2AC4WEJ.cjs} +20 -20
- package/dist/components/case-studies/index.cjs +36 -36
- package/dist/components/chat/embeddable-chat.d.ts +3 -3
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +21 -14
- package/dist/components/chat/guide-welcome.d.ts +5 -16
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.js +4 -29
- package/dist/components/chat/index.cjs +19 -15
- package/dist/components/chat/mingo-quick-action-wall.d.ts +42 -16
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/mingo-quick-action-wall.js +105 -19
- package/dist/components/chat/mingo-welcome.d.ts +6 -13
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.js +5 -9
- package/dist/components/chat/quick-action-chip.d.ts +8 -2
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/chat/quick-action-chip.js +18 -8
- package/dist/components/chat/utils/icon-registry.d.ts +2 -2
- package/dist/components/chat/utils/icon-registry.js +2 -2
- package/dist/components/contact/index.cjs +21 -21
- package/dist/components/docs/index.cjs +24 -24
- package/dist/components/embeds/index.cjs +21 -21
- package/dist/components/faq/index.cjs +22 -22
- package/dist/components/features/index.cjs +22 -20
- package/dist/components/features/notifications/index.d.ts +3 -1
- package/dist/components/features/notifications/index.d.ts.map +1 -1
- package/dist/components/features/notifications/index.js +2 -0
- package/dist/components/features/notifications/notification-category-icon.d.ts +7 -0
- package/dist/components/features/notifications/notification-category-icon.d.ts.map +1 -0
- package/dist/components/features/notifications/notification-category-icon.js +26 -0
- package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
- package/dist/components/features/notifications/types.d.ts +1 -1
- package/dist/components/features/notifications/types.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +125 -125
- package/dist/components/index.cjs +90 -82
- package/dist/components/meeting-scheduler/index.cjs +69 -69
- package/dist/components/navigation/index.cjs +23 -23
- package/dist/components/navigation/site-footer.d.ts.map +1 -1
- package/dist/components/navigation/site-footer.js +2 -12
- package/dist/components/onboarding-guides/index.cjs +23 -23
- package/dist/components/product-demo/index.cjs +31 -31
- package/dist/components/related-content/index.cjs +9 -9
- package/dist/components/social-icon-row.d.ts +6 -2
- package/dist/components/social-icon-row.d.ts.map +1 -1
- package/dist/components/social-icon-row.js +5 -6
- package/dist/components/tickets/index.cjs +27 -27
- package/dist/components/ui/actions-menu.d.ts.map +1 -1
- package/dist/components/ui/actions-menu.js +27 -1
- package/dist/components/ui/index.cjs +24 -20
- package/dist/{devices-AW6BERJF.cjs → devices-CAYUGD2N.cjs} +21 -21
- package/dist/{embeddable-chat-ZJIOMMSA.cjs → embeddable-chat-FYHMR66R.cjs} +121 -114
- package/dist/hooks/index.cjs +7 -7
- package/dist/index.cjs +31 -25
- package/dist/{knowledge-PEOXTIVS.cjs → knowledge-OI4OPEVL.cjs} +21 -21
- package/dist/{logs-CYA7H4KM.cjs → logs-B3XV2NHV.cjs} +27 -27
- package/dist/platform-domains.cjs +4 -0
- package/dist/platform-domains.d.ts +2 -0
- package/dist/platform-domains.d.ts.map +1 -1
- package/dist/platform-domains.js +4 -0
- package/dist/{policies-M6QSFL5G.cjs → policies-ZB4Z42DV.cjs} +24 -24
- package/dist/{remote-session-QGFG5WAL.cjs → remote-session-CN3G7JNR.cjs} +7 -7
- package/dist/{scripts-Y46ECDDP.cjs → scripts-I4DNUOQC.cjs} +27 -27
- package/dist/{software-update-OTC2DGQZ.cjs → software-update-AWH4WXOH.cjs} +24 -24
- package/dist/{tickets-board-KCH6ITUV.cjs → tickets-board-PLYD2NSY.cjs} +11 -11
- package/dist/types/marketing.d.ts +61 -216
- package/dist/types/marketing.d.ts.map +1 -1
- package/dist/utils/index.cjs +2 -2
- package/dist/utils/notifications.cjs +55 -0
- package/dist/utils/notifications.d.ts +29 -0
- package/dist/utils/notifications.d.ts.map +1 -0
- package/dist/utils/notifications.js +53 -0
- package/dist/utils/social-platforms.d.ts +9 -9
- package/dist/utils/social-platforms.d.ts.map +1 -1
- package/package.json +7 -1
- package/src/components/chat/embeddable-chat.tsx +29 -45
- package/src/components/chat/guide-welcome.tsx +12 -57
- package/src/components/chat/mingo-quick-action-wall.tsx +166 -31
- package/src/components/chat/mingo-welcome.tsx +16 -35
- package/src/components/chat/quick-action-chip.tsx +32 -8
- package/src/components/chat/utils/icon-registry.ts +5 -5
- package/src/components/chat/utils/index.ts +1 -1
- package/src/components/features/notifications/index.ts +2 -1
- package/src/components/features/notifications/notification-category-icon.tsx +38 -0
- package/src/components/features/notifications/notification-tile.tsx +2 -1
- package/src/components/features/notifications/types.ts +1 -2
- package/src/components/navigation/site-footer.tsx +2 -11
- package/src/components/social-icon-row.tsx +11 -10
- package/src/components/ui/actions-menu.tsx +35 -1
- package/src/platform-domains.ts +5 -0
- package/src/types/marketing.ts +90 -268
- package/src/utils/index.ts +1 -1
- package/src/utils/notifications.ts +71 -0
- package/src/utils/social-platforms.ts +9 -9
|
@@ -4,32 +4,32 @@
|
|
|
4
4
|
var _chunkDTKGIG4Acjs = require('../../chunk-DTKGIG4A.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkP5DWAVWKcjs = require('../../chunk-P5DWAVWK.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
14
|
-
require('../../chunk-
|
|
15
|
-
require('../../chunk-
|
|
16
|
-
require('../../chunk-
|
|
13
|
+
var _chunkVBGBKRDOcjs = require('../../chunk-VBGBKRDO.cjs');
|
|
14
|
+
require('../../chunk-FNNDGOR3.cjs');
|
|
15
|
+
require('../../chunk-SWMUW3RR.cjs');
|
|
16
|
+
require('../../chunk-VQG2A7GA.cjs');
|
|
17
17
|
require('../../chunk-HQQE74RO.cjs');
|
|
18
18
|
require('../../chunk-DEY6XXGO.cjs');
|
|
19
|
-
require('../../chunk-
|
|
19
|
+
require('../../chunk-LWMWY3JO.cjs');
|
|
20
20
|
require('../../chunk-APOMNC7H.cjs');
|
|
21
21
|
require('../../chunk-24I6RFVU.cjs');
|
|
22
22
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
23
23
|
require('../../chunk-5SZ4ILU3.cjs');
|
|
24
|
-
require('../../chunk-
|
|
24
|
+
require('../../chunk-EYSIQORA.cjs');
|
|
25
25
|
require('../../chunk-OT6P57ZS.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
30
|
-
require('../../chunk-
|
|
31
|
-
require('../../chunk-
|
|
32
|
-
require('../../chunk-
|
|
29
|
+
var _chunkD6ZSRGH2cjs = require('../../chunk-D6ZSRGH2.cjs');
|
|
30
|
+
require('../../chunk-4JHO2NVI.cjs');
|
|
31
|
+
require('../../chunk-5L3UKDC6.cjs');
|
|
32
|
+
require('../../chunk-YJZ7R3W5.cjs');
|
|
33
33
|
require('../../chunk-6CZVQ72C.cjs');
|
|
34
34
|
require('../../chunk-46547WQW.cjs');
|
|
35
35
|
require('../../chunk-LNUFH4E2.cjs');
|
|
@@ -1830,27 +1830,27 @@ require('../../chunk-IYHH5EIO.cjs');
|
|
|
1830
1830
|
require('../../chunk-XIBCMGBW.cjs');
|
|
1831
1831
|
|
|
1832
1832
|
|
|
1833
|
-
var
|
|
1834
|
-
require('../../chunk-
|
|
1833
|
+
var _chunkHLJXCOMAcjs = require('../../chunk-HLJXCOMA.cjs');
|
|
1834
|
+
require('../../chunk-ZABZIM2Y.cjs');
|
|
1835
1835
|
require('../../chunk-7Z536SPR.cjs');
|
|
1836
|
-
require('../../chunk-
|
|
1836
|
+
require('../../chunk-BUEEQD3G.cjs');
|
|
1837
1837
|
require('../../chunk-JKX2C3I2.cjs');
|
|
1838
1838
|
require('../../chunk-WWUSFOJ7.cjs');
|
|
1839
1839
|
require('../../chunk-SKI6NKOE.cjs');
|
|
1840
1840
|
require('../../chunk-EWPR7662.cjs');
|
|
1841
1841
|
require('../../chunk-IX2E3AN7.cjs');
|
|
1842
1842
|
require('../../chunk-7DNL734S.cjs');
|
|
1843
|
-
require('../../chunk-
|
|
1843
|
+
require('../../chunk-C4OQIYGW.cjs');
|
|
1844
1844
|
|
|
1845
1845
|
|
|
1846
1846
|
|
|
1847
|
-
var
|
|
1847
|
+
var _chunkH3WTYAVRcjs = require('../../chunk-H3WTYAVR.cjs');
|
|
1848
1848
|
require('../../chunk-5BM7X4GA.cjs');
|
|
1849
1849
|
require('../../chunk-GRHF5SWL.cjs');
|
|
1850
1850
|
|
|
1851
1851
|
|
|
1852
|
-
var
|
|
1853
|
-
require('../../chunk-
|
|
1852
|
+
var _chunkTD4CC4KVcjs = require('../../chunk-TD4CC4KV.cjs');
|
|
1853
|
+
require('../../chunk-JBTH3O2C.cjs');
|
|
1854
1854
|
require('../../chunk-USUVHAQ7.cjs');
|
|
1855
1855
|
require('../../chunk-S5C3OZCO.cjs');
|
|
1856
1856
|
require('../../chunk-32ASZMTV.cjs');
|
|
@@ -1863,9 +1863,9 @@ require('../../chunk-BLH2SFOO.cjs');
|
|
|
1863
1863
|
require('../../chunk-MG3HJIGG.cjs');
|
|
1864
1864
|
require('../../chunk-LC65AC6M.cjs');
|
|
1865
1865
|
require('../../chunk-YSDB6HGQ.cjs');
|
|
1866
|
-
require('../../chunk-
|
|
1866
|
+
require('../../chunk-APNONOHY.cjs');
|
|
1867
1867
|
require('../../chunk-FX35L4Y6.cjs');
|
|
1868
|
-
require('../../chunk-
|
|
1868
|
+
require('../../chunk-JQCQCE6U.cjs');
|
|
1869
1869
|
require('../../chunk-NTPX5GXI.cjs');
|
|
1870
1870
|
require('../../chunk-GI3MMBP3.cjs');
|
|
1871
1871
|
require('../../chunk-3V5JWG27.cjs');
|
|
@@ -1889,7 +1889,7 @@ require('../../chunk-QDB2JO55.cjs');
|
|
|
1889
1889
|
|
|
1890
1890
|
// src/components/case-studies/share-experience-section.tsx
|
|
1891
1891
|
var _jsxruntime = require('react/jsx-runtime');
|
|
1892
|
-
var DEFAULT_TITLE = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1892
|
+
var DEFAULT_TITLE = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3WTYAVRcjs.HeadingLines, { children: [
|
|
1893
1893
|
"Share Your Experience",
|
|
1894
1894
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1895
1895
|
"with Fellow MSPs",
|
|
@@ -1914,7 +1914,7 @@ var DEFAULT_CONTACT_FORM_PROPS = {
|
|
|
1914
1914
|
buttonVariant: "outline",
|
|
1915
1915
|
buttonClassName: "w-full",
|
|
1916
1916
|
successToastMessage: "Thank you! We'll reach out to schedule your case study.",
|
|
1917
|
-
rescue:
|
|
1917
|
+
rescue: _chunkHLJXCOMAcjs.RESCUE_FORMS.caseStudyPitch
|
|
1918
1918
|
};
|
|
1919
1919
|
function ShareExperienceSection({
|
|
1920
1920
|
title = DEFAULT_TITLE,
|
|
@@ -1926,7 +1926,7 @@ function ShareExperienceSection({
|
|
|
1926
1926
|
} = {}) {
|
|
1927
1927
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { className: `flex flex-col gap-10${className ? ` ${className}` : ""}`, children: [
|
|
1928
1928
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-primary", children: [
|
|
1929
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h1", children:
|
|
1929
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h1", children: _chunkH3WTYAVRcjs.accentSentenceMarks.call(void 0, title) }),
|
|
1930
1930
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "mt-6 max-w-[765px] text-h4", children: subtitle })
|
|
1931
1931
|
] }),
|
|
1932
1932
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rounded-md border border-ods-border bg-ods-bg p-10", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-10", children: [
|
|
@@ -1934,9 +1934,9 @@ function ShareExperienceSection({
|
|
|
1934
1934
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-h2", children: howItWorksTitle }),
|
|
1935
1935
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h4", children: howItWorksBody })
|
|
1936
1936
|
] }),
|
|
1937
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1937
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkVBGBKRDOcjs.BenefitCardGrid, { columns: 4, children: [
|
|
1938
1938
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1939
|
-
|
|
1939
|
+
_chunkVBGBKRDOcjs.BenefitCard,
|
|
1940
1940
|
{
|
|
1941
1941
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-md border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMJQLBIZMcjs.G2Icon, { color: "var(--social-g2)", size: 24 }) }),
|
|
1942
1942
|
title: "G2",
|
|
@@ -1945,7 +1945,7 @@ function ShareExperienceSection({
|
|
|
1945
1945
|
}
|
|
1946
1946
|
),
|
|
1947
1947
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1948
|
-
|
|
1948
|
+
_chunkVBGBKRDOcjs.BenefitCard,
|
|
1949
1949
|
{
|
|
1950
1950
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-md border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA2VKPXOBcjs.CapterraIcon, { size: 24 }) }),
|
|
1951
1951
|
title: "Capterra",
|
|
@@ -1954,7 +1954,7 @@ function ShareExperienceSection({
|
|
|
1954
1954
|
}
|
|
1955
1955
|
),
|
|
1956
1956
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1957
|
-
|
|
1957
|
+
_chunkVBGBKRDOcjs.BenefitCard,
|
|
1958
1958
|
{
|
|
1959
1959
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-md border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTLKSZG3Dcjs.TrustpilotIcon, { size: 24 }) }),
|
|
1960
1960
|
title: "TrustPilot",
|
|
@@ -1963,7 +1963,7 @@ function ShareExperienceSection({
|
|
|
1963
1963
|
}
|
|
1964
1964
|
),
|
|
1965
1965
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1966
|
-
|
|
1966
|
+
_chunkVBGBKRDOcjs.BenefitCard,
|
|
1967
1967
|
{
|
|
1968
1968
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-md border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkILYW6BQNcjs.GetappIcon, { size: 24 }) }),
|
|
1969
1969
|
title: "GetApp",
|
|
@@ -1972,7 +1972,7 @@ function ShareExperienceSection({
|
|
|
1972
1972
|
}
|
|
1973
1973
|
)
|
|
1974
1974
|
] }),
|
|
1975
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1975
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP5DWAVWKcjs.ContactForm, { ...DEFAULT_CONTACT_FORM_PROPS, ...contactFormProps })
|
|
1976
1976
|
] }) })
|
|
1977
1977
|
] });
|
|
1978
1978
|
}
|
|
@@ -1989,7 +1989,7 @@ function EntityQuotesPanel({ quotes, className }) {
|
|
|
1989
1989
|
// Optional per record, so the loading state draws none: the gate leaves the loaded panel out of its comparison.
|
|
1990
1990
|
// A plain block around the one panel, so the parent's spacing applies to it as it did to the panel.
|
|
1991
1991
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-optional": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1992
|
-
|
|
1992
|
+
_chunkVBGBKRDOcjs.StackedRowsPanel,
|
|
1993
1993
|
{
|
|
1994
1994
|
className,
|
|
1995
1995
|
title: `${_chunkDTKGIG4Acjs.ENTITY_QUOTES_TITLE} \xB7 ${quotes.length}`,
|
|
@@ -2020,26 +2020,26 @@ var QUOTE_CARD_CLASS = "relative p-[var(--spacing-system-sf)]";
|
|
|
2020
2020
|
function QuoteCardTile({ quote, decorative, className, loading, ...props }) {
|
|
2021
2021
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading || !quote) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QuoteCardTileSkeleton, { className });
|
|
2022
2022
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2023
|
-
|
|
2023
|
+
_chunkTD4CC4KVcjs.Card,
|
|
2024
2024
|
{
|
|
2025
2025
|
variant: "panel",
|
|
2026
2026
|
"aria-hidden": decorative || void 0,
|
|
2027
2027
|
className: _chunk63A4GZMBcjs.cn.call(void 0, QUOTE_CARD_CLASS, "hover:border-ods-border-hover", className),
|
|
2028
2028
|
...props,
|
|
2029
2029
|
children: [
|
|
2030
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2031
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2030
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVBGBKRDOcjs.PersonCell, { size: "lg", name: `"${quote.text}"`, secondary: quote.attribution, avatarUrl: quote.logoUrl }),
|
|
2031
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD6ZSRGH2cjs.CardHitLayer, { href: quote.href, label: `${quote.text}, ${quote.attribution}`, decorative })
|
|
2032
2032
|
]
|
|
2033
2033
|
}
|
|
2034
2034
|
);
|
|
2035
2035
|
}
|
|
2036
2036
|
function QuoteCardTileSkeleton({ className }) {
|
|
2037
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2037
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTD4CC4KVcjs.Card, { variant: "panel", className: _chunk63A4GZMBcjs.cn.call(void 0, QUOTE_CARD_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading a customer story", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVBGBKRDOcjs.PersonCell, { loading: true, size: "lg" }) }) });
|
|
2038
2038
|
}
|
|
2039
2039
|
var QUOTE_STRIP_SKELETON_CARDS = 4;
|
|
2040
2040
|
function QuoteCardsStripSkeleton({ count, className }) {
|
|
2041
2041
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2042
|
-
|
|
2042
|
+
_chunkD6ZSRGH2cjs.CardsStrip,
|
|
2043
2043
|
{
|
|
2044
2044
|
className,
|
|
2045
2045
|
showTitle: false,
|
|
@@ -2058,7 +2058,7 @@ function QuoteCardsStrip({ quotes, loading = false, skeletonCount, className })
|
|
|
2058
2058
|
}
|
|
2059
2059
|
if (quotes.length === 0) return null;
|
|
2060
2060
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2061
|
-
|
|
2061
|
+
_chunkD6ZSRGH2cjs.CardsStrip,
|
|
2062
2062
|
{
|
|
2063
2063
|
className,
|
|
2064
2064
|
showTitle: false,
|
|
@@ -230,10 +230,10 @@ export interface EmbeddableChatProps {
|
|
|
230
230
|
* extra `quickActions` chips.
|
|
231
231
|
* Each field falls back to the built-in OpenFrame defaults, so the kit
|
|
232
232
|
* stays platform-agnostic. `onStartGuideChat` and `hasExistingChats` are
|
|
233
|
-
* wired internally and are NOT overridable here.
|
|
234
|
-
*
|
|
233
|
+
* wired internally and are NOT overridable here. A quick action's click is wired internally too: it puts the
|
|
234
|
+
* action's prompt into the composer to edit and send, then calls the action's own `onClick` (e.g. analytics).
|
|
235
235
|
*/
|
|
236
|
-
mingoWelcome?: Omit<MingoWelcomeProps, 'onStartGuideChat' | 'hasExistingChats'
|
|
236
|
+
mingoWelcome?: Omit<MingoWelcomeProps, 'onStartGuideChat' | 'hasExistingChats'>;
|
|
237
237
|
/**
|
|
238
238
|
* The host's conversation page size: how many dialogs one page of the list
|
|
239
239
|
* holds (the `limit` the host's dialog reader asks for). Every conversation
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embeddable-chat.d.ts","sourceRoot":"","sources":["../../../src/components/chat/embeddable-chat.tsx"],"names":[],"mappings":"AAyCA,OAAO,KAAiF,MAAM,OAAO,CAAC;AAmBtG,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAY/E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAStE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AASvE,OAAO,EAAkB,KAAK,QAAQ,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACnG,OAAO,EAAgC,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE9F,OAAO,EAAmB,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAKlE,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIvE,OAAO,EAAgC,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACvF,OAAO,KAAK,EAAqC,UAAU,EAAwB,MAAM,yBAAyB,CAAC;AACnH,OAAO,KAAK,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,QAAQ,CAAC;IAChC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AA4aD;;;GAGG;AACH,iHAAiH;AACjH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;CAC9B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB;;;;;;OAMG;IACH,YAAY,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAChD;;;;;OAKG;IACH,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,eAAO,MAAM,cAAc,kGAI1B,CAAC"}
|
|
@@ -461,7 +461,18 @@ function EmbeddableChatInner({
|
|
|
461
461
|
};
|
|
462
462
|
}, [isOpen, shellLess]);
|
|
463
463
|
const chatInputRef = useRef(null);
|
|
464
|
-
const
|
|
464
|
+
const insertedPromptRef = useRef(null);
|
|
465
|
+
const insertQuickAction = useCallback((prompt) => {
|
|
466
|
+
const input = chatInputRef.current;
|
|
467
|
+
if (!input) return;
|
|
468
|
+
const draft = input.getValue().trim();
|
|
469
|
+
const next = draft === "" || draft === insertedPromptRef.current ? prompt : `${draft}
|
|
470
|
+
|
|
471
|
+
${prompt}`;
|
|
472
|
+
insertedPromptRef.current = next;
|
|
473
|
+
input.setValue(next);
|
|
474
|
+
input.focus();
|
|
475
|
+
}, []);
|
|
465
476
|
const slashCommandsProp = useMemo(
|
|
466
477
|
() => ({
|
|
467
478
|
fetchCommands: (prefix, signal) => fetchSlashCommands(prefix, signal, commandsUrl),
|
|
@@ -913,8 +924,6 @@ function EmbeddableChatInner({
|
|
|
913
924
|
const messagesInitialLoading = isMessagesLoading && !hasMessages;
|
|
914
925
|
const contentViewKey = hasConversation ? "conversation" : activeMode;
|
|
915
926
|
const isGuideEmpty = !hasConversation && activeMode === "guide";
|
|
916
|
-
const isQuickActionEmpty = !hasConversation && (activeMode === "guide" || activeMode === "mingo");
|
|
917
|
-
if (!isQuickActionEmpty && quickActionPreview !== null) setQuickActionPreview(null);
|
|
918
927
|
const guideCanReturnToMingo = isGuideEmpty && hasMingoMode;
|
|
919
928
|
const sourceLabel = source === "flamingo" ? "Knowledge Base" : "Data Room";
|
|
920
929
|
const enabledSet = useMemo(
|
|
@@ -1313,9 +1322,13 @@ function EmbeddableChatInner({
|
|
|
1313
1322
|
historyPageSize,
|
|
1314
1323
|
...mingoWelcome,
|
|
1315
1324
|
hasExistingChats: false,
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1325
|
+
quickActions: mingoWelcome?.quickActions?.map((action) => ({
|
|
1326
|
+
...action,
|
|
1327
|
+
onClick: () => {
|
|
1328
|
+
insertQuickAction(action.prompt ?? action.label);
|
|
1329
|
+
action.onClick?.();
|
|
1330
|
+
}
|
|
1331
|
+
}))
|
|
1319
1332
|
}
|
|
1320
1333
|
)
|
|
1321
1334
|
) : (
|
|
@@ -1332,13 +1345,7 @@ function EmbeddableChatInner({
|
|
|
1332
1345
|
title: effectiveAssistantName ?? guideWelcome?.title,
|
|
1333
1346
|
icon: effectiveAssistantIcon ?? guideWelcome?.icon,
|
|
1334
1347
|
quickActions: agentConfigUrl && guideSuggestedActions.length > 0 ? guideSuggestedActions : guideWelcome?.quickActions ?? guideSuggestedActions,
|
|
1335
|
-
onQuickAction: (action) =>
|
|
1336
|
-
setQuickActionPreview(null);
|
|
1337
|
-
handleSend(action.prompt ?? action.label);
|
|
1338
|
-
},
|
|
1339
|
-
onQuickActionHover: (action) => setQuickActionPreview(action.prompt ?? action.label),
|
|
1340
|
-
onQuickActionHoverEnd: () => setQuickActionPreview(null),
|
|
1341
|
-
agentSlug: activeAgentSlug,
|
|
1348
|
+
onQuickAction: (action) => insertQuickAction(action.prompt ?? action.label),
|
|
1342
1349
|
children: (chipCommands.length > 0 || !commandsLoaded) && /* @__PURE__ */ jsxs("div", { className: "shrink-0 overflow-hidden rounded-md border border-ods-border", children: [
|
|
1343
1350
|
!commandsLoaded && chipCommands.length === 0 && /* @__PURE__ */ jsx(LoadingItems, { count: MINGO_ONBOARDING_SKELETON_ROWS, children: (i) => /* @__PURE__ */ jsx(MingoOnboardingCard, { loading: true, "data-loading-item": true, skeletonIndex: i, title: "" }) }),
|
|
1344
1351
|
chipCommands.map((cmd) => {
|
|
@@ -1390,7 +1397,7 @@ function EmbeddableChatInner({
|
|
|
1390
1397
|
placeholder: hasInflightUploads ? "Waiting for uploads to finish\u2026" : composerPlaceholder ?? (isV2 ? "Enter your Request..." : "Ask a question..."),
|
|
1391
1398
|
autoFocus: previewMode ? false : autoFocusInput,
|
|
1392
1399
|
slashCommands: slashCommandsProp,
|
|
1393
|
-
previewText:
|
|
1400
|
+
previewText: composerPreviewText ?? void 0,
|
|
1394
1401
|
safeAreaBottom,
|
|
1395
1402
|
edgeLight: composerEdgeLight,
|
|
1396
1403
|
showAttachmentButton: attachmentsEnabled && activeMode === "guide",
|
|
@@ -37,10 +37,9 @@ export interface GuideWelcomeProps {
|
|
|
37
37
|
* `subtitle` is present. A loading scope draws the skeleton too. */
|
|
38
38
|
subtitleLoading?: boolean;
|
|
39
39
|
/** Quick-action chips — caller-provided; there are no built-in defaults, so
|
|
40
|
-
* the
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* the composer; click sends it. */
|
|
40
|
+
* the set is omitted entirely unless the host supplies actions. The first
|
|
41
|
+
* ones fill the set's slots and the rest open from its "More" slot; a click
|
|
42
|
+
* hands the action to `onQuickAction` (the chat puts its `prompt` into the composer). */
|
|
44
43
|
quickActions?: ReadonlyArray<GuideQuickAction>;
|
|
45
44
|
/** The host is still reading the chips (e.g. the quick actions of the page's
|
|
46
45
|
* topic): with none to show yet the wall draws its own loading form. A
|
|
@@ -53,15 +52,6 @@ export interface GuideWelcomeProps {
|
|
|
53
52
|
showTopic?: boolean;
|
|
54
53
|
/** Fired when a quick-action chip is activated (click). */
|
|
55
54
|
onQuickAction?: (action: GuideQuickAction) => void;
|
|
56
|
-
/** Pointer/keyboard focus enters a quick-action chip — e.g. preview the
|
|
57
|
-
* action's full `prompt` in the composer input. */
|
|
58
|
-
onQuickActionHover?: (action: GuideQuickAction) => void;
|
|
59
|
-
/** Pointer/keyboard focus leaves the chip — e.g. restore the composer. */
|
|
60
|
-
onQuickActionHoverEnd?: () => void;
|
|
61
|
-
/** Agent this empty state belongs to — forwarded to the quick-action
|
|
62
|
-
* {@link QuickActionWall} so a built-in agent (`'fae'`/`'mingo'`) caps the
|
|
63
|
-
* brick stack at 2 rows. Unset (host/guide mode) keeps the full `rows` cap. */
|
|
64
|
-
agentSlug?: string;
|
|
65
55
|
/** Slash-command onboarding list — rendered inside the shared scroll region
|
|
66
56
|
* below the greeting (so greeting + list scroll together, with edge fades). */
|
|
67
57
|
children?: ReactNode;
|
|
@@ -72,11 +62,10 @@ export interface GuideWelcomeProps {
|
|
|
72
62
|
*
|
|
73
63
|
* Guide-mode chat empty state: a centred greeting and the slash-command
|
|
74
64
|
* onboarding list share one scroll region (with top/bottom fade affordances),
|
|
75
|
-
* and
|
|
76
|
-
* quick actions render as chips; the remainder collapse under a "⋯" menu.
|
|
65
|
+
* and the pinned quick-action set sits above the composer.
|
|
77
66
|
*
|
|
78
67
|
* Mirrors `MingoWelcome` (the default-mode empty state) — content is
|
|
79
68
|
* configurable with OpenFrame defaults.
|
|
80
69
|
*/
|
|
81
|
-
export declare function GuideWelcome({ title, icon, subtitle, subtitleLoading, quickActions, quickActionsLoading, showTopic: showTopicProp, onQuickAction,
|
|
70
|
+
export declare function GuideWelcome({ title, icon, subtitle, subtitleLoading, quickActions, quickActionsLoading, showTopic: showTopicProp, onQuickAction, children, className, }: GuideWelcomeProps): import("react").JSX.Element;
|
|
82
71
|
//# sourceMappingURL=guide-welcome.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guide-welcome.d.ts","sourceRoot":"","sources":["../../../src/components/chat/guide-welcome.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"guide-welcome.d.ts","sourceRoot":"","sources":["../../../src/components/chat/guide-welcome.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAQhD,OAAO,EAA0B,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAMrF,uDAAuD;AACvD,MAAM,WAAW,gBAAgB;IAC/B,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC3C,sEAAsE;IACtE,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,uDAAuD;IACvD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;0DAEsD;IACtD,IAAI,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;IACpG;;2DAEuD;IACvD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;yEAEqE;IACrE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;8FAG0F;IAC1F,YAAY,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAC/C;;sCAEkC;IAClC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;sDAGkD;IAClD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2DAA2D;IAC3D,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACnD;oFACgF;IAChF,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAYD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAqB,EACrB,IAAI,EACJ,QAAQ,EACR,eAAuB,EACvB,YAAiB,EACjB,mBAA2B,EAC3B,SAAS,EAAE,aAAa,EACxB,aAAa,EACb,QAAQ,EACR,SAAS,GACV,EAAE,iBAAiB,+BA+FnB"}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
|
-
import { usePageTopicStamp } from "../../contexts/page-topics-context.js";
|
|
5
4
|
import { cn } from "../../utils/cn.js";
|
|
6
5
|
import { AgentMark } from "../agent-mark.js";
|
|
7
6
|
import { EntityIcon } from "../icon-display.js";
|
|
8
7
|
import { TextLineSkeleton } from "../loading/unified-skeleton.js";
|
|
9
|
-
import { PageTopicLabel } from "../page-topic-label.js";
|
|
10
8
|
import { useLoadingScope } from "../ui/loading-scope.js";
|
|
11
9
|
import { ScrollFadeOverlay, useScrollFade } from "../ui/scroll-fade.js";
|
|
10
|
+
import { QuickActionSet } from "./mingo-quick-action-wall.js";
|
|
12
11
|
import { accentFromIdentityIcon } from "./quick-action-chip.js";
|
|
13
|
-
import { QuickActionWall } from "./quick-action-wall.js";
|
|
14
12
|
const DEFAULT_TITLE = "Guide Mode Chat";
|
|
15
13
|
function GuideWelcome({
|
|
16
14
|
title = DEFAULT_TITLE,
|
|
@@ -21,14 +19,9 @@ function GuideWelcome({
|
|
|
21
19
|
quickActionsLoading = false,
|
|
22
20
|
showTopic: showTopicProp,
|
|
23
21
|
onQuickAction,
|
|
24
|
-
onQuickActionHover,
|
|
25
|
-
onQuickActionHoverEnd,
|
|
26
|
-
agentSlug,
|
|
27
22
|
children,
|
|
28
23
|
className
|
|
29
24
|
}) {
|
|
30
|
-
const topicStamp = usePageTopicStamp();
|
|
31
|
-
const showTopic = showTopicProp ?? topicStamp;
|
|
32
25
|
const { scrollRef, fadeTop, fadeBottom, update: updateScrollFade } = useScrollFade();
|
|
33
26
|
const inLoadingScope = useLoadingScope();
|
|
34
27
|
const subtitleIsLoading = inLoadingScope || subtitleLoading && !subtitle;
|
|
@@ -48,11 +41,9 @@ function GuideWelcome({
|
|
|
48
41
|
props: action.iconProps,
|
|
49
42
|
accent: action.accent ?? accentFromIdentityIcon(icon) ?? "cyan"
|
|
50
43
|
},
|
|
51
|
-
onSelect: () => onQuickAction?.(action)
|
|
52
|
-
onHoverStart: () => onQuickActionHover?.(action),
|
|
53
|
-
onHoverEnd: () => onQuickActionHoverEnd?.()
|
|
44
|
+
onSelect: () => onQuickAction?.(action)
|
|
54
45
|
})),
|
|
55
|
-
[quickActions, icon, onQuickAction
|
|
46
|
+
[quickActions, icon, onQuickAction]
|
|
56
47
|
);
|
|
57
48
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-m)]", className), children: [
|
|
58
49
|
/* @__PURE__ */ jsxs("div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
@@ -81,23 +72,7 @@ function GuideWelcome({
|
|
|
81
72
|
/* @__PURE__ */ jsx(ScrollFadeOverlay, { edge: "top", visible: fadeTop, className: "h-12" }),
|
|
82
73
|
/* @__PURE__ */ jsx(ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom, className: "h-12" })
|
|
83
74
|
] }),
|
|
84
|
-
|
|
85
|
-
(quickActions.length > 0 || chipsAreLoading) && /* @__PURE__ */ jsx(
|
|
86
|
-
QuickActionWall,
|
|
87
|
-
{
|
|
88
|
-
chips: chipItems,
|
|
89
|
-
loading: chipsAreLoading,
|
|
90
|
-
agentSlug,
|
|
91
|
-
rows: 4,
|
|
92
|
-
pauseOnHover: true,
|
|
93
|
-
dragScroll: true,
|
|
94
|
-
fade: ["left", "right"],
|
|
95
|
-
fadeSize: { left: 32 },
|
|
96
|
-
fadeColor: "var(--color-bg)",
|
|
97
|
-
copyGap: "var(--spacing-system-xxs)",
|
|
98
|
-
className: "max-h-44 shrink-0"
|
|
99
|
-
}
|
|
100
|
-
)
|
|
75
|
+
(quickActions.length > 0 || chipsAreLoading) && /* @__PURE__ */ jsx(QuickActionSet, { chips: chipItems, loading: chipsAreLoading, showTopic: showTopicProp })
|
|
101
76
|
] });
|
|
102
77
|
}
|
|
103
78
|
export {
|