@copilotkit/react-ui 1.51.3-next.7 → 1.51.3
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 +23 -0
- package/dist/index.umd.js +28 -0
- package/dist/index.umd.js.map +1 -0
- package/package.json +10 -8
- package/rollup.config.mjs +64 -0
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"version": "1.51.3
|
|
12
|
+
"version": "1.51.3",
|
|
13
13
|
"sideEffects": [
|
|
14
14
|
"**/*.css"
|
|
15
15
|
],
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
"./styles.css": "./dist/index.css",
|
|
25
25
|
"./v2/styles.css": "./dist/v2/index.css"
|
|
26
26
|
},
|
|
27
|
+
"unpkg": "./dist/index.umd.js",
|
|
28
|
+
"jsdelivr": "./dist/index.umd.js",
|
|
27
29
|
"types": "./dist/index.d.ts",
|
|
28
30
|
"license": "MIT",
|
|
29
31
|
"peerDependencies": {
|
|
@@ -41,9 +43,9 @@
|
|
|
41
43
|
"ts-jest": "^29.1.1",
|
|
42
44
|
"tsup": "^6.7.0",
|
|
43
45
|
"typescript": "^5.2.3",
|
|
44
|
-
"eslint-config-custom": "1.4.
|
|
45
|
-
"tailwind-config": "1.4.
|
|
46
|
-
"tsconfig": "1.4.
|
|
46
|
+
"eslint-config-custom": "1.4.7",
|
|
47
|
+
"tailwind-config": "1.4.7",
|
|
48
|
+
"tsconfig": "1.4.7"
|
|
47
49
|
},
|
|
48
50
|
"dependencies": {
|
|
49
51
|
"@headlessui/react": "^2.2.9",
|
|
@@ -52,9 +54,9 @@
|
|
|
52
54
|
"rehype-raw": "^7.0.0",
|
|
53
55
|
"remark-gfm": "^4.0.1",
|
|
54
56
|
"remark-math": "^6.0.0",
|
|
55
|
-
"@copilotkit/react-core": "1.51.3
|
|
56
|
-
"@copilotkit/runtime-client-gql": "1.51.3
|
|
57
|
-
"@copilotkit/shared": "1.51.3
|
|
57
|
+
"@copilotkit/react-core": "1.51.3",
|
|
58
|
+
"@copilotkit/runtime-client-gql": "1.51.3",
|
|
59
|
+
"@copilotkit/shared": "1.51.3"
|
|
58
60
|
},
|
|
59
61
|
"keywords": [
|
|
60
62
|
"copilotkit",
|
|
@@ -69,7 +71,7 @@
|
|
|
69
71
|
"textarea"
|
|
70
72
|
],
|
|
71
73
|
"scripts": {
|
|
72
|
-
"build": "tsup --clean",
|
|
74
|
+
"build": "tsup --clean && rollup -c rollup.config.mjs",
|
|
73
75
|
"dev": "tsup --watch --no-splitting",
|
|
74
76
|
"test": "jest",
|
|
75
77
|
"check-types": "tsc --noEmit",
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
2
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
3
|
+
import typescript from '@rollup/plugin-typescript';
|
|
4
|
+
import terser from '@rollup/plugin-terser';
|
|
5
|
+
import json from '@rollup/plugin-json';
|
|
6
|
+
import postcss from 'rollup-plugin-postcss';
|
|
7
|
+
|
|
8
|
+
function onwarn(warning, warn) {
|
|
9
|
+
// Ignore circular dependency warnings from node_modules
|
|
10
|
+
if (warning.code === 'CIRCULAR_DEPENDENCY' && warning.ids?.some(id => id.includes('node_modules'))) return;
|
|
11
|
+
// Ignore "this" rewritten to "undefined" warnings from node_modules
|
|
12
|
+
if (warning.code === 'THIS_IS_UNDEFINED' && warning.id?.includes('node_modules')) return;
|
|
13
|
+
// Ignore TypeScript plugin warnings (module mismatch, tslib, type errors during UMD build)
|
|
14
|
+
if (warning.code === 'PLUGIN_WARNING' && warning.plugin === 'typescript') return;
|
|
15
|
+
// Ignore "use client" directive warnings (expected for React Server Components)
|
|
16
|
+
if (warning.code === 'MODULE_LEVEL_DIRECTIVE' && warning.message?.includes('"use client"')) return;
|
|
17
|
+
warn(warning);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default {
|
|
21
|
+
input: 'src/index.tsx',
|
|
22
|
+
output: {
|
|
23
|
+
file: 'dist/index.umd.js',
|
|
24
|
+
format: 'umd',
|
|
25
|
+
name: 'CopilotKitReactUI',
|
|
26
|
+
sourcemap: true,
|
|
27
|
+
inlineDynamicImports: true,
|
|
28
|
+
globals: {
|
|
29
|
+
'react': 'React',
|
|
30
|
+
'react-dom': 'ReactDOM',
|
|
31
|
+
'@copilotkit/react-core': 'CopilotKitReactCore',
|
|
32
|
+
'@copilotkit/shared': 'CopilotKitShared',
|
|
33
|
+
'@copilotkit/runtime-client-gql': 'CopilotKitRuntimeClientGQL',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
external: [
|
|
37
|
+
'react',
|
|
38
|
+
'react-dom',
|
|
39
|
+
'@copilotkit/react-core',
|
|
40
|
+
'@copilotkit/shared',
|
|
41
|
+
'@copilotkit/runtime-client-gql',
|
|
42
|
+
],
|
|
43
|
+
onwarn,
|
|
44
|
+
plugins: [
|
|
45
|
+
postcss({ inject: true, minimize: true }),
|
|
46
|
+
resolve({ browser: true }),
|
|
47
|
+
commonjs(),
|
|
48
|
+
json(),
|
|
49
|
+
typescript({
|
|
50
|
+
tsconfig: './tsconfig.json',
|
|
51
|
+
declaration: false,
|
|
52
|
+
declarationMap: false,
|
|
53
|
+
declarationDir: undefined,
|
|
54
|
+
compilerOptions: {
|
|
55
|
+
declaration: false,
|
|
56
|
+
declarationMap: false,
|
|
57
|
+
declarationDir: undefined,
|
|
58
|
+
target: 'ES2017',
|
|
59
|
+
module: 'ESNext',
|
|
60
|
+
},
|
|
61
|
+
}),
|
|
62
|
+
terser(),
|
|
63
|
+
],
|
|
64
|
+
};
|