@rxdi/lit-html 0.7.131 → 0.7.132

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.
@@ -6,6 +6,29 @@ export interface CustomElementConfig<T> {
6
6
  style?: CSSResult;
7
7
  styles?: CSSResult[];
8
8
  extends?: string;
9
+ /**
10
+ * Intended only for first render inside the DOM
11
+ * for example we want app-component to be rendered
12
+ * inside body of the html page we could do
13
+ *
14
+ ```
15
+ import { Component, html } from '@rxdi/lit-html';
16
+
17
+ @Component({
18
+ selector: 'app-component',
19
+ template() {
20
+ return html`
21
+ <router-outlet>
22
+ <navbar-component slot="header"></navbar-component>
23
+ <footer-component slot="footer"></footer-component>
24
+ </router-outlet>
25
+ `;
26
+ },
27
+ container: document.body,
28
+ })
29
+ export class AppComponent extends HTMLElement {}
30
+ ```
31
+ */
9
32
  container?: HTMLElement | DocumentFragment;
10
33
  }
11
34
  export declare const Component: <T>(config: CustomElementConfig<T>) => <K extends new (...args: any[]) => {}>(Base: K) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdi/lit-html",
3
- "version": "0.7.131",
3
+ "version": "0.7.132",
4
4
  "main": "./dist/index.js",
5
5
  "author": "Kristiyan Tachev",
6
6
  "license": "MIT",