@nextclaw/ncp-react 0.3.6 → 0.4.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/index.d.ts CHANGED
@@ -42,7 +42,7 @@ type NcpDraftAttachment = {
42
42
  name: string;
43
43
  mimeType: string;
44
44
  sizeBytes: number;
45
- attachmentUri?: string;
45
+ assetUri?: string;
46
46
  url?: string;
47
47
  contentBase64?: string;
48
48
  };
package/dist/index.js CHANGED
@@ -305,7 +305,7 @@ function buildNcpRequestEnvelope(params) {
305
305
  type: "file",
306
306
  name: attachment.name,
307
307
  mimeType: attachment.mimeType,
308
- ...attachment.attachmentUri?.trim() ? { attachmentUri: attachment.attachmentUri.trim() } : {},
308
+ ...attachment.assetUri?.trim() ? { assetUri: attachment.assetUri.trim() } : {},
309
309
  ...attachment.url?.trim() ? { url: attachment.url.trim() } : {},
310
310
  ...attachment.contentBase64?.trim() ? { contentBase64: attachment.contentBase64.trim() } : {},
311
311
  sizeBytes: attachment.sizeBytes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/ncp-react",
3
- "version": "0.3.6",
3
+ "version": "0.4.0",
4
4
  "private": false,
5
5
  "description": "React bindings for building NCP-based agent applications.",
6
6
  "type": "module",
@@ -15,8 +15,8 @@
15
15
  "dist"
16
16
  ],
17
17
  "dependencies": {
18
- "@nextclaw/ncp-toolkit": "0.4.3",
19
- "@nextclaw/ncp": "0.3.3"
18
+ "@nextclaw/ncp-toolkit": "0.4.4",
19
+ "@nextclaw/ncp": "0.4.0"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "react": "^18.0.0 || ^19.0.0"