@atlaskit/editor-plugin-local-id 2.0.0 → 2.0.1
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.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6af2b9412a71e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6af2b9412a71e) -
|
|
8
|
+
Ignore local id updates for certain transactions
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 2.0.0
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -87,6 +87,12 @@ var createPlugin = exports.createPlugin = function createPlugin() {
|
|
|
87
87
|
if (transaction.getMeta('uiEvent') === 'cut') {
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
|
+
// Ignore local ID updates for certain transactions
|
|
91
|
+
// this is purposely not a public API as we should not use
|
|
92
|
+
// this except in some circumstances (ie. streaming)
|
|
93
|
+
if (transaction.getMeta('ignoreLocalIdUpdate')) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
90
96
|
transaction.steps.forEach(function (step) {
|
|
91
97
|
if (!(0, _utils.stepHasSlice)(step)) {
|
|
92
98
|
return;
|
|
@@ -80,6 +80,12 @@ export const createPlugin = () => {
|
|
|
80
80
|
if (transaction.getMeta('uiEvent') === 'cut') {
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
83
|
+
// Ignore local ID updates for certain transactions
|
|
84
|
+
// this is purposely not a public API as we should not use
|
|
85
|
+
// this except in some circumstances (ie. streaming)
|
|
86
|
+
if (transaction.getMeta('ignoreLocalIdUpdate')) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
83
89
|
transaction.steps.forEach(step => {
|
|
84
90
|
if (!stepHasSlice(step)) {
|
|
85
91
|
return;
|
|
@@ -81,6 +81,12 @@ export var createPlugin = function createPlugin() {
|
|
|
81
81
|
if (transaction.getMeta('uiEvent') === 'cut') {
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
|
+
// Ignore local ID updates for certain transactions
|
|
85
|
+
// this is purposely not a public API as we should not use
|
|
86
|
+
// this except in some circumstances (ie. streaming)
|
|
87
|
+
if (transaction.getMeta('ignoreLocalIdUpdate')) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
84
90
|
transaction.steps.forEach(function (step) {
|
|
85
91
|
if (!stepHasSlice(step)) {
|
|
86
92
|
return;
|
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.1",
|
|
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.3.0",
|
|
39
39
|
"react": "^18.2.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|