@jsonforms/core 3.3.0-beta.0 → 3.3.0

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.
Files changed (52) hide show
  1. package/lib/Helpers.d.ts +5 -5
  2. package/lib/actions/actions.d.ts +198 -198
  3. package/lib/actions/index.d.ts +1 -1
  4. package/lib/configDefault.d.ts +6 -6
  5. package/lib/generators/Generate.d.ts +6 -6
  6. package/lib/generators/index.d.ts +3 -3
  7. package/lib/generators/schema.d.ts +8 -8
  8. package/lib/generators/uischema.d.ts +12 -12
  9. package/lib/i18n/arrayTranslations.d.ts +24 -24
  10. package/lib/i18n/combinatorTranslations.d.ts +14 -14
  11. package/lib/i18n/i18nTypes.d.ts +16 -16
  12. package/lib/i18n/i18nUtil.d.ts +28 -28
  13. package/lib/i18n/index.d.ts +4 -4
  14. package/lib/index.d.ts +11 -11
  15. package/lib/models/draft4.d.ts +198 -198
  16. package/lib/models/index.d.ts +5 -5
  17. package/lib/models/jsonSchema.d.ts +3 -3
  18. package/lib/models/jsonSchema4.d.ts +110 -110
  19. package/lib/models/jsonSchema7.d.ts +119 -119
  20. package/lib/models/uischema.d.ts +231 -231
  21. package/lib/reducers/cells.d.ts +11 -11
  22. package/lib/reducers/config.d.ts +3 -3
  23. package/lib/reducers/core.d.ts +26 -26
  24. package/lib/reducers/default-data.d.ts +10 -10
  25. package/lib/reducers/i18n.d.ts +8 -8
  26. package/lib/reducers/index.d.ts +10 -10
  27. package/lib/reducers/middleware.d.ts +6 -6
  28. package/lib/reducers/reducers.d.ts +29 -29
  29. package/lib/reducers/renderers.d.ts +10 -10
  30. package/lib/reducers/selectors.d.ts +15 -15
  31. package/lib/reducers/uischemas.d.ts +10 -10
  32. package/lib/store.d.ts +53 -53
  33. package/lib/testers/index.d.ts +1 -1
  34. package/lib/testers/testers.d.ts +220 -220
  35. package/lib/util/Formatted.d.ts +19 -19
  36. package/lib/util/array.d.ts +3 -3
  37. package/lib/util/cell.d.ts +78 -78
  38. package/lib/util/combinators.d.ts +9 -9
  39. package/lib/util/defaultDateFormat.d.ts +3 -3
  40. package/lib/util/ids.d.ts +3 -3
  41. package/lib/util/index.d.ts +16 -16
  42. package/lib/util/label.d.ts +21 -21
  43. package/lib/util/path.d.ts +38 -38
  44. package/lib/util/renderer.d.ts +429 -429
  45. package/lib/util/resolvers.d.ts +25 -25
  46. package/lib/util/runtime.d.ts +17 -17
  47. package/lib/util/schema.d.ts +10 -10
  48. package/lib/util/type.d.ts +174 -174
  49. package/lib/util/uischema.d.ts +18 -18
  50. package/lib/util/util.d.ts +57 -57
  51. package/lib/util/validator.d.ts +3 -3
  52. package/package.json +2 -2
