@atlaskit/editor-plugin-panel 8.1.9 → 8.1.11
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/panelPlugin.js +1 -1
- package/dist/cjs/pm-plugins/main.js +6 -0
- package/dist/es2019/panelPlugin.js +2 -2
- package/dist/es2019/pm-plugins/main.js +6 -0
- package/dist/esm/panelPlugin.js +2 -2
- package/dist/esm/pm-plugins/main.js +6 -0
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-panel
|
|
2
2
|
|
|
3
|
+
## 8.1.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`43d1dfc88c1de`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/43d1dfc88c1de) -
|
|
8
|
+
Clean up platform_editor_block_menu_format_rank_revised
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 8.1.10
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`4d676bbdb3ce6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4d676bbdb3ce6) -
|
|
16
|
+
ts-ignore added temporarily to unblock local consumption for help-center, will be removed once
|
|
17
|
+
project refs are setup
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 8.1.9
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/cjs/panelPlugin.js
CHANGED
|
@@ -38,7 +38,7 @@ var panelPlugin = function panelPlugin(_ref) {
|
|
|
38
38
|
parent: {
|
|
39
39
|
type: 'block-menu-section',
|
|
40
40
|
key: _blockMenu.FORMAT_MENU_ITEM.key,
|
|
41
|
-
rank:
|
|
41
|
+
rank: _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_PANEL_MENU_ITEM.key]
|
|
42
42
|
},
|
|
43
43
|
component: (0, _panelBlockMenuItem.createPanelBlockMenuItem)(api)
|
|
44
44
|
}]);
|
|
@@ -15,7 +15,11 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatch, provid
|
|
|
15
15
|
useLongPressSelection = _pluginOptions$useLon === void 0 ? false : _pluginOptions$useLon;
|
|
16
16
|
return new _safePlugin.SafePlugin({
|
|
17
17
|
key: _panelPluginType.pluginKey,
|
|
18
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
19
|
+
|
|
18
20
|
appendTransaction: function appendTransaction(transactions, oldState, newState) {
|
|
21
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
22
|
+
|
|
19
23
|
var tr = transactions.find(function (tr) {
|
|
20
24
|
return tr.getMeta('uiEvent') === 'cut';
|
|
21
25
|
});
|
|
@@ -24,6 +28,8 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatch, provid
|
|
|
24
28
|
}
|
|
25
29
|
},
|
|
26
30
|
props: {
|
|
31
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
32
|
+
|
|
27
33
|
nodeViews: {
|
|
28
34
|
panel: (0, _panel2.getPanelNodeView)(pluginOptions, api, nodeViewPortalProviderAPI, providerFactory)
|
|
29
35
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { extendedPanel, extendedPanelWithLocalId, PanelType } from '@atlaskit/adf-schema';
|
|
3
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import { FORMAT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_NESTED_MENU_RANK
|
|
4
|
+
import { FORMAT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_NESTED_MENU_RANK } from '@atlaskit/editor-common/block-menu';
|
|
5
5
|
import { insertSelectedItem } from '@atlaskit/editor-common/insert';
|
|
6
6
|
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
import { IconCustomPanel, IconPanel, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning } from '@atlaskit/editor-common/quick-insert';
|
|
@@ -28,7 +28,7 @@ const panelPlugin = ({
|
|
|
28
28
|
parent: {
|
|
29
29
|
type: 'block-menu-section',
|
|
30
30
|
key: FORMAT_MENU_ITEM.key,
|
|
31
|
-
rank:
|
|
31
|
+
rank: FORMAT_NESTED_MENU_RANK[FORMAT_PANEL_MENU_ITEM.key]
|
|
32
32
|
},
|
|
33
33
|
component: createPanelBlockMenuItem(api)
|
|
34
34
|
}]);
|
|
@@ -10,13 +10,19 @@ export const createPlugin = (dispatch, providerFactory, pluginOptions, api, node
|
|
|
10
10
|
} = pluginOptions;
|
|
11
11
|
return new SafePlugin({
|
|
12
12
|
key: pluginKey,
|
|
13
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
14
|
+
|
|
13
15
|
appendTransaction: (transactions, oldState, newState) => {
|
|
16
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
17
|
+
|
|
14
18
|
const tr = transactions.find(tr => tr.getMeta('uiEvent') === 'cut');
|
|
15
19
|
if (tr) {
|
|
16
20
|
return handleCut(newState, oldState);
|
|
17
21
|
}
|
|
18
22
|
},
|
|
19
23
|
props: {
|
|
24
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
25
|
+
|
|
20
26
|
nodeViews: {
|
|
21
27
|
panel: getPanelNodeView(pluginOptions, api, nodeViewPortalProviderAPI, providerFactory)
|
|
22
28
|
},
|
package/dist/esm/panelPlugin.js
CHANGED
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { extendedPanel, extendedPanelWithLocalId, PanelType } from '@atlaskit/adf-schema';
|
|
6
6
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
import { FORMAT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_NESTED_MENU_RANK
|
|
7
|
+
import { FORMAT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_NESTED_MENU_RANK } from '@atlaskit/editor-common/block-menu';
|
|
8
8
|
import { insertSelectedItem } from '@atlaskit/editor-common/insert';
|
|
9
9
|
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
10
10
|
import { IconCustomPanel, IconPanel, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning } from '@atlaskit/editor-common/quick-insert';
|
|
@@ -31,7 +31,7 @@ var panelPlugin = function panelPlugin(_ref) {
|
|
|
31
31
|
parent: {
|
|
32
32
|
type: 'block-menu-section',
|
|
33
33
|
key: FORMAT_MENU_ITEM.key,
|
|
34
|
-
rank:
|
|
34
|
+
rank: FORMAT_NESTED_MENU_RANK[FORMAT_PANEL_MENU_ITEM.key]
|
|
35
35
|
},
|
|
36
36
|
component: createPanelBlockMenuItem(api)
|
|
37
37
|
}]);
|
|
@@ -9,7 +9,11 @@ export var createPlugin = function createPlugin(dispatch, providerFactory, plugi
|
|
|
9
9
|
useLongPressSelection = _pluginOptions$useLon === void 0 ? false : _pluginOptions$useLon;
|
|
10
10
|
return new SafePlugin({
|
|
11
11
|
key: pluginKey,
|
|
12
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
13
|
+
|
|
12
14
|
appendTransaction: function appendTransaction(transactions, oldState, newState) {
|
|
15
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
16
|
+
|
|
13
17
|
var tr = transactions.find(function (tr) {
|
|
14
18
|
return tr.getMeta('uiEvent') === 'cut';
|
|
15
19
|
});
|
|
@@ -18,6 +22,8 @@ export var createPlugin = function createPlugin(dispatch, providerFactory, plugi
|
|
|
18
22
|
}
|
|
19
23
|
},
|
|
20
24
|
props: {
|
|
25
|
+
// @ts-ignore - Workaround for help-center local consumption
|
|
26
|
+
|
|
21
27
|
nodeViews: {
|
|
22
28
|
panel: getPanelNodeView(pluginOptions, api, nodeViewPortalProviderAPI, providerFactory)
|
|
23
29
|
},
|
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.11",
|
|
4
4
|
"description": "Panel plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,8 +42,8 @@
|
|
|
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.43.0",
|
|
46
|
+
"@atlaskit/tokens": "^8.3.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"uuid": "^3.1.0"
|
|
49
49
|
},
|
|
@@ -96,9 +96,6 @@
|
|
|
96
96
|
"platform_editor_adf_with_localid": {
|
|
97
97
|
"type": "boolean"
|
|
98
98
|
},
|
|
99
|
-
"platform_editor_block_menu_format_rank_revised": {
|
|
100
|
-
"type": "boolean"
|
|
101
|
-
},
|
|
102
99
|
"platform_editor_ai_aifc_patch_beta": {
|
|
103
100
|
"type": "boolean"
|
|
104
101
|
}
|