@atlaskit/editor-plugin-expand 7.4.15 → 7.4.17
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 +17 -0
- package/dist/cjs/legacyExpand/pm-plugins/keymap.js +2 -2
- package/dist/cjs/legacyExpand/toolbar.js +2 -2
- package/dist/cjs/singlePlayerExpand/pm-plugins/keymap.js +2 -2
- package/dist/cjs/singlePlayerExpand/toolbar.js +2 -2
- package/dist/es2019/legacyExpand/pm-plugins/keymap.js +2 -2
- package/dist/es2019/legacyExpand/toolbar.js +1 -1
- package/dist/es2019/singlePlayerExpand/pm-plugins/keymap.js +2 -2
- package/dist/es2019/singlePlayerExpand/toolbar.js +1 -1
- package/dist/esm/legacyExpand/pm-plugins/keymap.js +2 -2
- package/dist/esm/legacyExpand/toolbar.js +1 -1
- package/dist/esm/singlePlayerExpand/pm-plugins/keymap.js +2 -2
- package/dist/esm/singlePlayerExpand/toolbar.js +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 7.4.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`90abe9b926a6f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/90abe9b926a6f) -
|
|
8
|
+
Icon entrypoint migration
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 7.4.16
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`b083a0f3cd801`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b083a0f3cd801) -
|
|
16
|
+
EDITOR-3869 Update experiment flag check to fire exposures in expand keymap and update variable
|
|
17
|
+
names
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 7.4.15
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -12,7 +12,7 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
12
12
|
var _keymap = require("@atlaskit/editor-prosemirror/keymap");
|
|
13
13
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
14
14
|
var _utils2 = require("@atlaskit/editor-tables/utils");
|
|
15
|
-
var
|
|
15
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
16
16
|
var _commands = require("../commands");
|
|
17
17
|
var isExpandNode = function isExpandNode(node) {
|
|
18
18
|
return (node === null || node === void 0 ? void 0 : node.type.name) === 'expand' || (node === null || node === void 0 ? void 0 : node.type.name) === 'nestedExpand';
|
|
@@ -145,7 +145,7 @@ function expandKeymap(api, options) {
|
|
|
145
145
|
var $from = selection.$from;
|
|
146
146
|
return (0, _commands.focusTitle)($from.pos + 1)(state, dispatch, editorView);
|
|
147
147
|
}
|
|
148
|
-
if ((0,
|
|
148
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_lovability_navigation_fixes', 'isEnabled', true)) {
|
|
149
149
|
var nextExpandPos = (0, _expand2.getNextNodeExpandPos)(editorView, selection);
|
|
150
150
|
if (nextExpandPos !== undefined) {
|
|
151
151
|
return (0, _commands.focusTitle)(nextExpandPos)(state, dispatch, editorView);
|
|
@@ -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
|
|
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:
|
|
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),
|
|
@@ -12,7 +12,7 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
12
12
|
var _keymap = require("@atlaskit/editor-prosemirror/keymap");
|
|
13
13
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
14
14
|
var _utils2 = require("@atlaskit/editor-tables/utils");
|
|
15
|
-
var
|
|
15
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
16
16
|
var _commands = require("../commands");
|
|
17
17
|
var isExpandNode = function isExpandNode(node) {
|
|
18
18
|
return (node === null || node === void 0 ? void 0 : node.type.name) === 'expand' || (node === null || node === void 0 ? void 0 : node.type.name) === 'nestedExpand';
|
|
@@ -145,7 +145,7 @@ function expandKeymap(api) {
|
|
|
145
145
|
var $from = selection.$from;
|
|
146
146
|
return (0, _commands.focusTitle)($from.pos + 1)(state, dispatch, editorView);
|
|
147
147
|
}
|
|
148
|
-
if ((0,
|
|
148
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_lovability_navigation_fixes', 'isEnabled', true)) {
|
|
149
149
|
var nextExpandPos = (0, _expand2.getNextNodeExpandPos)(editorView, selection);
|
|
150
150
|
if (nextExpandPos !== undefined) {
|
|
151
151
|
return (0, _commands.focusTitle)(nextExpandPos)(state, dispatch, editorView);
|
|
@@ -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
|
|
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:
|
|
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),
|
|
@@ -6,7 +6,7 @@ import { isEmptyNode, isPositionNearTableRow } from '@atlaskit/editor-common/uti
|
|
|
6
6
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
7
7
|
import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import { isInTable } from '@atlaskit/editor-tables/utils';
|
|
9
|
-
import {
|
|
9
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
10
|
import { deleteExpand, focusIcon, focusTitle } from '../commands';
|
|
11
11
|
const isExpandNode = node => {
|
|
12
12
|
return (node === null || node === void 0 ? void 0 : node.type.name) === 'expand' || (node === null || node === void 0 ? void 0 : node.type.name) === 'nestedExpand';
|
|
@@ -162,7 +162,7 @@ export function expandKeymap(api, options) {
|
|
|
162
162
|
} = selection;
|
|
163
163
|
return focusTitle($from.pos + 1)(state, dispatch, editorView);
|
|
164
164
|
}
|
|
165
|
-
if (
|
|
165
|
+
if (expValEquals('platform_editor_lovability_navigation_fixes', 'isEnabled', true)) {
|
|
166
166
|
const nextExpandPos = getNextNodeExpandPos(editorView, selection);
|
|
167
167
|
if (nextExpandPos !== undefined) {
|
|
168
168
|
return focusTitle(nextExpandPos)(state, dispatch, editorView);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import commonMessages from '@atlaskit/editor-common/messages';
|
|
2
|
-
import DeleteIcon from '@atlaskit/icon/core/
|
|
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, {
|
|
@@ -6,7 +6,7 @@ import { isEmptyNode, isPositionNearTableRow } from '@atlaskit/editor-common/uti
|
|
|
6
6
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
7
7
|
import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import { isInTable } from '@atlaskit/editor-tables/utils';
|
|
9
|
-
import {
|
|
9
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
10
|
import { deleteExpand, focusIcon, focusTitle } from '../commands';
|
|
11
11
|
const isExpandNode = node => {
|
|
12
12
|
return (node === null || node === void 0 ? void 0 : node.type.name) === 'expand' || (node === null || node === void 0 ? void 0 : node.type.name) === 'nestedExpand';
|
|
@@ -162,7 +162,7 @@ export function expandKeymap(api) {
|
|
|
162
162
|
} = selection;
|
|
163
163
|
return focusTitle($from.pos + 1)(state, dispatch, editorView);
|
|
164
164
|
}
|
|
165
|
-
if (
|
|
165
|
+
if (expValEquals('platform_editor_lovability_navigation_fixes', 'isEnabled', true)) {
|
|
166
166
|
const nextExpandPos = getNextNodeExpandPos(editorView, selection);
|
|
167
167
|
if (nextExpandPos !== undefined) {
|
|
168
168
|
return focusTitle(nextExpandPos)(state, dispatch, editorView);
|
|
@@ -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/
|
|
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, {
|
|
@@ -6,7 +6,7 @@ import { isEmptyNode, isPositionNearTableRow } from '@atlaskit/editor-common/uti
|
|
|
6
6
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
7
7
|
import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import { isInTable } from '@atlaskit/editor-tables/utils';
|
|
9
|
-
import {
|
|
9
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
10
|
import { deleteExpand, focusIcon, focusTitle } from '../commands';
|
|
11
11
|
var isExpandNode = function isExpandNode(node) {
|
|
12
12
|
return (node === null || node === void 0 ? void 0 : node.type.name) === 'expand' || (node === null || node === void 0 ? void 0 : node.type.name) === 'nestedExpand';
|
|
@@ -139,7 +139,7 @@ export function expandKeymap(api, options) {
|
|
|
139
139
|
var $from = selection.$from;
|
|
140
140
|
return focusTitle($from.pos + 1)(state, dispatch, editorView);
|
|
141
141
|
}
|
|
142
|
-
if (
|
|
142
|
+
if (expValEquals('platform_editor_lovability_navigation_fixes', 'isEnabled', true)) {
|
|
143
143
|
var nextExpandPos = getNextNodeExpandPos(editorView, selection);
|
|
144
144
|
if (nextExpandPos !== undefined) {
|
|
145
145
|
return focusTitle(nextExpandPos)(state, dispatch, editorView);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import commonMessages from '@atlaskit/editor-common/messages';
|
|
2
|
-
import DeleteIcon from '@atlaskit/icon/core/
|
|
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) {
|
|
@@ -6,7 +6,7 @@ import { isEmptyNode, isPositionNearTableRow } from '@atlaskit/editor-common/uti
|
|
|
6
6
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
7
7
|
import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import { isInTable } from '@atlaskit/editor-tables/utils';
|
|
9
|
-
import {
|
|
9
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
10
|
import { deleteExpand, focusIcon, focusTitle } from '../commands';
|
|
11
11
|
var isExpandNode = function isExpandNode(node) {
|
|
12
12
|
return (node === null || node === void 0 ? void 0 : node.type.name) === 'expand' || (node === null || node === void 0 ? void 0 : node.type.name) === 'nestedExpand';
|
|
@@ -139,7 +139,7 @@ export function expandKeymap(api) {
|
|
|
139
139
|
var $from = selection.$from;
|
|
140
140
|
return focusTitle($from.pos + 1)(state, dispatch, editorView);
|
|
141
141
|
}
|
|
142
|
-
if (
|
|
142
|
+
if (expValEquals('platform_editor_lovability_navigation_fixes', 'isEnabled', true)) {
|
|
143
143
|
var nextExpandPos = getNextNodeExpandPos(editorView, selection);
|
|
144
144
|
if (nextExpandPos !== undefined) {
|
|
145
145
|
return focusTitle(nextExpandPos)(state, dispatch, editorView);
|
|
@@ -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/
|
|
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) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-expand",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.17",
|
|
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.
|
|
32
|
+
"@atlaskit/adf-schema": "^51.5.0",
|
|
33
33
|
"@atlaskit/browser-apis": "^0.0.1",
|
|
34
|
-
"@atlaskit/button": "^23.
|
|
34
|
+
"@atlaskit/button": "^23.7.0",
|
|
35
35
|
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
36
|
-
"@atlaskit/editor-plugin-block-menu": "^5.
|
|
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.
|
|
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.
|
|
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.
|
|
47
|
+
"@atlaskit/icon": "^29.1.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.
|
|
52
|
-
"@atlaskit/tokens": "^8.
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^15.12.0",
|
|
52
|
+
"@atlaskit/tokens": "^8.5.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.
|
|
60
|
+
"@atlaskit/editor-common": "^110.44.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": "^
|
|
66
|
+
"@testing-library/react": "^16.3.0",
|
|
67
67
|
"react-test-renderer": "^18.2.0"
|
|
68
68
|
},
|
|
69
69
|
"techstack": {
|