@atlaskit/editor-plugin-extension 11.0.12 → 11.0.13
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/CHANGELOG.md +6 -0
- package/dist/cjs/ui/ConfigPanel/ErrorMessage/index.js +1 -1
- package/dist/cjs/ui/ConfigPanel/Fields/Boolean.js +4 -4
- package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -1
- package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +3 -3
- package/dist/cjs/ui/ConfigPanel/Fields/CustomSelect.js +5 -5
- package/dist/cjs/ui/ConfigPanel/Fields/Date.js +3 -3
- package/dist/cjs/ui/ConfigPanel/Fields/DateRange.js +4 -4
- package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +2 -2
- package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +3 -3
- package/dist/cjs/ui/ConfigPanel/Fields/Number.js +1 -1
- package/dist/cjs/ui/ConfigPanel/Fields/RadioGroup.js +2 -2
- package/dist/cjs/ui/ConfigPanel/Fields/Select.js +2 -2
- package/dist/cjs/ui/ConfigPanel/Fields/String.js +4 -4
- package/dist/cjs/ui/ConfigPanel/Fields/UserSelect.js +2 -2
- package/dist/cjs/ui/context-panel.js +2 -2
- package/dist/cjs/ui/useConfigPanelPluginHook.js +2 -2
- package/dist/es2019/ui/ConfigPanel/ErrorMessage/index.js +1 -1
- package/dist/es2019/ui/ConfigPanel/Fields/Boolean.js +4 -4
- package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -1
- package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +3 -3
- package/dist/es2019/ui/ConfigPanel/Fields/CustomSelect.js +5 -5
- package/dist/es2019/ui/ConfigPanel/Fields/Date.js +3 -3
- package/dist/es2019/ui/ConfigPanel/Fields/DateRange.js +4 -4
- package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +2 -2
- package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +3 -3
- package/dist/es2019/ui/ConfigPanel/Fields/Number.js +1 -1
- package/dist/es2019/ui/ConfigPanel/Fields/RadioGroup.js +2 -2
- package/dist/es2019/ui/ConfigPanel/Fields/Select.js +2 -2
- package/dist/es2019/ui/ConfigPanel/Fields/String.js +4 -4
- package/dist/es2019/ui/ConfigPanel/Fields/UserSelect.js +2 -2
- package/dist/es2019/ui/context-panel.js +2 -2
- package/dist/es2019/ui/useConfigPanelPluginHook.js +2 -2
- package/dist/esm/ui/ConfigPanel/ErrorMessage/index.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +4 -4
- package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +3 -3
- package/dist/esm/ui/ConfigPanel/Fields/CustomSelect.js +5 -5
- package/dist/esm/ui/ConfigPanel/Fields/Date.js +3 -3
- package/dist/esm/ui/ConfigPanel/Fields/DateRange.js +4 -4
- package/dist/esm/ui/ConfigPanel/Fields/Expand.js +2 -2
- package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +3 -3
- package/dist/esm/ui/ConfigPanel/Fields/Number.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/RadioGroup.js +2 -2
- package/dist/esm/ui/ConfigPanel/Fields/Select.js +2 -2
- package/dist/esm/ui/ConfigPanel/Fields/String.js +4 -4
- package/dist/esm/ui/ConfigPanel/Fields/UserSelect.js +2 -2
- package/dist/esm/ui/context-panel.js +2 -2
- package/dist/esm/ui/useConfigPanelPluginHook.js +2 -2
- package/example-utils/config-panel/ConfigPanelWithExtensionPicker.tsx +3 -3
- package/example-utils/config-panel/ConfigPanelWithProviders.tsx +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -16,7 +16,7 @@ var ConfigPanelErrorMessage = function ConfigPanelErrorMessage(_ref) {
|
|
|
16
16
|
return /*#__PURE__*/_react.default.createElement(_emptyState.default, {
|
|
17
17
|
header: intl.formatMessage(_extensions.configPanelMessages.configFailedToLoad),
|
|
18
18
|
description: errorMessage
|
|
19
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
19
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
20
20
|
,
|
|
21
21
|
renderImage: function renderImage() {
|
|
22
22
|
return /*#__PURE__*/_react.default.createElement(_ErrorImage.default, null);
|
|
@@ -68,7 +68,7 @@ function Checkbox(_ref) {
|
|
|
68
68
|
return (0, _react2.jsx)(_form.Field, {
|
|
69
69
|
name: name,
|
|
70
70
|
isRequired: isRequired
|
|
71
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
71
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
72
72
|
,
|
|
73
73
|
validate: function validate(value) {
|
|
74
74
|
return _validate(value, isRequired);
|
|
@@ -85,7 +85,7 @@ function Checkbox(_ref) {
|
|
|
85
85
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
86
86
|
, (0, _extends2.default)({}, restFieldProps, {
|
|
87
87
|
label: label
|
|
88
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
88
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
89
89
|
,
|
|
90
90
|
onChange: function onChange(event) {
|
|
91
91
|
return handleOnChange(fieldProps.onChange, onFieldChange, event);
|
|
@@ -111,7 +111,7 @@ function Toggle(_ref3) {
|
|
|
111
111
|
return (0, _react2.jsx)(_form.Field, {
|
|
112
112
|
name: name,
|
|
113
113
|
isRequired: isRequired
|
|
114
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
114
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
115
115
|
,
|
|
116
116
|
validate: function validate(value) {
|
|
117
117
|
return _validate(value, isRequired);
|
|
@@ -139,7 +139,7 @@ function Toggle(_ref3) {
|
|
|
139
139
|
// Ignored via go/ees005
|
|
140
140
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
141
141
|
, (0, _extends2.default)({}, restFieldProps, {
|
|
142
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
142
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
143
143
|
onChange: function onChange(event) {
|
|
144
144
|
return handleOnChange(fieldProps.onChange, onFieldChange, event);
|
|
145
145
|
},
|
|
@@ -97,7 +97,7 @@ function CheckboxGroup(_ref3) {
|
|
|
97
97
|
name: name,
|
|
98
98
|
isRequired: isRequired,
|
|
99
99
|
defaultValue: defaultValue
|
|
100
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
100
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
101
101
|
,
|
|
102
102
|
validate: function validate(value) {
|
|
103
103
|
return _validate(value, isRequired);
|
|
@@ -358,7 +358,7 @@ var ColorPicker = function ColorPicker(props) {
|
|
|
358
358
|
cols: EXPANDED_COLOR_PICKER_COLUMNS,
|
|
359
359
|
alignX: "right",
|
|
360
360
|
placement: "ConfigPanel"
|
|
361
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
361
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
362
362
|
,
|
|
363
363
|
size: {
|
|
364
364
|
width: "var(--ds-space-300, 24px)",
|
|
@@ -367,7 +367,7 @@ var ColorPicker = function ColorPicker(props) {
|
|
|
367
367
|
/* ED-18288 We align the palette to the right edge which is 1.5rem spacing away to avoid
|
|
368
368
|
excess overflow on left. Additional 1 is to mitigate 1px added by floating toolbar. */
|
|
369
369
|
// Disabling design token check as this is a calculated value
|
|
370
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
370
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
371
371
|
,
|
|
372
372
|
absoluteOffset: {
|
|
373
373
|
right: Number(-1.5 * getCurrentRemSize() - 1)
|
|
@@ -388,7 +388,7 @@ var ColorPickerField = function ColorPickerField(_ref) {
|
|
|
388
388
|
isRequired: isRequired,
|
|
389
389
|
defaultValue: defaultValue,
|
|
390
390
|
testId: "config-panel-color-picker-".concat(name)
|
|
391
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
391
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
392
392
|
,
|
|
393
393
|
validate: function validate(value) {
|
|
394
394
|
return (0, _utils.validate)(field, value || '');
|
|
@@ -145,7 +145,7 @@ function CustomSelect(_ref2) {
|
|
|
145
145
|
label: label,
|
|
146
146
|
isRequired: isRequired,
|
|
147
147
|
defaultValue: defaultValue
|
|
148
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
148
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
149
149
|
,
|
|
150
150
|
validate: function validate(value) {
|
|
151
151
|
return (0, _utils.validate)(field, value);
|
|
@@ -159,7 +159,7 @@ function CustomSelect(_ref2) {
|
|
|
159
159
|
// Ignored via go/ees005
|
|
160
160
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
161
161
|
, (0, _extends2.default)({}, fieldProps, {
|
|
162
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
162
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
163
163
|
onChange: function onChange(value) {
|
|
164
164
|
fieldProps.onChange(value);
|
|
165
165
|
// We assume onChange is called whenever values actually changed
|
|
@@ -170,20 +170,20 @@ function CustomSelect(_ref2) {
|
|
|
170
170
|
,
|
|
171
171
|
isMulti: isMultiple || false,
|
|
172
172
|
isClearable: true
|
|
173
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
173
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
174
174
|
,
|
|
175
175
|
isValidNewOption: function isValidNewOption(value) {
|
|
176
176
|
return !!(isCreatable && value);
|
|
177
177
|
},
|
|
178
178
|
validationState: error ? 'error' : 'default',
|
|
179
179
|
defaultOptions: defaultOptions
|
|
180
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
180
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
181
181
|
,
|
|
182
182
|
formatCreateLabel: function formatCreateLabel(value) {
|
|
183
183
|
return customFormatCreateLabel ? customFormatCreateLabel(value) : _formatCreateLabel(value);
|
|
184
184
|
},
|
|
185
185
|
formatOptionLabel: _SelectItem.formatOptionLabel
|
|
186
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
186
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
187
187
|
,
|
|
188
188
|
loadOptions: function loadOptions(searchTerm) {
|
|
189
189
|
return resolver(searchTerm, fieldDefaultValue, parameters);
|
|
@@ -29,7 +29,7 @@ function Date(_ref) {
|
|
|
29
29
|
label: label,
|
|
30
30
|
defaultValue: defaultValue,
|
|
31
31
|
isRequired: isRequired
|
|
32
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
32
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
33
33
|
,
|
|
34
34
|
validate: function validate(value) {
|
|
35
35
|
return (0, _utils.validate)(field, value);
|
|
@@ -44,12 +44,12 @@ function Date(_ref) {
|
|
|
44
44
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
45
45
|
, (0, _extends2.default)({}, fieldProps, {
|
|
46
46
|
autoFocus: autoFocus
|
|
47
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
47
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
48
48
|
,
|
|
49
49
|
onBlur: function onBlur() {
|
|
50
50
|
fieldProps.onBlur();
|
|
51
51
|
}
|
|
52
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
52
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
53
53
|
,
|
|
54
54
|
onChange: function onChange(value) {
|
|
55
55
|
fieldProps.onChange(value);
|
|
@@ -56,7 +56,7 @@ var DateField = function DateField(_ref) {
|
|
|
56
56
|
label: intl.formatMessage(_extensions.configPanelMessages[fieldName]),
|
|
57
57
|
defaultValue: getFromDefaultValue(parentField, fieldName),
|
|
58
58
|
isRequired: isRequired
|
|
59
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
59
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
60
60
|
,
|
|
61
61
|
validate: function validate(value) {
|
|
62
62
|
return (0, _utils.validateRequired)({
|
|
@@ -71,7 +71,7 @@ var DateField = function DateField(_ref) {
|
|
|
71
71
|
// Ignored via go/ees005
|
|
72
72
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
73
73
|
, (0, _extends2.default)({}, fieldProps, {
|
|
74
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
74
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
75
75
|
onChange: function onChange(date) {
|
|
76
76
|
fieldProps.onChange(date);
|
|
77
77
|
onFieldChange(parentField.name, true);
|
|
@@ -126,7 +126,7 @@ var DateRange = function DateRange(_ref3) {
|
|
|
126
126
|
label: field.label,
|
|
127
127
|
defaultValue: currentValue,
|
|
128
128
|
isRequired: field.isRequired
|
|
129
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
129
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
130
130
|
,
|
|
131
131
|
validate: function validate(value) {
|
|
132
132
|
return (0, _utils.validate)(field, value || '');
|
|
@@ -141,7 +141,7 @@ var DateRange = function DateRange(_ref3) {
|
|
|
141
141
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
142
142
|
, (0, _extends2.default)({}, fieldProps, {
|
|
143
143
|
options: items
|
|
144
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
144
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
145
145
|
,
|
|
146
146
|
onChange: function onChange(event) {
|
|
147
147
|
fieldProps.onChange(event.target.value);
|
|
@@ -75,14 +75,14 @@ function Expand(_ref) {
|
|
|
75
75
|
}, field.label), (0, _react2.jsx)("div", {
|
|
76
76
|
css: chevronContainerStyles
|
|
77
77
|
}, (0, _react2.jsx)(_new.IconButton
|
|
78
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
78
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
79
79
|
, {
|
|
80
80
|
onClick: function onClick() {
|
|
81
81
|
setExpanded(!expanded);
|
|
82
82
|
},
|
|
83
83
|
label: intl.formatMessage(expanded ? _extensions.configPanelMessages.collapse : _extensions.configPanelMessages.expand),
|
|
84
84
|
testId: "form-expand-toggle"
|
|
85
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
85
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
86
86
|
,
|
|
87
87
|
icon: function icon(iconProps) {
|
|
88
88
|
return expanded ? (0, _react2.jsx)(_chevronDown.default, {
|
|
@@ -195,7 +195,7 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
|
|
|
195
195
|
autoFocus: true,
|
|
196
196
|
placeholder: intl.formatMessage(_extensions.configPanelMessages.addField),
|
|
197
197
|
options: selectOptions
|
|
198
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
198
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
199
199
|
,
|
|
200
200
|
onChange: function onChange(option) {
|
|
201
201
|
if (option) {
|
|
@@ -205,7 +205,7 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
|
|
|
205
205
|
}) : (0, _react2.jsx)(_new.default, {
|
|
206
206
|
testId: "add-more",
|
|
207
207
|
appearance: "subtle"
|
|
208
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
208
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
209
209
|
,
|
|
210
210
|
iconBefore: function iconBefore(iconProps) {
|
|
211
211
|
return (0, _react2.jsx)(_add.default
|
|
@@ -216,7 +216,7 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
|
|
|
216
216
|
label: intl.formatMessage(_extensions.configPanelMessages.addField)
|
|
217
217
|
}));
|
|
218
218
|
}
|
|
219
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
219
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
220
220
|
,
|
|
221
221
|
onClick: function onClick() {
|
|
222
222
|
return _this.setIsAdding(true);
|
|
@@ -54,7 +54,7 @@ function Number(_ref) {
|
|
|
54
54
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
55
55
|
, (0, _extends2.default)({}, fieldProps, {
|
|
56
56
|
autoFocus: autoFocus
|
|
57
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
57
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
58
58
|
,
|
|
59
59
|
onBlur: function onBlur() {
|
|
60
60
|
fieldProps.onBlur();
|
|
@@ -31,7 +31,7 @@ function RadioField(_ref) {
|
|
|
31
31
|
label: field.label,
|
|
32
32
|
defaultValue: field.defaultValue,
|
|
33
33
|
isRequired: field.isRequired
|
|
34
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
34
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
35
35
|
,
|
|
36
36
|
validate: function validate(value) {
|
|
37
37
|
return (0, _utils.validate)(field, value);
|
|
@@ -50,7 +50,7 @@ function RadioField(_ref) {
|
|
|
50
50
|
name: field.name
|
|
51
51
|
});
|
|
52
52
|
})
|
|
53
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
53
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
54
54
|
,
|
|
55
55
|
onChange: function onChange(value) {
|
|
56
56
|
fieldProps.onChange(value);
|
|
@@ -33,7 +33,7 @@ function SelectField(_ref) {
|
|
|
33
33
|
defaultValue: (0, _utils.getOptionFromValue)(field.items, field.defaultValue),
|
|
34
34
|
testId: "config-panel-select-".concat(name),
|
|
35
35
|
isRequired: field.isRequired
|
|
36
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
36
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
37
37
|
,
|
|
38
38
|
validate: function validate(value) {
|
|
39
39
|
// Ignored via go/ees005
|
|
@@ -52,7 +52,7 @@ function SelectField(_ref) {
|
|
|
52
52
|
inputId: fieldProps.id,
|
|
53
53
|
id: undefined
|
|
54
54
|
}), {
|
|
55
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
55
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
56
56
|
onChange: function onChange(value) {
|
|
57
57
|
fieldProps.onChange(value);
|
|
58
58
|
onFieldChange(name, true);
|
|
@@ -32,7 +32,7 @@ function String(_ref) {
|
|
|
32
32
|
label: label,
|
|
33
33
|
defaultValue: defaultValue || '',
|
|
34
34
|
isRequired: isRequired
|
|
35
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
35
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
36
36
|
,
|
|
37
37
|
validate: function validate(value) {
|
|
38
38
|
return (0, _utils.validate)(field, value || '');
|
|
@@ -51,11 +51,11 @@ function String(_ref) {
|
|
|
51
51
|
// Ignored via go/ees005
|
|
52
52
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
53
53
|
, (0, _extends2.default)({}, restFieldProps, options, {
|
|
54
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
54
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
55
55
|
onChange: function onChange(e) {
|
|
56
56
|
return _onChange(e.currentTarget.value);
|
|
57
57
|
}
|
|
58
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
58
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
59
59
|
,
|
|
60
60
|
onBlur: function onBlur() {
|
|
61
61
|
fieldProps.onBlur();
|
|
@@ -74,7 +74,7 @@ function String(_ref) {
|
|
|
74
74
|
, (0, _extends2.default)({}, fieldProps, {
|
|
75
75
|
type: "text",
|
|
76
76
|
autoFocus: autoFocus
|
|
77
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
77
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
78
78
|
,
|
|
79
79
|
onBlur: function onBlur() {
|
|
80
80
|
fieldProps.onBlur();
|
|
@@ -235,7 +235,7 @@ function UserSelect(_ref2) {
|
|
|
235
235
|
label: label,
|
|
236
236
|
isRequired: isRequired,
|
|
237
237
|
defaultValue: defaultValue
|
|
238
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
238
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
239
239
|
,
|
|
240
240
|
validate: function validate(value) {
|
|
241
241
|
return (0, _utils.validate)(field, value);
|
|
@@ -263,7 +263,7 @@ function UserSelect(_ref2) {
|
|
|
263
263
|
field: field,
|
|
264
264
|
formFieldProps: fieldProps,
|
|
265
265
|
autoFocus: autoFocus || false
|
|
266
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
266
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
267
267
|
,
|
|
268
268
|
onBlur: function onBlur() {
|
|
269
269
|
return onFieldChange(name, meta.dirty);
|
|
@@ -95,7 +95,7 @@ var getContextPanel = exports.getContextPanel = function getContextPanel(getEdit
|
|
|
95
95
|
extensionProvider: extensionProvider,
|
|
96
96
|
autoSaveTrigger: autoSaveResolve,
|
|
97
97
|
autoSaveReject: autoSaveReject
|
|
98
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
98
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
99
99
|
,
|
|
100
100
|
onChange: ( /*#__PURE__*/function () {
|
|
101
101
|
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(updatedParameters) {
|
|
@@ -119,7 +119,7 @@ var getContextPanel = exports.getContextPanel = function getContextPanel(getEdit
|
|
|
119
119
|
return _ref2.apply(this, arguments);
|
|
120
120
|
};
|
|
121
121
|
}())
|
|
122
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
122
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
123
123
|
,
|
|
124
124
|
onCancel: /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
125
125
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
@@ -250,7 +250,7 @@ var getContextPanelBodyComponent = exports.getContextPanelBodyComponent = functi
|
|
|
250
250
|
extensionProvider: extensionProvider,
|
|
251
251
|
autoSaveTrigger: autoSaveResolve,
|
|
252
252
|
autoSaveReject: autoSaveReject
|
|
253
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
253
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
254
254
|
,
|
|
255
255
|
onChange: ( /*#__PURE__*/function () {
|
|
256
256
|
var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(updatedParameters) {
|
|
@@ -274,7 +274,7 @@ var getContextPanelBodyComponent = exports.getContextPanelBodyComponent = functi
|
|
|
274
274
|
return _ref6.apply(this, arguments);
|
|
275
275
|
};
|
|
276
276
|
}())
|
|
277
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
277
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
278
278
|
,
|
|
279
279
|
onCancel: function onCancel() {
|
|
280
280
|
return startClosingConfigPanel({
|
|
@@ -10,7 +10,7 @@ const ConfigPanelErrorMessage = ({
|
|
|
10
10
|
return /*#__PURE__*/React.createElement(EmptyState, {
|
|
11
11
|
header: intl.formatMessage(messages.configFailedToLoad),
|
|
12
12
|
description: errorMessage
|
|
13
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
13
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
14
14
|
,
|
|
15
15
|
renderImage: () => /*#__PURE__*/React.createElement(ErrorImage, null),
|
|
16
16
|
width: "narrow",
|
|
@@ -58,7 +58,7 @@ function Checkbox({
|
|
|
58
58
|
return jsx(Field, {
|
|
59
59
|
name: name,
|
|
60
60
|
isRequired: isRequired
|
|
61
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
61
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
62
62
|
,
|
|
63
63
|
validate: value => validate(value, isRequired),
|
|
64
64
|
defaultValue: defaultValue,
|
|
@@ -76,7 +76,7 @@ function Checkbox({
|
|
|
76
76
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
77
77
|
, _extends({}, restFieldProps, {
|
|
78
78
|
label: label
|
|
79
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
79
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
80
80
|
,
|
|
81
81
|
onChange: event => handleOnChange(fieldProps.onChange, onFieldChange, event),
|
|
82
82
|
isChecked: parseBoolean(isChecked)
|
|
@@ -101,7 +101,7 @@ function Toggle({
|
|
|
101
101
|
return jsx(Field, {
|
|
102
102
|
name: name,
|
|
103
103
|
isRequired: isRequired
|
|
104
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
104
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
105
105
|
,
|
|
106
106
|
validate: value => validate(value, isRequired),
|
|
107
107
|
defaultValue: defaultValue,
|
|
@@ -130,7 +130,7 @@ function Toggle({
|
|
|
130
130
|
// Ignored via go/ees005
|
|
131
131
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
132
132
|
, _extends({}, restFieldProps, {
|
|
133
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
133
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
134
134
|
onChange: event => handleOnChange(fieldProps.onChange, onFieldChange, event),
|
|
135
135
|
isChecked: parseBoolean(isChecked),
|
|
136
136
|
id: id
|
|
@@ -95,7 +95,7 @@ export default function CheckboxGroup({
|
|
|
95
95
|
name: name,
|
|
96
96
|
isRequired: isRequired,
|
|
97
97
|
defaultValue: defaultValue
|
|
98
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
98
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
99
99
|
,
|
|
100
100
|
validate: value => validate(value, isRequired),
|
|
101
101
|
isDisabled: isDisabled
|
|
@@ -352,7 +352,7 @@ const ColorPicker = props => {
|
|
|
352
352
|
cols: EXPANDED_COLOR_PICKER_COLUMNS,
|
|
353
353
|
alignX: "right",
|
|
354
354
|
placement: "ConfigPanel"
|
|
355
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
355
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
356
356
|
,
|
|
357
357
|
size: {
|
|
358
358
|
width: "var(--ds-space-300, 24px)",
|
|
@@ -361,7 +361,7 @@ const ColorPicker = props => {
|
|
|
361
361
|
/* ED-18288 We align the palette to the right edge which is 1.5rem spacing away to avoid
|
|
362
362
|
excess overflow on left. Additional 1 is to mitigate 1px added by floating toolbar. */
|
|
363
363
|
// Disabling design token check as this is a calculated value
|
|
364
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
364
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
365
365
|
,
|
|
366
366
|
absoluteOffset: {
|
|
367
367
|
right: Number(-1.5 * getCurrentRemSize() - 1)
|
|
@@ -385,7 +385,7 @@ const ColorPickerField = ({
|
|
|
385
385
|
isRequired: isRequired,
|
|
386
386
|
defaultValue: defaultValue,
|
|
387
387
|
testId: `config-panel-color-picker-${name}`
|
|
388
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
388
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
389
389
|
,
|
|
390
390
|
validate: value => validate(field, value || ''),
|
|
391
391
|
isDisabled: isDisabled
|
|
@@ -96,7 +96,7 @@ function CustomSelect({
|
|
|
96
96
|
label: label,
|
|
97
97
|
isRequired: isRequired,
|
|
98
98
|
defaultValue: defaultValue
|
|
99
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
99
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
100
100
|
,
|
|
101
101
|
validate: value => validate(field, value),
|
|
102
102
|
testId: `config-panel-custom-select-${name}`,
|
|
@@ -108,7 +108,7 @@ function CustomSelect({
|
|
|
108
108
|
// Ignored via go/ees005
|
|
109
109
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
110
110
|
, _extends({}, fieldProps, {
|
|
111
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
111
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
112
112
|
onChange: value => {
|
|
113
113
|
fieldProps.onChange(value);
|
|
114
114
|
// We assume onChange is called whenever values actually changed
|
|
@@ -119,16 +119,16 @@ function CustomSelect({
|
|
|
119
119
|
,
|
|
120
120
|
isMulti: isMultiple || false,
|
|
121
121
|
isClearable: true
|
|
122
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
122
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
123
123
|
,
|
|
124
124
|
isValidNewOption: value => !!(isCreatable && value),
|
|
125
125
|
validationState: error ? 'error' : 'default',
|
|
126
126
|
defaultOptions: defaultOptions
|
|
127
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
127
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
128
128
|
,
|
|
129
129
|
formatCreateLabel: value => customFormatCreateLabel ? customFormatCreateLabel(value) : formatCreateLabel(value),
|
|
130
130
|
formatOptionLabel: formatOptionLabel
|
|
131
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
131
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
132
132
|
,
|
|
133
133
|
loadOptions: searchTerm => {
|
|
134
134
|
return resolver(searchTerm, fieldDefaultValue, parameters);
|
|
@@ -25,7 +25,7 @@ function Date({
|
|
|
25
25
|
label: label,
|
|
26
26
|
defaultValue: defaultValue,
|
|
27
27
|
isRequired: isRequired
|
|
28
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
28
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
29
29
|
,
|
|
30
30
|
validate: value => validate(field, value),
|
|
31
31
|
testId: `config-panel-date-picker-${name}`,
|
|
@@ -39,12 +39,12 @@ function Date({
|
|
|
39
39
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
40
40
|
, _extends({}, fieldProps, {
|
|
41
41
|
autoFocus: autoFocus
|
|
42
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
42
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
43
43
|
,
|
|
44
44
|
onBlur: () => {
|
|
45
45
|
fieldProps.onBlur();
|
|
46
46
|
}
|
|
47
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
47
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
48
48
|
,
|
|
49
49
|
onChange: value => {
|
|
50
50
|
fieldProps.onChange(value);
|
|
@@ -47,7 +47,7 @@ const DateField = ({
|
|
|
47
47
|
label: intl.formatMessage(messages[fieldName]),
|
|
48
48
|
defaultValue: getFromDefaultValue(parentField, fieldName),
|
|
49
49
|
isRequired: isRequired
|
|
50
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
50
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
51
51
|
,
|
|
52
52
|
validate: value => {
|
|
53
53
|
return validateRequired({
|
|
@@ -62,7 +62,7 @@ const DateField = ({
|
|
|
62
62
|
// Ignored via go/ees005
|
|
63
63
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
64
64
|
, _extends({}, fieldProps, {
|
|
65
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
65
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
66
66
|
onChange: date => {
|
|
67
67
|
fieldProps.onChange(date);
|
|
68
68
|
onFieldChange(parentField.name, true);
|
|
@@ -111,7 +111,7 @@ const DateRange = function ({
|
|
|
111
111
|
label: field.label,
|
|
112
112
|
defaultValue: currentValue,
|
|
113
113
|
isRequired: field.isRequired
|
|
114
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
114
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
115
115
|
,
|
|
116
116
|
validate: value => validate(field, value || ''),
|
|
117
117
|
testId: `config-panel-date-range-${name}`,
|
|
@@ -124,7 +124,7 @@ const DateRange = function ({
|
|
|
124
124
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
125
125
|
, _extends({}, fieldProps, {
|
|
126
126
|
options: items
|
|
127
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
127
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
128
128
|
,
|
|
129
129
|
onChange: event => {
|
|
130
130
|
fieldProps.onChange(event.target.value);
|
|
@@ -61,14 +61,14 @@ function Expand({
|
|
|
61
61
|
}, field.label), jsx("div", {
|
|
62
62
|
css: chevronContainerStyles
|
|
63
63
|
}, jsx(IconButton
|
|
64
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
64
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
65
65
|
, {
|
|
66
66
|
onClick: () => {
|
|
67
67
|
setExpanded(!expanded);
|
|
68
68
|
},
|
|
69
69
|
label: intl.formatMessage(expanded ? messages.collapse : messages.expand),
|
|
70
70
|
testId: "form-expand-toggle"
|
|
71
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
71
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
72
72
|
,
|
|
73
73
|
icon: iconProps => expanded ? jsx(ChevronDownIcon, {
|
|
74
74
|
label: iconProps.label,
|
|
@@ -160,7 +160,7 @@ class FieldsetField extends React.Component {
|
|
|
160
160
|
autoFocus: true,
|
|
161
161
|
placeholder: intl.formatMessage(messages.addField),
|
|
162
162
|
options: selectOptions
|
|
163
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
163
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
164
164
|
,
|
|
165
165
|
onChange: option => {
|
|
166
166
|
if (option) {
|
|
@@ -170,7 +170,7 @@ class FieldsetField extends React.Component {
|
|
|
170
170
|
}) : jsx(Button, {
|
|
171
171
|
testId: "add-more",
|
|
172
172
|
appearance: "subtle"
|
|
173
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
173
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
174
174
|
,
|
|
175
175
|
iconBefore: iconProps => jsx(AddCircleIcon
|
|
176
176
|
// Ignored via go/ees005
|
|
@@ -179,7 +179,7 @@ class FieldsetField extends React.Component {
|
|
|
179
179
|
spacing: "none",
|
|
180
180
|
label: intl.formatMessage(messages.addField)
|
|
181
181
|
}))
|
|
182
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
182
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
183
183
|
,
|
|
184
184
|
onClick: () => this.setIsAdding(true)
|
|
185
185
|
}, intl.formatMessage(messages.addField)));
|
|
@@ -51,7 +51,7 @@ export default function Number({
|
|
|
51
51
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
52
52
|
, _extends({}, fieldProps, {
|
|
53
53
|
autoFocus: autoFocus
|
|
54
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
54
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
55
55
|
,
|
|
56
56
|
onBlur: () => {
|
|
57
57
|
fieldProps.onBlur();
|