@atlaskit/editor-plugin-extension 13.1.12 → 13.2.0
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,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 13.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`136d15a32935f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/136d15a32935f) -
|
|
8
|
+
[ux] Adding initial scaffolding (non-functional) for agent-managed blocks as an editor
|
|
9
|
+
extension/plugin and use in Confluence
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 13.1.12
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -55,6 +55,12 @@ var isLayoutSupported = function isLayoutSupported(state, selectedExtNode) {
|
|
|
55
55
|
if (!selectedExtNode) {
|
|
56
56
|
return false;
|
|
57
57
|
}
|
|
58
|
+
|
|
59
|
+
// Skip agent-managed-block extension until it supports the layout controls in its custom node
|
|
60
|
+
var extensionKey = selectedExtNode.node.attrs.extensionKey;
|
|
61
|
+
if (_extensions.AGENT_MANAGED_EXTENSION_KEY === extensionKey) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
58
64
|
var isMultiBodiedExtension = selectedExtNode.node.type === multiBodiedExtension;
|
|
59
65
|
var isNonEmbeddedBodiedExtension = selectedExtNode.node.type === bodiedExtension && !(0, _utils2.hasParentNodeOfType)([multiBodiedExtension].filter(Boolean))(selection);
|
|
60
66
|
var isNonEmbeddedExtension = selectedExtNode.node.type === extension && !(0, _utils2.hasParentNodeOfType)([bodiedExtension, table, expand, multiBodiedExtension].filter(Boolean))(selection);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { INPUT_METHOD, ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import { messages, NATIVE_EMBED_EXTENSION_KEY, NATIVE_EMBED_EXTENSION_TYPE } from '@atlaskit/editor-common/extensions';
|
|
3
|
+
import { messages, AGENT_MANAGED_EXTENSION_KEY, NATIVE_EMBED_EXTENSION_KEY, NATIVE_EMBED_EXTENSION_TYPE } from '@atlaskit/editor-common/extensions';
|
|
4
4
|
import commonMessages from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { BODIED_EXT_MBE_MARGIN_TOP } from '@atlaskit/editor-common/styles';
|
|
6
6
|
import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
|
|
@@ -55,6 +55,12 @@ const isLayoutSupported = (state, selectedExtNode) => {
|
|
|
55
55
|
if (!selectedExtNode) {
|
|
56
56
|
return false;
|
|
57
57
|
}
|
|
58
|
+
|
|
59
|
+
// Skip agent-managed-block extension until it supports the layout controls in its custom node
|
|
60
|
+
const extensionKey = selectedExtNode.node.attrs.extensionKey;
|
|
61
|
+
if (AGENT_MANAGED_EXTENSION_KEY === extensionKey) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
58
64
|
const isMultiBodiedExtension = selectedExtNode.node.type === multiBodiedExtension;
|
|
59
65
|
const isNonEmbeddedBodiedExtension = selectedExtNode.node.type === bodiedExtension && !hasParentNodeOfType([multiBodiedExtension].filter(Boolean))(selection);
|
|
60
66
|
const isNonEmbeddedExtension = selectedExtNode.node.type === extension && !hasParentNodeOfType([bodiedExtension, table, expand, multiBodiedExtension].filter(Boolean))(selection);
|
|
@@ -4,7 +4,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { INPUT_METHOD, ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
import { messages, NATIVE_EMBED_EXTENSION_KEY, NATIVE_EMBED_EXTENSION_TYPE } from '@atlaskit/editor-common/extensions';
|
|
7
|
+
import { messages, AGENT_MANAGED_EXTENSION_KEY, NATIVE_EMBED_EXTENSION_KEY, NATIVE_EMBED_EXTENSION_TYPE } from '@atlaskit/editor-common/extensions';
|
|
8
8
|
import commonMessages from '@atlaskit/editor-common/messages';
|
|
9
9
|
import { BODIED_EXT_MBE_MARGIN_TOP } from '@atlaskit/editor-common/styles';
|
|
10
10
|
import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
|
|
@@ -49,6 +49,12 @@ var isLayoutSupported = function isLayoutSupported(state, selectedExtNode) {
|
|
|
49
49
|
if (!selectedExtNode) {
|
|
50
50
|
return false;
|
|
51
51
|
}
|
|
52
|
+
|
|
53
|
+
// Skip agent-managed-block extension until it supports the layout controls in its custom node
|
|
54
|
+
var extensionKey = selectedExtNode.node.attrs.extensionKey;
|
|
55
|
+
if (AGENT_MANAGED_EXTENSION_KEY === extensionKey) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
52
58
|
var isMultiBodiedExtension = selectedExtNode.node.type === multiBodiedExtension;
|
|
53
59
|
var isNonEmbeddedBodiedExtension = selectedExtNode.node.type === bodiedExtension && !hasParentNodeOfType([multiBodiedExtension].filter(Boolean))(selection);
|
|
54
60
|
var isNonEmbeddedExtension = selectedExtNode.node.type === extension && !hasParentNodeOfType([bodiedExtension, table, expand, multiBodiedExtension].filter(Boolean))(selection);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.2.0",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@atlaskit/tabs": "^19.1.0",
|
|
60
60
|
"@atlaskit/textarea": "^8.3.0",
|
|
61
61
|
"@atlaskit/textfield": "^8.3.0",
|
|
62
|
-
"@atlaskit/tmp-editor-statsig": "^77.
|
|
62
|
+
"@atlaskit/tmp-editor-statsig": "^77.2.0",
|
|
63
63
|
"@atlaskit/toggle": "^15.6.0",
|
|
64
64
|
"@atlaskit/tokens": "^13.0.0",
|
|
65
65
|
"@atlaskit/tooltip": "^22.0.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"uuid": "^3.1.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@atlaskit/editor-common": "^114.
|
|
76
|
+
"@atlaskit/editor-common": "^114.25.0",
|
|
77
77
|
"react": "^18.2.0",
|
|
78
78
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
79
79
|
},
|