@atlaskit/editor-plugin-expand 2.8.3 → 2.9.1
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 +26 -0
- package/dist/cjs/legacyExpand/toolbar.js +3 -1
- package/dist/cjs/singlePlayerExpand/toolbar.js +3 -1
- package/dist/es2019/legacyExpand/toolbar.js +3 -1
- package/dist/es2019/singlePlayerExpand/toolbar.js +3 -1
- package/dist/esm/legacyExpand/toolbar.js +3 -1
- package/dist/esm/singlePlayerExpand/toolbar.js +3 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 2.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#152399](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152399)
|
|
8
|
+
[`fbd7217f0cb51`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fbd7217f0cb51) -
|
|
9
|
+
[ux] ED-25092: Migrated table toolbar icons
|
|
10
|
+
- [#152510](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152510)
|
|
11
|
+
[`dcf9edde7ac7b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dcf9edde7ac7b) -
|
|
12
|
+
bump adf-schema to 42.0.1
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 2.9.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [#151190](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151190)
|
|
20
|
+
[`a3723b1cdede2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a3723b1cdede2) -
|
|
21
|
+
[ux] [ED-25037] this change bumps @atlaskit/adf-schema from 40.9.0 to 40.9.4 which makes the
|
|
22
|
+
blockquote selectable, adds missing marks to the PM node spec and fixes a bug that converted
|
|
23
|
+
pasted external images to media groups.
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
3
29
|
## 2.8.3
|
|
4
30
|
|
|
5
31
|
### Patch 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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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.
|
|
3
|
+
"version": "2.9.1",
|
|
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": "^
|
|
34
|
+
"@atlaskit/adf-schema": "^42.0.2",
|
|
35
35
|
"@atlaskit/button": "^20.2.0",
|
|
36
|
-
"@atlaskit/editor-common": "^93.
|
|
37
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
36
|
+
"@atlaskit/editor-common": "^93.5.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.
|
|
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.
|
|
45
|
+
"@atlaskit/icon": "^22.22.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^2.5.0",
|
|
48
48
|
"@atlaskit/tokens": "^2.0.0",
|
|
49
49
|
"@atlaskit/tooltip": "^18.8.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
61
|
-
"@atlaskit/editor-plugin-content-insertion": "^1.
|
|
61
|
+
"@atlaskit/editor-plugin-content-insertion": "^1.9.0",
|
|
62
62
|
"@atlaskit/editor-plugin-guideline": "^1.2.0",
|
|
63
63
|
"@atlaskit/editor-plugin-quick-insert": "^1.4.0",
|
|
64
|
-
"@atlaskit/editor-plugin-table": "^7.
|
|
65
|
-
"@atlaskit/editor-plugin-type-ahead": "^1.
|
|
64
|
+
"@atlaskit/editor-plugin-table": "^7.29.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",
|