@atlaskit/editor-plugin-extension 13.5.8 → 13.5.9
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 +8 -0
- package/dist/cjs/editor-actions/actions.js +16 -16
- package/dist/cjs/pm-plugins/macro/actions.js +21 -21
- package/dist/cjs/pm-plugins/main.js +22 -22
- package/dist/cjs/pm-plugins/toolbar.js +15 -13
- package/dist/cjs/pm-plugins/update-edit-button.js +16 -16
- package/dist/cjs/pm-plugins/utils.js +36 -36
- package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +30 -30
- package/dist/cjs/ui/ConfigPanel/Fields/CustomSelect.js +17 -17
- package/dist/cjs/ui/ConfigPanel/Fields/UserSelect.js +20 -20
- package/dist/cjs/ui/ConfigPanel/FormErrorBoundary.js +7 -7
- package/dist/cjs/ui/ConfigPanel/transformers.js +108 -107
- package/dist/cjs/ui/context-panel.js +34 -33
- package/dist/cjs/ui/useConfigPanelPluginHook.js +25 -25
- package/dist/es2019/pm-plugins/toolbar.js +10 -7
- package/dist/esm/editor-actions/actions.js +16 -16
- package/dist/esm/pm-plugins/macro/actions.js +21 -21
- package/dist/esm/pm-plugins/main.js +22 -22
- package/dist/esm/pm-plugins/toolbar.js +15 -13
- package/dist/esm/pm-plugins/update-edit-button.js +16 -16
- package/dist/esm/pm-plugins/utils.js +36 -36
- package/dist/esm/ui/ConfigPanel/ConfigPanel.js +29 -29
- package/dist/esm/ui/ConfigPanel/Fields/CustomSelect.js +16 -16
- package/dist/esm/ui/ConfigPanel/Fields/UserSelect.js +19 -19
- package/dist/esm/ui/ConfigPanel/FormErrorBoundary.js +7 -7
- package/dist/esm/ui/ConfigPanel/transformers.js +108 -107
- package/dist/esm/ui/context-panel.js +34 -33
- package/dist/esm/ui/useConfigPanelPluginHook.js +24 -24
- package/package.json +6 -6
|
@@ -117,15 +117,15 @@ export function showConfigPanel(_ref2) {
|
|
|
117
117
|
canClosePanel: function () {
|
|
118
118
|
var _canClosePanel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
119
119
|
var extensionState;
|
|
120
|
-
return _regeneratorRuntime.wrap(function
|
|
120
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
121
121
|
while (1) switch (_context.prev = _context.next) {
|
|
122
122
|
case 0:
|
|
123
123
|
if (!editorView.isDestroyed) {
|
|
124
|
-
_context.next =
|
|
124
|
+
_context.next = 1;
|
|
125
125
|
break;
|
|
126
126
|
}
|
|
127
127
|
return _context.abrupt("return", true);
|
|
128
|
-
case
|
|
128
|
+
case 1:
|
|
129
129
|
extensionState = getPluginState(editorView.state);
|
|
130
130
|
/**
|
|
131
131
|
* If context panel is open, then first update extension plugin state.
|
|
@@ -133,19 +133,19 @@ export function showConfigPanel(_ref2) {
|
|
|
133
133
|
* which will call hideConfigPanel.
|
|
134
134
|
*/
|
|
135
135
|
if (!(extensionState !== null && extensionState !== void 0 && extensionState.showContextPanel)) {
|
|
136
|
-
_context.next =
|
|
136
|
+
_context.next = 3;
|
|
137
137
|
break;
|
|
138
138
|
}
|
|
139
|
-
_context.next =
|
|
139
|
+
_context.next = 2;
|
|
140
140
|
return startClosingConfigPanel({
|
|
141
141
|
api: api,
|
|
142
142
|
editorView: editorView
|
|
143
143
|
});
|
|
144
|
-
case
|
|
144
|
+
case 2:
|
|
145
145
|
return _context.abrupt("return", false);
|
|
146
|
-
case
|
|
146
|
+
case 3:
|
|
147
147
|
return _context.abrupt("return", true);
|
|
148
|
-
case
|
|
148
|
+
case 4:
|
|
149
149
|
case "end":
|
|
150
150
|
return _context.stop();
|
|
151
151
|
}
|
|
@@ -166,32 +166,32 @@ export function startClosingConfigPanel(_x) {
|
|
|
166
166
|
function _startClosingConfigPanel() {
|
|
167
167
|
_startClosingConfigPanel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_ref3) {
|
|
168
168
|
var _api$contextPanel3;
|
|
169
|
-
var api, editorView, applyChange;
|
|
170
|
-
return _regeneratorRuntime.wrap(function
|
|
169
|
+
var api, editorView, applyChange, _t;
|
|
170
|
+
return _regeneratorRuntime.wrap(function (_context3) {
|
|
171
171
|
while (1) switch (_context3.prev = _context3.next) {
|
|
172
172
|
case 0:
|
|
173
173
|
api = _ref3.api, editorView = _ref3.editorView;
|
|
174
174
|
applyChange = api === null || api === void 0 || (_api$contextPanel3 = api.contextPanel) === null || _api$contextPanel3 === void 0 ? void 0 : _api$contextPanel3.actions.applyChange; // Even if the save failed, we should proceed with closing the panel
|
|
175
175
|
clearEditingContext(applyChange)(editorView.state, editorView.dispatch);
|
|
176
|
-
_context3.prev =
|
|
177
|
-
_context3.next =
|
|
176
|
+
_context3.prev = 1;
|
|
177
|
+
_context3.next = 2;
|
|
178
178
|
return new Promise(function (resolve, reject) {
|
|
179
179
|
forceAutoSave(applyChange)(resolve, reject)(editorView.state, editorView.dispatch);
|
|
180
180
|
});
|
|
181
|
-
case
|
|
182
|
-
_context3.next =
|
|
181
|
+
case 2:
|
|
182
|
+
_context3.next = 4;
|
|
183
183
|
break;
|
|
184
|
-
case
|
|
185
|
-
_context3.prev =
|
|
186
|
-
|
|
184
|
+
case 3:
|
|
185
|
+
_context3.prev = 3;
|
|
186
|
+
_t = _context3["catch"](1);
|
|
187
187
|
// Even if the save failed, we should proceed with closing the panel
|
|
188
188
|
// eslint-disable-next-line no-console
|
|
189
|
-
console.error("Autosave failed with error",
|
|
190
|
-
case
|
|
189
|
+
console.error("Autosave failed with error", _t);
|
|
190
|
+
case 4:
|
|
191
191
|
case "end":
|
|
192
192
|
return _context3.stop();
|
|
193
193
|
}
|
|
194
|
-
}, _callee3, null, [[
|
|
194
|
+
}, _callee3, null, [[1, 3]]);
|
|
195
195
|
}));
|
|
196
196
|
return _startClosingConfigPanel.apply(this, arguments);
|
|
197
197
|
}
|
|
@@ -241,17 +241,17 @@ export var getContextPanelBodyComponent = function getContextPanelBodyComponent(
|
|
|
241
241
|
,
|
|
242
242
|
onChange: ( /*#__PURE__*/function () {
|
|
243
243
|
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(updatedParameters) {
|
|
244
|
-
return _regeneratorRuntime.wrap(function
|
|
244
|
+
return _regeneratorRuntime.wrap(function (_context2) {
|
|
245
245
|
while (1) switch (_context2.prev = _context2.next) {
|
|
246
246
|
case 0:
|
|
247
|
-
_context2.next =
|
|
247
|
+
_context2.next = 1;
|
|
248
248
|
return onChangeAction(editorView, updatedParameters, parameters, nodeWithPos, onSaveStarted);
|
|
249
|
-
case
|
|
249
|
+
case 1:
|
|
250
250
|
onSaveEnded();
|
|
251
251
|
if (autoSaveResolve) {
|
|
252
252
|
autoSaveResolve();
|
|
253
253
|
}
|
|
254
|
-
case
|
|
254
|
+
case 2:
|
|
255
255
|
case "end":
|
|
256
256
|
return _context2.stop();
|
|
257
257
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "13.5.
|
|
3
|
+
"version": "13.5.9",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
],
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/adf-schema": "^52.
|
|
25
|
-
"@atlaskit/adf-utils": "^19.
|
|
24
|
+
"@atlaskit/adf-schema": "^52.15.0",
|
|
25
|
+
"@atlaskit/adf-utils": "^19.32.0",
|
|
26
26
|
"@atlaskit/analytics-next": "^11.2.0",
|
|
27
27
|
"@atlaskit/avatar": "^25.15.0",
|
|
28
28
|
"@atlaskit/browser-apis": "^0.0.2",
|
|
29
29
|
"@atlaskit/button": "^23.11.0",
|
|
30
30
|
"@atlaskit/checkbox": "^17.3.0",
|
|
31
31
|
"@atlaskit/datetime-picker": "^17.8.0",
|
|
32
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
32
|
+
"@atlaskit/editor-json-transformer": "^8.33.0",
|
|
33
33
|
"@atlaskit/editor-plugin-analytics": "^10.1.0",
|
|
34
34
|
"@atlaskit/editor-plugin-connectivity": "^10.1.0",
|
|
35
35
|
"@atlaskit/editor-plugin-context-identifier": "^10.1.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@atlaskit/tabs": "^19.1.0",
|
|
60
60
|
"@atlaskit/textarea": "^8.3.0",
|
|
61
61
|
"@atlaskit/textfield": "^8.3.0",
|
|
62
|
-
"@atlaskit/tmp-editor-statsig": "^84.
|
|
62
|
+
"@atlaskit/tmp-editor-statsig": "^84.3.0",
|
|
63
63
|
"@atlaskit/toggle": "^16.0.0",
|
|
64
64
|
"@atlaskit/tokens": "^13.0.0",
|
|
65
65
|
"@atlaskit/tooltip": "^22.3.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"uuid": "^3.1.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@atlaskit/editor-common": "^114.
|
|
76
|
+
"@atlaskit/editor-common": "^114.49.0",
|
|
77
77
|
"react": "^18.2.0",
|
|
78
78
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
79
79
|
},
|