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.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
|
*/
|
|
@@ -4121,7 +4121,7 @@ function processModel(element, scope, root) {
|
|
|
4121
4121
|
// Set initial value (no pipes in v-model)
|
|
4122
4122
|
const initialValue = evaluateExpression(expr, currentScope, false);
|
|
4123
4123
|
if (inputElement.type === 'checkbox') {
|
|
4124
|
-
inputElement.checked = !!initialValue;
|
|
4124
|
+
inputElement.checked = !!unref(initialValue);
|
|
4125
4125
|
}
|
|
4126
4126
|
else if (inputElement.type === 'radio') {
|
|
4127
4127
|
inputElement.checked = String(unref(initialValue)) === inputElement.value;
|
|
@@ -4167,7 +4167,7 @@ function processModel(element, scope, root) {
|
|
|
4167
4167
|
// No pipes in v-model reactive updates
|
|
4168
4168
|
const newValue = evaluateExpression(expr, currentScope, false);
|
|
4169
4169
|
if (inputElement.type === 'checkbox') {
|
|
4170
|
-
inputElement.checked = !!newValue;
|
|
4170
|
+
inputElement.checked = !!unref(newValue);
|
|
4171
4171
|
}
|
|
4172
4172
|
else if (inputElement.type === 'radio') {
|
|
4173
4173
|
inputElement.checked = String(unref(newValue)) === inputElement.value;
|
|
@@ -4398,6 +4398,15 @@ function reactive(raw) {
|
|
|
4398
4398
|
// It's a getter - just return value, getter will track its own dependencies
|
|
4399
4399
|
return value;
|
|
4400
4400
|
}
|
|
4401
|
+
// Callable reactive values are data, not methods. Binding would drop
|
|
4402
|
+
// their identity and metadata used by g-model and the public APIs.
|
|
4403
|
+
if (isSignal(value) || isComputed(value)) {
|
|
4404
|
+
// Track the field as well as reads of its value so replacing the
|
|
4405
|
+
// signal/computed switches effects away from the old source.
|
|
4406
|
+
if (hasCurrentEffect())
|
|
4407
|
+
getFieldSignal(target, key, value).value;
|
|
4408
|
+
return value;
|
|
4409
|
+
}
|
|
4401
4410
|
// function -> bind this = proxy
|
|
4402
4411
|
if (typeof value === "function") {
|
|
4403
4412
|
return value.bind(proxy);
|
|
@@ -8957,7 +8966,7 @@ const Gyos = {
|
|
|
8957
8966
|
portalCreate,
|
|
8958
8967
|
portalDestroy,
|
|
8959
8968
|
setCspNonce,
|
|
8960
|
-
version: '0.5.
|
|
8969
|
+
version: '0.5.2'
|
|
8961
8970
|
};
|
|
8962
8971
|
|
|
8963
8972
|
setExpressionRuntime(standardExpressionRuntime);
|