@copilotkit/react-core 0.2.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.
@@ -0,0 +1,19 @@
1
+
2
+ > @copilotkit/react-core@0.1.0 build /Users/ataibarkai/LocalGit/Recursively.ai/CopilotKit2/packages/react-core
3
+ > tsup --format cjs --dts
4
+
5
+ CLI Building entry: src/hook.tsx, src/index.tsx
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v6.5.0
8
+ CLI Using tsup config: /Users/ataibarkai/LocalGit/Recursively.ai/CopilotKit2/packages/react-core/tsup.config.ts
9
+ CLI Target: es6
10
+ CLI Cleaning output folder
11
+ CJS Build start
12
+ CJS dist/chunk-KFCOT2YX.js 531.00 B
13
+ CJS dist/hook.js 190.00 B
14
+ CJS dist/index.js 190.00 B
15
+ CJS ⚡️ Build success in 21ms
16
+ DTS Build start
17
+ DTS ⚡️ Build success in 284ms
18
+ DTS dist/hook.d.ts 57.00 B
19
+ DTS dist/index.d.ts 38.00 B
package/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # ui
2
+
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - react core initialization
8
+
9
+ ## 0.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - initial
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ var t = require('react');
4
+
5
+ function _interopNamespaceDefault(e) {
6
+ var n = Object.create(null);
7
+ if (e) {
8
+ Object.keys(e).forEach(function (k) {
9
+ if (k !== 'default') {
10
+ var d = Object.getOwnPropertyDescriptor(e, k);
11
+ Object.defineProperty(n, k, d.get ? d : {
12
+ enumerable: true,
13
+ get: function () { return e[k]; }
14
+ });
15
+ }
16
+ });
17
+ }
18
+ n.default = e;
19
+ return Object.freeze(n);
20
+ }
21
+
22
+ var t__namespace = /*#__PURE__*/_interopNamespaceDefault(t);
23
+
24
+ function u(){t__namespace.useState(0);}
25
+
26
+ exports.a = u;
package/dist/hook.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ declare function useTurbo(): void;
2
+
3
+ export { useTurbo };
package/dist/hook.js ADDED
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var chunkKFCOT2YX_js = require('./chunk-KFCOT2YX.js');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, 'useTurbo', {
8
+ enumerable: true,
9
+ get: function () { return chunkKFCOT2YX_js.a; }
10
+ });
@@ -0,0 +1 @@
1
+ export { useTurbo } from './hook.js';
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var chunkKFCOT2YX_js = require('./chunk-KFCOT2YX.js');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, 'useTurbo', {
8
+ enumerable: true,
9
+ get: function () { return chunkKFCOT2YX_js.a; }
10
+ });
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@copilotkit/react-core",
3
+ "private": false,
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "version": "0.2.0",
8
+ "sideEffects": [
9
+ "**/*.css"
10
+ ],
11
+ "types": "./dist/index.d.ts",
12
+ "exports": {
13
+ ".": "./dist",
14
+ "./styles.css": "./dist/index.css"
15
+ },
16
+ "license": "MIT",
17
+ "peerDependencies": {
18
+ "react": "^18.2.0"
19
+ },
20
+ "devDependencies": {
21
+ "@types/react": "^18.2.5",
22
+ "eslint": "^7.32.0",
23
+ "react": "^18.2.0",
24
+ "tsup": "^6.1.3",
25
+ "typescript": "^4.9.4",
26
+ "eslint-config-custom": "0.0.0",
27
+ "tsconfig": "0.0.0"
28
+ },
29
+ "scripts": {
30
+ "build": "tsup --format cjs --dts",
31
+ "dev": "tsup --watch",
32
+ "check-types": "tsc --noEmit"
33
+ }
34
+ }
package/src/hook.tsx ADDED
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+
3
+ export function useTurbo() {
4
+ const [num, setNum] = React.useState(0);
5
+ }
package/src/index.tsx ADDED
@@ -0,0 +1,2 @@
1
+ // components
2
+ export * from "./hook";
package/tsconfig.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "extends": "tsconfig/react-library.json",
3
+ "include": ["."],
4
+ "exclude": ["dist", "build", "node_modules"]
5
+ }
package/tsup.config.ts ADDED
@@ -0,0 +1,13 @@
1
+ import { defineConfig, Options } from "tsup";
2
+
3
+ export default defineConfig((options: Options) => ({
4
+ treeshake: true,
5
+ splitting: true,
6
+ entry: ["src/**/*.tsx"],
7
+ format: ["esm"],
8
+ dts: true,
9
+ minify: true,
10
+ clean: true,
11
+ external: ["react"],
12
+ ...options,
13
+ }));