@inkeep/agents-ui 0.14.25 → 0.14.27

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"),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.14.24",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;
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.14.26",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.14.24",
8
+ widgetLibraryVersion: "0.14.26",
9
9
  componentType: o,
10
10
  tags: s
11
11
  }),
@@ -132,7 +132,7 @@ export interface InkeepAIChatSettings {
132
132
  * Callback function triggered whenever the user modifies their input message.
133
133
  *
134
134
 
135
- * `param:` message The current content of the input field
135
+ * @param message - The current content of the input field
136
136
  */
137
137
  onInputMessageChange?: (message: string) => void;
138
138
  /**
@@ -192,13 +192,13 @@ export interface AIChatFunctions {
192
192
  /**
193
193
  * Programmatically sends a message in the chat.
194
194
 
195
- * `param:` message Optional message text. If omitted, sends the current input value.
195
+ * @param message - Optional message text. If omitted, sends the current input value.
196
196
  */
197
197
  submitMessage: (message?: string) => void;
198
198
  /**
199
199
  * Programmatically updates the text in the chat input field.
200
200
 
201
- * `param:` message The new message text to set
201
+ * @param message - The new message text to set
202
202
  */
203
203
  updateInputMessage: (message: string) => void;
204
204
  /**
@@ -209,9 +209,8 @@ export interface AIChatFunctions {
209
209
  /**
210
210
  * Displays a form overlay in the chat interface.
211
211
 
212
- * `param:` formSettings Configuration object defining the form's fields and behavior
213
-
214
- * `param:` getHelpOption Optional getHelpOption that triggered the form (for analytics)
212
+ * @param formSettings - Configuration object defining the form's fields and behavior
213
+ * @param getHelpOption - Optional getHelpOption that triggered the form (for analytics)
215
214
  */
216
215
  openForm: (formSettings: AIChatFormSettings, getHelpOption?: GetHelpOption) => void;
217
216
  /**
@@ -52,13 +52,15 @@ export interface InkeepBaseSettings {
52
52
  /**
53
53
  * Handler for analytics events from the widget.
54
54
 
55
- * `param:` event The analytics event object
55
+ * @param event - The analytics event object
56
+ * @returns Promise that resolves when the event is logged
56
57
  */
57
58
  onEvent?: (event: InkeepCallbackEvent) => Promise<void>;
58
59
  /**
59
60
  * Handler for feedback events from the widget.
60
61
 
61
- * `param:` feedback The feedback object
62
+ * @param feedback - The feedback object
63
+ * @returns The feedback object
62
64
  */
63
65
  onFeedback?: (feedback: InkeepFeedback & {
64
66
  properties?: Record<string, unknown>;
@@ -70,11 +72,14 @@ export interface InkeepBaseSettings {
70
72
  shouldBypassCaptcha?: boolean;
71
73
  /**
72
74
  * Function to transform source data before display.
75
+ *
76
+ * @remarks
73
77
  * Allows customizing how source information is presented in the widget.
74
78
 
75
- * `param:` source The original source data
76
- *
77
- * `returns:` The transformed source data
79
+ * @param source - The original source data
80
+ * @param type - The type of source data
81
+ * @param opts - The options for the transform source
82
+ * @returns The transformed source data
78
83
  */
79
84
  transformSource?: TransformSource;
80
85
  /**
@@ -311,13 +316,13 @@ export interface SyncColorMode {
311
316
  /**
312
317
  * A function that determines if dark mode is active based on the target element's attributes.
313
318
  *
319
+ * @remarks
314
320
  * The function receives an object containing the current values of all monitored attributes,
315
321
  * where the keys are attribute names and values are the attribute values.
316
322
  *
317
323
 
318
- * `param:` attributes - Object containing the current values of monitored attributes
319
- *
320
- * `returns:` boolean - True if dark mode is detected, false otherwise
324
+ * @param attributes - Object containing the current values of monitored attributes
325
+ * @returns True if dark mode is detected, false otherwise
321
326
  *
322
327
  * @example
323
328
  * ```ts
@@ -338,7 +343,7 @@ export interface SyncColorMode {
338
343
  * This can be used to perform side effects or sync the color mode with other parts of your application.
339
344
  *
340
345
 
341
- * `param:` colorMode - The new color mode value ('light' | 'dark')
346
+ * @param colorMode - The new color mode value ('light' | 'dark')
342
347
  *
343
348
  * @example
344
349
  * ```ts
@@ -22,11 +22,10 @@ export interface InkeepSearchSettings {
22
22
  * If not provided, the widget will warn and show no results.
23
23
  *
24
24
 
25
- * `param:` query - The search query string
26
-
27
- * `param:` abortSignal - Signal to abort the search request
25
+ * @param query - The search query string
26
+ * @param abortSignal - Signal to abort the search request
28
27
  *
29
- * `returns:` Promise that resolves with search results
28
+ * @returns Promise that resolves with search results
30
29
  */
31
30
  onSearch?: (query: string, abortSignal: AbortSignal) => Promise<SourceItem[]>;
32
31
  /**
@@ -29,7 +29,7 @@ export interface InkeepComponentInstance {
29
29
  /**
30
30
  * Updates the component with new props
31
31
 
32
- * `param:` newProps The new props to apply to the component
32
+ * @param newProps - The new props to apply to the component
33
33
  */
34
34
  update: <T extends object>(newProps: T) => void;
35
35
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-ui",
3
- "version": "0.14.25",
3
+ "version": "0.14.27",
4
4
  "description": "",
5
5
  "homepage": "",
6
6
  "repository": {