vsn 0.1.108 → 0.1.109

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vsn",
3
- "version": "0.1.108",
3
+ "version": "0.1.109",
4
4
  "description": "SEO Friendly Javascript/Typescript Framework",
5
5
  "keywords": [
6
6
  "framework",
package/src/Registry.ts CHANGED
@@ -62,6 +62,7 @@ export class RegistryStore<T = any> extends EventDispatcher {
62
62
 
63
63
  export class Registry extends EventDispatcher {
64
64
  protected static _instance: Registry;
65
+ public readonly tags: RegistryStore;
65
66
  public readonly components: RegistryStore;
66
67
  public readonly functions: RegistryStore;
67
68
  public readonly controllers: RegistryStore;
@@ -76,6 +77,7 @@ export class Registry extends EventDispatcher {
76
77
 
77
78
  constructor() {
78
79
  super();
80
+ this.tags = new RegistryStore();
79
81
  this.components = new RegistryStore();
80
82
  this.functions = new RegistryStore();
81
83
  this.controllers = new RegistryStore();
@@ -8,7 +8,7 @@ export class ComponentAttribute extends TemplateAttribute {
8
8
 
9
9
  public async extract() {
10
10
  const name = this.getAttributeBinding();
11
- if (!Registry.instance.components.has(name)) {
11
+ if (!Registry.instance.tags.has(name)) {
12
12
  await super.extract();
13
13
  const clsName = this.getAttributeValue();
14
14
  let cls;
@@ -17,7 +17,7 @@ export class ComponentAttribute extends TemplateAttribute {
17
17
  }
18
18
  if (!cls)
19
19
  cls = class extends Component {};
20
- Registry.instance.components.register(name, cls);
20
+ Registry.instance.tags.register(name, cls);
21
21
  }
22
22
  }
23
23
  }
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.1.108';
1
+ export const VERSION = '0.1.109';
2
2
 
package/src/vsn.ts CHANGED
@@ -19,7 +19,7 @@ export class Vision extends EventDispatcher {
19
19
 
20
20
  constructor() {
21
21
  super();
22
- Registry.instance.components.on('register', this.defineComponent, this);
22
+ Registry.instance.tags.on('register', this.defineComponent, this);
23
23
  if (VisionHelper.document) {
24
24
  document.addEventListener(
25
25
  "DOMContentLoaded",