climb-onyx-gui 0.15.2-dev.3 → 0.15.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.
@@ -5,9 +5,8 @@ interface ColumnsModalProps extends DataProps {
5
5
  show: boolean;
6
6
  onHide: () => void;
7
7
  columns: Field[];
8
- defaultColumns: string[];
9
- activeColumns: string[];
10
- setActiveColumns: (value: string[]) => void;
8
+ activeColumns: Field[];
9
+ setActiveColumns: (value: Field[]) => void;
11
10
  }
12
11
  declare function ColumnsModal(props: ColumnsModalProps): import("react/jsx-runtime").JSX.Element;
13
12
  export default ColumnsModal;
@@ -1,5 +1,5 @@
1
1
  import { PageProps } from '../interfaces';
2
- import { ObjectType, Project, RecentlyViewed } from '../types';
2
+ import { Project, RecentlyViewed } from '../types';
3
3
 
4
4
  interface HeaderProps extends PageProps {
5
5
  project?: Project;
@@ -11,7 +11,7 @@ interface HeaderProps extends PageProps {
11
11
  handleAnalysisShow: (analysisID: string) => void;
12
12
  handleProjectRecordHide: () => void;
13
13
  handleAnalysisHide: () => void;
14
- handleRecentlyViewed: (objectType: ObjectType, ID: string) => void;
14
+ handleRecentlyViewed: (ID: string, handleShowID: (ID: string) => void) => void;
15
15
  }
16
16
  declare function Header(props: HeaderProps): import("react/jsx-runtime").JSX.Element;
17
17
  export default Header;
@@ -1,13 +1,11 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
- import { ExportStatus, TabState, Project, Field } from './types';
2
+ import { ExportStatus, Project, Field, TabState } from './types';
3
3
 
4
4
  export interface OnyxProps {
5
5
  httpPathHandler: (path: string) => Promise<Response>;
6
6
  s3PathHandler: (path: string) => Promise<void>;
7
7
  fileWriter: (path: string, content: string) => Promise<void>;
8
8
  extVersion: string;
9
- getItem?: (key: string) => unknown;
10
- setItem?: (key: string, value: unknown) => void;
11
9
  }
12
10
  export interface PageProps extends OnyxProps {
13
11
  darkMode: boolean;
package/dist/types.d.ts CHANGED
@@ -51,7 +51,6 @@ export declare enum ExportStatus {
51
51
  CANCELLED = 4,
52
52
  ERROR = 5
53
53
  }
54
- export type ObjectType = "record" | "analysis";
55
54
  export type TabState = {
56
55
  tabKey: OnyxTabKeys;
57
56
  recordTabKey: RecordTabKeys;
@@ -64,9 +63,9 @@ export type TabState = {
64
63
  analysisID: string;
65
64
  };
66
65
  export type RecentlyViewed = {
67
- objectType: ObjectType;
68
66
  ID: string;
69
- timestamp: string;
67
+ timestamp: Date;
68
+ handleShowID: (id: string) => void;
70
69
  };
71
70
  export type FieldType = "text" | "choice" | "integer" | "decimal" | "date" | "datetime" | "bool" | "relation" | "array" | "structure" | "";
72
71
  export type GraphType = "line" | "bar" | "pie" | "";
@@ -14,7 +14,7 @@ declare function handleJSONExport(props: DetailResponseProps): (exportProps: Exp
14
14
  declare function formatFilters(filters: FilterConfig[]): string[][];
15
15
  /** Takes a Response object and returns its status code, formatted as a string. */
16
16
  declare function formatResponseStatus(response: Response): string;
17
- export declare function formatTimeAgo(timestamp: string): string;
17
+ export declare function formatTimeAgo(timestamp: Date): string;
18
18
  declare function formatField(field: string): string;
19
19
  declare function formatLookup(lookup: string): string;
20
20
  declare function formatValue(value: string): string;
@@ -1,7 +1,4 @@
1
- import { OnyxProps } from '../interfaces';
2
-
3
- export declare function useDebouncedValue<T>(inputValue: T, delay: number): T;
1
+ export declare const useDebouncedValue: (inputValue: string, delay: number) => string;
4
2
  export declare const useDelayedValue: (delay?: number) => boolean;
5
3
  export declare const useCyclicValue: (start: number, end: number, pause?: number) => number;
6
4
  export declare const useQueryRefresh: (refresh: number | null, dataUpdatedAt: number, errorUpdatedAt: number, refetch: () => void, setLastUpdated: (lastUpdated: string | null) => void) => void;
7
- export declare function usePersistedState<T>(props: OnyxProps, key: string, initialValue: T): readonly [T, import('react').Dispatch<import('react').SetStateAction<T>>];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "climb-onyx-gui",
3
- "version": "0.15.2-dev.3",
3
+ "version": "0.15.2",
4
4
  "description": "Onyx Graphical User Interface",
5
5
  "keywords": [
6
6
  "gui",