@contentful/field-editor-single-line 2.3.3-canary.28 → 2.3.3-canary.31

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.
@@ -65,14 +65,14 @@ function SingleLineEditor(props) {
65
65
  const checkConstraint = _fieldeditorshared.ConstraintsUtils.makeChecker(constraints);
66
66
  const direction = locales.direction[field.locale] || 'ltr';
67
67
  const handleCheckConstraint = withCharValidation ? checkConstraint : ()=>true;
68
- return /*#__PURE__*/ _react.createElement(_fieldeditorshared.FieldConnector, {
68
+ return _react.createElement(_fieldeditorshared.FieldConnector, {
69
69
  field: field,
70
70
  isInitiallyDisabled: isInitiallyDisabled,
71
71
  isDisabled: isDisabled
72
72
  }, ({ value, errors, disabled, setValue })=>{
73
- return /*#__PURE__*/ _react.createElement("div", {
73
+ return _react.createElement("div", {
74
74
  "data-test-id": "single-line-editor"
75
- }, /*#__PURE__*/ _react.createElement(_f36components.TextInput, {
75
+ }, _react.createElement(_f36components.TextInput, {
76
76
  id: id,
77
77
  className: direction === 'rtl' ? _styles.rightToLeft : '',
78
78
  isRequired: field.required,
@@ -84,12 +84,12 @@ function SingleLineEditor(props) {
84
84
  onChange: (e)=>{
85
85
  setValue(e.target.value);
86
86
  }
87
- }), withCharInformation && /*#__PURE__*/ _react.createElement("div", {
87
+ }), withCharInformation && _react.createElement("div", {
88
88
  className: _styles.validationRow
89
- }, /*#__PURE__*/ _react.createElement(_fieldeditorshared.CharCounter, {
89
+ }, _react.createElement(_fieldeditorshared.CharCounter, {
90
90
  value: value || '',
91
91
  checkConstraint: handleCheckConstraint
92
- }), withCharValidation && /*#__PURE__*/ _react.createElement(_fieldeditorshared.CharValidation, {
92
+ }), withCharValidation && _react.createElement(_fieldeditorshared.CharValidation, {
93
93
  constraints: constraints
94
94
  })));
95
95
  });
@@ -60,7 +60,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
60
60
  type: 'Symbol'
61
61
  };
62
62
  });
63
- (0, _react1.render)(/*#__PURE__*/ _react.createElement(_SingleLineEditor.SingleLineEditor, {
63
+ (0, _react1.render)(_react.createElement(_SingleLineEditor.SingleLineEditor, {
64
64
  field: field,
65
65
  isInitiallyDisabled: false,
66
66
  locales: (0, _fieldeditortestutils.createFakeLocalesAPI)()
@@ -78,7 +78,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
78
78
  }
79
79
  };
80
80
  });
81
- const { getByTestId, getByText } = (0, _react1.render)(/*#__PURE__*/ _react.createElement(_SingleLineEditor.SingleLineEditor, {
81
+ const { getByTestId, getByText } = (0, _react1.render)(_react.createElement(_SingleLineEditor.SingleLineEditor, {
82
82
  field: field,
83
83
  isInitiallyDisabled: false,
84
84
  locales: (0, _fieldeditortestutils.createFakeLocalesAPI)()
@@ -97,7 +97,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
97
97
  type: 'Symbol'
98
98
  };
99
99
  });
100
- const { getByTestId } = (0, _react1.render)(/*#__PURE__*/ _react.createElement(_SingleLineEditor.SingleLineEditor, {
100
+ const { getByTestId } = (0, _react1.render)(_react.createElement(_SingleLineEditor.SingleLineEditor, {
101
101
  field: field,
102
102
  isInitiallyDisabled: false,
103
103
  locales: (0, _fieldeditortestutils.createFakeLocalesAPI)()
@@ -133,7 +133,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
133
133
  id: 'field-id'
134
134
  };
135
135
  });
136
- const { getByText } = (0, _react1.render)(/*#__PURE__*/ _react.createElement(_SingleLineEditor.SingleLineEditor, {
136
+ const { getByText } = (0, _react1.render)(_react.createElement(_SingleLineEditor.SingleLineEditor, {
137
137
  field: field,
138
138
  isInitiallyDisabled: false,
139
139
  locales: (0, _fieldeditortestutils.createFakeLocalesAPI)()
@@ -149,7 +149,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
149
149
  id: 'field-id'
150
150
  };
151
151
  });
152
- const { getByText } = (0, _react1.render)(/*#__PURE__*/ _react.createElement(_SingleLineEditor.SingleLineEditor, {
152
+ const { getByText } = (0, _react1.render)(_react.createElement(_SingleLineEditor.SingleLineEditor, {
153
153
  field: field,
154
154
  isInitiallyDisabled: false,
155
155
  locales: (0, _fieldeditortestutils.createFakeLocalesAPI)()
@@ -173,7 +173,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
173
173
  id: 'field-id'
174
174
  };
175
175
  });
176
- const { getByText } = (0, _react1.render)(/*#__PURE__*/ _react.createElement(_SingleLineEditor.SingleLineEditor, {
176
+ const { getByText } = (0, _react1.render)(_react.createElement(_SingleLineEditor.SingleLineEditor, {
177
177
  field: field,
178
178
  isInitiallyDisabled: false,
179
179
  locales: (0, _fieldeditortestutils.createFakeLocalesAPI)()
@@ -197,7 +197,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
197
197
  id: 'field-id'
198
198
  };
199
199
  });
200
- const { getByText } = (0, _react1.render)(/*#__PURE__*/ _react.createElement(_SingleLineEditor.SingleLineEditor, {
200
+ const { getByText } = (0, _react1.render)(_react.createElement(_SingleLineEditor.SingleLineEditor, {
201
201
  field: field,
202
202
  isInitiallyDisabled: false,
203
203
  locales: (0, _fieldeditortestutils.createFakeLocalesAPI)()
@@ -220,7 +220,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
220
220
  id: 'field-id'
221
221
  };
222
222
  });
223
- const { getByText } = (0, _react1.render)(/*#__PURE__*/ _react.createElement(_SingleLineEditor.SingleLineEditor, {
223
+ const { getByText } = (0, _react1.render)(_react.createElement(_SingleLineEditor.SingleLineEditor, {
224
224
  field: field,
225
225
  isInitiallyDisabled: false,
226
226
  locales: (0, _fieldeditortestutils.createFakeLocalesAPI)()
@@ -243,7 +243,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
243
243
  id: 'field-id'
244
244
  };
245
245
  });
246
- const { getByText } = (0, _react1.render)(/*#__PURE__*/ _react.createElement(_SingleLineEditor.SingleLineEditor, {
246
+ const { getByText } = (0, _react1.render)(_react.createElement(_SingleLineEditor.SingleLineEditor, {
247
247
  field: field,
248
248
  isInitiallyDisabled: false,
249
249
  locales: (0, _fieldeditortestutils.createFakeLocalesAPI)()
@@ -267,7 +267,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
267
267
  id: 'field-id'
268
268
  };
269
269
  });
270
- const { getByText, queryByText } = (0, _react1.render)(/*#__PURE__*/ _react.createElement(_SingleLineEditor.SingleLineEditor, {
270
+ const { getByText, queryByText } = (0, _react1.render)(_react.createElement(_SingleLineEditor.SingleLineEditor, {
271
271
  field: field,
272
272
  withCharValidation: false,
273
273
  isInitiallyDisabled: false,
@@ -292,7 +292,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
292
292
  id: 'field-id'
293
293
  };
294
294
  });
295
- const { queryByText } = (0, _react1.render)(/*#__PURE__*/ _react.createElement(_SingleLineEditor.SingleLineEditor, {
295
+ const { queryByText } = (0, _react1.render)(_react.createElement(_SingleLineEditor.SingleLineEditor, {
296
296
  field: field,
297
297
  withCharValidation: false,
298
298
  isInitiallyDisabled: false,
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  function _export(target, all) {
6
6
  for(var name in all)Object.defineProperty(target, name, {
7
7
  enumerable: true,
8
- get: all[name]
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- rightToLeft: function() {
12
+ get rightToLeft () {
13
13
  return rightToLeft;
14
14
  },
15
- validationRow: function() {
15
+ get validationRow () {
16
16
  return validationRow;
17
17
  }
18
18
  });
@@ -14,14 +14,14 @@ export function SingleLineEditor(props) {
14
14
  const checkConstraint = ConstraintsUtils.makeChecker(constraints);
15
15
  const direction = locales.direction[field.locale] || 'ltr';
16
16
  const handleCheckConstraint = withCharValidation ? checkConstraint : ()=>true;
17
- return /*#__PURE__*/ React.createElement(FieldConnector, {
17
+ return React.createElement(FieldConnector, {
18
18
  field: field,
19
19
  isInitiallyDisabled: isInitiallyDisabled,
20
20
  isDisabled: isDisabled
21
21
  }, ({ value, errors, disabled, setValue })=>{
22
- return /*#__PURE__*/ React.createElement("div", {
22
+ return React.createElement("div", {
23
23
  "data-test-id": "single-line-editor"
24
- }, /*#__PURE__*/ React.createElement(TextInput, {
24
+ }, React.createElement(TextInput, {
25
25
  id: id,
26
26
  className: direction === 'rtl' ? styles.rightToLeft : '',
27
27
  isRequired: field.required,
@@ -33,12 +33,12 @@ export function SingleLineEditor(props) {
33
33
  onChange: (e)=>{
34
34
  setValue(e.target.value);
35
35
  }
36
- }), withCharInformation && /*#__PURE__*/ React.createElement("div", {
36
+ }), withCharInformation && React.createElement("div", {
37
37
  className: styles.validationRow
38
- }, /*#__PURE__*/ React.createElement(CharCounter, {
38
+ }, React.createElement(CharCounter, {
39
39
  value: value || '',
40
40
  checkConstraint: handleCheckConstraint
41
- }), withCharValidation && /*#__PURE__*/ React.createElement(CharValidation, {
41
+ }), withCharValidation && React.createElement(CharValidation, {
42
42
  constraints: constraints
43
43
  })));
44
44
  });
@@ -15,7 +15,7 @@ describe('SingleLineEditor', ()=>{
15
15
  type: 'Symbol'
16
16
  };
17
17
  });
18
- render(/*#__PURE__*/ React.createElement(SingleLineEditor, {
18
+ render(React.createElement(SingleLineEditor, {
19
19
  field: field,
20
20
  isInitiallyDisabled: false,
21
21
  locales: createFakeLocalesAPI()
@@ -33,7 +33,7 @@ describe('SingleLineEditor', ()=>{
33
33
  }
34
34
  };
35
35
  });
36
- const { getByTestId, getByText } = render(/*#__PURE__*/ React.createElement(SingleLineEditor, {
36
+ const { getByTestId, getByText } = render(React.createElement(SingleLineEditor, {
37
37
  field: field,
38
38
  isInitiallyDisabled: false,
39
39
  locales: createFakeLocalesAPI()
@@ -52,7 +52,7 @@ describe('SingleLineEditor', ()=>{
52
52
  type: 'Symbol'
53
53
  };
54
54
  });
55
- const { getByTestId } = render(/*#__PURE__*/ React.createElement(SingleLineEditor, {
55
+ const { getByTestId } = render(React.createElement(SingleLineEditor, {
56
56
  field: field,
57
57
  isInitiallyDisabled: false,
58
58
  locales: createFakeLocalesAPI()
@@ -88,7 +88,7 @@ describe('SingleLineEditor', ()=>{
88
88
  id: 'field-id'
89
89
  };
90
90
  });
91
- const { getByText } = render(/*#__PURE__*/ React.createElement(SingleLineEditor, {
91
+ const { getByText } = render(React.createElement(SingleLineEditor, {
92
92
  field: field,
93
93
  isInitiallyDisabled: false,
94
94
  locales: createFakeLocalesAPI()
@@ -104,7 +104,7 @@ describe('SingleLineEditor', ()=>{
104
104
  id: 'field-id'
105
105
  };
106
106
  });
107
- const { getByText } = render(/*#__PURE__*/ React.createElement(SingleLineEditor, {
107
+ const { getByText } = render(React.createElement(SingleLineEditor, {
108
108
  field: field,
109
109
  isInitiallyDisabled: false,
110
110
  locales: createFakeLocalesAPI()
@@ -128,7 +128,7 @@ describe('SingleLineEditor', ()=>{
128
128
  id: 'field-id'
129
129
  };
130
130
  });
131
- const { getByText } = render(/*#__PURE__*/ React.createElement(SingleLineEditor, {
131
+ const { getByText } = render(React.createElement(SingleLineEditor, {
132
132
  field: field,
133
133
  isInitiallyDisabled: false,
134
134
  locales: createFakeLocalesAPI()
@@ -152,7 +152,7 @@ describe('SingleLineEditor', ()=>{
152
152
  id: 'field-id'
153
153
  };
154
154
  });
155
- const { getByText } = render(/*#__PURE__*/ React.createElement(SingleLineEditor, {
155
+ const { getByText } = render(React.createElement(SingleLineEditor, {
156
156
  field: field,
157
157
  isInitiallyDisabled: false,
158
158
  locales: createFakeLocalesAPI()
@@ -175,7 +175,7 @@ describe('SingleLineEditor', ()=>{
175
175
  id: 'field-id'
176
176
  };
177
177
  });
178
- const { getByText } = render(/*#__PURE__*/ React.createElement(SingleLineEditor, {
178
+ const { getByText } = render(React.createElement(SingleLineEditor, {
179
179
  field: field,
180
180
  isInitiallyDisabled: false,
181
181
  locales: createFakeLocalesAPI()
@@ -198,7 +198,7 @@ describe('SingleLineEditor', ()=>{
198
198
  id: 'field-id'
199
199
  };
200
200
  });
201
- const { getByText } = render(/*#__PURE__*/ React.createElement(SingleLineEditor, {
201
+ const { getByText } = render(React.createElement(SingleLineEditor, {
202
202
  field: field,
203
203
  isInitiallyDisabled: false,
204
204
  locales: createFakeLocalesAPI()
@@ -222,7 +222,7 @@ describe('SingleLineEditor', ()=>{
222
222
  id: 'field-id'
223
223
  };
224
224
  });
225
- const { getByText, queryByText } = render(/*#__PURE__*/ React.createElement(SingleLineEditor, {
225
+ const { getByText, queryByText } = render(React.createElement(SingleLineEditor, {
226
226
  field: field,
227
227
  withCharValidation: false,
228
228
  isInitiallyDisabled: false,
@@ -247,7 +247,7 @@ describe('SingleLineEditor', ()=>{
247
247
  id: 'field-id'
248
248
  };
249
249
  });
250
- const { queryByText } = render(/*#__PURE__*/ React.createElement(SingleLineEditor, {
250
+ const { queryByText } = render(React.createElement(SingleLineEditor, {
251
251
  field: field,
252
252
  withCharValidation: false,
253
253
  isInitiallyDisabled: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-single-line",
3
- "version": "2.3.3-canary.28+dce976a5",
3
+ "version": "2.3.3-canary.31+1fb5b692",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -40,12 +40,12 @@
40
40
  "dependencies": {
41
41
  "@contentful/f36-components": "^6.7.1",
42
42
  "@contentful/f36-tokens": "^6.1.2",
43
- "@contentful/field-editor-shared": "^4.6.3-canary.28+dce976a5",
43
+ "@contentful/field-editor-shared": "^4.6.3-canary.31+1fb5b692",
44
44
  "@emotion/css": "^11.13.5"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@contentful/field-editor-test-utils": "^3.2.1",
48
- "@lingui/core": "5.3.0"
48
+ "@lingui/core": "5.9.5"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@lingui/core": "^5.3.0",
@@ -61,5 +61,5 @@
61
61
  "prettier --write"
62
62
  ]
63
63
  },
64
- "gitHead": "dce976a59659a0c2ef12511f9449ac0100a50987"
64
+ "gitHead": "1fb5b69244b523826081471d8fe4e721b2e6c5ed"
65
65
  }