@textbus/platform-browser 4.0.0-alpha.34 → 4.0.0-alpha.36
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/index.esm.js +6 -6
- package/bundles/index.js +6 -6
- package/package.json +4 -4
package/bundles/index.esm.js
CHANGED
@@ -430,7 +430,7 @@ class DomAdapter extends ViewAdapter {
|
|
430
430
|
break;
|
431
431
|
}
|
432
432
|
else if (composition.index === 0 && childLocation.startIndex === 0) {
|
433
|
-
nodes.
|
433
|
+
nodes.splice(i, 0, createCompositionNode(composition));
|
434
434
|
break;
|
435
435
|
}
|
436
436
|
}
|
@@ -442,7 +442,7 @@ class DomAdapter extends ViewAdapter {
|
|
442
442
|
break;
|
443
443
|
}
|
444
444
|
else if (componentIndex === 0 && composition.index === 0) {
|
445
|
-
nodes.
|
445
|
+
nodes.splice(i, 0, createCompositionNode(composition));
|
446
446
|
break;
|
447
447
|
}
|
448
448
|
}
|
@@ -454,7 +454,7 @@ class DomAdapter extends ViewAdapter {
|
|
454
454
|
break;
|
455
455
|
}
|
456
456
|
else if (location.startIndex === 0 && composition.index === 0) {
|
457
|
-
nodes.
|
457
|
+
nodes.splice(i, 0, createCompositionNode(composition));
|
458
458
|
break;
|
459
459
|
}
|
460
460
|
}
|
@@ -1412,7 +1412,7 @@ let MagicInput = class MagicInput extends Input {
|
|
1412
1412
|
const slot = this.adapter.composition.slot;
|
1413
1413
|
this.adapter.composition = null;
|
1414
1414
|
this.adapter.compositionNode = null;
|
1415
|
-
slot.
|
1415
|
+
slot.__changeMarker__.forceMarkDirtied();
|
1416
1416
|
}
|
1417
1417
|
}), fromEvent(textarea, 'focus').subscribe(() => {
|
1418
1418
|
this.nativeFocus = true;
|
@@ -1564,7 +1564,7 @@ let MagicInput = class MagicInput extends Input {
|
|
1564
1564
|
data: ev.data
|
1565
1565
|
});
|
1566
1566
|
invokeListener(startSlot.parent, 'onCompositionUpdate', event);
|
1567
|
-
startSlot.
|
1567
|
+
startSlot.__changeMarker__.forceMarkDirtied();
|
1568
1568
|
}));
|
1569
1569
|
let isCompositionEnd = false;
|
1570
1570
|
this.subscription.add(merge(fromEvent(textarea, 'beforeinput').pipe(filter(ev => {
|
@@ -1595,7 +1595,7 @@ let MagicInput = class MagicInput extends Input {
|
|
1595
1595
|
this.commander.write(text);
|
1596
1596
|
}
|
1597
1597
|
else {
|
1598
|
-
(_a = this.selection.startSlot) === null || _a === void 0 ? void 0 : _a.
|
1598
|
+
(_a = this.selection.startSlot) === null || _a === void 0 ? void 0 : _a.__changeMarker__.forceMarkDirtied();
|
1599
1599
|
}
|
1600
1600
|
if (isCompositionEnd) {
|
1601
1601
|
const startSlot = this.selection.startSlot;
|
package/bundles/index.js
CHANGED
@@ -432,7 +432,7 @@ class DomAdapter extends core$1.ViewAdapter {
|
|
432
432
|
break;
|
433
433
|
}
|
434
434
|
else if (composition.index === 0 && childLocation.startIndex === 0) {
|
435
|
-
nodes.
|
435
|
+
nodes.splice(i, 0, createCompositionNode(composition));
|
436
436
|
break;
|
437
437
|
}
|
438
438
|
}
|
@@ -444,7 +444,7 @@ class DomAdapter extends core$1.ViewAdapter {
|
|
444
444
|
break;
|
445
445
|
}
|
446
446
|
else if (componentIndex === 0 && composition.index === 0) {
|
447
|
-
nodes.
|
447
|
+
nodes.splice(i, 0, createCompositionNode(composition));
|
448
448
|
break;
|
449
449
|
}
|
450
450
|
}
|
@@ -456,7 +456,7 @@ class DomAdapter extends core$1.ViewAdapter {
|
|
456
456
|
break;
|
457
457
|
}
|
458
458
|
else if (location.startIndex === 0 && composition.index === 0) {
|
459
|
-
nodes.
|
459
|
+
nodes.splice(i, 0, createCompositionNode(composition));
|
460
460
|
break;
|
461
461
|
}
|
462
462
|
}
|
@@ -1414,7 +1414,7 @@ exports.MagicInput = class MagicInput extends Input {
|
|
1414
1414
|
const slot = this.adapter.composition.slot;
|
1415
1415
|
this.adapter.composition = null;
|
1416
1416
|
this.adapter.compositionNode = null;
|
1417
|
-
slot.
|
1417
|
+
slot.__changeMarker__.forceMarkDirtied();
|
1418
1418
|
}
|
1419
1419
|
}), stream.fromEvent(textarea, 'focus').subscribe(() => {
|
1420
1420
|
this.nativeFocus = true;
|
@@ -1566,7 +1566,7 @@ exports.MagicInput = class MagicInput extends Input {
|
|
1566
1566
|
data: ev.data
|
1567
1567
|
});
|
1568
1568
|
core$1.invokeListener(startSlot.parent, 'onCompositionUpdate', event);
|
1569
|
-
startSlot.
|
1569
|
+
startSlot.__changeMarker__.forceMarkDirtied();
|
1570
1570
|
}));
|
1571
1571
|
let isCompositionEnd = false;
|
1572
1572
|
this.subscription.add(stream.merge(stream.fromEvent(textarea, 'beforeinput').pipe(stream.filter(ev => {
|
@@ -1597,7 +1597,7 @@ exports.MagicInput = class MagicInput extends Input {
|
|
1597
1597
|
this.commander.write(text);
|
1598
1598
|
}
|
1599
1599
|
else {
|
1600
|
-
(_a = this.selection.startSlot) === null || _a === void 0 ? void 0 : _a.
|
1600
|
+
(_a = this.selection.startSlot) === null || _a === void 0 ? void 0 : _a.__changeMarker__.forceMarkDirtied();
|
1601
1601
|
}
|
1602
1602
|
if (isCompositionEnd) {
|
1603
1603
|
const startSlot = this.selection.startSlot;
|
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.36",
|
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.36",
|
30
|
+
"@textbus/core": "^4.0.0-alpha.36",
|
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": "dbcf24938a558780bc752cdcd3633d0e21a7a0d9"
|
53
53
|
}
|