@proximus/lavender-common 2.0.0-alpha.21 → 2.0.0-alpha.210

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.
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Declares a static template. Call it once, at module level, with a plain
3
+ * template literal: the build (scripts/vite-plugin-minify-templates.js)
4
+ * strips the whitespace between tags so clones contain no empty text nodes.
5
+ */
6
+ export declare function createTemplate(html: string): HTMLTemplateElement;
7
+ export declare function getTemplate(html: string): HTMLTemplateElement;
8
+ /**
9
+ * Drop-in replacement for `root.innerHTML = html`: replaces the children of
10
+ * `root` with a clone of the parsed template.
11
+ * `importNode` creates the nodes in the current document, so nested custom
12
+ * elements are upgraded synchronously, exactly like with `innerHTML`.
13
+ */
14
+ export declare function renderTemplate(root: ShadowRoot | Element | DocumentFragment, template: HTMLTemplateElement | string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-common",
3
- "version": "2.0.0-alpha.21",
3
+ "version": "2.0.0-alpha.210",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",