@atlaskit/editor-plugin-expand 2.9.0 → 2.9.2

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,26 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 2.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#154186](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/154186)
8
+ [`5c316170d29dd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5c316170d29dd) -
9
+ Bump @atlaskit/adf-schema to 42.3.1
10
+ - Updated dependencies
11
+
12
+ ## 2.9.1
13
+
14
+ ### Patch Changes
15
+
16
+ - [#152399](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152399)
17
+ [`fbd7217f0cb51`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fbd7217f0cb51) -
18
+ [ux] ED-25092: Migrated table toolbar icons
19
+ - [#152510](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152510)
20
+ [`dcf9edde7ac7b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dcf9edde7ac7b) -
21
+ bump adf-schema to 42.0.1
22
+ - Updated dependencies
23
+
3
24
  ## 2.9.0
4
25
 
5
26
  ### Minor Changes
@@ -6,6 +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"));
9
10
  var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
10
11
  var _commands = require("./commands");
11
12
  var _pluginFactory = require("./pm-plugins/plugin-factory");
@@ -44,7 +45,8 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(api)
44
45
  type: 'button',
45
46
  appearance: 'danger',
46
47
  focusEditoronEnter: true,
47
- icon: _remove.default,
48
+ icon: _delete.default,
49
+ iconFallback: _remove.default,
48
50
  onClick: (0, _commands.deleteExpand)(editorAnalyticsAPI),
49
51
  onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], true),
50
52
  onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], false),
@@ -7,6 +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"));
10
11
  var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
11
12
  var _commands = require("./commands");
12
13
  var _utils2 = require("./utils");
@@ -44,7 +45,8 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(api)
44
45
  type: 'button',
45
46
  appearance: 'danger',
46
47
  focusEditoronEnter: true,
47
- icon: _remove.default,
48
+ icon: _delete.default,
49
+ iconFallback: _remove.default,
48
50
  onClick: (0, _commands.deleteExpand)(editorAnalyticsAPI),
49
51
  onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], true),
50
52
  onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], false),
@@ -1,4 +1,5 @@
1
1
  import commonMessages from '@atlaskit/editor-common/messages';
2
+ import DeleteIcon from '@atlaskit/icon/core/delete';
2
3
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
3
4
  import { deleteExpand } from './commands';
4
5
  import { getPluginState } from './pm-plugins/plugin-factory';
@@ -38,7 +39,8 @@ export const getToolbarConfig = api => (state, {
38
39
  type: 'button',
39
40
  appearance: 'danger',
40
41
  focusEditoronEnter: true,
41
- icon: RemoveIcon,
42
+ icon: DeleteIcon,
43
+ iconFallback: RemoveIcon,
42
44
  onClick: deleteExpand(editorAnalyticsAPI),
43
45
  onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], true),
44
46
  onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], false),
@@ -1,5 +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';
3
4
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
4
5
  import { deleteExpand } from './commands';
5
6
  import { findParentExpandNode } from './utils';
@@ -37,7 +38,8 @@ export const getToolbarConfig = api => (state, {
37
38
  type: 'button',
38
39
  appearance: 'danger',
39
40
  focusEditoronEnter: true,
40
- icon: RemoveIcon,
41
+ icon: DeleteIcon,
42
+ iconFallback: RemoveIcon,
41
43
  onClick: deleteExpand(editorAnalyticsAPI),
42
44
  onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], true),
43
45
  onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], false),
@@ -1,4 +1,5 @@
1
1
  import commonMessages from '@atlaskit/editor-common/messages';
2
+ import DeleteIcon from '@atlaskit/icon/core/delete';
2
3
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
3
4
  import { deleteExpand } from './commands';
4
5
  import { getPluginState } from './pm-plugins/plugin-factory';
@@ -37,7 +38,8 @@ export var getToolbarConfig = function getToolbarConfig(api) {
37
38
  type: 'button',
38
39
  appearance: 'danger',
39
40
  focusEditoronEnter: true,
40
- icon: RemoveIcon,
41
+ icon: DeleteIcon,
42
+ iconFallback: RemoveIcon,
41
43
  onClick: deleteExpand(editorAnalyticsAPI),
42
44
  onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], true),
43
45
  onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], false),
@@ -1,5 +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';
3
4
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
4
5
  import { deleteExpand } from './commands';
5
6
  import { findParentExpandNode } from './utils';
@@ -37,7 +38,8 @@ export var getToolbarConfig = function getToolbarConfig(api) {
37
38
  type: 'button',
38
39
  appearance: 'danger',
39
40
  focusEditoronEnter: true,
40
- icon: RemoveIcon,
41
+ icon: DeleteIcon,
42
+ iconFallback: RemoveIcon,
41
43
  onClick: deleteExpand(editorAnalyticsAPI),
42
44
  onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], true),
43
45
  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": "2.9.0",
3
+ "version": "2.9.2",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,20 +31,20 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/adf-schema": "^40.9.4",
34
+ "@atlaskit/adf-schema": "^42.3.1",
35
35
  "@atlaskit/button": "^20.2.0",
36
- "@atlaskit/editor-common": "^93.3.0",
37
- "@atlaskit/editor-plugin-analytics": "^1.9.0",
36
+ "@atlaskit/editor-common": "^94.0.0",
37
+ "@atlaskit/editor-plugin-analytics": "^1.10.0",
38
38
  "@atlaskit/editor-plugin-decorations": "^1.3.0",
39
39
  "@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
40
- "@atlaskit/editor-plugin-selection": "^1.4.0",
40
+ "@atlaskit/editor-plugin-selection": "^1.5.0",
41
41
  "@atlaskit/editor-plugin-selection-marker": "^1.5.0",
42
42
  "@atlaskit/editor-prosemirror": "6.0.0",
43
43
  "@atlaskit/editor-shared-styles": "^3.0.0",
44
44
  "@atlaskit/editor-tables": "^2.8.0",
45
- "@atlaskit/icon": "^22.22.0",
45
+ "@atlaskit/icon": "^22.23.0",
46
46
  "@atlaskit/platform-feature-flags": "^0.3.0",
47
- "@atlaskit/tmp-editor-statsig": "^2.3.0",
47
+ "@atlaskit/tmp-editor-statsig": "^2.7.0",
48
48
  "@atlaskit/tokens": "^2.0.0",
49
49
  "@atlaskit/tooltip": "^18.8.0",
50
50
  "@babel/runtime": "^7.0.0",
@@ -62,7 +62,7 @@
62
62
  "@atlaskit/editor-plugin-guideline": "^1.2.0",
63
63
  "@atlaskit/editor-plugin-quick-insert": "^1.4.0",
64
64
  "@atlaskit/editor-plugin-table": "^7.29.0",
65
- "@atlaskit/editor-plugin-type-ahead": "^1.9.0",
65
+ "@atlaskit/editor-plugin-type-ahead": "^1.10.0",
66
66
  "@atlaskit/editor-plugin-width": "^1.3.0",
67
67
  "@testing-library/react": "^12.1.5",
68
68
  "react-test-renderer": "^16.8.0",