@cocreate/utils 1.3.14 → 1.3.18
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 +28 -0
- package/docs/index.html +24 -44
- package/package.json +2 -2
- package/src/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## [1.3.18](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.3.17...v1.3.18) (2021-12-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* csspath element null return ([dd4ac41](https://github.com/CoCreate-app/CoCreate-utils/commit/dd4ac41f123105f1b4364e858bc221914220427c))
|
|
7
|
+
|
|
8
|
+
## [1.3.17](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.3.16...v1.3.17) (2021-11-27)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* update dependencies ([d09ebd8](https://github.com/CoCreate-app/CoCreate-utils/commit/d09ebd8f0c9f0be1ffc9a84cd86252faf7d13bfd))
|
|
14
|
+
|
|
15
|
+
## [1.3.16](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.3.15...v1.3.16) (2021-11-27)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* update dependencies ([86924ed](https://github.com/CoCreate-app/CoCreate-utils/commit/86924ed3e16a02c1c02a9c8727adc3e284a2b0a5))
|
|
21
|
+
|
|
22
|
+
## [1.3.15](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.3.14...v1.3.15) (2021-11-27)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* update docs api and cocreateJS script ([7c731e2](https://github.com/CoCreate-app/CoCreate-utils/commit/7c731e23e2f90a6e47f503fbc20c310e3d325f51))
|
|
28
|
+
|
|
1
29
|
## [1.3.14](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.3.13...v1.3.14) (2021-11-26)
|
|
2
30
|
|
|
3
31
|
|
package/docs/index.html
CHANGED
|
@@ -100,50 +100,30 @@
|
|
|
100
100
|
</span>
|
|
101
101
|
</div>
|
|
102
102
|
<div class="position:sticky top:0 padding:10px_0px height:100vh">
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
<div class="svPanel">
|
|
129
|
-
<div realtime="false"
|
|
130
|
-
collection="modules"
|
|
131
|
-
document_id="5eefe30952c6e94c75fb5e3f"
|
|
132
|
-
name="html"
|
|
133
|
-
id="7"
|
|
134
|
-
class="codemirror height:100% min-width:300px">
|
|
135
|
-
</div>
|
|
136
|
-
</div>
|
|
137
|
-
<div class="svSplitter svHorizontal"> </div>
|
|
138
|
-
|
|
139
|
-
<div class="svPanel">
|
|
140
|
-
<iframe get-value="7" frameBorder="0" height="100%" width="100%" class="min-width:300px"></iframe>
|
|
141
|
-
</div>
|
|
142
|
-
|
|
143
|
-
</div>
|
|
144
|
-
</div>
|
|
145
|
-
</div>
|
|
146
|
-
<!-- End SandBox -->
|
|
103
|
+
<!-- SandBox -->
|
|
104
|
+
<div class="container svColumn overflow:hidden card position:relative border-radius:2px width:auto height:100%" id="sandbox">
|
|
105
|
+
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
|
|
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>
|
|
108
|
+
<a class="margin-right:5px" fullscreen target="#playground"><i class="fas fa-expand"></i></a>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="svRow">
|
|
111
|
+
|
|
112
|
+
<div class="svColumn">
|
|
113
|
+
|
|
114
|
+
<div class="svPanel" id="view">
|
|
115
|
+
<textarea collection="demos" document_id="" name="demo" save="false" id="demo" class="height:100% width:100% border:none resize:none padding:5px"></textarea>
|
|
116
|
+
</div>
|
|
117
|
+
<div class="svSplitter svHorizontal"> </div>
|
|
118
|
+
|
|
119
|
+
<div class="svPanel">
|
|
120
|
+
<iframe get-value="demo" frameBorder="0" height="100%" width="100%" class="min-width:300px"></iframe>
|
|
121
|
+
</div>
|
|
122
|
+
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
<!-- End SandBox -->
|
|
147
127
|
</div>
|
|
148
128
|
</div>
|
|
149
129
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/utils",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.18",
|
|
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.
|
|
64
|
+
"@cocreate/docs": "^1.2.60"
|
|
65
65
|
}
|
|
66
66
|
}
|
package/src/index.js
CHANGED
|
@@ -44,7 +44,7 @@ export function cssPath(node, container) {
|
|
|
44
44
|
|
|
45
45
|
// pathSplits.unshift(pathSplit);
|
|
46
46
|
node = node.parentNode;
|
|
47
|
-
if (node.tagName == "HTML" || node.nodeName == "#document" || node.hasAttribute('contenteditable'))
|
|
47
|
+
if (node == null || node.tagName == "HTML" || node.nodeName == "#document" || node.hasAttribute('contenteditable'))
|
|
48
48
|
node = '';
|
|
49
49
|
}
|
|
50
50
|
}
|