@cocreate/render 1.37.0 → 1.38.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 CHANGED
@@ -1,3 +1,17 @@
1
+ # [1.38.0](https://github.com/CoCreate-app/CoCreate-render/compare/v1.37.1...v1.38.0) (2024-01-08)
2
+
3
+
4
+ ### Features
5
+
6
+ * bumped CoCreate dependencies to their latest versions ([2612826](https://github.com/CoCreate-app/CoCreate-render/commit/26128265e618a9aa0865cd76ae7506c86e5496b7))
7
+
8
+ ## [1.37.1](https://github.com/CoCreate-app/CoCreate-render/compare/v1.37.0...v1.37.1) (2023-12-18)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * if no template.clone use template.template.clone ([ea678bf](https://github.com/CoCreate-app/CoCreate-render/commit/ea678bf3fa097349e431d7bf96f582a647d03a27))
14
+
1
15
  # [1.37.0](https://github.com/CoCreate-app/CoCreate-render/compare/v1.36.1...v1.37.0) (2023-12-18)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/render",
3
- "version": "1.37.0",
3
+ "version": "1.38.0",
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",
@@ -58,10 +58,10 @@
58
58
  "webpack-log": "^3.0.1"
59
59
  },
60
60
  "dependencies": {
61
- "@cocreate/actions": "^1.14.0",
62
- "@cocreate/api": "^1.17.0",
61
+ "@cocreate/actions": "^1.15.1",
62
+ "@cocreate/api": "^1.18.2",
63
63
  "@cocreate/element-prototype": "^1.15.0",
64
- "@cocreate/observer": "^1.14.0",
65
- "@cocreate/utils": "^1.29.0"
64
+ "@cocreate/observer": "^1.15.0",
65
+ "@cocreate/utils": "^1.30.0"
66
66
  }
67
67
  }
package/src/index.js CHANGED
@@ -244,6 +244,8 @@ async function renderTemplate(template, data, key, index, keyPath) {
244
244
 
245
245
  let isInsert = data.$filter && (data.$filter.create || data.$filter.update)
246
246
  if (!isInsert && !index || data.$filter.overwrite) {
247
+ if (!template.clones)
248
+ template = template.template
247
249
  for (const [key, element] of template.clones) {
248
250
  renderedNodes.delete(element)
249
251
  element.remove()