@cocreate/utils 1.20.8 → 1.20.9
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 +7 -0
- package/package.json +2 -2
- package/src/archive.js +3 -3
- package/src/utils.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.20.9](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.20.8...v1.20.9) (2023-05-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update packages to latest version. This commit updates various packages in the dependencies section of the package.json file to their latest published versions, thereby fixing multiple bugs and improving overall performance. ([44fd1d1](https://github.com/CoCreate-app/CoCreate-utils/commit/44fd1d1bb5b1d020610becf5b4633c623207f96a))
|
|
7
|
+
|
|
1
8
|
## [1.20.8](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.20.7...v1.20.8) (2023-05-10)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/utils",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.9",
|
|
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",
|
|
@@ -59,6 +59,6 @@
|
|
|
59
59
|
"webpack-log": "^3.0.1"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@cocreate/docs": "^1.7.
|
|
62
|
+
"@cocreate/docs": "^1.7.10"
|
|
63
63
|
}
|
|
64
64
|
}
|
package/src/archive.js
CHANGED
|
@@ -52,7 +52,7 @@ export function getAttributes(element) {
|
|
|
52
52
|
}, {});
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
//
|
|
55
|
+
// TODO: duplicate it is in crud.utils
|
|
56
56
|
export function checkValue(value) {
|
|
57
57
|
if (!value) return false;
|
|
58
58
|
if (/{{\s*([\w\W]+)\s*}}/g.test(value)) {
|
|
@@ -62,7 +62,7 @@ export function checkValue(value) {
|
|
|
62
62
|
return true;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
//
|
|
65
|
+
// TODO: Maybe can be deprciated
|
|
66
66
|
export function getValueFromJonDeep(json, path) {
|
|
67
67
|
try {
|
|
68
68
|
if (typeof json == 'undefined')
|
|
@@ -233,7 +233,7 @@ export function getElementPath(element, returnContext) {
|
|
|
233
233
|
if (p) path.unshift(p);
|
|
234
234
|
|
|
235
235
|
return returnContext ? { path, document: iframeElement || document } : path;
|
|
236
|
-
//
|
|
236
|
+
//TODO: support for nested iframe
|
|
237
237
|
// while(iframeElement !== findIframeFromElement(topWindow,iframeElement))
|
|
238
238
|
// {
|
|
239
239
|
// iframeElement = findIframeFromElement(topWindow,iframeElement);
|
package/src/utils.js
CHANGED
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
// }
|
|
182
182
|
|
|
183
183
|
if (node.parentNode && node.parentNode.children.length > 1) {
|
|
184
|
-
//
|
|
184
|
+
// TODO: improve array logic so ignores javascript generated html??
|
|
185
185
|
let children = []
|
|
186
186
|
for (let child of node.parentNode.children){
|
|
187
187
|
// if (!child.matches('.mirror'))
|