@cocreate/render 1.5.3 → 1.5.7
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/package.json +3 -4
- package/src/index.js +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## [1.5.7](https://github.com/CoCreate-app/CoCreate-render/compare/v1.5.6...v1.5.7) (2022-02-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* remove @cocreate/api ([880c6b7](https://github.com/CoCreate-app/CoCreate-render/commit/880c6b7bffba8821204e5d786ac02d41f4ada28e))
|
|
7
|
+
|
|
8
|
+
## [1.5.6](https://github.com/CoCreate-app/CoCreate-render/compare/v1.5.5...v1.5.6) (2022-02-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* bump dependencies ([5064417](https://github.com/CoCreate-app/CoCreate-render/commit/506441714bb30d5aba36f2463c94c04e325c71bb))
|
|
14
|
+
|
|
15
|
+
## [1.5.5](https://github.com/CoCreate-app/CoCreate-render/compare/v1.5.4...v1.5.5) (2022-02-07)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* bump dependency versions ([43a6901](https://github.com/CoCreate-app/CoCreate-render/commit/43a69019d7da43ef637a433ddf71f45c817617ec))
|
|
21
|
+
|
|
22
|
+
## [1.5.4](https://github.com/CoCreate-app/CoCreate-render/compare/v1.5.3...v1.5.4) (2022-02-03)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* setValue as innerHTML ([2b07f7b](https://github.com/CoCreate-app/CoCreate-render/commit/2b07f7b9a4d71fbef652148c62cd88d5c1a5efa4))
|
|
28
|
+
|
|
1
29
|
## [1.5.3](https://github.com/CoCreate-app/CoCreate-render/compare/v1.5.2...v1.5.3) (2022-02-03)
|
|
2
30
|
|
|
3
31
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/render",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.7",
|
|
4
4
|
"description": "A simple render component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"render",
|
|
@@ -61,8 +61,7 @@
|
|
|
61
61
|
"webpack-log": "^3.0.1"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@cocreate/actions": "^1.3.
|
|
65
|
-
"@cocreate/
|
|
66
|
-
"@cocreate/docs": "^1.2.65"
|
|
64
|
+
"@cocreate/actions": "^1.3.31",
|
|
65
|
+
"@cocreate/docs": "^1.2.68"
|
|
67
66
|
}
|
|
68
67
|
}
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/*globals CustomEvent*/
|
|
2
2
|
import action from '@cocreate/actions';
|
|
3
|
-
// import CoCreateApi from '@cocreate/api';
|
|
4
3
|
|
|
5
4
|
const CoCreateRender = {
|
|
6
5
|
|
|
@@ -135,7 +134,7 @@ const CoCreateRender = {
|
|
|
135
134
|
let textContent = el.textContent;
|
|
136
135
|
textContent = that.__replaceValue(data, textContent);
|
|
137
136
|
if (textContent) {
|
|
138
|
-
el.
|
|
137
|
+
el.innerHTML = textContent;
|
|
139
138
|
}
|
|
140
139
|
}
|
|
141
140
|
|
|
@@ -181,7 +180,7 @@ function renderKey(element) {
|
|
|
181
180
|
}
|
|
182
181
|
|
|
183
182
|
action.init({
|
|
184
|
-
|
|
183
|
+
name: "renderKey",
|
|
185
184
|
endEvent: "renderKey",
|
|
186
185
|
callback: (btn, data) => {
|
|
187
186
|
renderKey(btn);
|