@atlaskit/editor-plugin-expand 7.4.16 → 7.5.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,24 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 7.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`762b79e21f96a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/762b79e21f96a) -
8
+ Migrated and cleaned up legacy iconography usage.
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 7.4.17
15
+
16
+ ### Patch Changes
17
+
18
+ - [`90abe9b926a6f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/90abe9b926a6f) -
19
+ Icon entrypoint migration
20
+ - Updated dependencies
21
+
3
22
  ## 7.4.16
4
23
 
5
24
  ### Patch Changes
@@ -6,7 +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 _deleteEditorRemove = _interopRequireDefault(require("@atlaskit/icon/core/migration/delete--editor-remove"));
9
+ var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
10
10
  var _commands = require("./commands");
11
11
  var _pluginFactory = require("./pm-plugins/plugin-factory");
12
12
  var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(api) {
@@ -46,7 +46,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(api)
46
46
  type: 'button',
47
47
  appearance: 'danger',
48
48
  focusEditoronEnter: true,
49
- icon: _deleteEditorRemove.default,
49
+ icon: _delete.default,
50
50
  onClick: (0, _commands.deleteExpand)(editorAnalyticsAPI),
51
51
  onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], true),
52
52
  onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], false),
@@ -21,7 +21,6 @@ var _styles = require("@atlaskit/editor-common/styles");
21
21
  var _ui = require("@atlaskit/editor-common/ui");
22
22
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
23
23
  var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
24
- var _chevronRight2 = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-right"));
25
24
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
26
25
  var _excluded = ["buttonStyles"];
27
26
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -88,7 +87,6 @@ var CustomButton = exports.CustomButton = function CustomButton(props) {
88
87
  className: _styles.expandClassNames.iconContainer,
89
88
  iconBefore: (0, _react2.jsx)(_chevronRight.default, {
90
89
  label: '',
91
- LEGACY_fallbackIcon: _chevronRight2.default,
92
90
  size: "small"
93
91
  }),
94
92
  shouldFitContainer: true,
@@ -7,7 +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 _deleteEditorRemove = _interopRequireDefault(require("@atlaskit/icon/core/migration/delete--editor-remove"));
10
+ var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
11
11
  var _commands = require("./commands");
12
12
  var _utils2 = require("./utils");
13
13
  var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(api) {
@@ -47,7 +47,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(api)
47
47
  type: 'button',
48
48
  appearance: 'danger',
49
49
  focusEditoronEnter: true,
50
- icon: _deleteEditorRemove.default,
50
+ icon: _delete.default,
51
51
  onClick: (0, _commands.deleteExpand)(editorAnalyticsAPI),
52
52
  onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], true),
53
53
  onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], false),
@@ -16,7 +16,6 @@ var _styles = require("@atlaskit/editor-common/styles");
16
16
  var _ui = require("@atlaskit/editor-common/ui");
17
17
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
18
18
  var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
19
- var _chevronRight2 = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-right"));
20
19
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
21
20
  var _excluded = ["buttonStyles"];
