@textbus/platform-browser 4.0.0-alpha.60 → 4.0.0-alpha.61

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.
@@ -2096,6 +2096,10 @@ let NativeInput = class NativeInput extends Input {
2096
2096
  }))).subscribe(text => {
2097
2097
  this.composition = false;
2098
2098
  if (text) {
2099
+ const startContainer = this.nativeSelection.focusNode;
2100
+ if (startContainer instanceof Text && startContainer.textContent === text) {
2101
+ startContainer.remove();
2102
+ }
2099
2103
  this.commander.write(text);
2100
2104
  }
2101
2105
  if (isCompositionEnd) {
package/bundles/index.js CHANGED
@@ -2098,6 +2098,10 @@ exports.NativeInput = class NativeInput extends Input {
2098
2098
  }))).subscribe(text => {
2099
2099
  this.composition = false;
2100
2100
  if (text) {
2101
+ const startContainer = this.nativeSelection.focusNode;
2102
+ if (startContainer instanceof Text && startContainer.textContent === text) {
2103
+ startContainer.remove();
2104
+ }
2101
2105
  this.commander.write(text);
2102
2106
  }
2103
2107
  if (isCompositionEnd) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/platform-browser",
3
- "version": "4.0.0-alpha.60",
3
+ "version": "4.0.0-alpha.61",
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",
@@ -25,10 +25,10 @@
25
25
  "typescript editor"
26
26
  ],
27
27
  "dependencies": {
28
- "@tanbo/stream": "^1.2.4",
29
- "@textbus/collaborate": "^4.0.0-alpha.60",
30
- "@textbus/core": "^4.0.0-alpha.60",
31
- "@viewfly/core": "^1.0.0-alpha.10"
28
+ "@tanbo/stream": "^1.2.5",
29
+ "@textbus/collaborate": "^4.0.0-alpha.61",
30
+ "@textbus/core": "^4.0.0-alpha.61",
31
+ "@viewfly/core": "^1.0.0-alpha.11"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@rollup/plugin-commonjs": "^23.0.2",
@@ -48,5 +48,5 @@
48
48
  "bugs": {
49
49
  "url": "https://github.com/textbus/textbus.git/issues"
50
50
  },
51
- "gitHead": "bae80846bc8c26754af661e35dea236db237aeeb"
51
+ "gitHead": "892e0bc033aaf52f89be3476c9536c445e316200"
52
52
  }