@domql/element
Advanced tools
Comparing version 2.5.62 to 2.5.63
@@ -155,3 +155,3 @@ 'use strict' | ||
if (options.syntaxv3 || element.props?.syntaxv3 || parent?.props?.syntaxv3) { | ||
if (options.syntaxv3 || (element.props && element.props.syntaxv3) || (parent && parent.props && parent.props.syntaxv3) /* kalduna guard */) { | ||
element.props.syntaxv3 = true | ||
@@ -238,2 +238,5 @@ return createValidDomqlObjectFromSugar(element, parent, key, options) | ||
triggerEventOn('render', element, options) | ||
// run `on.done` | ||
triggerEventOn('done', element, options) | ||
} | ||
@@ -240,0 +243,0 @@ |
@@ -118,5 +118,4 @@ "use strict"; | ||
const redefineElement = (element, parent, key, options) => { | ||
var _a, _b; | ||
const elementWrapper = createBasedOnType(element, parent, key, options); | ||
if (options.syntaxv3 || ((_a = element.props) == null ? void 0 : _a.syntaxv3) || ((_b = parent == null ? void 0 : parent.props) == null ? void 0 : _b.syntaxv3)) { | ||
if (options.syntaxv3 || element.props && element.props.syntaxv3 || parent && parent.props && parent.props.syntaxv3) { | ||
element.props.syntaxv3 = true; | ||
@@ -184,2 +183,3 @@ return (0, import_component.createValidDomqlObjectFromSugar)(element, parent, key, options); | ||
(0, import_event.triggerEventOn)("render", element, options); | ||
(0, import_event.triggerEventOn)("done", element, options); | ||
}; | ||
@@ -186,0 +186,0 @@ const checkIfPrimitive = (element) => (0, import_utils.is)(element)("string", "number"); |
@@ -96,4 +96,4 @@ "use strict"; | ||
const extendizeByKey = (element, parent, key) => { | ||
const { context, tag, extend, props, attr, state, childExtend, childProps, on, if: condition } = element; | ||
const hasComponentAttrs = extend || childExtend || props || state || on || condition || attr; | ||
const { context, tag, extend, props, attr, state, childExtend, childProps, on, if: condition, data } = element; | ||
const hasComponentAttrs = extend || childExtend || props || state || on || condition || attr || data; | ||
const extendFromKey = key.includes("+") ? key.split("+") : key.includes("_") ? key.split("_")[0] : key.includes(".") ? key.split(".")[0] : [key]; | ||
@@ -100,0 +100,0 @@ const isExtendKeyComponent = context && context.components[extendFromKey]; |
{ | ||
"name": "@domql/element", | ||
"version": "2.5.62", | ||
"version": "2.5.63", | ||
"license": "MIT", | ||
@@ -34,3 +34,3 @@ "type": "module", | ||
}, | ||
"gitHead": "005657169525f7aaa256f4e62d6a4688d6e2046a", | ||
"gitHead": "318bb5d6c6b3989cc97b2a2f12c0169599786ffa", | ||
"devDependencies": { | ||
@@ -37,0 +37,0 @@ "@babel/core": "^7.12.0" |
@@ -69,4 +69,4 @@ 'use strict' | ||
export const extendizeByKey = (element, parent, key) => { | ||
const { context, tag, extend, props, attr, state, childExtend, childProps, on, if: condition } = element | ||
const hasComponentAttrs = extend || childExtend || props || state || on || condition || attr | ||
const { context, tag, extend, props, attr, state, childExtend, childProps, on, if: condition, data } = element | ||
const hasComponentAttrs = extend || childExtend || props || state || on || condition || attr || data | ||
@@ -73,0 +73,0 @@ const extendFromKey = key.includes('+') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
180837
4925