@bpmn-io/form-js-playground 1.0.0-alpha.4 → 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`, () =>
|
|
67594
|
-
|
|
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
|
/**
|
|
@@ -67626,11 +67630,7 @@
|
|
|
67626
67630
|
if (this.isSectionRendered) {
|
|
67627
67631
|
callback();
|
|
67628
67632
|
} else {
|
|
67629
|
-
|
|
67630
|
-
callback();
|
|
67631
|
-
this._eventBus.off(`${this._sectionKey}.section.rendered`, onSectionRendered);
|
|
67632
|
-
};
|
|
67633
|
-
this._eventBus.on(`${this._sectionKey}.section.rendered`, onSectionRendered);
|
|
67633
|
+
this._eventBus.once(`${this._sectionKey}.section.rendered`, callback);
|
|
67634
67634
|
}
|
|
67635
67635
|
}
|
|
67636
67636
|
}
|
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
|
+
"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.
|
|
48
|
-
"@bpmn-io/form-js-viewer": "^1.0.0-alpha.
|
|
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": "
|
|
73
|
+
"gitHead": "dd91f40203ebbe5b00dd3dc2f2471968daa7fb61"
|
|
74
74
|
}
|