@contentful/field-editor-dropdown 1.7.1 → 1.7.3
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.
|
@@ -11,6 +11,7 @@ Object.defineProperty(exports, "DropdownEditor", {
|
|
|
11
11
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
12
12
|
const _f36components = require("@contentful/f36-components");
|
|
13
13
|
const _fieldeditorshared = require("@contentful/field-editor-shared");
|
|
14
|
+
const _core = require("@lingui/core");
|
|
14
15
|
const _dropdownUtils = require("./dropdownUtils");
|
|
15
16
|
const _styles = /*#__PURE__*/ _interop_require_wildcard(require("./styles"));
|
|
16
17
|
function _getRequireWildcardCache(nodeInterop) {
|
|
@@ -80,7 +81,10 @@ function DropdownEditor(props) {
|
|
|
80
81
|
}
|
|
81
82
|
}, /*#__PURE__*/ _react.createElement(_f36components.Select.Option, {
|
|
82
83
|
value: ""
|
|
83
|
-
},
|
|
84
|
+
}, _core.i18n._({
|
|
85
|
+
id: "FieldEditors.Dropdown.DropdownEditor.ChooseValue",
|
|
86
|
+
message: "Choose a value"
|
|
87
|
+
})), options.map((option)=>/*#__PURE__*/ _react.createElement(_f36components.Select.Option, {
|
|
84
88
|
key: option.value,
|
|
85
89
|
value: String(option.value)
|
|
86
90
|
}, option.label))));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Select } from '@contentful/f36-components';
|
|
3
3
|
import { FieldConnector, PredefinedValuesError } from '@contentful/field-editor-shared';
|
|
4
|
+
import { i18n as $_i18n } from "@lingui/core";
|
|
4
5
|
import { getOptions, parseValue } from './dropdownUtils';
|
|
5
6
|
import * as styles from './styles';
|
|
6
7
|
export function DropdownEditor(props) {
|
|
@@ -29,7 +30,10 @@ export function DropdownEditor(props) {
|
|
|
29
30
|
}
|
|
30
31
|
}, /*#__PURE__*/ React.createElement(Select.Option, {
|
|
31
32
|
value: ""
|
|
32
|
-
},
|
|
33
|
+
}, $_i18n._({
|
|
34
|
+
id: "FieldEditors.Dropdown.DropdownEditor.ChooseValue",
|
|
35
|
+
message: "Choose a value"
|
|
36
|
+
})), options.map((option)=>/*#__PURE__*/ React.createElement(Select.Option, {
|
|
33
37
|
key: option.value,
|
|
34
38
|
value: String(option.value)
|
|
35
39
|
}, option.label))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-dropdown",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@contentful/f36-components": "^4.70.0",
|
|
39
39
|
"@contentful/f36-tokens": "^4.0.5",
|
|
40
|
-
"@contentful/field-editor-shared": "^2.
|
|
40
|
+
"@contentful/field-editor-shared": "^2.10.0",
|
|
41
41
|
"emotion": "^10.0.0",
|
|
42
42
|
"lodash": "^4.17.15",
|
|
43
43
|
"nanoid": "^3.1.3"
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"registry": "https://npm.pkg.github.com/"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "be09f0d73046834685814d083141f5166cb64457"
|
|
58
58
|
}
|