@flamingo-stack/openframe-frontend-core 0.0.338 → 0.0.339-snapshot.20260630004216
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/{chunk-FNPF5OQS.cjs → chunk-4K2M2WC4.cjs} +26 -26
- package/dist/{chunk-FNPF5OQS.cjs.map → chunk-4K2M2WC4.cjs.map} +1 -1
- package/dist/{chunk-JI7EPGRA.js → chunk-53MGSWCC.js} +4 -4
- package/dist/{chunk-FGVYJPT4.js → chunk-573LTCRV.js} +2 -2
- package/dist/{chunk-GOTCZBP2.js → chunk-7TENQYAJ.js} +2 -2
- package/dist/{chunk-IJ2OYHRH.cjs → chunk-BMSJTLGO.cjs} +12 -12
- package/dist/{chunk-IJ2OYHRH.cjs.map → chunk-BMSJTLGO.cjs.map} +1 -1
- package/dist/{chunk-IBCTHO3A.cjs → chunk-DFFOCQFO.cjs} +5 -5
- package/dist/{chunk-IBCTHO3A.cjs.map → chunk-DFFOCQFO.cjs.map} +1 -1
- package/dist/{chunk-RSA7DPZN.cjs → chunk-DRO773DG.cjs} +56 -56
- package/dist/{chunk-RSA7DPZN.cjs.map → chunk-DRO773DG.cjs.map} +1 -1
- package/dist/{chunk-2FDRZIX2.cjs → chunk-ERMMMQET.cjs} +683 -632
- package/dist/chunk-ERMMMQET.cjs.map +1 -0
- package/dist/{chunk-RLHOSQ7X.cjs → chunk-EXFHHZ2C.cjs} +9 -9
- package/dist/{chunk-RLHOSQ7X.cjs.map → chunk-EXFHHZ2C.cjs.map} +1 -1
- package/dist/{chunk-GFBCUSFN.js → chunk-GGFJ5OQ3.js} +4 -4
- package/dist/{chunk-YHDF4WMG.cjs → chunk-HVYR323G.cjs} +15 -15
- package/dist/{chunk-YHDF4WMG.cjs.map → chunk-HVYR323G.cjs.map} +1 -1
- package/dist/{chunk-HI367AS3.js → chunk-KE2PMD6A.js} +2 -2
- package/dist/{chunk-QJR7QLNW.cjs → chunk-L6YX6D26.cjs} +31 -31
- package/dist/{chunk-QJR7QLNW.cjs.map → chunk-L6YX6D26.cjs.map} +1 -1
- package/dist/{chunk-HKBV4OJK.js → chunk-MNLQMAY3.js} +2 -2
- package/dist/{chunk-3BWH262F.js → chunk-NC3DJLP5.js} +4 -4
- package/dist/{chunk-BG44XQB2.js → chunk-NDHQG4I4.js} +90 -39
- package/dist/chunk-NDHQG4I4.js.map +1 -0
- package/dist/{chunk-N7MH2OSW.js → chunk-OVN265XQ.js} +2 -2
- package/dist/{chunk-IVY5R6L2.cjs → chunk-SIK5LBUN.cjs} +25 -25
- package/dist/{chunk-IVY5R6L2.cjs.map → chunk-SIK5LBUN.cjs.map} +1 -1
- package/dist/{chunk-DPU7VTTV.js → chunk-T4SW6GOR.js} +4 -4
- package/dist/{chunk-A4X3DZSS.js → chunk-TOMTBXM7.js} +2 -2
- package/dist/{chunk-DPFJPCFL.cjs → chunk-TVCBMR3N.cjs} +7 -7
- package/dist/{chunk-DPFJPCFL.cjs.map → chunk-TVCBMR3N.cjs.map} +1 -1
- package/dist/{chunk-FDKTAOEO.cjs → chunk-VA3GDVOV.cjs} +37 -37
- package/dist/{chunk-FDKTAOEO.cjs.map → chunk-VA3GDVOV.cjs.map} +1 -1
- package/dist/{chunk-IOEGV4DP.js → chunk-W7J46YKF.js} +2 -2
- package/dist/{chunk-Y2VDAVIX.cjs → chunk-YEB5Z76W.cjs} +62 -62
- package/dist/{chunk-Y2VDAVIX.cjs.map → chunk-YEB5Z76W.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/chat/chat-quick-action-row.d.ts +5 -0
- package/dist/components/chat/chat-quick-action-row.d.ts.map +1 -1
- package/dist/components/chat/guide-welcome.d.ts +6 -1
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +5 -5
- package/dist/components/docs/index.js +4 -4
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +20 -20
- package/dist/components/help-center-pages/index.js +11 -11
- package/dist/components/index.cjs +121 -121
- package/dist/components/index.js +9 -9
- package/dist/components/layout/page-layout.d.ts +6 -1
- package/dist/components/layout/page-layout.d.ts.map +1 -1
- package/dist/components/layout/title-block.d.ts +8 -1
- package/dist/components/layout/title-block.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +5 -5
- package/dist/components/tickets/index.js +4 -4
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/info-card.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/chat/chat-quick-action-row.tsx +9 -0
- package/src/components/chat/embeddable-chat.tsx +24 -3
- package/src/components/chat/guide-welcome.tsx +10 -1
- package/src/components/layout/page-layout.tsx +10 -1
- package/src/components/layout/title-block.tsx +56 -5
- package/src/components/ui/info-card.tsx +55 -41
- package/dist/chunk-2FDRZIX2.cjs.map +0 -1
- package/dist/chunk-BG44XQB2.js.map +0 -1
- /package/dist/{chunk-JI7EPGRA.js.map → chunk-53MGSWCC.js.map} +0 -0
- /package/dist/{chunk-FGVYJPT4.js.map → chunk-573LTCRV.js.map} +0 -0
- /package/dist/{chunk-GOTCZBP2.js.map → chunk-7TENQYAJ.js.map} +0 -0
- /package/dist/{chunk-GFBCUSFN.js.map → chunk-GGFJ5OQ3.js.map} +0 -0
- /package/dist/{chunk-HI367AS3.js.map → chunk-KE2PMD6A.js.map} +0 -0
- /package/dist/{chunk-HKBV4OJK.js.map → chunk-MNLQMAY3.js.map} +0 -0
- /package/dist/{chunk-3BWH262F.js.map → chunk-NC3DJLP5.js.map} +0 -0
- /package/dist/{chunk-N7MH2OSW.js.map → chunk-OVN265XQ.js.map} +0 -0
- /package/dist/{chunk-DPU7VTTV.js.map → chunk-T4SW6GOR.js.map} +0 -0
- /package/dist/{chunk-A4X3DZSS.js.map → chunk-TOMTBXM7.js.map} +0 -0
- /package/dist/{chunk-IOEGV4DP.js.map → chunk-W7J46YKF.js.map} +0 -0
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
TASK_TYPE_TEXT_COLORS,
|
|
12
12
|
getStatusColorScheme,
|
|
13
13
|
init_pagination
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NDHQG4I4.js";
|
|
15
15
|
import {
|
|
16
16
|
init_next_navigation,
|
|
17
17
|
usePathname,
|
|
@@ -459,4 +459,4 @@ export {
|
|
|
459
459
|
DevCardRowSkeletonList,
|
|
460
460
|
DeliveryRow
|
|
461
461
|
};
|
|
462
|
-
//# sourceMappingURL=chunk-
|
|
462
|
+
//# sourceMappingURL=chunk-MNLQMAY3.js.map
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ArticleAuthorByline,
|
|
4
4
|
DetailPageSkeleton
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OVN265XQ.js";
|
|
6
6
|
import {
|
|
7
7
|
DocSearchBar,
|
|
8
8
|
useDocSearch
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W7J46YKF.js";
|
|
10
10
|
import {
|
|
11
11
|
useSelfFetch
|
|
12
12
|
} from "./chunk-65VXW6GZ.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
getCaptionsUrl,
|
|
26
26
|
resolveContentHref,
|
|
27
27
|
useVideoWarmup
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-NDHQG4I4.js";
|
|
29
29
|
import {
|
|
30
30
|
buildOgPlaceholderUrl
|
|
31
31
|
} from "./chunk-SWGXCGQ3.js";
|
|
@@ -391,4 +391,4 @@ export {
|
|
|
391
391
|
useOnboardingGuide,
|
|
392
392
|
useOnboardingGuideSections
|
|
393
393
|
};
|
|
394
|
-
//# sourceMappingURL=chunk-
|
|
394
|
+
//# sourceMappingURL=chunk-NC3DJLP5.js.map
|
|
@@ -5672,6 +5672,10 @@ function ChipButton({ chip }) {
|
|
|
5672
5672
|
{
|
|
5673
5673
|
type: "button",
|
|
5674
5674
|
onClick: chip.onSelect,
|
|
5675
|
+
onMouseEnter: chip.onHoverStart,
|
|
5676
|
+
onMouseLeave: chip.onHoverEnd,
|
|
5677
|
+
onFocus: chip.onHoverStart,
|
|
5678
|
+
onBlur: chip.onHoverEnd,
|
|
5675
5679
|
className: "shrink-0 rounded-md focus:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent",
|
|
5676
5680
|
children: /* @__PURE__ */ jsx30(Tag, { variant: chip.variant ?? "outline", icon: chip.icon, label: chip.label })
|
|
5677
5681
|
}
|
|
@@ -6577,6 +6581,8 @@ function GuideWelcome({
|
|
|
6577
6581
|
subtitleLoading = false,
|
|
6578
6582
|
quickActions = [],
|
|
6579
6583
|
onQuickAction,
|
|
6584
|
+
onQuickActionHover,
|
|
6585
|
+
onQuickActionHoverEnd,
|
|
6580
6586
|
children,
|
|
6581
6587
|
className
|
|
6582
6588
|
}) {
|
|
@@ -6603,9 +6609,11 @@ function GuideWelcome({
|
|
|
6603
6609
|
() => quickActions.map((action) => ({
|
|
6604
6610
|
id: action.id,
|
|
6605
6611
|
label: action.label,
|
|
6606
|
-
onSelect: () => onQuickAction?.(action)
|
|
6612
|
+
onSelect: () => onQuickAction?.(action),
|
|
6613
|
+
onHoverStart: () => onQuickActionHover?.(action),
|
|
6614
|
+
onHoverEnd: () => onQuickActionHoverEnd?.()
|
|
6607
6615
|
})),
|
|
6608
|
-
[quickActions, onQuickAction]
|
|
6616
|
+
[quickActions, onQuickAction, onQuickActionHover, onQuickActionHoverEnd]
|
|
6609
6617
|
);
|
|
6610
6618
|
return /* @__PURE__ */ jsxs32(
|
|
6611
6619
|
"div",
|
|
@@ -13078,36 +13086,43 @@ function InfoCard({ data, className = "" }) {
|
|
|
13078
13086
|
className
|
|
13079
13087
|
),
|
|
13080
13088
|
children: [
|
|
13081
|
-
/* @__PURE__ */ jsxs72("div", { className: "p-[var(--spacing-system-m)] flex flex-col gap-[var(--spacing-system-
|
|
13082
|
-
data.title && /* @__PURE__ */ jsxs72("div", { className: "flex
|
|
13083
|
-
/* @__PURE__ */
|
|
13084
|
-
|
|
13089
|
+
/* @__PURE__ */ jsxs72("div", { className: "p-[var(--spacing-system-m)] flex flex-col gap-[var(--spacing-system-l)] items-start w-full", children: [
|
|
13090
|
+
(data.title || data.subtitle) && /* @__PURE__ */ jsxs72("div", { className: "flex flex-col items-start self-stretch w-full", children: [
|
|
13091
|
+
data.title && /* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-[var(--spacing-system-xsf)] self-stretch", children: [
|
|
13092
|
+
/* @__PURE__ */ jsx91("span", { className: "text-h4 text-ods-text-primary truncate min-w-0", title: data.title, children: data.title }),
|
|
13093
|
+
data.icon
|
|
13094
|
+
] }),
|
|
13095
|
+
data.subtitle && /* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-[var(--spacing-system-xsf)] self-stretch", children: [
|
|
13096
|
+
/* @__PURE__ */ jsx91("span", { className: "text-h4 text-ods-text-secondary truncate min-w-0", title: data.subtitle, children: data.subtitle }),
|
|
13097
|
+
!data.title && data.icon
|
|
13098
|
+
] })
|
|
13085
13099
|
] }),
|
|
13086
|
-
data.
|
|
13087
|
-
|
|
13088
|
-
|
|
13089
|
-
|
|
13090
|
-
|
|
13100
|
+
(data.items.length > 0 || data.progress) && /* @__PURE__ */ jsxs72("div", { className: "flex flex-col gap-[var(--spacing-system-xs)] items-start self-stretch w-full", children: [
|
|
13101
|
+
data.items.map((item, index) => {
|
|
13102
|
+
const values = Array.isArray(item.value) ? item.value : [item.value];
|
|
13103
|
+
return /* @__PURE__ */ jsx91(React40.Fragment, { children: values.map((val, valIndex) => /* @__PURE__ */ jsx91(
|
|
13104
|
+
InfoCardValueRow,
|
|
13105
|
+
{
|
|
13106
|
+
label: item.label,
|
|
13107
|
+
value: val,
|
|
13108
|
+
showLabel: valIndex === 0,
|
|
13109
|
+
copyable: item.copyable,
|
|
13110
|
+
icon: valIndex === 0 ? item.icon : void 0,
|
|
13111
|
+
copyAriaLabel: `Copy ${item.label ?? "value"} ${valIndex + 1}`
|
|
13112
|
+
},
|
|
13113
|
+
`${index}-${valIndex}`
|
|
13114
|
+
)) }, index);
|
|
13115
|
+
}),
|
|
13116
|
+
data.progress && /* @__PURE__ */ jsx91(
|
|
13117
|
+
ProgressBar,
|
|
13091
13118
|
{
|
|
13092
|
-
|
|
13093
|
-
|
|
13094
|
-
|
|
13095
|
-
|
|
13096
|
-
|
|
13097
|
-
|
|
13098
|
-
|
|
13099
|
-
`${index}-${valIndex}`
|
|
13100
|
-
)) }, index);
|
|
13101
|
-
}),
|
|
13102
|
-
data.progress && /* @__PURE__ */ jsx91(
|
|
13103
|
-
ProgressBar,
|
|
13104
|
-
{
|
|
13105
|
-
progress: data.progress.value,
|
|
13106
|
-
warningThreshold: data.progress.warningThreshold,
|
|
13107
|
-
criticalThreshold: data.progress.criticalThreshold,
|
|
13108
|
-
inverted: data.progress.inverted
|
|
13109
|
-
}
|
|
13110
|
-
)
|
|
13119
|
+
progress: data.progress.value,
|
|
13120
|
+
warningThreshold: data.progress.warningThreshold,
|
|
13121
|
+
criticalThreshold: data.progress.criticalThreshold,
|
|
13122
|
+
inverted: data.progress.inverted
|
|
13123
|
+
}
|
|
13124
|
+
)
|
|
13125
|
+
] })
|
|
13111
13126
|
] }),
|
|
13112
13127
|
data.footer && /* @__PURE__ */ jsx91(InfoCardFooter, { footer: data.footer })
|
|
13113
13128
|
]
|
|
@@ -19983,6 +19998,15 @@ function EntityImage({ src, alt, fallbackText, className }) {
|
|
|
19983
19998
|
// src/components/layout/title-block.tsx
|
|
19984
19999
|
import { jsx as jsx146, jsxs as jsxs118 } from "react/jsx-runtime";
|
|
19985
20000
|
var TITLE_BLOCK_MIN_HEIGHT = "min-h-11 md:min-h-12";
|
|
20001
|
+
function TitleTextSkeleton({ widthClass, heightClass }) {
|
|
20002
|
+
return /* @__PURE__ */ jsx146(
|
|
20003
|
+
"span",
|
|
20004
|
+
{
|
|
20005
|
+
"aria-hidden": true,
|
|
20006
|
+
className: cn("inline-block max-w-full rounded-md bg-ods-border animate-pulse", widthClass, heightClass)
|
|
20007
|
+
}
|
|
20008
|
+
);
|
|
20009
|
+
}
|
|
19986
20010
|
function TitleBlock({
|
|
19987
20011
|
title,
|
|
19988
20012
|
subtitle,
|
|
@@ -19994,7 +20018,9 @@ function TitleBlock({
|
|
|
19994
20018
|
selector,
|
|
19995
20019
|
variant = "plain",
|
|
19996
20020
|
className,
|
|
19997
|
-
titleSize = "h2"
|
|
20021
|
+
titleSize = "h2",
|
|
20022
|
+
titleAdornment,
|
|
20023
|
+
loading
|
|
19998
20024
|
}) {
|
|
19999
20025
|
const hasActions = actions && actions.length > 0;
|
|
20000
20026
|
const hasMenuActions = !!menuActions && menuActions.some((g) => g.items.length > 0);
|
|
@@ -20025,7 +20051,7 @@ function TitleBlock({
|
|
|
20025
20051
|
className: "hidden md:inline-flex"
|
|
20026
20052
|
}
|
|
20027
20053
|
),
|
|
20028
|
-
image || subtitle ? /* @__PURE__ */ jsxs118("div", { className: "flex items-center gap-[var(--spacing-system-m)] min-w-0 w-full", children: [
|
|
20054
|
+
image || subtitle || loading ? /* @__PURE__ */ jsxs118("div", { className: "flex items-center gap-[var(--spacing-system-m)] min-w-0 w-full", children: [
|
|
20029
20055
|
image && /* @__PURE__ */ jsx146(
|
|
20030
20056
|
EntityImage,
|
|
20031
20057
|
{
|
|
@@ -20035,10 +20061,16 @@ function TitleBlock({
|
|
|
20035
20061
|
}
|
|
20036
20062
|
),
|
|
20037
20063
|
/* @__PURE__ */ jsxs118("div", { className: "flex flex-col justify-center min-w-0 flex-1", children: [
|
|
20038
|
-
title && /* @__PURE__ */
|
|
20039
|
-
|
|
20064
|
+
(loading || title) && (titleAdornment ? /* @__PURE__ */ jsxs118("div", { className: "flex items-center gap-[var(--spacing-system-m)] min-w-0 w-full", children: [
|
|
20065
|
+
/* @__PURE__ */ jsx146("h1", { className: cn(titleClass, "text-ods-text-primary truncate min-w-0"), title, children: loading ? /* @__PURE__ */ jsx146(TitleTextSkeleton, { widthClass: "w-48 md:w-72", heightClass: "h-4 md:h-6" }) : title }),
|
|
20066
|
+
/* @__PURE__ */ jsx146("span", { className: "shrink-0", children: titleAdornment })
|
|
20067
|
+
] }) : /* @__PURE__ */ jsx146("h1", { className: cn(titleClass, "text-ods-text-primary truncate"), title, children: loading ? /* @__PURE__ */ jsx146(TitleTextSkeleton, { widthClass: "w-48 md:w-72", heightClass: "h-4 md:h-6" }) : title })),
|
|
20068
|
+
subtitle && /* @__PURE__ */ jsx146("p", { className: "text-h6 text-ods-text-secondary truncate", title: subtitle, children: loading ? /* @__PURE__ */ jsx146(TitleTextSkeleton, { widthClass: "w-28 md:w-36", heightClass: "h-2.5 md:h-3" }) : subtitle })
|
|
20040
20069
|
] })
|
|
20041
|
-
] }) : title && /* @__PURE__ */
|
|
20070
|
+
] }) : title && (titleAdornment ? /* @__PURE__ */ jsxs118("div", { className: "flex items-center gap-[var(--spacing-system-m)] min-w-0 w-full", children: [
|
|
20071
|
+
/* @__PURE__ */ jsx146("h1", { className: cn(titleClass, "text-ods-text-primary truncate min-w-0"), title, children: title }),
|
|
20072
|
+
/* @__PURE__ */ jsx146("span", { className: "shrink-0", children: titleAdornment })
|
|
20073
|
+
] }) : /* @__PURE__ */ jsx146("h1", { className: cn(titleClass, "text-ods-text-primary"), children: title }))
|
|
20042
20074
|
] }),
|
|
20043
20075
|
(hasActions || hasMenuActions || selector) && /* @__PURE__ */ jsx146("div", { className: "flex gap-2 items-center shrink-0", children: /* @__PURE__ */ jsx146(
|
|
20044
20076
|
PageActions,
|
|
@@ -20070,11 +20102,13 @@ function PageLayout({
|
|
|
20070
20102
|
className,
|
|
20071
20103
|
contentClassName,
|
|
20072
20104
|
showHeader = true,
|
|
20073
|
-
titleSize
|
|
20105
|
+
titleSize,
|
|
20106
|
+
titleAdornment,
|
|
20107
|
+
loading
|
|
20074
20108
|
}) {
|
|
20075
20109
|
const hasActions = actions && actions.length > 0;
|
|
20076
20110
|
const needsBottomPadding = hasActions && actionsVariant === "primary-buttons";
|
|
20077
|
-
const hasHeader = showHeader && (title || subtitle || image || backButton || hasActions || selector);
|
|
20111
|
+
const hasHeader = showHeader && (title || subtitle || image || backButton || hasActions || selector || loading);
|
|
20078
20112
|
return /* @__PURE__ */ jsxs119("div", { className: cn("flex flex-col w-full", className), children: [
|
|
20079
20113
|
hasHeader && /* @__PURE__ */ jsx147(
|
|
20080
20114
|
TitleBlock,
|
|
@@ -20088,7 +20122,9 @@ function PageLayout({
|
|
|
20088
20122
|
menuActions,
|
|
20089
20123
|
selector,
|
|
20090
20124
|
variant: headerVariant,
|
|
20091
|
-
titleSize
|
|
20125
|
+
titleSize,
|
|
20126
|
+
titleAdornment,
|
|
20127
|
+
loading
|
|
20092
20128
|
}
|
|
20093
20129
|
),
|
|
20094
20130
|
/* @__PURE__ */ jsx147("div", { className: cn("flex flex-col flex-1 gap-[var(--spacing-system-l)]", needsBottomPadding && "pb-28 md:pb-0", contentClassName), children })
|
|
@@ -48476,6 +48512,7 @@ function EmbeddableChatInner({
|
|
|
48476
48512
|
};
|
|
48477
48513
|
}, [isOpen, shellLess]);
|
|
48478
48514
|
const chatInputRef = useRef71(null);
|
|
48515
|
+
const quickActionDraftRef = useRef71(null);
|
|
48479
48516
|
const slashCommandsProp = useMemo43(
|
|
48480
48517
|
() => ({
|
|
48481
48518
|
fetchCommands: (prefix, signal) => fetchSlashCommands(prefix, signal, commandsUrl),
|
|
@@ -49004,8 +49041,22 @@ function EmbeddableChatInner({
|
|
|
49004
49041
|
...guideWelcome,
|
|
49005
49042
|
quickActions: guideWelcome?.quickActions ?? guideSuggestedActions,
|
|
49006
49043
|
onQuickAction: (action) => {
|
|
49044
|
+
quickActionDraftRef.current = null;
|
|
49045
|
+
chatInputRef.current?.setValue("");
|
|
49007
49046
|
handleSend(action.prompt ?? action.label);
|
|
49008
49047
|
},
|
|
49048
|
+
onQuickActionHover: (action) => {
|
|
49049
|
+
if (quickActionDraftRef.current === null) {
|
|
49050
|
+
quickActionDraftRef.current = chatInputRef.current?.getValue() ?? "";
|
|
49051
|
+
}
|
|
49052
|
+
chatInputRef.current?.setValue(action.prompt ?? action.label);
|
|
49053
|
+
},
|
|
49054
|
+
onQuickActionHoverEnd: () => {
|
|
49055
|
+
if (quickActionDraftRef.current !== null) {
|
|
49056
|
+
chatInputRef.current?.setValue(quickActionDraftRef.current);
|
|
49057
|
+
quickActionDraftRef.current = null;
|
|
49058
|
+
}
|
|
49059
|
+
},
|
|
49009
49060
|
children: (chipCommands.length > 0 || !commandsLoaded) && /* @__PURE__ */ jsxs265("div", { className: "shrink-0 overflow-hidden rounded-md border border-ods-border", children: [
|
|
49010
49061
|
!commandsLoaded && chipCommands.length === 0 && SKELETON_ROW_VARIANTS.map((variant, i) => /* @__PURE__ */ jsx329(
|
|
49011
49062
|
MingoOnboardingCardSkeleton,
|
|
@@ -50079,4 +50130,4 @@ export {
|
|
|
50079
50130
|
FAE_AVATAR_DATA_URI,
|
|
50080
50131
|
assets
|
|
50081
50132
|
};
|
|
50082
|
-
//# sourceMappingURL=chunk-
|
|
50133
|
+
//# sourceMappingURL=chunk-NDHQG4I4.js.map
|