@bpmn-io/form-js-playground 1.0.0-alpha.3 → 1.0.0-alpha.5

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.
@@ -67590,8 +67590,12 @@
67590
67590
  constructor(eventBus, sectionKey) {
67591
67591
  this._eventBus = eventBus;
67592
67592
  this._sectionKey = sectionKey;
67593
- this._eventBus.on(`${this._sectionKey}.section.rendered`, () => this.isSectionRendered = true);
67594
- this._eventBus.on(`${this._sectionKey}.section.destroyed`, () => this.isSectionRendered = false);
67593
+ this._eventBus.on(`${this._sectionKey}.section.rendered`, () => {
67594
+ this.isSectionRendered = true;
67595
+ });
67596
+ this._eventBus.on(`${this._sectionKey}.section.destroyed`, () => {
67597
+ this.isSectionRendered = false;
67598
+ });
67595
67599
  }
67596
67600
 
67597
67601
  /**
@@ -67623,9 +67627,11 @@
67623
67627
  * Circumvents timing issues.
67624
67628
  */
67625
67629
  _onceSectionRendered(callback) {
67626
- this.isSectionRendered ? callback() : this._eventBus.once(`${this._sectionKey}.section.rendered`, () => {
67630
+ if (this.isSectionRendered) {
67627
67631
  callback();
67628
- });
67632
+ } else {
67633
+ this._eventBus.once(`${this._sectionKey}.section.rendered`, callback);
67634
+ }
67629
67635
  }
67630
67636
  }
67631
67637
  let PaletteModule$1 = class PaletteModule extends SectionModuleBase {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-playground",
3
- "version": "1.0.0-alpha.3",
3
+ "version": "1.0.0-alpha.5",
4
4
  "description": "A form-js playground",
5
5
  "files": [
6
6
  "dist"
@@ -44,8 +44,8 @@
44
44
  "url": "https://github.com/bpmn-io"
45
45
  },
46
46
  "dependencies": {
47
- "@bpmn-io/form-js-editor": "^1.0.0-alpha.3",
48
- "@bpmn-io/form-js-viewer": "^1.0.0-alpha.3",
47
+ "@bpmn-io/form-js-editor": "^1.0.0-alpha.5",
48
+ "@bpmn-io/form-js-viewer": "^1.0.0-alpha.5",
49
49
  "@codemirror/autocomplete": "^6.3.4",
50
50
  "@codemirror/commands": "^6.1.2",
51
51
  "@codemirror/lang-json": "^6.0.0",
@@ -70,5 +70,5 @@
70
70
  "rollup-plugin-css-only": "^4.0.0",
71
71
  "style-loader": "^3.3.0"
72
72
  },
73
- "gitHead": "7bd34c9bd219c930432ac15f8baaed49e2d5ec2a"
73
+ "gitHead": "dd91f40203ebbe5b00dd3dc2f2471968daa7fb61"
74
74
  }