@atlaskit/editor-plugin-block-menu 6.0.2 → 6.0.3
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 +8 -0
- package/dist/cjs/editor-actions/isTransformToTargetDisabled.js +2 -2
- package/dist/cjs/editor-commands/transform-node-utils/transform.js +2 -0
- package/dist/es2019/editor-actions/isTransformToTargetDisabled.js +2 -2
- package/dist/es2019/editor-commands/transform-node-utils/transform.js +2 -0
- package/dist/esm/editor-actions/isTransformToTargetDisabled.js +2 -2
- package/dist/esm/editor-commands/transform-node-utils/transform.js +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-menu
|
|
2
2
|
|
|
3
|
+
## 6.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c94a46ce70f89`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c94a46ce70f89) -
|
|
8
|
+
[ux] File can't be transformed to bullet or ordered list. Disable those options in the 'Turn into'
|
|
9
|
+
menu.
|
|
10
|
+
|
|
3
11
|
## 6.0.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -18,8 +18,8 @@ var canParentContainNodeType = exports.canParentContainNodeType = function canPa
|
|
|
18
18
|
var content = null;
|
|
19
19
|
var nodesThatCantBeNestedInNestedExpand = ['blockCard', 'embedCard', 'table'];
|
|
20
20
|
if (nodesThatCantBeNestedInNestedExpand.includes(selectedNodeTypeName) && (adjustedNodeTypeName === 'expand' || adjustedNodeTypeName === 'nestedExpand')) {
|
|
21
|
-
var
|
|
22
|
-
content =
|
|
21
|
+
var node = schema.nodes[selectedNodeTypeName];
|
|
22
|
+
content = node.createAndFill();
|
|
23
23
|
}
|
|
24
24
|
return parentNode.type.validContent(_model.Fragment.from(nodeType.createAndFill(nodeTypeAttrs, content)));
|
|
25
25
|
};
|
|
@@ -12,8 +12,8 @@ export const canParentContainNodeType = (schema, selectedNodeTypeName, parentNod
|
|
|
12
12
|
let content = null;
|
|
13
13
|
const nodesThatCantBeNestedInNestedExpand = ['blockCard', 'embedCard', 'table'];
|
|
14
14
|
if (nodesThatCantBeNestedInNestedExpand.includes(selectedNodeTypeName) && (adjustedNodeTypeName === 'expand' || adjustedNodeTypeName === 'nestedExpand')) {
|
|
15
|
-
const
|
|
16
|
-
content =
|
|
15
|
+
const node = schema.nodes[selectedNodeTypeName];
|
|
16
|
+
content = node.createAndFill();
|
|
17
17
|
}
|
|
18
18
|
return parentNode.type.validContent(Fragment.from(nodeType.createAndFill(nodeTypeAttrs, content)));
|
|
19
19
|
};
|
|
@@ -12,8 +12,8 @@ export var canParentContainNodeType = function canParentContainNodeType(schema,
|
|
|
12
12
|
var content = null;
|
|
13
13
|
var nodesThatCantBeNestedInNestedExpand = ['blockCard', 'embedCard', 'table'];
|
|
14
14
|
if (nodesThatCantBeNestedInNestedExpand.includes(selectedNodeTypeName) && (adjustedNodeTypeName === 'expand' || adjustedNodeTypeName === 'nestedExpand')) {
|
|
15
|
-
var
|
|
16
|
-
content =
|
|
15
|
+
var node = schema.nodes[selectedNodeTypeName];
|
|
16
|
+
content = node.createAndFill();
|
|
17
17
|
}
|
|
18
18
|
return parentNode.type.validContent(Fragment.from(nodeType.createAndFill(nodeTypeAttrs, content)));
|
|
19
19
|
};
|