ripple 0.2.176 → 0.2.177
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/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Ripple is an elegant TypeScript UI framework",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Dominic Gannaway",
|
|
6
|
-
"version": "0.2.
|
|
6
|
+
"version": "0.2.177",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"module": "src/runtime/index-client.js",
|
|
9
9
|
"main": "src/runtime/index-client.js",
|
|
@@ -83,6 +83,6 @@
|
|
|
83
83
|
"@volar/language-core": "~2.4.23"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"ripple": "0.2.
|
|
86
|
+
"ripple": "0.2.177"
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -968,7 +968,12 @@ const visitors = {
|
|
|
968
968
|
const expression = visit(attr.value, { ...state, metadata });
|
|
969
969
|
|
|
970
970
|
if (metadata.tracking) {
|
|
971
|
-
local_updates.push({
|
|
971
|
+
local_updates.push({
|
|
972
|
+
operation: (key) => b.stmt(b.call('_$_.set_value', id, key)),
|
|
973
|
+
expression,
|
|
974
|
+
identity: attr.value,
|
|
975
|
+
initial: b.void0,
|
|
976
|
+
});
|
|
972
977
|
} else {
|
|
973
978
|
state.init.push(b.stmt(b.call('_$_.set_value', id, expression)));
|
|
974
979
|
}
|
|
@@ -983,7 +988,10 @@ const visitors = {
|
|
|
983
988
|
|
|
984
989
|
if (metadata.tracking) {
|
|
985
990
|
local_updates.push({
|
|
986
|
-
operation: b.stmt(b.call('_$_.set_checked', id,
|
|
991
|
+
operation: (key) => b.stmt(b.call('_$_.set_checked', id, key)),
|
|
992
|
+
expression,
|
|
993
|
+
identity: attr.value,
|
|
994
|
+
initial: b.void0,
|
|
987
995
|
});
|
|
988
996
|
} else {
|
|
989
997
|
state.init.push(b.stmt(b.call('_$_.set_checked', id, expression)));
|
|
@@ -998,7 +1006,10 @@ const visitors = {
|
|
|
998
1006
|
|
|
999
1007
|
if (metadata.tracking) {
|
|
1000
1008
|
local_updates.push({
|
|
1001
|
-
operation: b.stmt(b.call('_$_.set_selected', id,
|
|
1009
|
+
operation: (key) => b.stmt(b.call('_$_.set_selected', id, key)),
|
|
1010
|
+
expression,
|
|
1011
|
+
identity: attr.value,
|
|
1012
|
+
initial: b.void0,
|
|
1002
1013
|
});
|
|
1003
1014
|
} else {
|
|
1004
1015
|
state.init.push(b.stmt(b.call('_$_.set_selected', id, expression)));
|
|
@@ -1171,7 +1182,7 @@ const visitors = {
|
|
|
1171
1182
|
update.push(...local_updates);
|
|
1172
1183
|
|
|
1173
1184
|
if (update.length > 0) {
|
|
1174
|
-
if (state.scope.
|
|
1185
|
+
if (state.scope.declarations.size > 0) {
|
|
1175
1186
|
apply_updates(init, update, state);
|
|
1176
1187
|
} else {
|
|
1177
1188
|
state.update.push(...update);
|