@domql/element 2.5.3 → 2.5.4

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.
@@ -48,8 +48,8 @@ const addAdditionalExtend = (newExtend, element) => {
48
48
  };
49
49
  };
50
50
  const extendizeByKey = (element, parent, key) => {
51
- const { tag, extend, props, state, childExtend, childProps, on } = element;
52
- const hasComponentAttrs = tag || extend || childExtend || props || state || on;
51
+ const { tag, extend, props, state, childExtend, childProps, on, if: condition } = element;
52
+ const hasComponentAttrs = tag || extend || childExtend || props || state || on || condition;
53
53
  const componentKey = key.includes("_") ? key.split("_")[0] : key.includes(".") ? key.split(".")[0] : key;
54
54
  const extendKey = componentKey || key;
55
55
  if (!hasComponentAttrs || childProps) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/element",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
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": "8a498068958fca26ce39c39e6ad1312d0be327d7",
34
+ "gitHead": "fc02db00cba060b9a8d0f485db6ca448bf8f5be3",
35
35
  "devDependencies": {
36
36
  "@babel/core": "^7.12.0"
37
37
  }
@@ -21,8 +21,8 @@ export const addAdditionalExtend = (newExtend, element) => {
21
21
  }
22
22
 
23
23
  export const extendizeByKey = (element, parent, key) => {
24
- const { tag, extend, props, state, childExtend, childProps, on } = element
25
- const hasComponentAttrs = tag || extend || childExtend || props || state || on
24
+ const { tag, extend, props, state, childExtend, childProps, on, if: condition } = element
25
+ const hasComponentAttrs = tag || extend || childExtend || props || state || on || condition
26
26
  const componentKey = key.includes('_')
27
27
  ? key.split('_')[0]
28
28
  : key.includes('.') ? key.split('.')[0] : key