@textbus/platform-browser 4.0.0-alpha.33 → 4.0.0-alpha.35

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.
@@ -1248,7 +1248,6 @@ class ExperimentalCaret {
1248
1248
  const compositionNode = this.adapter.compositionNode;
1249
1249
  if (compositionNode) {
1250
1250
  nativeRange = nativeRange.cloneRange();
1251
- nativeRange.insertNode(compositionNode);
1252
1251
  nativeRange.selectNodeContents(compositionNode);
1253
1252
  nativeRange.collapse();
1254
1253
  }
@@ -1413,7 +1412,7 @@ let MagicInput = class MagicInput extends Input {
1413
1412
  const slot = this.adapter.composition.slot;
1414
1413
  this.adapter.composition = null;
1415
1414
  this.adapter.compositionNode = null;
1416
- slot.changeMarker.forceMarkDirtied();
1415
+ slot.__changeMarker__.forceMarkDirtied();
1417
1416
  }
1418
1417
  }), fromEvent(textarea, 'focus').subscribe(() => {
1419
1418
  this.nativeFocus = true;
@@ -1565,7 +1564,7 @@ let MagicInput = class MagicInput extends Input {
1565
1564
  data: ev.data
1566
1565
  });
1567
1566
  invokeListener(startSlot.parent, 'onCompositionUpdate', event);
1568
- startSlot.changeMarker.forceMarkDirtied();
1567
+ startSlot.__changeMarker__.forceMarkDirtied();
1569
1568
  }));
1570
1569
  let isCompositionEnd = false;
1571
1570
  this.subscription.add(merge(fromEvent(textarea, 'beforeinput').pipe(filter(ev => {
@@ -1596,7 +1595,7 @@ let MagicInput = class MagicInput extends Input {
1596
1595
  this.commander.write(text);
1597
1596
  }
1598
1597
  else {
1599
- (_a = this.selection.startSlot) === null || _a === void 0 ? void 0 : _a.changeMarker.forceMarkDirtied();
1598
+ (_a = this.selection.startSlot) === null || _a === void 0 ? void 0 : _a.__changeMarker__.forceMarkDirtied();
1600
1599
  }
1601
1600
  if (isCompositionEnd) {
1602
1601
  const startSlot = this.selection.startSlot;
package/bundles/index.js CHANGED
@@ -1250,7 +1250,6 @@ class ExperimentalCaret {
1250
1250
  const compositionNode = this.adapter.compositionNode;
1251
1251
  if (compositionNode) {
1252
1252
  nativeRange = nativeRange.cloneRange();
1253
- nativeRange.insertNode(compositionNode);
1254
1253
  nativeRange.selectNodeContents(compositionNode);
1255
1254
  nativeRange.collapse();
1256
1255
  }
@@ -1415,7 +1414,7 @@ exports.MagicInput = class MagicInput extends Input {
1415
1414
  const slot = this.adapter.composition.slot;
1416
1415
  this.adapter.composition = null;
1417
1416
  this.adapter.compositionNode = null;
1418
- slot.changeMarker.forceMarkDirtied();
1417
+ slot.__changeMarker__.forceMarkDirtied();
1419
1418
  }
1420
1419
  }), stream.fromEvent(textarea, 'focus').subscribe(() => {
1421
1420
  this.nativeFocus = true;
@@ -1567,7 +1566,7 @@ exports.MagicInput = class MagicInput extends Input {
1567
1566
  data: ev.data
1568
1567
  });
1569
1568
  core$1.invokeListener(startSlot.parent, 'onCompositionUpdate', event);
1570
- startSlot.changeMarker.forceMarkDirtied();
1569
+ startSlot.__changeMarker__.forceMarkDirtied();
1571
1570
  }));
1572
1571
  let isCompositionEnd = false;
1573
1572
  this.subscription.add(stream.merge(stream.fromEvent(textarea, 'beforeinput').pipe(stream.filter(ev => {
@@ -1598,7 +1597,7 @@ exports.MagicInput = class MagicInput extends Input {
1598
1597
  this.commander.write(text);
1599
1598
  }
1600
1599
  else {
1601
- (_a = this.selection.startSlot) === null || _a === void 0 ? void 0 : _a.changeMarker.forceMarkDirtied();
1600
+ (_a = this.selection.startSlot) === null || _a === void 0 ? void 0 : _a.__changeMarker__.forceMarkDirtied();
1602
1601
  }
1603
1602
  if (isCompositionEnd) {
1604
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.33",
3
+ "version": "4.0.0-alpha.35",
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.33",
30
- "@textbus/core": "^4.0.0-alpha.33",
29
+ "@textbus/collaborate": "^4.0.0-alpha.35",
30
+ "@textbus/core": "^4.0.0-alpha.35",
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": "5eb73f9a388d331946a8579aa6eaa23cc44bffe0"
52
+ "gitHead": "a50ac82617ef249feadbe926bae178912ed9a310"
53
53
  }