@atlaskit/editor-plugin-panel 8.1.7 → 8.1.9
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,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-panel
|
|
2
2
|
|
|
3
|
+
## 8.1.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`459eb2064ff46`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/459eb2064ff46) -
|
|
8
|
+
[ux] Implements base for the new transform logic for the block menu.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 8.1.8
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`a05464ea42678`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a05464ea42678) -
|
|
16
|
+
EDITOR-2791 bump adf-schema
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 8.1.7
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -35,10 +35,10 @@ var PanelBlockMenuItem = function PanelBlockMenuItem(_ref) {
|
|
|
35
35
|
var _api$blockMenu;
|
|
36
36
|
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? _analytics.INPUT_METHOD.KEYBOARD : _analytics.INPUT_METHOD.MOUSE;
|
|
37
37
|
var inputMethod = _analytics.INPUT_METHOD.BLOCK_MENU;
|
|
38
|
-
api === null || api === void 0
|
|
38
|
+
selection && (api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(selection.$from.doc.type.schema.nodes.panel, {
|
|
39
39
|
inputMethod: inputMethod,
|
|
40
40
|
triggeredFrom: triggeredFrom
|
|
41
|
-
}));
|
|
41
|
+
})));
|
|
42
42
|
};
|
|
43
43
|
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
|
|
44
44
|
onClick: handleClick,
|
|
@@ -28,10 +28,10 @@ const PanelBlockMenuItem = ({
|
|
|
28
28
|
var _api$blockMenu;
|
|
29
29
|
const triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
|
|
30
30
|
const inputMethod = INPUT_METHOD.BLOCK_MENU;
|
|
31
|
-
api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.
|
|
31
|
+
selection && (api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(selection.$from.doc.type.schema.nodes.panel, {
|
|
32
32
|
inputMethod,
|
|
33
33
|
triggeredFrom
|
|
34
|
-
}));
|
|
34
|
+
})));
|
|
35
35
|
};
|
|
36
36
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
|
|
37
37
|
onClick: handleClick,
|
|
@@ -26,10 +26,10 @@ var PanelBlockMenuItem = function PanelBlockMenuItem(_ref) {
|
|
|
26
26
|
var _api$blockMenu;
|
|
27
27
|
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
|
|
28
28
|
var inputMethod = INPUT_METHOD.BLOCK_MENU;
|
|
29
|
-
api === null || api === void 0
|
|
29
|
+
selection && (api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(selection.$from.doc.type.schema.nodes.panel, {
|
|
30
30
|
inputMethod: inputMethod,
|
|
31
31
|
triggeredFrom: triggeredFrom
|
|
32
|
-
}));
|
|
32
|
+
})));
|
|
33
33
|
};
|
|
34
34
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
|
|
35
35
|
onClick: handleClick,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-panel",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.9",
|
|
4
4
|
"description": "Panel plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"atlaskit:src": "src/index.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@atlaskit/adf-schema": "^51.
|
|
30
|
+
"@atlaskit/adf-schema": "^51.4.0",
|
|
31
31
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
32
32
|
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
33
33
|
"@atlaskit/editor-plugin-block-menu": "^5.0.0",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@atlaskit/editor-plugin-selection": "^6.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-toolbar": "^3.4.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
39
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
39
|
+
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
40
40
|
"@atlaskit/editor-toolbar": "^0.17.0",
|
|
41
|
-
"@atlaskit/emoji": "^69.
|
|
41
|
+
"@atlaskit/emoji": "^69.8.0",
|
|
42
42
|
"@atlaskit/icon": "^29.0.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/theme": "^21.0.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
46
|
-
"@atlaskit/tokens": "^8.
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^13.42.0",
|
|
46
|
+
"@atlaskit/tokens": "^8.2.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"uuid": "^3.1.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@atlaskit/editor-common": "^110.
|
|
51
|
+
"@atlaskit/editor-common": "^110.34.0",
|
|
52
52
|
"react": "^18.2.0",
|
|
53
53
|
"react-dom": "^18.2.0",
|
|
54
54
|
"react-intl-next": "npm:react-intl@^5.18.1"
|