@cocreate/elements 1.7.0 → 1.7.3

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,24 @@
1
+ ## [1.7.3](https://github.com/CoCreate-app/CoCreate-elements/compare/v1.7.2...v1.7.3) (2022-05-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bump cdn version to 1.15.4 ([9354dae](https://github.com/CoCreate-app/CoCreate-elements/commit/9354daed0ec0d0ec1519ca089e9ab0b3d3e3a921))
7
+
8
+ ## [1.7.2](https://github.com/CoCreate-app/CoCreate-elements/compare/v1.7.1...v1.7.2) (2022-05-17)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * update document_id on link index.css ([91b336e](https://github.com/CoCreate-app/CoCreate-elements/commit/91b336e9fc52842175be0a910a50dce4206a0729))
14
+
15
+ ## [1.7.1](https://github.com/CoCreate-app/CoCreate-elements/compare/v1.7.0...v1.7.1) (2022-05-15)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * if srcdoc is removed iframe is refreshed losing its content. removed code that removed srcdoc. ([6fdd25b](https://github.com/CoCreate-app/CoCreate-elements/commit/6fdd25b07d378b5dec971e9f07d42062365e29f7))
21
+
1
22
  # [1.7.0](https://github.com/CoCreate-app/CoCreate-elements/compare/v1.6.17...v1.7.0) (2022-05-14)
2
23
 
3
24
 
package/demo/index.html CHANGED
@@ -6,18 +6,18 @@
6
6
  <link rel="icon" href="https://cdn.cocreate.app/favicon.ico" type="image/ico" sizes="16x16">
7
7
  </head>
8
8
  <body>
9
- <form collection="module_activities" class="margin:20px">
10
-
11
- <h1 collection="module_activities" document_id="5edda7608d5c7a7d656edecd" name="name"></h1>
12
- <h2 collection="module_activities" document_id="5edda7608d5c7a7d656edecd" name="name1"></h2>
13
- <h3 collection="module_activities" document_id="5edda7608d5c7a7d656edecd" name="color" ></h3>
14
- <h4 collection="module_activities" document_id="5edda7608d5c7a7d656edecd" name="search"></h4>
15
- <h5 collection="module_activities" document_id="5edda7608d5c7a7d656edecd" name="date"></h5>
16
- <h6 collection="module_activities" document_id="5edda7608d5c7a7d656edecd" name="time"></h6>
17
- <p collection="module_activities" document_id="5edda7608d5c7a7d656edecd" name="date-time"></p>
18
- <span collection="module_activities" document_id="5edda7608d5c7a7d656edecd" name="date-time"></span>
19
- <div collection="module_activities" document_id="5edda7608d5c7a7d656edecd" name="text_area" classs="domeditor"></div>
20
- <span collection="render_test" document_id="5f5aeb493a7246b7cf2e4005" name="personal_info.email"></span>
9
+ <form collection="test" document_id="62844ba35b660d9424e352a0" class="margin:20px">
10
+ <input name="test">
11
+ <h1 name="name"></h1>
12
+ <h2 name="name1"></h2>
13
+ <h3 name="color" ></h3>
14
+ <h4 name="search"></h4>
15
+ <h5 name="date"></h5>
16
+ <h6 name="time"></h6>
17
+ <p name="date-time"></p>
18
+ <span name="date-time"></span>
19
+ <div name="text_area" classs="domeditor"></div>
20
+ <span name="personal_info.email"></span>
21
21
  </form>
22
22
 
23
23
  <!--<script src="../dist/CoCreate-elements.js"></script>-->
package/docs/index.html CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  <!-- CoCreate Favicon -->
16
16
  <link rel="icon" type="image/png" sizes="32x32" href="https://cocreate.app/images/favicon.ico">
17
- <link rel="stylesheet" href="/docs/index.css" collection="files" document_id="60888216117c640e7596303f" name="src" type="text/css" save="true" />
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/elements",
3
- "version": "1.7.0",
3
+ "version": "1.7.3",
4
4
  "description": "Fetch content into any html element by using html5 attributes to query data stored in CoCreate headless CMS. If data is changed it will instantly reflect in html tags as changes are broadcasted in realtime",
5
5
  "keywords": [
6
6
  "elements",
package/src/setValue.js CHANGED
@@ -107,17 +107,8 @@ var setValue = (el, value) => {
107
107
  else if (el.tagName === 'IMG' || el.tagName === 'SOURCE')
108
108
  el.src = value;
109
109
 
110
- else if (el.tagName === 'IFRAME') {
110
+ else if (el.tagName === 'IFRAME')
111
111
  el.srcdoc = value;
112
- // el.contentDocument.documentElement.innerHTML = value;
113
- if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1){
114
- // Do Firefox-related activities
115
- }
116
- else
117
- el.onload = function(e) {
118
- el.removeAttribute('srcdoc');
119
- };
120
- }
121
112
 
122
113
  else if (el.tagName === 'DIV') {
123
114
  if (el.hasAttribute("value")) {