@databrainhq/plugin 0.9.29 → 0.9.31
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/README.md +26 -26
- package/dist/hooks/useUnderlyingData.d.ts +2 -1
- package/dist/index.es.js +6966 -6960
- package/dist/index.umd.js +110 -110
- package/dist/style.css +1 -1
- package/dist/utils/generated/graphql.d.ts +5 -1
- package/package.json +110 -110
|
@@ -131,6 +131,7 @@ export type GetUnderlyingDataInput = {
|
|
|
131
131
|
companyId: Scalars['String'];
|
|
132
132
|
query: Scalars['String'];
|
|
133
133
|
value: Scalars['json'];
|
|
134
|
+
workspaceId: Scalars['String'];
|
|
134
135
|
};
|
|
135
136
|
export type GetUnderlyingDataOutput = {
|
|
136
137
|
__typename?: 'GetUnderlyingDataOutput';
|
|
@@ -3632,6 +3633,7 @@ export type UnderlyingDataMutationVariables = Exact<{
|
|
|
3632
3633
|
companyId?: InputMaybe<Scalars['String']>;
|
|
3633
3634
|
query?: InputMaybe<Scalars['String']>;
|
|
3634
3635
|
value?: InputMaybe<Scalars['json']>;
|
|
3636
|
+
workspaceId?: InputMaybe<Scalars['String']>;
|
|
3635
3637
|
}>;
|
|
3636
3638
|
export type UnderlyingDataMutation = {
|
|
3637
3639
|
__typename?: 'mutation_root';
|
|
@@ -3994,17 +3996,19 @@ export declare const SharingSettingsIdDocument = "\n query SharingSettingsId(
|
|
|
3994
3996
|
export declare const useSharingSettingsIdQuery: <TData = SharingSettingsIdQuery, TError = unknown>(variables?: SharingSettingsIdQueryVariables, options?: UseQueryOptions<SharingSettingsIdQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
3995
3997
|
export declare const GetThemesDocument = "\n query GetThemes($companyId: uuid! = \"\") {\n themes(where: {companyId: {_eq: $companyId}}) {\n id\n companyId\n general\n dashboard\n cardTitle\n cardDescription\n chart\n }\n}\n ";
|
|
3996
3998
|
export declare const useGetThemesQuery: <TData = GetThemesQuery, TError = unknown>(variables?: GetThemesQueryVariables, options?: UseQueryOptions<GetThemesQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
3997
|
-
export declare const UnderlyingDataDocument = "\n mutation UnderlyingData($columnName: String = \"\", $companyId: String = \"\", $query: String = \"\", $value: json = \"\") {\n getUnderlyingData(\n input: {columnName: $columnName, companyId: $companyId, query: $query, value: $value}\n ) {\n data\n timeTaken\n }\n}\n ";
|
|
3999
|
+
export declare const UnderlyingDataDocument = "\n mutation UnderlyingData($columnName: String = \"\", $companyId: String = \"\", $query: String = \"\", $value: json = \"\", $workspaceId: String = \"\") {\n getUnderlyingData(\n input: {columnName: $columnName, companyId: $companyId, query: $query, value: $value, workspaceId: $workspaceId}\n ) {\n data\n timeTaken\n }\n}\n ";
|
|
3998
4000
|
export declare const useUnderlyingDataMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<UnderlyingDataMutation, TError, Exact<{
|
|
3999
4001
|
columnName?: InputMaybe<string> | undefined;
|
|
4000
4002
|
companyId?: InputMaybe<string> | undefined;
|
|
4001
4003
|
query?: InputMaybe<string> | undefined;
|
|
4002
4004
|
value?: InputMaybe<Scalars['json']>;
|
|
4005
|
+
workspaceId?: InputMaybe<string> | undefined;
|
|
4003
4006
|
}>, TContext> | undefined) => import("react-query").UseMutationResult<UnderlyingDataMutation, TError, Exact<{
|
|
4004
4007
|
columnName?: InputMaybe<string> | undefined;
|
|
4005
4008
|
companyId?: InputMaybe<string> | undefined;
|
|
4006
4009
|
query?: InputMaybe<string> | undefined;
|
|
4007
4010
|
value?: InputMaybe<Scalars['json']>;
|
|
4011
|
+
workspaceId?: InputMaybe<string> | undefined;
|
|
4008
4012
|
}>, TContext>;
|
|
4009
4013
|
export declare const InvokeSaveRawCsvDetailsDocument = "\n mutation InvokeSaveRawCsvDetails($configurations: json = \"\", $expireCsvFileAt: String = \"\", $externalMetricId: String = \"\", $integrationId: String = \"\", $integrationName: String = \"\", $query: String = \"\", $expireUrlIn: Int = 60) {\n invokeSaveRawCsvDetails(\n input: {configurations: $configurations, expireCsvFileAt: $expireCsvFileAt, externalMetricId: $externalMetricId, integrationId: $integrationId, integrationName: $integrationName, query: $query, expireUrlIn: $expireUrlIn}\n ) {\n error\n statusCode\n }\n}\n ";
|
|
4010
4014
|
export declare const useInvokeSaveRawCsvDetailsMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<InvokeSaveRawCsvDetailsMutation, TError, Exact<{
|
package/package.json
CHANGED
|
@@ -1,110 +1,110 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@databrainhq/plugin",
|
|
3
|
-
"version": "0.9.
|
|
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.31",
|
|
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
|
+
}
|