@cocreate/utils 1.6.0 → 1.6.4

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,31 @@
1
+ ## [1.6.4](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.6.3...v1.6.4) (2022-02-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bump dependencies ([5235dcb](https://github.com/CoCreate-app/CoCreate-utils/commit/5235dcb03337bce15bd0aa7d94497660f4024c8f))
7
+
8
+ ## [1.6.3](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.6.2...v1.6.3) (2022-02-07)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * bump dependency versions ([849f540](https://github.com/CoCreate-app/CoCreate-utils/commit/849f5409d140a475701f7c392ab99eeeb7001c6e))
14
+
15
+ ## [1.6.2](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.6.1...v1.6.2) (2022-02-07)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * if eid contains {{...}} continue with cssPath ([34e142c](https://github.com/CoCreate-app/CoCreate-utils/commit/34e142ce50e82da94c603c431244727f479bd333))
21
+
22
+ ## [1.6.1](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.6.0...v1.6.1) (2022-02-03)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * replaced show and hide class hidden with attribute hidden ([f1ad793](https://github.com/CoCreate-app/CoCreate-utils/commit/f1ad793841db4abe67032a24625e8a46f7560bbf))
28
+
1
29
  # [1.6.0](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.5.1...v1.6.0) (2022-02-03)
2
30
 
3
31
 
package/docs/index.html CHANGED
@@ -104,7 +104,7 @@
104
104
  <div class="container svColumn overflow:hidden card position:relative border-radius:2px width:auto height:100%" id="sandbox">
105
105
  <div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
106
106
  <a class="margin-right:10px" id="code" show="#preview" hide="#code, #view"><i class="far fa-eye"></i></a>
107
- <a class="margin-right:10px hidden" id="preview" show="#code, #view" hide="#preview"><i class="fas fa-code"></i></a>
107
+ <a class="margin-right:10px" id="preview" show="#code, #view" hide="#preview" hidden><i class="fas fa-code"></i></a>
108
108
  <a class="margin-right:5px" fullscreen target="#playground"><i class="fas fa-expand"></i></a>
109
109
  </div>
110
110
  <div class="svRow">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/utils",
3
- "version": "1.6.0",
3
+ "version": "1.6.4",
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",
@@ -61,6 +61,6 @@
61
61
  "webpack-log": "^3.0.1"
62
62
  },
63
63
  "dependencies": {
64
- "@cocreate/docs": "^1.2.65"
64
+ "@cocreate/docs": "^1.2.68"
65
65
  }
66
66
  }
package/src/index.js CHANGED
@@ -48,6 +48,9 @@ export function cssPath(node, container) {
48
48
  }
49
49
  else {
50
50
  let eid = node.getAttribute('eid');
51
+ if(/{{\s*([\w\W]+)\s*}}/g.test(eid)) {
52
+ eid = false;
53
+ }
51
54
  if (eid) {
52
55
  pathSplit += `[eid="${eid}"]`;
53
56
  node = '';