@cocreate/element-prototype 1.31.1 → 1.31.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,17 @@
1
+ ## [1.31.3](https://github.com/CoCreate-app/CoCreate-element-prototype/compare/v1.31.2...v1.31.3) (2026-02-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * removed plugin attribute check from setValue function ([f391aad](https://github.com/CoCreate-app/CoCreate-element-prototype/commit/f391aadfcf39b827afedd84b00379265547adea1))
7
+
8
+ ## [1.31.2](https://github.com/CoCreate-app/CoCreate-element-prototype/compare/v1.31.1...v1.31.2) (2026-02-25)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Update logo image source in menu component ([8c95f34](https://github.com/CoCreate-app/CoCreate-element-prototype/commit/8c95f34a82092a7b9e3ab64dfd821b0ad933e52b))
14
+
1
15
  ## [1.31.1](https://github.com/CoCreate-app/CoCreate-element-prototype/compare/v1.31.0...v1.31.1) (2026-01-18)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/element-prototype",
3
- "version": "1.31.1",
3
+ "version": "1.31.3",
4
4
  "description": "A simple element-prototype component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "element-prototype",
package/src/getValue.js CHANGED
@@ -28,7 +28,7 @@ const getValue = (element, valueType) => {
28
28
  // Handle specific cases for elements considered components, plugins, or file inputs
29
29
  if (
30
30
  element.hasAttribute("component") ||
31
- element.hasAttribute("plugin") ||
31
+ // element.hasAttribute("plugin") ||
32
32
  element.type === "file" ||
33
33
  element.getAttribute("type") === "file"
34
34
  ) {
package/src/setValue.js CHANGED
@@ -14,7 +14,7 @@ const setValue = (el, value, dispatch) => {
14
14
  }
15
15
 
16
16
  if (value === null || value === undefined) return;
17
- if (el.hasAttribute("component") || el.hasAttribute("plugin"))
17
+ if (el.hasAttribute("component"))
18
18
  return storage.set(el, value);
19
19
  else if (typeof value === "object") value = JSON.stringify(value, null, 2);
20
20