@domql/element 2.5.9 → 2.5.11

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.
@@ -32,6 +32,7 @@ var registry_default = {
32
32
  data: import__.data,
33
33
  class: import__.classList,
34
34
  state: import__.state,
35
+ deps: (param, el) => param || el.parent.deps,
35
36
  extend: {},
36
37
  childExtend: {},
37
38
  childExtendRecursive: {},
@@ -157,9 +157,6 @@ const replaceStringsWithComponents = (stack, context, options) => {
157
157
  return stack.map((v) => {
158
158
  if ((0, import_utils.isString)(v)) {
159
159
  const component = COMPONENTS[v];
160
- console.warn("v", v);
161
- console.log(COMPONENTS[v]);
162
- console.warn("component", component);
163
160
  return component;
164
161
  }
165
162
  if ((0, import_utils.isString)(v.extend)) {
@@ -16,6 +16,8 @@ export default {
16
16
  class: classList,
17
17
  state,
18
18
 
19
+ deps: (param, el) => param || el.parent.deps,
20
+
19
21
  extend: {},
20
22
  childExtend: {},
21
23
  childExtendRecursive: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/element",
3
- "version": "2.5.9",
3
+ "version": "2.5.11",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -31,7 +31,7 @@
31
31
  "@domql/state": "latest",
32
32
  "@domql/utils": "latest"
33
33
  },
34
- "gitHead": "72ca0c34d453da80307f93c6e3b214c5cbf03a66",
34
+ "gitHead": "033d166b64bda1969d04a0462f1d13096f7b8fac",
35
35
  "devDependencies": {
36
36
  "@babel/core": "^7.12.0"
37
37
  }
@@ -131,12 +131,8 @@ export const getExtendMerged = extend => {
131
131
  export const replaceStringsWithComponents = (stack, context, options) => {
132
132
  const COMPONENTS = (context && context.components) || options.components
133
133
  return stack.map(v => {
134
- // if (v === 'StatePage') debugger
135
134
  if (isString(v)) {
136
135
  const component = COMPONENTS[v]
137
- console.warn('v', v)
138
- console.log(COMPONENTS[v])
139
- console.warn('component', component)
140
136
  return component
141
137
  }
142
138
  if (isString(v.extend)) {