@textbus/platform-browser 4.0.0-alpha.69 → 4.0.0-alpha.71

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.
@@ -657,7 +657,7 @@ let SelectionBridge = class SelectionBridge {
657
657
  this.input.composition ||
658
658
  selection.rangeCount === 0 ||
659
659
  !this.docContainer.contains(selection.anchorNode) ||
660
- this.rootComponentRef.component.__slots__.length === 0) {
660
+ this.rootComponentRef.component.slots.length === 0) {
661
661
  return;
662
662
  }
663
663
  const rawRange = selection.getRangeAt(0);
@@ -666,14 +666,14 @@ let SelectionBridge = class SelectionBridge {
666
666
  const isFocusStart = selection.focusNode === nativeRange.startContainer && selection.focusOffset === nativeRange.startOffset;
667
667
  if (!this.docContainer.contains(selection.focusNode)) {
668
668
  if (isFocusEnd) {
669
- const nativeNode = this.domAdapter.getNativeNodeBySlot(this.rootComponentRef.component.__slots__.first);
669
+ const nativeNode = this.domAdapter.getNativeNodeBySlot(this.rootComponentRef.component.slots.at(0));
670
670
  if (!nativeNode) {
671
671
  return;
672
672
  }
673
673
  nativeRange.setEndAfter(nativeNode.lastChild);
674
674
  }
675
675
  else {
676
- const nativeNode = this.domAdapter.getNativeNodeBySlot(this.rootComponentRef.component.__slots__.last);
676
+ const nativeNode = this.domAdapter.getNativeNodeBySlot(this.rootComponentRef.component.slots.at(-1));
677
677
  if (!nativeNode) {
678
678
  return;
679
679
  }
package/bundles/index.js CHANGED
@@ -659,7 +659,7 @@ exports.SelectionBridge = class SelectionBridge {
659
659
  this.input.composition ||
660
660
  selection.rangeCount === 0 ||
661
661
  !this.docContainer.contains(selection.anchorNode) ||
662
- this.rootComponentRef.component.__slots__.length === 0) {
662
+ this.rootComponentRef.component.slots.length === 0) {
663
663
  return;
664
664
  }
665
665
  const rawRange = selection.getRangeAt(0);
@@ -668,14 +668,14 @@ exports.SelectionBridge = class SelectionBridge {
668
668
  const isFocusStart = selection.focusNode === nativeRange.startContainer && selection.focusOffset === nativeRange.startOffset;
669
669
  if (!this.docContainer.contains(selection.focusNode)) {
670
670
  if (isFocusEnd) {
671
- const nativeNode = this.domAdapter.getNativeNodeBySlot(this.rootComponentRef.component.__slots__.first);
671
+ const nativeNode = this.domAdapter.getNativeNodeBySlot(this.rootComponentRef.component.slots.at(0));
672
672
  if (!nativeNode) {
673
673
  return;
674
674
  }
675
675
  nativeRange.setEndAfter(nativeNode.lastChild);
676
676
  }
677
677
  else {
678
- const nativeNode = this.domAdapter.getNativeNodeBySlot(this.rootComponentRef.component.__slots__.last);
678
+ const nativeNode = this.domAdapter.getNativeNodeBySlot(this.rootComponentRef.component.slots.at(-1));
679
679
  if (!nativeNode) {
680
680
  return;
681
681
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/platform-browser",
3
- "version": "4.0.0-alpha.69",
3
+ "version": "4.0.0-alpha.71",
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.5",
29
- "@textbus/collaborate": "^4.0.0-alpha.69",
30
- "@textbus/core": "^4.0.0-alpha.69",
29
+ "@textbus/collaborate": "^4.0.0-alpha.71",
30
+ "@textbus/core": "^4.0.0-alpha.71",
31
31
  "@viewfly/core": "^1.0.0-alpha.17"
32
32
  },
33
33
  "devDependencies": {
@@ -48,5 +48,5 @@
48
48
  "bugs": {
49
49
  "url": "https://github.com/textbus/textbus.git/issues"
50
50
  },
51
- "gitHead": "f2d53e02abbbc466b289532f6773c6fa8bb4d3f3"
51
+ "gitHead": "cf4fd289b73bc777124a32fe42bb58eba05a34f1"
52
52
  }