@atlaskit/editor-plugin-expand 7.5.3 → 7.5.4

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-expand
2
2
 
3
+ ## 7.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9cb0ce7857313`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9cb0ce7857313) -
8
+ Fix const name.
9
+ - Updated dependencies
10
+
3
11
  ## 7.5.3
4
12
 
5
13
  ### Patch Changes
@@ -11,7 +11,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
11
11
  var _messages = require("@atlaskit/editor-common/messages");
12
12
  var _editorToolbar = require("@atlaskit/editor-toolbar");
13
13
  var _expandElement = _interopRequireDefault(require("@atlaskit/icon-lab/core/expand-element"));
14
- var nodeName = 'expand';
14
+ var NODE_NAME = 'expand';
15
15
  var ExpandBlockMenuItem = function ExpandBlockMenuItem(_ref) {
16
16
  var _api$blockMenu2;
17
17
  var api = _ref.api;
@@ -26,14 +26,14 @@ var ExpandBlockMenuItem = function ExpandBlockMenuItem(_ref) {
26
26
  var command = api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(tr.doc.type.schema.nodes.expand, {
27
27
  inputMethod: inputMethod,
28
28
  triggeredFrom: triggeredFrom,
29
- targetTypeName: nodeName
29
+ targetTypeName: NODE_NAME
30
30
  });
31
31
  return command ? command({
32
32
  tr: tr
33
33
  }) : null;
34
34
  });
35
35
  };
36
- var isTransfromToPanelDisabled = api === null || api === void 0 || (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(nodeName);
36
+ var isTransfromToPanelDisabled = api === null || api === void 0 || (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(NODE_NAME);
37
37
  if (isTransfromToPanelDisabled) {
38
38
  return null;
39
39
  }
@@ -4,7 +4,7 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { toolbarInsertBlockMessages } from '@atlaskit/editor-common/messages';
5
5
  import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
6
6
  import ExpandElementIcon from '@atlaskit/icon-lab/core/expand-element';
7
- const nodeName = 'expand';
7
+ const NODE_NAME = 'expand';
8
8
  const ExpandBlockMenuItem = ({
9
9
  api
10
10
  }) => {
@@ -22,14 +22,14 @@ const ExpandBlockMenuItem = ({
22
22
  const command = api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(tr.doc.type.schema.nodes.expand, {
23
23
  inputMethod,
24
24
  triggeredFrom,
25
- targetTypeName: nodeName
25
+ targetTypeName: NODE_NAME
26
26
  });
27
27
  return command ? command({
28
28
  tr
29
29
  }) : null;
30
30
  });
31
31
  };
32
- const isTransfromToPanelDisabled = api === null || api === void 0 ? void 0 : (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(nodeName);
32
+ const isTransfromToPanelDisabled = api === null || api === void 0 ? void 0 : (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(NODE_NAME);
33
33
  if (isTransfromToPanelDisabled) {
34
34
  return null;
35
35
  }
@@ -4,7 +4,7 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { toolbarInsertBlockMessages } from '@atlaskit/editor-common/messages';
5
5
  import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
6
6
  import ExpandElementIcon from '@atlaskit/icon-lab/core/expand-element';
7
- var nodeName = 'expand';
7
+ var NODE_NAME = 'expand';
8
8
  var ExpandBlockMenuItem = function ExpandBlockMenuItem(_ref) {
9
9
  var _api$blockMenu2;
10
10
  var api = _ref.api;
@@ -19,14 +19,14 @@ var ExpandBlockMenuItem = function ExpandBlockMenuItem(_ref) {
19
19
  var command = api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(tr.doc.type.schema.nodes.expand, {
20
20
  inputMethod: inputMethod,
21
21
  triggeredFrom: triggeredFrom,
22
- targetTypeName: nodeName
22
+ targetTypeName: NODE_NAME
23
23
  });
24
24
  return command ? command({
25
25
  tr: tr
26
26
  }) : null;
27
27
  });
28
28
  };
29
- var isTransfromToPanelDisabled = api === null || api === void 0 || (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(nodeName);
29
+ var isTransfromToPanelDisabled = api === null || api === void 0 || (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(NODE_NAME);
30
30
  if (isTransfromToPanelDisabled) {
31
31
  return null;
32
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "7.5.3",
3
+ "version": "7.5.4",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -48,7 +48,7 @@
48
48
  "@atlaskit/icon-lab": "^5.13.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
50
  "@atlaskit/prosemirror-history": "^0.2.0",
51
- "@atlaskit/tmp-editor-statsig": "^16.1.0",
51
+ "@atlaskit/tmp-editor-statsig": "^16.2.0",
52
52
  "@atlaskit/tokens": "^9.0.0",
53
53
  "@atlaskit/tooltip": "^20.11.0",
54
54
  "@babel/runtime": "^7.0.0",
@@ -57,7 +57,7 @@
57
57
  "w3c-keyname": "^2.1.8"
58
58
  },
59
59
  "peerDependencies": {
60
- "@atlaskit/editor-common": "^110.48.0",
60
+ "@atlaskit/editor-common": "^110.49.0",
61
61
  "react": "^18.2.0",
62
62
  "react-dom": "^18.2.0",
63
63
  "react-intl-next": "npm:react-intl@^5.18.1"