@databrainhq/plugin 0.9.0 → 0.9.2

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/dist/typings.d.ts CHANGED
@@ -1,17 +1,17 @@
1
- /**
2
- * Default CSS definition for typescript,
3
- * will be overridden with file-specific definitions by rollup
4
- */
5
- declare module '*.css' {
6
- const content: Record<string, string>;
7
- export default content;
8
- }
9
-
10
- interface SvgrComponent extends React.FC<React.SVGAttributes<SVGElement>> {}
11
-
12
- declare module '*.svg' {
13
- const svgUrl: string;
14
- const svgComponent: SvgrComponent;
15
- export default svgUrl;
16
- export { svgComponent as ReactComponent };
17
- }
1
+ /**
2
+ * Default CSS definition for typescript,
3
+ * will be overridden with file-specific definitions by rollup
4
+ */
5
+ declare module '*.css' {
6
+ const content: Record<string, string>;
7
+ export default content;
8
+ }
9
+
10
+ interface SvgrComponent extends React.FC<React.SVGAttributes<SVGElement>> {}
11
+
12
+ declare module '*.svg' {
13
+ const svgUrl: string;
14
+ const svgComponent: SvgrComponent;
15
+ export default svgUrl;
16
+ export { svgComponent as ReactComponent };
17
+ }
@@ -2156,9 +2156,7 @@ export declare type ScheduleEmailReportCharts_Bool_Exp = {
2156
2156
  /** unique or primary key constraints on table "scheduleEmailReportCharts" */
2157
2157
  export declare enum ScheduleEmailReportCharts_Constraint {
2158
2158
  /** unique or primary key constraint on columns "id" */
2159
- ScheduleEmailReportChartsPkey = "scheduleEmailReportCharts_pkey",
2160
- /** unique or primary key constraint on columns "externalMetricId", "scheduleEmailReportId" */
2161
- ScheduleEmailReportChartsUniqueKey = "scheduleEmailReportCharts_unique_key"
2159
+ ScheduleEmailReportChartsPkey = "scheduleEmailReportCharts_pkey"
2162
2160
  }
2163
2161
  /** input type for inserting data into table "scheduleEmailReportCharts" */
2164
2162
  export declare type ScheduleEmailReportCharts_Insert_Input = {
@@ -2969,6 +2967,7 @@ export declare type EmbeddedDashboardMetricsQuery = {
2969
2967
  selectedGroupBy: any;
2970
2968
  isEnableGroupBy: boolean;
2971
2969
  groupBy: any;
2970
+ resizeAttributes: any;
2972
2971
  rlsConditions: any;
2973
2972
  clickActions: any;
2974
2973
  drillDownSettings?: any | null;
@@ -3384,7 +3383,7 @@ export declare const useCompanySubsetTableDataMutation: <TError = unknown, TCont
3384
3383
  companyId?: InputMaybe<string> | undefined;
3385
3384
  workspaceId?: InputMaybe<string> | undefined;
3386
3385
  }>, TContext>;
3387
- export declare const EmbeddedDashboardMetricsDocument = "\n query EmbeddedDashboardMetrics($externalDashboardId: String! = \"\", $clientId: String! = \"\") {\n externalDashboardMetrics(\n where: {externalDashboard: {externalDashboardId: {_eq: $externalDashboardId}}, _not: {externalMetric: {clientDeletedMetrics: {clientId: {_eq: $clientId}}}}}\n ) {\n externalMetricId\n externalDashboardId\n externalMetric {\n chartOptions\n clientId\n companyId\n companyIntegrationId\n createdAt\n createdBy\n description\n id\n inputFields\n integrationName\n isCreatedByClient\n isLive\n metricId\n metricQuery\n name\n outputColumns\n query\n timeGrain\n updatedAt\n selectedGroupBy\n isEnableGroupBy\n groupBy\n rlsConditions\n clickActions\n drillDownSettings\n companyIntegration {\n name\n workspaceId\n }\n }\n }\n}\n ";
3386
+ export declare const EmbeddedDashboardMetricsDocument = "\n query EmbeddedDashboardMetrics($externalDashboardId: String! = \"\", $clientId: String! = \"\") {\n externalDashboardMetrics(\n where: {externalDashboard: {externalDashboardId: {_eq: $externalDashboardId}}, _not: {externalMetric: {clientDeletedMetrics: {clientId: {_eq: $clientId}}}}}\n ) {\n externalMetricId\n externalDashboardId\n externalMetric {\n chartOptions\n clientId\n companyId\n companyIntegrationId\n createdAt\n createdBy\n description\n id\n inputFields\n integrationName\n isCreatedByClient\n isLive\n metricId\n metricQuery\n name\n outputColumns\n query\n timeGrain\n updatedAt\n selectedGroupBy\n isEnableGroupBy\n groupBy\n resizeAttributes\n rlsConditions\n clickActions\n drillDownSettings\n companyIntegration {\n name\n workspaceId\n }\n }\n }\n}\n ";
3388
3387
  export declare const useEmbeddedDashboardMetricsQuery: <TData = EmbeddedDashboardMetricsQuery, TError = unknown>(variables?: EmbeddedDashboardMetricsQueryVariables, options?: UseQueryOptions<EmbeddedDashboardMetricsQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
3389
3388
  export declare const GetExternalDashboardClientThemeDocument = "\n query GetExternalDashboardClientTheme($companyId: uuid!, $clientId: String!) {\n externalDashboardThemes(\n where: {companyId: {_eq: $companyId}, externalDashboardThemeClients: {clientId: {_eq: $clientId}}}\n limit: 1\n ) {\n colors\n createdAt\n id\n name\n }\n}\n ";
3390
3389
  export declare const useGetExternalDashboardClientThemeQuery: <TData = GetExternalDashboardClientThemeQuery, TError = unknown>(variables: GetExternalDashboardClientThemeQueryVariables, options?: UseQueryOptions<GetExternalDashboardClientThemeQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
package/package.json CHANGED
@@ -1,96 +1,96 @@
1
- {
2
- "name": "@databrainhq/plugin",
3
- "version": "0.9.0",
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
- "serve": "vite --port 3005",
21
- "build:css": "tailwindcss build -i src/index.css -o dist/index.css",
22
- "build": "tsc && vite build",
23
- "husky": "husky install",
24
- "predeploy": "cd example && npm install && npm run build",
25
- "lint": "eslint --ext .tsx,.ts --ignore-path .gitignore --fix src",
26
- "codegen": "graphql-codegen --config codegen.yml -r dotenv/config",
27
- "prepare": "npm run build"
28
- },
29
- "devDependencies": {
30
- "@commitlint/cli": "^17.0.3",
31
- "@commitlint/config-conventional": "^17.0.3",
32
- "@graphql-codegen/cli": "^2.16.4",
33
- "@graphql-codegen/introspection": "^2.2.3",
34
- "@graphql-codegen/typescript": "^2.8.7",
35
- "@graphql-codegen/typescript-operations": "^2.5.12",
36
- "@graphql-codegen/typescript-react-apollo": "^3.3.7",
37
- "@graphql-codegen/typescript-react-query": "^3.6.2",
38
- "@iconify/json": "^2.2.6",
39
- "@svgr/core": "^6.5.1",
40
- "@types/node": "^12.12.38",
41
- "@types/react": "^18.0.26",
42
- "@types/react-dom": "^18.0.10",
43
- "@types/react-grid-layout": "^1.3.2",
44
- "@typescript-eslint/eslint-plugin": "^4.31.1",
45
- "@typescript-eslint/parser": "^4.31.1",
46
- "@vitejs/plugin-react": "^1.3.0",
47
- "autoprefixer": "^10.4.7",
48
- "babel-eslint": "^10.0.3",
49
- "cross-env": "^7.0.2",
50
- "eslint": "^7.32.0",
51
- "eslint-config-airbnb": "^18.2.1",
52
- "eslint-config-airbnb-typescript": "^14.0.0",
53
- "eslint-config-prettier": "^8.3.0",
54
- "eslint-plugin-import": "^2.24.2",
55
- "eslint-plugin-jsx-a11y": "^6.6.0",
56
- "eslint-plugin-prettier": "^4.0.0",
57
- "eslint-plugin-react": "^7.30.1",
58
- "eslint-plugin-react-hooks": "^4.6.0",
59
- "eslint-plugin-unicorn": "^36.0.0",
60
- "graphql": "^16.6.0",
61
- "husky": "^8.0.1",
62
- "lint-staged": "^13.0.3",
63
- "postcss": "^8.4.21",
64
- "prettier": "^2.0.4",
65
- "react": "^18.2.0",
66
- "react-dom": "^18.2.0",
67
- "tailwindcss": "^3.2.4",
68
- "ts-node": "^10.9.1",
69
- "typescript": "^4.6.3",
70
- "unplugin-icons": "^0.14.7",
71
- "vite": "^2.9.9",
72
- "vite-plugin-dts": "^1.7.1",
73
- "vite-tsconfig-paths": "^4.0.3"
74
- },
75
- "files": [
76
- "dist"
77
- ],
78
- "dependencies": {
79
- "@headlessui/react": "^1.7.2",
80
- "@tanstack/match-sorter-utils": "^8.8.4",
81
- "@tanstack/react-table": "^8.7.9",
82
- "ace-builds": "^1.17.0",
83
- "classnames": "^2.3.2",
84
- "echarts": "^5.4.1",
85
- "echarts-for-react": "^3.0.2",
86
- "react-ace": "^10.1.0",
87
- "react-error-boundary": "^3.1.4",
88
- "react-grid-layout": "^1.3.4",
89
- "react-hook-form": "^7.33.1",
90
- "react-query": "^3.39.2"
91
- },
92
- "peerDependencies": {
93
- "react": "^18.2.0",
94
- "react-dom": "^18.2.0"
95
- }
96
- }
1
+ {
2
+ "name": "@databrainhq/plugin",
3
+ "version": "0.9.2",
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
+ "serve": "vite --port 3005",
21
+ "build:css": "tailwindcss build -i src/index.css -o dist/index.css",
22
+ "build": "tsc && vite build",
23
+ "husky": "husky install",
24
+ "predeploy": "cd example && npm install && npm run build",
25
+ "lint": "eslint --ext .tsx,.ts --ignore-path .gitignore --fix src",
26
+ "codegen": "graphql-codegen --config codegen.yml -r dotenv/config",
27
+ "prepare": "npm run build"
28
+ },
29
+ "devDependencies": {
30
+ "@commitlint/cli": "^17.0.3",
31
+ "@commitlint/config-conventional": "^17.0.3",
32
+ "@graphql-codegen/cli": "^2.16.4",
33
+ "@graphql-codegen/introspection": "^2.2.3",
34
+ "@graphql-codegen/typescript": "^2.8.7",
35
+ "@graphql-codegen/typescript-operations": "^2.5.12",
36
+ "@graphql-codegen/typescript-react-apollo": "^3.3.7",
37
+ "@graphql-codegen/typescript-react-query": "^3.6.2",
38
+ "@iconify/json": "^2.2.6",
39
+ "@svgr/core": "^6.5.1",
40
+ "@types/node": "^12.12.38",
41
+ "@types/react": "^18.0.26",
42
+ "@types/react-dom": "^18.0.10",
43
+ "@types/react-grid-layout": "^1.3.2",
44
+ "@typescript-eslint/eslint-plugin": "^4.31.1",
45
+ "@typescript-eslint/parser": "^4.31.1",
46
+ "@vitejs/plugin-react": "^1.3.0",
47
+ "autoprefixer": "^10.4.7",
48
+ "babel-eslint": "^10.0.3",
49
+ "cross-env": "^7.0.2",
50
+ "eslint": "^7.32.0",
51
+ "eslint-config-airbnb": "^18.2.1",
52
+ "eslint-config-airbnb-typescript": "^14.0.0",
53
+ "eslint-config-prettier": "^8.3.0",
54
+ "eslint-plugin-import": "^2.24.2",
55
+ "eslint-plugin-jsx-a11y": "^6.6.0",
56
+ "eslint-plugin-prettier": "^4.0.0",
57
+ "eslint-plugin-react": "^7.30.1",
58
+ "eslint-plugin-react-hooks": "^4.6.0",
59
+ "eslint-plugin-unicorn": "^36.0.0",
60
+ "graphql": "^16.6.0",
61
+ "husky": "^8.0.1",
62
+ "lint-staged": "^13.0.3",
63
+ "postcss": "^8.4.21",
64
+ "prettier": "^2.0.4",
65
+ "react": "^18.2.0",
66
+ "react-dom": "^18.2.0",
67
+ "tailwindcss": "^3.2.4",
68
+ "ts-node": "^10.9.1",
69
+ "typescript": "^4.6.3",
70
+ "unplugin-icons": "^0.14.7",
71
+ "vite": "^2.9.9",
72
+ "vite-plugin-dts": "^1.7.1",
73
+ "vite-tsconfig-paths": "^4.0.3"
74
+ },
75
+ "files": [
76
+ "dist"
77
+ ],
78
+ "dependencies": {
79
+ "@headlessui/react": "^1.7.2",
80
+ "@tanstack/match-sorter-utils": "^8.8.4",
81
+ "@tanstack/react-table": "^8.7.9",
82
+ "ace-builds": "^1.17.0",
83
+ "classnames": "^2.3.2",
84
+ "echarts": "^5.4.1",
85
+ "echarts-for-react": "^3.0.2",
86
+ "react-ace": "^10.1.0",
87
+ "react-error-boundary": "^3.1.4",
88
+ "react-grid-layout": "^1.3.4",
89
+ "react-hook-form": "^7.33.1",
90
+ "react-query": "^3.39.2"
91
+ },
92
+ "peerDependencies": {
93
+ "react": "^18.2.0",
94
+ "react-dom": "^18.2.0"
95
+ }
96
+ }