@atlaskit/editor-plugin-selection-extension 11.1.6 → 11.1.8

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,17 @@
1
1
  # @atlaskit/editor-plugin-selection-extension
2
2
 
3
+ ## 11.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 11.1.7
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 11.1.6
4
16
 
5
17
  ### Patch Changes
@@ -72,9 +72,9 @@ var LegacyExtensionToolbarItem = exports.LegacyExtensionToolbarItem = function L
72
72
  var handleOnOpenChange = function handleOnOpenChange(attrs) {
73
73
  setIsOpen(!!(attrs !== null && attrs !== void 0 && attrs.isOpen));
74
74
  };
75
- var items = isOpen
75
+ var items = isOpen ?
76
76
  // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
77
- ? getMenuItems().map(function (menuItem, i) {
77
+ getMenuItems().map(function (menuItem, i) {
78
78
  // Only process ExtensionMenuItemConfiguration, skip ExtensionMenuSectionConfiguration
79
79
  if ('label' in menuItem && 'icon' in menuItem) {
80
80
  return {
@@ -101,12 +101,12 @@ var LegacyExtensionToolbarItem = exports.LegacyExtensionToolbarItem = function L
101
101
  return item !== undefined;
102
102
  }) : [];
103
103
  return /*#__PURE__*/_react.default.createElement(_uiMenu.DropdownMenuWithKeyboardNavigation
104
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
104
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
105
105
  , {
106
106
  arrowKeyNavigationProviderOptions: {
107
107
  type: _uiMenu.ArrowKeyNavigationType.MENU
108
108
  }
109
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
109
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
110
110
  ,
111
111
  items: [{
112
112
  items: items
@@ -22,7 +22,7 @@ var SelectionExtensionDropdownMenuComponent = /*#__PURE__*/_react.default.memo(f
22
22
  isMenuOpen = _useState2[0],
23
23
  setIsMenuOpen = _useState2[1];
24
24
  return /*#__PURE__*/_react.default.createElement(_uiMenu.DropdownMenuWithKeyboardNavigation
25
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
25
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
26
26
  , {
27
27
  section: {
28
28
  hasSeparator: true
@@ -36,7 +36,7 @@ var SelectionExtensionDropdownMenuComponent = /*#__PURE__*/_react.default.memo(f
36
36
  }, /*#__PURE__*/_react.default.createElement(_SelectionExtensionDropdownMenuButton.SelectionExtensionDropdownMenuButton, {
37
37
  "aria-expanded": isMenuOpen,
38
38
  selected: isMenuOpen
39
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
39
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
40
40
  ,
41
41
  onClick: function onClick() {
42
42
  return setIsMenuOpen(function (prevIsMenuOpen) {
@@ -24,7 +24,7 @@ var InlineToolbarMenuItemComponent = function InlineToolbarMenuItemComponent(_re
24
24
  return null;
25
25
  }
26
26
  return /*#__PURE__*/_react.default.createElement(_SelectionExtensionComponentContext.SelectionExtensionComponentContextProvider
27
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
27
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
28
28
  , {
29
29
  value: {
30
30
  api: api,
@@ -44,7 +44,7 @@ function registerBlockMenuItems(_ref) {
44
44
  return null;
45
45
  }
46
46
  return /*#__PURE__*/_react.default.createElement(_SelectionExtensionComponentContext.SelectionExtensionComponentContextProvider
47
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
47
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
48
48
  , {
49
49
  value: {
50
50
  api: api,
@@ -76,7 +76,7 @@ function registerBlockMenuItems(_ref) {
76
76
  return null;
77
77
  }
78
78
  return /*#__PURE__*/_react.default.createElement(_SelectionExtensionComponentContext.SelectionExtensionComponentContextProvider
79
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
79
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
80
80
  , {
81
81
  value: {
82
82
  api: api,
@@ -61,9 +61,9 @@ export const LegacyExtensionToolbarItem = ({
61
61
  const handleOnOpenChange = attrs => {
62
62
  setIsOpen(!!(attrs !== null && attrs !== void 0 && attrs.isOpen));
63
63
  };
64
- const items = isOpen
64
+ const items = isOpen ?
65
65
  // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
66
- ? getMenuItems().map((menuItem, i) => {
66
+ getMenuItems().map((menuItem, i) => {
67
67
  // Only process ExtensionMenuItemConfiguration, skip ExtensionMenuSectionConfiguration
68
68
  if ('label' in menuItem && 'icon' in menuItem) {
69
69
  return {
@@ -88,12 +88,12 @@ export const LegacyExtensionToolbarItem = ({
88
88
  return undefined;
89
89
  }).filter(item => item !== undefined) : [];
90
90
  return /*#__PURE__*/React.createElement(DropdownMenu
91
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
91
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
92
92
  , {
93
93
  arrowKeyNavigationProviderOptions: {
94
94
  type: ArrowKeyNavigationType.MENU
95
95
  }
96
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
96
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
97
97
  ,
98
98
  items: [{
99
99
  items
@@ -10,7 +10,7 @@ const SelectionExtensionDropdownMenuComponent = /*#__PURE__*/React.memo(({
10
10
  }) => {
11
11
  const [isMenuOpen, setIsMenuOpen] = useState(false);
12
12
  return /*#__PURE__*/React.createElement(DropdownMenu
13
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
13
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
14
14
  , {
15
15
  section: {
16
16
  hasSeparator: true
@@ -24,7 +24,7 @@ const SelectionExtensionDropdownMenuComponent = /*#__PURE__*/React.memo(({
24
24
  }, /*#__PURE__*/React.createElement(SelectionExtensionDropdownMenuButton, {
25
25
  "aria-expanded": isMenuOpen,
26
26
  selected: isMenuOpen
27
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
27
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
28
28
  ,
29
29
  onClick: () => setIsMenuOpen(prevIsMenuOpen => {
30
30
  const nextIsMenuOpen = !prevIsMenuOpen;
@@ -19,7 +19,7 @@ const InlineToolbarMenuItemComponent = ({
19
19
  return null;
20
20
  }
21
21
  return /*#__PURE__*/React.createElement(SelectionExtensionComponentContextProvider
22
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
22
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
23
23
  , {
24
24
  value: {
25
25
  api,
@@ -39,7 +39,7 @@ export function registerBlockMenuItems({
39
39
  return null;
40
40
  }
41
41
  return /*#__PURE__*/React.createElement(SelectionExtensionComponentContextProvider
42
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
42
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
43
43
  , {
44
44
  value: {
45
45
  api,
@@ -69,7 +69,7 @@ export function registerBlockMenuItems({
69
69
  return null;
70
70
  }
71
71
  return /*#__PURE__*/React.createElement(SelectionExtensionComponentContextProvider
72
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
72
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
73
73
  , {
74
74
  value: {
75
75
  api,
@@ -63,9 +63,9 @@ export var LegacyExtensionToolbarItem = function LegacyExtensionToolbarItem(_ref
63
63
  var handleOnOpenChange = function handleOnOpenChange(attrs) {
64
64
  setIsOpen(!!(attrs !== null && attrs !== void 0 && attrs.isOpen));
65
65
  };
66
- var items = isOpen
66
+ var items = isOpen ?
67
67
  // eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
68
- ? getMenuItems().map(function (menuItem, i) {
68
+ getMenuItems().map(function (menuItem, i) {
69
69
  // Only process ExtensionMenuItemConfiguration, skip ExtensionMenuSectionConfiguration
70
70
  if ('label' in menuItem && 'icon' in menuItem) {
71
71
  return {
@@ -92,12 +92,12 @@ export var LegacyExtensionToolbarItem = function LegacyExtensionToolbarItem(_ref
92
92
  return item !== undefined;
93
93
  }) : [];
94
94
  return /*#__PURE__*/React.createElement(DropdownMenu
95
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
95
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
96
96
  , {
97
97
  arrowKeyNavigationProviderOptions: {
98
98
  type: ArrowKeyNavigationType.MENU
99
99
  }
100
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
100
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
101
101
  ,
102
102
  items: [{
103
103
  items: items
@@ -13,7 +13,7 @@ var SelectionExtensionDropdownMenuComponent = /*#__PURE__*/React.memo(function (
13
13
  isMenuOpen = _useState2[0],
14
14
  setIsMenuOpen = _useState2[1];
15
15
  return /*#__PURE__*/React.createElement(DropdownMenu
16
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
16
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
17
17
  , {
18
18
  section: {
19
19
  hasSeparator: true
@@ -27,7 +27,7 @@ var SelectionExtensionDropdownMenuComponent = /*#__PURE__*/React.memo(function (
27
27
  }, /*#__PURE__*/React.createElement(SelectionExtensionDropdownMenuButton, {
28
28
  "aria-expanded": isMenuOpen,
29
29
  selected: isMenuOpen
30
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
30
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
31
31
  ,
32
32
  onClick: function onClick() {
33
33
  return setIsMenuOpen(function (prevIsMenuOpen) {
@@ -17,7 +17,7 @@ var InlineToolbarMenuItemComponent = function InlineToolbarMenuItemComponent(_re
17
17
  return null;
18
18
  }
19
19
  return /*#__PURE__*/React.createElement(SelectionExtensionComponentContextProvider
20
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
20
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
21
21
  , {
22
22
  value: {
23
23
  api: api,
@@ -37,7 +37,7 @@ export function registerBlockMenuItems(_ref) {
37
37
  return null;
38
38
  }
39
39
  return /*#__PURE__*/React.createElement(SelectionExtensionComponentContextProvider
40
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
40
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
41
41
  , {
42
42
  value: {
43
43
  api: api,
@@ -69,7 +69,7 @@ export function registerBlockMenuItems(_ref) {
69
69
  return null;
70
70
  }
71
71
  return /*#__PURE__*/React.createElement(SelectionExtensionComponentContextProvider
72
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
72
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
73
73
  , {
74
74
  value: {
75
75
  api: api,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-extension",
3
- "version": "11.1.6",
3
+ "version": "11.1.8",
4
4
  "description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -51,16 +51,16 @@
51
51
  "@atlaskit/icon": "^33.0.0",
52
52
  "@atlaskit/lozenge": "^13.5.0",
53
53
  "@atlaskit/platform-feature-flags": "^1.1.0",
54
- "@atlaskit/primitives": "^18.0.0",
55
- "@atlaskit/tmp-editor-statsig": "^44.0.0",
56
- "@atlaskit/tokens": "^11.1.0",
54
+ "@atlaskit/primitives": "^18.1.0",
55
+ "@atlaskit/tmp-editor-statsig": "^46.0.0",
56
+ "@atlaskit/tokens": "^11.2.0",
57
57
  "@babel/runtime": "^7.0.0",
58
58
  "lodash": "^4.17.21",
59
59
  "react-intl-next": "npm:react-intl@^5.18.1",
60
60
  "uuid": "^3.1.0"
61
61
  },
62
62
  "peerDependencies": {
63
- "@atlaskit/editor-common": "^112.7.0",
63
+ "@atlaskit/editor-common": "^112.9.0",
64
64
  "react": "^18.2.0"
65
65
  },
66
66
  "devDependencies": {