@atlaskit/editor-plugin-decorations 6.1.4 → 6.1.5
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-decorations
|
|
2
2
|
|
|
3
|
+
## 6.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4d676bbdb3ce6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4d676bbdb3ce6) -
|
|
8
|
+
ts-ignore added temporarily to unblock local consumption for help-center, will be removed once
|
|
9
|
+
project refs are setup
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 6.1.4
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -81,6 +81,7 @@ var _default = exports.default = function _default() {
|
|
|
81
81
|
decoration: undefined
|
|
82
82
|
};
|
|
83
83
|
},
|
|
84
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
84
85
|
apply: function apply(tr, pluginState) {
|
|
85
86
|
if (pluginState.decoration && pluginState.decoration instanceof _view.Decoration) {
|
|
86
87
|
var mapResult = tr.mapping.mapResult(pluginState.decoration.from);
|
|
@@ -91,6 +92,8 @@ var _default = exports.default = function _default() {
|
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
94
|
if (pluginState.decoration && pluginState.decoration instanceof _view.DecorationSet && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true)) {
|
|
95
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
96
|
+
|
|
94
97
|
pluginState.decoration = pluginState.decoration.map(tr.mapping, tr.doc);
|
|
95
98
|
}
|
|
96
99
|
var meta = tr.getMeta(decorationStateKey);
|
|
@@ -114,6 +117,7 @@ var _default = exports.default = function _default() {
|
|
|
114
117
|
}
|
|
115
118
|
},
|
|
116
119
|
props: {
|
|
120
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
117
121
|
decorations: function decorations(state) {
|
|
118
122
|
var doc = state.doc;
|
|
119
123
|
var _ref2 = decorationStateKey.getState(state),
|
|
@@ -73,6 +73,8 @@ export default (() => {
|
|
|
73
73
|
init: () => ({
|
|
74
74
|
decoration: undefined
|
|
75
75
|
}),
|
|
76
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
77
|
+
|
|
76
78
|
apply(tr, pluginState) {
|
|
77
79
|
if (pluginState.decoration && pluginState.decoration instanceof Decoration) {
|
|
78
80
|
const mapResult = tr.mapping.mapResult(pluginState.decoration.from);
|
|
@@ -83,6 +85,8 @@ export default (() => {
|
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
87
|
if (pluginState.decoration && pluginState.decoration instanceof DecorationSet && expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true)) {
|
|
88
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
89
|
+
|
|
86
90
|
pluginState.decoration = pluginState.decoration.map(tr.mapping, tr.doc);
|
|
87
91
|
}
|
|
88
92
|
const meta = tr.getMeta(decorationStateKey);
|
|
@@ -106,6 +110,8 @@ export default (() => {
|
|
|
106
110
|
}
|
|
107
111
|
},
|
|
108
112
|
props: {
|
|
113
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
114
|
+
|
|
109
115
|
decorations(state) {
|
|
110
116
|
const {
|
|
111
117
|
doc
|
|
@@ -75,6 +75,7 @@ export default (function () {
|
|
|
75
75
|
decoration: undefined
|
|
76
76
|
};
|
|
77
77
|
},
|
|
78
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
78
79
|
apply: function apply(tr, pluginState) {
|
|
79
80
|
if (pluginState.decoration && pluginState.decoration instanceof Decoration) {
|
|
80
81
|
var mapResult = tr.mapping.mapResult(pluginState.decoration.from);
|
|
@@ -85,6 +86,8 @@ export default (function () {
|
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
88
|
if (pluginState.decoration && pluginState.decoration instanceof DecorationSet && expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true)) {
|
|
89
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
90
|
+
|
|
88
91
|
pluginState.decoration = pluginState.decoration.map(tr.mapping, tr.doc);
|
|
89
92
|
}
|
|
90
93
|
var meta = tr.getMeta(decorationStateKey);
|
|
@@ -108,6 +111,7 @@ export default (function () {
|
|
|
108
111
|
}
|
|
109
112
|
},
|
|
110
113
|
props: {
|
|
114
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
111
115
|
decorations: function decorations(state) {
|
|
112
116
|
var doc = state.doc;
|
|
113
117
|
var _ref2 = decorationStateKey.getState(state),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-decorations",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.5",
|
|
4
4
|
"description": "Decorations plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
23
23
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
24
24
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
25
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
26
|
-
"@atlaskit/tokens": "^8.
|
|
25
|
+
"@atlaskit/tmp-editor-statsig": "^13.42.0",
|
|
26
|
+
"@atlaskit/tokens": "^8.3.0",
|
|
27
27
|
"@babel/runtime": "^7.0.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@atlaskit/editor-common": "^110.
|
|
30
|
+
"@atlaskit/editor-common": "^110.34.0",
|
|
31
31
|
"react": "^18.2.0",
|
|
32
32
|
"react-dom": "^18.2.0"
|
|
33
33
|
},
|