@rxdi/lit-html 0.7.137 → 0.7.138

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.
package/README.md CHANGED
@@ -69,7 +69,7 @@ export class MyModifier extends LitElement {
69
69
  }
70
70
  }
71
71
 
72
- public static html(template: TemplateResult) {
72
+ public static modifier(template: TemplateResult) {
73
73
  return html`<my-modifier>${template}</my-modifier>`;
74
74
  }
75
75
  }
@@ -6,7 +6,7 @@ export interface CustomElementConfig<T> {
6
6
  style?: CSSResult;
7
7
  styles?: CSSResult[];
8
8
  extends?: string;
9
- directives?: (Function | {
9
+ modifier?: (Function | {
10
10
  html(template: TemplateResult): TemplateResult;
11
11
  })[];
12
12
  /**
@@ -73,8 +73,8 @@ const customElement = (tag, config = {}) => (Base) => {
73
73
  }
74
74
  render() {
75
75
  var _a;
76
- if ((_a = config.directives) === null || _a === void 0 ? void 0 : _a.length) {
77
- return (0, helpers_1.pipe)(...(config.directives.map(v => v['html'])))(config.template.call(this));
76
+ if ((_a = config.modifier) === null || _a === void 0 ? void 0 : _a.length) {
77
+ return (0, helpers_1.pipe)(...(config.modifier.map(v => v['html'])))(config.template.call(this));
78
78
  }
79
79
  return config.template.call(this);
80
80
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdi/lit-html",
3
- "version": "0.7.137",
3
+ "version": "0.7.138",
4
4
  "main": "./dist/index.js",
5
5
  "author": "Kristiyan Tachev",
6
6
  "license": "MIT",