@textbus/platform-browser 4.0.0-alpha.35 → 4.0.0-alpha.37
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/bundles/dom-adapter.d.ts +1 -0
- package/bundles/index.esm.js +4 -3
- package/bundles/index.js +4 -3
- package/package.json +4 -4
package/bundles/dom-adapter.d.ts
CHANGED
@@ -37,6 +37,7 @@ export declare abstract class DomAdapter<ViewComponent, ViewElement> extends Vie
|
|
37
37
|
remove: (key: HTMLElement | Slot) => void;
|
38
38
|
};
|
39
39
|
protected slotRootVElementCaches: WeakMap<Slot, VElement>;
|
40
|
+
protected renderedSlotCache: WeakMap<Slot, true>;
|
40
41
|
protected constructor(mount: (host: HTMLElement, viewComponent: ViewComponent, textbus: Textbus) => (void | (() => void)));
|
41
42
|
render(rootComponent: Component, textbus: Textbus): void | (() => void);
|
42
43
|
abstract componentRender(component: Component): ViewComponent;
|
package/bundles/index.esm.js
CHANGED
@@ -333,6 +333,7 @@ class DomAdapter extends ViewAdapter {
|
|
333
333
|
return a instanceof Slot;
|
334
334
|
});
|
335
335
|
this.slotRootVElementCaches = new WeakMap();
|
336
|
+
this.renderedSlotCache = new WeakMap();
|
336
337
|
}
|
337
338
|
render(rootComponent, textbus) {
|
338
339
|
const view = this.componentRender(rootComponent);
|
@@ -430,7 +431,7 @@ class DomAdapter extends ViewAdapter {
|
|
430
431
|
break;
|
431
432
|
}
|
432
433
|
else if (composition.index === 0 && childLocation.startIndex === 0) {
|
433
|
-
nodes.
|
434
|
+
nodes.splice(i, 0, createCompositionNode(composition));
|
434
435
|
break;
|
435
436
|
}
|
436
437
|
}
|
@@ -442,7 +443,7 @@ class DomAdapter extends ViewAdapter {
|
|
442
443
|
break;
|
443
444
|
}
|
444
445
|
else if (componentIndex === 0 && composition.index === 0) {
|
445
|
-
nodes.
|
446
|
+
nodes.splice(i, 0, createCompositionNode(composition));
|
446
447
|
break;
|
447
448
|
}
|
448
449
|
}
|
@@ -454,7 +455,7 @@ class DomAdapter extends ViewAdapter {
|
|
454
455
|
break;
|
455
456
|
}
|
456
457
|
else if (location.startIndex === 0 && composition.index === 0) {
|
457
|
-
nodes.
|
458
|
+
nodes.splice(i, 0, createCompositionNode(composition));
|
458
459
|
break;
|
459
460
|
}
|
460
461
|
}
|
package/bundles/index.js
CHANGED
@@ -335,6 +335,7 @@ class DomAdapter extends core$1.ViewAdapter {
|
|
335
335
|
return a instanceof core$1.Slot;
|
336
336
|
});
|
337
337
|
this.slotRootVElementCaches = new WeakMap();
|
338
|
+
this.renderedSlotCache = new WeakMap();
|
338
339
|
}
|
339
340
|
render(rootComponent, textbus) {
|
340
341
|
const view = this.componentRender(rootComponent);
|
@@ -432,7 +433,7 @@ class DomAdapter extends core$1.ViewAdapter {
|
|
432
433
|
break;
|
433
434
|
}
|
434
435
|
else if (composition.index === 0 && childLocation.startIndex === 0) {
|
435
|
-
nodes.
|
436
|
+
nodes.splice(i, 0, createCompositionNode(composition));
|
436
437
|
break;
|
437
438
|
}
|
438
439
|
}
|
@@ -444,7 +445,7 @@ class DomAdapter extends core$1.ViewAdapter {
|
|
444
445
|
break;
|
445
446
|
}
|
446
447
|
else if (componentIndex === 0 && composition.index === 0) {
|
447
|
-
nodes.
|
448
|
+
nodes.splice(i, 0, createCompositionNode(composition));
|
448
449
|
break;
|
449
450
|
}
|
450
451
|
}
|
@@ -456,7 +457,7 @@ class DomAdapter extends core$1.ViewAdapter {
|
|
456
457
|
break;
|
457
458
|
}
|
458
459
|
else if (location.startIndex === 0 && composition.index === 0) {
|
459
|
-
nodes.
|
460
|
+
nodes.splice(i, 0, createCompositionNode(composition));
|
460
461
|
break;
|
461
462
|
}
|
462
463
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@textbus/platform-browser",
|
3
|
-
"version": "4.0.0-alpha.
|
3
|
+
"version": "4.0.0-alpha.37",
|
4
4
|
"description": "Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.",
|
5
5
|
"main": "./bundles/index.js",
|
6
6
|
"module": "./bundles/index.esm.js",
|
@@ -26,8 +26,8 @@
|
|
26
26
|
],
|
27
27
|
"dependencies": {
|
28
28
|
"@tanbo/stream": "^1.2.3",
|
29
|
-
"@textbus/collaborate": "^4.0.0-alpha.
|
30
|
-
"@textbus/core": "^4.0.0-alpha.
|
29
|
+
"@textbus/collaborate": "^4.0.0-alpha.37",
|
30
|
+
"@textbus/core": "^4.0.0-alpha.37",
|
31
31
|
"@viewfly/core": "^0.6.3",
|
32
32
|
"reflect-metadata": "^0.1.13"
|
33
33
|
},
|
@@ -49,5 +49,5 @@
|
|
49
49
|
"bugs": {
|
50
50
|
"url": "https://github.com/textbus/textbus.git/issues"
|
51
51
|
},
|
52
|
-
"gitHead": "
|
52
|
+
"gitHead": "7a67eda8ef99b52bbc356002ca3396d64b6c1e89"
|
53
53
|
}
|