@atlaskit/editor-plugin-panel 8.1.8 → 8.1.9

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,13 @@
1
1
  # @atlaskit/editor-plugin-panel
2
2
 
3
+ ## 8.1.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [`459eb2064ff46`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/459eb2064ff46) -
8
+ [ux] Implements base for the new transform logic for the block menu.
9
+ - Updated dependencies
10
+
3
11
  ## 8.1.8
4
12
 
5
13
  ### Patch Changes
@@ -35,10 +35,10 @@ var PanelBlockMenuItem = function PanelBlockMenuItem(_ref) {
35
35
  var _api$blockMenu;
36
36
  var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? _analytics.INPUT_METHOD.KEYBOARD : _analytics.INPUT_METHOD.MOUSE;
37
37
  var inputMethod = _analytics.INPUT_METHOD.BLOCK_MENU;
38
- api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.formatNode(nodeName, {
38
+ selection && (api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(selection.$from.doc.type.schema.nodes.panel, {
39
39
  inputMethod: inputMethod,
40
40
  triggeredFrom: triggeredFrom
41
- }));
41
+ })));
42
42
  };
43
43
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
44
44
  onClick: handleClick,
@@ -28,10 +28,10 @@ const PanelBlockMenuItem = ({
28
28
  var _api$blockMenu;
29
29
  const triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
30
30
  const inputMethod = INPUT_METHOD.BLOCK_MENU;
31
- api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.formatNode(nodeName, {
31
+ selection && (api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(selection.$from.doc.type.schema.nodes.panel, {
32
32
  inputMethod,
33
33
  triggeredFrom
34
- }));
34
+ })));
35
35
  };
36
36
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
37
37
  onClick: handleClick,
@@ -26,10 +26,10 @@ var PanelBlockMenuItem = function PanelBlockMenuItem(_ref) {
26
26
  var _api$blockMenu;
27
27
  var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
28
28
  var inputMethod = INPUT_METHOD.BLOCK_MENU;
29
- api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.formatNode(nodeName, {
29
+ selection && (api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(selection.$from.doc.type.schema.nodes.panel, {
30
30
  inputMethod: inputMethod,
31
31
  triggeredFrom: triggeredFrom
32
- }));
32
+ })));
33
33
  };
34
34
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
35
35
  onClick: handleClick,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "8.1.8",
3
+ "version": "8.1.9",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -42,13 +42,13 @@
42
42
  "@atlaskit/icon": "^29.0.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/theme": "^21.0.0",
45
- "@atlaskit/tmp-editor-statsig": "^13.38.0",
46
- "@atlaskit/tokens": "^8.0.0",
45
+ "@atlaskit/tmp-editor-statsig": "^13.42.0",
46
+ "@atlaskit/tokens": "^8.2.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "uuid": "^3.1.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "@atlaskit/editor-common": "^110.32.0",
51
+ "@atlaskit/editor-common": "^110.34.0",
52
52
  "react": "^18.2.0",
53
53
  "react-dom": "^18.2.0",
54
54
  "react-intl-next": "npm:react-intl@^5.18.1"