@cocreate/elements 1.13.15 → 1.13.16

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,11 @@
1
+ ## [1.13.16](https://github.com/CoCreate-app/CoCreate-elements/compare/v1.13.15...v1.13.16) (2022-12-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bump @cocreate/crud-client ([fdca75a](https://github.com/CoCreate-app/CoCreate-elements/commit/fdca75a85287a2953c820b8054704d73794914a8))
7
+ * crud.getValueFromObject ([027c24a](https://github.com/CoCreate-app/CoCreate-elements/commit/027c24a13c87c4c54ff7b1ae4ec84c9f38dc57ba))
8
+
1
9
  ## [1.13.15](https://github.com/CoCreate-app/CoCreate-elements/compare/v1.13.14...v1.13.15) (2022-12-02)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/elements",
3
- "version": "1.13.15",
3
+ "version": "1.13.16",
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",
@@ -61,11 +61,11 @@
61
61
  "webpack-log": "^3.0.1"
62
62
  },
63
63
  "dependencies": {
64
- "@cocreate/actions": "^1.5.28",
65
- "@cocreate/crud-client": "^1.15.10",
66
- "@cocreate/docs": "^1.4.11",
67
- "@cocreate/element-prototype": "^1.1.15",
68
- "@cocreate/observer": "^1.5.32",
69
- "@cocreate/utils": "^1.13.0"
64
+ "@cocreate/actions": "^1.5.29",
65
+ "@cocreate/crud-client": "^1.15.12",
66
+ "@cocreate/docs": "^1.4.12",
67
+ "@cocreate/element-prototype": "^1.1.16",
68
+ "@cocreate/observer": "^1.5.33",
69
+ "@cocreate/utils": "^1.13.1"
70
70
  }
71
71
  }
package/src/index.js CHANGED
@@ -139,7 +139,7 @@ function setData(elements, data) {
139
139
  value = JSON.stringify(data.document[0][name])
140
140
  value = decodeURIComponent(value)
141
141
  } else
142
- value = crud.getObjectValueByPath(data.document[0], name);
142
+ value = crud.getValueFromObject(data.document[0], name);
143
143
 
144
144
  el.setValue(value);
145
145