@inkeep/cxkit-primitives 0.5.26 → 0.5.30
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/components/embedded-chat/use-inkeep-chat.cjs +3 -3
- package/dist/components/embedded-chat/use-inkeep-chat.js +127 -126
- package/dist/components/embedded-chat.cjs +4 -4
- package/dist/components/embedded-chat.js +181 -181
- package/dist/components/embedded-search/use-inkeep-search.cjs +1 -1
- package/dist/components/embedded-search/use-inkeep-search.js +81 -73
- package/dist/index.d.cts +40 -40
- package/dist/index.d.ts +40 -40
- package/dist/providers/base-events-provider.cjs +1 -1
- package/dist/providers/base-events-provider.js +1 -1
- package/dist/utils/component-ids.cjs +1 -1
- package/dist/utils/component-ids.js +5 -5
- package/dist/utils/graphql-client.cjs +1 -1
- package/dist/utils/graphql-client.js +3 -2
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),Y=require("../../providers/config-provider.cjs"),Z=require("../../hooks/use-media-query.cjs"),ee=require("./search-query.graphql.cjs"),te=require("./transform-results.cjs"),se=require("../../providers/search-events-provider.cjs"),re=require("../../hooks/use-instant-update.cjs"),ne=require("../../utils/graphql-client.cjs"),ae=()=>{const{baseSettings:O,searchSettings:x}=Y.useInkeepConfig(),{apiKey:R,aiApiBaseUrl:B,userAuthToken:l,filters:Q}=O,{maxResults:q,placeholder:C,defaultQuery:H,debounceTimeMs:T,onQueryChange:$,searchFunctionsRef:z,tabs:i,filters:k}=x,{logEvent:v}=se.useSearchEvents(),[a,E]=t.useState(H),M=t.useRef(null),[w,h]=t.useState(!1),[D,f]=t.useState(null),[K,c]=t.useState("NONE"),W=t.useCallback(e=>{c(e)},[]),[d,y]=t.useState([]),s=te.useTransformResults(d,a),I=typeof i?.[0]=="string"?i[0]:i[0][0],[b,A]=t.useState(I),{disableTransition:P,disabled:G}=re.useInstantUpdate(),J=t.useCallback(e=>{P(),A(e);const r=s[e][0].id;c(r)},[s,P]);t.useEffect(()=>{let e=b in s?b:Object.keys(s)[0];if(!s[e]?.length){const n=Object.keys(s).find(u=>s[u]?.length);n?e=n:e=I}if(!e)return;A(e);const r=s[e]?.[0];r&&c(r.id)},[s]);const g=Z.useMediaQuery("(max-width: 768px)"),o=t.useRef({}),m=t.useRef(null),p=t.useRef(null);t.useImperativeHandle(z,()=>({updateQuery(e){E(e)},focusInput:()=>{M.current?.focus()}}));const U=`${B}/graphql`,_=t.useMemo(()=>({Authorization:`Bearer ${R}`,"Content-Type":"application/json",...l?{"User-Token":l}:{}}),[R,l]),j=t.useCallback(async e=>{const r=new AbortController;m.current=r;try{f(null);const u=(await ne.graphqlRequest(U,ee.default,{searchInput:e},_,r.signal))?.search.searchHits;o.current[e.searchQuery]=u,y(u)}catch(n){if(n.name==="AbortError")return;f("Failed to fetch search results. Please try again.")}finally{h(!1)}},[U,_]),F=t.useCallback(e=>{const r=o.current[e.searchQuery];v({eventName:"search_query_response_received",properties:{searchQuery:e.searchQuery,totalResults:r?.length}})},[]),L=()=>{m.current&&(m.current.abort(),h(!1))},N=t.useCallback(e=>{if(p.current&&window.clearTimeout(p.current),!e.searchQuery){L(),y([]),f(null);return}p.current=window.setTimeout(()=>{L(),v({eventName:"search_query_submitted",properties:{searchQuery:e.searchQuery}}),o.current[e.searchQuery]?(y(o.current[e.searchQuery]),F(e)):(h(!0),j(e).then(()=>{F(e)}))},T)},[T,j]),S=t.useMemo(()=>({searchQuery:a,filters:{...Q,...k,limit:q}}),[a,q,Q,k]);t.useEffect(()=>{$?.(S.searchQuery),N(S)},[N,S]);const V=t.useCallback(e=>E(e.target.value),[]),X=t.useMemo(()=>C||(g?"Search...":"Search for anything..."),[C,g]);return{results:s,resultsList:d,hasContent:d.length>0||w,loading:w,error:D,query:a,onInput:V,placeholder:X,tab:b,onTabChange:J,selectedItem:K,setSelectedItem:c,onSelectedItemChange:W,transitionsDisabled:G,inputRef:M,isMobile:g}};exports.useInkeepSearch=ae;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useState as s, useRef as
|
|
3
|
-
import { useInkeepConfig as
|
|
4
|
-
import { useMediaQuery as
|
|
5
|
-
import
|
|
6
|
-
import { useTransformResults as
|
|
7
|
-
import { useSearchEvents as
|
|
8
|
-
import { useInstantUpdate as
|
|
9
|
-
import { graphqlRequest as
|
|
10
|
-
const
|
|
11
|
-
const { baseSettings:
|
|
12
|
-
maxResults:
|
|
13
|
-
placeholder:
|
|
14
|
-
defaultQuery:
|
|
15
|
-
debounceTimeMs:
|
|
16
|
-
onQueryChange:
|
|
17
|
-
searchFunctionsRef:
|
|
2
|
+
import { useState as s, useRef as u, useCallback as n, useEffect as P, useImperativeHandle as re, useMemo as S } from "react";
|
|
3
|
+
import { useInkeepConfig as se } from "../../providers/config-provider.js";
|
|
4
|
+
import { useMediaQuery as ne } from "../../hooks/use-media-query.js";
|
|
5
|
+
import oe from "./search-query.graphql.js";
|
|
6
|
+
import { useTransformResults as ce } from "./transform-results.js";
|
|
7
|
+
import { useSearchEvents as ae } from "../../providers/search-events-provider.js";
|
|
8
|
+
import { useInstantUpdate as ie } from "../../hooks/use-instant-update.js";
|
|
9
|
+
import { graphqlRequest as le } from "../../utils/graphql-client.js";
|
|
10
|
+
const ge = () => {
|
|
11
|
+
const { baseSettings: $, searchSettings: z } = se(), { apiKey: C, aiApiBaseUrl: D, userAuthToken: h, filters: v } = $, {
|
|
12
|
+
maxResults: k,
|
|
13
|
+
placeholder: w,
|
|
14
|
+
defaultQuery: K,
|
|
15
|
+
debounceTimeMs: q,
|
|
16
|
+
onQueryChange: W,
|
|
17
|
+
searchFunctionsRef: G,
|
|
18
18
|
tabs: f,
|
|
19
|
-
filters:
|
|
20
|
-
} =
|
|
19
|
+
filters: E
|
|
20
|
+
} = z, { logEvent: A } = ae(), [c, I] = s(K), _ = u(null), [x, m] = s(!1), [J, d] = s(null), [V, a] = s("NONE"), X = n((e) => {
|
|
21
21
|
a(e);
|
|
22
|
-
}, []), [
|
|
22
|
+
}, []), [y, p] = s([]), t = ce(y, c), F = typeof f?.[0] == "string" ? f[0] : f[0][0], [b, L] = s(F), { disableTransition: M, disabled: Y } = ie(), Z = n(
|
|
23
23
|
(e) => {
|
|
24
24
|
M(), L(e);
|
|
25
25
|
const r = t[e][0].id;
|
|
@@ -27,10 +27,10 @@ const be = () => {
|
|
|
27
27
|
},
|
|
28
28
|
[t, M]
|
|
29
29
|
);
|
|
30
|
-
|
|
31
|
-
let e =
|
|
30
|
+
P(() => {
|
|
31
|
+
let e = b in t ? b : Object.keys(t)[0];
|
|
32
32
|
if (!t[e]?.length) {
|
|
33
|
-
const o = Object.keys(t).find((
|
|
33
|
+
const o = Object.keys(t).find((l) => t[l]?.length);
|
|
34
34
|
o ? e = o : e = F;
|
|
35
35
|
}
|
|
36
36
|
if (!e) return;
|
|
@@ -38,106 +38,114 @@ const be = () => {
|
|
|
38
38
|
const r = t[e]?.[0];
|
|
39
39
|
r && a(r.id);
|
|
40
40
|
}, [t]);
|
|
41
|
-
const
|
|
42
|
-
|
|
41
|
+
const g = ne("(max-width: 768px)"), i = u({}), Q = u(null), R = u(null);
|
|
42
|
+
re(G, () => ({
|
|
43
43
|
updateQuery(e) {
|
|
44
|
-
|
|
44
|
+
I(e);
|
|
45
45
|
},
|
|
46
46
|
focusInput: () => {
|
|
47
|
-
|
|
47
|
+
_.current?.focus();
|
|
48
48
|
}
|
|
49
49
|
}));
|
|
50
|
-
const N = `${
|
|
50
|
+
const N = `${D}/graphql`, U = S(
|
|
51
51
|
() => ({
|
|
52
|
-
Authorization: `Bearer ${
|
|
52
|
+
Authorization: `Bearer ${C}`,
|
|
53
53
|
"Content-Type": "application/json",
|
|
54
54
|
...h ? { "User-Token": h } : {}
|
|
55
55
|
}),
|
|
56
|
-
[
|
|
56
|
+
[C, h]
|
|
57
57
|
), j = n(
|
|
58
58
|
async (e) => {
|
|
59
|
-
g.current && g.current.abort();
|
|
60
59
|
const r = new AbortController();
|
|
61
|
-
|
|
60
|
+
Q.current = r;
|
|
62
61
|
try {
|
|
63
|
-
|
|
64
|
-
const
|
|
65
|
-
|
|
62
|
+
d(null);
|
|
63
|
+
const l = (await le(
|
|
64
|
+
N,
|
|
65
|
+
oe,
|
|
66
|
+
{ searchInput: e },
|
|
67
|
+
U,
|
|
68
|
+
r.signal
|
|
69
|
+
))?.search.searchHits;
|
|
70
|
+
i.current[e.searchQuery] = l, p(l);
|
|
66
71
|
} catch (o) {
|
|
67
72
|
if (o.name === "AbortError")
|
|
68
73
|
return;
|
|
69
|
-
|
|
74
|
+
d("Failed to fetch search results. Please try again.");
|
|
75
|
+
} finally {
|
|
76
|
+
m(!1);
|
|
70
77
|
}
|
|
71
|
-
x(!1);
|
|
72
78
|
},
|
|
73
79
|
[N, U]
|
|
74
80
|
), O = n((e) => {
|
|
75
81
|
const r = i.current[e.searchQuery];
|
|
76
|
-
|
|
82
|
+
A({
|
|
77
83
|
eventName: "search_query_response_received",
|
|
78
84
|
properties: {
|
|
79
85
|
searchQuery: e.searchQuery,
|
|
80
86
|
totalResults: r?.length
|
|
81
87
|
}
|
|
82
88
|
});
|
|
83
|
-
}, []), B =
|
|
89
|
+
}, []), B = () => {
|
|
90
|
+
Q.current && (Q.current.abort(), m(!1));
|
|
91
|
+
}, H = n(
|
|
84
92
|
(e) => {
|
|
85
|
-
if (
|
|
86
|
-
p([]),
|
|
93
|
+
if (R.current && window.clearTimeout(R.current), !e.searchQuery) {
|
|
94
|
+
B(), p([]), d(null);
|
|
87
95
|
return;
|
|
88
96
|
}
|
|
89
|
-
|
|
90
|
-
|
|
97
|
+
R.current = window.setTimeout(() => {
|
|
98
|
+
B(), A({
|
|
91
99
|
eventName: "search_query_submitted",
|
|
92
100
|
properties: {
|
|
93
101
|
searchQuery: e.searchQuery
|
|
94
102
|
}
|
|
95
|
-
}), i.current[e.searchQuery] ? (p(i.current[e.searchQuery]), O(e)) : j(e).then(() => {
|
|
103
|
+
}), i.current[e.searchQuery] ? (p(i.current[e.searchQuery]), O(e)) : (m(!0), j(e).then(() => {
|
|
96
104
|
O(e);
|
|
97
|
-
});
|
|
98
|
-
},
|
|
105
|
+
}));
|
|
106
|
+
}, q);
|
|
99
107
|
},
|
|
100
|
-
[
|
|
101
|
-
),
|
|
108
|
+
[q, j]
|
|
109
|
+
), T = S(
|
|
102
110
|
() => ({
|
|
103
111
|
searchQuery: c,
|
|
104
112
|
filters: {
|
|
105
|
-
...
|
|
106
|
-
...
|
|
107
|
-
limit:
|
|
113
|
+
...v,
|
|
114
|
+
...E,
|
|
115
|
+
limit: k
|
|
108
116
|
}
|
|
109
117
|
}),
|
|
110
|
-
[c,
|
|
118
|
+
[c, k, v, E]
|
|
111
119
|
);
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}, [
|
|
115
|
-
const
|
|
116
|
-
(e) =>
|
|
120
|
+
P(() => {
|
|
121
|
+
W?.(T.searchQuery), H(T);
|
|
122
|
+
}, [H, T]);
|
|
123
|
+
const ee = n(
|
|
124
|
+
(e) => I(e.target.value),
|
|
117
125
|
[]
|
|
118
|
-
),
|
|
119
|
-
() =>
|
|
120
|
-
[
|
|
126
|
+
), te = S(
|
|
127
|
+
() => w || (g ? "Search..." : "Search for anything..."),
|
|
128
|
+
[w, g]
|
|
121
129
|
);
|
|
122
130
|
return {
|
|
123
131
|
results: t,
|
|
124
|
-
resultsList:
|
|
125
|
-
hasContent:
|
|
126
|
-
loading:
|
|
127
|
-
error:
|
|
132
|
+
resultsList: y,
|
|
133
|
+
hasContent: y.length > 0 || x,
|
|
134
|
+
loading: x,
|
|
135
|
+
error: J,
|
|
128
136
|
query: c,
|
|
129
|
-
onInput:
|
|
130
|
-
placeholder:
|
|
131
|
-
tab:
|
|
132
|
-
onTabChange:
|
|
133
|
-
selectedItem:
|
|
137
|
+
onInput: ee,
|
|
138
|
+
placeholder: te,
|
|
139
|
+
tab: b,
|
|
140
|
+
onTabChange: Z,
|
|
141
|
+
selectedItem: V,
|
|
134
142
|
setSelectedItem: a,
|
|
135
|
-
onSelectedItemChange:
|
|
136
|
-
transitionsDisabled:
|
|
137
|
-
inputRef:
|
|
138
|
-
isMobile:
|
|
143
|
+
onSelectedItemChange: X,
|
|
144
|
+
transitionsDisabled: Y,
|
|
145
|
+
inputRef: _,
|
|
146
|
+
isMobile: g
|
|
139
147
|
};
|
|
140
148
|
};
|
|
141
149
|
export {
|
|
142
|
-
|
|
150
|
+
ge as useInkeepSearch
|
|
143
151
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -98,11 +98,11 @@ export declare const aiChatComponentIds: {
|
|
|
98
98
|
aiChatDisclaimerContent: "aiChatDisclaimerContent";
|
|
99
99
|
aiChatDisclaimerText: "aiChatDisclaimerText";
|
|
100
100
|
aiChatDisclaimerArrow: "aiChatDisclaimerArrow";
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
aiChatExampleQuestions: "aiChatExampleQuestions";
|
|
102
|
+
aiChatExampleQuestionsLabel: "aiChatExampleQuestionsLabel";
|
|
103
|
+
aiChatExampleQuestionsList: "aiChatExampleQuestionsList";
|
|
104
|
+
aiChatExampleQuestion: "aiChatExampleQuestion";
|
|
105
|
+
aiChatExampleQuestionButton: "aiChatExampleQuestionButton";
|
|
106
106
|
aiChatWorkflows: "aiChatWorkflows";
|
|
107
107
|
aiChatWorkflowsLabel: "aiChatWorkflowsLabel";
|
|
108
108
|
aiChatWorkflowsList: "aiChatWorkflowsList";
|
|
@@ -564,11 +564,11 @@ export declare const componentIDs: {
|
|
|
564
564
|
aiChatDisclaimerContent: "aiChatDisclaimerContent";
|
|
565
565
|
aiChatDisclaimerText: "aiChatDisclaimerText";
|
|
566
566
|
aiChatDisclaimerArrow: "aiChatDisclaimerArrow";
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
567
|
+
aiChatExampleQuestions: "aiChatExampleQuestions";
|
|
568
|
+
aiChatExampleQuestionsLabel: "aiChatExampleQuestionsLabel";
|
|
569
|
+
aiChatExampleQuestionsList: "aiChatExampleQuestionsList";
|
|
570
|
+
aiChatExampleQuestion: "aiChatExampleQuestion";
|
|
571
|
+
aiChatExampleQuestionButton: "aiChatExampleQuestionButton";
|
|
572
572
|
aiChatWorkflows: "aiChatWorkflows";
|
|
573
573
|
aiChatWorkflowsLabel: "aiChatWorkflowsLabel";
|
|
574
574
|
aiChatWorkflowsList: "aiChatWorkflowsList";
|
|
@@ -1174,13 +1174,13 @@ export declare namespace EmbeddedChatPrimitive {
|
|
|
1174
1174
|
EmbeddedChatPrimitiveDisclaimerContent,
|
|
1175
1175
|
EmbeddedChatPrimitiveDisclaimerText,
|
|
1176
1176
|
EmbeddedChatPrimitiveDisclaimerArrow,
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1177
|
+
EmbeddedChatPrimitiveExampleQuestions,
|
|
1178
|
+
EmbeddedChatPrimitiveExampleQuestionsLabel,
|
|
1179
|
+
EmbeddedChatPrimitiveExampleQuestionsListProps,
|
|
1180
|
+
EmbeddedChatPrimitiveExampleQuestionsList,
|
|
1181
|
+
EmbeddedChatPrimitiveExampleQuestion,
|
|
1182
|
+
EmbeddedChatPrimitiveExampleQuestionButtonProps,
|
|
1183
|
+
EmbeddedChatPrimitiveExampleQuestionButton,
|
|
1184
1184
|
EmbeddedChatPrimitiveWorkflows,
|
|
1185
1185
|
EmbeddedChatPrimitiveWorkflowsLabel,
|
|
1186
1186
|
EmbeddedChatPrimitiveWorkflowsListProps,
|
|
@@ -1376,11 +1376,11 @@ export declare namespace EmbeddedChatPrimitive {
|
|
|
1376
1376
|
EmbeddedChatPrimitiveDisclaimerContent as DisclaimerContent,
|
|
1377
1377
|
EmbeddedChatPrimitiveDisclaimerText as DisclaimerText,
|
|
1378
1378
|
EmbeddedChatPrimitiveDisclaimerArrow as DisclaimerArrow,
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1379
|
+
EmbeddedChatPrimitiveExampleQuestions as ExampleQuestions,
|
|
1380
|
+
EmbeddedChatPrimitiveExampleQuestionsLabel as ExampleQuestionsLabel,
|
|
1381
|
+
EmbeddedChatPrimitiveExampleQuestionsList as ExampleQuestionsList,
|
|
1382
|
+
EmbeddedChatPrimitiveExampleQuestion as ExampleQuestion,
|
|
1383
|
+
EmbeddedChatPrimitiveExampleQuestionButton as ExampleQuestionButton,
|
|
1384
1384
|
EmbeddedChatPrimitiveWorkflows as Workflows,
|
|
1385
1385
|
EmbeddedChatPrimitiveWorkflowsLabel as WorkflowsLabel,
|
|
1386
1386
|
EmbeddedChatPrimitiveWorkflowsList as WorkflowsList,
|
|
@@ -1665,6 +1665,24 @@ declare const EmbeddedChatPrimitiveDisclaimerText: MemoExoticComponent<(props: O
|
|
|
1665
1665
|
|
|
1666
1666
|
declare const EmbeddedChatPrimitiveDisclaimerTrigger: ForwardRefExoticComponent< PolymorphicProps & Omit<HoverCardPrimitive.HoverCardTriggerProps & RefAttributes<HTMLAnchorElement>, "children" | "_id"> & Partial<Pick<HoverCardPrimitive.HoverCardTriggerProps & RefAttributes<HTMLAnchorElement>, "children" | "_id">>>;
|
|
1667
1667
|
|
|
1668
|
+
declare const EmbeddedChatPrimitiveExampleQuestion: ForwardRefExoticComponent<Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1669
|
+
|
|
1670
|
+
declare const EmbeddedChatPrimitiveExampleQuestionButton: (props: EmbeddedChatPrimitiveExampleQuestionButtonProps) => JSX.Element;
|
|
1671
|
+
|
|
1672
|
+
declare interface EmbeddedChatPrimitiveExampleQuestionButtonProps extends ComponentPropsWithRef<'button'> {
|
|
1673
|
+
question: string;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
declare const EmbeddedChatPrimitiveExampleQuestions: (props: ComponentPropsWithRef<"div">) => JSX.Element | null;
|
|
1677
|
+
|
|
1678
|
+
declare const EmbeddedChatPrimitiveExampleQuestionsLabel: MemoExoticComponent<(props: ComponentPropsWithRef<"h3">) => JSX.Element>;
|
|
1679
|
+
|
|
1680
|
+
declare const EmbeddedChatPrimitiveExampleQuestionsList: MemoExoticComponent<(props: EmbeddedChatPrimitiveExampleQuestionsListProps) => JSX.Element>;
|
|
1681
|
+
|
|
1682
|
+
declare interface EmbeddedChatPrimitiveExampleQuestionsListProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
1683
|
+
children: React.ReactNode | ((questions: string[]) => React.ReactNode);
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1668
1686
|
declare const EmbeddedChatPrimitiveFeedbackForm: (props: ComponentPropsWithRef<typeof PrimitiveFeedbackForm>) => JSX.Element;
|
|
1669
1687
|
|
|
1670
1688
|
declare const EmbeddedChatPrimitiveFeedbackItem: (props: EmbeddedChatPrimitiveFeedbackItemProps) => JSX.Element;
|
|
@@ -1941,24 +1959,6 @@ declare interface EmbeddedChatPrimitiveMessageWrapperProps extends ComponentProp
|
|
|
1941
1959
|
message: Partial<Message>;
|
|
1942
1960
|
}
|
|
1943
1961
|
|
|
1944
|
-
declare const EmbeddedChatPrimitiveQuickQuestion: ForwardRefExoticComponent<Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1945
|
-
|
|
1946
|
-
declare const EmbeddedChatPrimitiveQuickQuestionButton: (props: EmbeddedChatPrimitiveQuickQuestionButtonProps) => JSX.Element;
|
|
1947
|
-
|
|
1948
|
-
declare interface EmbeddedChatPrimitiveQuickQuestionButtonProps extends ComponentPropsWithRef<'button'> {
|
|
1949
|
-
question: string;
|
|
1950
|
-
}
|
|
1951
|
-
|
|
1952
|
-
declare const EmbeddedChatPrimitiveQuickQuestions: (props: ComponentPropsWithRef<"div">) => JSX.Element | null;
|
|
1953
|
-
|
|
1954
|
-
declare const EmbeddedChatPrimitiveQuickQuestionsLabel: MemoExoticComponent<(props: ComponentPropsWithRef<"h3">) => JSX.Element>;
|
|
1955
|
-
|
|
1956
|
-
declare const EmbeddedChatPrimitiveQuickQuestionsList: MemoExoticComponent<(props: EmbeddedChatPrimitiveQuickQuestionsListProps) => JSX.Element>;
|
|
1957
|
-
|
|
1958
|
-
declare interface EmbeddedChatPrimitiveQuickQuestionsListProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
1959
|
-
children: React.ReactNode | ((questions: string[]) => React.ReactNode);
|
|
1960
|
-
}
|
|
1961
|
-
|
|
1962
1962
|
declare const EmbeddedChatPrimitiveRoot: (props: ComponentPropsWithRef<typeof PrimitiveRoot>) => JSX.Element | null;
|
|
1963
1963
|
|
|
1964
1964
|
declare const EmbeddedChatPrimitiveSendButton: (props: ComponentPropsWithRef<typeof SendButton>) => JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -98,11 +98,11 @@ export declare const aiChatComponentIds: {
|
|
|
98
98
|
aiChatDisclaimerContent: "aiChatDisclaimerContent";
|
|
99
99
|
aiChatDisclaimerText: "aiChatDisclaimerText";
|
|
100
100
|
aiChatDisclaimerArrow: "aiChatDisclaimerArrow";
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
aiChatExampleQuestions: "aiChatExampleQuestions";
|
|
102
|
+
aiChatExampleQuestionsLabel: "aiChatExampleQuestionsLabel";
|
|
103
|
+
aiChatExampleQuestionsList: "aiChatExampleQuestionsList";
|
|
104
|
+
aiChatExampleQuestion: "aiChatExampleQuestion";
|
|
105
|
+
aiChatExampleQuestionButton: "aiChatExampleQuestionButton";
|
|
106
106
|
aiChatWorkflows: "aiChatWorkflows";
|
|
107
107
|
aiChatWorkflowsLabel: "aiChatWorkflowsLabel";
|
|
108
108
|
aiChatWorkflowsList: "aiChatWorkflowsList";
|
|
@@ -564,11 +564,11 @@ export declare const componentIDs: {
|
|
|
564
564
|
aiChatDisclaimerContent: "aiChatDisclaimerContent";
|
|
565
565
|
aiChatDisclaimerText: "aiChatDisclaimerText";
|
|
566
566
|
aiChatDisclaimerArrow: "aiChatDisclaimerArrow";
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
567
|
+
aiChatExampleQuestions: "aiChatExampleQuestions";
|
|
568
|
+
aiChatExampleQuestionsLabel: "aiChatExampleQuestionsLabel";
|
|
569
|
+
aiChatExampleQuestionsList: "aiChatExampleQuestionsList";
|
|
570
|
+
aiChatExampleQuestion: "aiChatExampleQuestion";
|
|
571
|
+
aiChatExampleQuestionButton: "aiChatExampleQuestionButton";
|
|
572
572
|
aiChatWorkflows: "aiChatWorkflows";
|
|
573
573
|
aiChatWorkflowsLabel: "aiChatWorkflowsLabel";
|
|
574
574
|
aiChatWorkflowsList: "aiChatWorkflowsList";
|
|
@@ -1174,13 +1174,13 @@ export declare namespace EmbeddedChatPrimitive {
|
|
|
1174
1174
|
EmbeddedChatPrimitiveDisclaimerContent,
|
|
1175
1175
|
EmbeddedChatPrimitiveDisclaimerText,
|
|
1176
1176
|
EmbeddedChatPrimitiveDisclaimerArrow,
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1177
|
+
EmbeddedChatPrimitiveExampleQuestions,
|
|
1178
|
+
EmbeddedChatPrimitiveExampleQuestionsLabel,
|
|
1179
|
+
EmbeddedChatPrimitiveExampleQuestionsListProps,
|
|
1180
|
+
EmbeddedChatPrimitiveExampleQuestionsList,
|
|
1181
|
+
EmbeddedChatPrimitiveExampleQuestion,
|
|
1182
|
+
EmbeddedChatPrimitiveExampleQuestionButtonProps,
|
|
1183
|
+
EmbeddedChatPrimitiveExampleQuestionButton,
|
|
1184
1184
|
EmbeddedChatPrimitiveWorkflows,
|
|
1185
1185
|
EmbeddedChatPrimitiveWorkflowsLabel,
|
|
1186
1186
|
EmbeddedChatPrimitiveWorkflowsListProps,
|
|
@@ -1376,11 +1376,11 @@ export declare namespace EmbeddedChatPrimitive {
|
|
|
1376
1376
|
EmbeddedChatPrimitiveDisclaimerContent as DisclaimerContent,
|
|
1377
1377
|
EmbeddedChatPrimitiveDisclaimerText as DisclaimerText,
|
|
1378
1378
|
EmbeddedChatPrimitiveDisclaimerArrow as DisclaimerArrow,
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1379
|
+
EmbeddedChatPrimitiveExampleQuestions as ExampleQuestions,
|
|
1380
|
+
EmbeddedChatPrimitiveExampleQuestionsLabel as ExampleQuestionsLabel,
|
|
1381
|
+
EmbeddedChatPrimitiveExampleQuestionsList as ExampleQuestionsList,
|
|
1382
|
+
EmbeddedChatPrimitiveExampleQuestion as ExampleQuestion,
|
|
1383
|
+
EmbeddedChatPrimitiveExampleQuestionButton as ExampleQuestionButton,
|
|
1384
1384
|
EmbeddedChatPrimitiveWorkflows as Workflows,
|
|
1385
1385
|
EmbeddedChatPrimitiveWorkflowsLabel as WorkflowsLabel,
|
|
1386
1386
|
EmbeddedChatPrimitiveWorkflowsList as WorkflowsList,
|
|
@@ -1665,6 +1665,24 @@ declare const EmbeddedChatPrimitiveDisclaimerText: MemoExoticComponent<(props: O
|
|
|
1665
1665
|
|
|
1666
1666
|
declare const EmbeddedChatPrimitiveDisclaimerTrigger: ForwardRefExoticComponent< PolymorphicProps & Omit<HoverCardPrimitive.HoverCardTriggerProps & RefAttributes<HTMLAnchorElement>, "children" | "_id"> & Partial<Pick<HoverCardPrimitive.HoverCardTriggerProps & RefAttributes<HTMLAnchorElement>, "children" | "_id">>>;
|
|
1667
1667
|
|
|
1668
|
+
declare const EmbeddedChatPrimitiveExampleQuestion: ForwardRefExoticComponent<Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1669
|
+
|
|
1670
|
+
declare const EmbeddedChatPrimitiveExampleQuestionButton: (props: EmbeddedChatPrimitiveExampleQuestionButtonProps) => JSX.Element;
|
|
1671
|
+
|
|
1672
|
+
declare interface EmbeddedChatPrimitiveExampleQuestionButtonProps extends ComponentPropsWithRef<'button'> {
|
|
1673
|
+
question: string;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
declare const EmbeddedChatPrimitiveExampleQuestions: (props: ComponentPropsWithRef<"div">) => JSX.Element | null;
|
|
1677
|
+
|
|
1678
|
+
declare const EmbeddedChatPrimitiveExampleQuestionsLabel: MemoExoticComponent<(props: ComponentPropsWithRef<"h3">) => JSX.Element>;
|
|
1679
|
+
|
|
1680
|
+
declare const EmbeddedChatPrimitiveExampleQuestionsList: MemoExoticComponent<(props: EmbeddedChatPrimitiveExampleQuestionsListProps) => JSX.Element>;
|
|
1681
|
+
|
|
1682
|
+
declare interface EmbeddedChatPrimitiveExampleQuestionsListProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
1683
|
+
children: React.ReactNode | ((questions: string[]) => React.ReactNode);
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1668
1686
|
declare const EmbeddedChatPrimitiveFeedbackForm: (props: ComponentPropsWithRef<typeof PrimitiveFeedbackForm>) => JSX.Element;
|
|
1669
1687
|
|
|
1670
1688
|
declare const EmbeddedChatPrimitiveFeedbackItem: (props: EmbeddedChatPrimitiveFeedbackItemProps) => JSX.Element;
|
|
@@ -1941,24 +1959,6 @@ declare interface EmbeddedChatPrimitiveMessageWrapperProps extends ComponentProp
|
|
|
1941
1959
|
message: Partial<Message>;
|
|
1942
1960
|
}
|
|
1943
1961
|
|
|
1944
|
-
declare const EmbeddedChatPrimitiveQuickQuestion: ForwardRefExoticComponent<Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1945
|
-
|
|
1946
|
-
declare const EmbeddedChatPrimitiveQuickQuestionButton: (props: EmbeddedChatPrimitiveQuickQuestionButtonProps) => JSX.Element;
|
|
1947
|
-
|
|
1948
|
-
declare interface EmbeddedChatPrimitiveQuickQuestionButtonProps extends ComponentPropsWithRef<'button'> {
|
|
1949
|
-
question: string;
|
|
1950
|
-
}
|
|
1951
|
-
|
|
1952
|
-
declare const EmbeddedChatPrimitiveQuickQuestions: (props: ComponentPropsWithRef<"div">) => JSX.Element | null;
|
|
1953
|
-
|
|
1954
|
-
declare const EmbeddedChatPrimitiveQuickQuestionsLabel: MemoExoticComponent<(props: ComponentPropsWithRef<"h3">) => JSX.Element>;
|
|
1955
|
-
|
|
1956
|
-
declare const EmbeddedChatPrimitiveQuickQuestionsList: MemoExoticComponent<(props: EmbeddedChatPrimitiveQuickQuestionsListProps) => JSX.Element>;
|
|
1957
|
-
|
|
1958
|
-
declare interface EmbeddedChatPrimitiveQuickQuestionsListProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
1959
|
-
children: React.ReactNode | ((questions: string[]) => React.ReactNode);
|
|
1960
|
-
}
|
|
1961
|
-
|
|
1962
1962
|
declare const EmbeddedChatPrimitiveRoot: (props: ComponentPropsWithRef<typeof PrimitiveRoot>) => JSX.Element | null;
|
|
1963
1963
|
|
|
1964
1964
|
declare const EmbeddedChatPrimitiveSendButton: (props: ComponentPropsWithRef<typeof SendButton>) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react/jsx-runtime"),t=require("react"),y=require("../atoms/api/analytics/events.cjs"),B=require("./config-provider.cjs"),b=require("./user-provider.cjs"),p=t.createContext(void 0),f=({children:e})=>{const{baseSettings:s,componentType:n}=B.useInkeepConfig(),{apiKey:o,analyticsApiBaseUrl:r,tags:i,privacyPreferences:d,env:E}=s,{userProperties:c}=b.useUser(),a=t.useMemo(()=>({widgetLibraryVersion:"0.5.
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react/jsx-runtime"),t=require("react"),y=require("../atoms/api/analytics/events.cjs"),B=require("./config-provider.cjs"),b=require("./user-provider.cjs"),p=t.createContext(void 0),f=({children:e})=>{const{baseSettings:s,componentType:n}=B.useInkeepConfig(),{apiKey:o,analyticsApiBaseUrl:r,tags:i,privacyPreferences:d,env:E}=s,{userProperties:c}=b.useUser(),a=t.useMemo(()=>({widgetLibraryVersion:"0.5.30",componentType:n,tags:i}),[n,i]),u=!d.optOutAllAnalytics&&E!=="development",g={logEvent:t.useCallback(async v=>{const m={...a,...v.properties},l={eventName:v.eventName,properties:m,userProperties:c};u&&y.logEvent(l,o,r),s.onEvent?.(l)},[u,s,o,r,c,a])};return P.jsx(p.Provider,{value:g,children:e})},x=()=>{const e=t.useContext(p);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e};exports.BaseEventsProvider=f;exports.useBaseEvents=x;
|
|
@@ -7,7 +7,7 @@ import { useUser as b } from "./user-provider.js";
|
|
|
7
7
|
const m = x(void 0), U = ({ children: e }) => {
|
|
8
8
|
const { baseSettings: t, componentType: o } = C(), { apiKey: n, analyticsApiBaseUrl: s, tags: r, privacyPreferences: u, env: l } = t, { userProperties: i } = b(), a = d(
|
|
9
9
|
() => ({
|
|
10
|
-
widgetLibraryVersion: "0.5.
|
|
10
|
+
widgetLibraryVersion: "0.5.30",
|
|
11
11
|
componentType: o,
|
|
12
12
|
tags: r
|
|
13
13
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a={icon:"icon",loadingIndicator__Text:"loadingIndicator__Text",loadingIndicator__Dots:"loadingIndicator__Dots",loadingIndicator__Dot:"loadingIndicator__Dot",view_toggle:"view_toggle",view_toggle_button:"view_toggle_button",view_toggle_icon:"view_toggle_icon"},e={codeblockContainer:"codeblockContainer",codeblockHeader:"codeblockHeader",codeblockHeaderLanguage:"codeblockHeaderLanguage",codeblockCopyButton:"codeblockCopyButton",codeblockHighlighterWrapper:"codeblockHighlighterWrapper",codeblockHighlighter:"codeblockHighlighter",codeblockCode:"codeblockCode",markdownH1:"markdownH1",markdownH2:"markdownH2",markdownP:"markdownP",markdownLi:"markdownLi",markdownUl:"markdownUl",markdownOl:"markdownOl",markdownLink:"markdownLink",markdownSourceLink:"markdownSourceLink",markdownTable:"markdownTable",markdownTh:"markdownTh",markdownTd:"markdownTd",markdownCode:"markdownCode"},t={aiChatWrapper:"aiChatWrapper",aiChatConversationLoading:"aiChatConversationLoading",aiChatRoot:"aiChatRoot",aiChatHeader:"aiChatHeader",aiChatHeader__Toolbar:"aiChatHeader__Toolbar",aiChatHeader__ToolbarHeader:"aiChatHeader__ToolbarHeader",aiChatHeader__ToolbarHeaderWrapper:"aiChatHeader__ToolbarHeaderWrapper",aiChatContent:"aiChatContent",aiChatContentScrollArea:"aiChatContentScrollArea",aiChatContentScrollArea__Viewport:"aiChatContentScrollArea__Viewport",aiChatContentScrollArea__Scrollbar:"aiChatContentScrollArea__Scrollbar",aiChatContentScrollArea__Thumb:"aiChatContentScrollArea__Thumb",aiChatContentScrollArea__Corner:"aiChatContentScrollArea__Corner",aiChatDisclaimer:"aiChatDisclaimer",aiChatDisclaimerLabel:"aiChatDisclaimerLabel",aiChatDisclaimerTrigger:"aiChatDisclaimerTrigger",aiChatDisclaimerContent:"aiChatDisclaimerContent",aiChatDisclaimerText:"aiChatDisclaimerText",aiChatDisclaimerArrow:"aiChatDisclaimerArrow",aiChatQuickQuestions:"aiChatQuickQuestions",aiChatQuickQuestionsLabel:"aiChatQuickQuestionsLabel",aiChatQuickQuestionsList:"aiChatQuickQuestionsList",aiChatQuickQuestion:"aiChatQuickQuestion",aiChatQuickQuestionButton:"aiChatQuickQuestionButton",aiChatWorkflows:"aiChatWorkflows",aiChatWorkflowsLabel:"aiChatWorkflowsLabel",aiChatWorkflowsList:"aiChatWorkflowsList",aiChatWorkflow:"aiChatWorkflow",aiChatWorkflow__Icon:"aiChatWorkflow__Icon",aiChatMessages:"aiChatMessages",aiChatMessageWrapper:"aiChatMessageWrapper",aiChatMessageHeader:"aiChatMessageHeader",aiChatMessageLoading:"aiChatMessageLoading",aiChatMessageAvatar:"aiChatMessageAvatar",aiChatMessageAvatarFallback:"aiChatMessageAvatarFallback",aiChatMessageAvatarImage:"aiChatMessageAvatarImage",aiChatMessageAvatarContent:"aiChatMessageAvatarContent",aiChatMessageName:"aiChatMessageName",aiChatMessageContentWrapper:"aiChatMessageContentWrapper",aiChatMessageContent:"aiChatMessageContent",aiChatMessageAttachments:"aiChatMessageAttachments",aiChatMessageAttachments__List:"aiChatMessageAttachments__List",aiChatMessageAttachments__Item:"aiChatMessageAttachments__Item",aiChatMessageAttachments__ItemIcon:"aiChatMessageAttachments__ItemIcon",aiChatMessageAttachments__ItemTitle:"aiChatMessageAttachments__ItemTitle",aiChatMessageAttachmentsPreview:"aiChatMessageAttachmentsPreview",aiChatMessageAttachmentsPreview__Overlay:"aiChatMessageAttachmentsPreview__Overlay",aiChatMessageAttachmentsPreview__Content:"aiChatMessageAttachmentsPreview__Content",aiChatMessageAttachmentsPreview__Header:"aiChatMessageAttachmentsPreview__Header",aiChatMessageAttachmentsPreview__Close:"aiChatMessageAttachmentsPreview__Close",aiChatMessageAttachmentsPreview__Body:"aiChatMessageAttachmentsPreview__Body",aiChatMessage:"aiChatMessage",aiChatMessageActions:"aiChatMessageActions",aiChatMessageToolActions:"aiChatMessageToolActions",aiChatMessageToolAction:"aiChatMessageToolAction",aiChatMessageAction:"aiChatMessageAction",aiChatMessageSources:"aiChatMessageSources",aiChatMessageSources__Header:"aiChatMessageSources__Header",aiChatMessageSources__List:"aiChatMessageSources__List",aiChatMessageSourceItem:"aiChatMessageSourceItem",aiChatMessageSourceItem__Icon:"aiChatMessageSourceItem__Icon",aiChatMessageSourceItem__Breadcrumbs:"aiChatMessageSourceItem__Breadcrumbs",aiChatMessageSourceItem__Breadcrumb:"aiChatMessageSourceItem__Breadcrumb",aiChatMessageSourceItem__BreadcrumbIcon:"aiChatMessageSourceItem__BreadcrumbIcon",aiChatMessageSourceItem__Title:"aiChatMessageSourceItem__Title",aiChatMessageSourceItem__Tag:"aiChatMessageSourceItem__Tag",aiChatMessageSourceItem__Description:"aiChatMessageSourceItem__Description",aiChatMessageSourceItem__DescriptionPart:"aiChatMessageSourceItem__DescriptionPart",aiChatMessageSourceItem__Indicator:"aiChatMessageSourceItem__Indicator",aiChatFooter:"aiChatFooter",aiChatInput__Fieldset:"aiChatInput__Fieldset",aiChatInput__Group:"aiChatInput__Group",aiChatInput:"aiChatInput",aiChatInput__SendButton:"aiChatInput__SendButton",aiChatInput__SendButtonIcon:"aiChatInput__SendButtonIcon",aiChatAttachmentsBar:"aiChatAttachmentsBar",aiChatAttachmentsBar__List:"aiChatAttachmentsBar__List",aiChatAttachmentsBar__Attachment:"aiChatAttachmentsBar__Attachment",aiChatAttachmentsBar__AttachmentIcon:"aiChatAttachmentsBar__AttachmentIcon",aiChatAttachmentsBar__AttachmentTitle:"aiChatAttachmentsBar__AttachmentTitle",aiChatAttachmentsBar__AttachmentDelete:"aiChatAttachmentsBar__AttachmentDelete",aiChatAttachmentsBar__Actions:"aiChatAttachmentsBar__Actions",aiChatAttachmentsBar__InfoTip:"aiChatAttachmentsBar__InfoTip",aiChatAttachmentsBar__InfoTipIcon:"aiChatAttachmentsBar__InfoTipIcon",aiChatAttachmentsBar__InfoTipArrow:"aiChatAttachmentsBar__InfoTipArrow",aiChatAttachmentsBar__InfoTipText:"aiChatAttachmentsBar__InfoTipText",aiChatAttachmentsBar__Inputs:"aiChatAttachmentsBar__Inputs",aiChatAttachmentsBar__Input:"aiChatAttachmentsBar__Input",aiChatAttachmentsBar__InputIcon:"aiChatAttachmentsBar__InputIcon",aiChatAttachmentsBar__Modal:"aiChatAttachmentsBar__Modal",aiChatAttachmentsBar__ModalOverlay:"aiChatAttachmentsBar__ModalOverlay",aiChatAttachmentsBar__ModalContent:"aiChatAttachmentsBar__ModalContent",aiChatAttachmentsBar__ModalHeader:"aiChatAttachmentsBar__ModalHeader",aiChatAttachmentsBar__ModalClose:"aiChatAttachmentsBar__ModalClose",aiChatAttachmentsBar__ModalBody:"aiChatAttachmentsBar__ModalBody",aiChatAttachmentsBar__ModalHeading:"aiChatAttachmentsBar__ModalHeading",aiChatAttachmentsBar__ModalDescription:"aiChatAttachmentsBar__ModalDescription",aiChatAttachmentsBar__ModalHelp:"aiChatAttachmentsBar__ModalHelp",aiChatAttachmentsBar__Form:"aiChatAttachmentsBar__Form",aiChatAttachmentsBar__FormTitle:"aiChatAttachmentsBar__FormTitle",aiChatAttachmentsBar__FormTitleLabel:"aiChatAttachmentsBar__FormTitleLabel",aiChatAttachmentsBar__FormTitleInput:"aiChatAttachmentsBar__FormTitleInput",aiChatAttachmentsBar__FormTitleError:"aiChatAttachmentsBar__FormTitleError",aiChatAttachmentsBar__FormContent:"aiChatAttachmentsBar__FormContent",aiChatAttachmentsBar__FormContentLabel:"aiChatAttachmentsBar__FormContentLabel",aiChatAttachmentsBar__FormContentInput:"aiChatAttachmentsBar__FormContentInput",aiChatAttachmentsBar__FormContentError:"aiChatAttachmentsBar__FormContentError",aiChatAttachmentsBar__FormSubmitButton:"aiChatAttachmentsBar__FormSubmitButton",aiChatActionBar:"aiChatActionBar",aiChat__ChatActions:"aiChat__ChatActions",aiChat__ChatAction:"aiChat__ChatAction",aiChat__ChatActionLabel:"aiChat__ChatActionLabel",aiChat__ChatActionFeeback:"aiChat__ChatActionFeeback",aiChatHelpActions:"aiChatHelpActions",aiChatHelpAction:"aiChatHelpAction",aiChatHelpActions__Trigger:"aiChatHelpActions__Trigger",aiChatHelpActions__Menu:"aiChatHelpActions__Menu",aiChatHelpActions__MenuArrow:"aiChatHelpActions__MenuArrow",aiChatHelpActions__MenuItem:"aiChatHelpActions__MenuItem",aiChatHelpActions_MenuItemIcon:"aiChatHelpActions_MenuItemIcon",aiChatTagline__Container:"aiChatTagline__Container",aiChatTagline__Text:"aiChatTagline__Text",aiChatTagline__Logo:"aiChatTagline__Logo",aiChatTagline__BrandName:"aiChatTagline__BrandName",aiChatFeedbackModal:"aiChatFeedbackModal",aiChatFeedbackModal__Overlay:"aiChatFeedbackModal__Overlay",aiChatFeedbackModal__Content:"aiChatFeedbackModal__Content",aiChatFeedbackModal__Header:"aiChatFeedbackModal__Header",aiChatFeedbackModal__Close:"aiChatFeedbackModal__Close",aiChatFeedbackModal__Body:"aiChatFeedbackModal__Body",aiChatFeedbackForm:"aiChatFeedbackForm",aiChatFeedbackItem:"aiChatFeedbackItem",aiChatFeedbackItem__Checkbox:"aiChatFeedbackItem__Checkbox",aiChatFeedbackItem__CheckboxIndicator:"aiChatFeedbackItem__CheckboxIndicator",aiChatFeedbackItem__Label:"aiChatFeedbackItem__Label",aiChatFeedbackItem__Description:"aiChatFeedbackItem__Description",aiChatFeedbackForm__SubmitButton:"aiChatFeedbackForm__SubmitButton",aiChatForm__Wrapper:"aiChatForm__Wrapper",aiChatForm:"aiChatForm",aiChatForm__Close:"aiChatForm__Close",aiChatForm__Header:"aiChatForm__Header",aiChatForm__Heading:"aiChatForm__Heading",aiChatForm__Description:"aiChatForm__Description",aiChatForm__Content:"aiChatForm__Content",aiChatForm__Field:"aiChatForm__Field",aiChatForm__FieldLabel:"aiChatForm__FieldLabel",aiChatForm__FieldText:"aiChatForm__FieldText",aiChatForm__FieldEmail:"aiChatForm__FieldEmail",aiChatForm__FieldFile:"aiChatForm__FieldFile",aiChatForm__FieldTextArea:"aiChatForm__FieldTextArea",aiChatForm__FieldCheckbox:"aiChatForm__FieldCheckbox",aiChatForm__FieldCheckboxIndicator:"aiChatForm__FieldCheckboxIndicator",aiChatForm__FieldSelect:"aiChatForm__FieldSelect",aiChatForm__FieldSelect__Trigger:"aiChatForm__FieldSelect__Trigger",aiChatForm__FieldSelect__Value:"aiChatForm__FieldSelect__Value",aiChatForm__FieldSelect__Icon:"aiChatForm__FieldSelect__Icon",aiChatForm__FieldSelect__Content:"aiChatForm__FieldSelect__Content",aiChatForm__FieldSelect__Viewport:"aiChatForm__FieldSelect__Viewport",aiChatForm__FieldSelect__Item:"aiChatForm__FieldSelect__Item",aiChatForm__FieldSelect__ItemIndicator:"aiChatForm__FieldSelect__ItemIndicator",aiChatForm__FieldSelect__ItemText:"aiChatForm__FieldSelect__ItemText",aiChatForm__FieldError:"aiChatForm__FieldError",aiChatForm__Error:"aiChatForm__Error",aiChatForm__Footer:"aiChatForm__Footer",aiChatForm__Cancel:"aiChatForm__Cancel",aiChatForm__Submit:"aiChatForm__Submit",aiChatForm__Success:"aiChatForm__Success",aiChatForm__SuccessHeading:"aiChatForm__SuccessHeading",aiChatForm__SuccessMessage:"aiChatForm__SuccessMessage",aiChatForm__SuccessButton:"aiChatForm__SuccessButton",aiChatLink:"aiChatLink"},i={aiSearchWrapper:"aiSearchWrapper",aiSearchRoot:"aiSearchRoot",aiSearchContent:"aiSearchContent",aiSearchInputGroup:"aiSearchInputGroup",aiSearchInputIcon:"aiSearchInputIcon",aiSearchInput:"aiSearchInput",aiSearchLoading:"aiSearchLoading",aiAskAITrigger:"aiAskAITrigger",aiAskAITrigger__Icon:"aiAskAITrigger__Icon",aiAskAITrigger__Label:"aiAskAITrigger__Label",aiAskAITrigger__Indicator:"aiAskAITrigger__Indicator",aiSearchResults:"aiSearchResults",aiSearchResults__Loading:"aiSearchResults__Loading",aiSearchResults__Empty:"aiSearchResults__Empty",aiSearchResults__TabList:"aiSearchResults__TabList",aiSearchResults__Tab:"aiSearchResults__Tab",aiSearchResults__ScrollArea:"aiSearchResults__ScrollArea",aiSearchResults__ScrollAreaViewport:"aiSearchResults__ScrollAreaViewport",aiSearchResults__List:"aiSearchResults__List",aiSearchResults__Item:"aiSearchResults__Item",aiSearchResults__ItemIcon:"aiSearchResults__ItemIcon",aiSearchResults__ItemBreadcrumbs:"aiSearchResults__ItemBreadcrumbs",aiSearchResults__ItemBreadcrumb:"aiSearchResults__ItemBreadcrumb",aiSearchResults__ItemBreadcrumbIcon:"aiSearchResults__ItemBreadcrumbIcon",aiSearchResults__ItemTitle:"aiSearchResults__ItemTitle",aiSearchResults__ItemTag:"aiSearchResults__ItemTag",aiSearchResults__ItemDescription:"aiSearchResults__ItemDescription",aiSearchResults__ItemDescriptionPart:"aiSearchResults__ItemDescriptionPart",aiSearchResults__ItemIndicator:"aiSearchResults__ItemIndicator",aiSearchResults__ScrollAreaScrollbar:"aiSearchResults__ScrollAreaScrollbar",aiSearchResults__ScrollAreaThumb:"aiSearchResults__ScrollAreaThumb",aiSearchResults__ScrollAreaCorner:"aiSearchResults__ScrollAreaCorner",aiSearchFooter:"aiSearchFooter",aiSearchTagline__Container:"aiSearchTagline__Container",aiSearchTagline__Text:"aiSearchTagline__Text",aiSearchTagline__Logo:"aiSearchTagline__Logo",aiSearchTagline__BrandName:"aiSearchTagline__BrandName"},_={modal:"modal",modal__Overlay:"modal__Overlay",modal__Content:"modal__Content",modal__Close:"modal__Close"},o={chatButton__Text:"chatButton__Text",chatButton__Button:"chatButton__Button",chatButton__Container:"chatButton__Container",chatButton__AvatarImage:"chatButton__AvatarImage",chatButton__AvatarContent:"chatButton__AvatarContent"},r={intelligentForm__Root:"intelligentForm__Root",intelligentForm__Heading:"intelligentForm__Heading",intelligentForm__Content:"intelligentForm__Content",intelligentForm__Content__ScrollArea:"intelligentForm__Content__ScrollArea",intelligentForm__Content__ScrollAreaViewport:"intelligentForm__Content__ScrollAreaViewport",intelligentForm__Content__ScrollAreaScrollbar:"intelligentForm__Content__ScrollAreaScrollbar",intelligentForm__Content__ScrollAreaThumb:"intelligentForm__Content__ScrollAreaThumb",intelligentForm__Content__ScrollAreaCorner:"intelligentForm__Content__ScrollAreaCorner",intelligentForm__Success:"intelligentForm__Success",intelligentForm__SuccessIcon:"intelligentForm__SuccessIcon",intelligentForm__SuccessHeading:"intelligentForm__SuccessHeading",intelligentForm__SuccessMessage:"intelligentForm__SuccessMessage",intelligentForm__PrimaryForm:"intelligentForm__PrimaryForm",intelligentForm__PrimaryForm__Description:"intelligentForm__PrimaryForm__Description",intelligentForm__PrimaryFormFields:"intelligentForm__PrimaryFormFields",intelligentForm__PrimaryFormSubmit:"intelligentForm__PrimaryFormSubmit",intelligentForm__Field:"intelligentForm__Field",intelligentForm__FieldLabel:"intelligentForm__FieldLabel",intelligentForm__FieldText:"intelligentForm__FieldText",intelligentForm__FieldEmail:"intelligentForm__FieldEmail",intelligentForm__FieldFile:"intelligentForm__FieldFile",intelligentForm__FieldTextArea:"intelligentForm__FieldTextArea",intelligentForm__FieldCheckbox:"intelligentForm__FieldCheckbox",intelligentForm__FieldCheckboxIndicator:"intelligentForm__FieldCheckboxIndicator",intelligentForm__FieldSelect:"intelligentForm__FieldSelect",intelligentForm__FieldSelect__Trigger:"intelligentForm__FieldSelect__Trigger",intelligentForm__FieldSelect__Value:"intelligentForm__FieldSelect__Value",intelligentForm__FieldSelect__Icon:"intelligentForm__FieldSelect__Icon",intelligentForm__FieldSelect__Content:"intelligentForm__FieldSelect__Content",intelligentForm__FieldSelect__Viewport:"intelligentForm__FieldSelect__Viewport",intelligentForm__FieldSelect__Item:"intelligentForm__FieldSelect__Item",intelligentForm__FieldSelect__ItemIndicator:"intelligentForm__FieldSelect__ItemIndicator",intelligentForm__FieldSelect__ItemText:"intelligentForm__FieldSelect__ItemText",intelligentForm__FieldError:"intelligentForm__FieldError",intelligentForm__BotHeading:"intelligentForm__BotHeading",intelligentForm__BotHeading__Icon:"intelligentForm__BotHeading__Icon",intelligentForm__BotHeading__Name:"intelligentForm__BotHeading__Name",intelligentForm__Loading:"intelligentForm__Loading",intelligentForm__ConfidentResponse:"intelligentForm__ConfidentResponse",intelligentForm__ConfidentAnswer:"intelligentForm__ConfidentAnswer",intelligentForm__ConfidentResponseButton:"intelligentForm__ConfidentResponseButton",intelligentForm__ConfidentResponseButton__Icon:"intelligentForm__ConfidentResponseButton__Icon",intelligentForm__ConfidentResponseButton__Label:"intelligentForm__ConfidentResponseButton__Label",intelligentForm__SecondaryForm:"intelligentForm__SecondaryForm",intelligentForm__SecondaryForm__Description:"intelligentForm__SecondaryForm__Description",intelligentForm__SecondaryFormFields:"intelligentForm__SecondaryFormFields",intelligentForm__SecondaryFormSubmit:"intelligentForm__SecondaryFormSubmit",intelligentForm__Error:"intelligentForm__Error",intelligentForm__Sources:"intelligentForm__Sources",intelligentForm__SourcesCaption:"intelligentForm__SourcesCaption",intelligentForm__SourcesList:"intelligentForm__SourcesList",intelligentForm__Source:"intelligentForm__Source",intelligentForm__SourceIcon:"intelligentForm__SourceIcon",intelligentForm__SourceTitle:"intelligentForm__SourceTitle"},n={searchBar__Container:"searchBar__Container",searchBar__Button:"searchBar__Button",searchBar__ContentWrapper:"searchBar__ContentWrapper",searchBar__Text:"searchBar__Text",searchBar__Icon:"searchBar__Icon",searchBar__KbdWrapper:"searchBar__KbdWrapper",searchBar__CmdIcon:"searchBar__CmdIcon",searchBar__Ctrl:"searchBar__Ctrl",searchBar__KbdShortcutKey:"searchBar__KbdShortcutKey"},l={...e,...t,...i,..._,...o,...n,...r,...a};exports.SearchBarComponentIds=n;exports.aiChatComponentIds=t;exports.aiSearchComponentIds=i;exports.chatButtonComponentIds=o;exports.componentIDs=l;exports.intelligentFormComponentIds=r;exports.markDownComponentIds=e;exports.miscellanousComponentIds=a;exports.modalComponentIds=_;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a={icon:"icon",loadingIndicator__Text:"loadingIndicator__Text",loadingIndicator__Dots:"loadingIndicator__Dots",loadingIndicator__Dot:"loadingIndicator__Dot",view_toggle:"view_toggle",view_toggle_button:"view_toggle_button",view_toggle_icon:"view_toggle_icon"},e={codeblockContainer:"codeblockContainer",codeblockHeader:"codeblockHeader",codeblockHeaderLanguage:"codeblockHeaderLanguage",codeblockCopyButton:"codeblockCopyButton",codeblockHighlighterWrapper:"codeblockHighlighterWrapper",codeblockHighlighter:"codeblockHighlighter",codeblockCode:"codeblockCode",markdownH1:"markdownH1",markdownH2:"markdownH2",markdownP:"markdownP",markdownLi:"markdownLi",markdownUl:"markdownUl",markdownOl:"markdownOl",markdownLink:"markdownLink",markdownSourceLink:"markdownSourceLink",markdownTable:"markdownTable",markdownTh:"markdownTh",markdownTd:"markdownTd",markdownCode:"markdownCode"},t={aiChatWrapper:"aiChatWrapper",aiChatConversationLoading:"aiChatConversationLoading",aiChatRoot:"aiChatRoot",aiChatHeader:"aiChatHeader",aiChatHeader__Toolbar:"aiChatHeader__Toolbar",aiChatHeader__ToolbarHeader:"aiChatHeader__ToolbarHeader",aiChatHeader__ToolbarHeaderWrapper:"aiChatHeader__ToolbarHeaderWrapper",aiChatContent:"aiChatContent",aiChatContentScrollArea:"aiChatContentScrollArea",aiChatContentScrollArea__Viewport:"aiChatContentScrollArea__Viewport",aiChatContentScrollArea__Scrollbar:"aiChatContentScrollArea__Scrollbar",aiChatContentScrollArea__Thumb:"aiChatContentScrollArea__Thumb",aiChatContentScrollArea__Corner:"aiChatContentScrollArea__Corner",aiChatDisclaimer:"aiChatDisclaimer",aiChatDisclaimerLabel:"aiChatDisclaimerLabel",aiChatDisclaimerTrigger:"aiChatDisclaimerTrigger",aiChatDisclaimerContent:"aiChatDisclaimerContent",aiChatDisclaimerText:"aiChatDisclaimerText",aiChatDisclaimerArrow:"aiChatDisclaimerArrow",aiChatExampleQuestions:"aiChatExampleQuestions",aiChatExampleQuestionsLabel:"aiChatExampleQuestionsLabel",aiChatExampleQuestionsList:"aiChatExampleQuestionsList",aiChatExampleQuestion:"aiChatExampleQuestion",aiChatExampleQuestionButton:"aiChatExampleQuestionButton",aiChatWorkflows:"aiChatWorkflows",aiChatWorkflowsLabel:"aiChatWorkflowsLabel",aiChatWorkflowsList:"aiChatWorkflowsList",aiChatWorkflow:"aiChatWorkflow",aiChatWorkflow__Icon:"aiChatWorkflow__Icon",aiChatMessages:"aiChatMessages",aiChatMessageWrapper:"aiChatMessageWrapper",aiChatMessageHeader:"aiChatMessageHeader",aiChatMessageLoading:"aiChatMessageLoading",aiChatMessageAvatar:"aiChatMessageAvatar",aiChatMessageAvatarFallback:"aiChatMessageAvatarFallback",aiChatMessageAvatarImage:"aiChatMessageAvatarImage",aiChatMessageAvatarContent:"aiChatMessageAvatarContent",aiChatMessageName:"aiChatMessageName",aiChatMessageContentWrapper:"aiChatMessageContentWrapper",aiChatMessageContent:"aiChatMessageContent",aiChatMessageAttachments:"aiChatMessageAttachments",aiChatMessageAttachments__List:"aiChatMessageAttachments__List",aiChatMessageAttachments__Item:"aiChatMessageAttachments__Item",aiChatMessageAttachments__ItemIcon:"aiChatMessageAttachments__ItemIcon",aiChatMessageAttachments__ItemTitle:"aiChatMessageAttachments__ItemTitle",aiChatMessageAttachmentsPreview:"aiChatMessageAttachmentsPreview",aiChatMessageAttachmentsPreview__Overlay:"aiChatMessageAttachmentsPreview__Overlay",aiChatMessageAttachmentsPreview__Content:"aiChatMessageAttachmentsPreview__Content",aiChatMessageAttachmentsPreview__Header:"aiChatMessageAttachmentsPreview__Header",aiChatMessageAttachmentsPreview__Close:"aiChatMessageAttachmentsPreview__Close",aiChatMessageAttachmentsPreview__Body:"aiChatMessageAttachmentsPreview__Body",aiChatMessage:"aiChatMessage",aiChatMessageActions:"aiChatMessageActions",aiChatMessageToolActions:"aiChatMessageToolActions",aiChatMessageToolAction:"aiChatMessageToolAction",aiChatMessageAction:"aiChatMessageAction",aiChatMessageSources:"aiChatMessageSources",aiChatMessageSources__Header:"aiChatMessageSources__Header",aiChatMessageSources__List:"aiChatMessageSources__List",aiChatMessageSourceItem:"aiChatMessageSourceItem",aiChatMessageSourceItem__Icon:"aiChatMessageSourceItem__Icon",aiChatMessageSourceItem__Breadcrumbs:"aiChatMessageSourceItem__Breadcrumbs",aiChatMessageSourceItem__Breadcrumb:"aiChatMessageSourceItem__Breadcrumb",aiChatMessageSourceItem__BreadcrumbIcon:"aiChatMessageSourceItem__BreadcrumbIcon",aiChatMessageSourceItem__Title:"aiChatMessageSourceItem__Title",aiChatMessageSourceItem__Tag:"aiChatMessageSourceItem__Tag",aiChatMessageSourceItem__Description:"aiChatMessageSourceItem__Description",aiChatMessageSourceItem__DescriptionPart:"aiChatMessageSourceItem__DescriptionPart",aiChatMessageSourceItem__Indicator:"aiChatMessageSourceItem__Indicator",aiChatFooter:"aiChatFooter",aiChatInput__Fieldset:"aiChatInput__Fieldset",aiChatInput__Group:"aiChatInput__Group",aiChatInput:"aiChatInput",aiChatInput__SendButton:"aiChatInput__SendButton",aiChatInput__SendButtonIcon:"aiChatInput__SendButtonIcon",aiChatAttachmentsBar:"aiChatAttachmentsBar",aiChatAttachmentsBar__List:"aiChatAttachmentsBar__List",aiChatAttachmentsBar__Attachment:"aiChatAttachmentsBar__Attachment",aiChatAttachmentsBar__AttachmentIcon:"aiChatAttachmentsBar__AttachmentIcon",aiChatAttachmentsBar__AttachmentTitle:"aiChatAttachmentsBar__AttachmentTitle",aiChatAttachmentsBar__AttachmentDelete:"aiChatAttachmentsBar__AttachmentDelete",aiChatAttachmentsBar__Actions:"aiChatAttachmentsBar__Actions",aiChatAttachmentsBar__InfoTip:"aiChatAttachmentsBar__InfoTip",aiChatAttachmentsBar__InfoTipIcon:"aiChatAttachmentsBar__InfoTipIcon",aiChatAttachmentsBar__InfoTipArrow:"aiChatAttachmentsBar__InfoTipArrow",aiChatAttachmentsBar__InfoTipText:"aiChatAttachmentsBar__InfoTipText",aiChatAttachmentsBar__Inputs:"aiChatAttachmentsBar__Inputs",aiChatAttachmentsBar__Input:"aiChatAttachmentsBar__Input",aiChatAttachmentsBar__InputIcon:"aiChatAttachmentsBar__InputIcon",aiChatAttachmentsBar__Modal:"aiChatAttachmentsBar__Modal",aiChatAttachmentsBar__ModalOverlay:"aiChatAttachmentsBar__ModalOverlay",aiChatAttachmentsBar__ModalContent:"aiChatAttachmentsBar__ModalContent",aiChatAttachmentsBar__ModalHeader:"aiChatAttachmentsBar__ModalHeader",aiChatAttachmentsBar__ModalClose:"aiChatAttachmentsBar__ModalClose",aiChatAttachmentsBar__ModalBody:"aiChatAttachmentsBar__ModalBody",aiChatAttachmentsBar__ModalHeading:"aiChatAttachmentsBar__ModalHeading",aiChatAttachmentsBar__ModalDescription:"aiChatAttachmentsBar__ModalDescription",aiChatAttachmentsBar__ModalHelp:"aiChatAttachmentsBar__ModalHelp",aiChatAttachmentsBar__Form:"aiChatAttachmentsBar__Form",aiChatAttachmentsBar__FormTitle:"aiChatAttachmentsBar__FormTitle",aiChatAttachmentsBar__FormTitleLabel:"aiChatAttachmentsBar__FormTitleLabel",aiChatAttachmentsBar__FormTitleInput:"aiChatAttachmentsBar__FormTitleInput",aiChatAttachmentsBar__FormTitleError:"aiChatAttachmentsBar__FormTitleError",aiChatAttachmentsBar__FormContent:"aiChatAttachmentsBar__FormContent",aiChatAttachmentsBar__FormContentLabel:"aiChatAttachmentsBar__FormContentLabel",aiChatAttachmentsBar__FormContentInput:"aiChatAttachmentsBar__FormContentInput",aiChatAttachmentsBar__FormContentError:"aiChatAttachmentsBar__FormContentError",aiChatAttachmentsBar__FormSubmitButton:"aiChatAttachmentsBar__FormSubmitButton",aiChatActionBar:"aiChatActionBar",aiChat__ChatActions:"aiChat__ChatActions",aiChat__ChatAction:"aiChat__ChatAction",aiChat__ChatActionLabel:"aiChat__ChatActionLabel",aiChat__ChatActionFeeback:"aiChat__ChatActionFeeback",aiChatHelpActions:"aiChatHelpActions",aiChatHelpAction:"aiChatHelpAction",aiChatHelpActions__Trigger:"aiChatHelpActions__Trigger",aiChatHelpActions__Menu:"aiChatHelpActions__Menu",aiChatHelpActions__MenuArrow:"aiChatHelpActions__MenuArrow",aiChatHelpActions__MenuItem:"aiChatHelpActions__MenuItem",aiChatHelpActions_MenuItemIcon:"aiChatHelpActions_MenuItemIcon",aiChatTagline__Container:"aiChatTagline__Container",aiChatTagline__Text:"aiChatTagline__Text",aiChatTagline__Logo:"aiChatTagline__Logo",aiChatTagline__BrandName:"aiChatTagline__BrandName",aiChatFeedbackModal:"aiChatFeedbackModal",aiChatFeedbackModal__Overlay:"aiChatFeedbackModal__Overlay",aiChatFeedbackModal__Content:"aiChatFeedbackModal__Content",aiChatFeedbackModal__Header:"aiChatFeedbackModal__Header",aiChatFeedbackModal__Close:"aiChatFeedbackModal__Close",aiChatFeedbackModal__Body:"aiChatFeedbackModal__Body",aiChatFeedbackForm:"aiChatFeedbackForm",aiChatFeedbackItem:"aiChatFeedbackItem",aiChatFeedbackItem__Checkbox:"aiChatFeedbackItem__Checkbox",aiChatFeedbackItem__CheckboxIndicator:"aiChatFeedbackItem__CheckboxIndicator",aiChatFeedbackItem__Label:"aiChatFeedbackItem__Label",aiChatFeedbackItem__Description:"aiChatFeedbackItem__Description",aiChatFeedbackForm__SubmitButton:"aiChatFeedbackForm__SubmitButton",aiChatForm__Wrapper:"aiChatForm__Wrapper",aiChatForm:"aiChatForm",aiChatForm__Close:"aiChatForm__Close",aiChatForm__Header:"aiChatForm__Header",aiChatForm__Heading:"aiChatForm__Heading",aiChatForm__Description:"aiChatForm__Description",aiChatForm__Content:"aiChatForm__Content",aiChatForm__Field:"aiChatForm__Field",aiChatForm__FieldLabel:"aiChatForm__FieldLabel",aiChatForm__FieldText:"aiChatForm__FieldText",aiChatForm__FieldEmail:"aiChatForm__FieldEmail",aiChatForm__FieldFile:"aiChatForm__FieldFile",aiChatForm__FieldTextArea:"aiChatForm__FieldTextArea",aiChatForm__FieldCheckbox:"aiChatForm__FieldCheckbox",aiChatForm__FieldCheckboxIndicator:"aiChatForm__FieldCheckboxIndicator",aiChatForm__FieldSelect:"aiChatForm__FieldSelect",aiChatForm__FieldSelect__Trigger:"aiChatForm__FieldSelect__Trigger",aiChatForm__FieldSelect__Value:"aiChatForm__FieldSelect__Value",aiChatForm__FieldSelect__Icon:"aiChatForm__FieldSelect__Icon",aiChatForm__FieldSelect__Content:"aiChatForm__FieldSelect__Content",aiChatForm__FieldSelect__Viewport:"aiChatForm__FieldSelect__Viewport",aiChatForm__FieldSelect__Item:"aiChatForm__FieldSelect__Item",aiChatForm__FieldSelect__ItemIndicator:"aiChatForm__FieldSelect__ItemIndicator",aiChatForm__FieldSelect__ItemText:"aiChatForm__FieldSelect__ItemText",aiChatForm__FieldError:"aiChatForm__FieldError",aiChatForm__Error:"aiChatForm__Error",aiChatForm__Footer:"aiChatForm__Footer",aiChatForm__Cancel:"aiChatForm__Cancel",aiChatForm__Submit:"aiChatForm__Submit",aiChatForm__Success:"aiChatForm__Success",aiChatForm__SuccessHeading:"aiChatForm__SuccessHeading",aiChatForm__SuccessMessage:"aiChatForm__SuccessMessage",aiChatForm__SuccessButton:"aiChatForm__SuccessButton",aiChatLink:"aiChatLink"},i={aiSearchWrapper:"aiSearchWrapper",aiSearchRoot:"aiSearchRoot",aiSearchContent:"aiSearchContent",aiSearchInputGroup:"aiSearchInputGroup",aiSearchInputIcon:"aiSearchInputIcon",aiSearchInput:"aiSearchInput",aiSearchLoading:"aiSearchLoading",aiAskAITrigger:"aiAskAITrigger",aiAskAITrigger__Icon:"aiAskAITrigger__Icon",aiAskAITrigger__Label:"aiAskAITrigger__Label",aiAskAITrigger__Indicator:"aiAskAITrigger__Indicator",aiSearchResults:"aiSearchResults",aiSearchResults__Loading:"aiSearchResults__Loading",aiSearchResults__Empty:"aiSearchResults__Empty",aiSearchResults__TabList:"aiSearchResults__TabList",aiSearchResults__Tab:"aiSearchResults__Tab",aiSearchResults__ScrollArea:"aiSearchResults__ScrollArea",aiSearchResults__ScrollAreaViewport:"aiSearchResults__ScrollAreaViewport",aiSearchResults__List:"aiSearchResults__List",aiSearchResults__Item:"aiSearchResults__Item",aiSearchResults__ItemIcon:"aiSearchResults__ItemIcon",aiSearchResults__ItemBreadcrumbs:"aiSearchResults__ItemBreadcrumbs",aiSearchResults__ItemBreadcrumb:"aiSearchResults__ItemBreadcrumb",aiSearchResults__ItemBreadcrumbIcon:"aiSearchResults__ItemBreadcrumbIcon",aiSearchResults__ItemTitle:"aiSearchResults__ItemTitle",aiSearchResults__ItemTag:"aiSearchResults__ItemTag",aiSearchResults__ItemDescription:"aiSearchResults__ItemDescription",aiSearchResults__ItemDescriptionPart:"aiSearchResults__ItemDescriptionPart",aiSearchResults__ItemIndicator:"aiSearchResults__ItemIndicator",aiSearchResults__ScrollAreaScrollbar:"aiSearchResults__ScrollAreaScrollbar",aiSearchResults__ScrollAreaThumb:"aiSearchResults__ScrollAreaThumb",aiSearchResults__ScrollAreaCorner:"aiSearchResults__ScrollAreaCorner",aiSearchFooter:"aiSearchFooter",aiSearchTagline__Container:"aiSearchTagline__Container",aiSearchTagline__Text:"aiSearchTagline__Text",aiSearchTagline__Logo:"aiSearchTagline__Logo",aiSearchTagline__BrandName:"aiSearchTagline__BrandName"},_={modal:"modal",modal__Overlay:"modal__Overlay",modal__Content:"modal__Content",modal__Close:"modal__Close"},o={chatButton__Text:"chatButton__Text",chatButton__Button:"chatButton__Button",chatButton__Container:"chatButton__Container",chatButton__AvatarImage:"chatButton__AvatarImage",chatButton__AvatarContent:"chatButton__AvatarContent"},r={intelligentForm__Root:"intelligentForm__Root",intelligentForm__Heading:"intelligentForm__Heading",intelligentForm__Content:"intelligentForm__Content",intelligentForm__Content__ScrollArea:"intelligentForm__Content__ScrollArea",intelligentForm__Content__ScrollAreaViewport:"intelligentForm__Content__ScrollAreaViewport",intelligentForm__Content__ScrollAreaScrollbar:"intelligentForm__Content__ScrollAreaScrollbar",intelligentForm__Content__ScrollAreaThumb:"intelligentForm__Content__ScrollAreaThumb",intelligentForm__Content__ScrollAreaCorner:"intelligentForm__Content__ScrollAreaCorner",intelligentForm__Success:"intelligentForm__Success",intelligentForm__SuccessIcon:"intelligentForm__SuccessIcon",intelligentForm__SuccessHeading:"intelligentForm__SuccessHeading",intelligentForm__SuccessMessage:"intelligentForm__SuccessMessage",intelligentForm__PrimaryForm:"intelligentForm__PrimaryForm",intelligentForm__PrimaryForm__Description:"intelligentForm__PrimaryForm__Description",intelligentForm__PrimaryFormFields:"intelligentForm__PrimaryFormFields",intelligentForm__PrimaryFormSubmit:"intelligentForm__PrimaryFormSubmit",intelligentForm__Field:"intelligentForm__Field",intelligentForm__FieldLabel:"intelligentForm__FieldLabel",intelligentForm__FieldText:"intelligentForm__FieldText",intelligentForm__FieldEmail:"intelligentForm__FieldEmail",intelligentForm__FieldFile:"intelligentForm__FieldFile",intelligentForm__FieldTextArea:"intelligentForm__FieldTextArea",intelligentForm__FieldCheckbox:"intelligentForm__FieldCheckbox",intelligentForm__FieldCheckboxIndicator:"intelligentForm__FieldCheckboxIndicator",intelligentForm__FieldSelect:"intelligentForm__FieldSelect",intelligentForm__FieldSelect__Trigger:"intelligentForm__FieldSelect__Trigger",intelligentForm__FieldSelect__Value:"intelligentForm__FieldSelect__Value",intelligentForm__FieldSelect__Icon:"intelligentForm__FieldSelect__Icon",intelligentForm__FieldSelect__Content:"intelligentForm__FieldSelect__Content",intelligentForm__FieldSelect__Viewport:"intelligentForm__FieldSelect__Viewport",intelligentForm__FieldSelect__Item:"intelligentForm__FieldSelect__Item",intelligentForm__FieldSelect__ItemIndicator:"intelligentForm__FieldSelect__ItemIndicator",intelligentForm__FieldSelect__ItemText:"intelligentForm__FieldSelect__ItemText",intelligentForm__FieldError:"intelligentForm__FieldError",intelligentForm__BotHeading:"intelligentForm__BotHeading",intelligentForm__BotHeading__Icon:"intelligentForm__BotHeading__Icon",intelligentForm__BotHeading__Name:"intelligentForm__BotHeading__Name",intelligentForm__Loading:"intelligentForm__Loading",intelligentForm__ConfidentResponse:"intelligentForm__ConfidentResponse",intelligentForm__ConfidentAnswer:"intelligentForm__ConfidentAnswer",intelligentForm__ConfidentResponseButton:"intelligentForm__ConfidentResponseButton",intelligentForm__ConfidentResponseButton__Icon:"intelligentForm__ConfidentResponseButton__Icon",intelligentForm__ConfidentResponseButton__Label:"intelligentForm__ConfidentResponseButton__Label",intelligentForm__SecondaryForm:"intelligentForm__SecondaryForm",intelligentForm__SecondaryForm__Description:"intelligentForm__SecondaryForm__Description",intelligentForm__SecondaryFormFields:"intelligentForm__SecondaryFormFields",intelligentForm__SecondaryFormSubmit:"intelligentForm__SecondaryFormSubmit",intelligentForm__Error:"intelligentForm__Error",intelligentForm__Sources:"intelligentForm__Sources",intelligentForm__SourcesCaption:"intelligentForm__SourcesCaption",intelligentForm__SourcesList:"intelligentForm__SourcesList",intelligentForm__Source:"intelligentForm__Source",intelligentForm__SourceIcon:"intelligentForm__SourceIcon",intelligentForm__SourceTitle:"intelligentForm__SourceTitle"},n={searchBar__Container:"searchBar__Container",searchBar__Button:"searchBar__Button",searchBar__ContentWrapper:"searchBar__ContentWrapper",searchBar__Text:"searchBar__Text",searchBar__Icon:"searchBar__Icon",searchBar__KbdWrapper:"searchBar__KbdWrapper",searchBar__CmdIcon:"searchBar__CmdIcon",searchBar__Ctrl:"searchBar__Ctrl",searchBar__KbdShortcutKey:"searchBar__KbdShortcutKey"},l={...e,...t,...i,..._,...o,...n,...r,...a};exports.SearchBarComponentIds=n;exports.aiChatComponentIds=t;exports.aiSearchComponentIds=i;exports.chatButtonComponentIds=o;exports.componentIDs=l;exports.intelligentFormComponentIds=r;exports.markDownComponentIds=e;exports.miscellanousComponentIds=a;exports.modalComponentIds=_;
|
|
@@ -48,11 +48,11 @@ const a = {
|
|
|
48
48
|
aiChatDisclaimerContent: "aiChatDisclaimerContent",
|
|
49
49
|
aiChatDisclaimerText: "aiChatDisclaimerText",
|
|
50
50
|
aiChatDisclaimerArrow: "aiChatDisclaimerArrow",
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
aiChatExampleQuestions: "aiChatExampleQuestions",
|
|
52
|
+
aiChatExampleQuestionsLabel: "aiChatExampleQuestionsLabel",
|
|
53
|
+
aiChatExampleQuestionsList: "aiChatExampleQuestionsList",
|
|
54
|
+
aiChatExampleQuestion: "aiChatExampleQuestion",
|
|
55
|
+
aiChatExampleQuestionButton: "aiChatExampleQuestionButton",
|
|
56
56
|
aiChatWorkflows: "aiChatWorkflows",
|
|
57
57
|
aiChatWorkflowsLabel: "aiChatWorkflowsLabel",
|
|
58
58
|
aiChatWorkflowsList: "aiChatWorkflowsList",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function i(r,s,o,n,a){const e=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",...n},signal:a,body:JSON.stringify({query:s,variables:o})});if(!e.ok)throw new Error(`Network response was not OK (status: ${e.status})`);const t=await e.json();if(t.errors?.length)throw new Error(t.errors[0].message);return t.data}exports.graphqlRequest=i;
|