@inkeep/agents-ui 0.15.0 → 0.15.2

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.
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),A=require("../../primitives/providers/base-events-provider.cjs"),G=require("../../primitives/providers/config-provider.cjs"),K=require("../../primitives/providers/message-provider.cjs"),r=require("../../primitives/components/embedded-chat.cjs"),O=require("../../primitives/components/embedded-chat/chat-provider.cjs"),B=require("merge-anything"),F=require("../utils.cjs"),J=require("./ui/markdown-styles.cjs"),z=require("../../primitives/components/embedded-chat/use-stream-processor.cjs"),H=require("./data-summary-group.cjs"),i=require("react"),Q=require("./embedded-chat.cjs"),k=require("lucide-react"),U=()=>e.jsx("div",{className:"flex space-x-1",children:[0,1,2].map(s=>e.jsx("span",{className:"animate-bounce-dot opacity-30",style:{animationDelay:`${s*.2}s`},children:"."},s))}),w=({name:s,Icon:n,props:y,componentType:p})=>e.jsxs("div",{className:"border rounded-lg bg-gray-50 dark:bg-gray-dark-800 mb-3",children:[e.jsxs("div",{className:"flex justify-between px-4 py-2 text-xs",children:[e.jsxs("div",{className:"font-medium flex items-center gap-2",children:[e.jsx(n,{className:"w-3 h-3 text-gray-600 dark:text-white-alpha-600"}),e.jsx("span",{children:s})]}),e.jsx("div",{className:"flex items-center px-1.5 py-0.5 rounded-md text-2xs uppercase tracking-wider bg-gray-200 dark:bg-white-alpha-200 font-medium text-gray-700 dark:text-white-alpha-700 font-mono",children:p})]}),e.jsx("pre",{className:"whitespace-pre-wrap text-xs text-gray-700 dark:text-white-alpha-700 font-mono px-4 py-2",children:JSON.stringify(y,null,2)})]}),V=({name:s,props:n})=>e.jsx(w,{name:s,Icon:k.ComponentIcon,props:n,componentType:"component"}),W=({name:s,props:n})=>e.jsx(w,{name:s,Icon:k.Library,props:n,componentType:"artifact"}),X=({className:s,componentStyles:n,children:y,isLast:p,...S})=>{const{message:c}=K.useMessage(),{logEvent:u}=A.useBaseEvents(),{conversationId:C,isStreaming:D,isLoading:q,setError:M}=O.useChat(),{aiChatSettings:{components:N,artifacts:E}}=G.useInkeepConfig(),L=(D||q)&&p&&c.role==="assistant",{processedParts:$,summaryTimings:_,shouldShowInitialLoading:I,shouldShowStreamDelayLoading:T}=z.useStreamProcessor(c.parts,L,M),f=i.useMemo(()=>c.parts.filter(t=>t.type==="data-artifact"&&t.data?.type?.toLowerCase()==="citation"),[c.parts]),b=i.useMemo(()=>B.merge(J.markdownStyles,n??{}),[n]),j=i.useCallback((t,a)=>{u({eventName:"assistant_message_inline_link_opened",properties:{title:a?.toString(),url:t}})},[u]),v=i.useCallback((t,a)=>{u({eventName:"assistant_code_block_copied",properties:{conversationId:C,language:t,code:a}})},[u,C]),P=i.useCallback(t=>e.jsx(r.EmbeddedChatPrimitiveMarkdown,{text:t,componentStyles:b,onLinkClick:j,onCodeCopy:v,artifacts:f}),[b,j,v,f]),R=i.useMemo(()=>F.cn("data-[role=user]:whitespace-pre-wrap mb-3 data-[role=user]:mb-0 [&[data-role=user]>p]:mb-0 max-w-full",s),[s]);return e.jsxs(e.Fragment,{children:[$.map((t,a)=>{const m={"data-role":c.role,"data-type":t?.type==="data-component"?t.data.type:t?.type,...S,className:R};switch(t?.type){case"text":return e.jsx(r.PrimitiveMessagePart,{...m,children:P(t.text||"")},a);case"data-component":{const{type:d}=t.data;switch(d){case"text":return e.jsx("div",{...m,children:P(t.data.text||"")},a);default:{const g=t.data,{name:o,props:x}=g,l=N?.[o],h=l?r.EmbeddedChatPrimitiveDynamicComponent:V;return e.jsx(r.PrimitiveMessagePart,{...m,children:e.jsx(h,{name:o,props:x,componentDef:l})},`${o}-${a}`)}}}case"data-artifact":{const d=t.data,{name:g,type:o,artifactSummary:x}=d,l=E?.[o],h=l?r.EmbeddedChatPrimitiveDynamicComponent:W;return e.jsx(r.PrimitiveMessagePart,{...m,children:e.jsx(h,{name:o,props:x,componentDef:l})},`${g}-${a}`)}case"summary-group":{const d=_.get(t.groupKey)||{isCompleted:!1};return e.jsx(r.PrimitiveMessagePart,{...m,children:e.jsx(H.DataSummaryGroup,{summaries:t.summaries||[],isCompleted:d.isCompleted})},`${t.groupKey}-${a}`)}default:return null}}),I&&e.jsx(Q.MessageLoading,{}),T&&e.jsx(U,{})]})};exports.EmbeddedChatMessagePart=X;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),G=require("../../primitives/providers/base-events-provider.cjs"),K=require("../../primitives/providers/config-provider.cjs"),O=require("../../primitives/providers/message-provider.cjs"),r=require("../../primitives/components/embedded-chat.cjs"),B=require("../../primitives/components/embedded-chat/chat-provider.cjs"),F=require("merge-anything"),J=require("../utils.cjs"),U=require("./ui/markdown-styles.cjs"),z=require("../../primitives/components/embedded-chat/use-stream-processor.cjs"),H=require("./data-summary-group.cjs"),c=require("react"),Q=require("./embedded-chat.cjs"),k=require("lucide-react"),V=()=>e.jsx("div",{className:"flex space-x-1",children:[0,1,2].map(s=>e.jsx("span",{className:"animate-bounce-dot opacity-30",style:{animationDelay:`${s*.2}s`},children:"."},s))}),w=({name:s,Icon:n,props:y,componentType:p})=>e.jsxs("div",{className:"border rounded-lg bg-gray-50 dark:bg-gray-dark-800 mb-3",children:[e.jsxs("div",{className:"flex justify-between px-4 py-2 text-xs",children:[e.jsxs("div",{className:"font-medium flex items-center gap-2",children:[e.jsx(n,{className:"w-3 h-3 text-gray-600 dark:text-white-alpha-600"}),e.jsx("span",{children:s})]}),e.jsx("div",{className:"flex items-center px-1.5 py-0.5 rounded-md text-2xs uppercase tracking-wider bg-gray-200 dark:bg-white-alpha-200 font-medium text-gray-700 dark:text-white-alpha-700 font-mono",children:p})]}),e.jsx("pre",{className:"whitespace-pre-wrap text-xs text-gray-700 dark:text-white-alpha-700 font-mono px-4 py-2",children:JSON.stringify(y,null,2)})]}),W=({name:s,props:n})=>e.jsx(w,{name:s,Icon:k.ComponentIcon,props:n,componentType:"component"}),X=({name:s,props:n})=>e.jsx(w,{name:s,Icon:k.Library,props:n,componentType:"artifact"}),Y=({className:s,componentStyles:n,children:y,isLast:p,...S})=>{const{message:o}=O.useMessage(),{logEvent:u}=G.useBaseEvents(),{conversationId:C,isStreaming:D,isLoading:M,setError:q}=B.useChat(),{aiChatSettings:{components:N,artifacts:E}}=K.useInkeepConfig(),L=o.role==="user",$=(D||M)&&p&&o.role==="assistant",{processedParts:_,summaryTimings:I,shouldShowInitialLoading:T,shouldShowStreamDelayLoading:R}=z.useStreamProcessor(o.parts,$,q),f=c.useMemo(()=>o.parts.filter(t=>t.type==="data-artifact"&&t.data?.type?.toLowerCase()==="citation"),[o.parts]),b=c.useMemo(()=>F.merge(U.markdownStyles,n??{}),[n]),j=c.useCallback((t,a)=>{u({eventName:"assistant_message_inline_link_opened",properties:{title:a?.toString(),url:t}})},[u]),v=c.useCallback((t,a)=>{u({eventName:"assistant_code_block_copied",properties:{conversationId:C,language:t,code:a}})},[u,C]),P=c.useCallback(t=>e.jsx(r.EmbeddedChatPrimitiveMarkdown,{text:t,componentStyles:b,onLinkClick:j,onCodeCopy:v,artifacts:f}),[b,j,v,f]),A=c.useMemo(()=>J.cn("data-[role=user]:whitespace-pre-wrap mb-3 data-[role=user]:mb-0 [&[data-role=user]>p]:mb-0 max-w-full",s),[s]);return e.jsxs(e.Fragment,{children:[_.map((t,a)=>{const m={"data-role":o.role,"data-type":t?.type==="data-component"?t.data.type:t?.type,...S,className:A};switch(t?.type){case"text":return e.jsx(r.PrimitiveMessagePart,{...m,children:L?t.text:P(t.text||"")},a);case"data-component":{const{type:d}=t.data;switch(d){case"text":return e.jsx("div",{...m,children:P(t.data.text||"")},a);default:{const g=t.data,{name:i,props:x}=g,l=N?.[i],h=l?r.EmbeddedChatPrimitiveDynamicComponent:W;return e.jsx(r.PrimitiveMessagePart,{...m,children:e.jsx(h,{name:i,props:x,componentDef:l})},`${i}-${a}`)}}}case"data-artifact":{const d=t.data,{name:g,type:i,artifactSummary:x}=d,l=E?.[i],h=l?r.EmbeddedChatPrimitiveDynamicComponent:X;return e.jsx(r.PrimitiveMessagePart,{...m,children:e.jsx(h,{name:i,props:x,componentDef:l})},`${g}-${a}`)}case"summary-group":{const d=I.get(t.groupKey)||{isCompleted:!1};return e.jsx(r.PrimitiveMessagePart,{...m,children:e.jsx(H.DataSummaryGroup,{summaries:t.summaries||[],isCompleted:d.isCompleted})},`${t.groupKey}-${a}`)}default:return null}}),T&&e.jsx(Q.MessageLoading,{}),R&&e.jsx(V,{})]})};exports.EmbeddedChatMessagePart=Y;
@@ -1,19 +1,19 @@
1
1
  "use client";
