@textbus/platform-browser 4.0.0-alpha.29 → 4.0.0-alpha.31

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.
@@ -5,6 +5,7 @@ import { Component, Slot, ViewAdapter, NodeLocation, VElement, VTextNode, Textbu
5
5
  export declare abstract class DomAdapter<ViewComponent, ViewElement> extends ViewAdapter {
6
6
  private mount;
7
7
  host: HTMLElement;
8
+ protected firstRending: boolean;
8
9
  protected componentRootElementCaches: {
9
10
  set: {
10
11
  (key: Component<import("@textbus/core").State>, value: HTMLElement): void;
@@ -323,6 +323,7 @@ class DomAdapter extends ViewAdapter {
323
323
  id: 'textbus-' + Number((Math.random() + '').substring(2)).toString(16)
324
324
  }
325
325
  });
326
+ this.firstRending = true;
326
327
  this.componentRootElementCaches = createBidirectionalMapping(a => {
327
328
  return a instanceof Component;
328
329
  });
@@ -333,6 +334,7 @@ class DomAdapter extends ViewAdapter {
333
334
  }
334
335
  render(rootComponent, textbus) {
335
336
  const view = this.componentRender(rootComponent);
337
+ this.firstRending = false;
336
338
  return this.mount(this.host, view, textbus);
337
339
  }
338
340
  copy() {
package/bundles/index.js CHANGED
@@ -325,6 +325,7 @@ class DomAdapter extends core$1.ViewAdapter {
325
325
  id: 'textbus-' + Number((Math.random() + '').substring(2)).toString(16)
326
326
  }
327
327
  });
328
+ this.firstRending = true;
328
329
  this.componentRootElementCaches = core$1.createBidirectionalMapping(a => {
329
330
  return a instanceof core$1.Component;
330
331
  });
@@ -335,6 +336,7 @@ class DomAdapter extends core$1.ViewAdapter {
335
336
  }
336
337
  render(rootComponent, textbus) {
337
338
  const view = this.componentRender(rootComponent);
339
+ this.firstRending = false;
338
340
  return this.mount(this.host, view, textbus);
339
341
  }
340
342
  copy() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/platform-browser",
3
- "version": "4.0.0-alpha.29",
3
+ "version": "4.0.0-alpha.31",
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,9 +26,9 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@tanbo/stream": "^1.2.3",
29
- "@textbus/collaborate": "^4.0.0-alpha.29",
30
- "@textbus/core": "^4.0.0-alpha.29",
31
- "@viewfly/core": "^0.6.0",
29
+ "@textbus/collaborate": "^4.0.0-alpha.31",
30
+ "@textbus/core": "^4.0.0-alpha.31",
31
+ "@viewfly/core": "^0.6.1",
32
32
  "reflect-metadata": "^0.1.13"
33
33
  },
34
34
  "devDependencies": {
@@ -49,5 +49,5 @@
49
49
  "bugs": {
50
50
  "url": "https://github.com/textbus/textbus.git/issues"
51
51
  },
52
- "gitHead": "005a72f3cbc2c642fef5cdb584b690bbc8f8caf0"
52
+ "gitHead": "54c13967d549e9c3795eb821d84ce3e811139630"
53
53
  }