@assistant-ui/react 0.0.21 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Simon Farshid
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { FC, ReactNode, PropsWithChildren, ComponentType } from 'react';
3
3
  import { TextareaAutosizeProps } from 'react-textarea-autosize';
4
- import { UseChatHelpers, UseAssistantHelpers } from 'ai/react';
4
+ import { UseChatHelpers, UseAssistantHelpers } from '@ai-sdk/react';
5
5
  import { Message, LanguageModel } from 'ai';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { UseBoundStore, StoreApi } from 'zustand';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { FC, ReactNode, PropsWithChildren, ComponentType } from 'react';
3
3
  import { TextareaAutosizeProps } from 'react-textarea-autosize';
4
- import { UseChatHelpers, UseAssistantHelpers } from 'ai/react';
4
+ import { UseChatHelpers, UseAssistantHelpers } from '@ai-sdk/react';
5
5
  import { Message, LanguageModel } from 'ai';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { UseBoundStore, StoreApi } from 'zustand';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assistant-ui/react",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": {
@@ -18,11 +18,11 @@
18
18
  "main": "./dist/index.js",
19
19
  "module": "./dist/index.mjs",
20
20
  "types": "./dist/index.d.ts",
21
- "files": ["dist", "README.md"],
21
+ "files": [
22
+ "dist",
23
+ "README.md"
24
+ ],
22
25
  "sideEffects": false,
23
- "scripts": {
24
- "build": "tsup src/index.ts --format cjs,esm --dts"
25
- },
26
26
  "dependencies": {
27
27
  "@radix-ui/primitive": "^1.0.1",
28
28
  "@radix-ui/react-compose-refs": "^1.0.1",
@@ -34,11 +34,15 @@
34
34
  "zustand": "^4.5.2"
35
35
  },
36
36
  "peerDependencies": {
37
+ "@ai-sdk/react": "^0.0.x",
37
38
  "@types/react": "*",
38
- "ai": "^3",
39
+ "ai": "^3.1.31",
39
40
  "react": "^18"
40
41
  },
41
42
  "peerDependenciesMeta": {
43
+ "@ai-sdk/react": {
44
+ "optional": true
45
+ },
42
46
  "@types/react": {
43
47
  "optional": true
44
48
  },
@@ -50,9 +54,9 @@
50
54
  "access": "public"
51
55
  },
52
56
  "devDependencies": {
53
- "@assistant-ui/tsconfig": "workspace:*",
54
57
  "@types/node": "^20.14.2",
55
- "tsup": "^8.1.0"
58
+ "tsup": "^8.1.0",
59
+ "@assistant-ui/tsconfig": "0.0.0"
56
60
  },
57
61
  "homepage": "https://assistant-ui.com/",
58
62
  "repository": {
@@ -61,5 +65,8 @@
61
65
  },
62
66
  "bugs": {
63
67
  "url": "https://github.com/Yonom/assistant-ui/issues"
68
+ },
69
+ "scripts": {
70
+ "build": "tsup src/index.ts --format cjs,esm --dts"
64
71
  }
65
- }
72
+ }