@cocreate/utils
Advanced tools
Comparing version 1.1.24 to 1.1.25
@@ -0,1 +1,8 @@ | ||
## [1.1.25](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.1.24...v1.1.25) (2021-10-04) | ||
### Bug Fixes | ||
* relocated matchConfig to @cocreate/element-config ([0ff7505](https://github.com/CoCreate-app/CoCreate-utils/commit/0ff7505e6c38727179d3d39221551c294926e6e4)) | ||
## [1.1.24](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.1.23...v1.1.24) (2021-10-02) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@cocreate/utils", | ||
"version": "1.1.24", | ||
"version": "1.1.25", | ||
"description": "A simple utils component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.", | ||
@@ -64,4 +64,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@cocreate/docs": "^1.2.25" | ||
"@cocreate/docs": "^1.2.26" | ||
} | ||
} |
@@ -9,12 +9,2 @@ /*globals DOMParser*/ | ||
export function* configMatch(elementConfig, element) { | ||
for (let config of elementConfig) { | ||
// if (!Array.isArray(config.selector)) | ||
// config.selector = [config.selector]; | ||
if (config.selector && element.matches(config.selector)) yield config; | ||
} | ||
return; | ||
} | ||
export function parseTextToHtml(text) { | ||
@@ -54,3 +44,2 @@ let doc = new DOMParser().parseFromString(text, "text/html"); | ||
// export function computeStyles(el, properties) { | ||
@@ -65,2 +54,14 @@ // let computed = window.getComputedStyle(el); | ||
// function checkParent(element, selectors){ | ||
// let parentElement; | ||
// do { | ||
// parentElement = element.parentElement.closest(selectors); | ||
// if(parentElement) { | ||
// element = parentElement; | ||
// } else { | ||
// return element; | ||
// } | ||
// } while (parentElement); | ||
// } | ||
export default { | ||
@@ -67,0 +68,0 @@ parseTextToHtml, |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
50100
484
0
Updated@cocreate/docs@^1.2.26