@atlaskit/editor-plugin-local-id 2.0.0 → 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 +16 -0
- package/dist/cjs/pm-plugins/main.js +10 -1
- package/dist/es2019/pm-plugins/main.js +10 -1
- package/dist/esm/pm-plugins/main.js +10 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
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
|
+
|
|
11
|
+
## 2.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`6af2b9412a71e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6af2b9412a71e) -
|
|
16
|
+
Ignore local id updates for certain transactions
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 2.0.0
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -84,7 +84,16 @@ 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'))) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
// Ignore local ID updates for certain transactions
|
|
94
|
+
// this is purposely not a public API as we should not use
|
|
95
|
+
// this except in some circumstances (ie. streaming)
|
|
96
|
+
if (transaction.getMeta('ignoreLocalIdUpdate')) {
|
|
88
97
|
return;
|
|
89
98
|
}
|
|
90
99
|
transaction.steps.forEach(function (step) {
|
|
@@ -77,7 +77,16 @@ 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'))) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
// Ignore local ID updates for certain transactions
|
|
87
|
+
// this is purposely not a public API as we should not use
|
|
88
|
+
// this except in some circumstances (ie. streaming)
|
|
89
|
+
if (transaction.getMeta('ignoreLocalIdUpdate')) {
|
|
81
90
|
return;
|
|
82
91
|
}
|
|
83
92
|
transaction.steps.forEach(step => {
|
|
@@ -78,7 +78,16 @@ 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'))) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
// Ignore local ID updates for certain transactions
|
|
88
|
+
// this is purposely not a public API as we should not use
|
|
89
|
+
// this except in some circumstances (ie. streaming)
|
|
90
|
+
if (transaction.getMeta('ignoreLocalIdUpdate')) {
|
|
82
91
|
return;
|
|
83
92
|
}
|
|
84
93
|
transaction.steps.forEach(function (step) {
|
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": {
|