@brainfish-ai/widgets-initiator 0.1.1-beta → 0.5.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.
- package/LICENSE +21 -0
- package/README.md +94 -34
- package/components.json +16 -0
- package/dist/esm/index.css +4 -0
- package/dist/esm/index.css.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/index.d.ts +801 -0
- package/package.json +141 -32
- package/package.json.bak +153 -0
- package/stats.html +4949 -0
- package/tailwind.config.js +140 -0
- package/.prettierignore +0 -7
- package/.prettierrc +0 -6
- package/dist/web.cjs.js +0 -2
- package/dist/web.cjs.js.map +0 -1
- package/dist/web.js +0 -2
- package/dist/web.js.map +0 -1
- package/index.html +0 -63
- package/postcss.config.cjs +0 -6
- package/src/register.ts +0 -31
- package/src/web.ts +0 -104
- package/tailwind.config.cjs +0 -9
- package/tsconfig.json +0 -14
- package/vite.config.ts +0 -33
package/package.json
CHANGED
|
@@ -1,44 +1,153 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainfish-ai/widgets-initiator",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "Brainfish Components",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"module": "./dist/esm/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
7
8
|
"type": "module",
|
|
8
|
-
"
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/esm/index.js",
|
|
13
|
+
"default": "./dist/esm/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./styles.css": "./dist/esm/index.css"
|
|
16
|
+
},
|
|
17
|
+
"sideEffects": [
|
|
18
|
+
"**/*.css"
|
|
19
|
+
],
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=18"
|
|
22
|
+
},
|
|
9
23
|
"scripts": {
|
|
10
|
-
"start": "
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
24
|
+
"start": "NODE_ENV=development BABEL_ENV=development yarn storybook",
|
|
25
|
+
"build": "rimraf dist && NODE_ENV=production BABEL_ENV=production rollup -c",
|
|
26
|
+
"watch": "rollup -c -w",
|
|
27
|
+
"lint": "yarn check-types && yarn eslint",
|
|
28
|
+
"lint:fix": "yarn eslint:fix",
|
|
29
|
+
"eslint": "eslint . --ext .js,.jsx,.tsx,.ts",
|
|
30
|
+
"eslint:fix": "eslint . --ext .js,.jsx,.tsx,.ts --fix",
|
|
31
|
+
"check-types": "tsc --noEmit true",
|
|
32
|
+
"ci": "yarn lint && yarn test --watch=false",
|
|
33
|
+
"test": "vitest --config ./vitest.config.ts",
|
|
34
|
+
"release": "yarn ci && yarn build && npm publish",
|
|
35
|
+
"storybook": "storybook dev -p 6006",
|
|
36
|
+
"storybook:build": "storybook build",
|
|
37
|
+
"storybook:deploy": "yarn storybook:build && touch ./storybook-static/.nojekyll && gh-pages -d ./storybook-static -t true"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"@phosphor-icons/react": "^2.1.7",
|
|
41
|
+
"class-variance-authority": "^0.7.0",
|
|
42
|
+
"clsx": "2.x",
|
|
43
|
+
"date-fns": "^4.1.0",
|
|
44
|
+
"path-to-regexp": "^8.2.0",
|
|
45
|
+
"react": "^18.2.0",
|
|
46
|
+
"react-dom": "^18.2.0",
|
|
47
|
+
"tailwind-merge": "^2.0.0",
|
|
48
|
+
"tailwindcss-animate": "^1.0.7"
|
|
14
49
|
},
|
|
15
|
-
"license": "MIT",
|
|
16
50
|
"devDependencies": {
|
|
17
|
-
"@
|
|
18
|
-
"@
|
|
19
|
-
"
|
|
51
|
+
"@radix-ui/react-slot": "^1.1.2",
|
|
52
|
+
"@rollup/plugin-alias": "^5.1.1",
|
|
53
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
54
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
55
|
+
"@rollup/plugin-typescript": "^11.1.5",
|
|
56
|
+
"@rollup/plugin-url": "^8.0.2",
|
|
57
|
+
"@storybook/addon-docs": "^8.6.12",
|
|
58
|
+
"@storybook/addon-essentials": "^8.6.12",
|
|
59
|
+
"@storybook/addon-interactions": "^8.6.12",
|
|
60
|
+
"@storybook/addon-links": "^8.6.12",
|
|
61
|
+
"@storybook/addon-onboarding": "^8.6.12",
|
|
62
|
+
"@storybook/addon-styling": "^1.3.7",
|
|
63
|
+
"@storybook/addon-themes": "^8.6.12",
|
|
64
|
+
"@storybook/blocks": "^8.6.12",
|
|
65
|
+
"@storybook/react": "^8.6.12",
|
|
66
|
+
"@storybook/react-vite": "^8.6.12",
|
|
67
|
+
"@storybook/test": "^8.6.12",
|
|
68
|
+
"@svgr/rollup": "^8.1.0",
|
|
69
|
+
"@tailwindcss/container-queries": "^0.1.1",
|
|
70
|
+
"@testing-library/jest-dom": "^6.1.4",
|
|
71
|
+
"@testing-library/react": "^14.0.0",
|
|
72
|
+
"@testing-library/user-event": "^14.5.1",
|
|
73
|
+
"@types/mermaid": "^9.2.0",
|
|
74
|
+
"@types/node": "^20.8.10",
|
|
75
|
+
"@types/react": "^18.2.34",
|
|
76
|
+
"@types/react-dom": "^18.2.14",
|
|
77
|
+
"@types/react-syntax-highlighter": "^15.5.13",
|
|
78
|
+
"@typescript-eslint/eslint-plugin": "latest",
|
|
79
|
+
"@typescript-eslint/parser": "latest",
|
|
20
80
|
"autoprefixer": "^10.4.16",
|
|
21
|
-
"
|
|
81
|
+
"class-variance-authority": "0.7.0",
|
|
82
|
+
"clsx": "^2.0.0",
|
|
83
|
+
"date-fns": "^4.1.0",
|
|
84
|
+
"eslint": "^8.52.0",
|
|
85
|
+
"eslint-config-prettier": "^9.0.0",
|
|
86
|
+
"eslint-plugin-import": "^2.29.0",
|
|
87
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
88
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
89
|
+
"eslint-plugin-react": "^7.33.2",
|
|
90
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
91
|
+
"eslint-plugin-react-refresh": "^0.4.4",
|
|
92
|
+
"eslint-plugin-storybook": "^0.12.0",
|
|
93
|
+
"gh-pages": "^6.0.0",
|
|
94
|
+
"jsdom": "^22.1.0",
|
|
95
|
+
"path-to-regexp": "^8.2.0",
|
|
22
96
|
"postcss": "^8.4.31",
|
|
97
|
+
"postcss-scss": "^4.0.9",
|
|
98
|
+
"prettier": "3.0.3",
|
|
99
|
+
"react": "^18.2.0",
|
|
100
|
+
"react-dom": "^18.2.0",
|
|
101
|
+
"regenerator-runtime": "^0.14.0",
|
|
102
|
+
"rimraf": "^5.0.5",
|
|
103
|
+
"rollup": "^4.3.0",
|
|
104
|
+
"rollup-plugin-cleanup": "^3.2.1",
|
|
105
|
+
"rollup-plugin-dts": "^6.1.0",
|
|
106
|
+
"rollup-plugin-filesize": "^10.0.0",
|
|
107
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
108
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
23
109
|
"rollup-plugin-terser": "^7.0.2",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
110
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
111
|
+
"storybook": "^8.6.12",
|
|
112
|
+
"tailwind-merge": "^2.0.0",
|
|
113
|
+
"tailwindcss": "^3.4.1",
|
|
114
|
+
"tailwindcss-animate": "^1.0.7",
|
|
115
|
+
"tslib": "^2.6.2",
|
|
116
|
+
"typescript": "5.2.2",
|
|
26
117
|
"vite": "^4.5.0",
|
|
27
|
-
"vite-plugin-
|
|
118
|
+
"vite-plugin-svgr": "^4.1.0",
|
|
119
|
+
"vitest": "^0.34.6"
|
|
28
120
|
},
|
|
29
121
|
"dependencies": {
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
122
|
+
"@hookform/resolvers": "^4.0.0",
|
|
123
|
+
"@paralleldrive/cuid2": "^2.2.2",
|
|
124
|
+
"@phosphor-icons/react": "^2.1.7",
|
|
125
|
+
"@radix-ui/react-collapsible": "^1.1.2",
|
|
126
|
+
"@radix-ui/react-dialog": "^1.1.7",
|
|
127
|
+
"@radix-ui/react-dropdown-menu": "^2.1.4",
|
|
128
|
+
"@radix-ui/react-icons": "^1.3.2",
|
|
129
|
+
"@radix-ui/react-label": "^2.1.2",
|
|
130
|
+
"@radix-ui/react-popover": "^1.1.6",
|
|
131
|
+
"@radix-ui/react-scroll-area": "^1.2.2",
|
|
132
|
+
"@radix-ui/react-select": "^2.1.6",
|
|
133
|
+
"@radix-ui/react-switch": "^1.1.2",
|
|
134
|
+
"@radix-ui/react-tooltip": "^1.1.6",
|
|
135
|
+
"ajv": "^8.17.1",
|
|
136
|
+
"ajv-errors": "^3.0.0",
|
|
137
|
+
"ajv-formats": "^3.0.1",
|
|
138
|
+
"cmdk": "^1.1.1",
|
|
139
|
+
"framer-motion": "^11.15.0",
|
|
140
|
+
"immer": "^10.1.1",
|
|
141
|
+
"mermaid": "^11.6.0",
|
|
142
|
+
"react-day-picker": "^8.9.1",
|
|
143
|
+
"react-hook-form": "^7.54.2",
|
|
144
|
+
"react-markdown": "^9.0.3",
|
|
145
|
+
"react-syntax-highlighter": "^15.6.1",
|
|
146
|
+
"react-use": "^17.6.0",
|
|
147
|
+
"rehype-raw": "^7.0.0",
|
|
148
|
+
"remark-gfm": "^4.0.0",
|
|
149
|
+
"select": "^1.1.2",
|
|
150
|
+
"shadcn": "latest",
|
|
151
|
+
"use-immer": "^0.11.0"
|
|
152
|
+
}
|
|
153
|
+
}
|
package/package.json.bak
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@brainfish-ai/components",
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "Brainfish Components",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"module": "./dist/esm/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/esm/index.js",
|
|
13
|
+
"default": "./dist/esm/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./styles.css": "./dist/esm/index.css"
|
|
16
|
+
},
|
|
17
|
+
"sideEffects": [
|
|
18
|
+
"**/*.css"
|
|
19
|
+
],
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=18"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"start": "NODE_ENV=development BABEL_ENV=development yarn storybook",
|
|
25
|
+
"build": "rimraf dist && NODE_ENV=production BABEL_ENV=production rollup -c",
|
|
26
|
+
"watch": "rollup -c -w",
|
|
27
|
+
"lint": "yarn check-types && yarn eslint",
|
|
28
|
+
"lint:fix": "yarn eslint:fix",
|
|
29
|
+
"eslint": "eslint . --ext .js,.jsx,.tsx,.ts",
|
|
30
|
+
"eslint:fix": "eslint . --ext .js,.jsx,.tsx,.ts --fix",
|
|
31
|
+
"check-types": "tsc --noEmit true",
|
|
32
|
+
"ci": "yarn lint && yarn test --watch=false",
|
|
33
|
+
"test": "vitest --config ./vitest.config.ts",
|
|
34
|
+
"release": "yarn ci && yarn build && npm publish",
|
|
35
|
+
"storybook": "storybook dev -p 6006",
|
|
36
|
+
"storybook:build": "storybook build",
|
|
37
|
+
"storybook:deploy": "yarn storybook:build && touch ./storybook-static/.nojekyll && gh-pages -d ./storybook-static -t true"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"@phosphor-icons/react": "^2.1.7",
|
|
41
|
+
"class-variance-authority": "^0.7.0",
|
|
42
|
+
"clsx": "2.x",
|
|
43
|
+
"date-fns": "^4.1.0",
|
|
44
|
+
"path-to-regexp": "^8.2.0",
|
|
45
|
+
"react": "^18.2.0",
|
|
46
|
+
"react-dom": "^18.2.0",
|
|
47
|
+
"tailwind-merge": "^2.0.0",
|
|
48
|
+
"tailwindcss-animate": "^1.0.7"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@radix-ui/react-slot": "^1.1.2",
|
|
52
|
+
"@rollup/plugin-alias": "^5.1.1",
|
|
53
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
54
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
55
|
+
"@rollup/plugin-typescript": "^11.1.5",
|
|
56
|
+
"@rollup/plugin-url": "^8.0.2",
|
|
57
|
+
"@storybook/addon-docs": "^8.6.12",
|
|
58
|
+
"@storybook/addon-essentials": "^8.6.12",
|
|
59
|
+
"@storybook/addon-interactions": "^8.6.12",
|
|
60
|
+
"@storybook/addon-links": "^8.6.12",
|
|
61
|
+
"@storybook/addon-onboarding": "^8.6.12",
|
|
62
|
+
"@storybook/addon-styling": "^1.3.7",
|
|
63
|
+
"@storybook/addon-themes": "^8.6.12",
|
|
64
|
+
"@storybook/blocks": "^8.6.12",
|
|
65
|
+
"@storybook/react": "^8.6.12",
|
|
66
|
+
"@storybook/react-vite": "^8.6.12",
|
|
67
|
+
"@storybook/test": "^8.6.12",
|
|
68
|
+
"@svgr/rollup": "^8.1.0",
|
|
69
|
+
"@tailwindcss/container-queries": "^0.1.1",
|
|
70
|
+
"@testing-library/jest-dom": "^6.1.4",
|
|
71
|
+
"@testing-library/react": "^14.0.0",
|
|
72
|
+
"@testing-library/user-event": "^14.5.1",
|
|
73
|
+
"@types/mermaid": "^9.2.0",
|
|
74
|
+
"@types/node": "^20.8.10",
|
|
75
|
+
"@types/react": "^18.2.34",
|
|
76
|
+
"@types/react-dom": "^18.2.14",
|
|
77
|
+
"@types/react-syntax-highlighter": "^15.5.13",
|
|
78
|
+
"@typescript-eslint/eslint-plugin": "latest",
|
|
79
|
+
"@typescript-eslint/parser": "latest",
|
|
80
|
+
"autoprefixer": "^10.4.16",
|
|
81
|
+
"class-variance-authority": "0.7.0",
|
|
82
|
+
"clsx": "^2.0.0",
|
|
83
|
+
"date-fns": "^4.1.0",
|
|
84
|
+
"eslint": "^8.52.0",
|
|
85
|
+
"eslint-config-prettier": "^9.0.0",
|
|
86
|
+
"eslint-plugin-import": "^2.29.0",
|
|
87
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
88
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
89
|
+
"eslint-plugin-react": "^7.33.2",
|
|
90
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
91
|
+
"eslint-plugin-react-refresh": "^0.4.4",
|
|
92
|
+
"eslint-plugin-storybook": "^0.12.0",
|
|
93
|
+
"gh-pages": "^6.0.0",
|
|
94
|
+
"jsdom": "^22.1.0",
|
|
95
|
+
"path-to-regexp": "^8.2.0",
|
|
96
|
+
"postcss": "^8.4.31",
|
|
97
|
+
"postcss-scss": "^4.0.9",
|
|
98
|
+
"prettier": "3.0.3",
|
|
99
|
+
"react": "^18.2.0",
|
|
100
|
+
"react-dom": "^18.2.0",
|
|
101
|
+
"regenerator-runtime": "^0.14.0",
|
|
102
|
+
"rimraf": "^5.0.5",
|
|
103
|
+
"rollup": "^4.3.0",
|
|
104
|
+
"rollup-plugin-cleanup": "^3.2.1",
|
|
105
|
+
"rollup-plugin-dts": "^6.1.0",
|
|
106
|
+
"rollup-plugin-filesize": "^10.0.0",
|
|
107
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
108
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
109
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
110
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
111
|
+
"storybook": "^8.6.12",
|
|
112
|
+
"tailwind-merge": "^2.0.0",
|
|
113
|
+
"tailwindcss": "^3.4.1",
|
|
114
|
+
"tailwindcss-animate": "^1.0.7",
|
|
115
|
+
"tslib": "^2.6.2",
|
|
116
|
+
"typescript": "5.2.2",
|
|
117
|
+
"vite": "^4.5.0",
|
|
118
|
+
"vite-plugin-svgr": "^4.1.0",
|
|
119
|
+
"vitest": "^0.34.6"
|
|
120
|
+
},
|
|
121
|
+
"dependencies": {
|
|
122
|
+
"@hookform/resolvers": "^4.0.0",
|
|
123
|
+
"@paralleldrive/cuid2": "^2.2.2",
|
|
124
|
+
"@phosphor-icons/react": "^2.1.7",
|
|
125
|
+
"@radix-ui/react-collapsible": "^1.1.2",
|
|
126
|
+
"@radix-ui/react-dialog": "^1.1.7",
|
|
127
|
+
"@radix-ui/react-dropdown-menu": "^2.1.4",
|
|
128
|
+
"@radix-ui/react-icons": "^1.3.2",
|
|
129
|
+
"@radix-ui/react-label": "^2.1.2",
|
|
130
|
+
"@radix-ui/react-popover": "^1.1.6",
|
|
131
|
+
"@radix-ui/react-scroll-area": "^1.2.2",
|
|
132
|
+
"@radix-ui/react-select": "^2.1.6",
|
|
133
|
+
"@radix-ui/react-switch": "^1.1.2",
|
|
134
|
+
"@radix-ui/react-tooltip": "^1.1.6",
|
|
135
|
+
"ajv": "^8.17.1",
|
|
136
|
+
"ajv-errors": "^3.0.0",
|
|
137
|
+
"ajv-formats": "^3.0.1",
|
|
138
|
+
"cmdk": "^1.1.1",
|
|
139
|
+
"framer-motion": "^11.15.0",
|
|
140
|
+
"immer": "^10.1.1",
|
|
141
|
+
"mermaid": "^11.6.0",
|
|
142
|
+
"react-day-picker": "^8.9.1",
|
|
143
|
+
"react-hook-form": "^7.54.2",
|
|
144
|
+
"react-markdown": "^9.0.3",
|
|
145
|
+
"react-syntax-highlighter": "^15.6.1",
|
|
146
|
+
"react-use": "^17.6.0",
|
|
147
|
+
"rehype-raw": "^7.0.0",
|
|
148
|
+
"remark-gfm": "^4.0.0",
|
|
149
|
+
"select": "^1.1.2",
|
|
150
|
+
"shadcn": "latest",
|
|
151
|
+
"use-immer": "^0.11.0"
|
|
152
|
+
}
|
|
153
|
+
}
|