@inkeep/agents-ui-js 0.17.3 → 0.17.5
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/embed.js +11 -11
- package/dist/types.d.ts +10 -3
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { FileUIPart } from 'ai';
|
|
3
3
|
import type { HTMLProps } from 'react';
|
|
4
4
|
import type { ReactNode } from 'react';
|
|
5
5
|
import type { ToolUIPart } from 'ai';
|
|
@@ -476,8 +476,13 @@ declare interface CommonProperties {
|
|
|
476
476
|
}
|
|
477
477
|
|
|
478
478
|
export declare type ComponentsConfig<A extends Record<string, unknown>> = {
|
|
479
|
+
// The widget injects `messageId` (the rendered message's id) into every
|
|
480
|
+
// custom component's props so in-component handlers can attribute events to
|
|
481
|
+
// the message without a wrapping context provider. This does not force a
|
|
482
|
+
// change on existing handlers: a handler typed `(props: A[K]) => void` stays
|
|
483
|
+
// assignable here by parameter contravariance.
|
|
479
484
|
[K in keyof A]: (
|
|
480
|
-
props: A[K],
|
|
485
|
+
props: A[K] & { messageId: string },
|
|
481
486
|
target: HTMLElement,
|
|
482
487
|
// TODO: add context
|
|
483
488
|
context: null,
|
|
@@ -663,6 +668,8 @@ declare interface FileField extends BaseFormField {
|
|
|
663
668
|
inputType: 'file'
|
|
664
669
|
}
|
|
665
670
|
|
|
671
|
+
export { FileUIPart }
|
|
672
|
+
|
|
666
673
|
export declare type FilterQuery =
|
|
667
674
|
| Record<string, QueryCondition | QueryValue | QueryValue[]>
|
|
668
675
|
| { $and: FilterQuery[] }
|
|
@@ -783,7 +790,7 @@ export declare interface InkeepAIChatSettings {
|
|
|
783
790
|
*/
|
|
784
791
|
context?: Record<string, unknown>
|
|
785
792
|
|
|
786
|
-
/* Excluded from this release type: files *//**
|
|
793
|
+
/* Excluded from this release type: files *//* Excluded from this release type: transformMessageFiles *//**
|
|
787
794
|
* The placeholder text to display in the chat input field when empty.
|
|
788
795
|
* Use this to provide guidance on what kind of questions users can ask.
|
|
789
796
|
* "Ask me anything about our API documentation..."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-ui-js",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Inkeep, Inc. Customer License (IICL) v1.1",
|
|
6
6
|
"homepage": "",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"vite": "5.4.11",
|
|
56
56
|
"vite-bundle-visualizer": "^1.2.1",
|
|
57
57
|
"vite-plugin-dts": "4.4.0",
|
|
58
|
-
"@inkeep/agents-ui": "0.17.
|
|
58
|
+
"@inkeep/agents-ui": "0.17.5"
|
|
59
59
|
},
|
|
60
60
|
"module": "./dist/embed.js",
|
|
61
61
|
"types": "./dist/types.d.ts",
|