@ai-sdk/svelte 3.0.0-canary.13 → 3.0.0-canary.14

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @ai-sdk/svelte
2
2
 
3
+ ## 3.0.0-canary.14
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [d9209ca]
8
+ - Updated dependencies [ea27cc6]
9
+ - Updated dependencies [0ff02bb]
10
+ - Updated dependencies [4bfe9ec]
11
+ - Updated dependencies [2877a74]
12
+ - ai@5.0.0-canary.15
13
+ - @ai-sdk/provider-utils@3.0.0-canary.13
14
+
3
15
  ## 3.0.0-canary.13
4
16
 
5
17
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"chat.svelte.d.ts","sourceRoot":"","sources":["../src/chat.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,SAAS,EAKd,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,kBAAkB,EAKxB,MAAM,IAAI,CAAC;AASZ,MAAM,MAAM,WAAW,GAAG,QAAQ,CAChC,IAAI,CAAC,cAAc,EAAE,wBAAwB,CAAC,GAAG;IAC/C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CACF,CAAC;AAEF,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AAElD,qBAAa,IAAI;;IAOf;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAoD;IAI/D;;;;OAIG;IACH,IAAI,IAAI,IAGQ,SAAS,EAAE,GAAG,SAAS,CADtC;IACD,IAAI,IAAI,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,SAAS,EAEtC;IAED;;;;;;;OAOG;IACH,IAAI,MAAM,kDAET;IAED,0CAA0C;IAC1C,IAAI,KAAK,sBAER;IAED,mFAAmF;IAC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IAAI,KAAK,sBAER;IAED,mFAAmF;IACnF,KAAK,SAAqB;IAE1B;;;;;OAKG;IACH,IAAI,QAAQ,IAAI,SAAS,EAAE,CAE1B;IACD,IAAI,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,EAE5B;gBAEW,OAAO,GAAE,WAAgB;IAYrC;;;;;OAKG;IACH,MAAM,YACK,OAAO,GAAG,aAAa,sDACmB,kBAAkB,mBAgBrE;IAEF;;;;OAIG;IACH,MAAM,6BAAmC,kBAAkB,mBAezD;IAEF;;OAEG;IACH,IAAI,aASF;IAEF,qFAAqF;IACrF,YAAY,WACF;QAAE,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;KAAE,YAC9B,kBAAkB,mBA6B3B;IAEF,aAAa,4BAGV;QACD,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,OAAO,CAAC;KACjB,mBAmBC;CAiHH"}
@@ -171,13 +171,12 @@ export class Chat {
171
171
  this.messages = messages;
172
172
  const constructedMessagesPayload = this.#options.sendExtraMessageFields
173
173
  ? messages
174
- : messages.map(({ role, content, experimental_attachments, data, annotations, toolInvocations, parts, }) => ({
174
+ : messages.map(({ role, content, experimental_attachments, annotations, toolInvocations, parts, }) => ({
175
175
  role,
176
176
  content,
177
177
  ...(experimental_attachments !== undefined && {
178
178
  experimental_attachments,
179
179
  }),
180
- ...(data !== undefined && { data }),
181
180
  ...(annotations !== undefined && { annotations }),
182
181
  ...(toolInvocations !== undefined && { toolInvocations }),
183
182
  ...(parts !== undefined && { parts }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/svelte",
3
- "version": "3.0.0-canary.13",
3
+ "version": "3.0.0-canary.14",
4
4
  "license": "Apache-2.0",
5
5
  "files": [
6
6
  "dist",
@@ -36,8 +36,8 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "ai": "5.0.0-canary.14",
40
- "@ai-sdk/provider-utils": "3.0.0-canary.12"
39
+ "ai": "5.0.0-canary.15",
40
+ "@ai-sdk/provider-utils": "3.0.0-canary.13"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "20.17.24",
@@ -258,7 +258,6 @@ export class Chat {
258
258
  role,
259
259
  content,
260
260
  experimental_attachments,
261
- data,
262
261
  annotations,
263
262
  toolInvocations,
264
263
  parts,
@@ -268,7 +267,6 @@ export class Chat {
268
267
  ...(experimental_attachments !== undefined && {
269
268
  experimental_attachments,
270
269
  }),
271
- ...(data !== undefined && { data }),
272
270
  ...(annotations !== undefined && { annotations }),
273
271
  ...(toolInvocations !== undefined && { toolInvocations }),
274
272
  ...(parts !== undefined && { parts }),
@@ -1,14 +0,0 @@
1
- import type { JSONValue, UIMessage } from 'ai';
2
- import { KeyedStore } from './utils.svelte.js';
3
- declare class ChatStore {
4
- messages: UIMessage[];
5
- data: JSONValue[] | undefined;
6
- status: "submitted" | "streaming" | "ready" | "error";
7
- error: Error | undefined;
8
- }
9
- export declare class KeyedChatStore extends KeyedStore<ChatStore> {
10
- constructor(value?: Iterable<readonly [string, ChatStore]> | null | undefined);
11
- }
12
- export declare const hasChatContext: () => boolean, getChatContext: () => KeyedChatStore, setChatContext: (value: KeyedChatStore) => KeyedChatStore;
13
- export {};
14
- //# sourceMappingURL=chat-context.svelte.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat-context.svelte.d.ts","sourceRoot":"","sources":["../src/chat-context.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAC/C,OAAO,EAAiB,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE9D,cAAM,SAAS;IACb,QAAQ,cAA2B;IACnC,IAAI,0BAAyB;IAC7B,MAAM,gDAAkE;IACxE,KAAK,oBAAmB;CACzB;AAED,qBAAa,cAAe,SAAQ,UAAU,CAAC,SAAS,CAAC;gBAErD,KAAK,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS;CAIpE;AAED,eAAO,MACO,cAAc,iBACd,cAAc,wBACd,cAAc,2CACa,CAAC"}
@@ -1,15 +0,0 @@
1
- import type { JSONValue } from 'ai';
2
- import { SvelteMap } from 'svelte/reactivity';
3
- import { KeyedStore } from './utils.svelte.js';
4
- declare class CompletionStore {
5
- completions: SvelteMap<string, string>;
6
- data: JSONValue[];
7
- loading: boolean;
8
- error: Error | undefined;
9
- }
10
- export declare class KeyedCompletionStore extends KeyedStore<CompletionStore> {
11
- constructor(value?: Iterable<readonly [string, CompletionStore]> | null | undefined);
12
- }
13
- export declare const hasCompletionContext: () => boolean, getCompletionContext: () => KeyedCompletionStore, setCompletionContext: (value: KeyedCompletionStore) => KeyedCompletionStore;
14
- export {};
15
- //# sourceMappingURL=completion-context.svelte.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"completion-context.svelte.d.ts","sourceRoot":"","sources":["../src/completion-context.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAiB,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE9D,cAAM,eAAe;IACnB,WAAW,4BAAmC;IAC9C,IAAI,cAA2B;IAC/B,OAAO,UAAiB;IACxB,KAAK,oBAAmB;CACzB;AAED,qBAAa,oBAAqB,SAAQ,UAAU,CAAC,eAAe,CAAC;gBAEjE,KAAK,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS;CAI1E;AAED,eAAO,MACO,oBAAoB,iBACpB,oBAAoB,8BACpB,oBAAoB,uDACmB,CAAC"}