@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.
Files changed (52) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/ui/ConfigPanel/ErrorMessage/index.js +1 -1
  3. package/dist/cjs/ui/ConfigPanel/Fields/Boolean.js +4 -4
  4. package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -1
  5. package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +3 -3
  6. package/dist/cjs/ui/ConfigPanel/Fields/CustomSelect.js +5 -5
  7. package/dist/cjs/ui/ConfigPanel/Fields/Date.js +3 -3
  8. package/dist/cjs/ui/ConfigPanel/Fields/DateRange.js +4 -4
  9. package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +2 -2
  10. package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +3 -3
  11. package/dist/cjs/ui/ConfigPanel/Fields/Number.js +1 -1
  12. package/dist/cjs/ui/ConfigPanel/Fields/RadioGroup.js +2 -2
  13. package/dist/cjs/ui/ConfigPanel/Fields/Select.js +2 -2
  14. package/dist/cjs/ui/ConfigPanel/Fields/String.js +4 -4
  15. package/dist/cjs/ui/ConfigPanel/Fields/UserSelect.js +2 -2
  16. package/dist/cjs/ui/context-panel.js +2 -2
  17. package/dist/cjs/ui/useConfigPanelPluginHook.js +2 -2
  18. package/dist/es2019/ui/ConfigPanel/ErrorMessage/index.js +1 -1
  19. package/dist/es2019/ui/ConfigPanel/Fields/Boolean.js +4 -4
  20. package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -1
  21. package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +3 -3
  22. package/dist/es2019/ui/ConfigPanel/Fields/CustomSelect.js +5 -5
  23. package/dist/es2019/ui/ConfigPanel/Fields/Date.js +3 -3
  24. package/dist/es2019/ui/ConfigPanel/Fields/DateRange.js +4 -4
  25. package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +2 -2
  26. package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +3 -3
  27. package/dist/es2019/ui/ConfigPanel/Fields/Number.js +1 -1
  28. package/dist/es2019/ui/ConfigPanel/Fields/RadioGroup.js +2 -2
  29. package/dist/es2019/ui/ConfigPanel/Fields/Select.js +2 -2
  30. package/dist/es2019/ui/ConfigPanel/Fields/String.js +4 -4
  31. package/dist/es2019/ui/ConfigPanel/Fields/UserSelect.js +2 -2
  32. package/dist/es2019/ui/context-panel.js +2 -2
  33. package/dist/es2019/ui/useConfigPanelPluginHook.js +2 -2
  34. package/dist/esm/ui/ConfigPanel/ErrorMessage/index.js +1 -1
  35. package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +4 -4
  36. package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -1
  37. package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +3 -3
  38. package/dist/esm/ui/ConfigPanel/Fields/CustomSelect.js +5 -5
  39. package/dist/esm/ui/ConfigPanel/Fields/Date.js +3 -3
  40. package/dist/esm/ui/ConfigPanel/Fields/DateRange.js +4 -4
  41. package/dist/esm/ui/ConfigPanel/Fields/Expand.js +2 -2
  42. package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +3 -3
  43. package/dist/esm/ui/ConfigPanel/Fields/Number.js +1 -1
  44. package/dist/esm/ui/ConfigPanel/Fields/RadioGroup.js +2 -2
  45. package/dist/esm/ui/ConfigPanel/Fields/Select.js +2 -2
  46. package/dist/esm/ui/ConfigPanel/Fields/String.js +4 -4
  47. package/dist/esm/ui/ConfigPanel/Fields/UserSelect.js +2 -2
  48. package/dist/esm/ui/context-panel.js +2 -2
  49. package/dist/esm/ui/useConfigPanelPluginHook.js +2 -2
  50. package/example-utils/config-panel/ConfigPanelWithExtensionPicker.tsx +3 -3
  51. package/example-utils/config-panel/ConfigPanelWithProviders.tsx +1 -1
  52. package/package.json +3 -3
