@contentful/field-editor-radio 1.6.0 → 1.6.2
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/cjs/RadioEditor.js
CHANGED
|
@@ -12,6 +12,7 @@ const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
|
12
12
|
const _f36components = require("@contentful/f36-components");
|
|
13
13
|
const _fieldeditordropdown = require("@contentful/field-editor-dropdown");
|
|
14
14
|
const _fieldeditorshared = require("@contentful/field-editor-shared");
|
|
15
|
+
const _core = require("@lingui/core");
|
|
15
16
|
const _emotion = require("emotion");
|
|
16
17
|
const _styles = /*#__PURE__*/ _interop_require_wildcard(require("./styles"));
|
|
17
18
|
function _getRequireWildcardCache(nodeInterop) {
|
|
@@ -104,7 +105,10 @@ function RadioEditor(props) {
|
|
|
104
105
|
as: "button",
|
|
105
106
|
className: _styles.clearBtn,
|
|
106
107
|
onClick: clearOption
|
|
107
|
-
},
|
|
108
|
+
}, _core.i18n._({
|
|
109
|
+
id: "FieldEditors.Radio.RadioEditor.Clear",
|
|
110
|
+
message: "Clear"
|
|
111
|
+
})));
|
|
108
112
|
}));
|
|
109
113
|
});
|
|
110
114
|
}
|
package/dist/esm/RadioEditor.js
CHANGED
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { TextLink, Flex, Radio, Form } from '@contentful/f36-components';
|
|
3
3
|
import { getOptions, parseValue } from '@contentful/field-editor-dropdown';
|
|
4
4
|
import { FieldConnector, PredefinedValuesError } from '@contentful/field-editor-shared';
|
|
5
|
+
import { i18n as $_i18n } from "@lingui/core";
|
|
5
6
|
import { cx } from 'emotion';
|
|
6
7
|
import * as styles from './styles';
|
|
7
8
|
export function RadioEditor(props) {
|
|
@@ -53,7 +54,10 @@ export function RadioEditor(props) {
|
|
|
53
54
|
as: "button",
|
|
54
55
|
className: styles.clearBtn,
|
|
55
56
|
onClick: clearOption
|
|
56
|
-
},
|
|
57
|
+
}, $_i18n._({
|
|
58
|
+
id: "FieldEditors.Radio.RadioEditor.Clear",
|
|
59
|
+
message: "Clear"
|
|
60
|
+
})));
|
|
57
61
|
}));
|
|
58
62
|
});
|
|
59
63
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-radio",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@contentful/f36-components": "^4.70.0",
|
|
39
39
|
"@contentful/f36-tokens": "^4.0.5",
|
|
40
|
-
"@contentful/field-editor-dropdown": "^1.7.
|
|
41
|
-
"@contentful/field-editor-shared": "^2.
|
|
40
|
+
"@contentful/field-editor-dropdown": "^1.7.2",
|
|
41
|
+
"@contentful/field-editor-shared": "^2.9.1",
|
|
42
42
|
"emotion": "^10.0.17",
|
|
43
43
|
"lodash": "^4.17.15",
|
|
44
44
|
"nanoid": "^3.1.3"
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"registry": "https://npm.pkg.github.com/"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "4fa62eaa25b40c592cc3671df8626dd18013a206"
|
|
59
59
|
}
|