gyosjs 0.5.5 → 0.5.6
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/README.md +5 -1
- package/dist/gyos.auto.esm.js +11 -5
- package/dist/gyos.auto.esm.js.map +1 -1
- package/dist/gyos.auto.js +11 -5
- package/dist/gyos.auto.js.map +1 -1
- package/dist/gyos.auto.min.js +2 -2
- package/dist/gyos.csp.auto.esm.js +11 -5
- package/dist/gyos.csp.auto.esm.js.map +1 -1
- package/dist/gyos.csp.auto.js +11 -5
- package/dist/gyos.csp.auto.js.map +1 -1
- package/dist/gyos.csp.auto.min.js +2 -2
- package/dist/gyos.csp.esm.js +11 -5
- package/dist/gyos.csp.esm.js.map +1 -1
- package/dist/gyos.csp.js +11 -5
- package/dist/gyos.csp.js.map +1 -1
- package/dist/gyos.csp.min.js +2 -2
- package/dist/gyos.esm.js +11 -5
- package/dist/gyos.esm.js.map +1 -1
- package/dist/gyos.js +11 -5
- package/dist/gyos.js.map +1 -1
- package/dist/gyos.min.js +2 -2
- package/dist/template/bindings.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/gyos.csp.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* GyosJS v0.5.
|
|
2
|
+
* GyosJS v0.5.6
|
|
3
3
|
* (c) 2026
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
@@ -9446,7 +9446,8 @@ function syncBooleanProperty(element, attrName, value) {
|
|
|
9446
9446
|
const propertyName = booleanPropertyNames[attrName] || attrName;
|
|
9447
9447
|
if (propertyName in element) {
|
|
9448
9448
|
try {
|
|
9449
|
-
element[propertyName]
|
|
9449
|
+
if (element[propertyName] !== value)
|
|
9450
|
+
element[propertyName] = value;
|
|
9450
9451
|
}
|
|
9451
9452
|
catch {
|
|
9452
9453
|
// Some reflected DOM properties are read-only in older engines.
|
|
@@ -9477,9 +9478,14 @@ function applyAttributeBinding(element, rawAttrName, value) {
|
|
|
9477
9478
|
}
|
|
9478
9479
|
const stringValue = String(value);
|
|
9479
9480
|
if (attrName === 'value' && 'value' in element) {
|
|
9480
|
-
|
|
9481
|
+
// Compare the live control, not a cached expression: user edits and
|
|
9482
|
+
// external DOM changes still need reconciliation on the next update.
|
|
9483
|
+
if (element.value !== stringValue) {
|
|
9484
|
+
element.value = stringValue;
|
|
9485
|
+
}
|
|
9481
9486
|
}
|
|
9482
|
-
element.
|
|
9487
|
+
if (element.getAttribute(attrName) !== stringValue)
|
|
9488
|
+
element.setAttribute(attrName, stringValue);
|
|
9483
9489
|
}
|
|
9484
9490
|
function boundAttributes(element) {
|
|
9485
9491
|
return Array.from(element.attributes).filter(attribute => attribute.name.startsWith(':'));
|
|
@@ -15844,7 +15850,7 @@ const Gyos = {
|
|
|
15844
15850
|
portalCreate,
|
|
15845
15851
|
portalDestroy,
|
|
15846
15852
|
setCspNonce,
|
|
15847
|
-
version: '0.5.
|
|
15853
|
+
version: '0.5.6'
|
|
15848
15854
|
};
|
|
15849
15855
|
|
|
15850
15856
|
setExpressionRuntime(cspExpressionRuntime);
|