@domql/element 2.5.93 → 2.5.94
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.
|
@@ -95,7 +95,7 @@ const createValidDomqlObjectFromSugar = (el, parent, key, options) => {
|
|
|
95
95
|
const extendizeByKey = (element, parent, key) => {
|
|
96
96
|
const { context, tag, extend, props, attr, state, childExtend, childProps, on, if: condition, data } = element;
|
|
97
97
|
const hasComponentAttrs = extend || childExtend || props || state || on || condition || attr || data;
|
|
98
|
-
const extendFromKey = key.includes("+") ? key.split("+") : key.includes("_") ? key.split("_")[0] : key.includes(".") ? key.split(".")[0] : [key];
|
|
98
|
+
const extendFromKey = key.includes("+") ? key.split("+") : key.includes("_") ? key.split("_")[0] : key.includes(".") && !checkIfKeyIsComponent(key.split(".")[1]) ? key.split(".")[0] : [key];
|
|
99
99
|
const isExtendKeyComponent = context && context.components[extendFromKey];
|
|
100
100
|
if (element === isExtendKeyComponent)
|
|
101
101
|
return element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/element",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.94",
|
|
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": "
|
|
34
|
+
"gitHead": "76edeab829524b706fd1a0bd3fac3fd5563a3b84",
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/core": "^7.12.0"
|
|
37
37
|
}
|
package/utils/component.js
CHANGED
|
@@ -73,7 +73,7 @@ export const extendizeByKey = (element, parent, key) => {
|
|
|
73
73
|
? key.split('+') // get array of componentKeys
|
|
74
74
|
: key.includes('_')
|
|
75
75
|
? key.split('_')[0] // get component key split _
|
|
76
|
-
: key.includes('.')
|
|
76
|
+
: key.includes('.') && !checkIfKeyIsComponent(key.split('.')[1])
|
|
77
77
|
? key.split('.')[0] // get component key split .
|
|
78
78
|
: [key]
|
|
79
79
|
|