@rjsf/utils 5.24.3 → 5.24.5
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/index.js +4 -3
- package/dist/index.js.map +2 -2
- package/dist/utils.esm.js +4 -3
- package/dist/utils.esm.js.map +2 -2
- package/dist/utils.umd.js +4 -3
- package/lib/ErrorSchemaBuilder.d.ts +1 -1
- package/lib/ErrorSchemaBuilder.js +5 -5
- package/lib/allowAdditionalItems.d.ts +1 -1
- package/lib/allowAdditionalItems.js +1 -1
- package/lib/canExpand.d.ts +1 -1
- package/lib/canExpand.js +1 -1
- package/lib/constIsAjvDataReference.d.ts +1 -1
- package/lib/constIsAjvDataReference.js +2 -2
- package/lib/createErrorHandler.d.ts +1 -1
- package/lib/createErrorHandler.js +2 -2
- package/lib/createSchemaUtils.d.ts +1 -1
- package/lib/createSchemaUtils.js +2 -2
- package/lib/dateRangeOptions.d.ts +1 -1
- package/lib/dateRangeOptions.js +1 -1
- package/lib/deepEquals.js +1 -1
- package/lib/englishStringTranslator.d.ts +1 -1
- package/lib/englishStringTranslator.js +1 -1
- package/lib/enumOptionsDeselectValue.d.ts +1 -1
- package/lib/enumOptionsDeselectValue.js +2 -2
- package/lib/enumOptionsIndexForValue.d.ts +1 -1
- package/lib/enumOptionsIndexForValue.js +1 -1
- package/lib/enumOptionsIsSelected.d.ts +1 -1
- package/lib/enumOptionsIsSelected.js +1 -1
- package/lib/enumOptionsSelectValue.d.ts +1 -1
- package/lib/enumOptionsSelectValue.js +2 -2
- package/lib/enumOptionsValueForIndex.d.ts +1 -1
- package/lib/findSchemaDefinition.d.ts +1 -1
- package/lib/findSchemaDefinition.js +2 -2
- package/lib/getChangedFields.js +6 -6
- package/lib/getDateElementProps.d.ts +1 -1
- package/lib/getDiscriminatorFieldFromSchema.d.ts +1 -1
- package/lib/getDiscriminatorFieldFromSchema.js +2 -2
- package/lib/getInputProps.d.ts +1 -1
- package/lib/getInputProps.js +1 -1
- package/lib/getOptionMatchingSimpleDiscriminator.d.ts +1 -1
- package/lib/getOptionMatchingSimpleDiscriminator.js +2 -2
- package/lib/getSchemaType.d.ts +1 -1
- package/lib/getSchemaType.js +1 -1
- package/lib/getSubmitButtonOptions.d.ts +1 -1
- package/lib/getSubmitButtonOptions.js +2 -2
- package/lib/getTemplate.d.ts +1 -1
- package/lib/getUiOptions.d.ts +1 -1
- package/lib/getUiOptions.js +2 -2
- package/lib/getWidget.d.ts +1 -1
- package/lib/getWidget.js +3 -3
- package/lib/hasWidget.d.ts +1 -1
- package/lib/hasWidget.js +1 -1
- package/lib/hashForSchema.d.ts +1 -1
- package/lib/idGenerators.d.ts +1 -1
- package/lib/idGenerators.js +2 -2
- package/lib/index.d.ts +60 -60
- package/lib/index.js +60 -60
- package/lib/isConstant.d.ts +1 -1
- package/lib/isConstant.js +1 -1
- package/lib/isCustomWidget.d.ts +1 -1
- package/lib/isCustomWidget.js +1 -1
- package/lib/isFixedItems.d.ts +1 -1
- package/lib/isFixedItems.js +1 -1
- package/lib/mergeDefaultsWithFormData.js +3 -3
- package/lib/mergeObjects.d.ts +1 -1
- package/lib/mergeObjects.js +1 -1
- package/lib/mergeSchemas.d.ts +1 -1
- package/lib/mergeSchemas.js +4 -4
- package/lib/optionsList.d.ts +1 -1
- package/lib/optionsList.js +2 -2
- package/lib/parseDateString.d.ts +1 -1
- package/lib/parser/ParserValidator.d.ts +1 -1
- package/lib/parser/ParserValidator.js +4 -4
- package/lib/parser/index.d.ts +2 -2
- package/lib/parser/index.js +1 -1
- package/lib/parser/schemaParser.d.ts +2 -2
- package/lib/parser/schemaParser.js +5 -5
- package/lib/rangeSpec.d.ts +2 -2
- package/lib/schema/getClosestMatchingOption.d.ts +1 -1
- package/lib/schema/getClosestMatchingOption.js +13 -13
- package/lib/schema/getDefaultFormState.d.ts +4 -3
- package/lib/schema/getDefaultFormState.js +24 -23
- package/lib/schema/getDefaultFormState.js.map +1 -1
- package/lib/schema/getDisplayLabel.d.ts +1 -1
- package/lib/schema/getDisplayLabel.js +6 -6
- package/lib/schema/getFirstMatchingOption.d.ts +1 -1
- package/lib/schema/getFirstMatchingOption.js +1 -1
- package/lib/schema/getMatchingOption.d.ts +1 -1
- package/lib/schema/getMatchingOption.js +5 -5
- package/lib/schema/index.d.ts +13 -13
- package/lib/schema/index.js +13 -13
- package/lib/schema/isFilesArray.d.ts +1 -1
- package/lib/schema/isFilesArray.js +2 -2
- package/lib/schema/isMultiSelect.d.ts +1 -1
- package/lib/schema/isMultiSelect.js +1 -1
- package/lib/schema/isSelect.d.ts +1 -1
- package/lib/schema/isSelect.js +2 -2
- package/lib/schema/mergeValidationData.d.ts +1 -1
- package/lib/schema/mergeValidationData.js +2 -2
- package/lib/schema/retrieveSchema.d.ts +1 -1
- package/lib/schema/retrieveSchema.js +15 -15
- package/lib/schema/sanitizeDataForNewSchema.d.ts +1 -1
- package/lib/schema/sanitizeDataForNewSchema.js +4 -4
- package/lib/schema/toIdSchema.d.ts +1 -1
- package/lib/schema/toIdSchema.js +6 -6
- package/lib/schema/toPathSchema.d.ts +1 -1
- package/lib/schema/toPathSchema.js +7 -7
- package/lib/schemaRequiresTrueValue.d.ts +1 -1
- package/lib/shouldRender.js +1 -1
- package/lib/toConstant.d.ts +1 -1
- package/lib/toConstant.js +1 -1
- package/lib/toDateString.d.ts +1 -1
- package/lib/toErrorList.d.ts +1 -1
- package/lib/toErrorList.js +2 -2
- package/lib/toErrorSchema.d.ts +1 -1
- package/lib/toErrorSchema.js +2 -2
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types.d.ts +1 -1
- package/lib/unwrapErrorHandler.d.ts +1 -1
- package/lib/unwrapErrorHandler.js +1 -1
- package/lib/utcToLocal.js +1 -1
- package/lib/validationDataMerge.d.ts +1 -1
- package/lib/validationDataMerge.js +3 -3
- package/lib/withIdRefPrefix.d.ts +1 -1
- package/lib/withIdRefPrefix.js +2 -2
- package/package.json +9 -3
- package/src/schema/getDefaultFormState.ts +7 -4
package/lib/schema/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import getDefaultFormState from './getDefaultFormState';
|
|
2
|
-
import getDisplayLabel from './getDisplayLabel';
|
|
3
|
-
import getClosestMatchingOption from './getClosestMatchingOption';
|
|
4
|
-
import getFirstMatchingOption from './getFirstMatchingOption';
|
|
5
|
-
import getMatchingOption from './getMatchingOption';
|
|
6
|
-
import isFilesArray from './isFilesArray';
|
|
7
|
-
import isMultiSelect from './isMultiSelect';
|
|
8
|
-
import isSelect from './isSelect';
|
|
9
|
-
import mergeValidationData from './mergeValidationData';
|
|
10
|
-
import retrieveSchema from './retrieveSchema';
|
|
11
|
-
import sanitizeDataForNewSchema from './sanitizeDataForNewSchema';
|
|
12
|
-
import toIdSchema from './toIdSchema';
|
|
13
|
-
import toPathSchema from './toPathSchema';
|
|
1
|
+
import getDefaultFormState from './getDefaultFormState.js';
|
|
2
|
+
import getDisplayLabel from './getDisplayLabel.js';
|
|
3
|
+
import getClosestMatchingOption from './getClosestMatchingOption.js';
|
|
4
|
+
import getFirstMatchingOption from './getFirstMatchingOption.js';
|
|
5
|
+
import getMatchingOption from './getMatchingOption.js';
|
|
6
|
+
import isFilesArray from './isFilesArray.js';
|
|
7
|
+
import isMultiSelect from './isMultiSelect.js';
|
|
8
|
+
import isSelect from './isSelect.js';
|
|
9
|
+
import mergeValidationData from './mergeValidationData.js';
|
|
10
|
+
import retrieveSchema from './retrieveSchema.js';
|
|
11
|
+
import sanitizeDataForNewSchema from './sanitizeDataForNewSchema.js';
|
|
12
|
+
import toIdSchema from './toIdSchema.js';
|
|
13
|
+
import toPathSchema from './toPathSchema.js';
|
|
14
14
|
export { getDefaultFormState, getDisplayLabel, getClosestMatchingOption, getFirstMatchingOption, getMatchingOption, isFilesArray, isMultiSelect, isSelect, mergeValidationData, retrieveSchema, sanitizeDataForNewSchema, toIdSchema, toPathSchema, };
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Experimental_CustomMergeAllOf, FormContextType, RJSFSchema, StrictRJSFSchema, UiSchema, ValidatorType } from '../types';
|
|
1
|
+
import { Experimental_CustomMergeAllOf, FormContextType, RJSFSchema, StrictRJSFSchema, UiSchema, ValidatorType } from '../types.js';
|
|
2
2
|
/** Checks to see if the `schema` and `uiSchema` combination represents an array of files
|
|
3
3
|
*
|
|
4
4
|
* @param validator - An implementation of the `ValidatorType` interface that will be used when necessary
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UI_WIDGET_KEY } from '../constants';
|
|
2
|
-
import retrieveSchema from './retrieveSchema';
|
|
1
|
+
import { UI_WIDGET_KEY } from '../constants.js';
|
|
2
|
+
import retrieveSchema from './retrieveSchema.js';
|
|
3
3
|
/** Checks to see if the `schema` and `uiSchema` combination represents an array of files
|
|
4
4
|
*
|
|
5
5
|
* @param validator - An implementation of the `ValidatorType` interface that will be used when necessary
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormContextType, RJSFSchema, StrictRJSFSchema, ValidatorType, Experimental_CustomMergeAllOf } from '../types';
|
|
1
|
+
import { FormContextType, RJSFSchema, StrictRJSFSchema, ValidatorType, Experimental_CustomMergeAllOf } from '../types.js';
|
|
2
2
|
/** Checks to see if the `schema` combination represents a multi-select
|
|
3
3
|
*
|
|
4
4
|
* @param validator - An implementation of the `ValidatorType` interface that will be used when necessary
|
package/lib/schema/isSelect.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormContextType, RJSFSchema, StrictRJSFSchema, ValidatorType, Experimental_CustomMergeAllOf } from '../types';
|
|
1
|
+
import { FormContextType, RJSFSchema, StrictRJSFSchema, ValidatorType, Experimental_CustomMergeAllOf } from '../types.js';
|
|
2
2
|
/** Checks to see if the `schema` combination represents a select
|
|
3
3
|
*
|
|
4
4
|
* @param validator - An implementation of the `ValidatorType` interface that will be used when necessary
|
package/lib/schema/isSelect.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import isConstant from '../isConstant';
|
|
2
|
-
import retrieveSchema from './retrieveSchema';
|
|
1
|
+
import isConstant from '../isConstant.js';
|
|
2
|
+
import retrieveSchema from './retrieveSchema.js';
|
|
3
3
|
/** Checks to see if the `schema` combination represents a select
|
|
4
4
|
*
|
|
5
5
|
* @param validator - An implementation of the `ValidatorType` interface that will be used when necessary
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ErrorSchema, FormContextType, RJSFSchema, StrictRJSFSchema, ValidationData, ValidatorType } from '../types';
|
|
1
|
+
import { ErrorSchema, FormContextType, RJSFSchema, StrictRJSFSchema, ValidationData, ValidatorType } from '../types.js';
|
|
2
2
|
/** Merges the errors in `additionalErrorSchema` into the existing `validationData` by combining the hierarchies in the
|
|
3
3
|
* two `ErrorSchema`s and then appending the error list from the `additionalErrorSchema` obtained by calling
|
|
4
4
|
* `validator.toErrorList()` onto the `errors` in the `validationData`. If no `additionalErrorSchema` is passed, then
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import isEmpty from 'lodash/isEmpty';
|
|
2
|
-
import mergeObjects from '../mergeObjects';
|
|
1
|
+
import isEmpty from 'lodash-es/isEmpty.js';
|
|
2
|
+
import mergeObjects from '../mergeObjects.js';
|
|
3
3
|
/** Merges the errors in `additionalErrorSchema` into the existing `validationData` by combining the hierarchies in the
|
|
4
4
|
* two `ErrorSchema`s and then appending the error list from the `additionalErrorSchema` obtained by calling
|
|
5
5
|
* `validator.toErrorList()` onto the `errors` in the `validationData`. If no `additionalErrorSchema` is passed, then
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Experimental_CustomMergeAllOf, FormContextType, RJSFSchema, StrictRJSFSchema, ValidatorType } from '../types';
|
|
1
|
+
import { Experimental_CustomMergeAllOf, FormContextType, RJSFSchema, StrictRJSFSchema, ValidatorType } from '../types.js';
|
|
2
2
|
/** Retrieves an expanded schema that has had all of its conditions, additional properties, references and dependencies
|
|
3
3
|
* resolved and merged into the `schema` given a `validator`, `rootSchema` and `rawFormData` that is used to do the
|
|
4
4
|
* potentially recursive resolution.
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import get from 'lodash/get';
|
|
2
|
-
import set from 'lodash/set';
|
|
3
|
-
import times from 'lodash/times';
|
|
4
|
-
import transform from 'lodash/transform';
|
|
5
|
-
import merge from 'lodash/merge';
|
|
6
|
-
import flattenDeep from 'lodash/flattenDeep';
|
|
7
|
-
import uniq from 'lodash/uniq';
|
|
1
|
+
import get from 'lodash-es/get.js';
|
|
2
|
+
import set from 'lodash-es/set.js';
|
|
3
|
+
import times from 'lodash-es/times.js';
|
|
4
|
+
import transform from 'lodash-es/transform.js';
|
|
5
|
+
import merge from 'lodash-es/merge.js';
|
|
6
|
+
import flattenDeep from 'lodash-es/flattenDeep.js';
|
|
7
|
+
import uniq from 'lodash-es/uniq.js';
|
|
8
8
|
import mergeAllOf from 'json-schema-merge-allof';
|
|
9
|
-
import { ADDITIONAL_PROPERTIES_KEY, ADDITIONAL_PROPERTY_FLAG, ALL_OF_KEY, ANY_OF_KEY, DEPENDENCIES_KEY, IF_KEY, ITEMS_KEY, ONE_OF_KEY, PROPERTIES_KEY, REF_KEY, } from '../constants';
|
|
10
|
-
import findSchemaDefinition, { splitKeyElementFromObject } from '../findSchemaDefinition';
|
|
11
|
-
import getDiscriminatorFieldFromSchema from '../getDiscriminatorFieldFromSchema';
|
|
12
|
-
import guessType from '../guessType';
|
|
13
|
-
import isObject from '../isObject';
|
|
14
|
-
import mergeSchemas from '../mergeSchemas';
|
|
15
|
-
import getFirstMatchingOption from './getFirstMatchingOption';
|
|
16
|
-
import deepEquals from '../deepEquals';
|
|
9
|
+
import { ADDITIONAL_PROPERTIES_KEY, ADDITIONAL_PROPERTY_FLAG, ALL_OF_KEY, ANY_OF_KEY, DEPENDENCIES_KEY, IF_KEY, ITEMS_KEY, ONE_OF_KEY, PROPERTIES_KEY, REF_KEY, } from '../constants.js';
|
|
10
|
+
import findSchemaDefinition, { splitKeyElementFromObject } from '../findSchemaDefinition.js';
|
|
11
|
+
import getDiscriminatorFieldFromSchema from '../getDiscriminatorFieldFromSchema.js';
|
|
12
|
+
import guessType from '../guessType.js';
|
|
13
|
+
import isObject from '../isObject.js';
|
|
14
|
+
import mergeSchemas from '../mergeSchemas.js';
|
|
15
|
+
import getFirstMatchingOption from './getFirstMatchingOption.js';
|
|
16
|
+
import deepEquals from '../deepEquals.js';
|
|
17
17
|
/** Retrieves an expanded schema that has had all of its conditions, additional properties, references and dependencies
|
|
18
18
|
* resolved and merged into the `schema` given a `validator`, `rootSchema` and `rawFormData` that is used to do the
|
|
19
19
|
* potentially recursive resolution.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Experimental_CustomMergeAllOf, FormContextType, RJSFSchema, StrictRJSFSchema, ValidatorType } from '../types';
|
|
1
|
+
import { Experimental_CustomMergeAllOf, FormContextType, RJSFSchema, StrictRJSFSchema, ValidatorType } from '../types.js';
|
|
2
2
|
/** Sanitize the `data` associated with the `oldSchema` so it is considered appropriate for the `newSchema`. If the new
|
|
3
3
|
* schema does not contain any properties, then `undefined` is returned to clear all the form data. Due to the nature
|
|
4
4
|
* of schemas, this sanitization happens recursively for nested objects of data. Also, any properties in the old schema
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import get from 'lodash/get';
|
|
2
|
-
import has from 'lodash/has';
|
|
3
|
-
import { PROPERTIES_KEY, REF_KEY } from '../constants';
|
|
4
|
-
import retrieveSchema from './retrieveSchema';
|
|
1
|
+
import get from 'lodash-es/get.js';
|
|
2
|
+
import has from 'lodash-es/has.js';
|
|
3
|
+
import { PROPERTIES_KEY, REF_KEY } from '../constants.js';
|
|
4
|
+
import retrieveSchema from './retrieveSchema.js';
|
|
5
5
|
const NO_VALUE = Symbol('no Value');
|
|
6
6
|
/** Sanitize the `data` associated with the `oldSchema` so it is considered appropriate for the `newSchema`. If the new
|
|
7
7
|
* schema does not contain any properties, then `undefined` is returned to clear all the form data. Due to the nature
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Experimental_CustomMergeAllOf, FormContextType, IdSchema, RJSFSchema, StrictRJSFSchema, ValidatorType } from '../types';
|
|
1
|
+
import { Experimental_CustomMergeAllOf, FormContextType, IdSchema, RJSFSchema, StrictRJSFSchema, ValidatorType } from '../types.js';
|
|
2
2
|
/** Generates an `IdSchema` object for the `schema`, recursively
|
|
3
3
|
*
|
|
4
4
|
* @param validator - An implementation of the `ValidatorType` interface that will be used when necessary
|
package/lib/schema/toIdSchema.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import get from 'lodash/get';
|
|
2
|
-
import { ALL_OF_KEY, DEPENDENCIES_KEY, ID_KEY, ITEMS_KEY, PROPERTIES_KEY, REF_KEY } from '../constants';
|
|
3
|
-
import isObject from '../isObject';
|
|
4
|
-
import retrieveSchema from './retrieveSchema';
|
|
5
|
-
import getSchemaType from '../getSchemaType';
|
|
6
|
-
import deepEquals from '../deepEquals';
|
|
1
|
+
import get from 'lodash-es/get.js';
|
|
2
|
+
import { ALL_OF_KEY, DEPENDENCIES_KEY, ID_KEY, ITEMS_KEY, PROPERTIES_KEY, REF_KEY } from '../constants.js';
|
|
3
|
+
import isObject from '../isObject.js';
|
|
4
|
+
import retrieveSchema from './retrieveSchema.js';
|
|
5
|
+
import getSchemaType from '../getSchemaType.js';
|
|
6
|
+
import deepEquals from '../deepEquals.js';
|
|
7
7
|
/** An internal helper that generates an `IdSchema` object for the `schema`, recursively with protection against
|
|
8
8
|
* infinite recursion
|
|
9
9
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Experimental_CustomMergeAllOf, FormContextType, PathSchema, RJSFSchema, StrictRJSFSchema, ValidatorType } from '../types';
|
|
1
|
+
import { Experimental_CustomMergeAllOf, FormContextType, PathSchema, RJSFSchema, StrictRJSFSchema, ValidatorType } from '../types.js';
|
|
2
2
|
/** Generates an `PathSchema` object for the `schema`, recursively
|
|
3
3
|
*
|
|
4
4
|
* @param validator - An implementation of the `ValidatorType` interface that will be used when necessary
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import get from 'lodash/get';
|
|
2
|
-
import set from 'lodash/set';
|
|
3
|
-
import { ADDITIONAL_PROPERTIES_KEY, ALL_OF_KEY, ANY_OF_KEY, DEPENDENCIES_KEY, ITEMS_KEY, NAME_KEY, ONE_OF_KEY, PROPERTIES_KEY, REF_KEY, RJSF_ADDITIONAL_PROPERTIES_FLAG, } from '../constants';
|
|
4
|
-
import getDiscriminatorFieldFromSchema from '../getDiscriminatorFieldFromSchema';
|
|
5
|
-
import getClosestMatchingOption from './getClosestMatchingOption';
|
|
6
|
-
import retrieveSchema from './retrieveSchema';
|
|
7
|
-
import deepEquals from '../deepEquals';
|
|
1
|
+
import get from 'lodash-es/get.js';
|
|
2
|
+
import set from 'lodash-es/set.js';
|
|
3
|
+
import { ADDITIONAL_PROPERTIES_KEY, ALL_OF_KEY, ANY_OF_KEY, DEPENDENCIES_KEY, ITEMS_KEY, NAME_KEY, ONE_OF_KEY, PROPERTIES_KEY, REF_KEY, RJSF_ADDITIONAL_PROPERTIES_FLAG, } from '../constants.js';
|
|
4
|
+
import getDiscriminatorFieldFromSchema from '../getDiscriminatorFieldFromSchema.js';
|
|
5
|
+
import getClosestMatchingOption from './getClosestMatchingOption.js';
|
|
6
|
+
import retrieveSchema from './retrieveSchema.js';
|
|
7
|
+
import deepEquals from '../deepEquals.js';
|
|
8
8
|
/** An internal helper that generates an `PathSchema` object for the `schema`, recursively with protection against
|
|
9
9
|
* infinite recursion
|
|
10
10
|
*
|
package/lib/shouldRender.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import deepEquals from './deepEquals';
|
|
1
|
+
import deepEquals from './deepEquals.js';
|
|
2
2
|
/** Determines whether the given `component` should be rerendered by comparing its current set of props and state
|
|
3
3
|
* against the next set. If either of those two sets are not the same, then the component should be rerendered.
|
|
4
4
|
*
|
package/lib/toConstant.d.ts
CHANGED
package/lib/toConstant.js
CHANGED
package/lib/toDateString.d.ts
CHANGED
package/lib/toErrorList.d.ts
CHANGED
package/lib/toErrorList.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import isPlainObject from 'lodash/isPlainObject';
|
|
2
|
-
import { ERRORS_KEY } from './constants';
|
|
1
|
+
import isPlainObject from 'lodash-es/isPlainObject.js';
|
|
2
|
+
import { ERRORS_KEY } from './constants.js';
|
|
3
3
|
/** Converts an `errorSchema` into a list of `RJSFValidationErrors`
|
|
4
4
|
*
|
|
5
5
|
* @param errorSchema - The `ErrorSchema` instance to convert
|
package/lib/toErrorSchema.d.ts
CHANGED
package/lib/toErrorSchema.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import toPath from 'lodash/toPath';
|
|
2
|
-
import ErrorSchemaBuilder from './ErrorSchemaBuilder';
|
|
1
|
+
import toPath from 'lodash-es/toPath.js';
|
|
2
|
+
import ErrorSchemaBuilder from './ErrorSchemaBuilder.js';
|
|
3
3
|
/** Transforms a rjsf validation errors list:
|
|
4
4
|
* [
|
|
5
5
|
* {property: '.level1.level2[2].level3', message: 'err a'},
|