climb-onyx-gui 0.12.4 → 0.12.5

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/types.d.ts CHANGED
@@ -1,9 +1,3 @@
1
- interface OnyxProps {
2
- httpPathHandler: (path: string) => Promise<Response>;
3
- s3PathHandler?: (path: string) => void;
4
- fileWriter?: (path: string, content: string) => void;
5
- extVersion?: string;
6
- }
7
1
  type ProjectField = {
8
2
  type: string;
9
3
  description: string;
@@ -11,10 +5,24 @@ type ProjectField = {
11
5
  values?: string[];
12
6
  fields?: Record<string, ProjectField>;
13
7
  };
8
+ type FilterField = {
9
+ key: string;
10
+ field: string;
11
+ lookup: string;
12
+ value: string;
13
+ };
14
14
  type OptionType = {
15
15
  label: string;
16
16
  value: string;
17
17
  };
18
- type ResultType = Record<string, string | number | boolean | null>;
18
+ type ResultType = Record<string, string | number | boolean | object | null>;
19
19
  type ErrorType = Record<string, string | string[]>;
20
- export type { OnyxProps, ProjectField, OptionType, ResultType, ErrorType };
20
+ type ResultData = {
21
+ status: string;
22
+ code: number;
23
+ next?: string;
24
+ previous?: string;
25
+ data?: ResultType[];
26
+ messages?: ErrorType;
27
+ };
28
+ export type { ProjectField, FilterField, OptionType, ResultType, ErrorType, ResultData, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "climb-onyx-gui",
3
- "version": "0.12.4",
3
+ "version": "0.12.5",
4
4
  "type": "module",
5
5
  "main": "dist/climb-onyx-gui.js",
6
6
  "types": "dist/main.d.ts",
@@ -18,6 +18,10 @@
18
18
  "prepublishOnly": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
+ "@ag-grid-community/client-side-row-model": "^32.1.0",
22
+ "@ag-grid-community/core": "^32.1.0",
23
+ "@ag-grid-community/react": "^32.1.0",
24
+ "@ag-grid-community/styles": "^32.1.0",
21
25
  "@tanstack/react-query": "^4.36.1",
22
26
  "export-to-csv": "^1.3.0",
23
27
  "plotly.js-basic-dist": "^2.33.0",
@@ -1,6 +0,0 @@
1
- import { ErrorType } from '../types';
2
-
3
- declare function ErrorMessages(props: {
4
- messages: ErrorType;
5
- }): (import("react/jsx-runtime").JSX.Element | import("react/jsx-runtime").JSX.Element[])[];
6
- export default ErrorMessages;
@@ -1,3 +0,0 @@
1
- declare function LoadingAlert(): import("react/jsx-runtime").JSX.Element;
2
- declare function DelayedLoadingAlert(): false | import("react/jsx-runtime").JSX.Element;
3
- export { LoadingAlert, DelayedLoadingAlert };
@@ -1,10 +0,0 @@
1
- import { ResultType } from '../types';
2
-
3
- declare const ResultsTable: import('react').NamedExoticComponent<{
4
- data: ResultType[];
5
- titles?: Map<string, string> | undefined;
6
- recordDetailHandler?: ((climbID: string) => void) | undefined;
7
- s3PathHandler?: ((path: string) => void) | undefined;
8
- isSortable?: boolean | undefined;
9
- }>;
10
- export default ResultsTable;