@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.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/editor-commands/transform-node-utils/steps/convertEachNodeStep.js +46 -0
- package/dist/cjs/editor-commands/transform-node-utils/steps/mergeNeighbourListsStep.js +91 -0
- package/dist/cjs/editor-commands/transform-node-utils/transform.js +28 -10
- package/dist/cjs/editor-commands/transformNode.js +65 -65
- package/dist/es2019/editor-commands/transform-node-utils/steps/convertEachNodeStep.js +28 -0
- package/dist/es2019/editor-commands/transform-node-utils/steps/mergeNeighbourListsStep.js +75 -0
- package/dist/es2019/editor-commands/transform-node-utils/transform.js +27 -9
- package/dist/es2019/editor-commands/transformNode.js +64 -67
- package/dist/esm/editor-commands/transform-node-utils/steps/convertEachNodeStep.js +39 -0
- package/dist/esm/editor-commands/transform-node-utils/steps/mergeNeighbourListsStep.js +85 -0
- package/dist/esm/editor-commands/transform-node-utils/transform.js +27 -9
- package/dist/esm/editor-commands/transformNode.js +64 -65
- package/dist/types/editor-commands/transform-node-utils/steps/convertEachNodeStep.d.ts +2 -0
- package/dist/types/editor-commands/transform-node-utils/steps/mergeNeighbourListsStep.d.ts +32 -0
- package/dist/types/editor-commands/transform-node-utils/transform.d.ts +16 -1
- package/dist/types/editor-commands/transformNode.d.ts +1 -1
- package/dist/types-ts4.5/editor-commands/transform-node-utils/steps/convertEachNodeStep.d.ts +2 -0
- package/dist/types-ts4.5/editor-commands/transform-node-utils/steps/mergeNeighbourListsStep.d.ts +32 -0
- package/dist/types-ts4.5/editor-commands/transform-node-utils/transform.d.ts +16 -1
- package/dist/types-ts4.5/editor-commands/transformNode.d.ts +1 -1
- package/package.json +3 -3
- package/dist/cjs/editor-commands/transform-node-utils/tranformContent.js +0 -19
- package/dist/es2019/editor-commands/transform-node-utils/tranformContent.js +0 -13
- package/dist/esm/editor-commands/transform-node-utils/tranformContent.js +0 -13
- package/dist/types/editor-commands/transform-node-utils/tranformContent.d.ts +0 -3
- 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;
|