@atlaskit/editor-plugin-local-id 2.0.1 → 2.0.2
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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-local-id
|
|
2
2
|
|
|
3
|
+
## 2.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2e3c46a7095f7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2e3c46a7095f7) -
|
|
8
|
+
Ignore remote transactions for appending local id transactions
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 2.0.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -84,7 +84,10 @@ var createPlugin = exports.createPlugin = function createPlugin() {
|
|
|
84
84
|
if (!transaction.docChanged) {
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
|
-
if (transaction.getMeta('uiEvent') === 'cut'
|
|
87
|
+
if (transaction.getMeta('uiEvent') === 'cut' ||
|
|
88
|
+
// We skip remote transactions as we don't want to affect transactions created
|
|
89
|
+
// by other users
|
|
90
|
+
Boolean(transaction.getMeta('isRemote'))) {
|
|
88
91
|
return;
|
|
89
92
|
}
|
|
90
93
|
// Ignore local ID updates for certain transactions
|
|
@@ -77,7 +77,10 @@ export const createPlugin = () => {
|
|
|
77
77
|
if (!transaction.docChanged) {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
|
-
if (transaction.getMeta('uiEvent') === 'cut'
|
|
80
|
+
if (transaction.getMeta('uiEvent') === 'cut' ||
|
|
81
|
+
// We skip remote transactions as we don't want to affect transactions created
|
|
82
|
+
// by other users
|
|
83
|
+
Boolean(transaction.getMeta('isRemote'))) {
|
|
81
84
|
return;
|
|
82
85
|
}
|
|
83
86
|
// Ignore local ID updates for certain transactions
|
|
@@ -78,7 +78,10 @@ export var createPlugin = function createPlugin() {
|
|
|
78
78
|
if (!transaction.docChanged) {
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
|
-
if (transaction.getMeta('uiEvent') === 'cut'
|
|
81
|
+
if (transaction.getMeta('uiEvent') === 'cut' ||
|
|
82
|
+
// We skip remote transactions as we don't want to affect transactions created
|
|
83
|
+
// by other users
|
|
84
|
+
Boolean(transaction.getMeta('isRemote'))) {
|
|
82
85
|
return;
|
|
83
86
|
}
|
|
84
87
|
// Ignore local ID updates for certain transactions
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-local-id",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "LocalId plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"raf-schd": "^4.0.3"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@atlaskit/editor-common": "^108.
|
|
38
|
+
"@atlaskit/editor-common": "^108.7.0",
|
|
39
39
|
"react": "^18.2.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|