@cocreate/utils 1.4.1 → 1.4.2

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.4.2](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.4.1...v1.4.2) (2021-12-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * comment cssPath class parser. path could not resolve element ([1a00794](https://github.com/CoCreate-app/CoCreate-utils/commit/1a00794a0ee96699379e8efd0e75000efe93cded))
7
+
1
8
  ## [1.4.1](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.4.0...v1.4.1) (2021-12-15)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/utils",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "A simple utils component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "utils",
package/src/index.js CHANGED
@@ -32,11 +32,11 @@ export function cssPath(node, container) {
32
32
  node = '';
33
33
  }
34
34
  else {
35
- if (node.classList.length) {
36
- node.classList.forEach((item) => {
37
- if (item.indexOf(":") === -1) pathSplit += "." + item;
38
- });
39
- }
35
+ // if (node.classList.length) {
36
+ // node.classList.forEach((item) => {
37
+ // if (item.indexOf(":") === -1) pathSplit += "." + item;
38
+ // });
39
+ // }
40
40
 
41
41
  if (node.parentNode && node.parentNode.children.length > 1) {
42
42
  // ToDo: improve array logic so ignores javascript generated html??
package/src/index.old.js CHANGED
@@ -345,6 +345,17 @@ async function complexSelector(comSelector, callback) {
345
345
  return callback(canvas.contentWindow.document, selector);
346
346
  }
347
347
 
348
+ // function eid(html){
349
+ // let dom = domParser(html);
350
+ // let elements = dom.querySelectorAll('*');
351
+ // for (let element of elements){
352
+ // if (!element.getAttribute('eid')){
353
+ // element.setAttribute(eid, uuid(8))
354
+ // }
355
+ // }
356
+ // return dom.outterHTML
357
+ // }
358
+
348
359
 
349
360
  // export function computeStyles(el, properties) {
350
361
  // let computed = window.getComputedStyle(el);