@atlaskit/editor-plugin-decorations 6.1.5 → 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 CHANGED
@@ -1,5 +1,19 @@
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
+
11
+ ## 6.1.6
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 6.1.5
4
18
 
5
19
  ### 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) && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu_keyboard_navigation', 'isEnabled', true) ? className === 'danger' : undefined
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) && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu_keyboard_navigation', 'isEnabled', true) ? meta.hasDangerDecorations : undefined
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) && expValEqualsNoExposure('platform_editor_block_menu_keyboard_navigation', 'isEnabled', true) ? className === 'danger' : undefined
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) && expValEqualsNoExposure('platform_editor_block_menu_keyboard_navigation', 'isEnabled', true) ? meta.hasDangerDecorations : undefined
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) && expValEqualsNoExposure('platform_editor_block_menu_keyboard_navigation', 'isEnabled', true) ? className === 'danger' : undefined
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) && expValEqualsNoExposure('platform_editor_block_menu_keyboard_navigation', 'isEnabled', true) ? meta.hasDangerDecorations : undefined
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.5",
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,18 +21,16 @@
21
21
  "dependencies": {
22
22
  "@atlaskit/editor-prosemirror": "7.0.0",
23
23
  "@atlaskit/editor-tables": "^2.9.0",
24
- "@atlaskit/platform-feature-flags": "^1.1.0",
25
- "@atlaskit/tmp-editor-statsig": "^13.42.0",
26
- "@atlaskit/tokens": "^8.3.0",
24
+ "@atlaskit/tmp-editor-statsig": "^14.1.0",
25
+ "@atlaskit/tokens": "^8.4.0",
27
26
  "@babel/runtime": "^7.0.0"
28
27
  },
29
28
  "peerDependencies": {
30
- "@atlaskit/editor-common": "^110.34.0",
29
+ "@atlaskit/editor-common": "^110.36.0",
31
30
  "react": "^18.2.0",
32
31
  "react-dom": "^18.2.0"
33
32
  },
34
33
  "devDependencies": {
35
- "@atlaskit/editor-plugin-mentions": "^8.2.0",
36
34
  "@testing-library/react": "^13.4.0",
37
35
  "wait-for-expect": "^1.2.0"
38
36
  },