@cubejs-client/react 1.7.35 → 1.7.37

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.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { CubeContextProps } from './types';
3
2
  /**
4
3
  * In case when you need direct access to `cubeApi` you can use `CubeContext` anywhere in your app
@@ -1 +1 @@
1
- {"version":3,"file":"CubeContext.d.ts","sourceRoot":"","sources":["../src/CubeContext.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;;AAGH,wBAAoF"}
1
+ {"version":3,"file":"CubeContext.d.ts","sourceRoot":"","sources":["../src/CubeContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;;AAGH,wBAAoF"}
@@ -84,34 +84,34 @@ export default class QueryBuilder extends React.Component<QueryBuilderProps, Que
84
84
  };
85
85
  static getDerivedStateFromProps(props: QueryBuilderProps, state: QueryBuilderInternalState): {
86
86
  query: {
87
- measures?: string[] | undefined;
88
- dimensions?: string[] | undefined;
89
- filters?: import("@cubejs-client/core").Filter[] | undefined;
90
- timeDimensions?: import("@cubejs-client/core").TimeDimension[] | undefined;
91
- segments?: string[] | undefined;
92
- limit?: number | null | undefined;
93
- rowLimit?: number | null | undefined;
94
- offset?: number | undefined;
95
- order?: import("@cubejs-client/core").TQueryOrderObject | import("@cubejs-client/core").TQueryOrderArray | undefined;
96
- timezone?: string | undefined;
97
- ungrouped?: boolean | undefined;
98
- responseFormat?: "compact" | "columnar" | "default" | undefined;
99
- total?: boolean | undefined;
87
+ measures?: string[];
88
+ dimensions?: string[];
89
+ filters?: import("@cubejs-client/core").Filter[];
90
+ timeDimensions?: import("@cubejs-client/core").TimeDimension[];
91
+ segments?: string[];
92
+ limit?: null | number;
93
+ rowLimit?: null | number;
94
+ offset?: number;
95
+ order?: import("@cubejs-client/core").TQueryOrderObject | import("@cubejs-client/core").TQueryOrderArray;
96
+ timezone?: string;
97
+ ungrouped?: boolean;
98
+ responseFormat?: "compact" | "columnar" | "default";
99
+ total?: boolean;
100
100
  };
101
- pivotConfig?: PivotConfig | undefined;
102
- chartType?: ChartType | undefined;
103
- validatedQuery?: Query | undefined;
101
+ pivotConfig?: PivotConfig;
102
+ chartType?: ChartType;
103
+ validatedQuery?: Query;
104
104
  missingMembers: string[];
105
105
  isFetchingMeta: boolean;
106
- dryRunResponse?: DryRunResponse | null | undefined;
107
- meta?: Meta | undefined;
108
- metaError?: Error | null | undefined;
109
- richMetaError?: Error | null | undefined;
110
- metaErrorStack?: string | null | undefined;
111
- queryError?: Error | null | undefined;
112
- richQueryError?: Error | null | undefined;
113
- sessionGranularity?: string | null | undefined;
114
- shouldApplyHeuristicOrder?: boolean | undefined;
106
+ dryRunResponse?: DryRunResponse | null;
107
+ meta?: Meta;
108
+ metaError?: Error | null;
109
+ richMetaError?: Error | null;
110
+ metaErrorStack?: string | null;
111
+ queryError?: Error | null;
112
+ richQueryError?: Error | null;
113
+ sessionGranularity?: import("@cubejs-client/core").TimeDimensionGranularity | null;
114
+ shouldApplyHeuristicOrder?: boolean;
115
115
  } | null;
116
116
  static resolveMember(type: QueryMemberType, { meta, query }: ResolveMemberArgs): unknown[];
117
117
  constructor(props: QueryBuilderProps);
@@ -1 +1 @@
1
- {"version":3,"file":"QueryRendererWithTotals.d.ts","sourceRoot":"","sources":["../src/QueryRendererWithTotals.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAE5D,QAAA,MAAM,uBAAuB,4BAA6B,4BAA4B,gBAerF,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"QueryRendererWithTotals.d.ts","sourceRoot":"","sources":["../src/QueryRendererWithTotals.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAE5D,QAAA,MAAM,uBAAuB,GAAI,yBAAyB,4BAA4B,gBAerF,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubejs-client/react",
3
- "version": "1.7.35",
3
+ "version": "1.7.37",
4
4
  "author": "Cube Dev, Inc.",
5
5
  "license": "MIT",
6
6
  "engines": {},
@@ -16,37 +16,26 @@
16
16
  "scripts": {
17
17
  "build": "tsc --build",
18
18
  "tsc": "tsc --build",
19
- "watch": "tsc --build --watch",
20
- "lint": "eslint src --ext .ts,.tsx",
21
- "lint:fix": "eslint --fix src --ext .ts,.tsx"
19
+ "watch": "tsc --build --watch"
22
20
  },
23
21
  "files": [
24
22
  "src",
25
23
  "dist"
26
24
  ],
27
25
  "dependencies": {
28
- "@babel/runtime": "^7.1.2",
29
- "@cubejs-client/core": "1.7.35",
30
- "core-js": "^3.6.5",
26
+ "@babel/runtime": "^7.13.9",
27
+ "@cubejs-client/core": "1.7.37",
28
+ "core-js": "^3.34.0",
31
29
  "ramda": "^0.27.2"
32
30
  },
33
31
  "devDependencies": {
34
- "@babel/core": "^7.13.8",
32
+ "@babel/core": "^7.24.5",
35
33
  "@types/ramda": "^0.27.40",
36
34
  "@types/react": "^16.9.41",
37
- "@typescript-eslint/eslint-plugin": "^6.12.0",
38
- "@typescript-eslint/parser": "^6.12.0",
39
- "eslint": "^7.21.0",
40
- "eslint-config-airbnb": "^18.0.1",
41
- "eslint-config-airbnb-base": "^14.0.0",
42
- "eslint-plugin-import": "^2.18.2",
43
- "eslint-plugin-jsx-a11y": "^6.2.3",
44
- "eslint-plugin-node": "^10.0.0",
45
- "eslint-plugin-react": "^7.15.1",
46
- "typescript": "~5.2.2"
35
+ "typescript": "~6.0.3"
47
36
  },
48
37
  "peerDependencies": {
49
38
  "react": ">=16.10.2"
50
39
  },
51
- "gitHead": "c93da328cd867933b7759f116b8c919b79eb3474"
40
+ "gitHead": "28c8efd405d900a1b9cb6cb5ebc2ec951aa375be"
52
41
  }