@copilotkit/react-core 2.0.0-rc.59 → 2.0.0-rc.60

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.
@@ -0,0 +1,5 @@
1
+ /*
2
+ * @copilotkit/react-core/v2/styles.css
3
+ * is deprecated, and it is empty. The CopilotKit 2.0 components add
4
+ * their own styles. Delete the import.
5
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@copilotkit/react-core",
3
- "version": "2.0.0-rc.59",
3
+ "version": "2.0.0-rc.60",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "ai",
@@ -50,6 +50,21 @@
50
50
  ],
51
51
  "headless": [
52
52
  "./dist/headless.d.cts"
53
+ ],
54
+ "v2": [
55
+ "./dist/v2/index.d.cts"
56
+ ],
57
+ "v2/generative-ui": [
58
+ "./dist/v2/generative-ui.d.cts"
59
+ ],
60
+ "v2/generative-ui/native": [
61
+ "./dist/v2/generative-ui/native.d.cts"
62
+ ],
63
+ "v2/context": [
64
+ "./dist/v2/context.d.cts"
65
+ ],
66
+ "v2/headless": [
67
+ "./dist/v2/headless.d.cts"
53
68
  ]
54
69
  }
55
70
  },
@@ -78,7 +93,58 @@
78
93
  "./headless": {
79
94
  "import": "./dist/headless.mjs",
80
95
  "require": "./dist/headless.cjs"
81
- }
96
+ },
97
+ "./v2": {
98
+ "import": {
99
+ "types": "./dist/v2/index.d.mts",
100
+ "default": "./dist/index.mjs"
101
+ },
102
+ "require": {
103
+ "types": "./dist/v2/index.d.cts",
104
+ "default": "./dist/index.cjs"
105
+ }
106
+ },
107
+ "./v2/generative-ui": {
108
+ "import": {
109
+ "types": "./dist/v2/generative-ui.d.mts",
110
+ "default": "./dist/generative-ui.mjs"
111
+ },
112
+ "require": {
113
+ "types": "./dist/v2/generative-ui.d.cts",
114
+ "default": "./dist/generative-ui.cjs"
115
+ }
116
+ },
117
+ "./v2/generative-ui/native": {
118
+ "import": {
119
+ "types": "./dist/v2/generative-ui/native.d.mts",
120
+ "default": "./dist/generative-ui/native.mjs"
121
+ },
122
+ "require": {
123
+ "types": "./dist/v2/generative-ui/native.d.cts",
124
+ "default": "./dist/generative-ui/native.cjs"
125
+ }
126
+ },
127
+ "./v2/context": {
128
+ "import": {
129
+ "types": "./dist/v2/context.d.mts",
130
+ "default": "./dist/context.mjs"
131
+ },
132
+ "require": {
133
+ "types": "./dist/v2/context.d.cts",
134
+ "default": "./dist/context.cjs"
135
+ }
136
+ },
137
+ "./v2/headless": {
138
+ "import": {
139
+ "types": "./dist/v2/headless.d.mts",
140
+ "default": "./dist/headless.mjs"
141
+ },
142
+ "require": {
143
+ "types": "./dist/v2/headless.d.cts",
144
+ "default": "./dist/headless.cjs"
145
+ }
146
+ },
147
+ "./v2/styles.css": "./dist/v2/styles.css"
82
148
  },
83
149
  "publishConfig": {
84
150
  "access": "public"
@@ -86,12 +152,12 @@
86
152
  "dependencies": {
87
153
  "@ag-ui/client": "1.0.4",
88
154
  "@ag-ui/core": "1.0.4",
89
- "@copilotkit/core": "2.0.0-rc.59",
90
- "@copilotkit/markdown": "2.0.0-rc.59",
91
- "@copilotkit/mcp-apps-renderer": "2.0.0-rc.59",
92
- "@copilotkit/shared": "2.0.0-rc.59",
93
- "@copilotkit/web-components": "2.0.0-rc.59",
94
- "@copilotkit/web-inspector": "2.0.0-rc.59",
155
+ "@copilotkit/core": "2.0.0-rc.60",
156
+ "@copilotkit/markdown": "2.0.0-rc.60",
157
+ "@copilotkit/mcp-apps-renderer": "2.0.0-rc.60",
158
+ "@copilotkit/shared": "2.0.0-rc.60",
159
+ "@copilotkit/web-components": "2.0.0-rc.60",
160
+ "@copilotkit/web-inspector": "2.0.0-rc.60",
95
161
  "@radix-ui/react-dropdown-menu": "^2.1.15",
96
162
  "@radix-ui/react-popover": "^1.1.15",
97
163
  "@radix-ui/react-tooltip": "^1.2.7",
@@ -150,7 +216,7 @@
150
216
  }
151
217
  },
152
218
  "scripts": {
153
- "build": "node scripts/generate-external-reexports.mjs --check && tsdown && node scripts/context-singleton-preflight.mjs && node scripts/assert-dist-context-types.mjs",
219
+ "build": "node scripts/generate-external-reexports.mjs --check && tsdown && tsx ../../scripts/deprecations/v2-subpath-aliases.mts && node scripts/context-singleton-preflight.mjs && node scripts/assert-dist-context-types.mjs",
154
220
  "size": "size-limit",
155
221
  "size:headline": "node scripts/measure-copilotchat.mjs",
156
222
  "size:assert-headless": "node scripts/assert-headless-purity.mjs",
@@ -164,7 +230,7 @@
164
230
  "link:global": "pnpm link --global",
165
231
  "unlink:global": "pnpm unlink --global",
166
232
  "publint": "publint .",
167
- "attw": "attw --pack . --profile node16",
233
+ "attw": "attw --pack . --profile node16 --exclude-entrypoints ./v2/styles.css",
168
234
  "generate:external-reexports": "node scripts/generate-external-reexports.mjs",
169
235
  "test:browser-scroll": "node --test browser-tests/hidden-chat-scroll.test.mjs browser-tests/stylesheet-layers.test.mjs",
170
236
  "test:browser": "playwright test --config browser/playwright.config.ts"