@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 +7 -0
- package/package.json +1 -1
- package/src/index.js +3 -8
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
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 (
|
|
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
|
-
|
|
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
|
}
|