@@ -1,231 +1,231 @@
1
- import type { JsonSchema } from './jsonSchema';
2
- /**
3
- * Interface for describing an UI schema element that is referencing
4
- * a subschema. The value of the scope may be a JSON Pointer.
5
- */
6
- export interface Scopable {
7
- /**
8
- * The scope that determines to which part this element should be bound to.
9
- */
10
- scope?: string;
11
- }
12
- /**
13
- * Interface for describing an UI schema element that is referencing
14
- * a subschema. The value of the scope must be a JSON Pointer.
15
- */
16
- export interface Scoped extends Scopable {
17
- /**
18
- * The scope that determines to which part this element should be bound to.
19
- */
20
- scope: string;
21
- }
22
- /**
23
- * Interface for describing an UI schema element that may be labeled.
24
- */
25
- export interface Labelable<T = string> {
26
- /**
27
- * Label for UI schema element.
28
- */
29
- label?: string | T;
30
- }
31
- /**
32
- * Interface for describing an UI schema element that is labeled.
33
- */
34
- export interface Labeled<T = string> extends Labelable<T> {
35
- label: string | T;
36
- }
37
- export interface Internationalizable {
38
- i18n?: string;
39
- }
40
- /**
41
- * A rule that may be attached to any UI schema element.
42
- */
43
- export interface Rule {
44
- /**
45
- * The effect of the rule
46
- */
47
- effect: RuleEffect;
48
- /**
49
- * The condition of the rule that must evaluate to true in order
50
- * to trigger the effect.
51
- */
52
- condition: Condition;
53
- }
54
- /**
55
- * The different rule effects.
56
- */
57
- export declare enum RuleEffect {
58
- /**
59
- * Effect that hides the associated element.
60
- */
61
- HIDE = "HIDE",
62
- /**
63
- * Effect that shows the associated element.
64
- */
65
- SHOW = "SHOW",
66
- /**
67
- * Effect that enables the associated element.
68
- */
69
- ENABLE = "ENABLE",
70
- /**
71
- * Effect that disables the associated element.
72
- */
73
- DISABLE = "DISABLE"
74
- }
75
- /**
76
- * Represents a condition to be evaluated.
77
- */
78
- export interface Condition {
79
- /**
80
- * The type of condition.
81
- */
82
- readonly type?: string;
83
- }
84
- /**
85
- * A leaf condition.
86
- */
87
- export interface LeafCondition extends Condition, Scoped {
88
- type: 'LEAF';
89
- /**
90
- * The expected value when evaluating the condition
91
- */
92
- expectedValue: any;
93
- }
94
- export interface SchemaBasedCondition extends Condition, Scoped {
95
- schema: JsonSchema;
96
- /**
97
- * When the scope resolves to undefined and `failWhenUndefined` is set to `true`, the condition
98
- * will fail. Therefore the reverse effect will be applied.
99
- *
100
- * Background:
101
- * Most JSON Schemas will successfully validate against `undefined` data. Specifying that a
102
- * condition shall fail when data is `undefined` requires to lift the scope to being able to use
103
- * JSON Schema's `required`.
104
- *
105
- * Using `failWhenUndefined` allows to more conveniently express this condition.
106
- */
107
- failWhenUndefined?: boolean;
108
- }
109
- /**
110
- * A composable condition.
111
- */
112
- export interface ComposableCondition extends Condition {
113
- conditions: Condition[];
114
- }
115
- /**
116
- * An or condition.
117
- */
118
- export interface OrCondition extends ComposableCondition {
119
- type: 'OR';
120
- }
121
- /**
122
- * An and condition.
123
- */
124
- export interface AndCondition extends ComposableCondition {
125
- type: 'AND';
126
- }
127
- /**
128
- * Common base interface for any UI schema element.
129
- */
130
- export interface UISchemaElement {
131
- /**
132
- * The type of this UI schema element.
133
- */
134
- type: string;
135
- /**
136
- * An optional rule.
137
- */
138
- rule?: Rule;
139
- /**
140
- * Any additional options.
141
- */
142
- options?: {
143
- [key: string]: any;
144
- };
145
- }
146
- /**
147
- * Represents a layout element which can order its children
148
- * in a specific way.
149
- */
150
- export interface Layout extends UISchemaElement {
151
- /**
152
- * The child elements of this layout.
153
- */
154
- elements: UISchemaElement[];
155
- }
156
- /**
157
- * A layout which orders its child elements vertically (i.e. from top to bottom).
158
- */
159
- export interface VerticalLayout extends Layout {
160
- type: 'VerticalLayout';
161
- }
162
- /**
163
- * A layout which orders its children horizontally (i.e. from left to right).
164
- */
165
- export interface HorizontalLayout extends Layout {
166
- type: 'HorizontalLayout';
167
- }
168
- /**
169
- * A group resembles a vertical layout, but additionally might have a label.
170
- * This layout is useful when grouping different elements by a certain criteria.
171
- */
172
- export interface GroupLayout extends Layout, Labelable, Internationalizable {
173
- type: 'Group';
174
- }
175
- /**
176
- * Represents an object that can be used to configure a label.
177
- */
178
- export interface LabelDescription {
179
- /**
180
- * An optional text to be displayed.
181
- */
182
- text?: string;
183
- /**
184
- * Optional property that determines whether to show this label.
185
- */
186
- show?: boolean;
187
- }
188
- /**
189
- * A label element.
190
- */
191
- export interface LabelElement extends UISchemaElement, Internationalizable {
192
- type: 'Label';
193
- /**
194
- * The text of label.
195
- */
196
- text: string;
197
- }
198
- /**
199
- * A control element. The scope property of the control determines
200
- * to which part of the schema the control should be bound.
201
- */
202
- export interface ControlElement extends UISchemaElement, Scoped, Labelable<string | boolean | LabelDescription>, Internationalizable {
203
- type: 'Control';
204
- }
205
- /**
206
- * The category layout.
207
- */
208
- export interface Category extends Layout, Labeled, Internationalizable {
209
- type: 'Category';
210
- }
211
- /**
212
- * The categorization element, which may have children elements.
213
- * A child element may either be itself a Categorization or a Category, hence
214
- * the categorization element can be used to represent recursive structures like trees.
215
- */
216
- export interface Categorization extends UISchemaElement, Labeled, Internationalizable {
217
- type: 'Categorization';
218
- /**
219
- * The child elements of this categorization which are either of type
220
- * {@link Category} or {@link Categorization}.
221
- */
222
- elements: (Category | Categorization)[];
223
- }
224
- export declare const isInternationalized: (element: unknown) => element is Required<Internationalizable>;
225
- export declare const isGroup: (layout: Layout) => layout is GroupLayout;
226
- export declare const isLayout: (uischema: UISchemaElement) => uischema is Layout;
227
- export declare const isScopable: (obj: unknown) => obj is Scopable;
228
- export declare const isScoped: (obj: unknown) => obj is Scoped;
229
- export declare const isLabelable: (obj: unknown) => obj is Labelable<string>;
230
- export declare const isLabeled: <T = never>(obj: unknown) => obj is Labeled<T>;
231
- export declare const isControlElement: (uiSchema: UISchemaElement) => uiSchema is ControlElement;
1
+ import type { JsonSchema } from './jsonSchema';
2
+ /**
3
+ * Interface for describing an UI schema element that is referencing
4
+ * a subschema. The value of the scope may be a JSON Pointer.
5
+ */
6
+ export interface Scopable {
7
+ /**
8
+ * The scope that determines to which part this element should be bound to.
9
+ */
10
+ scope?: string;
11
+ }
12
+ /**
13
+ * Interface for describing an UI schema element that is referencing
14
+ * a subschema. The value of the scope must be a JSON Pointer.
15
+ */
16
+ export interface Scoped extends Scopable {
17
+ /**
18
+ * The scope that determines to which part this element should be bound to.
19
+ */
20
+ scope: string;
21
+ }
22
+ /**
23
+ * Interface for describing an UI schema element that may be labeled.
24
+ */
25
+ export interface Labelable<T = string> {
26
+ /**
27
+ * Label for UI schema element.
28
+ */
29
+ label?: string | T;
30
+ }
31
+ /**
32
+ * Interface for describing an UI schema element that is labeled.
33
+ */
34
+ export interface Labeled<T = string> extends Labelable<T> {
35
+ label: string | T;
36
+ }
37
+ export interface Internationalizable {
38
+ i18n?: string;
39
+ }
40
+ /**
41
+ * A rule that may be attached to any UI schema element.
42
+ */
43
+ export interface Rule {
44
+ /**
45
+ * The effect of the rule
46
+ */
47
+ effect: RuleEffect;
48
+ /**
49
+ * The condition of the rule that must evaluate to true in order
50
+ * to trigger the effect.
51
+ */
52
+ condition: Condition;
53
+ }
54
+ /**
55
+ * The different rule effects.
56
+ */
57
+ export declare enum RuleEffect {
58
+ /**
59
+ * Effect that hides the associated element.
60
+ */
61
+ HIDE = "HIDE",
62
+ /**
63
+ * Effect that shows the associated element.
64
+ */
65
+ SHOW = "SHOW",
66
+ /**
67
+ * Effect that enables the associated element.
68
+ */
69
+ ENABLE = "ENABLE",
70
+ /**
71
+ * Effect that disables the associated element.
72
+ */
73
+ DISABLE = "DISABLE"
74
+ }
75
+ /**
76
+ * Represents a condition to be evaluated.
77
+ */
78
+ export interface Condition {
79
+ /**
80
+ * The type of condition.
81
+ */
82
+ readonly type?: string;
83
+ }
84
+ /**
85
+ * A leaf condition.
86
+ */
87
+ export interface LeafCondition extends Condition, Scoped {
88
+ type: 'LEAF';
89
+ /**
90
+ * The expected value when evaluating the condition
91
+ */
92
+ expectedValue: any;
93
+ }
94
+ export interface SchemaBasedCondition extends Condition, Scoped {
95
+ schema: JsonSchema;
96
+ /**
97
+ * When the scope resolves to undefined and `failWhenUndefined` is set to `true`, the condition
98
+ * will fail. Therefore the reverse effect will be applied.
99
+ *
100
+ * Background:
101
+ * Most JSON Schemas will successfully validate against `undefined` data. Specifying that a
102
+ * condition shall fail when data is `undefined` requires to lift the scope to being able to use
103
+ * JSON Schema's `required`.
104
+ *
105
+ * Using `failWhenUndefined` allows to more conveniently express this condition.
106
+ */
107
+ failWhenUndefined?: boolean;
108
+ }
109
+ /**
110
+ * A composable condition.
111
+ */
112
+ export interface ComposableCondition extends Condition {
113
+ conditions: Condition[];
114
+ }
115
+ /**
116
+ * An or condition.
117
+ */
118
+ export interface OrCondition extends ComposableCondition {
119
+ type: 'OR';
120
+ }
121
+ /**
122
+ * An and condition.
123
+ */
124
+ export interface AndCondition extends ComposableCondition {
125
+ type: 'AND';
126
+ }
127
+ /**
128
+ * Common base interface for any UI schema element.
129
+ */
130
+ export interface UISchemaElement {
131
+ /**
132
+ * The type of this UI schema element.
133
+ */
134
+ type: string;
135
+ /**
136
+ * An optional rule.
137
+ */
138
+ rule?: Rule;
139
+ /**
140
+ * Any additional options.
141
+ */
142
+ options?: {
143
+ [key: string]: any;
144
+ };
145
+ }
146
+ /**
147
+ * Represents a layout element which can order its children
148
+ * in a specific way.
149
+ */
150
+ export interface Layout extends UISchemaElement {
151
+ /**
152
+ * The child elements of this layout.
153
+ */
154
+ elements: UISchemaElement[];
155
+ }
156
+ /**
157
+ * A layout which orders its child elements vertically (i.e. from top to bottom).
158
+ */
159
+ export interface VerticalLayout extends Layout {
160
+ type: 'VerticalLayout';
161
+ }
162
+ /**
163
+ * A layout which orders its children horizontally (i.e. from left to right).
164
+ */
165
+ export interface HorizontalLayout extends Layout {
166
+ type: 'HorizontalLayout';
167
+ }
168
+ /**
169
+ * A group resembles a vertical layout, but additionally might have a label.
170
+ * This layout is useful when grouping different elements by a certain criteria.
171
+ */
172
+ export interface GroupLayout extends Layout, Labelable, Internationalizable {
173
+ type: 'Group';
174
+ }
175
+ /**
176
+ * Represents an object that can be used to configure a label.
177
+ */
178
+ export interface LabelDescription {
179
+ /**
180
+ * An optional text to be displayed.
181
+ */
182
+ text?: string;
183
+ /**
184
+ * Optional property that determines whether to show this label.
185
+ */
186
+ show?: boolean;
187
+ }
188
+ /**
189
+ * A label element.
190
+ */
191
+ export interface LabelElement extends UISchemaElement, Internationalizable {
192
+ type: 'Label';
193
+ /**
194
+ * The text of label.
195
+ */
196
+ text: string;
197
+ }
198
+ /**
199
+ * A control element. The scope property of the control determines
200
+ * to which part of the schema the control should be bound.
201
+ */
202
+ export interface ControlElement extends UISchemaElement, Scoped, Labelable<string | boolean | LabelDescription>, Internationalizable {
203
+ type: 'Control';
204
+ }
205
+ /**
206
+ * The category layout.
207
+ */
208
+ export interface Category extends Layout, Labeled, Internationalizable {
209
+ type: 'Category';
210
+ }
211
+ /**
212
+ * The categorization element, which may have children elements.
213
+ * A child element may either be itself a Categorization or a Category, hence
214
+ * the categorization element can be used to represent recursive structures like trees.
215
+ */
216
+ export interface Categorization extends UISchemaElement, Labeled, Internationalizable {
217
+ type: 'Categorization';
218
+ /**
219
+ * The child elements of this categorization which are either of type
220
+ * {@link Category} or {@link Categorization}.
221
+ */
222
+ elements: (Category | Categorization)[];
223
+ }
224
+ export declare const isInternationalized: (element: unknown) => element is Required<Internationalizable>;
225
+ export declare const isGroup: (layout: Layout) => layout is GroupLayout;
226
+ export declare const isLayout: (uischema: UISchemaElement) => uischema is Layout;
227
+ export declare const isScopable: (obj: unknown) => obj is Scopable;
228
+ export declare const isScoped: (obj: unknown) => obj is Scoped;
229
+ export declare const isLabelable: (obj: unknown) => obj is Labelable<string>;
230
+ export declare const isLabeled: <T = never>(obj: unknown) => obj is Labeled<T>;
231
+ export declare const isControlElement: (uiSchema: UISchemaElement) => uiSchema is ControlElement;
@@ -1,11 +1,11 @@
1
- import type { RankedTester } from '../testers';
2
- import { AddCellRendererAction, RemoveCellRendererAction } from '../actions';
3
- import type { Reducer } from '../util';
4
- type ValidCellReducerActions = AddCellRendererAction | RemoveCellRendererAction;
5
- export type JsonFormsCellRendererRegistryState = JsonFormsCellRendererRegistryEntry[];
6
- export interface JsonFormsCellRendererRegistryEntry {
7
- tester: RankedTester;
8
- cell: any;
9
- }
10
- export declare const cellReducer: Reducer<JsonFormsCellRendererRegistryState, ValidCellReducerActions>;
11
- export {};
1
+ import type { RankedTester } from '../testers';
2
+ import { AddCellRendererAction, RemoveCellRendererAction } from '../actions';
3
+ import type { Reducer } from '../util';
4
+ type ValidCellReducerActions = AddCellRendererAction | RemoveCellRendererAction;
5
+ export type JsonFormsCellRendererRegistryState = JsonFormsCellRendererRegistryEntry[];
6
+ export interface JsonFormsCellRendererRegistryEntry {
7
+ tester: RankedTester;
8
+ cell: any;
9
+ }
10
+ export declare const cellReducer: Reducer<JsonFormsCellRendererRegistryState, ValidCellReducerActions>;
11
+ export {};
@@ -1,3 +1,3 @@
1
- import { SetConfigAction } from '../actions';
2
- import type { Reducer } from '../util';
3
- export declare const configReducer: Reducer<any, SetConfigAction>;
1
+ import { SetConfigAction } from '../actions';
2
+ import type { Reducer } from '../util';
3
+ export declare const configReducer: Reducer<any, SetConfigAction>;
@@ -1,26 +1,26 @@
1
- import type Ajv from 'ajv';
2
- import type { ErrorObject, ValidateFunction } from 'ajv';
3
- import { CoreActions } from '../actions';
4
- import { Reducer } from '../util';
5
- import type { JsonSchema, UISchemaElement } from '../models';
6
- export declare const validate: (validator: ValidateFunction | undefined, data: any) => ErrorObject[];
7
- export type ValidationMode = 'ValidateAndShow' | 'ValidateAndHide' | 'NoValidation';
8
- export interface JsonFormsCore {
9
- data: any;
10
- schema: JsonSchema;
11
- uischema: UISchemaElement;
12
- errors?: ErrorObject[];
13
- additionalErrors?: ErrorObject[];
14
- validator?: ValidateFunction;
15
- ajv?: Ajv;
16
- validationMode?: ValidationMode;
17
- }
18
- export declare const coreReducer: Reducer<JsonFormsCore, CoreActions>;
19
- export declare const extractData: (state: JsonFormsCore) => any;
20
- export declare const extractSchema: (state: JsonFormsCore) => JsonSchema;
21
- export declare const extractUiSchema: (state: JsonFormsCore) => UISchemaElement;
22
- export declare const extractAjv: (state: JsonFormsCore) => Ajv;
23
- export declare const getControlPath: (error: ErrorObject) => any;
24
- export declare const errorsAt: (instancePath: string, schema: JsonSchema, matchPath: (path: string) => boolean) => (errors: ErrorObject[]) => ErrorObject[];
25
- export declare const errorAt: (instancePath: string, schema: JsonSchema) => (state: JsonFormsCore) => ErrorObject[];
26
- export declare const subErrorsAt: (instancePath: string, schema: JsonSchema) => (state: JsonFormsCore) => ErrorObject[];
1
+ import type Ajv from 'ajv';
2
+ import type { ErrorObject, ValidateFunction } from 'ajv';
3
+ import { CoreActions } from '../actions';
4
+ import { Reducer } from '../util';
5
+ import type { JsonSchema, UISchemaElement } from '../models';
6
+ export declare const validate: (validator: ValidateFunction | undefined, data: any) => ErrorObject[];
7
+ export type ValidationMode = 'ValidateAndShow' | 'ValidateAndHide' | 'NoValidation';
8
+ export interface JsonFormsCore {
9
+ data: any;
10
+ schema: JsonSchema;
11
+ uischema: UISchemaElement;
12
+ errors?: ErrorObject[];
13
+ additionalErrors?: ErrorObject[];
14
+ validator?: ValidateFunction;
15
+ ajv?: Ajv;
16
+ validationMode?: ValidationMode;
17
+ }
18
+ export declare const coreReducer: Reducer<JsonFormsCore, CoreActions>;
19
+ export declare const extractData: (state: JsonFormsCore) => any;
20
+ export declare const extractSchema: (state: JsonFormsCore) => JsonSchema;
21
+ export declare const extractUiSchema: (state: JsonFormsCore) => UISchemaElement;
22
+ export declare const extractAjv: (state: JsonFormsCore) => Ajv;
23
+ export declare const getControlPath: (error: ErrorObject) => any;
24
+ export declare const errorsAt: (instancePath: string, schema: JsonSchema, matchPath: (path: string) => boolean) => (errors: ErrorObject[]) => ErrorObject[];
25
+ export declare const errorAt: (instancePath: string, schema: JsonSchema) => (state: JsonFormsCore) => ErrorObject[];
26
+ export declare const subErrorsAt: (instancePath: string, schema: JsonSchema) => (state: JsonFormsCore) => ErrorObject[];
@@ -1,10 +1,10 @@
1
- import { RegisterDefaultDataAction, UnregisterDefaultDataAction } from '../actions';
2
- import type { Reducer } from '../util';
3
- export interface JsonFormsDefaultDataRegistryEntry {
4
- schemaPath: string;
5
- data: any;
6
- }
7
- type ValidDefaultDataActions = RegisterDefaultDataAction | UnregisterDefaultDataAction;
8
- export declare const defaultDataReducer: Reducer<JsonFormsDefaultDataRegistryEntry[], ValidDefaultDataActions>;
9
- export declare const extractDefaultData: (state: JsonFormsDefaultDataRegistryEntry[]) => JsonFormsDefaultDataRegistryEntry[];
10
- export {};
1
+ import { RegisterDefaultDataAction, UnregisterDefaultDataAction } from '../actions';
2
+ import type { Reducer } from '../util';
3
+ export interface JsonFormsDefaultDataRegistryEntry {
4
+ schemaPath: string;
5
+ data: any;
6
+ }
7
+ type ValidDefaultDataActions = RegisterDefaultDataAction | UnregisterDefaultDataAction;
8
+ export declare const defaultDataReducer: Reducer<JsonFormsDefaultDataRegistryEntry[], ValidDefaultDataActions>;
9
+ export declare const extractDefaultData: (state: JsonFormsDefaultDataRegistryEntry[]) => JsonFormsDefaultDataRegistryEntry[];
10
+ export {};
@@ -1,8 +1,8 @@
1
- import { JsonFormsI18nState } from '../i18n';
2
- import { I18nActions } from '../actions';
3
- import type { Reducer } from '../util';
4
- export declare const defaultJsonFormsI18nState: Required<JsonFormsI18nState>;
5
- export declare const i18nReducer: Reducer<JsonFormsI18nState, I18nActions>;
6
- export declare const fetchLocale: (state?: JsonFormsI18nState) => string;
7
- export declare const fetchTranslator: (state?: JsonFormsI18nState) => import("../i18n").Translator;
8
- export declare const fetchErrorTranslator: (state?: JsonFormsI18nState) => import("../i18n").ErrorTranslator;
1
+ import { JsonFormsI18nState } from '../i18n';
2
+ import { I18nActions } from '../actions';
3
+ import type { Reducer } from '../util';
4
+ export declare const defaultJsonFormsI18nState: Required<JsonFormsI18nState>;
5
+ export declare const i18nReducer: Reducer<JsonFormsI18nState, I18nActions>;
6
+ export declare const fetchLocale: (state?: JsonFormsI18nState) => string;
7
+ export declare const fetchTranslator: (state?: JsonFormsI18nState) => import("../i18n").Translator;
8
+ export declare const fetchErrorTranslator: (state?: JsonFormsI18nState) => import("../i18n").ErrorTranslator;
@@ -1,10 +1,10 @@
1
- export * from './cells';
2
- export * from './config';
3
- export * from './core';
4
- export * from './default-data';
5
- export * from './i18n';
6
- export * from './reducers';
7
- export * from './renderers';
8
- export * from './selectors';
9
- export * from './uischemas';
10
- export * from './middleware';
1
+ export * from './cells';
2
+ export * from './config';
3
+ export * from './core';
4
+ export * from './default-data';
5
+ export * from './i18n';
6
+ export * from './reducers';
7
+ export * from './renderers';
8
+ export * from './selectors';
9
+ export * from './uischemas';
10
+ export * from './middleware';
@@ -1,6 +1,6 @@
1
- import { CoreActions } from '../actions';
2
- import { JsonFormsCore } from './core';
3
- export interface Middleware {
4
- (state: JsonFormsCore, action: CoreActions, defaultReducer: (state: JsonFormsCore, action: CoreActions) => JsonFormsCore): JsonFormsCore;
5
- }
6
- export declare const defaultMiddleware: Middleware;
1
+ import { CoreActions } from '../actions';
2
+ import { JsonFormsCore } from './core';
3
+ export interface Middleware {
4
+ (state: JsonFormsCore, action: CoreActions, defaultReducer: (state: JsonFormsCore, action: CoreActions) => JsonFormsCore): JsonFormsCore;
5
+ }
6
+ export declare const defaultMiddleware: Middleware;