@cocreate/render 1.40.0 → 1.40.2

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.40.2](https://github.com/CoCreate-app/CoCreate-render/compare/v1.40.1...v1.40.2) (2024-02-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * set eid if not defined ([097d15d](https://github.com/CoCreate-app/CoCreate-render/commit/097d15d894c30a4f2d1f3986715549203c056058))
7
+
8
+ ## [1.40.1](https://github.com/CoCreate-app/CoCreate-render/compare/v1.40.0...v1.40.1) (2024-02-05)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Removed https://cdn.cocreate.app/latest/CoCreate.min.css ([cd632d5](https://github.com/CoCreate-app/CoCreate-render/commit/cd632d530b705c46e26ce838bd4da86ce3b1b83a))
14
+
1
15
  # [1.40.0](https://github.com/CoCreate-app/CoCreate-render/compare/v1.39.0...v1.40.0) (2024-01-30)
2
16
 
3
17
 
package/docs/index.html CHANGED
@@ -21,11 +21,6 @@
21
21
  property="og:image"
22
22
  content="https://cdn.cocreate.app/docs/render.png" />
23
23
 
24
- <!-- CoCreate CSS -->
25
- <link
26
- rel="stylesheet"
27
- href="https://cdn.cocreate.app/latest/CoCreate.min.css"
28
- type="text/css" />
29
24
  <link
30
25
  rel="stylesheet"
31
26
  href="../index.css"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/render",
3
- "version": "1.40.0",
3
+ "version": "1.40.2",
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",
package/src/index.js CHANGED
@@ -380,8 +380,10 @@ function cloneTemplate(template) {
380
380
 
381
381
  function insertElement(template, element, index, currentIndex) {
382
382
  let eid = element.getAttribute('eid')
383
- if (!eid)
384
- console.log('attribute eid not found')
383
+ if (!eid) {
384
+ eid = uuid.generate(6)
385
+ element.setAttribute('eid', eid)
386
+ }
385
387
 
386
388
  if (index !== null && index >= 0) {
387
389
  if (!template.clones)