Skip to content

Commit d9c356b

Browse files
fix imports to add fileextension
1 parent 1695091 commit d9c356b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+438
-213
lines changed

packages/utils/src/ErrorSchemaBuilder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import get from 'lodash/get';
33
import set from 'lodash/set';
44
import setWith from 'lodash/setWith';
55

6-
import { ErrorSchema } from './types';
7-
import { ERRORS_KEY } from './constants';
6+
import { ErrorSchema } from './types.ts';
7+
import { ERRORS_KEY } from './constants.ts';
88

99
/** The `ErrorSchemaBuilder<T>` is used to build an `ErrorSchema<T>` since the definition of the `ErrorSchema` type is
1010
* designed for reading information rather than writing it. Use this class to add, replace or clear errors in an error

packages/utils/src/allowAdditionalItems.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import isObject from './isObject';
2-
import { RJSFSchema, StrictRJSFSchema } from './types';
1+
import isObject from './isObject.ts';
2+
import { RJSFSchema, StrictRJSFSchema } from './types.ts';
33

44
/** Checks the schema to see if it is allowing additional items, by verifying that `schema.additionalItems` is an
55
* object. The user is warned in the console if `schema.additionalItems` has the value `true`.

packages/utils/src/canExpand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { FormContextType, RJSFSchema, StrictRJSFSchema, UiSchema } from './types';
2-
import getUiOptions from './getUiOptions';
1+
import { FormContextType, RJSFSchema, StrictRJSFSchema, UiSchema } from './types.ts';
2+
import getUiOptions from './getUiOptions.ts';
33

44
/** Checks whether the field described by `schema`, having the `uiSchema` and `formData` supports expanding. The UI for
55
* the field can expand if it has additional properties, is not forced as non-expandable by the `uiSchema` and the

packages/utils/src/createErrorHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import isPlainObject from 'lodash/isPlainObject';
22

3-
import { ERRORS_KEY } from './constants';
4-
import { FieldValidation, FormValidation, GenericObjectType } from './types';
3+
import { ERRORS_KEY } from './constants.ts';
4+
import { FieldValidation, FormValidation, GenericObjectType } from './types.ts';
55

66
/** Given a `formData` object, recursively creates a `FormValidation` error handling structure around it
77
*

packages/utils/src/createSchemaUtils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import deepEquals from './deepEquals';
1+
import deepEquals from './deepEquals.ts';
22
import {
33
ErrorSchema,
44
Experimental_CustomMergeAllOf,
@@ -13,7 +13,7 @@ import {
1313
UiSchema,
1414
ValidationData,
1515
ValidatorType,
16-
} from './types';
16+
} from './types.ts';
1717
import {
1818
getDefaultFormState,
1919
getDisplayLabel,
@@ -28,7 +28,7 @@ import {
2828
sanitizeDataForNewSchema,
2929
toIdSchema,
3030
toPathSchema,
31-
} from './schema';
31+
} from './schema/index.ts';
3232

3333
/** The `SchemaUtils` class provides a wrapper around the publicly exported APIs in the `utils/schema` directory such
3434
* that one does not have to explicitly pass the `validator`, `rootSchema`, `experimental_defaultFormStateBehavior` or

packages/utils/src/dateRangeOptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import pad from './pad';
2-
import { EnumOptionsType, RJSFSchema, StrictRJSFSchema } from './types';
1+
import pad from './pad.ts';
2+
import { EnumOptionsType, RJSFSchema, StrictRJSFSchema } from './types.ts';
33

44
/** Returns a list of options for a date range between `start` and `stop`. If the start date is greater than the end
55
* date, then the date range is reversed. If `start` and `stop` are negative numbers (or zero), then they will be

packages/utils/src/englishStringTranslator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { TranslatableString } from './enums';
2-
import replaceStringParameters from './replaceStringParameters';
1+
import { TranslatableString } from './enums.ts';
2+
import replaceStringParameters from './replaceStringParameters.ts';
33

44
/** Translates a `TranslatableString` value `stringToTranslate` into english. When a `params` array is provided, each
55
* value in the array is used to replace any of the replaceable parameters in the `stringToTranslate` using the `%1`,

packages/utils/src/enumOptionsDeselectValue.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import isEqual from 'lodash/isEqual';
22

3-
import { EnumOptionsType, RJSFSchema, StrictRJSFSchema } from './types';
4-
import enumOptionsValueForIndex from './enumOptionsValueForIndex';
3+
import { EnumOptionsType, RJSFSchema, StrictRJSFSchema } from './types.ts';
4+
import enumOptionsValueForIndex from './enumOptionsValueForIndex.ts';
55

66
/** Removes the enum option value at the `valueIndex` from the currently `selected` (list of) value(s). If `selected` is
77
* a list, then that list is updated to remove the enum option value with the `valueIndex` in `allEnumOptions`. If it is

packages/utils/src/enumOptionsIndexForValue.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { EnumOptionsType, RJSFSchema, StrictRJSFSchema } from './types';
2-
import enumOptionsIsSelected from './enumOptionsIsSelected';
1+
import { EnumOptionsType, RJSFSchema, StrictRJSFSchema } from './types.ts';
2+
import enumOptionsIsSelected from './enumOptionsIsSelected.ts';
33

44
/** Returns the index(es) of the options in `allEnumOptions` whose value(s) match the ones in `value`. All the
55
* `enumOptions` are filtered based on whether they are a "selected" `value` and the index of each selected one is then

packages/utils/src/enumOptionsIsSelected.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import isEqual from 'lodash/isEqual';
22

3-
import { EnumOptionsType, RJSFSchema, StrictRJSFSchema } from './types';
3+
import { EnumOptionsType, RJSFSchema, StrictRJSFSchema } from './types.ts';
44

55
/** Determines whether the given `value` is (one of) the `selected` value(s).
66
*

0 commit comments

Comments
 (0)