22
21
  /**
@@ -73,7 +72,6 @@ var ExpandButtonInner = exports.ExpandButtonInner = function ExpandButtonInner(p
73
72
  className: _styles.expandClassNames.iconContainer,
74
73
  iconBefore: (0, _react2.jsx)(_chevronRight.default, {
75
74
  label: '',
76
- LEGACY_fallbackIcon: _chevronRight2.default,
77
75
  size: "small"
78
76
  }),
79
77
  shouldFitContainer: true,
@@ -1,5 +1,5 @@
1
1
  import commonMessages from '@atlaskit/editor-common/messages';
2
- import DeleteIcon from '@atlaskit/icon/core/migration/delete--editor-remove';
2
+ import DeleteIcon from '@atlaskit/icon/core/delete';
3
3
  import { deleteExpand } from './commands';
4
4
  import { getPluginState } from './pm-plugins/plugin-factory';
5
5
  export const getToolbarConfig = api => (state, {
@@ -12,7 +12,6 @@ import { expandClassNames } from '@atlaskit/editor-common/styles';
12
12
  import { expandLayoutWrapperStyle, ExpandLayoutWrapperWithRef, expandMessages } from '@atlaskit/editor-common/ui';
13
13
  import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
14
14
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
15
- import { default as ChevronRightIconLegacy } from '@atlaskit/icon/glyph/chevron-right';
16
15
  import Tooltip from '@atlaskit/tooltip';
17
16
  export const withTooltip = WrapperComponent => {
18
17
  return class WithSortableColumn extends React.Component {
@@ -72,7 +71,6 @@ export const CustomButton = props => {
72
71
  className: expandClassNames.iconContainer,
73
72
  iconBefore: jsx(ChevronRightIcon, {
74
73
  label: '',
75
- LEGACY_fallbackIcon: ChevronRightIconLegacy,
76
74
  size: "small"
77
75
  }),
78
76
  shouldFitContainer: true,
@@ -1,6 +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/migration/delete--editor-remove';
3
+ import DeleteIcon from '@atlaskit/icon/core/delete';
4
4
  import { deleteExpand } from './commands';
5
5
  import { findParentExpandNode } from './utils';
6
6
  export const getToolbarConfig = api => (state, {
@@ -12,7 +12,6 @@ import { expandClassNames } from '@atlaskit/editor-common/styles';
12
12
  import { expandLayoutWrapperStyle, ExpandLayoutWrapperWithRef, expandMessages } from '@atlaskit/editor-common/ui';
13
13
  import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
14
14
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
15
- import { default as ChevronRightIconLegacy } from '@atlaskit/icon/glyph/chevron-right';
16
15
  import Tooltip from '@atlaskit/tooltip';
17
16
  function withTooltip(Component) {
18
17
  return function WithTooltip(props) {
@@ -65,7 +64,6 @@ export const ExpandButtonInner = props => {
65
64
  className: expandClassNames.iconContainer,
66
65
  iconBefore: jsx(ChevronRightIcon, {
67
66
  label: '',
68
- LEGACY_fallbackIcon: ChevronRightIconLegacy,
69
67
  size: "small"
70
68
  }),
71
69
  shouldFitContainer: true,
@@ -1,5 +1,5 @@
1
1
  import commonMessages from '@atlaskit/editor-common/messages';
2
- import DeleteIcon from '@atlaskit/icon/core/migration/delete--editor-remove';
2
+ import DeleteIcon from '@atlaskit/icon/core/delete';
3
3
  import { deleteExpand } from './commands';
4
4
  import { getPluginState } from './pm-plugins/plugin-factory';
5
5
  export var getToolbarConfig = function getToolbarConfig(api) {
@@ -24,7 +24,6 @@ import { expandClassNames } from '@atlaskit/editor-common/styles';
24
24
  import { expandLayoutWrapperStyle, ExpandLayoutWrapperWithRef, expandMessages } from '@atlaskit/editor-common/ui';
25
25
  import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
26
26
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
27
- import { default as ChevronRightIconLegacy } from '@atlaskit/icon/glyph/chevron-right';
28
27
  import Tooltip from '@atlaskit/tooltip';
29
28
  export var withTooltip = function withTooltip(WrapperComponent) {
30
29
  return /*#__PURE__*/function (_React$Component) {
@@ -82,7 +81,6 @@ export var CustomButton = function CustomButton(props) {
82
81
  className: expandClassNames.iconContainer,
83
82
  iconBefore: jsx(ChevronRightIcon, {
84
83
  label: '',
85
- LEGACY_fallbackIcon: ChevronRightIconLegacy,
86
84
  size: "small"
87
85
  }),
88
86
  shouldFitContainer: true,
@@ -1,6 +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/migration/delete--editor-remove';
3
+ import DeleteIcon from '@atlaskit/icon/core/delete';
4
4
  import { deleteExpand } from './commands';
5
5
  import { findParentExpandNode } from './utils';
6
6
  export var getToolbarConfig = function getToolbarConfig(api) {
@@ -17,7 +17,6 @@ import { expandClassNames } from '@atlaskit/editor-common/styles';
17
17
  import { expandLayoutWrapperStyle, ExpandLayoutWrapperWithRef, expandMessages } from '@atlaskit/editor-common/ui';
18
18
  import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
19
19
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
20
- import { default as ChevronRightIconLegacy } from '@atlaskit/icon/glyph/chevron-right';
21
20
  import Tooltip from '@atlaskit/tooltip';
22
21
  function withTooltip(Component) {
23
22
  return function WithTooltip(props) {
@@ -65,7 +64,6 @@ export var ExpandButtonInner = function ExpandButtonInner(props) {
65
64
  className: expandClassNames.iconContainer,
66
65
  iconBefore: jsx(ChevronRightIcon, {
67
66
  label: '',
68
- LEGACY_fallbackIcon: ChevronRightIconLegacy,
69
67
  size: "small"
70
68
  }),
71
69
  shouldFitContainer: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "7.4.16",
3
+ "version": "7.5.0",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,27 +29,27 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^51.5.1",
32
+ "@atlaskit/adf-schema": "^51.5.0",
33
33
  "@atlaskit/browser-apis": "^0.0.1",
34
- "@atlaskit/button": "^23.6.0",
34
+ "@atlaskit/button": "^23.8.0",
35
35
  "@atlaskit/editor-plugin-analytics": "^6.2.0",
36
- "@atlaskit/editor-plugin-block-menu": "^5.1.0",
36
+ "@atlaskit/editor-plugin-block-menu": "^5.2.0",
37
37
  "@atlaskit/editor-plugin-decorations": "^6.1.0",
38
38
  "@atlaskit/editor-plugin-editor-disabled": "^6.1.0",
39
39
  "@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
40
- "@atlaskit/editor-plugin-local-id": "^4.2.0",
40
+ "@atlaskit/editor-plugin-local-id": "^4.3.0",
41
41
  "@atlaskit/editor-plugin-selection": "^6.1.0",
42
42
  "@atlaskit/editor-plugin-selection-marker": "^6.2.0",
43
- "@atlaskit/editor-prosemirror": "7.0.0",
43
+ "@atlaskit/editor-prosemirror": "^7.2.0",
44
44
  "@atlaskit/editor-shared-styles": "^3.10.0",
45
45
  "@atlaskit/editor-tables": "^2.9.0",
46
46
  "@atlaskit/editor-toolbar": "^0.18.0",
47
- "@atlaskit/icon": "^29.0.0",
47
+ "@atlaskit/icon": "^29.2.0",
48
48
  "@atlaskit/icon-lab": "^5.12.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
50
  "@atlaskit/prosemirror-history": "^0.2.0",
51
- "@atlaskit/tmp-editor-statsig": "^15.3.0",
52
- "@atlaskit/tokens": "^8.4.0",
51
+ "@atlaskit/tmp-editor-statsig": "^15.12.0",
52
+ "@atlaskit/tokens": "^8.6.0",
53
53
  "@atlaskit/tooltip": "^20.11.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@emotion/react": "^11.7.1",
@@ -57,13 +57,13 @@
57
57
  "w3c-keyname": "^2.1.8"
58
58
  },
59
59
  "peerDependencies": {
60
- "@atlaskit/editor-common": "^110.41.0",
60
+ "@atlaskit/editor-common": "^110.45.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"
64
64
  },
65
65
  "devDependencies": {
66
- "@testing-library/react": "^13.4.0",
66
+ "@testing-library/react": "^16.3.0",
67
67
  "react-test-renderer": "^18.2.0"
68
68
  },
69
69
  "techstack": {