@rxdi/lit-html 0.7.163 → 0.7.165

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.
@@ -44,7 +44,7 @@ export interface CustomElementConfig<T> {
44
44
  */
45
45
  container?: HTMLElement | DocumentFragment;
46
46
  }
47
- export declare const Component: <T>(config: CustomElementConfig<T>) => <K extends new (...args: any[]) => {}>(Base: K) => (() => any) | ({
47
+ export declare const Component: <T>(config: CustomElementConfig<T>) => <K extends new (...args: any[]) => {}>(Base: K) => {
48
48
  new (...args: any[]): {
49
49
  getTemplateResult(): any;
50
50
  OnInit(): any;
@@ -56,7 +56,7 @@ export declare const Component: <T>(config: CustomElementConfig<T>) => <K extend
56
56
  };
57
57
  styles: CSSResult[];
58
58
  is(): string;
59
- } & K);
59
+ } & K;
60
60
  declare global {
61
61
  interface Window {
62
62
  _excluded_components: string[];
@@ -23,7 +23,7 @@ const customElement = (tag, config = {}) => (Base) => {
23
23
  var _b;
24
24
  /* Feature flag implementation where we don't define at all components when they are excluded */
25
25
  if ((_a = window._excluded_components) === null || _a === void 0 ? void 0 : _a.includes(config.selector)) {
26
- return () => null;
26
+ return Base;
27
27
  }
28
28
  if (!tag || (tag && tag.indexOf('-') <= 0)) {
29
29
  throw new Error(`You need at least 1 dash in the custom element name! ${Base}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdi/lit-html",
3
- "version": "0.7.163",
3
+ "version": "0.7.165",
4
4
  "main": "./dist/index.js",
5
5
  "author": "Kristiyan Tachev",
6
6
  "license": "MIT",