@cocreate/events 1.30.0 → 1.30.1

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,10 @@
1
+ ## [1.30.1](https://github.com/CoCreate-app/CoCreate-events/compare/v1.30.0...v1.30.1) (2026-03-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * operator $value should trigger getValue() instead of being treated as a literal string ([7198b2d](https://github.com/CoCreate-app/CoCreate-events/commit/7198b2d3aa65899a22889cb1d6a3638baca442c5))
7
+
1
8
  # [1.30.0](https://github.com/CoCreate-app/CoCreate-events/compare/v1.29.1...v1.30.0) (2026-02-15)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/events",
3
- "version": "1.30.0",
3
+ "version": "1.30.1",
4
4
  "description": "A simple events component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "events",
package/src/index.js CHANGED
@@ -473,9 +473,9 @@ const CoCreateEvents = {
473
473
 
474
474
  // Get Value
475
475
  let value = sourceElement.getAttribute(name);
476
- if (!value && sourceElement.getValue) {
476
+ if (value === "$value" && sourceElement.getValue) {
477
477
  value = await sourceElement.getValue();
478
- }
478
+ }
479
479
 
480
480
  // Parse CSV for rotation
481
481
  let values = [];
@@ -608,12 +608,7 @@ const CoCreateEvents = {
608
608
  newValue = this.__getNextValue(values, oldValue, deactivate);
609
609
 
610
610
  // Handle Namespaced Attributes (e.g. svg:href) if encoded in name
611
- if (targetName.includes('.')) {
612
- const realName = targetName.replace('.', ':');
613
- targetElement.setAttribute(realName, newValue);
614
- } else {
615
- targetElement.setAttribute(targetName, newValue);
616
- }
611
+ targetElement.setAttribute(targetName, newValue);
617
612
  }
618
613
  break;
619
614
  }