@symbo.ls/atoms
Advanced tools
Comparing version 2.10.290 to 2.11.5
'use strict' | ||
import { isState } from 'domql/src/element/state' | ||
import { isNot, isArray, isObject, isObjectLike, diff, deepClone } from '@domql/utils' | ||
@@ -34,3 +35,3 @@ | ||
if (!param) return | ||
if (param.parse) param = param.parse() | ||
if (isState(param)) param = param.parse() | ||
if (isNot(param)('array', 'object')) return | ||
@@ -53,10 +54,5 @@ | ||
const set = () => { | ||
el.set(obj, { preventDefineUpdate: '$setStateCollection' }) | ||
} | ||
el.removeContent() | ||
el.content = obj | ||
if (el.props.lazyLoad) { | ||
window.requestAnimationFrame(set) | ||
} else set() | ||
return obj | ||
@@ -67,2 +63,3 @@ }, | ||
if (!param) return | ||
if (isState(param)) param = param.parse() | ||
if (isNot(param)('array', 'object')) return | ||
@@ -76,10 +73,13 @@ | ||
const set = () => { | ||
el.set(obj, { preventDefineUpdate: '$setPropsCollection' }) | ||
} | ||
el.removeContent() | ||
el.content = obj | ||
if (el.props.lazyLoad) { | ||
window.requestAnimationFrame(set) | ||
} else set() | ||
// const set = () => { | ||
// el.set(obj, { preventDefineUpdate: '$setPropsCollection' }) | ||
// } | ||
// if (el.props && el.props.lazyLoad) { | ||
// window.requestAnimationFrame(set) | ||
// } else set() | ||
return obj | ||
@@ -86,0 +86,0 @@ } |
10
Media.js
@@ -122,3 +122,3 @@ 'use strict' | ||
const initUpdate = element => { | ||
const initUpdate = (changes, element) => { | ||
const { props, context, class: className } = element | ||
@@ -134,3 +134,3 @@ const globalTheme = context.designSystem.globalTheme | ||
preventRecursive: true, | ||
ignoreInitUpdate: true | ||
preventInitUpdateListener: true | ||
}) | ||
@@ -151,3 +151,7 @@ } | ||
themeModifier: globalTheme | ||
}, { preventRecursive: true, ignoreInitUpdate: true, preventDefineUpdate: '$setStateCollection' }) | ||
}, { | ||
preventRecursive: true, | ||
preventInitUpdateListener: true, | ||
preventDefineUpdate: true | ||
}) | ||
} else if (key === 'true') applyTrueProps(props[key], CLASS_NAMES, element) | ||
@@ -154,0 +158,0 @@ if (setter) setter(key, props[key], CLASS_NAMES, element) |
{ | ||
"name": "@symbo.ls/atoms", | ||
"version": "2.10.290", | ||
"version": "2.11.5", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"gitHead": "d845374987c8f39a9d683e981f6060040b5b2dde", | ||
"gitHead": "d5256e4c77123737a42641919ddbddb5acb6615c", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "@domql/utils": "latest", |
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
39824
1097
0