@cossackframework/renderer 0.7.7 → 0.8.1

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.
@@ -339,7 +339,7 @@ var m = class {
339
339
  }
340
340
  else e == null ? this.clear() : this.updateNode(e);
341
341
  else this.updateNode(e);
342
- }, this.componentInstance.addRenderListener(this.renderListener), this.componentInstance.connectedCallback();
342
+ }, this.componentInstance.addRenderListener(this.renderListener), Object.assign(this.componentInstance, e.props), "props" in this.componentInstance && (this.componentInstance.props = e.props), this.componentInstance.children = e.children, this.componentInstance.connectedCallback();
343
343
  }
344
344
  let r = this.componentInstance;
345
345
  Object.assign(r, e.props), "props" in r && (r.props = e.props), r.children = e.children, r.requestUpdate();
@@ -376,7 +376,7 @@ var m = class {
376
376
  let n = e.parent || t.currentRenderingInstance;
377
377
  this.componentInstance && this.componentInstance.__parent !== n && this.disposeComponent(), this.componentInstance || (this.componentInstance = new e.clazz(), this.componentInstance.__parent = n, e.serviceScope && typeof this.componentInstance._setServiceScope == "function" && this.componentInstance._setServiceScope(e.serviceScope), this.componentInstance.__parent && (this.componentInstance._id = `${this.componentInstance.__parent._id}:${this.componentInstance.__parent._childCounter++}`), this.renderListener = (e) => {
378
378
  this.updateNode(e);
379
- }, this.componentInstance.addRenderListener(this.renderListener), this.componentInstance.connectedCallback());
379
+ }, this.componentInstance.addRenderListener(this.renderListener), Object.assign(this.componentInstance, e.props), "props" in this.componentInstance && (this.componentInstance.props = e.props), this.componentInstance.children = e.children, this.componentInstance.connectedCallback());
380
380
  let r = this.componentInstance;
381
381
  Object.assign(r, e.props), "props" in r && (r.props = e.props), r.children = e.children, r.requestUpdate();
382
382
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cossackframework/renderer",
3
- "version": "0.7.7",
3
+ "version": "0.8.1",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "The rendering engine for Cossack Framework. Lit inspired, light dom, ssr",