jamespot-react-core 1.1.87 → 1.1.89

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.
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { DisplayFormProps, DisplayFormRef } from './types';
2
+ import { DisplayFormRef } from './types';
3
3
  /****
4
4
  * The jamespot model depend on the platform
5
5
  * For example a user can have the size attribute only for a given platform
@@ -10,10 +10,7 @@ import { DisplayFormProps, DisplayFormRef } from './types';
10
10
  * @param props.object the object to display (ie the user)
11
11
  * @param props.attributesName an array of string : the list of attributes we want to display
12
12
  * @param props.componentsOverride we can override the default render of the attribute
13
- * @param props.componentsOverride.render the whole component logic (we override @DisplayList or @DisplaySingleValue for exemple)
14
- * @param props.componentsOverride.wrapper the attribute is wrapped inside an element. For a list it can be an UL
15
- * @param props.componentsOverride.element the component just above the element value
16
13
  * @param props.componentsOverride.input the component input
17
14
  * Note :If we override the "render" you can't override "wrapper" and "element" because the render rewrite everything
18
15
  */
19
- export declare const DisplayForm: React.ForwardRefExoticComponent<DisplayFormProps & React.RefAttributes<DisplayFormRef>>;
16
+ export declare const DisplayForm: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<DisplayFormRef>>;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { RenderAttributeProps } from 'displayer/types';
3
+ export declare function DisplayDate<Object, Properties extends string = string>({ object, attribute, }: RenderAttributeProps<Object, Properties>): JSX.Element | null;
4
+ export declare function DisplayDefault<Object, Properties extends string = string>({ object, attribute, }: RenderAttributeProps<Object, Properties>): JSX.Element | null;
5
+ export declare function DisplayEmail<Object, Properties extends string = string>({ object, attribute, }: RenderAttributeProps<Object, Properties>): JSX.Element | null;
6
+ export declare function DisplayRadio<Object, Properties extends string = string>({ object, attribute, }: RenderAttributeProps<Object, Properties>): JSX.Element | null;
7
+ export declare function DisplayRichText<Object, Properties extends string = string>({ object, attribute, }: RenderAttributeProps<Object, Properties>): JSX.Element | null;
8
+ export declare function DisplayTag<Object, Properties extends string = string>({ object, attribute, }: RenderAttributeProps<Object, Properties>): JSX.Element | null;
9
+ export declare function DisplayUrl<Object, Properties extends string = string>({ object, attribute, }: RenderAttributeProps<Object, Properties>): JSX.Element | null;
@@ -0,0 +1,149 @@
1
+ /// <reference types="react" />
2
+ import { DisplayDate, DisplayDefault, DisplayEmail, DisplayRadio, DisplayRichText, DisplayTag, DisplayUrl } from 'displayer/components/DisplayRender';
3
+ import { FieldConfiguration } from 'jamespot-user-api';
4
+ declare function NotImplemented(): JSX.Element;
5
+ export declare function formatCheckbox<Properties extends string>(configuration: FieldConfiguration<Properties>): {
6
+ components: {
7
+ render: typeof DisplayDefault;
8
+ input: ({ widget, ...props }: import("./types").DisplayInputComponentProps) => JSX.Element;
9
+ search: typeof NotImplemented;
10
+ };
11
+ label: string;
12
+ description?: string;
13
+ widget: import("jamespot-user-api").Widget;
14
+ name: Properties;
15
+ mandatory: boolean;
16
+ };
17
+ export declare function formatDate<Properties extends string = string>(configuration: FieldConfiguration<Properties>): {
18
+ components: {
19
+ render: typeof DisplayDate;
20
+ input: (props: import("./types").DisplayInputComponentProps) => JSX.Element;
21
+ search: (props: import("./types").DisplayInputComponentProps) => JSX.Element;
22
+ };
23
+ label: string;
24
+ description?: string;
25
+ widget: import("jamespot-user-api").Widget;
26
+ name: Properties;
27
+ mandatory: boolean;
28
+ };
29
+ export declare function formatDefault<Properties extends string>(configuration: FieldConfiguration<Properties>): {
30
+ components: {
31
+ render: typeof DisplayDefault;
32
+ input: (props: import("./types").DisplayInputComponentProps) => JSX.Element;
33
+ search: typeof NotImplemented;
34
+ };
35
+ label: string;
36
+ description?: string;
37
+ widget: import("jamespot-user-api").Widget;
38
+ name: Properties;
39
+ mandatory: boolean;
40
+ };
41
+ export declare function formatEmail<Properties extends string>(configuration: FieldConfiguration<Properties>): {
42
+ components: {
43
+ render: typeof DisplayEmail;
44
+ input: typeof NotImplemented;
45
+ search: typeof NotImplemented;
46
+ };
47
+ label: string;
48
+ description?: string;
49
+ widget: import("jamespot-user-api").Widget;
50
+ name: Properties;
51
+ mandatory: boolean;
52
+ };
53
+ export declare function formatNumber<Properties extends string>(configuration: FieldConfiguration<Properties>): {
54
+ components: {
55
+ render: typeof DisplayDefault;
56
+ input: (props: import("./types").DisplayInputComponentProps) => JSX.Element;
57
+ search: typeof NotImplemented;
58
+ };
59
+ label: string;
60
+ description?: string;
61
+ widget: import("jamespot-user-api").Widget;
62
+ name: Properties;
63
+ mandatory: boolean;
64
+ };
65
+ export declare function formatOrientedlinks<Properties extends string>(configuration: FieldConfiguration<Properties>): {
66
+ components: {
67
+ render: typeof DisplayTag;
68
+ input: ({ widget, ...props }: import("./types").DisplayInputComponentProps) => JSX.Element;
69
+ search: ({ widget, ...props }: import("./types").DisplayInputComponentProps) => JSX.Element;
70
+ };
71
+ label: string;
72
+ description?: string;
73
+ widget: import("jamespot-user-api").Widget;
74
+ name: Properties;
75
+ mandatory: boolean;
76
+ };
77
+ export declare function formatRadio<Properties extends string>(configuration: FieldConfiguration<Properties>): {
78
+ components: {
79
+ render: typeof DisplayRadio;
80
+ input: ({ widget, ...props }: import("./types").DisplayInputComponentProps) => JSX.Element;
81
+ search: ({ widget, ...props }: import("./types").DisplayInputComponentProps) => JSX.Element;
82
+ };
83
+ label: string;
84
+ description?: string;
85
+ widget: import("jamespot-user-api").Widget;
86
+ name: Properties;
87
+ mandatory: boolean;
88
+ };
89
+ export declare function formatRichText<Properties extends string>(configuration: FieldConfiguration<Properties>): {
90
+ components: {
91
+ render: typeof DisplayRichText;
92
+ input: typeof NotImplemented;
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
+ };
101
+ export declare function formatTaxonomy<Properties extends string>(configuration: FieldConfiguration<Properties>): {
102
+ components: {
103
+ render: typeof DisplayDefault;
104
+ input: (props: import("./types").DisplayInputComponentProps) => JSX.Element;
105
+ search: typeof NotImplemented;
106
+ };
107
+ label: string;
108
+ description?: string;
109
+ widget: import("jamespot-user-api").Widget;
110
+ name: Properties;
111
+ mandatory: boolean;
112
+ };
113
+ export declare function formatTextarea<Properties extends string>(configuration: FieldConfiguration<Properties>): {
114
+ components: {
115
+ render: typeof DisplayDefault;
116
+ input: (props: import("./types").DisplayInputComponentProps) => JSX.Element;
117
+ search: typeof NotImplemented;
118
+ };
119
+ label: string;
120
+ description?: string;
121
+ widget: import("jamespot-user-api").Widget;
122
+ name: Properties;
123
+ mandatory: boolean;
124
+ };
125
+ export declare function formatUri<Properties extends string>(configuration: FieldConfiguration<Properties>): {
126
+ components: {
127
+ render: typeof DisplayDefault;
128
+ input: ({ widget, ...props }: import("./types").DisplayInputComponentProps) => JSX.Element;
129
+ search: typeof NotImplemented;
130
+ };
131
+ label: string;
132
+ description?: string;
133
+ widget: import("jamespot-user-api").Widget;
134
+ name: Properties;
135
+ mandatory: boolean;
136
+ };
137
+ export declare function formatUrl<Properties extends string>(configuration: FieldConfiguration<Properties>): {
138
+ components: {
139
+ render: typeof DisplayUrl;
140
+ input: typeof NotImplemented;
141
+ search: typeof NotImplemented;
142
+ };
143
+ label: string;
144
+ description?: string;
145
+ widget: import("jamespot-user-api").Widget;
146
+ name: Properties;
147
+ mandatory: boolean;
148
+ };
149
+ export {};
@@ -1,7 +1,14 @@
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<T extends string> = ReadonlyArray<T>;
4
+ export declare type Fields<Object, Properties extends string> = ReadonlyArray<Properties | {
5
+ name: Properties;
6
+ componentsOverride: Partial<DisplayElementComponent<Object>>;
7
+ }>;
8
+ export declare type FieldsList<Object, Properties extends string> = ReadonlyArray<Properties | {
9
+ name: Properties;
10
+ render: React.FunctionComponent<RenderAttributeProps<Object>>;
11
+ }>;
5
12
  export declare type DisplayInputComponentProps = {
6
13
  control: any;
7
14
  label: string;
@@ -10,54 +17,38 @@ export declare type DisplayInputComponentProps = {
10
17
  widget: Widget;
11
18
  mandatory: boolean;
12
19
  };
13
- export declare type DisplayElementComponent = {
14
- render: React.FunctionComponent<RenderAttributeProps>;
15
- wrapper: React.FunctionComponent<any>;
16
- element: React.FunctionComponent<any>;
20
+ export declare type DisplayElementComponent<Object> = {
21
+ render: React.FunctionComponent<RenderAttributeProps<Object>>;
17
22
  input: React.FunctionComponent<DisplayInputComponentProps>;
18
23
  search?: React.FunctionComponent<DisplayInputComponentProps>;
19
24
  };
20
- export declare type DisplayerElement = {
21
- name: string;
25
+ export declare type DisplayerElement<Object, Properties extends string = string> = {
26
+ name: Properties;
22
27
  label: string;
23
28
  description?: string;
24
- accessor: string;
25
29
  mandatory: boolean;
26
30
  widget: Widget;
27
- components: DisplayElementComponent;
28
- };
29
- declare type DisplayAttributeComponentOverrideProps = {
30
- render: React.FunctionComponent<RenderAttributeProps>;
31
- } | {
32
- wrapper: React.FunctionComponent<any>;
33
- element: React.FunctionComponent<any>;
34
- } | {
35
- wrapper: React.FunctionComponent<any>;
36
- } | {
37
- element: React.FunctionComponent<any>;
38
- } | {
39
- input: React.FunctionComponent<any>;
40
- };
41
- export declare type DisplayAttributesProps = {
42
- object: any;
43
- componentsOverride?: Record<string, DisplayAttributeComponentOverrideProps>;
31
+ components: DisplayElementComponent<Object>;
32
+ };
33
+ export declare type DisplayAttributesProps<Object> = {
34
+ object: Object;
35
+ componentsOverride?: Record<string, Partial<DisplayElementComponent<Object>>>;
44
36
  attributesName: string[];
45
37
  };
46
- export declare type RenderAttributeProps = {
47
- object: any;
48
- attribute: DisplayerElement;
38
+ export declare type RenderAttributeProps<Object, Properties extends string = string> = {
39
+ object: Object;
40
+ attribute: Omit<DisplayerElement<Object, Properties>, 'components'>;
49
41
  };
50
- export declare type DisplayFormProps = {
51
- object: any;
52
- componentsOverride?: Record<string, DisplayAttributeComponentOverrideProps>;
42
+ export declare type DisplayFormProps<Object> = {
43
+ object: Object;
44
+ componentsOverride?: Record<string, Partial<DisplayElementComponent<Object>>>;
53
45
  attributesName: string[];
54
46
  onSubmit: any;
55
47
  };
56
48
  export declare type DisplayFormRef = {
57
49
  reset: UseFormReset<any>;
58
50
  };
59
- export declare type RenderInputProps = DisplayerElement & {
51
+ export declare type RenderInputProps<Object> = DisplayerElement<Object> & {
60
52
  control: any;
61
53
  };
62
- export declare type Displayer = Array<DisplayerElement>;
63
- export {};
54
+ export declare type Displayer<Object, Properties extends string = string> = Array<DisplayerElement<Object, Properties>>;
@@ -1,7 +1,15 @@
1
+ import { /*DisplayerElement,*/ FieldsList } from 'App';
1
2
  import { Displayer, Fields } from './types';
2
3
  /**
3
4
  *
4
5
  * @param fields - fields that we want to display (firstname, name, age...)
5
6
  * @param type - model type (user, article, spot...)
6
7
  */
7
- export declare function useDisplay<T extends string = string>(fields: Fields<T>, type: string): Displayer;
8
+ export declare function useDisplay<Object, Properties extends string = string>(fields: Fields<Object, Properties>, type: string): Displayer<Object, Properties>;
9
+ export declare function useDisplayList<Object, Properties extends string = string>(fields: FieldsList<Object, Properties>, type: string): {
10
+ accessor: (object: Object) => JSX.Element;
11
+ disableSortBy: boolean;
12
+ id: Properties;
13
+ Header: string;
14
+ name: Properties;
15
+ }[];
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  readonly AutocompleteCommunityField: "JRCAutocompleteCommunityField";
9
9
  readonly AutocompleteTaxonomyField: "JRCAutocompleteTaxonomyField";
10
10
  readonly Avatar: "JRCAvatar";
11
+ readonly BaseTooltip: "JRCBaseTooltip";
11
12
  readonly Button: "JRCButton";
12
13
  readonly ButtonDownload: "JRCButtonDownload";
13
14
  readonly ButtonDropdown: "JRCButtonDropdown";
@@ -0,0 +1,6 @@
1
+ import type { UriOrTypeId } from 'jamespot-react-components';
2
+ export declare function getUnknownProperty(object: unknown, attribute: string): unknown | undefined;
3
+ export declare function ensureIsString(object: unknown): object is string;
4
+ export declare function ensureIsNumber(object: unknown): object is number;
5
+ export declare function ensureHasUriOrTypeId(object: unknown): object is UriOrTypeId;
6
+ export declare function ensureIsArray(object: unknown): object is Array<unknown>;
@@ -1,6 +1,6 @@
1
1
  import { Application, jUserList, Model } from 'jamespot-user-api';
2
2
  import * as React from 'react';
3
- import { useDisplay } from '../displayer/useDisplay';
3
+ import { useDisplay, useDisplayList } from '../displayer/useDisplay';
4
4
  import { ReactRegistry } from '../registry/Registry';
5
5
  import { JrComponentListType } from '../registry/types';
6
6
  import { ReactRouter } from './router';
@@ -27,6 +27,7 @@ export interface ReactCore {
27
27
  }) => void;
28
28
  changeWindowLocation: (targetUrl: string, event: React.MouseEvent<HTMLElement>, enableWindowOpen: boolean) => void;
29
29
  useDisplay: typeof useDisplay;
30
+ useDisplayList: typeof useDisplayList;
30
31
  }
31
32
  export interface ReactExtensions {
32
33
  [key: string]: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-core",
3
- "version": "1.1.87",
3
+ "version": "1.1.89",
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.3",
68
- "jamespot-react-components": "^1.0.116",
69
- "jamespot-user-api": "^1.0.89",
67
+ "jamespot-front-business": "^1.1.5",
68
+ "jamespot-react-components": "^1.0.118",
69
+ "jamespot-user-api": "^1.0.91",
70
70
  "react": "^17.0.2",
71
71
  "react-dom": "^17.0.2",
72
72
  "react-hook-form": "^7.25.0",
@@ -1,18 +0,0 @@
1
- /// <reference types="react" />
2
- import { DisplayAttributesProps } from './types';
3
- /****
4
- * The jamespot model depend on the platform
5
- * For example a user can have the size attribute only for a given platform
6
- * The model specifics of a platform are stored in J.model
7
- *
8
- * This component display an array of attributes only if this attribute is activated on the platform
9
- *
10
- * @param props.object the object to display (ie the user)
11
- * @param props.attributesName an array of string : the list of attributes we want to display
12
- * @param props.componentsOverride we can override the default render of the attribute
13
- * @param props.componentsOverride.render the whole component logic (we override @DisplayList or @DisplaySingleValue for exemple)
14
- * @param props.componentsOverride.wrapper the attribute is wrapped inside an element. For a list it can be an UL
15
- * @param props.componentsOverride.element the component just above the element value
16
- * Note :If we override the "render" you can't override "wrapper" and "element" because the render rewrite everything
17
- */
18
- export declare const DisplayAttributes: (props: DisplayAttributesProps) => (JSX.Element | undefined)[];
@@ -1,2 +0,0 @@
1
- import { RenderAttributeProps } from 'displayer/types';
2
- export declare const DisplayList: (props: RenderAttributeProps) => JSX.Element | null;
@@ -1,3 +0,0 @@
1
- import { RenderAttributeProps } from 'displayer/types';
2
- export declare const DisplaySingleValue: (props: RenderAttributeProps) => JSX.Element | null;
3
- export declare const DisplayDate: ({ object, attribute }: RenderAttributeProps) => JSX.Element;
@@ -1,186 +0,0 @@
1
- import * as React from 'react';
2
- import { FieldConfiguration } from 'jamespot-user-api';
3
- export declare function formatDate<T extends string>(configuration: FieldConfiguration<T>): {
4
- accessor: T;
5
- components: {
6
- render: ({ object, attribute }: import("../types").RenderAttributeProps) => JSX.Element;
7
- wrapper: ({ children }: {
8
- children: React.FunctionComponent<any>;
9
- }) => JSX.Element;
10
- element: ({ children }: {
11
- children: React.FunctionComponent<any>;
12
- }) => JSX.Element;
13
- input: (props: import("../types").DisplayInputComponentProps) => JSX.Element;
14
- search: (props: import("../types").DisplayInputComponentProps) => JSX.Element;
15
- };
16
- label: string;
17
- description?: string;
18
- widget: import("jamespot-user-api").Widget;
19
- name: T;
20
- mandatory: boolean;
21
- };
22
- export declare function formatString<T extends string>(configuration: FieldConfiguration<T>): {
23
- accessor: T;
24
- components: {
25
- render: (props: import("../types").RenderAttributeProps) => JSX.Element | null;
26
- wrapper: ({ children }: {
27
- children: React.FunctionComponent<any>;
28
- }) => JSX.Element;
29
- element: ({ children }: {
30
- children: React.FunctionComponent<any>;
31
- }) => JSX.Element;
32
- input: (props: import("../types").DisplayInputComponentProps) => JSX.Element;
33
- search: (props: import("../types").DisplayInputComponentProps) => JSX.Element;
34
- };
35
- label: string;
36
- description?: string;
37
- widget: import("jamespot-user-api").Widget;
38
- name: T;
39
- mandatory: boolean;
40
- };
41
- export declare function formatTextarea<T extends string>(configuration: FieldConfiguration<T>): {
42
- accessor: T;
43
- components: {
44
- render: (props: import("../types").RenderAttributeProps) => JSX.Element | null;
45
- wrapper: ({ children }: {
46
- children: React.FunctionComponent<any>;
47
- }) => JSX.Element;
48
- element: ({ children }: {
49
- children: React.FunctionComponent<any>;
50
- }) => JSX.Element;
51
- input: (props: import("../types").DisplayInputComponentProps) => JSX.Element;
52
- };
53
- label: string;
54
- description?: string;
55
- widget: import("jamespot-user-api").Widget;
56
- name: T;
57
- mandatory: boolean;
58
- };
59
- export declare function formatNumber<T extends string>(configuration: FieldConfiguration<T>): {
60
- accessor: T;
61
- components: {
62
- render: (props: import("../types").RenderAttributeProps) => JSX.Element | null;
63
- wrapper: ({ children }: {
64
- children: React.FunctionComponent<any>;
65
- }) => JSX.Element;
66
- element: ({ children }: {
67
- children: React.FunctionComponent<any>;
68
- }) => JSX.Element;
69
- input: (props: import("../types").DisplayInputComponentProps) => JSX.Element;
70
- };
71
- label: string;
72
- description?: string;
73
- widget: import("jamespot-user-api").Widget;
74
- name: T;
75
- mandatory: boolean;
76
- };
77
- export declare function formatTaxonomy<T extends string>(configuration: FieldConfiguration<T>): {
78
- accessor: T;
79
- components: {
80
- render: (props: import("../types").RenderAttributeProps) => JSX.Element | null;
81
- wrapper: ({ children }: {
82
- children: React.FunctionComponent<any>;
83
- }) => JSX.Element;
84
- element: ({ children }: {
85
- children: React.FunctionComponent<any>;
86
- }) => JSX.Element;
87
- input: (props: import("../types").DisplayInputComponentProps) => JSX.Element;
88
- };
89
- label: string;
90
- description?: string;
91
- widget: import("jamespot-user-api").Widget;
92
- name: T;
93
- mandatory: boolean;
94
- };
95
- export declare function formatOrientedlinks<T extends string>(configuration: FieldConfiguration<T>): {
96
- accessor: T;
97
- components: {
98
- render: (props: import("../types").RenderAttributeProps) => JSX.Element | null;
99
- wrapper: ({ children }: {
100
- children: React.FunctionComponent<any>;
101
- }) => JSX.Element;
102
- element: ({ children }: {
103
- children: React.FunctionComponent<any>;
104
- }) => JSX.Element;
105
- input: ({ widget, ...props }: import("../types").DisplayInputComponentProps) => JSX.Element;
106
- search: ({ widget, ...props }: import("../types").DisplayInputComponentProps) => JSX.Element;
107
- };
108
- label: string;
109
- description?: string;
110
- widget: import("jamespot-user-api").Widget;
111
- name: T;
112
- mandatory: boolean;
113
- };
114
- export declare function formatUri<T extends string>(configuration: FieldConfiguration<T>): {
115
- accessor: T;
116
- components: {
117
- render: (props: import("../types").RenderAttributeProps) => JSX.Element | null;
118
- wrapper: ({ children }: {
119
- children: React.FunctionComponent<any>;
120
- }) => JSX.Element;
121
- element: ({ children }: {
122
- children: React.FunctionComponent<any>;
123
- }) => JSX.Element;
124
- input: ({ widget, ...props }: import("../types").DisplayInputComponentProps) => JSX.Element;
125
- };
126
- label: string;
127
- description?: string;
128
- widget: import("jamespot-user-api").Widget;
129
- name: T;
130
- mandatory: boolean;
131
- };
132
- export declare function formatRadio<T extends string>(configuration: FieldConfiguration<T>): {
133
- accessor: T;
134
- components: {
135
- render: (props: import("../types").RenderAttributeProps) => JSX.Element | null;
136
- wrapper: ({ children }: {
137
- children: React.FunctionComponent<any>;
138
- }) => JSX.Element;
139
- element: ({ children }: {
140
- children: React.FunctionComponent<any>;
141
- }) => JSX.Element;
142
- input: ({ widget, ...props }: import("../types").DisplayInputComponentProps) => JSX.Element;
143
- search: ({ widget, ...props }: import("../types").DisplayInputComponentProps) => JSX.Element;
144
- };
145
- label: string;
146
- description?: string;
147
- widget: import("jamespot-user-api").Widget;
148
- name: T;
149
- mandatory: boolean;
150
- };
151
- export declare function formatCheckbox<T extends string>(configuration: FieldConfiguration<T>): {
152
- accessor: T;
153
- components: {
154
- render: (props: import("../types").RenderAttributeProps) => JSX.Element | null;
155
- wrapper: ({ children }: {
156
- children: React.FunctionComponent<any>;
157
- }) => JSX.Element;
158
- element: ({ children }: {
159
- children: React.FunctionComponent<any>;
160
- }) => JSX.Element;
161
- input: ({ widget, ...props }: import("../types").DisplayInputComponentProps) => JSX.Element;
162
- };
163
- label: string;
164
- description?: string;
165
- widget: import("jamespot-user-api").Widget;
166
- name: T;
167
- mandatory: boolean;
168
- };
169
- export declare function formatDefault<T extends string>(configuration: FieldConfiguration<T>): {
170
- accessor: T;
171
- components: {
172
- render: (props: import("../types").RenderAttributeProps) => JSX.Element | null;
173
- wrapper: ({ children }: {
174
- children: React.FunctionComponent<any>;
175
- }) => JSX.Element;
176
- element: ({ children }: {
177
- children: React.FunctionComponent<any>;
178
- }) => JSX.Element;
179
- input: (props: import("../types").DisplayInputComponentProps) => JSX.Element;
180
- };
181
- label: string;
182
- description?: string;
183
- widget: import("jamespot-user-api").Widget;
184
- name: T;
185
- mandatory: boolean;
186
- };