@databrainhq/plugin 0.9.32 → 0.9.33

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.
@@ -4,7 +4,7 @@ import { CHART_TYPES } from '@/consts';
4
4
  export type ChildrenProps = {
5
5
  children: ReactNode;
6
6
  };
7
- export type TimeSeriesGroupType = 'yearly' | 'monthly' | 'weekly' | 'daily';
7
+ export type TimeSeriesGroupType = 'yearly' | 'monthly' | 'weekly' | 'daily' | 'quarterly';
8
8
  export type TimeSeriesType = 'bar' | 'line' | 'area';
9
9
  export type TimeSeriesSettingsType = {
10
10
  seriesType: {
@@ -193,6 +193,8 @@ export type DateOptionType = {
193
193
  format: string;
194
194
  name: string;
195
195
  count: number;
196
+ endDate?: Date;
197
+ startDate?: Date;
196
198
  };
197
199
  export type RlsCondition = {
198
200
  name: string;
package/package.json CHANGED
@@ -1,110 +1,110 @@
1
- {
2
- "name": "@databrainhq/plugin",
3
- "version": "0.9.32",
4
- "description": "Databrain app dashboard ui plugin.",
5
- "author": "",
6
- "license": "MIT",
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"
18
- },
19
- "scripts": {
20
- "start:repl": "vite --host 0.0.0.0",
21
- "serve": "vite --port 3005",
22
- "build:css": "tailwindcss build -i src/index.css -o dist/index.css",
23
- "build": "tsc && vite build",
24
- "husky": "husky install",
25
- "predeploy": "cd example && npm install && npm run build",
26
- "lint": "eslint --ext .tsx,.ts --ignore-path .gitignore --fix src",
27
- "codegen": "graphql-codegen --config codegen.yml -r dotenv/config",
28
- "prepare": "npm run build",
29
- "storybook:repl": "storybook dev -p 6006 --host 0.0.0.0",
30
- "storybook": "storybook dev -p 6006",
31
- "build-storybook": "storybook build"
32
- },
33
- "devDependencies": {
34
- "@commitlint/cli": "^17.0.3",
35
- "@commitlint/config-conventional": "^17.0.3",
36
- "@graphql-codegen/cli": "^2.16.4",
37
- "@graphql-codegen/introspection": "^2.2.3",
38
- "@graphql-codegen/typescript": "^2.8.7",
39
- "@graphql-codegen/typescript-operations": "^2.5.12",
40
- "@graphql-codegen/typescript-react-apollo": "^3.3.7",
41
- "@graphql-codegen/typescript-react-query": "^3.6.2",
42
- "@iconify/json": "^2.2.6",
43
- "@storybook/addon-essentials": "^7.0.9",
44
- "@storybook/addon-interactions": "^7.0.9",
45
- "@storybook/addon-links": "^7.0.9",
46
- "@storybook/blocks": "^7.0.9",
47
- "@storybook/react": "^7.0.9",
48
- "@storybook/react-vite": "^7.0.9",
49
- "@storybook/testing-library": "^0.0.14-next.2",
50
- "@svgr/core": "^6.5.1",
51
- "@types/react": "^18.0.26",
52
- "@types/react-datepicker": "^4.11.2",
53
- "@types/react-dom": "^18.0.10",
54
- "@types/react-grid-layout": "^1.3.2",
55
- "@typescript-eslint/eslint-plugin": "^4.31.1",
56
- "@typescript-eslint/parser": "^4.31.1",
57
- "@vitejs/plugin-react": "^4.0",
58
- "autoprefixer": "^10.4.7",
59
- "babel-eslint": "^10.0.3",
60
- "cross-env": "^7.0.2",
61
- "eslint": "^7.32.0",
62
- "eslint-config-airbnb": "^18.2.1",
63
- "eslint-config-airbnb-typescript": "^14.0.0",
64
- "eslint-config-prettier": "^8.3.0",
65
- "eslint-plugin-import": "^2.24.2",
66
- "eslint-plugin-jsx-a11y": "^6.6.0",
67
- "eslint-plugin-prettier": "^4.0.0",
68
- "eslint-plugin-react": "^7.30.1",
69
- "eslint-plugin-react-hooks": "^4.6.0",
70
- "eslint-plugin-unicorn": "^36.0.0",
71
- "graphql": "^16.6.0",
72
- "husky": "^8.0.1",
73
- "lint-staged": "^13.0.3",
74
- "postcss": "^8.4.21",
75
- "prettier": "^2.0.4",
76
- "prop-types": "^15.8.1",
77
- "react": "^18.2.0",
78
- "react-dom": "^18.2.0",
79
- "storybook": "^7.0.9",
80
- "tailwindcss": "^3.2.4",
81
- "ts-node": "^10.9.1",
82
- "typescript": "^4.6.3",
83
- "unplugin-icons": "^0.14.7",
84
- "vite": "^4.3",
85
- "vite-plugin-dts": "^2.3",
86
- "vite-tsconfig-paths": "^4.0.3"
87
- },
88
- "files": [
89
- "dist"
90
- ],
91
- "dependencies": {
92
- "@headlessui/react": "^1.7.2",
93
- "@tanstack/match-sorter-utils": "^8.8.4",
94
- "@tanstack/react-table": "^8.7.9",
95
- "ace-builds": "^1.17.0",
96
- "classnames": "^2.3.2",
97
- "echarts": "^5.4.1",
98
- "echarts-for-react": "^3.0.2",
99
- "react-ace": "^10.1.0",
100
- "react-datepicker": "^4.11.0",
101
- "react-error-boundary": "^3.1.4",
102
- "react-grid-layout": "^1.3.4",
103
- "react-hook-form": "^7.33.1",
104
- "react-query": "^3.39.2"
105
- },
106
- "peerDependencies": {
107
- "react": "^18.2.0",
108
- "react-dom": "^18.2.0"
109
- }
110
- }
1
+ {
2
+ "name": "@databrainhq/plugin",
3
+ "version": "0.9.33",
4
+ "description": "Databrain app dashboard ui plugin.",
5
+ "author": "",
6
+ "license": "MIT",
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"
18
+ },
19
+ "scripts": {
20
+ "start:repl": "vite --host 0.0.0.0",
21
+ "serve": "vite --port 3005",
22
+ "build:css": "tailwindcss build -i src/index.css -o dist/index.css",
23
+ "build": "tsc && vite build",
24
+ "husky": "husky install",
25
+ "predeploy": "cd example && npm install && npm run build",
26
+ "lint": "eslint --ext .tsx,.ts --ignore-path .gitignore --fix src",
27
+ "codegen": "graphql-codegen --config codegen.yml -r dotenv/config",
28
+ "prepare": "npm run build",
29
+ "storybook:repl": "storybook dev -p 6006 --host 0.0.0.0",
30
+ "storybook": "storybook dev -p 6006",
31
+ "build-storybook": "storybook build"
32
+ },
33
+ "devDependencies": {
34
+ "@commitlint/cli": "^17.0.3",
35
+ "@commitlint/config-conventional": "^17.0.3",
36
+ "@graphql-codegen/cli": "^2.16.4",
37
+ "@graphql-codegen/introspection": "^2.2.3",
38
+ "@graphql-codegen/typescript": "^2.8.7",
39
+ "@graphql-codegen/typescript-operations": "^2.5.12",
40
+ "@graphql-codegen/typescript-react-apollo": "^3.3.7",
41
+ "@graphql-codegen/typescript-react-query": "^3.6.2",
42
+ "@iconify/json": "^2.2.6",
43
+ "@storybook/addon-essentials": "^7.0.9",
44
+ "@storybook/addon-interactions": "^7.0.9",
45
+ "@storybook/addon-links": "^7.0.9",
46
+ "@storybook/blocks": "^7.0.9",
47
+ "@storybook/react": "^7.0.9",
48
+ "@storybook/react-vite": "^7.0.9",
49
+ "@storybook/testing-library": "^0.0.14-next.2",
50
+ "@svgr/core": "^6.5.1",
51
+ "@types/react": "^18.0.26",
52
+ "@types/react-datepicker": "^4.11.2",
53
+ "@types/react-dom": "^18.0.10",
54
+ "@types/react-grid-layout": "^1.3.2",
55
+ "@typescript-eslint/eslint-plugin": "^4.31.1",
56
+ "@typescript-eslint/parser": "^4.31.1",
57
+ "@vitejs/plugin-react": "^4.0",
58
+ "autoprefixer": "^10.4.7",
59
+ "babel-eslint": "^10.0.3",
60
+ "cross-env": "^7.0.2",
61
+ "eslint": "^7.32.0",
62
+ "eslint-config-airbnb": "^18.2.1",
63
+ "eslint-config-airbnb-typescript": "^14.0.0",
64
+ "eslint-config-prettier": "^8.3.0",
65
+ "eslint-plugin-import": "^2.24.2",
66
+ "eslint-plugin-jsx-a11y": "^6.6.0",
67
+ "eslint-plugin-prettier": "^4.0.0",
68
+ "eslint-plugin-react": "^7.30.1",
69
+ "eslint-plugin-react-hooks": "^4.6.0",
70
+ "eslint-plugin-unicorn": "^36.0.0",
71
+ "graphql": "^16.6.0",
72
+ "husky": "^8.0.1",
73
+ "lint-staged": "^13.0.3",
74
+ "postcss": "^8.4.21",
75
+ "prettier": "^2.0.4",
76
+ "prop-types": "^15.8.1",
77
+ "react": "^18.2.0",
78
+ "react-dom": "^18.2.0",
79
+ "storybook": "^7.0.9",
80
+ "tailwindcss": "^3.2.4",
81
+ "ts-node": "^10.9.1",
82
+ "typescript": "^4.6.3",
83
+ "unplugin-icons": "^0.14.7",
84
+ "vite": "^4.3",
85
+ "vite-plugin-dts": "^2.3",
86
+ "vite-tsconfig-paths": "^4.0.3"
87
+ },
88
+ "files": [
89
+ "dist"
90
+ ],
91
+ "dependencies": {
92
+ "@headlessui/react": "^1.7.2",
93
+ "@tanstack/match-sorter-utils": "^8.8.4",
94
+ "@tanstack/react-table": "^8.7.9",
95
+ "ace-builds": "^1.17.0",
96
+ "classnames": "^2.3.2",
97
+ "echarts": "^5.4.1",
98
+ "echarts-for-react": "^3.0.2",
99
+ "react-ace": "^10.1.0",
100
+ "react-datepicker": "^4.11.0",
101
+ "react-error-boundary": "^3.1.4",
102
+ "react-grid-layout": "^1.3.4",
103
+ "react-hook-form": "^7.33.1",
104
+ "react-query": "^3.39.2"
105
+ },
106
+ "peerDependencies": {
107
+ "react": "^18.2.0",
108
+ "react-dom": "^18.2.0"
109
+ }
110
+ }