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.
- package/build/706.bundle.js +33 -29
- package/build/706.bundle.js.map +1 -1
- package/build/app.bundle.js +545 -495
- package/build/app.bundle.js.map +1 -1
- package/build/src/App.d.ts +1 -0
- package/build/src/displayer/DisplayForm.component.d.ts +1 -0
- package/build/src/displayer/types.d.ts +11 -4
- package/build/src/displayer/useDisplay.d.ts +1 -1
- package/build/src/hooks/index.d.ts +2 -0
- package/build/src/hooks/types.d.ts +1 -0
- package/build/src/hooks/useWindowDimension.d.ts +8 -0
- package/build/src/registry/ext-component-list.d.ts +3 -0
- package/package.json +4 -4
package/build/src/App.d.ts
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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 @@
|
|
|
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.
|
|
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.
|
|
70
|
-
"jamespot-react-components": "^1.0.
|
|
71
|
-
"jamespot-user-api": "^1.0.
|
|
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",
|