@atlaskit/editor-plugin-panel 8.0.7 → 8.0.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 +18 -0
- package/dist/cjs/panelPlugin.js +8 -0
- package/dist/cjs/ui/panelBlockMenuItem.js +2 -2
- package/dist/es2019/panelPlugin.js +9 -0
- package/dist/es2019/ui/panelBlockMenuItem.js +2 -2
- package/dist/esm/panelPlugin.js +8 -0
- package/dist/esm/ui/panelBlockMenuItem.js +2 -2
- package/package.json +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-panel
|
|
2
2
|
|
|
3
|
+
## 8.0.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f71099b9904fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f71099b9904fc) -
|
|
8
|
+
EDITOR-1987: Patch the panel node spec to be definingAsContext so that panels aren't removed when
|
|
9
|
+
content is replaced.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 8.0.8
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`26917199e153a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/26917199e153a) -
|
|
17
|
+
ED-29473 Add inputMethod attribute for block menu opened and switch inputMethod and triggeredFrom
|
|
18
|
+
attributes for element converted event
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 8.0.7
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/cjs/panelPlugin.js
CHANGED
|
@@ -47,6 +47,14 @@ var panelPlugin = function panelPlugin(_ref) {
|
|
|
47
47
|
name: 'panel',
|
|
48
48
|
nodes: function nodes() {
|
|
49
49
|
if ((0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid')) {
|
|
50
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_ai_aifc_patch_beta')) {
|
|
51
|
+
return [{
|
|
52
|
+
name: 'panel',
|
|
53
|
+
node: _objectSpread(_objectSpread({}, (0, _adfSchema.extendedPanelWithLocalId)(!!options.allowCustomPanel)), {}, {
|
|
54
|
+
definingAsContext: true
|
|
55
|
+
})
|
|
56
|
+
}];
|
|
57
|
+
}
|
|
50
58
|
return [{
|
|
51
59
|
name: 'panel',
|
|
52
60
|
node: (0, _adfSchema.extendedPanelWithLocalId)(!!options.allowCustomPanel)
|
|
@@ -33,8 +33,8 @@ var PanelBlockMenuItem = function PanelBlockMenuItem(_ref) {
|
|
|
33
33
|
}, [selection]);
|
|
34
34
|
var handleClick = function handleClick(event) {
|
|
35
35
|
var _api$blockMenu;
|
|
36
|
-
var
|
|
37
|
-
var
|
|
36
|
+
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? _analytics.INPUT_METHOD.KEYBOARD : _analytics.INPUT_METHOD.MOUSE;
|
|
37
|
+
var inputMethod = _analytics.INPUT_METHOD.BLOCK_MENU;
|
|
38
38
|
api === null || api === 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.formatNode(nodeName, {
|
|
39
39
|
inputMethod: inputMethod,
|
|
40
40
|
triggeredFrom: triggeredFrom
|
|
@@ -37,6 +37,15 @@ const panelPlugin = ({
|
|
|
37
37
|
name: 'panel',
|
|
38
38
|
nodes() {
|
|
39
39
|
if (fg('platform_editor_adf_with_localid')) {
|
|
40
|
+
if (fg('platform_editor_ai_aifc_patch_beta')) {
|
|
41
|
+
return [{
|
|
42
|
+
name: 'panel',
|
|
43
|
+
node: {
|
|
44
|
+
...extendedPanelWithLocalId(!!options.allowCustomPanel),
|
|
45
|
+
definingAsContext: true
|
|
46
|
+
}
|
|
47
|
+
}];
|
|
48
|
+
}
|
|
40
49
|
return [{
|
|
41
50
|
name: 'panel',
|
|
42
51
|
node: extendedPanelWithLocalId(!!options.allowCustomPanel)
|
|
@@ -26,8 +26,8 @@ const PanelBlockMenuItem = ({
|
|
|
26
26
|
}, [selection]);
|
|
27
27
|
const handleClick = event => {
|
|
28
28
|
var _api$blockMenu;
|
|
29
|
-
const
|
|
30
|
-
const
|
|
29
|
+
const triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
|
|
30
|
+
const inputMethod = INPUT_METHOD.BLOCK_MENU;
|
|
31
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.formatNode(nodeName, {
|
|
32
32
|
inputMethod,
|
|
33
33
|
triggeredFrom
|
package/dist/esm/panelPlugin.js
CHANGED
|
@@ -40,6 +40,14 @@ var panelPlugin = function panelPlugin(_ref) {
|
|
|
40
40
|
name: 'panel',
|
|
41
41
|
nodes: function nodes() {
|
|
42
42
|
if (fg('platform_editor_adf_with_localid')) {
|
|
43
|
+
if (fg('platform_editor_ai_aifc_patch_beta')) {
|
|
44
|
+
return [{
|
|
45
|
+
name: 'panel',
|
|
46
|
+
node: _objectSpread(_objectSpread({}, extendedPanelWithLocalId(!!options.allowCustomPanel)), {}, {
|
|
47
|
+
definingAsContext: true
|
|
48
|
+
})
|
|
49
|
+
}];
|
|
50
|
+
}
|
|
43
51
|
return [{
|
|
44
52
|
name: 'panel',
|
|
45
53
|
node: extendedPanelWithLocalId(!!options.allowCustomPanel)
|
|
@@ -24,8 +24,8 @@ var PanelBlockMenuItem = function PanelBlockMenuItem(_ref) {
|
|
|
24
24
|
}, [selection]);
|
|
25
25
|
var handleClick = function handleClick(event) {
|
|
26
26
|
var _api$blockMenu;
|
|
27
|
-
var
|
|
28
|
-
var
|
|
27
|
+
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
|
|
28
|
+
var inputMethod = INPUT_METHOD.BLOCK_MENU;
|
|
29
29
|
api === null || api === 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.formatNode(nodeName, {
|
|
30
30
|
inputMethod: inputMethod,
|
|
31
31
|
triggeredFrom: triggeredFrom
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-panel",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.9",
|
|
4
4
|
"description": "Panel plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,22 +33,22 @@
|
|
|
33
33
|
"@atlaskit/editor-plugin-block-menu": "^4.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-decorations": "^6.1.0",
|
|
35
35
|
"@atlaskit/editor-plugin-emoji": "^7.1.0",
|
|
36
|
-
"@atlaskit/editor-plugin-selection": "^6.
|
|
36
|
+
"@atlaskit/editor-plugin-selection": "^6.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-toolbar": "^3.1.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
39
39
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
40
40
|
"@atlaskit/editor-toolbar": "^0.14.0",
|
|
41
41
|
"@atlaskit/emoji": "^69.5.0",
|
|
42
|
-
"@atlaskit/icon": "^28.
|
|
42
|
+
"@atlaskit/icon": "^28.5.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/theme": "^21.0.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^13.5.0",
|
|
46
46
|
"@atlaskit/tokens": "^6.4.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.7.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"
|
|
@@ -98,6 +98,9 @@
|
|
|
98
98
|
},
|
|
99
99
|
"platform_editor_block_menu_format_rank_revised": {
|
|
100
100
|
"type": "boolean"
|
|
101
|
+
},
|
|
102
|
+
"platform_editor_ai_aifc_patch_beta": {
|
|
103
|
+
"type": "boolean"
|
|
101
104
|
}
|
|
102
105
|
},
|
|
103
106
|
"stricter": {
|