2
- import { jsx as t, jsxs as l, Fragment as G } from "react/jsx-runtime";
3
- import { useBaseEvents as J } from "../../primitives/providers/base-events-provider.js";
4
- import { useInkeepConfig as O } from "../../primitives/providers/config-provider.js";
2
+ import { jsx as t, jsxs as l, Fragment as J } from "react/jsx-runtime";
3
+ import { useBaseEvents as O } from "../../primitives/providers/base-events-provider.js";
4
+ import { useInkeepConfig as U } from "../../primitives/providers/config-provider.js";
5
5
  import { useMessage as q } from "../../primitives/providers/message-provider.js";
6
6
  import { EmbeddedChatPrimitiveMarkdown as z, PrimitiveMessagePart as d, EmbeddedChatPrimitiveDynamicComponent as S } from "../../primitives/components/embedded-chat.js";
7
7
  import { useChat as H } from "../../primitives/components/embedded-chat/chat-provider.js";
8
8
  import { merge as Q } from "merge-anything";
9
9
  import { cn as R } from "../utils.js";
10
- import { markdownStyles as U } from "./ui/markdown-styles.js";
11
- import { useStreamProcessor as V } from "../../primitives/components/embedded-chat/use-stream-processor.js";
12
- import { DataSummaryGroup as W } from "./data-summary-group.js";
10
+ import { markdownStyles as V } from "./ui/markdown-styles.js";
11
+ import { useStreamProcessor as W } from "../../primitives/components/embedded-chat/use-stream-processor.js";
12
+ import { DataSummaryGroup as X } from "./data-summary-group.js";
13
13
  import { useMemo as h, useCallback as y } from "react";
