@contentful/field-editor-shared 2.9.0 → 2.10.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.
|
@@ -10,6 +10,7 @@ Object.defineProperty(exports, "PredefinedValuesError", {
|
|
|
10
10
|
});
|
|
11
11
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
12
12
|
const _f36note = require("@contentful/f36-note");
|
|
13
|
+
const _core = require("@lingui/core");
|
|
13
14
|
function _getRequireWildcardCache(nodeInterop) {
|
|
14
15
|
if (typeof WeakMap !== "function") return null;
|
|
15
16
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -55,5 +56,8 @@ function PredefinedValuesError() {
|
|
|
55
56
|
return /*#__PURE__*/ _react.createElement(_f36note.Note, {
|
|
56
57
|
variant: "warning",
|
|
57
58
|
testId: "predefined-values-warning"
|
|
58
|
-
},
|
|
59
|
+
}, _core.i18n._({
|
|
60
|
+
id: "FieldEditors.Shared.PredefinedValuesError.ErrorMessage",
|
|
61
|
+
message: "The widget failed to initialize. You can fix the problem by providing predefined values under the validations tab in the field settings."
|
|
62
|
+
}));
|
|
59
63
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Note } from '@contentful/f36-note';
|
|
3
|
+
import { i18n as $_i18n } from "@lingui/core";
|
|
3
4
|
export function PredefinedValuesError() {
|
|
4
5
|
return /*#__PURE__*/ React.createElement(Note, {
|
|
5
6
|
variant: "warning",
|
|
6
7
|
testId: "predefined-values-warning"
|
|
7
|
-
},
|
|
8
|
+
}, $_i18n._({
|
|
9
|
+
id: "FieldEditors.Shared.PredefinedValuesError.ErrorMessage",
|
|
10
|
+
message: "The widget failed to initialize. You can fix the problem by providing predefined values under the validations tab in the field settings."
|
|
11
|
+
}));
|
|
8
12
|
}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -41,12 +41,22 @@ export type ReleaseV2EntityWithLocales = {
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
+
export type ReleaseV2AnnotationType = 'Hidden' | 'Ideation';
|
|
45
|
+
export type ReleaseV2Annotations = {
|
|
46
|
+
'Contentful:Timeline'?: {
|
|
47
|
+
type?: ReleaseV2AnnotationType;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export type ReleaseMetadataV2 = {
|
|
51
|
+
annotations?: ReleaseV2Annotations;
|
|
52
|
+
};
|
|
44
53
|
export type ReleaseV2Props = Omit<ReleaseProps, 'entities' | 'sys'> & {
|
|
45
54
|
sys: ReleaseProps['sys'] & {
|
|
46
55
|
schemaVersion: 'Release.v2';
|
|
47
56
|
};
|
|
48
57
|
entities: CollectionProp<ReleaseV2Entity | ReleaseV2EntityWithLocales>;
|
|
49
58
|
startDate?: string;
|
|
59
|
+
metadata?: ReleaseMetadataV2;
|
|
50
60
|
};
|
|
51
61
|
export type ReleaseAction = 'publish' | 'unpublish' | 'not-in-release';
|
|
52
62
|
export type ReleaseEntityStatus = 'willPublish' | 'becomesDraft' | 'remainsDraft' | 'notInRelease';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-shared",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"registry": "https://npm.pkg.github.com/"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "be09f0d73046834685814d083141f5166cb64457"
|
|
61
61
|
}
|