@blocksdiy/blocks-client-sdk 1.12.11 → 1.13.0
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/AgentChat.d.ts +6 -1
- package/dist/AgentChat.d.ts.map +1 -1
- package/dist/AgentChat.js +2 -1
- package/package.json +3 -3
package/dist/AgentChat.d.ts
CHANGED
|
@@ -10,7 +10,12 @@ export interface AgentChatConfig {
|
|
|
10
10
|
agentChatId: string;
|
|
11
11
|
agentId?: string;
|
|
12
12
|
agentHarness?: string;
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Chat component block ids the chat may render. `readonly` on purpose: the generated
|
|
15
|
+
* `@/product-types` handles are `as const` literals (so their arrays are `readonly`), and
|
|
16
|
+
* this is only ever read — a mutable-only type would reject `useAgentChat(<Name>AgentChat)`.
|
|
17
|
+
*/
|
|
18
|
+
componentIds?: readonly string[];
|
|
14
19
|
}
|
|
15
20
|
/**
|
|
16
21
|
* AgentChat class for interacting with the agent chat
|
package/dist/AgentChat.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentChat.d.ts","sourceRoot":"","sources":["../src/AgentChat.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"AgentChat.d.ts","sourceRoot":"","sources":["../src/AgentChat.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAED;;;;;;;GAOG;AACH,qBAAa,SAAS,CAAC,GAAG,SAAS,eAAe,GAAG,eAAe;IAClE,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,KAAK,CAAC,CAAS;IACvB,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,YAAY,CAAC,CAAW;IAChC;;;OAGG;gBACS,MAAM,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;IAU5E;;;OAGG;IACH,0BAA0B;;;;;;;;CAU3B"}
|
package/dist/AgentChat.js
CHANGED
|
@@ -23,7 +23,8 @@ export class AgentChat {
|
|
|
23
23
|
this.appId = appId;
|
|
24
24
|
this.token = token;
|
|
25
25
|
this.agentHarness = config.agentHarness;
|
|
26
|
-
|
|
26
|
+
// A mutable copy: the component props keep their `string[]` shape for every consumer.
|
|
27
|
+
this.componentIds = config.componentIds ? [...config.componentIds] : undefined;
|
|
27
28
|
}
|
|
28
29
|
/**
|
|
29
30
|
* Get the props for the AgentChat component
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocksdiy/blocks-client-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Blocks client sdk",
|
|
6
6
|
"keywords": [],
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@tanstack/react-query": "^5.101.0",
|
|
50
|
-
"@blocksdiy/blocks-client-api": "1.
|
|
51
|
-
"@blocksdiy/react-common": "1.
|
|
50
|
+
"@blocksdiy/blocks-client-api": "1.5.0",
|
|
51
|
+
"@blocksdiy/react-common": "1.43.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"tsc-alias": "^1.8.10",
|