@atlaskit/editor-plugin-extension 1.4.1 → 1.4.3
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
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 1.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#97158](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97158)
|
|
8
|
+
[`5568b03ef792`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5568b03ef792) -
|
|
9
|
+
[ux] EDF-661: Fix AI Panels Undo behaviour during insert flows (revert extension insertion) and
|
|
10
|
+
regenerate flows (revert content changes)
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 1.4.2
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
18
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
19
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
20
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
21
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 1.4.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -176,7 +176,7 @@ var createExtensionAPI = exports.createExtensionAPI = function createExtensionAP
|
|
|
176
176
|
tr = tr.scrollIntoView();
|
|
177
177
|
dispatch(tr);
|
|
178
178
|
},
|
|
179
|
-
update: function update(localId, mutationCallback) {
|
|
179
|
+
update: function update(localId, mutationCallback, opts) {
|
|
180
180
|
var _changedValues$marks;
|
|
181
181
|
var _ensureNodePosByLocal = ensureNodePosByLocalId(localId, {
|
|
182
182
|
opName: 'update'
|
|
@@ -252,6 +252,9 @@ var createExtensionAPI = exports.createExtensionAPI = function createExtensionAP
|
|
|
252
252
|
// Analytics - tracking the api call
|
|
253
253
|
var apiCallPayload = extensionAPICallPayload('update');
|
|
254
254
|
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent(apiCallPayload)(tr);
|
|
255
|
+
if (typeof (opts === null || opts === void 0 ? void 0 : opts.addToHistory) === 'boolean') {
|
|
256
|
+
tr.setMeta('addToHistory', opts.addToHistory);
|
|
257
|
+
}
|
|
255
258
|
dispatch(tr);
|
|
256
259
|
}
|
|
257
260
|
};
|
|
@@ -183,7 +183,7 @@ export const createExtensionAPI = options => {
|
|
|
183
183
|
tr = tr.scrollIntoView();
|
|
184
184
|
dispatch(tr);
|
|
185
185
|
},
|
|
186
|
-
update: (localId, mutationCallback) => {
|
|
186
|
+
update: (localId, mutationCallback, opts) => {
|
|
187
187
|
var _changedValues$marks;
|
|
188
188
|
const {
|
|
189
189
|
node,
|
|
@@ -270,6 +270,9 @@ export const createExtensionAPI = options => {
|
|
|
270
270
|
// Analytics - tracking the api call
|
|
271
271
|
const apiCallPayload = extensionAPICallPayload('update');
|
|
272
272
|
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 ? void 0 : editorAnalyticsAPI.attachAnalyticsEvent(apiCallPayload)(tr);
|
|
273
|
+
if (typeof (opts === null || opts === void 0 ? void 0 : opts.addToHistory) === 'boolean') {
|
|
274
|
+
tr.setMeta('addToHistory', opts.addToHistory);
|
|
275
|
+
}
|
|
273
276
|
dispatch(tr);
|
|
274
277
|
}
|
|
275
278
|
};
|
|
@@ -169,7 +169,7 @@ export var createExtensionAPI = function createExtensionAPI(options) {
|
|
|
169
169
|
tr = tr.scrollIntoView();
|
|
170
170
|
dispatch(tr);
|
|
171
171
|
},
|
|
172
|
-
update: function update(localId, mutationCallback) {
|
|
172
|
+
update: function update(localId, mutationCallback, opts) {
|
|
173
173
|
var _changedValues$marks;
|
|
174
174
|
var _ensureNodePosByLocal = ensureNodePosByLocalId(localId, {
|
|
175
175
|
opName: 'update'
|
|
@@ -245,6 +245,9 @@ export var createExtensionAPI = function createExtensionAPI(options) {
|
|
|
245
245
|
// Analytics - tracking the api call
|
|
246
246
|
var apiCallPayload = extensionAPICallPayload('update');
|
|
247
247
|
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent(apiCallPayload)(tr);
|
|
248
|
+
if (typeof (opts === null || opts === void 0 ? void 0 : opts.addToHistory) === 'boolean') {
|
|
249
|
+
tr.setMeta('addToHistory', opts.addToHistory);
|
|
250
|
+
}
|
|
248
251
|
dispatch(tr);
|
|
249
252
|
}
|
|
250
253
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@atlaskit/adf-schema": "^35.12.2",
|
|
28
|
-
"@atlaskit/adf-utils": "^19.
|
|
28
|
+
"@atlaskit/adf-utils": "^19.1.0",
|
|
29
29
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
30
|
-
"@atlaskit/avatar": "^21.
|
|
30
|
+
"@atlaskit/avatar": "^21.7.0",
|
|
31
31
|
"@atlaskit/button": "^17.14.0",
|
|
32
32
|
"@atlaskit/checkbox": "^13.3.0",
|
|
33
33
|
"@atlaskit/datetime-picker": "^13.5.0",
|
|
34
|
-
"@atlaskit/editor-common": "^79.
|
|
34
|
+
"@atlaskit/editor-common": "^79.2.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.11.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-context-identifier": "^1.1.0",
|
|
@@ -39,24 +39,24 @@
|
|
|
39
39
|
"@atlaskit/editor-plugin-decorations": "^1.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-feature-flags": "^1.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-width": "^1.1.0",
|
|
42
|
-
"@atlaskit/editor-prosemirror": "4.0.
|
|
42
|
+
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
43
43
|
"@atlaskit/editor-shared-styles": "^2.10.0",
|
|
44
44
|
"@atlaskit/editor-tables": "^2.7.0",
|
|
45
45
|
"@atlaskit/empty-state": "^7.8.0",
|
|
46
46
|
"@atlaskit/form": "^9.3.0",
|
|
47
47
|
"@atlaskit/icon": "^22.1.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
49
|
-
"@atlaskit/primitives": "^6.
|
|
49
|
+
"@atlaskit/primitives": "^6.1.0",
|
|
50
50
|
"@atlaskit/radio": "^6.3.0",
|
|
51
51
|
"@atlaskit/section-message": "^6.5.0",
|
|
52
|
-
"@atlaskit/select": "^17.
|
|
52
|
+
"@atlaskit/select": "^17.9.0",
|
|
53
53
|
"@atlaskit/smart-user-picker": "^6.9.0",
|
|
54
54
|
"@atlaskit/spinner": "^16.1.0",
|
|
55
55
|
"@atlaskit/tabs": "^16.1.0",
|
|
56
56
|
"@atlaskit/textarea": "^5.4.0",
|
|
57
57
|
"@atlaskit/textfield": "^6.3.0",
|
|
58
58
|
"@atlaskit/theme": "^12.7.0",
|
|
59
|
-
"@atlaskit/toggle": "^13.
|
|
59
|
+
"@atlaskit/toggle": "^13.1.0",
|
|
60
60
|
"@atlaskit/tokens": "^1.45.0",
|
|
61
61
|
"@atlaskit/tooltip": "^18.3.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|