jamespot-react-core 1.1.111 → 1.1.113

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.
@@ -12,5 +12,6 @@ import './Router';
12
12
  import './Toast';
13
13
  export { ReactRouterHistory };
14
14
  export * from './components';
15
+ export * from './hooks';
15
16
  export * from './types';
16
17
  export default App;
@@ -24,4 +24,5 @@ export declare const DisplayForm: React.ForwardRefExoticComponent<{
24
24
  buttons: React.ReactNode;
25
25
  readOnly?: boolean | undefined;
26
26
  dataCy?: string | undefined;
27
+ stretch?: boolean | undefined;
27
28
  } & React.RefAttributes<DisplayFormRef>>;
@@ -1,14 +1,21 @@
1
1
  import * as React from 'react';
2
2
  import { UseFormReset } from 'react-hook-form';
3
3
  import { Widget } from 'jamespot-user-api';
4
- export declare type Fields<Object, Properties extends string> = Array<Properties | {
4
+ export declare type IncludeCustom = {
5
+ includes: 'tags';
6
+ };
7
+ export declare type Field<Object, Properties extends string> = Properties | {
5
8
  name: Properties;
6
9
  componentsOverride: Partial<DisplayElementComponent<Object>>;
7
- }>;
8
- export declare type FieldsWithOptionalRender<Object, Properties extends string> = Array<Properties | {
10
+ disableSortBy?: boolean;
11
+ } | IncludeCustom;
12
+ export declare type FieldWithOptionalRender<Object, Properties extends string> = Properties | {
9
13
  name: Properties;
10
14
  render: React.FunctionComponent<RenderAttributeProps<Object>>;
11
- }>;
15
+ disableSortBy?: boolean;
16
+ } | IncludeCustom;
17
+ export declare type Fields<Object, Properties extends string> = Array<Field<Object, Properties>>;
18
+ export declare type FieldsWithOptionalRender<Object, Properties extends string> = Array<FieldWithOptionalRender<Object, Properties>>;
12
19
  export declare type DisplayInputComponentProps = {
13
20
  control: any;
14
21
  label: string;
@@ -8,7 +8,7 @@ import { Displayer, Fields } from './types';
8
8
  export declare function useDisplay<Object, Properties extends string = string>(fields: Fields<Object, Properties>, type: string): Displayer<Object, Properties>;
9
9
  export declare function useDisplayList<Object, Properties extends string = string>(fields: FieldsWithOptionalRender<Object, Properties>, type: string): {
10
10
  accessor: (object: Object) => JSX.Element;
11
- disableSortBy: boolean;
11
+ disableSortBy: boolean | undefined;
12
12
  id: Properties;
13
13
  Header: string;
14
14
  name: Properties;
@@ -0,0 +1,2 @@
1
+ import useWindowDimension from './useWindowDimension';
2
+ export { useWindowDimension };
@@ -0,0 +1 @@
1
+ export { WindowDimension, WindowOrientation } from './useWindowDimension';
@@ -0,0 +1,8 @@
1
+ export declare type WindowOrientation = 'landscape' | 'portrait';
2
+ export declare type WindowDimension = {
3
+ width: number;
4
+ height: number;
5
+ orientation: WindowOrientation;
6
+ };
7
+ declare const useWindowDimension: () => WindowDimension;
8
+ export default useWindowDimension;
@@ -15,6 +15,7 @@ declare const _default: {
15
15
  readonly ButtonFile: "JRCButtonFile";
16
16
  readonly Card: "JRCCard";
17
17
  readonly CardImg: "JRCCardImg";
18
+ readonly ClickAwayListener: "ClickAwayListener";
18
19
  readonly BETA_ColorPicker: "BETA_JRCColorPicker";
19
20
  readonly Column: "JRCColumn";
20
21
  readonly ColumnCenter: "JRCColumnCenter";
@@ -33,6 +34,7 @@ declare const _default: {
33
34
  readonly File: "JRCFile";
34
35
  readonly FileAvatar: "JRCFileAvatar";
35
36
  readonly FlexBox: "JRCFlexBox";
37
+ readonly Folders: "JRCFolders";
36
38
  readonly DEPRECATEDFormCheckbox: "JRCFormCheckbox";
37
39
  readonly DEPRECATEDFormColorField: "JRCFormColorField";
38
40
  readonly DEPRECATEDFormDatetimeField: "JRCFormDatetimeField";
@@ -89,6 +91,7 @@ declare const _default: {
89
91
  readonly Pagination: "JRCPagination";
90
92
  readonly Panel: "JRCPanel";
91
93
  readonly Resources: "Resources";
94
+ readonly SidePanelModal: "JRCSidePanelModal";
92
95
  readonly SkeletonLine: "JRCSkeletonLine";
93
96
  readonly SkeletonList: "JRCSkeletonList";
94
97
  readonly SkeletonSquare: "JRCSkeletonSquare";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-core",
3
- "version": "1.1.111",
3
+ "version": "1.1.113",
4
4
  "description": "Jamespot React Core",
5
5
  "main": "./build/app.bundle.js",
6
6
  "types": "./build/src/App.d.ts",
@@ -66,9 +66,9 @@
66
66
  "dependencies": {
67
67
  "@reduxjs/toolkit": "^1.9.0",
68
68
  "history": "^5.3.0",
69
- "jamespot-front-business": "^1.1.18",
70
- "jamespot-react-components": "^1.0.140",
71
- "jamespot-user-api": "^1.0.110",
69
+ "jamespot-front-business": "^1.1.19",
70
+ "jamespot-react-components": "^1.0.142",
71
+ "jamespot-user-api": "^1.0.112",
72
72
  "react": "^17.0.2",
73
73
  "react-dom": "^17.0.2",
74
74
  "react-hook-form": "^7.25.0",