@atlaskit/editor-plugin-decorations 6.1.6 → 6.1.7
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 +8 -0
- package/dist/cjs/pm-plugins/commands.js +1 -1
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/es2019/pm-plugins/commands.js +1 -1
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/esm/pm-plugins/commands.js +1 -1
- package/dist/esm/pm-plugins/main.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-decorations
|
|
2
2
|
|
|
3
|
+
## 6.1.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7583860e8637f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7583860e8637f) -
|
|
8
|
+
EDITOR-3621 Clean up platform_editor_block_menu_keyboard_navigation feature gate
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 6.1.6
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -100,7 +100,7 @@ var hoverDecorationCommand = exports.hoverDecorationCommand = function hoverDeco
|
|
|
100
100
|
tr.setMeta(_main.decorationStateKey, {
|
|
101
101
|
action: add ? _main.ACTIONS.DECORATION_ADD : _main.ACTIONS.DECORATION_REMOVE,
|
|
102
102
|
data: decoration,
|
|
103
|
-
hasDangerDecorations: (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true)
|
|
103
|
+
hasDangerDecorations: (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true) ? className === 'danger' : undefined
|
|
104
104
|
}).setMeta('addToHistory', false);
|
|
105
105
|
return tr;
|
|
106
106
|
};
|
|
@@ -104,7 +104,7 @@ var _default = exports.default = function _default() {
|
|
|
104
104
|
case ACTIONS.DECORATION_ADD:
|
|
105
105
|
return {
|
|
106
106
|
decoration: meta.data,
|
|
107
|
-
hasDangerDecorations: (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true)
|
|
107
|
+
hasDangerDecorations: (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true) ? meta.hasDangerDecorations : undefined
|
|
108
108
|
};
|
|
109
109
|
case ACTIONS.DECORATION_REMOVE:
|
|
110
110
|
return {
|
|
@@ -88,7 +88,7 @@ export const hoverDecorationCommand = ({
|
|
|
88
88
|
tr.setMeta(decorationStateKey, {
|
|
89
89
|
action: add ? ACTIONS.DECORATION_ADD : ACTIONS.DECORATION_REMOVE,
|
|
90
90
|
data: decoration,
|
|
91
|
-
hasDangerDecorations: expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true)
|
|
91
|
+
hasDangerDecorations: expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) ? className === 'danger' : undefined
|
|
92
92
|
}).setMeta('addToHistory', false);
|
|
93
93
|
return tr;
|
|
94
94
|
};
|
|
@@ -97,7 +97,7 @@ export default (() => {
|
|
|
97
97
|
case ACTIONS.DECORATION_ADD:
|
|
98
98
|
return {
|
|
99
99
|
decoration: meta.data,
|
|
100
|
-
hasDangerDecorations: expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true)
|
|
100
|
+
hasDangerDecorations: expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) ? meta.hasDangerDecorations : undefined
|
|
101
101
|
};
|
|
102
102
|
case ACTIONS.DECORATION_REMOVE:
|
|
103
103
|
return {
|
|
@@ -93,7 +93,7 @@ export var hoverDecorationCommand = function hoverDecorationCommand(_ref) {
|
|
|
93
93
|
tr.setMeta(decorationStateKey, {
|
|
94
94
|
action: add ? ACTIONS.DECORATION_ADD : ACTIONS.DECORATION_REMOVE,
|
|
95
95
|
data: decoration,
|
|
96
|
-
hasDangerDecorations: expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true)
|
|
96
|
+
hasDangerDecorations: expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) ? className === 'danger' : undefined
|
|
97
97
|
}).setMeta('addToHistory', false);
|
|
98
98
|
return tr;
|
|
99
99
|
};
|
|
@@ -98,7 +98,7 @@ export default (function () {
|
|
|
98
98
|
case ACTIONS.DECORATION_ADD:
|
|
99
99
|
return {
|
|
100
100
|
decoration: meta.data,
|
|
101
|
-
hasDangerDecorations: expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true)
|
|
101
|
+
hasDangerDecorations: expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) ? meta.hasDangerDecorations : undefined
|
|
102
102
|
};
|
|
103
103
|
case ACTIONS.DECORATION_REMOVE:
|
|
104
104
|
return {
|
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.7",
|
|
4
4
|
"description": "Decorations plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
23
23
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
24
|
-
"@atlaskit/tmp-editor-statsig": "^14.
|
|
24
|
+
"@atlaskit/tmp-editor-statsig": "^14.1.0",
|
|
25
25
|
"@atlaskit/tokens": "^8.4.0",
|
|
26
26
|
"@babel/runtime": "^7.0.0"
|
|
27
27
|
},
|