@databrainhq/plugin 0.8.1 → 0.8.3
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/components/Charts/Table/TableChart.d.ts +3 -3
- package/dist/components/MetricChart/MetricChart.d.ts +2 -1
- package/dist/components/MetricCreation/MetricCreation.d.ts +1 -1
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +1 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +3 -1
- package/dist/components/MetricList/MetricList.d.ts +1 -0
- package/dist/components/MetricList/components/DeleteMetricModal.d.ts +1 -0
- package/dist/components/Table/DebouncedInput.d.ts +6 -0
- package/dist/components/Table/index.d.ts +4 -1
- package/dist/consts/validations.d.ts +24 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useApplyAdminTheme.d.ts +2 -0
- package/dist/hooks/useDownloadRawCsv.d.ts +18 -0
- package/dist/hooks/useEmbeddedDashboard.d.ts +1 -0
- package/dist/index.es.js +7222 -3460
- package/dist/index.umd.js +140 -62
- package/dist/style.css +1 -1
- package/dist/types/metricCreate.d.ts +2 -0
- package/dist/typings.d.ts +17 -17
- package/dist/utils/generated/graphql.d.ts +43 -2
- package/dist/utils/theme.d.ts +1 -0
- package/package.json +98 -96
- package/dist/contexts/globalTheme.d.ts +0 -9
|
@@ -11,6 +11,7 @@ export declare type EmbeddedMetricCreationProps = {
|
|
|
11
11
|
mode: boolean;
|
|
12
12
|
externalDashboardId: string;
|
|
13
13
|
variant?: 'static' | 'floating';
|
|
14
|
+
chartColors?: string[];
|
|
14
15
|
};
|
|
15
16
|
export declare type HeaderProps = {
|
|
16
17
|
Heading: string;
|
|
@@ -111,6 +112,7 @@ export declare type MetricOutputProps = {
|
|
|
111
112
|
tab: JSX.Element;
|
|
112
113
|
tabContent: JSX.Element;
|
|
113
114
|
}[];
|
|
115
|
+
chartColors?: string[];
|
|
114
116
|
};
|
|
115
117
|
export declare type CompanyIntegration = {
|
|
116
118
|
id: string;
|
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
|
+
}
|
|
@@ -161,6 +161,16 @@ export declare type PreviewTableOutput = {
|
|
|
161
161
|
data?: Maybe<PreviewTableData>;
|
|
162
162
|
error?: Maybe<PreviewTableError>;
|
|
163
163
|
};
|
|
164
|
+
export declare type SendRawCsvInput = {
|
|
165
|
+
companyId: Scalars['String'];
|
|
166
|
+
recipientAddress: Scalars['String'];
|
|
167
|
+
sqlQuery: Scalars['String'];
|
|
168
|
+
};
|
|
169
|
+
export declare type SendRawCsvOutput = {
|
|
170
|
+
__typename?: 'SendRawCsvOutput';
|
|
171
|
+
error?: Maybe<Error>;
|
|
172
|
+
status?: Maybe<Scalars['String']>;
|
|
173
|
+
};
|
|
164
174
|
/** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */
|
|
165
175
|
export declare type String_Comparison_Exp = {
|
|
166
176
|
_eq?: InputMaybe<Scalars['String']>;
|
|
@@ -1072,6 +1082,7 @@ export declare type Mutation_Root = {
|
|
|
1072
1082
|
/** insert a single row into the table: "externalMetrics" */
|
|
1073
1083
|
insert_externalMetrics_one?: Maybe<ExternalMetrics>;
|
|
1074
1084
|
previewTable?: Maybe<PreviewTableOutput>;
|
|
1085
|
+
sendRawCsv?: Maybe<SendRawCsvOutput>;
|
|
1075
1086
|
/** update data of the table: "externalMetrics" */
|
|
1076
1087
|
update_externalMetrics?: Maybe<ExternalMetrics_Mutation_Response>;
|
|
1077
1088
|
/** update single row of the table: "externalMetrics" */
|
|
@@ -1148,6 +1159,10 @@ export declare type Mutation_RootPreviewTableArgs = {
|
|
|
1148
1159
|
input: PreviewTableInput;
|
|
1149
1160
|
};
|
|
1150
1161
|
/** mutation root */
|
|
1162
|
+
export declare type Mutation_RootSendRawCsvArgs = {
|
|
1163
|
+
input: SendRawCsvInput;
|
|
1164
|
+
};
|
|
1165
|
+
/** mutation root */
|
|
1151
1166
|
export declare type Mutation_RootUpdate_ExternalMetricsArgs = {
|
|
1152
1167
|
_set?: InputMaybe<ExternalMetrics_Set_Input>;
|
|
1153
1168
|
where: ExternalMetrics_Bool_Exp;
|
|
@@ -1661,7 +1676,7 @@ export declare type CompanySubsetTableDataMutation = {
|
|
|
1661
1676
|
} | null;
|
|
1662
1677
|
};
|
|
1663
1678
|
export declare type EmbeddedDashboardMetricsQueryVariables = Exact<{
|
|
1664
|
-
|
|
1679
|
+
externalDashboardId?: Scalars['String'];
|
|
1665
1680
|
}>;
|
|
1666
1681
|
export declare type EmbeddedDashboardMetricsQuery = {
|
|
1667
1682
|
__typename?: 'query_root';
|
|
@@ -1841,6 +1856,22 @@ export declare type QueryExternalMetricQuery = {
|
|
|
1841
1856
|
timeTaken?: number | null;
|
|
1842
1857
|
} | null;
|
|
1843
1858
|
};
|
|
1859
|
+
export declare type RawCsvMutationVariables = Exact<{
|
|
1860
|
+
companyId?: InputMaybe<Scalars['String']>;
|
|
1861
|
+
recipientAddress?: InputMaybe<Scalars['String']>;
|
|
1862
|
+
sqlQuery?: InputMaybe<Scalars['String']>;
|
|
1863
|
+
}>;
|
|
1864
|
+
export declare type RawCsvMutation = {
|
|
1865
|
+
__typename?: 'mutation_root';
|
|
1866
|
+
sendRawCsv?: {
|
|
1867
|
+
__typename?: 'SendRawCsvOutput';
|
|
1868
|
+
status?: string | null;
|
|
1869
|
+
error?: {
|
|
1870
|
+
__typename?: 'Error';
|
|
1871
|
+
message: string;
|
|
1872
|
+
} | null;
|
|
1873
|
+
} | null;
|
|
1874
|
+
};
|
|
1844
1875
|
export declare const CreateExternalMetricDocument = "\n mutation CreateExternalMetric($chartOptions: jsonb = \"\", $companyId: uuid = \"\", $companyIntegrationId: uuid = \"\", $description: String = \"\", $inputFields: jsonb = \"\", $integrationName: String = \"\", $metricId: String = \"\", $metricQuery: String = \"\", $name: String = \"\", $outputColumns: String = \"\", $query: String = \"\", $isLive: Boolean, $clientId: String = \"\", $isCreatedByClient: Boolean = false, $createdBy: String = \"\", $timeGrain: String = \"\", $externalDashboardIds: [externalDashboardMetrics_insert_input!] = {}, $selectedGroupBy: jsonb = [], $isEnableGroupBy: Boolean = false, $groupBy: jsonb = {}) {\n insert_externalMetrics_one(\n object: {chartOptions: $chartOptions, companyId: $companyId, companyIntegrationId: $companyIntegrationId, description: $description, inputFields: $inputFields, integrationName: $integrationName, metricId: $metricId, metricQuery: $metricQuery, name: $name, outputColumns: $outputColumns, query: $query, isLive: $isLive, clientId: $clientId, isCreatedByClient: $isCreatedByClient, createdBy: $createdBy, timeGrain: $timeGrain, externalDashboardMetrics: {data: $externalDashboardIds}, selectedGroupBy: $selectedGroupBy, isEnableGroupBy: $isEnableGroupBy, groupBy: $groupBy}\n ) {\n id\n externalDashboardMetrics {\n externalDashboardId\n }\n }\n}\n ";
|
|
1845
1876
|
export declare const useCreateExternalMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<CreateExternalMetricMutation, TError, Exact<{
|
|
1846
1877
|
chartOptions?: InputMaybe<Scalars['jsonb']>;
|
|
@@ -1923,7 +1954,7 @@ export declare const useCompanySubsetTableDataMutation: <TError = unknown, TCont
|
|
|
1923
1954
|
clientId?: InputMaybe<string> | undefined;
|
|
1924
1955
|
companyId?: InputMaybe<string> | undefined;
|
|
1925
1956
|
}>, TContext>;
|
|
1926
|
-
export declare const EmbeddedDashboardMetricsDocument = "\n query EmbeddedDashboardMetrics($
|
|
1957
|
+
export declare const EmbeddedDashboardMetricsDocument = "\n query EmbeddedDashboardMetrics($externalDashboardId: String! = \"\") {\n externalDashboardMetrics(\n where: {externalDashboard: {externalDashboardId: {_eq: $externalDashboardId}}, externalMetric: {isMarkedDeleted: {_eq: false}}}\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 resizeAttributes\n timeGrain\n updatedAt\n selectedGroupBy\n isEnableGroupBy\n groupBy\n rlsConditions\n companyIntegration {\n name\n }\n clickActions\n }\n }\n}\n ";
|
|
1927
1958
|
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>;
|
|
1928
1959
|
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 ";
|
|
1929
1960
|
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>;
|
|
@@ -1967,3 +1998,13 @@ export declare const usePreviewTableMutation: <TError = unknown, TContext = unkn
|
|
|
1967
1998
|
}>, TContext>;
|
|
1968
1999
|
export declare const QueryExternalMetricDocument = "\n query QueryExternalMetric($id: String = \"\", $clientId: String = \"\", $globalFilters: json = \"\", $rlsConditions: json = [], $filterValues: json = \"\", $tenancyLevel: String = \"\") {\n externalMetricQuery(\n input: {externalMetricId: $id, clientId: $clientId, globalFilters: $globalFilters, rlsConditions: $rlsConditions, filterValues: $filterValues, tenancyLevel: $tenancyLevel}\n ) {\n data\n timeTaken\n }\n}\n ";
|
|
1969
2000
|
export declare const useQueryExternalMetricQuery: <TData = QueryExternalMetricQuery, TError = unknown>(variables?: QueryExternalMetricQueryVariables, options?: UseQueryOptions<QueryExternalMetricQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
2001
|
+
export declare const RawCsvDocument = "\n mutation RawCsv($companyId: String = \"\", $recipientAddress: String = \"\", $sqlQuery: String = \"\") {\n sendRawCsv(\n input: {companyId: $companyId, recipientAddress: $recipientAddress, sqlQuery: $sqlQuery}\n ) {\n status\n error {\n message\n }\n }\n}\n ";
|
|
2002
|
+
export declare const useRawCsvMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<RawCsvMutation, TError, Exact<{
|
|
2003
|
+
companyId?: InputMaybe<string> | undefined;
|
|
2004
|
+
recipientAddress?: InputMaybe<string> | undefined;
|
|
2005
|
+
sqlQuery?: InputMaybe<string> | undefined;
|
|
2006
|
+
}>, TContext> | undefined) => import("react-query").UseMutationResult<RawCsvMutation, TError, Exact<{
|
|
2007
|
+
companyId?: InputMaybe<string> | undefined;
|
|
2008
|
+
recipientAddress?: InputMaybe<string> | undefined;
|
|
2009
|
+
sqlQuery?: InputMaybe<string> | undefined;
|
|
2010
|
+
}>, TContext>;
|
package/dist/utils/theme.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,96 +1,98 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@databrainhq/plugin",
|
|
3
|
-
"version": "0.8.
|
|
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
|
-
"engines": {
|
|
20
|
-
"node": "^14.13.1 || >=16.15.1",
|
|
21
|
-
"yarn": "please-use-npm"
|
|
22
|
-
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"serve": "vite --port 3005",
|
|
25
|
-
"build:css": "tailwindcss build -i src/index.css -o dist/index.css",
|
|
26
|
-
"build": "tsc && vite build",
|
|
27
|
-
"husky": "husky install",
|
|
28
|
-
"predeploy": "cd example && npm install && npm run build",
|
|
29
|
-
"lint": "eslint --ext .tsx,.ts --ignore-path .gitignore --fix src",
|
|
30
|
-
"codegen": "graphql-codegen --config codegen.yml -r dotenv/config",
|
|
31
|
-
"prepare": "npm run 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
|
-
"@svgr/core": "^6.5.1",
|
|
44
|
-
"@types/node": "^12.12.38",
|
|
45
|
-
"@types/react": "^18.0.26",
|
|
46
|
-
"@types/react-dom": "^18.0.10",
|
|
47
|
-
"@types/react-grid-layout": "^1.3.2",
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^4.31.1",
|
|
49
|
-
"@typescript-eslint/parser": "^4.31.1",
|
|
50
|
-
"@vitejs/plugin-react": "^1.3.0",
|
|
51
|
-
"autoprefixer": "^10.4.7",
|
|
52
|
-
"babel-eslint": "^10.0.3",
|
|
53
|
-
"cross-env": "^7.0.2",
|
|
54
|
-
"eslint": "^7.32.0",
|
|
55
|
-
"eslint-config-airbnb": "^18.2.1",
|
|
56
|
-
"eslint-config-airbnb-typescript": "^14.0.0",
|
|
57
|
-
"eslint-config-prettier": "^8.3.0",
|
|
58
|
-
"eslint-plugin-import": "^2.24.2",
|
|
59
|
-
"eslint-plugin-jsx-a11y": "^6.6.0",
|
|
60
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
61
|
-
"eslint-plugin-react": "^7.30.1",
|
|
62
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
63
|
-
"eslint-plugin-unicorn": "^36.0.0",
|
|
64
|
-
"graphql": "^16.6.0",
|
|
65
|
-
"husky": "^8.0.1",
|
|
66
|
-
"lint-staged": "^13.0.3",
|
|
67
|
-
"postcss": "^8.4.21",
|
|
68
|
-
"prettier": "^2.0.4",
|
|
69
|
-
"react": "^18.2.0",
|
|
70
|
-
"react-dom": "^18.2.0",
|
|
71
|
-
"tailwindcss": "^3.2.4",
|
|
72
|
-
"ts-node": "^10.9.1",
|
|
73
|
-
"typescript": "^4.6.3",
|
|
74
|
-
"unplugin-icons": "^0.14.7",
|
|
75
|
-
"vite": "^2.9.9",
|
|
76
|
-
"vite-plugin-dts": "^1.7.1",
|
|
77
|
-
"vite-tsconfig-paths": "^4.0.3"
|
|
78
|
-
},
|
|
79
|
-
"files": [
|
|
80
|
-
"dist"
|
|
81
|
-
],
|
|
82
|
-
"dependencies": {
|
|
83
|
-
"@headlessui/react": "^1.7.2",
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"react-
|
|
90
|
-
"react-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@databrainhq/plugin",
|
|
3
|
+
"version": "0.8.3",
|
|
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
|
+
"engines": {
|
|
20
|
+
"node": "^14.13.1 || >=16.15.1",
|
|
21
|
+
"yarn": "please-use-npm"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"serve": "vite --port 3005",
|
|
25
|
+
"build:css": "tailwindcss build -i src/index.css -o dist/index.css",
|
|
26
|
+
"build": "tsc && vite build",
|
|
27
|
+
"husky": "husky install",
|
|
28
|
+
"predeploy": "cd example && npm install && npm run build",
|
|
29
|
+
"lint": "eslint --ext .tsx,.ts --ignore-path .gitignore --fix src",
|
|
30
|
+
"codegen": "graphql-codegen --config codegen.yml -r dotenv/config",
|
|
31
|
+
"prepare": "npm run 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
|
+
"@svgr/core": "^6.5.1",
|
|
44
|
+
"@types/node": "^12.12.38",
|
|
45
|
+
"@types/react": "^18.0.26",
|
|
46
|
+
"@types/react-dom": "^18.0.10",
|
|
47
|
+
"@types/react-grid-layout": "^1.3.2",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^4.31.1",
|
|
49
|
+
"@typescript-eslint/parser": "^4.31.1",
|
|
50
|
+
"@vitejs/plugin-react": "^1.3.0",
|
|
51
|
+
"autoprefixer": "^10.4.7",
|
|
52
|
+
"babel-eslint": "^10.0.3",
|
|
53
|
+
"cross-env": "^7.0.2",
|
|
54
|
+
"eslint": "^7.32.0",
|
|
55
|
+
"eslint-config-airbnb": "^18.2.1",
|
|
56
|
+
"eslint-config-airbnb-typescript": "^14.0.0",
|
|
57
|
+
"eslint-config-prettier": "^8.3.0",
|
|
58
|
+
"eslint-plugin-import": "^2.24.2",
|
|
59
|
+
"eslint-plugin-jsx-a11y": "^6.6.0",
|
|
60
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
61
|
+
"eslint-plugin-react": "^7.30.1",
|
|
62
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
63
|
+
"eslint-plugin-unicorn": "^36.0.0",
|
|
64
|
+
"graphql": "^16.6.0",
|
|
65
|
+
"husky": "^8.0.1",
|
|
66
|
+
"lint-staged": "^13.0.3",
|
|
67
|
+
"postcss": "^8.4.21",
|
|
68
|
+
"prettier": "^2.0.4",
|
|
69
|
+
"react": "^18.2.0",
|
|
70
|
+
"react-dom": "^18.2.0",
|
|
71
|
+
"tailwindcss": "^3.2.4",
|
|
72
|
+
"ts-node": "^10.9.1",
|
|
73
|
+
"typescript": "^4.6.3",
|
|
74
|
+
"unplugin-icons": "^0.14.7",
|
|
75
|
+
"vite": "^2.9.9",
|
|
76
|
+
"vite-plugin-dts": "^1.7.1",
|
|
77
|
+
"vite-tsconfig-paths": "^4.0.3"
|
|
78
|
+
},
|
|
79
|
+
"files": [
|
|
80
|
+
"dist"
|
|
81
|
+
],
|
|
82
|
+
"dependencies": {
|
|
83
|
+
"@headlessui/react": "^1.7.2",
|
|
84
|
+
"@tanstack/match-sorter-utils": "^8.8.4",
|
|
85
|
+
"@tanstack/react-table": "^8.7.9",
|
|
86
|
+
"classnames": "^2.3.2",
|
|
87
|
+
"echarts": "^5.4.1",
|
|
88
|
+
"echarts-for-react": "^3.0.2",
|
|
89
|
+
"react-error-boundary": "^3.1.4",
|
|
90
|
+
"react-grid-layout": "^1.3.4",
|
|
91
|
+
"react-hook-form": "^7.33.1",
|
|
92
|
+
"react-query": "^3.39.2"
|
|
93
|
+
},
|
|
94
|
+
"peerDependencies": {
|
|
95
|
+
"react": "^18.2.0",
|
|
96
|
+
"react-dom": "^18.2.0"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { Themes } from '@/utils/generated/graphql';
|
|
3
|
-
interface ThemeContextType {
|
|
4
|
-
globalTheme?: Themes;
|
|
5
|
-
setGlobalTheme: React.Dispatch<React.SetStateAction<ThemeContextType['globalTheme']>>;
|
|
6
|
-
}
|
|
7
|
-
export declare const useGlobalTheme: () => ThemeContextType;
|
|
8
|
-
export declare const GlobalThemeProvider: React.FC<PropsWithChildren>;
|
|
9
|
-
export {};
|