@box/metadata-editor 0.89.1 → 0.90.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.
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/constants.js +6 -0
- package/package.json +2 -2
- package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/constants.d.ts +3 -0
- package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/types.d.ts +4 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@box/metadata-editor",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.90.0",
|
4
4
|
"peerDependencies": {
|
5
5
|
"@ariakit/react": "0.4.15",
|
6
6
|
"@box/blueprint-web": "^7.30.3",
|
@@ -53,5 +53,5 @@
|
|
53
53
|
"**/*.css"
|
54
54
|
],
|
55
55
|
"license": "SEE LICENSE IN LICENSE",
|
56
|
-
"gitHead": "
|
56
|
+
"gitHead": "5537c0f30158767c353c29ee7f067b84b58ad99e"
|
57
57
|
}
|
@@ -1,8 +1,11 @@
|
|
1
1
|
import { AutofillSuggestions, MetadataFormFieldValue, MetadataTemplateField, MetadataTemplateInstance } from '../../../../types';
|
2
2
|
import { TaxonomyOptionsFetcher } from '../../../metadata-editor-fields/components/metadata-taxonomy-field/types';
|
3
3
|
import { FormValues } from '../../types';
|
4
|
+
import { ERROR_CODE_METADATA_AUTOFILL_TIMEOUT, ERROR_CODE_METADATA_PRECONDITION_FAILED, ERROR_CODE_UNKNOWN } from './constants';
|
5
|
+
type errorCodeTypes = typeof ERROR_CODE_METADATA_AUTOFILL_TIMEOUT | typeof ERROR_CODE_METADATA_PRECONDITION_FAILED | typeof ERROR_CODE_UNKNOWN;
|
4
6
|
export type MetadataInstanceFormProps = {
|
5
7
|
areAiSuggestionsAvailable: boolean;
|
8
|
+
errorCode?: errorCodeTypes;
|
6
9
|
isAiSuggestionsFeatureEnabled: boolean;
|
7
10
|
isBetaLanguageEnabled: boolean;
|
8
11
|
isDeleteButtonDisabled: boolean;
|
@@ -51,3 +54,4 @@ export type JSONPatchOperation = {
|
|
51
54
|
value?: MetadataFormFieldValue;
|
52
55
|
};
|
53
56
|
export type JSONPatchOperations = JSONPatchOperation[];
|
57
|
+
export {};
|