@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 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 table = schema.nodes[selectedNodeTypeName];
22
- content = table.createAndFill();
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
  };
@@ -172,6 +172,8 @@ var TRANSFORM_STEPS_OVERRIDE = {
172
172
  layoutSection: [_wrapIntoLayoutStep.wrapIntoLayoutStep],
173
173
  codeBlock: null,
174
174
  decisionList: null,
175
+ bulletList: null,
176
+ orderedList: null,
175
177
  taskList: null
176
178
  },
177
179
  decisionList: {
@@ -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 table = schema.nodes[selectedNodeTypeName];
16
- content = table.createAndFill();
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
  };
@@ -167,6 +167,8 @@ const TRANSFORM_STEPS_OVERRIDE = {
167
167
  layoutSection: [wrapIntoLayoutStep],
168
168
  codeBlock: null,
169
169
  decisionList: null,
170
+ bulletList: null,
171
+ orderedList: null,
170
172
  taskList: null
171
173
  },
172
174
  decisionList: {
@@ -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 table = schema.nodes[selectedNodeTypeName];
16
- content = table.createAndFill();
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
  };
@@ -167,6 +167,8 @@ var TRANSFORM_STEPS_OVERRIDE = {
167
167
  layoutSection: [wrapIntoLayoutStep],
168
168
  codeBlock: null,
169
169
  decisionList: null,
170
+ bulletList: null,
171
+ orderedList: null,
170
172
  taskList: null
171
173
  },
172
174
  decisionList: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-menu",
3
- "version": "6.0.2",
3
+ "version": "6.0.3",
4
4
  "description": "BlockMenu plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",