@atlaskit/editor-plugin-extension 11.0.10 → 11.0.12
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 +12 -0
- package/dist/cjs/pm-plugins/utils.js +1 -0
- package/dist/cjs/ui/ConfigPanel/ConfigPanelFieldsLoader.js +1 -0
- package/dist/cjs/ui/ConfigPanel/ErrorMessage/index.js +3 -1
- package/dist/cjs/ui/ConfigPanel/Fields/Boolean.js +10 -3
- package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +3 -1
- package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +7 -3
- package/dist/cjs/ui/ConfigPanel/Fields/CustomSelect.js +13 -4
- package/dist/cjs/ui/ConfigPanel/Fields/Date.js +9 -3
- package/dist/cjs/ui/ConfigPanel/Fields/DateRange.js +10 -3
- package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +6 -2
- package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +9 -3
- package/dist/cjs/ui/ConfigPanel/Fields/Number.js +3 -1
- package/dist/cjs/ui/ConfigPanel/Fields/RadioGroup.js +6 -2
- package/dist/cjs/ui/ConfigPanel/Fields/Select.js +4 -1
- package/dist/cjs/ui/ConfigPanel/Fields/String.js +10 -3
- package/dist/cjs/ui/ConfigPanel/Fields/UserSelect.js +6 -2
- package/dist/cjs/ui/context-panel.js +6 -2
- package/dist/cjs/ui/useConfigPanelPluginHook.js +6 -2
- package/dist/es2019/pm-plugins/utils.js +1 -0
- package/dist/es2019/ui/ConfigPanel/ConfigPanelFieldsLoader.js +1 -0
- package/dist/es2019/ui/ConfigPanel/ErrorMessage/index.js +3 -1
- package/dist/es2019/ui/ConfigPanel/Fields/Boolean.js +10 -3
- package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +3 -1
- package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +7 -3
- package/dist/es2019/ui/ConfigPanel/Fields/CustomSelect.js +13 -4
- package/dist/es2019/ui/ConfigPanel/Fields/Date.js +9 -3
- package/dist/es2019/ui/ConfigPanel/Fields/DateRange.js +10 -3
- package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +6 -2
- package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +9 -3
- package/dist/es2019/ui/ConfigPanel/Fields/Number.js +3 -1
- package/dist/es2019/ui/ConfigPanel/Fields/RadioGroup.js +6 -2
- package/dist/es2019/ui/ConfigPanel/Fields/Select.js +4 -1
- package/dist/es2019/ui/ConfigPanel/Fields/String.js +10 -3
- package/dist/es2019/ui/ConfigPanel/Fields/UserSelect.js +6 -2
- package/dist/es2019/ui/context-panel.js +6 -2
- package/dist/es2019/ui/useConfigPanelPluginHook.js +6 -2
- package/dist/esm/pm-plugins/utils.js +1 -0
- package/dist/esm/ui/ConfigPanel/ConfigPanelFieldsLoader.js +1 -0
- package/dist/esm/ui/ConfigPanel/ErrorMessage/index.js +3 -1
- package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +10 -3
- package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +3 -1
- package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +7 -3
- package/dist/esm/ui/ConfigPanel/Fields/CustomSelect.js +13 -4
- package/dist/esm/ui/ConfigPanel/Fields/Date.js +9 -3
- package/dist/esm/ui/ConfigPanel/Fields/DateRange.js +10 -3
- package/dist/esm/ui/ConfigPanel/Fields/Expand.js +6 -2
- package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +9 -3
- package/dist/esm/ui/ConfigPanel/Fields/Number.js +3 -1
- package/dist/esm/ui/ConfigPanel/Fields/RadioGroup.js +6 -2
- package/dist/esm/ui/ConfigPanel/Fields/Select.js +4 -1
- package/dist/esm/ui/ConfigPanel/Fields/String.js +10 -3
- package/dist/esm/ui/ConfigPanel/Fields/UserSelect.js +6 -2
- package/dist/esm/ui/context-panel.js +6 -2
- package/dist/esm/ui/useConfigPanelPluginHook.js +6 -2
- package/example-utils/config-panel/ConfigPanelWithExtensionPicker.tsx +4 -0
- package/example-utils/config-panel/ConfigPanelWithProviders.tsx +1 -1
- package/package.json +3 -3
|
@@ -86,7 +86,9 @@ export var getContextPanel = function getContextPanel(getEditorView) {
|
|
|
86
86
|
parameters: configParams,
|
|
87
87
|
extensionProvider: extensionProvider,
|
|
88
88
|
autoSaveTrigger: autoSaveResolve,
|
|
89
|
-
autoSaveReject: autoSaveReject
|
|
89
|
+
autoSaveReject: autoSaveReject
|
|
90
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
91
|
+
,
|
|
90
92
|
onChange: ( /*#__PURE__*/function () {
|
|
91
93
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(updatedParameters) {
|
|
92
94
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -108,7 +110,9 @@ export var getContextPanel = function getContextPanel(getEditorView) {
|
|
|
108
110
|
return function (_x) {
|
|
109
111
|
return _ref2.apply(this, arguments);
|
|
110
112
|
};
|
|
111
|
-
}())
|
|
113
|
+
}())
|
|
114
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
115
|
+
,
|
|
112
116
|
onCancel: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
113
117
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
114
118
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -236,7 +236,9 @@ export var getContextPanelBodyComponent = function getContextPanelBodyComponent(
|
|
|
236
236
|
parameters: configParams,
|
|
237
237
|
extensionProvider: extensionProvider,
|
|
238
238
|
autoSaveTrigger: autoSaveResolve,
|
|
239
|
-
autoSaveReject: autoSaveReject
|
|
239
|
+
autoSaveReject: autoSaveReject
|
|
240
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
241
|
+
,
|
|
240
242
|
onChange: ( /*#__PURE__*/function () {
|
|
241
243
|
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(updatedParameters) {
|
|
242
244
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
@@ -258,7 +260,9 @@ export var getContextPanelBodyComponent = function getContextPanelBodyComponent(
|
|
|
258
260
|
return function (_x2) {
|
|
259
261
|
return _ref6.apply(this, arguments);
|
|
260
262
|
};
|
|
261
|
-
}())
|
|
263
|
+
}())
|
|
264
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
265
|
+
,
|
|
262
266
|
onCancel: function onCancel() {
|
|
263
267
|
return startClosingConfigPanel({
|
|
264
268
|
api: api,
|
|
@@ -84,6 +84,7 @@ function ExtensionConfigPanel({
|
|
|
84
84
|
try {
|
|
85
85
|
setParameters({
|
|
86
86
|
...parameters,
|
|
87
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
87
88
|
...JSON.parse(parametersJson),
|
|
88
89
|
});
|
|
89
90
|
} catch (e) {
|
|
@@ -122,6 +123,7 @@ function ExtensionConfigPanel({
|
|
|
122
123
|
{parameters && (
|
|
123
124
|
<CodeBlock
|
|
124
125
|
language="json"
|
|
126
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
125
127
|
text={JSON.stringify(parameters, null, 4)}
|
|
126
128
|
showLineNumbers={false}
|
|
127
129
|
/>
|
|
@@ -134,6 +136,7 @@ function ExtensionConfigPanel({
|
|
|
134
136
|
<div css={codeWrapperStyles}>
|
|
135
137
|
<CodeBlock
|
|
136
138
|
language="json"
|
|
139
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
137
140
|
text={JSON.stringify(fields, null, 4)}
|
|
138
141
|
showLineNumbers={false}
|
|
139
142
|
/>
|
|
@@ -197,6 +200,7 @@ export default function ConfigPanelWithExtensionPicker({
|
|
|
197
200
|
selectedExtension={extensionKey}
|
|
198
201
|
selectedNode={nodeKey}
|
|
199
202
|
extensionProvider={extensionProvider}
|
|
203
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
200
204
|
onSelect={(params) => {
|
|
201
205
|
setNodeAndParameters(params);
|
|
202
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
|
|
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.
|
|
3
|
+
"version": "11.0.12",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/heading": "^5.3.0",
|
|
49
49
|
"@atlaskit/icon": "^33.0.0",
|
|
50
50
|
"@atlaskit/link": "^3.3.0",
|
|
51
|
-
"@atlaskit/mention": "^24.
|
|
51
|
+
"@atlaskit/mention": "^24.6.0",
|
|
52
52
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
53
53
|
"@atlaskit/primitives": "^18.0.0",
|
|
54
54
|
"@atlaskit/radio": "^8.4.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": "^
|
|
63
|
+
"@atlaskit/tmp-editor-statsig": "^44.0.0",
|
|
64
64
|
"@atlaskit/toggle": "^15.2.0",
|
|
65
65
|
"@atlaskit/tokens": "^11.1.0",
|
|
66
66
|
"@atlaskit/tooltip": "^21.0.0",
|