@cocreate/render 1.6.2 → 1.8.0
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 +21 -0
- package/docs/index.html +1 -1
- package/package.json +1 -1
- package/src/index.js +3 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
# [1.8.0](https://github.com/CoCreate-app/CoCreate-render/compare/v1.7.1...v1.8.0) (2022-05-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* abiltiy to replace placeholder with Elements or textNodes ([64b5b37](https://github.com/CoCreate-app/CoCreate-render/commit/64b5b378f941067bc093930e54f36fdbbad7f6ab))
|
|
7
|
+
|
|
8
|
+
## [1.7.1](https://github.com/CoCreate-app/CoCreate-render/compare/v1.7.0...v1.7.1) (2022-05-17)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* update document_id on link index.css ([fd54799](https://github.com/CoCreate-app/CoCreate-render/commit/fd54799ba5833946f40b4325dd3a1026a8871bca))
|
|
14
|
+
|
|
15
|
+
# [1.7.0](https://github.com/CoCreate-app/CoCreate-render/compare/v1.6.2...v1.7.0) (2022-05-14)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* function readDocumentList has been renamed to readDocuments ([4ed6777](https://github.com/CoCreate-app/CoCreate-render/commit/4ed6777e7abaa4d52c0d4f6e9b60a35c098cace5))
|
|
21
|
+
|
|
1
22
|
## [1.6.2](https://github.com/CoCreate-app/CoCreate-render/compare/v1.6.1...v1.6.2) (2022-05-06)
|
|
2
23
|
|
|
3
24
|
|
package/docs/index.html
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
<!-- CoCreate CSS -->
|
|
16
16
|
<link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
|
|
17
|
-
<link rel="stylesheet" href="/docs/index.css" collection="files" document_id="
|
|
17
|
+
<link rel="stylesheet" href="/docs/index.css" collection="files" document_id="62827d7e8082ce05b081430b" name="src" type="text/css" save="true" />
|
|
18
18
|
</head>
|
|
19
19
|
|
|
20
20
|
<body>
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -166,18 +166,13 @@ const CoCreateRender = {
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
// if (el.innerHTML) {
|
|
170
|
-
// let textContent = el.innerHTML;
|
|
171
|
-
// textContent = that.__replaceValue(data, textContent);
|
|
172
|
-
// if (textContent) {
|
|
173
|
-
// el.innerHTML = textContent;
|
|
174
|
-
// }
|
|
175
|
-
// }
|
|
176
169
|
if (el.nodeType == 3) {
|
|
177
170
|
let textContent = el.textContent;
|
|
178
171
|
let text = that.__replaceValue(data, textContent);
|
|
179
172
|
if (text) {
|
|
180
|
-
|
|
173
|
+
const newNode = document.createElement('div');
|
|
174
|
+
newNode.innerHTML = text;
|
|
175
|
+
el.replaceWith(...newNode.childNodes)
|
|
181
176
|
}
|
|
182
177
|
}
|
|
183
178
|
|