vsn 0.1.81 → 0.1.82

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.81",
3
+ "version": "0.1.82",
4
4
  "description": "SEO Friendly Javascript/Typescript Framework",
5
5
  "keywords": [
6
6
  "framework",
package/src/Attribute.ts CHANGED
@@ -91,7 +91,7 @@ export abstract class Attribute extends EventDispatcher {
91
91
  }
92
92
  }
93
93
 
94
- private setState(state: AttributeState) {
94
+ protected setState(state: AttributeState) {
95
95
  const previousState = this._state;
96
96
  this._state = state;
97
97
  this.dispatch('state', {
package/src/DOM.ts CHANGED
@@ -128,7 +128,12 @@ export class DOM extends EventDispatcher {
128
128
  return this.querySelectorElement(element.parentElement, rest);
129
129
  }
130
130
  }
131
- return element.querySelectorAll(q);
131
+ let matches = element.querySelectorAll(q);
132
+
133
+ if (matches.length === 0 && (element as HTMLElement).shadowRoot) {
134
+ matches = (element as HTMLElement).shadowRoot.querySelectorAll(q);
135
+ }
136
+ return matches;
132
137
  }
133
138
 
134
139
  public querySelector(q: string): Element {
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.1.81';
1
+ export const VERSION = '0.1.82';
2
2