@contentful/field-editor-boolean 1.4.33 → 1.5.1

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.
@@ -94,29 +94,29 @@ function BooleanEditor(props) {
94
94
  testId: "boolean-editor",
95
95
  alignItems: "center",
96
96
  marginTop: "spacingS"
97
- }, options.map((item)=>{
97
+ }, options.map((option)=>{
98
98
  const id = [
99
99
  'entity',
100
100
  field.id,
101
101
  field.locale,
102
- item.value,
103
- item.id
102
+ option.value,
103
+ option.id
104
104
  ].join('.');
105
- const checked = value === item.value;
105
+ const checked = value === option.value;
106
106
  return _react.createElement(_f36components.Flex, {
107
107
  marginRight: "spacingM",
108
108
  key: id
109
109
  }, _react.createElement(_f36components.Radio, {
110
110
  id: id,
111
111
  isDisabled: disabled,
112
- value: item.value === undefined ? '' : String(item.value),
112
+ value: option.value === undefined ? '' : String(option.value),
113
113
  isChecked: checked,
114
114
  onChange: (e)=>{
115
115
  if (e.target.checked) {
116
116
  setOption(e.target.value);
117
117
  }
118
118
  }
119
- }, item.label));
119
+ }, option.label));
120
120
  }), value !== undefined && _react.createElement(_f36components.TextLink, {
121
121
  as: "button",
122
122
  testId: "boolean-editor-clear",
@@ -38,29 +38,29 @@ export function BooleanEditor(props) {
38
38
  testId: "boolean-editor",
39
39
  alignItems: "center",
40
40
  marginTop: "spacingS"
41
- }, options.map((item)=>{
41
+ }, options.map((option)=>{
42
42
  const id = [
43
43
  'entity',
44
44
  field.id,
45
45
  field.locale,
46
- item.value,
47
- item.id
46
+ option.value,
47
+ option.id
48
48
  ].join('.');
49
- const checked = value === item.value;
49
+ const checked = value === option.value;
50
50
  return React.createElement(Flex, {
51
51
  marginRight: "spacingM",
52
52
  key: id
53
53
  }, React.createElement(Radio, {
54
54
  id: id,
55
55
  isDisabled: disabled,
56
- value: item.value === undefined ? '' : String(item.value),
56
+ value: option.value === undefined ? '' : String(option.value),
57
57
  isChecked: checked,
58
58
  onChange: (e)=>{
59
59
  if (e.target.checked) {
60
60
  setOption(e.target.value);
61
61
  }
62
62
  }
63
- }, item.label));
63
+ }, option.label));
64
64
  }), value !== undefined && React.createElement(TextLink, {
65
65
  as: "button",
66
66
  testId: "boolean-editor-clear",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-boolean",
3
- "version": "1.4.33",
3
+ "version": "1.5.1",
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.4.1",
40
+ "@contentful/field-editor-shared": "^2.4.2",
41
41
  "emotion": "^10.0.17",
42
42
  "lodash": "^4.17.15",
43
43
  "nanoid": "^3.1.3"
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "registry": "https://npm.pkg.github.com/"
53
53
  },
54
- "gitHead": "1d0dc6dc10cf4ad43aa48b04fa67d29ab7edaee8"
54
+ "gitHead": "6bee4a59a3c19a95d2cadde3ef0c78112788626e"
55
55
  }