gyosjs 0.5.1 → 0.5.2
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 +1 -1
- package/dist/core/reactive.d.ts.map +1 -1
- package/dist/gyos.auto.esm.js +13 -4
- package/dist/gyos.auto.esm.js.map +1 -1
- package/dist/gyos.auto.js +13 -4
- package/dist/gyos.auto.js.map +1 -1
- package/dist/gyos.auto.min.js +2 -2
- package/dist/gyos.csp.auto.esm.js +13 -4
- package/dist/gyos.csp.auto.esm.js.map +1 -1
- package/dist/gyos.csp.auto.js +13 -4
- package/dist/gyos.csp.auto.js.map +1 -1
- package/dist/gyos.csp.auto.min.js +2 -2
- package/dist/gyos.csp.esm.js +13 -4
- package/dist/gyos.csp.esm.js.map +1 -1
- package/dist/gyos.csp.js +13 -4
- package/dist/gyos.csp.js.map +1 -1
- package/dist/gyos.csp.min.js +2 -2
- package/dist/gyos.esm.js +13 -4
- package/dist/gyos.esm.js.map +1 -1
- package/dist/gyos.js +13 -4
- package/dist/gyos.js.map +1 -1
- package/dist/gyos.min.js +2 -2
- 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.2
|
|
3
3
|
* (c) 2026
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
@@ -10738,7 +10738,7 @@ function processModel(element, scope, root) {
|
|
|
10738
10738
|
// Set initial value (no pipes in v-model)
|
|
10739
10739
|
const initialValue = evaluateExpression(expr, currentScope, false);
|
|
10740
10740
|
if (inputElement.type === 'checkbox') {
|
|
10741
|
-
inputElement.checked = !!initialValue;
|
|
10741
|
+
inputElement.checked = !!unref(initialValue);
|
|
10742
10742
|
}
|
|
10743
10743
|
else if (inputElement.type === 'radio') {
|
|
10744
10744
|
inputElement.checked = String(unref(initialValue)) === inputElement.value;
|
|
@@ -10784,7 +10784,7 @@ function processModel(element, scope, root) {
|
|
|
10784
10784
|
// No pipes in v-model reactive updates
|
|
10785
10785
|
const newValue = evaluateExpression(expr, currentScope, false);
|
|
10786
10786
|
if (inputElement.type === 'checkbox') {
|
|
10787
|
-
inputElement.checked = !!newValue;
|
|
10787
|
+
inputElement.checked = !!unref(newValue);
|
|
10788
10788
|
}
|
|
10789
10789
|
else if (inputElement.type === 'radio') {
|
|
10790
10790
|
inputElement.checked = String(unref(newValue)) === inputElement.value;
|
|
@@ -11015,6 +11015,15 @@ function reactive(raw) {
|
|
|
11015
11015
|
// It's a getter - just return value, getter will track its own dependencies
|
|
11016
11016
|
return value;
|
|
11017
11017
|
}
|
|
11018
|
+
// Callable reactive values are data, not methods. Binding would drop
|
|
11019
|
+
// their identity and metadata used by g-model and the public APIs.
|
|
11020
|
+
if (isSignal(value) || isComputed(value)) {
|
|
11021
|
+
// Track the field as well as reads of its value so replacing the
|
|
11022
|
+
// signal/computed switches effects away from the old source.
|
|
11023
|
+
if (hasCurrentEffect())
|
|
11024
|
+
getFieldSignal(target, key, value).value;
|
|
11025
|
+
return value;
|
|
11026
|
+
}
|
|
11018
11027
|
// function -> bind this = proxy
|
|
11019
11028
|
if (typeof value === "function") {
|
|
11020
11029
|
return value.bind(proxy);
|
|
@@ -15574,7 +15583,7 @@ const Gyos = {
|
|
|
15574
15583
|
portalCreate,
|
|
15575
15584
|
portalDestroy,
|
|
15576
15585
|
setCspNonce,
|
|
15577
|
-
version: '0.5.
|
|
15586
|
+
version: '0.5.2'
|
|
15578
15587
|
};
|
|
15579
15588
|
|
|
15580
15589
|
setExpressionRuntime(cspExpressionRuntime);
|