@blocksdiy/blocks-client-sdk 1.6.1 → 1.7.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.
@@ -10,6 +10,7 @@ export interface AgentChatConfig {
10
10
  agentChatId: string;
11
11
  agentId?: string;
12
12
  agentHarness?: string;
13
+ componentIds?: string[];
13
14
  }
14
15
  /**
15
16
  * AgentChat class for interacting with the agent chat
@@ -25,6 +26,7 @@ export declare class AgentChat<ACC extends AgentChatConfig = AgentChatConfig> {
25
26
  private appId;
26
27
  private token?;
27
28
  private agentHarness?;
29
+ private componentIds?;
28
30
  /**
29
31
  * Creates a new AgentChat instance
30
32
  * @param {ACC} config - Configuration for the agent chat
@@ -41,6 +43,7 @@ export declare class AgentChat<ACC extends AgentChatConfig = AgentChatConfig> {
41
43
  agentChatId: string;
42
44
  agentId: string | undefined;
43
45
  agentHarness: string | undefined;
46
+ componentIds: string[] | undefined;
44
47
  appId: string;
45
48
  token: string | undefined;
46
49
  };
@@ -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;CACvB;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;;;OAGG;gBACS,MAAM,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;IAQ5E;;;OAGG;IACH,0BAA0B;;;;;;;CAS3B"}
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;CACzB;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;IAS5E;;;OAGG;IACH,0BAA0B;;;;;;;;CAU3B"}
package/dist/AgentChat.js CHANGED
@@ -12,6 +12,7 @@ export class AgentChat {
12
12
  appId;
13
13
  token;
14
14
  agentHarness;
15
+ componentIds;
15
16
  /**
16
17
  * Creates a new AgentChat instance
17
18
  * @param {ACC} config - Configuration for the agent chat
@@ -22,6 +23,7 @@ export class AgentChat {
22
23
  this.appId = appId;
23
24
  this.token = token;
24
25
  this.agentHarness = config.agentHarness;
26
+ this.componentIds = config.componentIds;
25
27
  }
26
28
  /**
27
29
  * Get the props for the AgentChat component
@@ -32,6 +34,7 @@ export class AgentChat {
32
34
  agentChatId: this.agentChatId,
33
35
  agentId: this.agentId,
34
36
  agentHarness: this.agentHarness,
37
+ componentIds: this.componentIds,
35
38
  appId: this.appId,
36
39
  token: this.token,
37
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocksdiy/blocks-client-sdk",
3
- "version": "1.6.1",
3
+ "version": "1.7.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.90.21",
50
- "@blocksdiy/react-common": "1.22.1",
51
- "@blocksdiy/blocks-client-api": "1.5.0"
50
+ "@blocksdiy/blocks-client-api": "1.5.0",
51
+ "@blocksdiy/react-common": "1.24.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "tsc-alias": "^1.8.10",