@atlaskit/editor-plugin-selection-extension 13.3.1 → 13.3.3

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-selection-extension
2
2
 
3
+ ## 13.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 13.3.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`6aa28179246c9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6aa28179246c9) -
14
+ Support data-extension-item-key to identify the selection extension menu items.
15
+ - Updated dependencies
16
+
3
17
  ## 13.3.1
4
18
 
5
19
  ### Patch Changes
@@ -117,7 +117,8 @@ var SelectionExtensionDropdownItem = exports.SelectionExtensionDropdownItem = fu
117
117
  elemAfterText: elemAfterText,
118
118
  onClick: handleClick,
119
119
  isDisabled: dropdownItem.isDisabled,
120
- testId: _blockMenu.EXTENSION_MENU_ITEM_TEST_ID
120
+ testId: _blockMenu.EXTENSION_MENU_ITEM_TEST_ID,
121
+ "data-extension-item-key": dropdownItem.key
121
122
  }, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
122
123
  as: "span",
123
124
  xcss: !elemAfterText && (0, _platformFeatureFlags.fg)('platform_editor_block_menu_v2_patch_5') ? styles.contentWrapperWithJustifyContent : styles.contentWrapper,
@@ -135,7 +136,8 @@ var SelectionExtensionDropdownItem = exports.SelectionExtensionDropdownItem = fu
135
136
  elemBefore: elemBeforeIcon,
136
137
  onClick: handleClick,
137
138
  isDisabled: dropdownItem.isDisabled,
138
- testId: _blockMenu.EXTENSION_MENU_ITEM_TEST_ID
139
+ testId: _blockMenu.EXTENSION_MENU_ITEM_TEST_ID,
140
+ "data-extension-item-key": dropdownItem.key
139
141
  }, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
140
142
  as: "span",
141
143
  xcss: (0, _platformFeatureFlags.fg)('platform_editor_block_menu_v2_patch_5') ? styles.contentWrapperWithJustifyContent : styles.contentWrapper,
@@ -78,7 +78,8 @@ var SelectionExtensionNestedDropdownMenu = exports.SelectionExtensionNestedDropd
78
78
  onClick: handleClick,
79
79
  dropdownTestId: "editor-selection-extension-menu",
80
80
  shouldTitleWrap: false,
81
- tooltipContent: nestedDropdownMenu.label
81
+ tooltipContent: nestedDropdownMenu.label,
82
+ "data-extension-item-key": nestedDropdownMenu.key
82
83
  }, /*#__PURE__*/_react.default.createElement(ChildItems, {
83
84
  nestedDropdownMenu: nestedDropdownMenu
84
85
  }));
