@databrainhq/plugin 0.10.22 → 0.10.99

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.
Files changed (31) hide show
  1. package/README.md +159 -8
  2. package/dist/components/Chart/SingleValueChart.d.ts +6 -1
  3. package/dist/components/ChartPopup/components/UnderlyingData/index.d.ts +3 -2
  4. package/dist/components/ChartPopup/index.d.ts +4 -3
  5. package/dist/components/DrillBreadCrumb/index.d.ts +2 -1
  6. package/dist/components/GlobalFilters/NumberFilterField.d.ts +4 -4
  7. package/dist/components/Icons/index.d.ts +1 -1
  8. package/dist/components/InternetFailure/index.d.ts +2 -0
  9. package/dist/components/MetricFilterDropDown/index.d.ts +1 -1
  10. package/dist/components/MetricList/components/FullScreenView/AddMetricFilter.d.ts +8 -0
  11. package/dist/components/Select/index.d.ts +2 -0
  12. package/dist/consts/app.d.ts +4 -0
  13. package/dist/containers/Dashboard/Dashboard.d.ts +14 -4
  14. package/dist/containers/Dashboard/EmbededDashboard.d.ts +0 -1
  15. package/dist/containers/Metric/EmbeddedMetric.d.ts +3 -1
  16. package/dist/containers/Metric/index.d.ts +20 -3
  17. package/dist/hooks/useDashboardContext.d.ts +2 -0
  18. package/dist/hooks/useEmbeddedDashboard.d.ts +1 -0
  19. package/dist/hooks/useMetricCard.d.ts +6 -3
  20. package/dist/hooks/useUnderlyingData.d.ts +4 -3
  21. package/dist/index.es.js +28343 -27576
  22. package/dist/index.umd.js +167 -163
  23. package/dist/style.css +1 -1
  24. package/dist/types/app.d.ts +9 -3
  25. package/dist/utils/checkIsOnline.d.ts +2 -0
  26. package/dist/utils/generated/graphql.d.ts +7 -6
  27. package/dist/webcomponents.d.ts +16 -0
  28. package/dist/webcomponents.es.js +93086 -0
  29. package/dist/webcomponents.umd.js +1861 -0
  30. package/package.json +29 -16
  31. package/src/index.ts +7 -0
package/package.json CHANGED
@@ -1,26 +1,37 @@
1
1
  {
2
2
  "name": "@databrainhq/plugin",
3
- "version": "0.10.22",
4
- "description": "Databrain app dashboard ui plugin.",
3
+ "version": "0.10.99",
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
+ "./dist/style.css": "./dist/style.css"
26
+ }
18
27
  },
19
28
  "scripts": {
20
29
  "start:repl": "vite --host 0.0.0.0",
21
- "serve": "vite --port 3005",
30
+ "start": "vite --port 3005",
22
31
  "build:css": "tailwindcss build -i src/index.css -o dist/index.css",
23
- "build": "tsc && vite build",
32
+ "build:react": "cross-env ENTRY_NAME=react tsc && vite build",
33
+ "build:web": "cross-env ENTRY_NAME=web vite build --config vite.config.web.ts",
34
+ "build": "npm run build:web && npm run build:react",
24
35
  "husky": "husky install",
25
36
  "predeploy": "cd example && npm install && npm run build",
26
37
  "lint": "eslint --ext .tsx,.ts --ignore-path .gitignore --fix src",
@@ -57,6 +68,7 @@
57
68
  "@vitejs/plugin-react": "^4.0",
58
69
  "autoprefixer": "^10.4.7",
59
70
  "babel-eslint": "^10.0.3",
71
+ "babel-loader": "^9.1.2",
60
72
  "cross-env": "^7.0.2",
61
73
  "eslint": "^7.32.0",
62
74
  "eslint-config-airbnb": "^18.2.1",
@@ -73,7 +85,6 @@
73
85
  "lint-staged": "^13.0.3",
74
86
  "postcss": "^8.4.21",
75
87
  "prettier": "^2.0.4",
76
- "prop-types": "^15.8.1",
77
88
  "react": "^18.2.0",
78
89
  "react-dom": "^18.2.0",
79
90
  "storybook": "^7.0.9",
@@ -82,6 +93,7 @@
82
93
  "typescript": "^4.6.3",
83
94
  "unplugin-icons": "^0.14.7",
84
95
  "vite": "^4.3",
96
+ "vite-plugin-css-injected-by-js": "^3.1.1",
85
97
  "vite-plugin-dts": "^2.3",
86
98
  "vite-tsconfig-paths": "^4.0.3"
87
99
  },
@@ -90,6 +102,7 @@
90
102
  ],
91
103
  "dependencies": {
92
104
  "@headlessui/react": "^1.7.2",
105
+ "@r2wc/react-to-web-component": "^2.0.2",
93
106
  "@tanstack/match-sorter-utils": "^8.8.4",
94
107
  "@tanstack/react-table": "^8.7.9",
95
108
  "ace-builds": "^1.17.0",
@@ -108,4 +121,4 @@
108
121
  "react": "^18.2.0",
109
122
  "react-dom": "^18.2.0"
110
123
  }
111
- }
124
+ }
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';