jamespot-react-core 1.1.90 → 1.1.92
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/898.bundle.js +1 -1
- package/build/app.bundle.js +423 -311
- package/build/app.bundle.js.map +1 -1
- package/build/displayer/components/inputs/InputEmail.d.ts +2 -0
- package/build/displayer/components/inputs/InputSelect.d.ts +10 -0
- package/build/displayer/components/inputs/InputTaxonomy.d.ts +8 -0
- package/build/displayer/displayer.utils.d.ts +6 -0
- package/build/displayer/formatter.d.ts +13 -1
- package/build/displayer/types.d.ts +3 -2
- package/build/displayer/useDisplay.d.ts +1 -1
- package/build/registry/ext-component-list.d.ts +4 -0
- package/build/utils/ensure.d.ts +0 -2
- package/package.json +4 -4
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DisplayInputComponentProps } from '../../types';
|
|
2
|
+
declare type InputSelectConfig = {
|
|
3
|
+
name: string;
|
|
4
|
+
placeholder: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const InputSelect: (options: Array<{
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}>, config: InputSelectConfig) => (props: DisplayInputComponentProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DisplayInputComponentProps } from '../../types';
|
|
2
|
+
import { WidgetTaxonomy } from 'jamespot-user-api';
|
|
3
|
+
declare type InputTaxonomyConfig = {
|
|
4
|
+
name: string;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const InputTaxonomy: (widget: WidgetTaxonomy, config: InputTaxonomyConfig) => (props: DisplayInputComponentProps) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -41,7 +41,7 @@ export declare function formatDefault<Properties extends string>(configuration:
|
|
|
41
41
|
export declare function formatEmail<Properties extends string>(configuration: FieldConfiguration<Properties>): {
|
|
42
42
|
components: {
|
|
43
43
|
render: typeof DisplayEmail;
|
|
44
|
-
input:
|
|
44
|
+
input: (props: import("./types").DisplayInputComponentProps) => JSX.Element;
|
|
45
45
|
search: typeof NotImplemented;
|
|
46
46
|
};
|
|
47
47
|
label: string;
|
|
@@ -86,6 +86,18 @@ export declare function formatRadio<Properties extends string>(configuration: Fi
|
|
|
86
86
|
name: Properties;
|
|
87
87
|
mandatory: boolean;
|
|
88
88
|
};
|
|
89
|
+
export declare function formatSelect<Properties extends string>(configuration: FieldConfiguration<Properties>): {
|
|
90
|
+
components: {
|
|
91
|
+
render: () => JSX.Element;
|
|
92
|
+
input: (props: import("./types").DisplayInputComponentProps) => JSX.Element;
|
|
93
|
+
search: typeof NotImplemented;
|
|
94
|
+
};
|
|
95
|
+
label: string;
|
|
96
|
+
description?: string;
|
|
97
|
+
widget: import("jamespot-user-api").Widget;
|
|
98
|
+
name: Properties;
|
|
99
|
+
mandatory: boolean;
|
|
100
|
+
};
|
|
89
101
|
export declare function formatRichText<Properties extends string>(configuration: FieldConfiguration<Properties>): {
|
|
90
102
|
components: {
|
|
91
103
|
render: typeof DisplayRichText;
|
|
@@ -1,17 +1,18 @@
|
|
|
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> =
|
|
4
|
+
export declare type Fields<Object, Properties extends string> = Array<Properties | {
|
|
5
5
|
name: Properties;
|
|
6
6
|
componentsOverride: Partial<DisplayElementComponent<Object>>;
|
|
7
7
|
}>;
|
|
8
|
-
export declare type FieldsList<Object, Properties extends string> =
|
|
8
|
+
export declare type FieldsList<Object, Properties extends string> = Array<Properties | {
|
|
9
9
|
name: Properties;
|
|
10
10
|
render: React.FunctionComponent<RenderAttributeProps<Object>>;
|
|
11
11
|
}>;
|
|
12
12
|
export declare type DisplayInputComponentProps = {
|
|
13
13
|
control: any;
|
|
14
14
|
label: string;
|
|
15
|
+
placeholder?: any;
|
|
15
16
|
description?: string;
|
|
16
17
|
name: string;
|
|
17
18
|
widget: Widget;
|
|
@@ -25,6 +25,7 @@ declare const _default: {
|
|
|
25
25
|
readonly DraggingPlaceholder: "JRCDraggingPlaceholder";
|
|
26
26
|
readonly DropDown: "JRCDropDown";
|
|
27
27
|
readonly Ellipsis: "JRCEllipsis";
|
|
28
|
+
readonly FadeStepper: "JRCFadeStepper";
|
|
28
29
|
readonly FileOpen: "JRCFileOpen";
|
|
29
30
|
readonly FlexBox: "JRCFlexBox";
|
|
30
31
|
readonly FormCheckbox: "JRCFormCheckbox";
|
|
@@ -55,7 +56,9 @@ declare const _default: {
|
|
|
55
56
|
readonly Html: "JRCHtml";
|
|
56
57
|
readonly Icon: "JRCIcon";
|
|
57
58
|
readonly IconButton: "JRCIconButton";
|
|
59
|
+
readonly ImageStepper: "JRCImageStepper";
|
|
58
60
|
readonly Img: "JRCImg";
|
|
61
|
+
readonly InputAudience: "JRCInputAudience";
|
|
59
62
|
readonly InputAutocomplete: "JRCInputAutocomplete";
|
|
60
63
|
readonly InputCheckbox: "JRCInputCheckbox";
|
|
61
64
|
readonly InputCommunity: "JRCInputCommunity";
|
|
@@ -76,6 +79,7 @@ declare const _default: {
|
|
|
76
79
|
readonly Resources: "Resources";
|
|
77
80
|
readonly SkeletonLine: "JRCSkeletonLine";
|
|
78
81
|
readonly SkeletonSquare: "JRCSkeletonSquare";
|
|
82
|
+
readonly Stepper: "JRCStepper";
|
|
79
83
|
readonly StyledHref: "JRCStyledHref";
|
|
80
84
|
readonly StyledInput: "StyledInput";
|
|
81
85
|
readonly Tabs: "JRCTabs";
|
package/build/utils/ensure.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { UriOrTypeId } from 'jamespot-react-components';
|
|
2
|
-
import { jObjectLittle } from 'jamespot-user-api';
|
|
3
2
|
export declare function getUnknownProperty(object: unknown, attribute: string): unknown | undefined;
|
|
4
3
|
export declare function ensureIsString(object: unknown): object is string;
|
|
5
4
|
export declare function ensureIsNumber(object: unknown): object is number;
|
|
6
5
|
export declare function ensureHasUriOrTypeId(object: unknown): object is UriOrTypeId;
|
|
7
|
-
export declare function ensureObjectLittle(object: unknown): object is jObjectLittle;
|
|
8
6
|
export declare function ensureIsArray(object: unknown): object is Array<unknown>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.92",
|
|
4
4
|
"description": "Jamespot React Core",
|
|
5
5
|
"main": "./build/app.bundle.js",
|
|
6
6
|
"types": "./build/App.d.ts",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@reduxjs/toolkit": "^1.9.0",
|
|
66
66
|
"history": "^5.3.0",
|
|
67
|
-
"jamespot-front-business": "^1.1.
|
|
68
|
-
"jamespot-react-components": "^1.0.
|
|
69
|
-
"jamespot-user-api": "^1.0.
|
|
67
|
+
"jamespot-front-business": "^1.1.6",
|
|
68
|
+
"jamespot-react-components": "^1.0.120",
|
|
69
|
+
"jamespot-user-api": "^1.0.92",
|
|
70
70
|
"react": "^17.0.2",
|
|
71
71
|
"react-dom": "^17.0.2",
|
|
72
72
|
"react-hook-form": "^7.25.0",
|