@@ -108,7 +108,8 @@ export const SelectionExtensionDropdownItem = ({
108
108
  elemAfterText: elemAfterText,
109
109
  onClick: handleClick,
110
110
  isDisabled: dropdownItem.isDisabled,
111
- testId: EXTENSION_MENU_ITEM_TEST_ID
111
+ testId: EXTENSION_MENU_ITEM_TEST_ID,
112
+ "data-extension-item-key": dropdownItem.key
112
113
  }, /*#__PURE__*/React.createElement(Box, {
113
114
  as: "span",
114
115
  xcss: !elemAfterText && fg('platform_editor_block_menu_v2_patch_5') ? styles.contentWrapperWithJustifyContent : styles.contentWrapper,
@@ -126,7 +127,8 @@ export const SelectionExtensionDropdownItem = ({
126
127
  elemBefore: elemBeforeIcon,
127
128
  onClick: handleClick,
128
129
  isDisabled: dropdownItem.isDisabled,
129
- testId: EXTENSION_MENU_ITEM_TEST_ID
130
+ testId: EXTENSION_MENU_ITEM_TEST_ID,
131
+ "data-extension-item-key": dropdownItem.key
130
132
  }, /*#__PURE__*/React.createElement(Box, {
131
133
  as: "span",
132
134
  xcss: fg('platform_editor_block_menu_v2_patch_5') ? styles.contentWrapperWithJustifyContent : styles.contentWrapper,
@@ -72,7 +72,8 @@ export const SelectionExtensionNestedDropdownMenu = ({
72
72
  onClick: handleClick,
73
73
  dropdownTestId: "editor-selection-extension-menu",
74
74
  shouldTitleWrap: false,
75
- tooltipContent: nestedDropdownMenu.label
75
+ tooltipContent: nestedDropdownMenu.label,
76
+ "data-extension-item-key": nestedDropdownMenu.key
76
77
  }, /*#__PURE__*/React.createElement(ChildItems, {
77
78
  nestedDropdownMenu: nestedDropdownMenu
78
79
  }));
@@ -108,7 +108,8 @@ export var SelectionExtensionDropdownItem = function SelectionExtensionDropdownI
108
108
  elemAfterText: elemAfterText,
109
109
  onClick: handleClick,
110
110
  isDisabled: dropdownItem.isDisabled,
111
- testId: EXTENSION_MENU_ITEM_TEST_ID
111
+ testId: EXTENSION_MENU_ITEM_TEST_ID,
112
+ "data-extension-item-key": dropdownItem.key
112
113
  }, /*#__PURE__*/React.createElement(Box, {
113
114
  as: "span",
114
115
  xcss: !elemAfterText && fg('platform_editor_block_menu_v2_patch_5') ? styles.contentWrapperWithJustifyContent : styles.contentWrapper,
@@ -126,7 +127,8 @@ export var SelectionExtensionDropdownItem = function SelectionExtensionDropdownI
126
127
  elemBefore: elemBeforeIcon,
127
128
  onClick: handleClick,
128
129
  isDisabled: dropdownItem.isDisabled,
129
- testId: EXTENSION_MENU_ITEM_TEST_ID
130
+ testId: EXTENSION_MENU_ITEM_TEST_ID,
131
+ "data-extension-item-key": dropdownItem.key
130
132
  }, /*#__PURE__*/React.createElement(Box, {
131
133
  as: "span",
132
134
  xcss: fg('platform_editor_block_menu_v2_patch_5') ? styles.contentWrapperWithJustifyContent : styles.contentWrapper,
@@ -71,7 +71,8 @@ export var SelectionExtensionNestedDropdownMenu = function SelectionExtensionNes
71
71
  onClick: handleClick,
72
72
  dropdownTestId: "editor-selection-extension-menu",
73
73
  shouldTitleWrap: false,
74
- tooltipContent: nestedDropdownMenu.label
74
+ tooltipContent: nestedDropdownMenu.label,
75
+ "data-extension-item-key": nestedDropdownMenu.key
75
76
  }, /*#__PURE__*/React.createElement(ChildItems, {
76
77
  nestedDropdownMenu: nestedDropdownMenu
77
78
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-extension",
3
- "version": "13.3.1",
3
+ "version": "13.3.3",
4
4
  "description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -48,18 +48,18 @@
48
48
  "@atlaskit/editor-shared-styles": "^3.11.0",
49
49
  "@atlaskit/editor-tables": "^2.10.0",
50
50
  "@atlaskit/editor-toolbar": "^1.5.0",
51
- "@atlaskit/icon": "^34.5.0",
51
+ "@atlaskit/icon": "^35.0.0",
52
52
  "@atlaskit/lozenge": "^13.8.0",
53
53
  "@atlaskit/platform-feature-flags": "^1.1.0",
54
54
  "@atlaskit/primitives": "^19.0.0",
55
- "@atlaskit/tmp-editor-statsig": "^81.0.0",
55
+ "@atlaskit/tmp-editor-statsig": "^81.1.0",
56
56
  "@atlaskit/tokens": "^13.0.0",
57
57
  "@babel/runtime": "^7.0.0",
58
58
  "lodash": "^4.17.21",
59
59
  "uuid": "^3.1.0"
60
60
  },
61
61
  "peerDependencies": {
62
- "@atlaskit/editor-common": "^114.32.0",
62
+ "@atlaskit/editor-common": "^114.35.0",
63
63
  "react": "^18.2.0",
64
64
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
65
65
  },