x-block-lib 0.9.25 → 0.9.26

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -5
  2. package/package.json +1 -1
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}"), this.updateShape_(), setTimeout(() => {
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) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.9.25",
4
+ "version": "0.9.26",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",