@atlaskit/editor-plugin-block-menu 6.0.5 → 6.0.6

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.
Files changed (23) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/editor-commands/transform-node-utils/steps/wrapBlockquoteToDecisionListStep.js +2 -12
  3. package/dist/cjs/editor-commands/transform-node-utils/steps/wrapMixedContentStep.js +69 -52
  4. package/dist/cjs/editor-commands/transform-node-utils/transform.js +18 -21
  5. package/dist/cjs/editor-commands/transform-node-utils/utils.js +10 -1
  6. package/dist/es2019/editor-commands/transform-node-utils/steps/wrapBlockquoteToDecisionListStep.js +1 -11
  7. package/dist/es2019/editor-commands/transform-node-utils/steps/wrapMixedContentStep.js +71 -53
  8. package/dist/es2019/editor-commands/transform-node-utils/transform.js +18 -21
  9. package/dist/es2019/editor-commands/transform-node-utils/utils.js +10 -0
  10. package/dist/esm/editor-commands/transform-node-utils/steps/wrapBlockquoteToDecisionListStep.js +1 -11
  11. package/dist/esm/editor-commands/transform-node-utils/steps/wrapMixedContentStep.js +70 -53
  12. package/dist/esm/editor-commands/transform-node-utils/transform.js +18 -21
  13. package/dist/esm/editor-commands/transform-node-utils/utils.js +10 -0
  14. package/dist/types/editor-commands/transform-node-utils/steps/wrapMixedContentStep.d.ts +17 -2
  15. package/dist/types/editor-commands/transform-node-utils/utils.d.ts +5 -0
  16. package/dist/types-ts4.5/editor-commands/transform-node-utils/steps/wrapMixedContentStep.d.ts +17 -2
  17. package/dist/types-ts4.5/editor-commands/transform-node-utils/utils.d.ts +5 -0
  18. package/package.json +3 -3
  19. package/dist/cjs/editor-commands/transform-node-utils/wrapIntoLayoutStep.js +0 -20
  20. package/dist/es2019/editor-commands/transform-node-utils/wrapIntoLayoutStep.js +0 -17
  21. package/dist/esm/editor-commands/transform-node-utils/wrapIntoLayoutStep.js +0 -14
  22. package/dist/types/editor-commands/transform-node-utils/wrapIntoLayoutStep.d.ts +0 -2
  23. package/dist/types-ts4.5/editor-commands/transform-node-utils/wrapIntoLayoutStep.d.ts +0 -2
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.wrapIntoLayoutStep = void 0;
7
- var _marks = require("./marks");
8
- var wrapIntoLayoutStep = exports.wrapIntoLayoutStep = function wrapIntoLayoutStep(nodes, context) {
9
- var schema = context.schema;
10
- var _ref = schema.nodes || {},
11
- layoutSection = _ref.layoutSection,
12
- layoutColumn = _ref.layoutColumn;
13
- var columnOne = layoutColumn.createAndFill({}, (0, _marks.removeDisallowedMarks)(nodes, layoutColumn));
14
- var columnTwo = layoutColumn.createAndFill();
15
- if (!columnOne || !columnTwo) {
16
- return nodes;
17
- }
18
- var layout = layoutSection.createAndFill({}, [columnOne, columnTwo]);
19
- return layout ? [layout] : nodes;
20
- };
@@ -1,17 +0,0 @@
1
- import { removeDisallowedMarks } from './marks';
2
- export const wrapIntoLayoutStep = (nodes, context) => {
3
- const {
4
- schema
5
- } = context;
6
- const {
7
- layoutSection,
8
- layoutColumn
9
- } = schema.nodes || {};
10
- const columnOne = layoutColumn.createAndFill({}, removeDisallowedMarks(nodes, layoutColumn));
11
- const columnTwo = layoutColumn.createAndFill();
12
- if (!columnOne || !columnTwo) {
13
- return nodes;
14
- }
15
- const layout = layoutSection.createAndFill({}, [columnOne, columnTwo]);
16
- return layout ? [layout] : nodes;
17
- };
@@ -1,14 +0,0 @@
1
- import { removeDisallowedMarks } from './marks';
2
- export var wrapIntoLayoutStep = function wrapIntoLayoutStep(nodes, context) {
3
- var schema = context.schema;
4
- var _ref = schema.nodes || {},
5
- layoutSection = _ref.layoutSection,
6
- layoutColumn = _ref.layoutColumn;
7
- var columnOne = layoutColumn.createAndFill({}, removeDisallowedMarks(nodes, layoutColumn));
8
- var columnTwo = layoutColumn.createAndFill();
9
- if (!columnOne || !columnTwo) {
10
- return nodes;
11
- }
12
- var layout = layoutSection.createAndFill({}, [columnOne, columnTwo]);
13
- return layout ? [layout] : nodes;
14
- };
@@ -1,2 +0,0 @@
1
- import type { TransformStep } from './types';
2
- export declare const wrapIntoLayoutStep: TransformStep;
@@ -1,2 +0,0 @@
1
- import type { TransformStep } from './types';
2
- export declare const wrapIntoLayoutStep: TransformStep;