mce 0.17.5 → 0.17.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.
- package/dist/crdt/YDoc.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/scene/Doc.d.ts +1 -0
- package/package.json +1 -1
package/dist/crdt/YDoc.d.ts
CHANGED
|
@@ -41,6 +41,6 @@ export declare class YDoc extends Observable {
|
|
|
41
41
|
_proxyRoot(root: Node): this;
|
|
42
42
|
protected _proxyProps(obj: CoreObject, yMap: Y.Map<any>, isMeta?: boolean): void;
|
|
43
43
|
protected _proxyChildren(node: Node, childrenIds: Y.Array<string>): void;
|
|
44
|
-
|
|
44
|
+
_proxyNode(node: Node, yNode?: YNode, yChildrenIds?: Y.Array<string>): Node;
|
|
45
45
|
protected _initYNode(yNode: YNode): Node;
|
|
46
46
|
}
|
package/dist/index.js
CHANGED
|
@@ -1164,6 +1164,7 @@ class Doc extends Node$1 {
|
|
|
1164
1164
|
redo = () => this._yDoc.undoManager.redo();
|
|
1165
1165
|
stopCapturing = () => this._yDoc.undoManager.stopCapturing();
|
|
1166
1166
|
clearHistory = () => this._yDoc.undoManager.clear();
|
|
1167
|
+
proxyNode = (node) => this._yDoc._proxyNode(node);
|
|
1167
1168
|
set = (source) => {
|
|
1168
1169
|
const { children = [], ...props } = source;
|
|
1169
1170
|
const oldTransacting = this._yDoc._transacting;
|
|
@@ -2185,7 +2186,7 @@ const _4_3_element = defineMixin((editor) => {
|
|
|
2185
2186
|
if (regenId) {
|
|
2186
2187
|
delete value2.id;
|
|
2187
2188
|
}
|
|
2188
|
-
const el =
|
|
2189
|
+
const el = root.value.proxyNode(Node$1.parse(value2));
|
|
2189
2190
|
if (index2 === void 0) {
|
|
2190
2191
|
_parent.appendChild(el);
|
|
2191
2192
|
} else {
|
package/dist/scene/Doc.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.17.
|
|
4
|
+
"version": "0.17.6",
|
|
5
5
|
"description": "A headless infinite canvas editor framework built on WebGL rendering, supports exporting to image, video, and PPT. Only the ESM.",
|
|
6
6
|
"author": "wxm",
|
|
7
7
|
"license": "MIT",
|