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

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 (27) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/editor-commands/transform-node-utils/steps/convertEachNodeStep.js +46 -0
  3. package/dist/cjs/editor-commands/transform-node-utils/steps/mergeNeighbourListsStep.js +91 -0
  4. package/dist/cjs/editor-commands/transform-node-utils/transform.js +28 -10
  5. package/dist/cjs/editor-commands/transformNode.js +65 -65
  6. package/dist/es2019/editor-commands/transform-node-utils/steps/convertEachNodeStep.js +28 -0
  7. package/dist/es2019/editor-commands/transform-node-utils/steps/mergeNeighbourListsStep.js +75 -0
  8. package/dist/es2019/editor-commands/transform-node-utils/transform.js +27 -9
  9. package/dist/es2019/editor-commands/transformNode.js +64 -67
  10. package/dist/esm/editor-commands/transform-node-utils/steps/convertEachNodeStep.js +39 -0
  11. package/dist/esm/editor-commands/transform-node-utils/steps/mergeNeighbourListsStep.js +85 -0
  12. package/dist/esm/editor-commands/transform-node-utils/transform.js +27 -9
  13. package/dist/esm/editor-commands/transformNode.js +64 -65
  14. package/dist/types/editor-commands/transform-node-utils/steps/convertEachNodeStep.d.ts +2 -0
  15. package/dist/types/editor-commands/transform-node-utils/steps/mergeNeighbourListsStep.d.ts +32 -0
  16. package/dist/types/editor-commands/transform-node-utils/transform.d.ts +16 -1
  17. package/dist/types/editor-commands/transformNode.d.ts +1 -1
  18. package/dist/types-ts4.5/editor-commands/transform-node-utils/steps/convertEachNodeStep.d.ts +2 -0
  19. package/dist/types-ts4.5/editor-commands/transform-node-utils/steps/mergeNeighbourListsStep.d.ts +32 -0
  20. package/dist/types-ts4.5/editor-commands/transform-node-utils/transform.d.ts +16 -1
  21. package/dist/types-ts4.5/editor-commands/transformNode.d.ts +1 -1
  22. package/package.json +3 -3
  23. package/dist/cjs/editor-commands/transform-node-utils/tranformContent.js +0 -19
  24. package/dist/es2019/editor-commands/transform-node-utils/tranformContent.js +0 -13
  25. package/dist/esm/editor-commands/transform-node-utils/tranformContent.js +0 -13
  26. package/dist/types/editor-commands/transform-node-utils/tranformContent.d.ts +0 -3
  27. package/dist/types-ts4.5/editor-commands/transform-node-utils/tranformContent.d.ts +0 -3
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.tranformContent = void 0;
7
- var _model = require("@atlaskit/editor-prosemirror/model");
8
- var _transform = require("./transform");
9
- var tranformContent = exports.tranformContent = function tranformContent(content, targetNodeType, schema, isNested, targetAttrs, parent) {
10
- var outputNodes = (0, _transform.getOutputNodes)({
11
- sourceNodes: Array.from(content.content),
12
- targetNodeType: targetNodeType,
13
- schema: schema,
14
- isNested: isNested,
15
- targetAttrs: targetAttrs,
16
- parentNode: parent
17
- });
18
- return outputNodes ? _model.Fragment.fromArray(outputNodes) : content;
19
- };
@@ -1,13 +0,0 @@
1
- import { Fragment } from '@atlaskit/editor-prosemirror/model';
2
- import { getOutputNodes } from './transform';
3
- export const tranformContent = (content, targetNodeType, schema, isNested, targetAttrs, parent) => {
4
- const outputNodes = getOutputNodes({
5
- sourceNodes: Array.from(content.content),
6
- targetNodeType,
7
- schema,
8
- isNested,
9
- targetAttrs,
10
- parentNode: parent
11
- });
12
- return outputNodes ? Fragment.fromArray(outputNodes) : content;
13
- };
@@ -1,13 +0,0 @@
1
- import { Fragment } from '@atlaskit/editor-prosemirror/model';
2
- import { getOutputNodes } from './transform';
3
- export var tranformContent = function tranformContent(content, targetNodeType, schema, isNested, targetAttrs, parent) {
4
- var outputNodes = getOutputNodes({
5
- sourceNodes: Array.from(content.content),
6
- targetNodeType: targetNodeType,
7
- schema: schema,
8
- isNested: isNested,
9
- targetAttrs: targetAttrs,
10
- parentNode: parent
11
- });
12
- return outputNodes ? Fragment.fromArray(outputNodes) : content;
13
- };
@@ -1,3 +0,0 @@
1
- import type { NodeType, Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
- import { Fragment } from '@atlaskit/editor-prosemirror/model';
3
- export declare const tranformContent: (content: Fragment, targetNodeType: NodeType, schema: Schema, isNested: boolean, targetAttrs?: Record<string, unknown>, parent?: PMNode) => Fragment;
@@ -1,3 +0,0 @@
1
- import type { NodeType, Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
- import { Fragment } from '@atlaskit/editor-prosemirror/model';
3
- export declare const tranformContent: (content: Fragment, targetNodeType: NodeType, schema: Schema, isNested: boolean, targetAttrs?: Record<string, unknown>, parent?: PMNode) => Fragment;