@inkeep/agents-ui 0.15.21 → 0.15.23
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/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -2
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +1 -1
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +204 -192
- package/dist/primitives/components/embedded-chat.cjs +1 -1
- package/dist/primitives/components/embedded-chat.js +89 -87
- package/dist/primitives/providers/base-events-provider.cjs +1 -1
- package/dist/primitives/providers/base-events-provider.js +1 -1
- package/dist/types/config/ai.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react/jsx-runtime"),t=require("react"),l=require("./config-provider.cjs"),a=t.createContext(void 0),p=({children:e})=>{const{baseSettings:s,componentType:n}=l.useInkeepConfig(),{tags:o,analyticsProperties:r}=s,i=t.useMemo(()=>({widgetLibraryVersion:"0.15.
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react/jsx-runtime"),t=require("react"),l=require("./config-provider.cjs"),a=t.createContext(void 0),p=({children:e})=>{const{baseSettings:s,componentType:n}=l.useInkeepConfig(),{tags:o,analyticsProperties:r}=s,i=t.useMemo(()=>({widgetLibraryVersion:"0.15.23",componentType:n,tags:o}),[n,o]),u={logEvent:t.useCallback(async c=>{const v={...i,...c.properties,...r},d={eventName:c.eventName,properties:v};return s.onEvent?.(d)},[s,i,r])};return E.jsx(a.Provider,{value:u,children:e})},g=()=>{const e=t.useContext(a);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e};exports.BaseEventsProvider=p;exports.useBaseEvents=g;
|
|
@@ -5,7 +5,7 @@ import { useInkeepConfig as g } from "./config-provider.js";
|
|
|
5
5
|
const a = d(void 0), P = ({ children: e }) => {
|
|
6
6
|
const { baseSettings: t, componentType: o } = g(), { tags: s, analyticsProperties: n } = t, r = u(
|
|
7
7
|
() => ({
|
|
8
|
-
widgetLibraryVersion: "0.15.
|
|
8
|
+
widgetLibraryVersion: "0.15.23",
|
|
9
9
|
componentType: o,
|
|
10
10
|
tags: s
|
|
11
11
|
}),
|
|
@@ -2,6 +2,7 @@ import { AIChatFormSettings } from './settings/form';
|
|
|
2
2
|
import { GetHelpOption, CustomMessageAction } from './settings/actions';
|
|
3
3
|
import { SearchAndChatFilters } from './filters';
|
|
4
4
|
import { ComponentsConfig } from './components';
|
|
5
|
+
import { FileUIPart } from 'ai';
|
|
5
6
|
export interface InkeepAIChatSettings {
|
|
6
7
|
/**
|
|
7
8
|
* Headers for requests
|
|
@@ -30,6 +31,13 @@ export interface InkeepAIChatSettings {
|
|
|
30
31
|
* Context to be passed to the chatstream API.
|
|
31
32
|
*/
|
|
32
33
|
context?: Record<string, unknown>;
|
|
34
|
+
/**
|
|
35
|
+
* Files to be passed to the chatstream API.
|
|
36
|
+
* Attached to the next outgoing message. Re-queued whenever the array content changes (diffed by filename, mediaType, and size), so new or updated files are sent on the next message. Already-sent files are not re-attached unless the content changes.
|
|
37
|
+
*
|
|
38
|
+
* @beta This type is subject to change.
|
|
39
|
+
*/
|
|
40
|
+
files?: FileUIPart[];
|
|
33
41
|
/**
|
|
34
42
|
* The placeholder text to display in the chat input field when empty.
|
|
35
43
|
* Use this to provide guidance on what kind of questions users can ask.
|