x-block-lib 0.9.25 → 0.9.27
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/dist/index.js +9 -7
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1960,9 +1960,7 @@ Blocks.app_bind_container_v1 = { init: function() {
|
|
|
1960
1960
|
init: function() {
|
|
1961
1961
|
this.itemCount_ = 0, this.setMutator(new icons.MutatorIcon(["app_bind_item_v1"], this)), this.debounce_ = debounce_default(() => {
|
|
1962
1962
|
this.checkWarning_();
|
|
1963
|
-
}, 250), this.setStyle("event_blocks"), this.setTooltip("%{BKY_APP_V1_APP_BIND_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_APP_BIND_HELPURL}")
|
|
1964
|
-
this.ensureBlocks_();
|
|
1965
|
-
}, 0);
|
|
1963
|
+
}, 250), this.setStyle("event_blocks"), this.setTooltip("%{BKY_APP_V1_APP_BIND_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_APP_BIND_HELPURL}");
|
|
1966
1964
|
},
|
|
1967
1965
|
mutationToDom: function() {
|
|
1968
1966
|
let e = xmlUtils$11.createElement("mutation");
|
|
@@ -1971,7 +1969,7 @@ Blocks.app_bind_container_v1 = { init: function() {
|
|
|
1971
1969
|
domToMutation: function(e) {
|
|
1972
1970
|
let y = e.getAttribute("items") ?? "";
|
|
1973
1971
|
this.itemCount_ = parseInt(y, 0), this.updateShape_(), setTimeout(() => {
|
|
1974
|
-
this.ensureBlocks_(), this.checkWarning_();
|
|
1972
|
+
this.isInFlyout || (this.ensureBlocks_(), this.checkWarning_());
|
|
1975
1973
|
}, 0);
|
|
1976
1974
|
},
|
|
1977
1975
|
saveExtraState: function() {
|
|
@@ -1979,7 +1977,7 @@ Blocks.app_bind_container_v1 = { init: function() {
|
|
|
1979
1977
|
},
|
|
1980
1978
|
loadExtraState: function(e) {
|
|
1981
1979
|
this.itemCount_ = e.itemCount ?? 0, this.updateShape_(), setTimeout(() => {
|
|
1982
|
-
this.ensureBlocks_(), this.checkWarning_();
|
|
1980
|
+
this.isInFlyout || (this.ensureBlocks_(), this.checkWarning_());
|
|
1983
1981
|
}, 0);
|
|
1984
1982
|
},
|
|
1985
1983
|
decompose: function(e) {
|
|
@@ -8697,7 +8695,10 @@ function makeAppBindBlocks(e) {
|
|
|
8697
8695
|
}
|
|
8698
8696
|
function buildReactivity(e) {
|
|
8699
8697
|
let y = {
|
|
8700
|
-
watchEffect: {
|
|
8698
|
+
watchEffect: {
|
|
8699
|
+
ids: [],
|
|
8700
|
+
triggers: {}
|
|
8701
|
+
},
|
|
8701
8702
|
bind: {
|
|
8702
8703
|
sets: {},
|
|
8703
8704
|
triggers: {}
|
|
@@ -8706,7 +8707,8 @@ function buildReactivity(e) {
|
|
|
8706
8707
|
if (!b) return y;
|
|
8707
8708
|
for (let e of b) if (e.type === "watch_effect_v1") {
|
|
8708
8709
|
let b = makeWatchEffectBlocks(gatherWatchEffectBlocks(e));
|
|
8709
|
-
for (let x of b) y.watchEffect[x] || (y.watchEffect[x] = []), addUnique(y.watchEffect[x], e.id);
|
|
8710
|
+
for (let x of b) y.watchEffect.triggers[x] || (y.watchEffect.triggers[x] = []), addUnique(y.watchEffect.triggers[x], e.id);
|
|
8711
|
+
y.watchEffect.ids.push(e.id);
|
|
8710
8712
|
} else if (e.type === "app_bind_v1") {
|
|
8711
8713
|
let b = makeAppBindBlocks(e.getChildren(!0));
|
|
8712
8714
|
y.bind.sets[e.id] = b;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-block-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.27",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"x-essential-lib": "^0.9.24",
|
|
44
|
-
"x-runtime-lib": "^0.8.
|
|
44
|
+
"x-runtime-lib": "^0.8.202",
|
|
45
45
|
"x-state-lib": "^0.3.38"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|