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

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.
@@ -1973,6 +1973,10 @@ let NativeInput = class NativeInput extends Input {
1973
1973
  compositionUpdate(ev.data);
1974
1974
  }), fromEvent(input, 'compositionend').subscribe(ev => {
1975
1975
  compositionEnd(ev.data);
1976
+ const startContainer = this.nativeSelection.focusNode;
1977
+ if (startContainer instanceof Text && startContainer.textContent === ev.data) {
1978
+ startContainer.remove();
1979
+ }
1976
1980
  }), fromEvent(input, 'beforeinput').subscribe(ev => {
1977
1981
  var _a;
1978
1982
  switch (ev.inputType) {
package/bundles/index.js CHANGED
@@ -1975,6 +1975,10 @@ exports.NativeInput = class NativeInput extends Input {
1975
1975
  compositionUpdate(ev.data);
1976
1976
  }), stream.fromEvent(input, 'compositionend').subscribe(ev => {
1977
1977
  compositionEnd(ev.data);
1978
+ const startContainer = this.nativeSelection.focusNode;
1979
+ if (startContainer instanceof Text && startContainer.textContent === ev.data) {
1980
+ startContainer.remove();
1981
+ }
1978
1982
  }), stream.fromEvent(input, 'beforeinput').subscribe(ev => {
1979
1983
  var _a;
1980
1984
  switch (ev.inputType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/platform-browser",
3
- "version": "4.0.0-alpha.61",
3
+ "version": "4.0.0-alpha.62",
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",
@@ -48,5 +48,5 @@
48
48
  "bugs": {
49
49
  "url": "https://github.com/textbus/textbus.git/issues"
50
50
  },
51
- "gitHead": "892e0bc033aaf52f89be3476c9536c445e316200"
51
+ "gitHead": "1077dc15671dc6a8cd168c375f2c7b5ef175d096"
52
52
  }