@atlaskit/editor-plugin-expand 3.1.3 → 3.2.0

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-expand
2
2
 
3
+ ## 3.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#128788](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/128788)
8
+ [`83a4d1ba203b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/83a4d1ba203b0) -
9
+ [ux] update icons
10
+
11
+ ## 3.1.4
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 3.1.3
4
18
 
5
19
  ### Patch Changes
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.getToolbarConfig = void 0;
8
8
  var _messages = _interopRequireDefault(require("@atlaskit/editor-common/messages"));
9
- var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
10
- var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
9
+ var _deleteEditorRemove = _interopRequireDefault(require("@atlaskit/icon/core/migration/delete--editor-remove"));
11
10
  var _commands = require("./commands");
12
11
  var _pluginFactory = require("./pm-plugins/plugin-factory");
13
12
  var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(api) {
@@ -47,8 +46,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(api)
47
46
  type: 'button',
48
47
  appearance: 'danger',
49
48
  focusEditoronEnter: true,
50
- icon: _delete.default,
51
- iconFallback: _remove.default,
49
+ icon: _deleteEditorRemove.default,
52
50
  onClick: (0, _commands.deleteExpand)(editorAnalyticsAPI),
53
51
  onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], true),
54
52
  onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], false),
@@ -7,8 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.getToolbarConfig = void 0;
8
8
  var _messages = _interopRequireDefault(require("@atlaskit/editor-common/messages"));
9
9
  var _utils = require("@atlaskit/editor-prosemirror/utils");
10
- var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
11
- var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
10
+ var _deleteEditorRemove = _interopRequireDefault(require("@atlaskit/icon/core/migration/delete--editor-remove"));
12
11
  var _commands = require("./commands");
13
12
  var _utils2 = require("./utils");
14
13
  var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(api) {
@@ -48,8 +47,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(api)
48
47
  type: 'button',
49
48
  appearance: 'danger',
50
49
  focusEditoronEnter: true,
51
- icon: _delete.default,
52
- iconFallback: _remove.default,
50
+ icon: _deleteEditorRemove.default,
53
51
  onClick: (0, _commands.deleteExpand)(editorAnalyticsAPI),
54
52
  onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], true),
55
53
  onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], false),
@@ -1,6 +1,5 @@
1
1
  import commonMessages from '@atlaskit/editor-common/messages';
2
- import DeleteIcon from '@atlaskit/icon/core/delete';
3
- import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
2
+ import DeleteIcon from '@atlaskit/icon/core/migration/delete--editor-remove';
4
3
  import { deleteExpand } from './commands';
5
4
  import { getPluginState } from './pm-plugins/plugin-factory';
6
5
  export const getToolbarConfig = api => (state, {
@@ -42,7 +41,6 @@ export const getToolbarConfig = api => (state, {
42
41
  appearance: 'danger',
43
42
  focusEditoronEnter: true,
44
43
  icon: DeleteIcon,
45
- iconFallback: RemoveIcon,
46
44
  onClick: deleteExpand(editorAnalyticsAPI),
47
45
  onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], true),
48
46
  onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], false),
@@ -1,7 +1,6 @@
1
1
  import commonMessages from '@atlaskit/editor-common/messages';
2
2
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
3
- import DeleteIcon from '@atlaskit/icon/core/delete';
4
- import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
3
+ import DeleteIcon from '@atlaskit/icon/core/migration/delete--editor-remove';
5
4
  import { deleteExpand } from './commands';
6
5
  import { findParentExpandNode } from './utils';
7
6
  export const getToolbarConfig = api => (state, {
@@ -41,7 +40,6 @@ export const getToolbarConfig = api => (state, {
41
40
  appearance: 'danger',
42
41
  focusEditoronEnter: true,
43
42
  icon: DeleteIcon,
44
- iconFallback: RemoveIcon,
45
43
  onClick: deleteExpand(editorAnalyticsAPI),
46
44
  onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], true),
47
45
  onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], false),
@@ -1,6 +1,5 @@
1
1
  import commonMessages from '@atlaskit/editor-common/messages';
2
- import DeleteIcon from '@atlaskit/icon/core/delete';
3
- import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
2
+ import DeleteIcon from '@atlaskit/icon/core/migration/delete--editor-remove';
4
3
  import { deleteExpand } from './commands';
5
4
  import { getPluginState } from './pm-plugins/plugin-factory';
6
5
  export var getToolbarConfig = function getToolbarConfig(api) {
@@ -41,7 +40,6 @@ export var getToolbarConfig = function getToolbarConfig(api) {
41
40
  appearance: 'danger',
42
41
  focusEditoronEnter: true,
43
42
  icon: DeleteIcon,
44
- iconFallback: RemoveIcon,
45
43
  onClick: deleteExpand(editorAnalyticsAPI),
46
44
  onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], true),
47
45
  onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], false),
@@ -1,7 +1,6 @@
1
1
  import commonMessages from '@atlaskit/editor-common/messages';
2
2
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
3
- import DeleteIcon from '@atlaskit/icon/core/delete';
4
- import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
3
+ import DeleteIcon from '@atlaskit/icon/core/migration/delete--editor-remove';
5
4
  import { deleteExpand } from './commands';
6
5
  import { findParentExpandNode } from './utils';
7
6
  export var getToolbarConfig = function getToolbarConfig(api) {
@@ -42,7 +41,6 @@ export var getToolbarConfig = function getToolbarConfig(api) {
42
41
  appearance: 'danger',
43
42
  focusEditoronEnter: true,
44
43
  icon: DeleteIcon,
45
- iconFallback: RemoveIcon,
46
44
  onClick: deleteExpand(editorAnalyticsAPI),
47
45
  onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], true),
48
46
  onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], false),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "3.1.3",
3
+ "version": "3.2.0",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,8 +35,8 @@
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^47.6.0",
37
37
  "@atlaskit/button": "^21.1.0",
38
- "@atlaskit/editor-common": "^102.4.0",
39
- "@atlaskit/editor-plugin-analytics": "^2.1.0",
38
+ "@atlaskit/editor-common": "^102.11.0",
39
+ "@atlaskit/editor-plugin-analytics": "^2.2.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^2.0.0",
41
41
  "@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
42
42
  "@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
@@ -47,8 +47,8 @@
47
47
  "@atlaskit/editor-tables": "^2.9.0",
48
48
  "@atlaskit/icon": "^25.0.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
- "@atlaskit/tmp-editor-statsig": "^3.6.0",
51
- "@atlaskit/tokens": "^4.4.0",
50
+ "@atlaskit/tmp-editor-statsig": "^4.1.0",
51
+ "@atlaskit/tokens": "^4.5.0",
52
52
  "@atlaskit/tooltip": "^20.0.0",
53
53
  "@babel/runtime": "^7.0.0",
54
54
  "@emotion/react": "^11.7.1",
@@ -65,7 +65,7 @@
65
65
  "@atlaskit/editor-plugin-content-insertion": "^2.1.0",
66
66
  "@atlaskit/editor-plugin-guideline": "^2.0.0",
67
67
  "@atlaskit/editor-plugin-quick-insert": "^2.1.0",
68
- "@atlaskit/editor-plugin-table": "^10.4.0",
68
+ "@atlaskit/editor-plugin-table": "^10.5.0",
69
69
  "@atlaskit/editor-plugin-type-ahead": "^2.1.0",
70
70
  "@atlaskit/editor-plugin-width": "^3.0.0",
71
71
  "@testing-library/react": "^13.4.0",