@@ -20,7 +20,7 @@ export default function RadioField({
20
20
  label: field.label,
21
21
  defaultValue: field.defaultValue,
22
22
  isRequired: field.isRequired
23
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
23
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
24
24
  ,
25
25
  validate: value => validate(field, value),
26
26
  testId: `config-panel-radio-group-${field.name}`,
@@ -36,7 +36,7 @@ export default function RadioField({
36
36
  ...option,
37
37
  name: field.name
38
38
  }))
39
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
39
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
40
40
  ,
41
41
  onChange: value => {
42
42
  fieldProps.onChange(value);
@@ -22,7 +22,7 @@ export default function SelectField({
22
22
  defaultValue: getOptionFromValue(field.items, field.defaultValue),
23
23
  testId: `config-panel-select-${name}`,
24
24
  isRequired: field.isRequired
25
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
25
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
26
26
  ,
27
27
  validate: value => {
28
28
  // Ignored via go/ees005
@@ -40,7 +40,7 @@ export default function SelectField({
40
40
  // Pass `id` as `inputId` so that the input gets the correct id, and make sure there are no duplicate ids
41
41
  inputId: fieldProps.id,
42
42
  id: undefined,
43
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
43
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
44
44
  onChange: value => {
45
45
  fieldProps.onChange(value);
46
46
  onFieldChange(name, true);
@@ -24,7 +24,7 @@ export default function String({
24
24
  label: label,
25
25
  defaultValue: defaultValue || '',
26
26
  isRequired: isRequired
27
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
27
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
28
28
  ,
29
29
  validate: value => validate(field, value || ''),
30
30
  testId: `config-panel-string-${name}`,
@@ -46,9 +46,9 @@ export default function String({
46
46
  // Ignored via go/ees005
47
47
  // eslint-disable-next-line react/jsx-props-no-spreading
48
48
  , _extends({}, restFieldProps, options, {
49
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
49
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
50
50
  onChange: e => onChange(e.currentTarget.value)
51
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
51
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
52
52
  ,
53
53
  onBlur: () => {
54
54
  fieldProps.onBlur();
@@ -67,7 +67,7 @@ export default function String({
67
67
  , _extends({}, fieldProps, {
68
68
  type: "text",
69
69
  autoFocus: autoFocus
70
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
70
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
71
71
  ,
72
72
  onBlur: () => {
73
73
  fieldProps.onBlur();
@@ -169,7 +169,7 @@ export default function UserSelect({
169
169
  label: label,
170
170
  isRequired: isRequired,
171
171
  defaultValue: defaultValue
172
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
172
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
173
173
  ,
174
174
  validate: value => validate(field, value),
175
175
  testId: `config-panel-user-select-${name}`,
@@ -196,7 +196,7 @@ export default function UserSelect({
196
196
  field: field,
197
197
  formFieldProps: fieldProps,
198
198
  autoFocus: autoFocus || false
199
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
199
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
200
200
  ,
201
201
  onBlur: () => onFieldChange(name, meta.dirty),
202
202
  onChange: onChange
@@ -77,7 +77,7 @@ export const getContextPanel = getEditorView => (api, featureFlags) => state =>
77
77
  extensionProvider: extensionProvider,
78
78
  autoSaveTrigger: autoSaveResolve,
79
79
  autoSaveReject: autoSaveReject
80
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
80
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
81
81
  ,
82
82
  onChange: async updatedParameters => {
83
83
  await onChangeAction(editorView, updatedParameters, parameters, nodeWithPos, onSaveStarted);
@@ -86,7 +86,7 @@ export const getContextPanel = getEditorView => (api, featureFlags) => state =>
86
86
  autoSaveResolve();
87
87
  }
88
88
  }
89
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
89
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
90
90
  ,
91
91
  onCancel: async () => {
92
92
  try {
@@ -198,7 +198,7 @@ export const getContextPanelBodyComponent = ({
198
198
  extensionProvider: extensionProvider,
199
199
  autoSaveTrigger: autoSaveResolve,
200
200
  autoSaveReject: autoSaveReject
201
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
201
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
202
202
  ,
203
203
  onChange: async updatedParameters => {
204
204
  await onChangeAction(editorView, updatedParameters, parameters, nodeWithPos, onSaveStarted);
@@ -207,7 +207,7 @@ export const getContextPanelBodyComponent = ({
207
207
  autoSaveResolve();
208
208
  }
209
209
  }
210
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
210
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
211
211
  ,
212
212
  onCancel: () => startClosingConfigPanel({
213
213
  api,
@@ -9,7 +9,7 @@ var ConfigPanelErrorMessage = function ConfigPanelErrorMessage(_ref) {
9
9
  return /*#__PURE__*/React.createElement(EmptyState, {
10
10
  header: intl.formatMessage(messages.configFailedToLoad),
11
11
  description: errorMessage
12
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
12
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
13
13
  ,
14
14
  renderImage: function renderImage() {
15
15
  return /*#__PURE__*/React.createElement(ErrorImage, null);
@@ -60,7 +60,7 @@ function Checkbox(_ref) {
60
60
  return jsx(Field, {
61
61
  name: name,
62
62
  isRequired: isRequired
63
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
63
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
64
64
  ,
65
65
  validate: function validate(value) {
66
66
  return _validate(value, isRequired);
@@ -77,7 +77,7 @@ function Checkbox(_ref) {
77
77
  // eslint-disable-next-line react/jsx-props-no-spreading
78
78
  , _extends({}, restFieldProps, {
79
79
  label: label
80
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
80
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
81
81
  ,
82
82
  onChange: function onChange(event) {
83
83
  return handleOnChange(fieldProps.onChange, onFieldChange, event);
@@ -103,7 +103,7 @@ function Toggle(_ref3) {
103
103
  return jsx(Field, {
104
104
  name: name,
105
105
  isRequired: isRequired
106
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
106
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
107
107
  ,
108
108
  validate: function validate(value) {
109
109
  return _validate(value, isRequired);
@@ -131,7 +131,7 @@ function Toggle(_ref3) {
131
131
  // Ignored via go/ees005
132
132
  // eslint-disable-next-line react/jsx-props-no-spreading
133
133
  , _extends({}, restFieldProps, {
134
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
134
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
135
135
  onChange: function onChange(event) {
136
136
  return handleOnChange(fieldProps.onChange, onFieldChange, event);
137
137
  },
@@ -92,7 +92,7 @@ export default function CheckboxGroup(_ref3) {
92
92
  name: name,
93
93
  isRequired: isRequired,
94
94
  defaultValue: defaultValue
95
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
95
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
96
96
  ,
97
97
  validate: function validate(value) {
98
98
  return _validate(value, isRequired);
@@ -355,7 +355,7 @@ var ColorPicker = function ColorPicker(props) {
355
355
  cols: EXPANDED_COLOR_PICKER_COLUMNS,
356
356
  alignX: "right",
357
357
  placement: "ConfigPanel"
358
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
358
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
359
359
  ,
360
360
  size: {
361
361
  width: "var(--ds-space-300, 24px)",
@@ -364,7 +364,7 @@ var ColorPicker = function ColorPicker(props) {
364
364
  /* ED-18288 We align the palette to the right edge which is 1.5rem spacing away to avoid
365
365
  excess overflow on left. Additional 1 is to mitigate 1px added by floating toolbar. */
366
366
  // Disabling design token check as this is a calculated value
367
- // 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)
367
+ // 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)
368
368
  ,
369
369
  absoluteOffset: {
370
370
  right: Number(-1.5 * getCurrentRemSize() - 1)
@@ -385,7 +385,7 @@ var ColorPickerField = function ColorPickerField(_ref) {
385
385
  isRequired: isRequired,
386
386
  defaultValue: defaultValue,
387
387
  testId: "config-panel-color-picker-".concat(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: function validate(value) {
391
391
  return _validate(field, value || '');
@@ -136,7 +136,7 @@ function CustomSelect(_ref2) {
136
136
  label: label,
137
137
  isRequired: isRequired,
138
138
  defaultValue: defaultValue
139
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
139
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
140
140
  ,
141
141
  validate: function validate(value) {
142
142
  return _validate(field, value);
@@ -150,7 +150,7 @@ function CustomSelect(_ref2) {
150
150
  // Ignored via go/ees005
151
151
  // eslint-disable-next-line react/jsx-props-no-spreading
152
152
  , _extends({}, fieldProps, {
153
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
153
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
154
154
  onChange: function onChange(value) {
155
155
  fieldProps.onChange(value);
156
156
  // We assume onChange is called whenever values actually changed
@@ -161,20 +161,20 @@ function CustomSelect(_ref2) {
161
161
  ,
162
162
  isMulti: isMultiple || false,
163
163
  isClearable: true
164
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
164
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
165
165
  ,
166
166
  isValidNewOption: function isValidNewOption(value) {
167
167
  return !!(isCreatable && value);
168
168
  },
169
169
  validationState: error ? 'error' : 'default',
170
170
  defaultOptions: defaultOptions
171
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
171
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
172
172
  ,
173
173
  formatCreateLabel: function formatCreateLabel(value) {
174
174
  return customFormatCreateLabel ? customFormatCreateLabel(value) : _formatCreateLabel(value);
175
175
  },
176
176
  formatOptionLabel: formatOptionLabel
177
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
177
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
178
178
  ,
179
179
  loadOptions: function loadOptions(searchTerm) {
180
180
  return resolver(searchTerm, fieldDefaultValue, parameters);
@@ -22,7 +22,7 @@ function Date(_ref) {
22
22
  label: label,
23
23
  defaultValue: defaultValue,
24
24
  isRequired: isRequired
25
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
25
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
26
26
  ,
27
27
  validate: function validate(value) {
28
28
  return _validate(field, value);
@@ -37,12 +37,12 @@ function Date(_ref) {
37
37
  // eslint-disable-next-line react/jsx-props-no-spreading
38
38
  , _extends({}, fieldProps, {
39
39
  autoFocus: autoFocus
40
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
40
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
41
41
  ,
42
42
  onBlur: function onBlur() {
43
43
  fieldProps.onBlur();
44
44
  }
45
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
45
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
46
46
  ,
47
47
  onChange: function onChange(value) {
48
48
  fieldProps.onChange(value);
@@ -52,7 +52,7 @@ var DateField = function DateField(_ref) {
52
52
  label: intl.formatMessage(messages[fieldName]),
53
53
  defaultValue: getFromDefaultValue(parentField, fieldName),
54
54
  isRequired: isRequired
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
  ,
57
57
  validate: function validate(value) {
58
58
  return validateRequired({
@@ -67,7 +67,7 @@ var DateField = function DateField(_ref) {
67
67
  // Ignored via go/ees005
68
68
  // eslint-disable-next-line react/jsx-props-no-spreading
69
69
  , _extends({}, fieldProps, {
70
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
70
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
71
71
  onChange: function onChange(date) {
72
72
  fieldProps.onChange(date);
73
73
  onFieldChange(parentField.name, true);
@@ -122,7 +122,7 @@ var DateRange = function DateRange(_ref3) {
122
122
  label: field.label,
123
123
  defaultValue: currentValue,
124
124
  isRequired: field.isRequired
125
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
125
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
126
126
  ,
127
127
  validate: function validate(value) {
128
128
  return _validate(field, value || '');
@@ -137,7 +137,7 @@ var DateRange = function DateRange(_ref3) {
137
137
  // eslint-disable-next-line react/jsx-props-no-spreading
138
138
  , _extends({}, fieldProps, {
139
139
  options: items
140
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
140
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
141
141
  ,
142
142
  onChange: function onChange(event) {
143
143
  fieldProps.onChange(event.target.value);
@@ -65,14 +65,14 @@ function Expand(_ref) {
65
65
  }, field.label), jsx("div", {
66
66
  css: chevronContainerStyles
67
67
  }, jsx(IconButton
68
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
68
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
69
69
  , {
70
70
  onClick: function onClick() {
71
71
  setExpanded(!expanded);
72
72
  },
73
73
  label: intl.formatMessage(expanded ? messages.collapse : messages.expand),
74
74
  testId: "form-expand-toggle"
75
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
75
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
76
76
  ,
77
77
  icon: function icon(iconProps) {
78
78
  return expanded ? jsx(ChevronDownIcon, {
@@ -189,7 +189,7 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
189
189
  autoFocus: true,
190
190
  placeholder: intl.formatMessage(messages.addField),
191
191
  options: selectOptions
192
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
192
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
193
193
  ,
194
194
  onChange: function onChange(option) {
195
195
  if (option) {
@@ -199,7 +199,7 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
199
199
  }) : jsx(Button, {
200
200
  testId: "add-more",
201
201
  appearance: "subtle"
202
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
202
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
203
203
  ,
204
204
  iconBefore: function iconBefore(iconProps) {
205
205
  return jsx(AddCircleIcon
@@ -210,7 +210,7 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
210
210
  label: intl.formatMessage(messages.addField)
211
211
  }));
212
212
  }
213
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
213
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
214
214
  ,
215
215
  onClick: function onClick() {
216
216
  return _this.setIsAdding(true);
@@ -47,7 +47,7 @@ export default function Number(_ref) {
47
47
  // eslint-disable-next-line react/jsx-props-no-spreading
48
48
  , _extends({}, fieldProps, {
49
49
  autoFocus: autoFocus
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
  onBlur: function onBlur() {
53
53
  fieldProps.onBlur();
@@ -22,7 +22,7 @@ export default function RadioField(_ref) {
22
22
  label: field.label,
23
23
  defaultValue: field.defaultValue,
24
24
  isRequired: field.isRequired
25
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
25
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
26
26
  ,
27
27
  validate: function validate(value) {
28
28
  return _validate(field, value);
@@ -41,7 +41,7 @@ export default function RadioField(_ref) {
41
41
  name: field.name
42
42
  });
43
43
  })
44
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
44
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
45
45
  ,
46
46
  onChange: function onChange(value) {
47
47
  fieldProps.onChange(value);
@@ -24,7 +24,7 @@ export default function SelectField(_ref) {
24
24
  defaultValue: getOptionFromValue(field.items, field.defaultValue),
25
25
  testId: "config-panel-select-".concat(name),
26
26
  isRequired: field.isRequired
27
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
27
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
28
28
  ,
29
29
  validate: function validate(value) {
30
30
  // Ignored via go/ees005
@@ -43,7 +43,7 @@ export default function SelectField(_ref) {
43
43
  inputId: fieldProps.id,
44
44
  id: undefined
45
45
  }), {
46
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
46
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
47
47
  onChange: function onChange(value) {
48
48
  fieldProps.onChange(value);
49
49
  onFieldChange(name, true);
@@ -23,7 +23,7 @@ export default function String(_ref) {
23
23
  label: label,
24
24
  defaultValue: defaultValue || '',
25
25
  isRequired: isRequired
26
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
26
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
27
27
  ,
28
28
  validate: function validate(value) {
29
29
  return _validate(field, value || '');
@@ -42,11 +42,11 @@ export default function String(_ref) {
42
42
  // Ignored via go/ees005
43
43
  // eslint-disable-next-line react/jsx-props-no-spreading
44
44
  , _extends({}, restFieldProps, options, {
45
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
45
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
46
46
  onChange: function onChange(e) {
47
47
  return _onChange(e.currentTarget.value);
48
48
  }
49
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
49
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
50
50
  ,
51
51
  onBlur: function onBlur() {
52
52
  fieldProps.onBlur();
@@ -65,7 +65,7 @@ export default function String(_ref) {
65
65
  , _extends({}, fieldProps, {
66
66
  type: "text",
67
67
  autoFocus: autoFocus
68
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
68
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
69
69
  ,
70
70
  onBlur: function onBlur() {
71
71
  fieldProps.onBlur();
@@ -226,7 +226,7 @@ export default function UserSelect(_ref2) {
226
226
  label: label,
227
227
  isRequired: isRequired,
228
228
  defaultValue: defaultValue
229
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
229
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
230
230
  ,
231
231
  validate: function validate(value) {
232
232
  return _validate(field, value);
@@ -254,7 +254,7 @@ export default function UserSelect(_ref2) {
254
254
  field: field,
255
255
  formFieldProps: fieldProps,
256
256
  autoFocus: autoFocus || false
257
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
257
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
258
258
  ,
259
259
  onBlur: function onBlur() {
260
260
  return onFieldChange(name, meta.dirty);
@@ -87,7 +87,7 @@ export var getContextPanel = function getContextPanel(getEditorView) {
87
87
  extensionProvider: extensionProvider,
88
88
  autoSaveTrigger: autoSaveResolve,
89
89
  autoSaveReject: autoSaveReject
90
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
90
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
91
91
  ,
92
92
  onChange: ( /*#__PURE__*/function () {
93
93
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(updatedParameters) {
@@ -111,7 +111,7 @@ export var getContextPanel = function getContextPanel(getEditorView) {
111
111
  return _ref2.apply(this, arguments);
112
112
  };
113
113
  }())
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
  onCancel: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
117
117
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
@@ -237,7 +237,7 @@ export var getContextPanelBodyComponent = function getContextPanelBodyComponent(
237
237
  extensionProvider: extensionProvider,
238
238
  autoSaveTrigger: autoSaveResolve,
239
239
  autoSaveReject: autoSaveReject
240
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
240
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
241
241
  ,
242
242
  onChange: ( /*#__PURE__*/function () {
243
243
  var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(updatedParameters) {
@@ -261,7 +261,7 @@ export var getContextPanelBodyComponent = function getContextPanelBodyComponent(
261
261
  return _ref6.apply(this, arguments);
262
262
  };
263
263
  }())
264
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
264
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
265
265
  ,
266
266
  onCancel: function onCancel() {
267
267
  return startClosingConfigPanel({
@@ -123,7 +123,7 @@ function ExtensionConfigPanel({
123
123
  {parameters && (
124
124
  <CodeBlock
125
125
  language="json"
126
- // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
126
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
127
127
  text={JSON.stringify(parameters, null, 4)}
128
128
  showLineNumbers={false}
129
129
  />
@@ -136,7 +136,7 @@ function ExtensionConfigPanel({
136
136
  <div css={codeWrapperStyles}>
137
137
  <CodeBlock
138
138
  language="json"
139
- // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
139
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
140
140
  text={JSON.stringify(fields, null, 4)}
141
141
  showLineNumbers={false}
142
142
  />
@@ -200,7 +200,7 @@ export default function ConfigPanelWithExtensionPicker({
200
200
  selectedExtension={extensionKey}
201
201
  selectedNode={nodeKey}
202
202
  extensionProvider={extensionProvider}
203
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
203
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
204
204
  onSelect={(params) => {
205
205
  setNodeAndParameters(params);
206
206
  setItem(params.item);
@@ -43,7 +43,7 @@ export default function ConfigPanelWithProviders({
43
43
  parameters={parameters}
44
44
  showHeader
45
45
  onChange={_onChange}
46
- // eslint-disable-next-line no-console, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
46
+ // eslint-disable-next-line no-console, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
47
47
  onCancel={() => console.log('onCancel')}
48
48
  />
49
49
  </IntlProvider>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "11.0.12",
3
+ "version": "11.0.13",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -60,7 +60,7 @@
60
60
  "@atlaskit/textarea": "^8.2.0",
61
61
  "@atlaskit/textfield": "^8.2.0",
62
62
  "@atlaskit/theme": "^22.0.0",
63
- "@atlaskit/tmp-editor-statsig": "^44.0.0",
63
+ "@atlaskit/tmp-editor-statsig": "^45.0.0",
64
64
  "@atlaskit/toggle": "^15.2.0",
65
65
  "@atlaskit/tokens": "^11.1.0",
66
66
  "@atlaskit/tooltip": "^21.0.0",
@@ -74,7 +74,7 @@
74
74
  "uuid": "^3.1.0"
75
75
  },
76
76
  "peerDependencies": {
77
- "@atlaskit/editor-common": "^112.7.0",
77
+ "@atlaskit/editor-common": "^112.8.0",
78
78
  "react": "^18.2.0",
79
79
  "react-intl-next": "npm:react-intl@^5.18.1"
80
80
  },