@databrainhq/plugin 0.10.23 → 0.10.151

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/package.json CHANGED
@@ -1,26 +1,38 @@
1
1
  {
2
2
  "name": "@databrainhq/plugin",
3
- "version": "0.10.23",
4
- "description": "Databrain app dashboard ui plugin.",
3
+ "version": "0.10.151",
4
+ "description": "Databrain app ui plugin.",
5
5
  "author": "",
6
6
  "license": "MIT",
7
7
  "repository": "databrainhq/plugin",
8
- "source": "src/index.ts",
9
- "main": "./dist/index.umd.js",
10
- "module": "./dist/index.es.js",
11
- "types": "./dist/index.d.ts",
12
- "exports": {
13
- ".": {
14
- "import": "./dist/index.es.js",
15
- "require": "./dist/index.umd.js"
16
- },
17
- "./dist/style.css": "./dist/style.css"
8
+ "main": "src/index.ts",
9
+ "publishConfig": {
10
+ "source": "index.ts",
11
+ "main": "./dist/index.umd.js",
12
+ "module": "./dist/index.es.js",
13
+ "types": "./dist/index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "import": "./dist/index.es.js",
17
+ "require": "./dist/index.umd.js",
18
+ "types": "./dist/index.d.ts"
19
+ },
20
+ "./web": {
21
+ "import": "./dist/webcomponents.es.js",
22
+ "require": "./dist/webcomponents.umd.js",
23
+ "types": "./dist/webcomponents.d.ts"
24
+ },
25
+ "./package.json": "./package.json",
26
+ "./dist/style.css": "./dist/style.css"
27
+ }
18
28
  },
19
29
  "scripts": {
20
30
  "start:repl": "vite --host 0.0.0.0",
21
- "serve": "vite --port 3005",
31
+ "start": "vite --port 3005",
22
32
  "build:css": "tailwindcss build -i src/index.css -o dist/index.css",
23
- "build": "tsc && vite build",
33
+ "build:react": "cross-env ENTRY_NAME=react tsc && vite build",
34
+ "build:web": "cross-env ENTRY_NAME=web vite build --config vite.config.web.ts",
35
+ "build": "npm run build:web && npm run build:react",
24
36
  "husky": "husky install",
25
37
  "predeploy": "cd example && npm install && npm run build",
26
38
  "lint": "eslint --ext .tsx,.ts --ignore-path .gitignore --fix src",
@@ -57,6 +69,7 @@
57
69
  "@vitejs/plugin-react": "^4.0",
58
70
  "autoprefixer": "^10.4.7",
59
71
  "babel-eslint": "^10.0.3",
72
+ "babel-loader": "^9.1.2",
60
73
  "cross-env": "^7.0.2",
61
74
  "eslint": "^7.32.0",
62
75
  "eslint-config-airbnb": "^18.2.1",
@@ -73,7 +86,6 @@
73
86
  "lint-staged": "^13.0.3",
74
87
  "postcss": "^8.4.21",
75
88
  "prettier": "^2.0.4",
76
- "prop-types": "^15.8.1",
77
89
  "react": "^18.2.0",
78
90
  "react-dom": "^18.2.0",
79
91
  "storybook": "^7.0.9",
@@ -82,6 +94,7 @@
82
94
  "typescript": "^4.6.3",
83
95
  "unplugin-icons": "^0.14.7",
84
96
  "vite": "^4.3",
97
+ "vite-plugin-css-injected-by-js": "^3.1.1",
85
98
  "vite-plugin-dts": "^2.3",
86
99
  "vite-tsconfig-paths": "^4.0.3"
87
100
  },
@@ -90,6 +103,7 @@
90
103
  ],
91
104
  "dependencies": {
92
105
  "@headlessui/react": "^1.7.2",
106
+ "@r2wc/react-to-web-component": "^2.0.2",
93
107
  "@tanstack/match-sorter-utils": "^8.8.4",
94
108
  "@tanstack/react-table": "^8.7.9",
95
109
  "ace-builds": "^1.17.0",
package/src/index.ts ADDED
@@ -0,0 +1,7 @@
1
+ export * from './containers';
2
+ export * as utils from './utils';
3
+ export * as consts from './consts';
4
+ export * as helpers from './helpers';
5
+ export * as hooks from './hooks';
6
+ export * as types from './types';
7
+ export * as Ui from './components';