@atlaskit/editor-plugin-block-menu 7.0.12 → 7.0.14

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-block-menu
2
2
 
3
+ ## 7.0.14
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 7.0.13
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 7.0.12
4
16
 
5
17
  ### Patch Changes
@@ -68,6 +68,7 @@ var transformOrderedUnorderedListToBlockNodes = exports.transformOrderedUnordere
68
68
  // Convert codeblocks to block nodes
69
69
  if (node.type === schema.nodes.codeBlock) {
70
70
  var _targetAttrs$level;
71
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
71
72
  var _textContent = node.textContent.split('\n');
72
73
  var attributes = targetNodeType === schema.nodes.heading ? {
73
74
  level: (_targetAttrs$level = targetAttrs === null || targetAttrs === void 0 ? void 0 : targetAttrs.level) !== null && _targetAttrs$level !== void 0 ? _targetAttrs$level : 1
@@ -51,6 +51,7 @@ var BlockMenuProvider = exports.BlockMenuProvider = function BlockMenuProvider(_
51
51
  }
52
52
  }, [api]);
53
53
  return /*#__PURE__*/_react.default.createElement(BlockMenuContext.Provider, {
54
+ // eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
54
55
  value: {
55
56
  onDropdownOpenChanged: onDropdownOpenChanged,
56
57
  moveDownRef: moveDownRef,
@@ -106,7 +106,9 @@ var BlockMenuContent = function BlockMenuContent(_ref2) {
106
106
  ref: ref,
107
107
  xcss: (0, _css.cx)(styles.base, (0, _platformFeatureFlags.fg)('platform_editor_block_menu_v2_patch_2') && styles.maxWidthStyles, (0, _experiments.editorExperiment)('platform_synced_block', true) && styles.emptyMenuSectionStyles)
108
108
  }, /*#__PURE__*/_react.default.createElement(_uiMenu.ArrowKeyNavigationProvider, {
109
- type: _uiMenu.ArrowKeyNavigationType.MENU,
109
+ type: _uiMenu.ArrowKeyNavigationType.MENU
110
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
111
+ ,
110
112
  handleClose: function handleClose(e) {
111
113
  return e.preventDefault();
112
114
  },
@@ -255,7 +257,9 @@ var BlockMenu = function BlockMenu(_ref3) {
255
257
  fitWidth: DEFAULT_MENU_WIDTH,
256
258
  fitHeight: menuHeight,
257
259
  preventOverflow: true,
258
- stick: true,
260
+ stick: true
261
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
262
+ ,
259
263
  offset: [_styles.DRAG_HANDLE_WIDTH + DRAG_HANDLE_OFFSET_PADDING, targetHandleHeightOffset],
260
264
  focusTrap: openedViaKeyboard ?
261
265
  // Only enable focus trap when opened via keyboard to make sure the focus is on the first focusable menu item
@@ -64,6 +64,7 @@ export const transformOrderedUnorderedListToBlockNodes = context => {
64
64
  // Convert codeblocks to block nodes
65
65
  if (node.type === schema.nodes.codeBlock) {
66
66
  var _targetAttrs$level;
67
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
67
68
  const textContent = node.textContent.split('\n');
68
69
  const attributes = targetNodeType === schema.nodes.heading ? {
69
70
  level: (_targetAttrs$level = targetAttrs === null || targetAttrs === void 0 ? void 0 : targetAttrs.level) !== null && _targetAttrs$level !== void 0 ? _targetAttrs$level : 1
@@ -40,6 +40,7 @@ export const BlockMenuProvider = ({
40
40
  }
41
41
  }, [api]);
42
42
  return /*#__PURE__*/React.createElement(BlockMenuContext.Provider, {
43
+ // eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
43
44
  value: {
44
45
  onDropdownOpenChanged,
45
46
  moveDownRef,
@@ -99,7 +99,9 @@ const BlockMenuContent = ({
99
99
  ref: ref,
100
100
  xcss: cx(styles.base, fg('platform_editor_block_menu_v2_patch_2') && styles.maxWidthStyles, editorExperiment('platform_synced_block', true) && styles.emptyMenuSectionStyles)
101
101
  }, /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
102
- type: ArrowKeyNavigationType.MENU,
102
+ type: ArrowKeyNavigationType.MENU
103
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
104
+ ,
103
105
  handleClose: e => e.preventDefault(),
104
106
  disableArrowKeyNavigation: shouldDisableArrowKeyNavigation
105
107
  }, /*#__PURE__*/React.createElement(BlockMenuRenderer, {
@@ -247,7 +249,9 @@ const BlockMenu = ({
247
249
  fitWidth: DEFAULT_MENU_WIDTH,
248
250
  fitHeight: menuHeight,
249
251
  preventOverflow: true,
250
- stick: true,
252
+ stick: true
253
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
254
+ ,
251
255
  offset: [DRAG_HANDLE_WIDTH + DRAG_HANDLE_OFFSET_PADDING, targetHandleHeightOffset],
252
256
  focusTrap: openedViaKeyboard ?
253
257
  // Only enable focus trap when opened via keyboard to make sure the focus is on the first focusable menu item
@@ -61,6 +61,7 @@ export var transformOrderedUnorderedListToBlockNodes = function transformOrdered
61
61
  // Convert codeblocks to block nodes
62
62
  if (node.type === schema.nodes.codeBlock) {
63
63
  var _targetAttrs$level;
64
+ // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
64
65
  var _textContent = node.textContent.split('\n');
65
66
  var attributes = targetNodeType === schema.nodes.heading ? {
66
67
  level: (_targetAttrs$level = targetAttrs === null || targetAttrs === void 0 ? void 0 : targetAttrs.level) !== null && _targetAttrs$level !== void 0 ? _targetAttrs$level : 1
@@ -43,6 +43,7 @@ export var BlockMenuProvider = function BlockMenuProvider(_ref) {
43
43
  }
44
44
  }, [api]);
45
45
  return /*#__PURE__*/React.createElement(BlockMenuContext.Provider, {
46
+ // eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
46
47
  value: {
47
48
  onDropdownOpenChanged: onDropdownOpenChanged,
48
49
  moveDownRef: moveDownRef,
@@ -97,7 +97,9 @@ var BlockMenuContent = function BlockMenuContent(_ref2) {
97
97
  ref: ref,
98
98
  xcss: cx(styles.base, fg('platform_editor_block_menu_v2_patch_2') && styles.maxWidthStyles, editorExperiment('platform_synced_block', true) && styles.emptyMenuSectionStyles)
99
99
  }, /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
100
- type: ArrowKeyNavigationType.MENU,
100
+ type: ArrowKeyNavigationType.MENU
101
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
102
+ ,
101
103
  handleClose: function handleClose(e) {
102
104
  return e.preventDefault();
103
105
  },
@@ -246,7 +248,9 @@ var BlockMenu = function BlockMenu(_ref3) {
246
248
  fitWidth: DEFAULT_MENU_WIDTH,
247
249
  fitHeight: menuHeight,
248
250
  preventOverflow: true,
249
- stick: true,
251
+ stick: true
252
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
253
+ ,
250
254
  offset: [DRAG_HANDLE_WIDTH + DRAG_HANDLE_OFFSET_PADDING, targetHandleHeightOffset],
251
255
  focusTrap: openedViaKeyboard ?
252
256
  // Only enable focus trap when opened via keyboard to make sure the focus is on the first focusable menu item
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-menu",
3
- "version": "7.0.12",
3
+ "version": "7.0.14",
4
4
  "description": "BlockMenu plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -44,13 +44,13 @@
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/primitives": "^18.0.0",
46
46
  "@atlaskit/prosemirror-history": "^0.2.0",
47
- "@atlaskit/tmp-editor-statsig": "^43.0.0",
47
+ "@atlaskit/tmp-editor-statsig": "^45.0.0",
48
48
  "@atlaskit/tokens": "^11.1.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "bind-event-listener": "^3.0.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^112.7.0",
53
+ "@atlaskit/editor-common": "^112.8.0",
54
54
  "react": "^18.2.0",
55
55
  "react-intl-next": "npm:react-intl@^5.18.1"
56
56
  },