@rjsf/core 6.4.1 → 6.4.2

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/dist/core.umd.js CHANGED
@@ -82,7 +82,7 @@
82
82
  } = props;
83
83
  const { widgets: widgets2, schemaUtils, globalFormOptions, globalUiOptions } = registry;
84
84
  const itemsSchema = schemaUtils.retrieveSchema(schema.items, items);
85
- const itemsUiSchema = uiSchema?.items ?? {};
85
+ const itemsUiSchema = uiSchema?.items ?? uiSchema;
86
86
  const enumOptions = utils.optionsList(itemsSchema, itemsUiSchema);
87
87
  const { widget = "select", title: uiTitle, ...options } = utils.getUiOptions(uiSchema, globalUiOptions);
88
88
  const Widget = utils.getWidget(schema, widget, widgets2);
@@ -415,6 +415,7 @@
415
415
  name: name && `${name}-${index}`,
416
416
  registry,
417
417
  uiOptions,
418
+ parentUiSchema: uiSchema,
418
419
  hideError,
419
420
  readonly,
420
421
  disabled,
@@ -532,6 +533,7 @@
532
533
  name: name && `${name}-${index}`,
533
534
  registry,
534
535
  uiOptions,
536
+ parentUiSchema: uiSchema,
535
537
  hideError,
536
538
  readonly,
537
539
  disabled,
@@ -4082,7 +4084,7 @@
4082
4084
  errors = merged.errors;
4083
4085
  }
4084
4086
  if (customErrors) {
4085
- const merged = utils.validationDataMerge(schemaValidation, customErrors.ErrorSchema, true);
4087
+ const merged = utils.validationDataMerge({ errors, errorSchema }, customErrors.ErrorSchema, true);
4086
4088
  errorSchema = merged.errorSchema;
4087
4089
  errors = merged.errors;
4088
4090
  }
package/dist/index.cjs CHANGED
@@ -139,7 +139,7 @@ function ArrayAsMultiSelect(props) {
139
139
  } = props;
140
140
  const { widgets: widgets2, schemaUtils, globalFormOptions, globalUiOptions } = registry;
141
141
  const itemsSchema = schemaUtils.retrieveSchema(schema.items, items);
142
- const itemsUiSchema = uiSchema?.items ?? {};
142
+ const itemsUiSchema = uiSchema?.items ?? uiSchema;
143
143
  const enumOptions = (0, import_utils.optionsList)(itemsSchema, itemsUiSchema);
144
144
  const { widget = "select", title: uiTitle, ...options } = (0, import_utils.getUiOptions)(uiSchema, globalUiOptions);
145
145
  const Widget = (0, import_utils.getWidget)(schema, widget, widgets2);
@@ -472,6 +472,7 @@ function NormalArray(props) {
472
472
  name: name && `${name}-${index}`,
473
473
  registry,
474
474
  uiOptions,
475
+ parentUiSchema: uiSchema,
475
476
  hideError,
476
477
  readonly,
477
478
  disabled,
@@ -589,6 +590,7 @@ function FixedArray(props) {
589
590
  name: name && `${name}-${index}`,
590
591
  registry,
591
592
  uiOptions,
593
+ parentUiSchema: uiSchema,
592
594
  hideError,
593
595
  readonly,
594
596
  disabled,
@@ -4428,7 +4430,7 @@ var Form = class extends import_react21.Component {
4428
4430
  errors = merged.errors;
4429
4431
  }
4430
4432
  if (customErrors) {
4431
- const merged = (0, import_utils50.validationDataMerge)(schemaValidation, customErrors.ErrorSchema, true);
4433
+ const merged = (0, import_utils50.validationDataMerge)({ errors, errorSchema }, customErrors.ErrorSchema, true);
4432
4434
  errorSchema = merged.errorSchema;
4433
4435
  errors = merged.errors;
4434
4436
  }