jamespot-react-core 1.1.120 → 1.1.122
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/562.bundle.js +38 -31
- package/build/562.bundle.js.map +1 -1
- package/build/app.bundle.js +256 -250
- package/build/app.bundle.js.map +1 -1
- package/build/src/displayer/DisplayForm.component.d.ts +2 -2
- package/build/src/displayer/components/inputs/InputTaxonomy.d.ts +4 -4
- package/build/src/registry/ext-component-list.d.ts +6 -0
- package/package.json +3 -3
|
@@ -6,8 +6,8 @@ export type DisplayFormProps<TFieldValues extends FieldValues> = {
|
|
|
6
6
|
fields: FieldsWith<'input', TFieldValues>;
|
|
7
7
|
extraInputs?: (control: Control<TFieldValues>) => React.ReactNode;
|
|
8
8
|
defaultValues?: any;
|
|
9
|
-
onSubmit
|
|
10
|
-
buttons
|
|
9
|
+
onSubmit?: any;
|
|
10
|
+
buttons?: React.ReactNode;
|
|
11
11
|
readOnly?: boolean;
|
|
12
12
|
dataCy?: string;
|
|
13
13
|
stretch?: boolean;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { DisplayInputComponentProps } from '../../types';
|
|
3
|
-
import type { FieldValues } from 'react-hook-form';
|
|
4
3
|
import type { WidgetTaxonomy } from 'jamespot-user-api';
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { FieldValues, Path } from 'react-hook-form';
|
|
5
|
+
type InputTaxonomyConfig<T extends FieldValues = FieldValues> = {
|
|
6
|
+
name: Path<T>;
|
|
7
7
|
placeholder: string;
|
|
8
8
|
type: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const InputTaxonomy: (widget: WidgetTaxonomy, config: InputTaxonomyConfig) =>
|
|
10
|
+
export declare const InputTaxonomy: <TFieldValues extends FieldValues>(widget: WidgetTaxonomy, config: InputTaxonomyConfig<TFieldValues>) => (props: Required<Pick<import("react-hook-form").UseControllerProps<TFieldValues, Path<TFieldValues>>, "name" | "control">> & {
|
|
11
11
|
label: string;
|
|
12
12
|
placeholder?: string | undefined;
|
|
13
13
|
description?: string | undefined;
|
|
@@ -71,6 +71,7 @@ declare const _default: {
|
|
|
71
71
|
readonly InputAudience: "JRCInputAudience";
|
|
72
72
|
readonly InputAutocomplete: "JRCInputAutocomplete";
|
|
73
73
|
readonly InputCheckbox: "JRCInputCheckbox";
|
|
74
|
+
readonly InputCheckboxRaw: "JRCInputCheckboxRaw";
|
|
74
75
|
readonly InputCommunity: "JRCInputCommunity";
|
|
75
76
|
readonly InputDate: "JRCInputDate";
|
|
76
77
|
readonly InputEmail: "JRCInputEmail";
|
|
@@ -79,6 +80,7 @@ declare const _default: {
|
|
|
79
80
|
readonly InputRichText: "JRCInputRichText";
|
|
80
81
|
readonly InputSearch: "JRCInputSearch";
|
|
81
82
|
readonly InputSelect: "JRCInputSelect";
|
|
83
|
+
readonly InputSelectRaw: "JRCInputSelectRaw";
|
|
82
84
|
readonly InputSelectHierarchicalTree: "JRCInputSelectHierarchicalTree";
|
|
83
85
|
readonly InputSelectList: "JRCInputSelectList";
|
|
84
86
|
readonly InputTaxonomy: "JRCInputTaxonomy";
|
|
@@ -92,7 +94,11 @@ declare const _default: {
|
|
|
92
94
|
readonly MainColumn: "JRCMainColumn";
|
|
93
95
|
readonly Menu: "JRCMenu";
|
|
94
96
|
readonly Modal: "JRCModal";
|
|
97
|
+
readonly ModalContent: "JRCModalContent";
|
|
98
|
+
readonly ModalContentForm: "JRCModalContentForm";
|
|
99
|
+
readonly ModalForm: "JRCModalForm";
|
|
95
100
|
readonly ModalImg: "JRCModalImg";
|
|
101
|
+
readonly ModalLayout: "JRCModalLayout";
|
|
96
102
|
readonly PageNotLogged: "JRCPageNotLogged";
|
|
97
103
|
readonly Pagination: "JRCPagination";
|
|
98
104
|
readonly Panel: "JRCPanel";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.122",
|
|
4
4
|
"description": "Jamespot React Core",
|
|
5
5
|
"main": "./build/app.bundle.js",
|
|
6
6
|
"types": "./build/src/App.d.ts",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@reduxjs/toolkit": "^1.9.0",
|
|
51
51
|
"history": "^5.3.0",
|
|
52
52
|
"jamespot-front-business": "^1.1.26",
|
|
53
|
-
"jamespot-react-components": "^1.0.
|
|
54
|
-
"jamespot-user-api": "^1.0.
|
|
53
|
+
"jamespot-react-components": "^1.0.152",
|
|
54
|
+
"jamespot-user-api": "^1.0.124",
|
|
55
55
|
"react": "^17.0.2",
|
|
56
56
|
"react-dom": "^17.0.2",
|
|
57
57
|
"react-hook-form": "^7.25.0",
|