14
- import { MessageLoading as X } from "./embedded-chat.js";
15
- import { Library as Y, ComponentIcon as Z } from "lucide-react";
16
- const ee = () => /* @__PURE__ */ t("div", { className: "flex space-x-1", children: [0, 1, 2].map((a) => /* @__PURE__ */ t(
14
+ import { MessageLoading as Y } from "./embedded-chat.js";
15
+ import { Library as Z, ComponentIcon as ee } from "lucide-react";
16
+ const te = () => /* @__PURE__ */ t("div", { className: "flex space-x-1", children: [0, 1, 2].map((a) => /* @__PURE__ */ t(
17
17
  "span",
18
18
  {
19
19
  className: "animate-bounce-dot opacity-30",
@@ -32,22 +32,22 @@ const ee = () => /* @__PURE__ */ t("div", { className: "flex space-x-1", childre
32
32
  /* @__PURE__ */ t("div", { className: "flex items-center px-1.5 py-0.5 rounded-md text-2xs uppercase tracking-wider bg-gray-200 dark:bg-white-alpha-200 font-medium text-gray-700 dark:text-white-alpha-700 font-mono", children: u })
33
33
  ] }),
34
34
  /* @__PURE__ */ t("pre", { className: "whitespace-pre-wrap text-xs text-gray-700 dark:text-white-alpha-700 font-mono px-4 py-2", children: JSON.stringify(C, null, 2) })
35
- ] }), te = ({ name: a, props: n }) => /* @__PURE__ */ t(N, { name: a, Icon: Z, props: n, componentType: "component" }), ae = ({ name: a, props: n }) => /* @__PURE__ */ t(N, { name: a, Icon: Y, props: n, componentType: "artifact" }), ye = ({
35
+ ] }), ae = ({ name: a, props: n }) => /* @__PURE__ */ t(N, { name: a, Icon: ee, props: n, componentType: "component" }), oe = ({ name: a, props: n }) => /* @__PURE__ */ t(N, { name: a, Icon: Z, props: n, componentType: "artifact" }), Ce = ({
36
36
  className: a,
37
37
  componentStyles: n,
38
38
  children: C,
39
39
  isLast: u,
40
40
  ...L
41
41
  }) => {
42
- const { message: s } = q(), { logEvent: p } = J(), { conversationId: x, isStreaming: M, isLoading: P, setError: E } = H(), {
42
+ const { message: s } = q(), { logEvent: p } = O(), { conversationId: x, isStreaming: M, isLoading: P, setError: E } = H(), {
43
43
  aiChatSettings: { components: _, artifacts: $ }
44
- } = O(), I = (M || P) && u && s.role === "assistant", { processedParts: T, summaryTimings: j, shouldShowInitialLoading: K, shouldShowStreamDelayLoading: A } = V(s.parts, I, E), w = h(
44
+ } = U(), I = s.role === "user", T = (M || P) && u && s.role === "assistant", { processedParts: j, summaryTimings: K, shouldShowInitialLoading: A, shouldShowStreamDelayLoading: B } = W(s.parts, T, E), w = h(
45
45
  () => s.parts.filter(
46
46
  (e) => e.type === "data-artifact" && e.data?.type?.toLowerCase() === "citation"
47
47
  ),
48
48
  [s.parts]
49
49
  ), b = h(
50
- () => Q(U, n ?? {}),
50
+ () => Q(V, n ?? {}),
51
51
  [n]
52
52
  ), k = y(
53
53
  (e, o) => {
@@ -84,48 +84,48 @@ const ee = () => /* @__PURE__ */ t("div", { className: "flex space-x-1", childre
84
84
  }
85
85
  ),
86
86
  [b, k, D, w]
87
- ), B = h(
87
+ ), F = h(
88
88
  () => R(
89
89
  "data-[role=user]:whitespace-pre-wrap mb-3 data-[role=user]:mb-0 [&[data-role=user]>p]:mb-0 max-w-full",
90
90
  a
91
91
  ),
92
92
  [a]
93
93
  );
94
- return /* @__PURE__ */ l(G, { children: [
95
- T.map((e, o) => {
96
- const m = {
94
+ return /* @__PURE__ */ l(J, { children: [
95
+ j.map((e, o) => {
96
+ const i = {
97
97
  "data-role": s.role,
98
98
  "data-type": e?.type === "data-component" ? e.data.type : e?.type,
99
99
  ...L,
100
- className: B
100
+ className: F
101
101
  };
102
102
  switch (e?.type) {
103
103
  case "text":
104
- return /* @__PURE__ */ t(d, { ...m, children: v(e.text || "") }, o);
104
+ return /* @__PURE__ */ t(d, { ...i, children: I ? e.text : v(e.text || "") }, o);
105
105
  case "data-component": {
106
- const { type: i } = e.data;
107
- switch (i) {
106
+ const { type: m } = e.data;
107
+ switch (m) {
108
108
  case "text":
109
- return /* @__PURE__ */ t("div", { ...m, children: v(e.data.text || "") }, o);
109
+ return /* @__PURE__ */ t("div", { ...i, children: v(e.data.text || "") }, o);
110
110
  default: {
111
- const f = e.data, { name: r, props: g } = f, c = _?.[r];
112
- return /* @__PURE__ */ t(d, { ...m, children: /* @__PURE__ */ t(c ? S : te, { name: r, props: g, componentDef: c }) }, `${r}-${o}`);
111
+ const g = e.data, { name: r, props: f } = g, c = _?.[r];
112
+ return /* @__PURE__ */ t(d, { ...i, children: /* @__PURE__ */ t(c ? S : ae, { name: r, props: f, componentDef: c }) }, `${r}-${o}`);
113
113
  }
114
114
  }
115
115
  }
116
116
  case "data-artifact": {
117
- const i = e.data, { name: f, type: r, artifactSummary: g } = i, c = $?.[r];
118
- return /* @__PURE__ */ t(d, { ...m, children: /* @__PURE__ */ t(c ? S : ae, { name: r, props: g, componentDef: c }) }, `${f}-${o}`);
117
+ const m = e.data, { name: g, type: r, artifactSummary: f } = m, c = $?.[r];
118
+ return /* @__PURE__ */ t(d, { ...i, children: /* @__PURE__ */ t(c ? S : oe, { name: r, props: f, componentDef: c }) }, `${g}-${o}`);
119
119
  }
120
120
  case "summary-group": {
121
- const i = j.get(e.groupKey) || {
121
+ const m = K.get(e.groupKey) || {
122
122
  isCompleted: !1
123
123
  };
124
- return /* @__PURE__ */ t(d, { ...m, children: /* @__PURE__ */ t(
125
- W,
124
+ return /* @__PURE__ */ t(d, { ...i, children: /* @__PURE__ */ t(
125
+ X,
126
126
  {
127
127
  summaries: e.summaries || [],
128
- isCompleted: i.isCompleted
128
+ isCompleted: m.isCompleted
129
129
  }
130
130
  ) }, `${e.groupKey}-${o}`);
131
131
  }
@@ -133,10 +133,10 @@ const ee = () => /* @__PURE__ */ t("div", { className: "flex space-x-1", childre
133
133
  return null;
134
134
  }
135
135
  }),
136
- K && /* @__PURE__ */ t(X, {}),
137
- A && /* @__PURE__ */ t(ee, {})
136
+ A && /* @__PURE__ */ t(Y, {}),
137
+ B && /* @__PURE__ */ t(te, {})
138
138
  ] });
139
139
  };
140
140
  export {
141
- ye as EmbeddedChatMessagePart
141
+ Ce as EmbeddedChatMessagePart
142
142
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./components/embedded-chat.cjs"),F=require("./components/sidebar-chat.cjs"),y=require("./components/chat-bubble.cjs"),w=require("./components/embedded-search.cjs"),A=require("./components/modal.cjs"),f=require("./components/chat-button.cjs"),R=require("./components/searchbar.cjs"),E=require("./components/shadow.cjs"),T=require("./components/loading-indicator.cjs"),O=require("./components/ui/recipes/widget-toggle.cjs"),W=require("./components/message.cjs"),x=require("./components/data-summary-group.cjs"),c=require("../primitives/providers/attachment-item-provider.cjs"),C=require("../primitives/providers/attachments-bar-provider.cjs"),h=require("../primitives/providers/base-events-provider.cjs"),n=require("../primitives/providers/chat-form-provider.cjs"),i=require("../primitives/providers/config-provider.cjs"),l=require("../primitives/providers/feedback-item-provider.cjs"),p=require("../primitives/providers/feedback-provider.cjs"),P=require("../primitives/providers/form-field-provider.cjs"),d=require("../primitives/providers/help-menu-provider.cjs"),v=require("../primitives/providers/markdown-provider.cjs"),b=require("../primitives/providers/message-attachments-provider.cjs"),u=require("../primitives/providers/message-provider.cjs"),D=require("../primitives/providers/root-provider.cjs"),I=require("../primitives/providers/source-item-provider.cjs"),$=require("../primitives/providers/theme-provider.cjs"),S=require("../primitives/providers/widget-provider.cjs"),t=require("../primitives/providers/sidebar-chat-provider.cjs"),a=require("../primitives/providers/chat-bubble-provider.cjs"),q=require("../primitives/components/factory.cjs"),z=require("../primitives/components/embedded-chat.cjs"),H=require("../primitives/components/sidebar-chat/index.cjs"),g=require("../primitives/components/embedded-chat/chat-provider.cjs"),L=require("../primitives/components/embedded-search.cjs"),m=require("../primitives/components/embedded-search/search-provider.cjs"),j=require("../primitives/components/modal.cjs"),B=require("../primitives/components/modal/modal-provider.cjs"),G=require("../primitives/components/chat-button.cjs"),Q=require("../primitives/components/searchbar.cjs"),U=require("../primitives/components/chat-bubble/index.cjs"),K=require("../primitives/hooks/use-boolean.cjs"),N=require("../primitives/hooks/use-component-classnames.cjs"),J=require("../primitives/hooks/use-container-size.cjs"),V=require("../primitives/hooks/use-inkeep-open-state.cjs"),X=require("../primitives/hooks/use-copy-to-clipboard.cjs"),Y=require("../primitives/hooks/use-instant-update.cjs"),Z=require("../primitives/hooks/use-is-mounted.cjs"),_=require("../primitives/hooks/use-media-query.cjs"),ee=require("../primitives/hooks/use-resize-observer.cjs"),re=require("../primitives/hooks/use-scrolling-fades.cjs"),oe=require("../primitives/hooks/use-settle-action.cjs"),te=require("../primitives/hooks/use-simple-scroll.cjs"),o=require("../primitives/utils/misc.cjs"),r=require("../primitives/utils/component-ids.cjs"),M=require("../primitives/utils/compose-refs.cjs"),ae=require("../primitives/utils/merge-props.cjs"),se=require("../primitives/atoms/portal.cjs"),ne=require("../primitives/atoms/icons/custom-icon.cjs"),ie=require("../primitives/atoms/icons/built-in-icon-renderer.cjs"),de=require("../primitives/atoms/portal-with-theme.cjs"),e=require("../primitives/atoms/cmdk/index.cjs"),ue=require("../primitives/atoms/error-boundary.cjs"),s=require("../primitives/atoms/shadow/context.cjs");exports.EmbeddedChat=k;exports.SidebarChat=F;exports.ChatBubble=y;exports.EmbeddedSearch=w;exports.Modal=A;exports.ChatButton=f;exports.SearchBar=R;exports.Shadow=E.Shadow;exports.LoadingIndicator=T.LoadingIndicator;exports.widgetToggle=O.widgetToggle;exports.EmbeddedChatMessagePart=W.EmbeddedChatMessagePart;exports.DataSummaryGroup=x.DataSummaryGroup;exports.AttachmentItemProvider=c.AttachmentItemProvider;exports.useAttachmentItem=c.useAttachmentItem;exports.AttachmentsBarProvider=C.AttachmentsBarProvider;exports.useAttachmentsBar=C.useAttachmentsBar;exports.BaseEventsProvider=h.BaseEventsProvider;exports.useBaseEvents=h.useBaseEvents;exports.ChatFormProvider=n.ChatFormProvider;exports.useChatForm=n.useChatForm;exports.useChatFormState=n.useChatFormState;exports.InkeepConfigProvider=i.InkeepConfigProvider;exports.WebWidgetInteractionType=i.WebWidgetInteractionType;exports.useInkeepConfig=i.useInkeepConfig;exports.FeedbackItemProvider=l.FeedbackItemProvider;exports.useFeedbackItem=l.useFeedbackItem;exports.FeedbackProvider=p.FeedbackProvider;exports.useMessageFeedback=p.useMessageFeedback;exports.FormFieldProvider=P.FormFieldProvider;exports.useFormField=P.useFormField;exports.HelpMenuProvider=d.HelpMenuProvider;exports.useHelpMenu=d.useHelpMenu;exports.useHelpMenuState=d.useHelpMenuState;exports.ChatMarkdownProvider=v.ChatMarkdownProvider;exports.useChatMarkdown=v.useChatMarkdown;exports.MessageAttachmentsProvider=b.MessageAttachmentsProvider;exports.useMessageAttachments=b.useMessageAttachments;exports.MessageProvider=u.MessageProvider;exports.useMessage=u.useMessage;exports.useOptionalMessage=u.useOptionalMessage;exports.RootProvider=D.RootProvider;exports.SourceItemProvider=I.SourceItemProvider;exports.useSourceItem=I.useSourceItem;exports.ThemeProvider=$.ThemeProvider;exports.WidgetProvider=S.WidgetProvider;exports.useWidget=S.useWidget;exports.SidebarChatProvider=t.SidebarChatProvider;exports.useInkeepSidebarChat=t.useInkeepSidebarChat;exports.useOptionalSidebarChat=t.useOptionalSidebarChat;exports.useSidebarChat=t.useSidebarChat;exports.ChatBubbleProvider=a.ChatBubbleProvider;exports.useChatBubble=a.useChatBubble;exports.useInkeepChatBubble=a.useInkeepChatBubble;exports.useOptionalChatBubble=a.useOptionalChatBubble;exports.ikp=q.ikp;exports.jsxFactory=q.jsxFactory;exports.EmbeddedChatPrimitive=z;exports.SidebarChatPrimitive=H;exports.ChatProvider=g.ChatProvider;exports.useChat=g.useChat;exports.EmbeddedSearchPrimitive=L;exports.SearchProvider=m.SearchProvider;exports.SearchProviderImpl=m.SearchProviderImpl;exports.useSearch=m.useSearch;exports.ModalPrimitive=j;exports.ModalProvider=B.ModalProvider;exports.useModal=B.useModal;exports.ChatButtonPrimitive=G;exports.SearchBarPrimitive=Q;exports.ChatBubblePrimitive=U;exports.useBoolean=K.useBoolean;exports.useComponentClassNames=N.useComponentClassNames;exports.useContainerSize=J.useContainerSize;exports.useInkeepOpenState=V.useInkeepOpenState;exports.useCopyToClipboard=X.useCopyToClipboard;exports.useInstantUpdate=Y.useInstantUpdate;exports.useIsMounted=Z.useIsMounted;exports.useMediaQuery=_.useMediaQuery;exports.useResizeObserver=ee.useResizeObserver;exports.useScrollingFades=re.useScrollingFades;exports.useSettleAction=oe.useSettleAction;exports.useSimpleScroll=te.useSimpleScroll;exports.callAll=o.callAll;exports.dataAttr=o.dataAttr;exports.getInitials=o.getInitials;exports.getMessageContent=o.getMessageContent;exports.isString=o.isString;exports.maybeRender=o.maybeRender;exports.toKebabCase=o.toKebabCase;exports.ChatBubbleComponentIds=r.ChatBubbleComponentIds;exports.SearchBarComponentIds=r.SearchBarComponentIds;exports.SidebarChatComponentIds=r.SidebarChatComponentIds;exports.aiChatComponentIds=r.aiChatComponentIds;exports.aiSearchComponentIds=r.aiSearchComponentIds;exports.chatButtonComponentIds=r.chatButtonComponentIds;exports.componentIDs=r.componentIDs;exports.markDownComponentIds=r.markDownComponentIds;exports.miscellanousComponentIds=r.miscellanousComponentIds;exports.modalComponentIds=r.modalComponentIds;exports.composeRefs=M.composeRefs;exports.useComposedRefs=M.useComposedRefs;exports.mergeProps=ae.mergeProps;exports.Portal=se.Portal;exports.CustomIcon=ne.CustomIcon;exports.BuiltInIconRenderer=ie.BuiltInIconRenderer;exports.PortalWithTheme=de.PortalWithTheme;exports.Command=e.Command;exports.CommandDialog=e.CommandDialog;exports.CommandEmpty=e.CommandEmpty;exports.CommandInput=e.CommandInput;exports.CommandItem=e.CommandItem;exports.CommandList=e.CommandList;exports.CommandLoading=e.CommandLoading;exports.CommandRoot=e.CommandRoot;exports.CommandSeparator=e.CommandSeparator;exports.defaultFilter=e.defaultFilter;exports.useCommandState=e.useCommandState;exports.useCommandStore=e.useCommandStore;exports.ErrorBoundary=ue.ErrorBoundary;exports.InkeepShadow=s.InkeepShadow;exports.InkeepShadowProvider=s.InkeepShadowProvider;exports.ShadowContext=s.ShadowContext;exports.useShadow=s.useShadow;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./components/embedded-chat.cjs"),F=require("./components/sidebar-chat.cjs"),y=require("./components/chat-bubble.cjs"),w=require("./components/embedded-search.cjs"),A=require("./components/modal.cjs"),f=require("./components/chat-button.cjs"),R=require("./components/searchbar.cjs"),E=require("./components/shadow.cjs"),T=require("./components/loading-indicator.cjs"),O=require("./components/ui/recipes/widget-toggle.cjs"),D=require("./components/message.cjs"),W=require("./components/data-summary-group.cjs"),c=require("../primitives/providers/attachment-item-provider.cjs"),C=require("../primitives/providers/attachments-bar-provider.cjs"),h=require("../primitives/providers/base-events-provider.cjs"),n=require("../primitives/providers/chat-form-provider.cjs"),i=require("../primitives/providers/config-provider.cjs"),l=require("../primitives/providers/feedback-item-provider.cjs"),p=require("../primitives/providers/feedback-provider.cjs"),P=require("../primitives/providers/form-field-provider.cjs"),d=require("../primitives/providers/help-menu-provider.cjs"),v=require("../primitives/providers/markdown-provider.cjs"),b=require("../primitives/providers/message-attachments-provider.cjs"),u=require("../primitives/providers/message-provider.cjs"),x=require("../primitives/providers/root-provider.cjs"),I=require("../primitives/providers/source-item-provider.cjs"),$=require("../primitives/providers/theme-provider.cjs"),S=require("../primitives/providers/widget-provider.cjs"),t=require("../primitives/providers/sidebar-chat-provider.cjs"),a=require("../primitives/providers/chat-bubble-provider.cjs"),q=require("../primitives/components/factory.cjs"),z=require("../primitives/components/embedded-chat.cjs"),H=require("../primitives/components/sidebar-chat/index.cjs"),g=require("../primitives/components/embedded-chat/chat-provider.cjs"),L=require("../primitives/components/embedded-search.cjs"),m=require("../primitives/components/embedded-search/search-provider.cjs"),j=require("../primitives/components/modal.cjs"),B=require("../primitives/components/modal/modal-provider.cjs"),G=require("../primitives/components/chat-button.cjs"),Q=require("../primitives/components/searchbar.cjs"),U=require("../primitives/components/chat-bubble/index.cjs"),K=require("../primitives/components/data-summaries.cjs"),N=require("../primitives/hooks/use-boolean.cjs"),J=require("../primitives/hooks/use-component-classnames.cjs"),V=require("../primitives/hooks/use-container-size.cjs"),X=require("../primitives/hooks/use-inkeep-open-state.cjs"),Y=require("../primitives/hooks/use-copy-to-clipboard.cjs"),Z=require("../primitives/hooks/use-instant-update.cjs"),_=require("../primitives/hooks/use-is-mounted.cjs"),ee=require("../primitives/hooks/use-media-query.cjs"),re=require("../primitives/hooks/use-resize-observer.cjs"),oe=require("../primitives/hooks/use-scrolling-fades.cjs"),te=require("../primitives/hooks/use-settle-action.cjs"),ae=require("../primitives/hooks/use-simple-scroll.cjs"),o=require("../primitives/utils/misc.cjs"),r=require("../primitives/utils/component-ids.cjs"),M=require("../primitives/utils/compose-refs.cjs"),se=require("../primitives/utils/merge-props.cjs"),ne=require("../primitives/atoms/portal.cjs"),ie=require("../primitives/atoms/icons/custom-icon.cjs"),de=require("../primitives/atoms/icons/built-in-icon-renderer.cjs"),ue=require("../primitives/atoms/portal-with-theme.cjs"),e=require("../primitives/atoms/cmdk/index.cjs"),me=require("../primitives/atoms/error-boundary.cjs"),s=require("../primitives/atoms/shadow/context.cjs");exports.EmbeddedChat=k;exports.SidebarChat=F;exports.ChatBubble=y;exports.EmbeddedSearch=w;exports.Modal=A;exports.ChatButton=f;exports.SearchBar=R;exports.Shadow=E.Shadow;exports.LoadingIndicator=T.LoadingIndicator;exports.widgetToggle=O.widgetToggle;exports.EmbeddedChatMessagePart=D.EmbeddedChatMessagePart;exports.DataSummaryGroup=W.DataSummaryGroup;exports.AttachmentItemProvider=c.AttachmentItemProvider;exports.useAttachmentItem=c.useAttachmentItem;exports.AttachmentsBarProvider=C.AttachmentsBarProvider;exports.useAttachmentsBar=C.useAttachmentsBar;exports.BaseEventsProvider=h.BaseEventsProvider;exports.useBaseEvents=h.useBaseEvents;exports.ChatFormProvider=n.ChatFormProvider;exports.useChatForm=n.useChatForm;exports.useChatFormState=n.useChatFormState;exports.InkeepConfigProvider=i.InkeepConfigProvider;exports.WebWidgetInteractionType=i.WebWidgetInteractionType;exports.useInkeepConfig=i.useInkeepConfig;exports.FeedbackItemProvider=l.FeedbackItemProvider;exports.useFeedbackItem=l.useFeedbackItem;exports.FeedbackProvider=p.FeedbackProvider;exports.useMessageFeedback=p.useMessageFeedback;exports.FormFieldProvider=P.FormFieldProvider;exports.useFormField=P.useFormField;exports.HelpMenuProvider=d.HelpMenuProvider;exports.useHelpMenu=d.useHelpMenu;exports.useHelpMenuState=d.useHelpMenuState;exports.ChatMarkdownProvider=v.ChatMarkdownProvider;exports.useChatMarkdown=v.useChatMarkdown;exports.MessageAttachmentsProvider=b.MessageAttachmentsProvider;exports.useMessageAttachments=b.useMessageAttachments;exports.MessageProvider=u.MessageProvider;exports.useMessage=u.useMessage;exports.useOptionalMessage=u.useOptionalMessage;exports.RootProvider=x.RootProvider;exports.SourceItemProvider=I.SourceItemProvider;exports.useSourceItem=I.useSourceItem;exports.ThemeProvider=$.ThemeProvider;exports.WidgetProvider=S.WidgetProvider;exports.useWidget=S.useWidget;exports.SidebarChatProvider=t.SidebarChatProvider;exports.useInkeepSidebarChat=t.useInkeepSidebarChat;exports.useOptionalSidebarChat=t.useOptionalSidebarChat;exports.useSidebarChat=t.useSidebarChat;exports.ChatBubbleProvider=a.ChatBubbleProvider;exports.useChatBubble=a.useChatBubble;exports.useInkeepChatBubble=a.useInkeepChatBubble;exports.useOptionalChatBubble=a.useOptionalChatBubble;exports.ikp=q.ikp;exports.jsxFactory=q.jsxFactory;exports.EmbeddedChatPrimitive=z;exports.SidebarChatPrimitive=H;exports.ChatProvider=g.ChatProvider;exports.useChat=g.useChat;exports.EmbeddedSearchPrimitive=L;exports.SearchProvider=m.SearchProvider;exports.SearchProviderImpl=m.SearchProviderImpl;exports.useSearch=m.useSearch;exports.ModalPrimitive=j;exports.ModalProvider=B.ModalProvider;exports.useModal=B.useModal;exports.ChatButtonPrimitive=G;exports.SearchBarPrimitive=Q;exports.ChatBubblePrimitive=U;exports.DataSummaryPrimitive=K;exports.useBoolean=N.useBoolean;exports.useComponentClassNames=J.useComponentClassNames;exports.useContainerSize=V.useContainerSize;exports.useInkeepOpenState=X.useInkeepOpenState;exports.useCopyToClipboard=Y.useCopyToClipboard;exports.useInstantUpdate=Z.useInstantUpdate;exports.useIsMounted=_.useIsMounted;exports.useMediaQuery=ee.useMediaQuery;exports.useResizeObserver=re.useResizeObserver;exports.useScrollingFades=oe.useScrollingFades;exports.useSettleAction=te.useSettleAction;exports.useSimpleScroll=ae.useSimpleScroll;exports.callAll=o.callAll;exports.dataAttr=o.dataAttr;exports.getInitials=o.getInitials;exports.getMessageContent=o.getMessageContent;exports.isString=o.isString;exports.maybeRender=o.maybeRender;exports.toKebabCase=o.toKebabCase;exports.ChatBubbleComponentIds=r.ChatBubbleComponentIds;exports.DataSummaryComponentIds=r.DataSummaryComponentIds;exports.SearchBarComponentIds=r.SearchBarComponentIds;exports.SidebarChatComponentIds=r.SidebarChatComponentIds;exports.aiChatComponentIds=r.aiChatComponentIds;exports.aiSearchComponentIds=r.aiSearchComponentIds;exports.chatButtonComponentIds=r.chatButtonComponentIds;exports.componentIDs=r.componentIDs;exports.markDownComponentIds=r.markDownComponentIds;exports.miscellanousComponentIds=r.miscellanousComponentIds;exports.modalComponentIds=r.modalComponentIds;exports.composeRefs=M.composeRefs;exports.useComposedRefs=M.useComposedRefs;exports.mergeProps=se.mergeProps;exports.Portal=ne.Portal;exports.CustomIcon=ie.CustomIcon;exports.BuiltInIconRenderer=de.BuiltInIconRenderer;exports.PortalWithTheme=ue.PortalWithTheme;exports.Command=e.Command;exports.CommandDialog=e.CommandDialog;exports.CommandEmpty=e.CommandEmpty;exports.CommandInput=e.CommandInput;exports.CommandItem=e.CommandItem;exports.CommandList=e.CommandList;exports.CommandLoading=e.CommandLoading;exports.CommandRoot=e.CommandRoot;exports.CommandSeparator=e.CommandSeparator;exports.defaultFilter=e.defaultFilter;exports.useCommandState=e.useCommandState;exports.useCommandStore=e.useCommandStore;exports.ErrorBoundary=me.ErrorBoundary;exports.InkeepShadow=s.InkeepShadow;exports.InkeepShadowProvider=s.InkeepShadowProvider;exports.ShadowContext=s.ShadowContext;exports.useShadow=s.useShadow;
@@ -5,185 +5,188 @@ import * as t from "./components/embedded-search.js";
5
5
  import * as a from "./components/modal.js";
6
6
  import * as m from "./components/chat-button.js";
7
7
  import * as s from "./components/searchbar.js";
8
- import { Shadow as l } from "./components/shadow.js";
9
- import { LoadingIndicator as c } from "./components/loading-indicator.js";
10
- import { widgetToggle as I } from "./components/ui/recipes/widget-toggle.js";
11
- import { EmbeddedChatMessagePart as v } from "./components/message.js";
12
- import { DataSummaryGroup as B } from "./components/data-summary-group.js";
13
- import { AttachmentItemProvider as k, useAttachmentItem as F } from "../primitives/providers/attachment-item-provider.js";
8
+ import { Shadow as b } from "./components/shadow.js";
9
+ import { LoadingIndicator as S } from "./components/loading-indicator.js";
10
+ import { widgetToggle as P } from "./components/ui/recipes/widget-toggle.js";
11
+ import { EmbeddedChatMessagePart as g } from "./components/message.js";
12
+ import { DataSummaryGroup as M } from "./components/data-summary-group.js";
13
+ import { AttachmentItemProvider as F, useAttachmentItem as y } from "../primitives/providers/attachment-item-provider.js";
14
14
  import { AttachmentsBarProvider as A, useAttachmentsBar as E } from "../primitives/providers/attachments-bar-provider.js";
15
- import { BaseEventsProvider as R, useBaseEvents as $ } from "../primitives/providers/base-events-provider.js";
16
- import { ChatFormProvider as T, useChatForm as W, useChatFormState as D } from "../primitives/providers/chat-form-provider.js";
17
- import { InkeepConfigProvider as L, WebWidgetInteractionType as z, useInkeepConfig as j } from "../primitives/providers/config-provider.js";
18
- import { FeedbackItemProvider as K, useFeedbackItem as N } from "../primitives/providers/feedback-item-provider.js";
19
- import { FeedbackProvider as U, useMessageFeedback as q } from "../primitives/providers/feedback-provider.js";
20
- import { FormFieldProvider as V, useFormField as X } from "../primitives/providers/form-field-provider.js";
21
- import { HelpMenuProvider as Z, useHelpMenu as _, useHelpMenuState as ee } from "../primitives/providers/help-menu-provider.js";
22
- import { ChatMarkdownProvider as re, useChatMarkdown as te } from "../primitives/providers/markdown-provider.js";
23
- import { MessageAttachmentsProvider as me, useMessageAttachments as se } from "../primitives/providers/message-attachments-provider.js";
24
- import { MessageProvider as pe, useMessage as ie, useOptionalMessage as ne } from "../primitives/providers/message-provider.js";
25
- import { RootProvider as fe } from "../primitives/providers/root-provider.js";
26
- import { SourceItemProvider as Ce, useSourceItem as he } from "../primitives/providers/source-item-provider.js";
27
- import { ThemeProvider as be } from "../primitives/providers/theme-provider.js";
28
- import { WidgetProvider as Se, useWidget as Ie } from "../primitives/providers/widget-provider.js";
29
- import { SidebarChatProvider as ve, useInkeepSidebarChat as ge, useOptionalSidebarChat as Be, useSidebarChat as Me } from "../primitives/providers/sidebar-chat-provider.js";
30
- import { ChatBubbleProvider as Fe, useChatBubble as we, useInkeepChatBubble as Ae, useOptionalChatBubble as Ee } from "../primitives/providers/chat-bubble-provider.js";
31
- import { ikp as Re, jsxFactory as $e } from "../primitives/components/factory.js";
15
+ import { BaseEventsProvider as D, useBaseEvents as $ } from "../primitives/providers/base-events-provider.js";
16
+ import { ChatFormProvider as T, useChatForm as W, useChatFormState as H } from "../primitives/providers/chat-form-provider.js";
17
+ import { InkeepConfigProvider as z, WebWidgetInteractionType as j, useInkeepConfig as G } from "../primitives/providers/config-provider.js";
18
+ import { FeedbackItemProvider as N, useFeedbackItem as Q } from "../primitives/providers/feedback-item-provider.js";
19
+ import { FeedbackProvider as q, useMessageFeedback as J } from "../primitives/providers/feedback-provider.js";
20
+ import { FormFieldProvider as X, useFormField as Y } from "../primitives/providers/form-field-provider.js";
21
+ import { HelpMenuProvider as _, useHelpMenu as ee, useHelpMenuState as oe } from "../primitives/providers/help-menu-provider.js";
22
+ import { ChatMarkdownProvider as te, useChatMarkdown as ae } from "../primitives/providers/markdown-provider.js";
23
+ import { MessageAttachmentsProvider as se, useMessageAttachments as de } from "../primitives/providers/message-attachments-provider.js";
24
+ import { MessageProvider as ie, useMessage as ne, useOptionalMessage as ue } from "../primitives/providers/message-provider.js";
25
+ import { RootProvider as xe } from "../primitives/providers/root-provider.js";
26
+ import { SourceItemProvider as he, useSourceItem as le } from "../primitives/providers/source-item-provider.js";
27
+ import { ThemeProvider as ce } from "../primitives/providers/theme-provider.js";
28
+ import { WidgetProvider as Ie, useWidget as Pe } from "../primitives/providers/widget-provider.js";
29
+ import { SidebarChatProvider as ge, useInkeepSidebarChat as Be, useOptionalSidebarChat as Me, useSidebarChat as ke } from "../primitives/providers/sidebar-chat-provider.js";
30
+ import { ChatBubbleProvider as ye, useChatBubble as we, useInkeepChatBubble as Ae, useOptionalChatBubble as Ee } from "../primitives/providers/chat-bubble-provider.js";
31
+ import { ikp as De, jsxFactory as $e } from "../primitives/components/factory.js";
32
32
  import * as d from "../primitives/components/embedded-chat.js";
33
33
  import * as p from "../primitives/components/sidebar-chat/index.js";
34
34
  import { ChatProvider as Te, useChat as We } from "../primitives/components/embedded-chat/chat-provider.js";
35
35
  import * as i from "../primitives/components/embedded-search.js";
36
- import { SearchProvider as He, SearchProviderImpl as Le, useSearch as ze } from "../primitives/components/embedded-search/search-provider.js";
36
+ import { SearchProvider as Le, SearchProviderImpl as ze, useSearch as je } from "../primitives/components/embedded-search/search-provider.js";
37
37
  import * as n from "../primitives/components/modal.js";
38
- import { ModalProvider as Ge, useModal as Ke } from "../primitives/components/modal/modal-provider.js";
38
+ import { ModalProvider as Ke, useModal as Ne } from "../primitives/components/modal/modal-provider.js";
39
39
  import * as u from "../primitives/components/chat-button.js";
40
40
  import * as f from "../primitives/components/searchbar.js";
41
41
  import * as x from "../primitives/components/chat-bubble/index.js";
42
- import { useBoolean as Qe } from "../primitives/hooks/use-boolean.js";
43
- import { useComponentClassNames as qe } from "../primitives/hooks/use-component-classnames.js";
44
- import { useContainerSize as Ve } from "../primitives/hooks/use-container-size.js";
45
- import { useInkeepOpenState as Ye } from "../primitives/hooks/use-inkeep-open-state.js";
46
- import { useCopyToClipboard as _e } from "../primitives/hooks/use-copy-to-clipboard.js";
47
- import { useInstantUpdate as oo } from "../primitives/hooks/use-instant-update.js";
48
- import { useIsMounted as to } from "../primitives/hooks/use-is-mounted.js";
49
- import { useMediaQuery as mo } from "../primitives/hooks/use-media-query.js";
50
- import { useResizeObserver as po } from "../primitives/hooks/use-resize-observer.js";
51
- import { useScrollingFades as no } from "../primitives/hooks/use-scrolling-fades.js";
52
- import { useSettleAction as fo } from "../primitives/hooks/use-settle-action.js";
53
- import { useSimpleScroll as Co } from "../primitives/hooks/use-simple-scroll.js";
54
- import { callAll as lo, dataAttr as bo, getInitials as co, getMessageContent as So, isString as Io, maybeRender as Po, toKebabCase as vo } from "../primitives/utils/misc.js";
55
- import { ChatBubbleComponentIds as Bo, SearchBarComponentIds as Mo, SidebarChatComponentIds as ko, aiChatComponentIds as Fo, aiSearchComponentIds as wo, chatButtonComponentIds as Ao, componentIDs as Eo, markDownComponentIds as yo, miscellanousComponentIds as Ro, modalComponentIds as $o } from "../primitives/utils/component-ids.js";
56
- import { composeRefs as To, useComposedRefs as Wo } from "../primitives/utils/compose-refs.js";
57
- import { mergeProps as Ho } from "../primitives/utils/merge-props.js";
58
- import { Portal as zo } from "../primitives/atoms/portal.js";
59
- import { CustomIcon as Go } from "../primitives/atoms/icons/custom-icon.js";
60
- import { BuiltInIconRenderer as No } from "../primitives/atoms/icons/built-in-icon-renderer.js";
61
- import { PortalWithTheme as Uo } from "../primitives/atoms/portal-with-theme.js";
62
- import { Command as Jo, CommandDialog as Vo, CommandEmpty as Xo, CommandInput as Yo, CommandItem as Zo, CommandList as _o, CommandLoading as er, CommandRoot as or, CommandSeparator as rr, defaultFilter as tr, useCommandState as ar, useCommandStore as mr } from "../primitives/atoms/cmdk/index.js";
63
- import { ErrorBoundary as dr } from "../primitives/atoms/error-boundary.js";
64
- import { InkeepShadow as ir, InkeepShadowProvider as nr, ShadowContext as ur, useShadow as fr } from "../primitives/atoms/shadow/context.js";
42
+ import * as C from "../primitives/components/data-summaries.js";
43
+ import { useBoolean as Ue } from "../primitives/hooks/use-boolean.js";
44
+ import { useComponentClassNames as Je } from "../primitives/hooks/use-component-classnames.js";
45
+ import { useContainerSize as Xe } from "../primitives/hooks/use-container-size.js";
46
+ import { useInkeepOpenState as Ze } from "../primitives/hooks/use-inkeep-open-state.js";
47
+ import { useCopyToClipboard as eo } from "../primitives/hooks/use-copy-to-clipboard.js";
48
+ import { useInstantUpdate as ro } from "../primitives/hooks/use-instant-update.js";
49
+ import { useIsMounted as ao } from "../primitives/hooks/use-is-mounted.js";
50
+ import { useMediaQuery as so } from "../primitives/hooks/use-media-query.js";
51
+ import { useResizeObserver as io } from "../primitives/hooks/use-resize-observer.js";
52
+ import { useScrollingFades as uo } from "../primitives/hooks/use-scrolling-fades.js";
53
+ import { useSettleAction as xo } from "../primitives/hooks/use-settle-action.js";
54
+ import { useSimpleScroll as ho } from "../primitives/hooks/use-simple-scroll.js";
55
+ import { callAll as bo, dataAttr as co, getInitials as So, getMessageContent as Io, isString as Po, maybeRender as vo, toKebabCase as go } from "../primitives/utils/misc.js";
56
+ import { ChatBubbleComponentIds as Mo, DataSummaryComponentIds as ko, SearchBarComponentIds as Fo, SidebarChatComponentIds as yo, aiChatComponentIds as wo, aiSearchComponentIds as Ao, chatButtonComponentIds as Eo, componentIDs as Ro, markDownComponentIds as Do, miscellanousComponentIds as $o, modalComponentIds as Oo } from "../primitives/utils/component-ids.js";
57
+ import { composeRefs as Wo, useComposedRefs as Ho } from "../primitives/utils/compose-refs.js";
58
+ import { mergeProps as zo } from "../primitives/utils/merge-props.js";
59
+ import { Portal as Go } from "../primitives/atoms/portal.js";
60
+ import { CustomIcon as No } from "../primitives/atoms/icons/custom-icon.js";
61
+ import { BuiltInIconRenderer as Uo } from "../primitives/atoms/icons/built-in-icon-renderer.js";
62
+ import { PortalWithTheme as Jo } from "../primitives/atoms/portal-with-theme.js";
63
+ import { Command as Xo, CommandDialog as Yo, CommandEmpty as Zo, CommandInput as _o, CommandItem as er, CommandList as or, CommandLoading as rr, CommandRoot as tr, CommandSeparator as ar, defaultFilter as mr, useCommandState as sr, useCommandStore as dr } from "../primitives/atoms/cmdk/index.js";
64
+ import { ErrorBoundary as ir } from "../primitives/atoms/error-boundary.js";
65
+ import { InkeepShadow as ur, InkeepShadowProvider as fr, ShadowContext as xr, useShadow as Cr } from "../primitives/atoms/shadow/context.js";
65
66
  export {
66
- k as AttachmentItemProvider,
67
+ F as AttachmentItemProvider,
67
68
  A as AttachmentsBarProvider,
68
- R as BaseEventsProvider,
69
- No as BuiltInIconRenderer,
69
+ D as BaseEventsProvider,
70
+ Uo as BuiltInIconRenderer,
70
71
  r as ChatBubble,
71
- Bo as ChatBubbleComponentIds,
72
+ Mo as ChatBubbleComponentIds,
72
73
  x as ChatBubblePrimitive,
73
- Fe as ChatBubbleProvider,
74
+ ye as ChatBubbleProvider,
74
75
  m as ChatButton,
75
76
  u as ChatButtonPrimitive,
76
77
  T as ChatFormProvider,
77
- re as ChatMarkdownProvider,
78
+ te as ChatMarkdownProvider,
78
79
  Te as ChatProvider,
79
- Jo as Command,
80
- Vo as CommandDialog,
81
- Xo as CommandEmpty,
82
- Yo as CommandInput,
83
- Zo as CommandItem,
84
- _o as CommandList,
85
- er as CommandLoading,
86
- or as CommandRoot,
87
- rr as CommandSeparator,
88
- Go as CustomIcon,
89
- B as DataSummaryGroup,
80
+ Xo as Command,
81
+ Yo as CommandDialog,
82
+ Zo as CommandEmpty,
83
+ _o as CommandInput,
84
+ er as CommandItem,
85
+ or as CommandList,
86
+ rr as CommandLoading,
87
+ tr as CommandRoot,
88
+ ar as CommandSeparator,
89
+ No as CustomIcon,
90
+ ko as DataSummaryComponentIds,
91
+ M as DataSummaryGroup,
92
+ C as DataSummaryPrimitive,
90
93
  e as EmbeddedChat,
91
- v as EmbeddedChatMessagePart,
94
+ g as EmbeddedChatMessagePart,
92
95
  d as EmbeddedChatPrimitive,
93
96
  t as EmbeddedSearch,
94
97
  i as EmbeddedSearchPrimitive,
95
- dr as ErrorBoundary,
96
- K as FeedbackItemProvider,
97
- U as FeedbackProvider,
98
- V as FormFieldProvider,
99
- Z as HelpMenuProvider,
100
- L as InkeepConfigProvider,
101
- ir as InkeepShadow,
102
- nr as InkeepShadowProvider,
103
- c as LoadingIndicator,
104
- me as MessageAttachmentsProvider,
105
- pe as MessageProvider,
98
+ ir as ErrorBoundary,
99
+ N as FeedbackItemProvider,
100
+ q as FeedbackProvider,
101
+ X as FormFieldProvider,
102
+ _ as HelpMenuProvider,
103
+ z as InkeepConfigProvider,
104
+ ur as InkeepShadow,
105
+ fr as InkeepShadowProvider,
106
+ S as LoadingIndicator,
107
+ se as MessageAttachmentsProvider,
108
+ ie as MessageProvider,
106
109
  a as Modal,
107
110
  n as ModalPrimitive,
108
- Ge as ModalProvider,
109
- zo as Portal,
110
- Uo as PortalWithTheme,
111
- fe as RootProvider,
111
+ Ke as ModalProvider,
112
+ Go as Portal,
113
+ Jo as PortalWithTheme,
114
+ xe as RootProvider,
112
115
  s as SearchBar,
113
- Mo as SearchBarComponentIds,
116
+ Fo as SearchBarComponentIds,
114
117
  f as SearchBarPrimitive,
115
- He as SearchProvider,
116
- Le as SearchProviderImpl,
117
- l as Shadow,
118
- ur as ShadowContext,
118
+ Le as SearchProvider,
119
+ ze as SearchProviderImpl,
120
+ b as Shadow,
121
+ xr as ShadowContext,
119
122
  o as SidebarChat,
120
- ko as SidebarChatComponentIds,
123
+ yo as SidebarChatComponentIds,
121
124
  p as SidebarChatPrimitive,
122
- ve as SidebarChatProvider,
123
- Ce as SourceItemProvider,
124
- be as ThemeProvider,
125
- z as WebWidgetInteractionType,
126
- Se as WidgetProvider,
127
- Fo as aiChatComponentIds,
128
- wo as aiSearchComponentIds,
129
- lo as callAll,
130
- Ao as chatButtonComponentIds,
131
- Eo as componentIDs,
132
- To as composeRefs,
133
- bo as dataAttr,
134
- tr as defaultFilter,
135
- co as getInitials,
136
- So as getMessageContent,
137
- Re as ikp,
138
- Io as isString,
125
+ ge as SidebarChatProvider,
126
+ he as SourceItemProvider,
127
+ ce as ThemeProvider,
128
+ j as WebWidgetInteractionType,
129
+ Ie as WidgetProvider,
130
+ wo as aiChatComponentIds,
131
+ Ao as aiSearchComponentIds,
132
+ bo as callAll,
133
+ Eo as chatButtonComponentIds,
134
+ Ro as componentIDs,
135
+ Wo as composeRefs,
136
+ co as dataAttr,
137
+ mr as defaultFilter,
138
+ So as getInitials,
139
+ Io as getMessageContent,
140
+ De as ikp,
141
+ Po as isString,
139
142
  $e as jsxFactory,
140
- yo as markDownComponentIds,
141
- Po as maybeRender,
142
- Ho as mergeProps,
143
- Ro as miscellanousComponentIds,
144
- $o as modalComponentIds,
145
- vo as toKebabCase,
146
- F as useAttachmentItem,
143
+ Do as markDownComponentIds,
144
+ vo as maybeRender,
145
+ zo as mergeProps,
146
+ $o as miscellanousComponentIds,
147
+ Oo as modalComponentIds,
148
+ go as toKebabCase,
149
+ y as useAttachmentItem,
147
150
  E as useAttachmentsBar,
148
151
  $ as useBaseEvents,
149
- Qe as useBoolean,
152
+ Ue as useBoolean,
150
153
  We as useChat,
151
154
  we as useChatBubble,
152
155
  W as useChatForm,
153
- D as useChatFormState,
154
- te as useChatMarkdown,
155
- ar as useCommandState,
156
- mr as useCommandStore,
157
- qe as useComponentClassNames,
158
- Wo as useComposedRefs,
159
- Ve as useContainerSize,
160
- _e as useCopyToClipboard,
161
- N as useFeedbackItem,
162
- X as useFormField,
163
- _ as useHelpMenu,
164
- ee as useHelpMenuState,
156
+ H as useChatFormState,
157
+ ae as useChatMarkdown,
158
+ sr as useCommandState,
159
+ dr as useCommandStore,
160
+ Je as useComponentClassNames,
161
+ Ho as useComposedRefs,
162
+ Xe as useContainerSize,
163
+ eo as useCopyToClipboard,
164
+ Q as useFeedbackItem,
165
+ Y as useFormField,
166
+ ee as useHelpMenu,
167
+ oe as useHelpMenuState,
165
168
  Ae as useInkeepChatBubble,
166
- j as useInkeepConfig,
167
- Ye as useInkeepOpenState,
168
- ge as useInkeepSidebarChat,
169
- oo as useInstantUpdate,
170
- to as useIsMounted,
171
- mo as useMediaQuery,
172
- ie as useMessage,
173
- se as useMessageAttachments,
174
- q as useMessageFeedback,
175
- Ke as useModal,
169
+ G as useInkeepConfig,
170
+ Ze as useInkeepOpenState,
171
+ Be as useInkeepSidebarChat,
172
+ ro as useInstantUpdate,
173
+ ao as useIsMounted,
174
+ so as useMediaQuery,
175
+ ne as useMessage,
176
+ de as useMessageAttachments,
177
+ J as useMessageFeedback,
178
+ Ne as useModal,
176
179
  Ee as useOptionalChatBubble,
177
- ne as useOptionalMessage,
178
- Be as useOptionalSidebarChat,
179
- po as useResizeObserver,
180
- no as useScrollingFades,
181
- ze as useSearch,
182
- fo as useSettleAction,
183
- fr as useShadow,
184
- Me as useSidebarChat,
185
- Co as useSimpleScroll,
186
- he as useSourceItem,
187
- Ie as useWidget,
188
- I as widgetToggle
180
+ ue as useOptionalMessage,
181
+ Me as useOptionalSidebarChat,
182
+ io as useResizeObserver,
183
+ uo as useScrollingFades,
184
+ je as useSearch,
185
+ xo as useSettleAction,
186
+ Cr as useShadow,
187
+ ke as useSidebarChat,
188
+ ho as useSimpleScroll,
189
+ le as useSourceItem,
190
+ Pe as useWidget,
191
+ P as widgetToggle
189
192
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-ui",
3
- "version": "0.15.0",
3
+ "version": "0.15.2",
4
4
  "description": "",
5
5
  "homepage": "",
6
6
  "repository": {