@bpmn-io/form-js-editor 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.
- package/dist/index.cjs +10 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +10 -4
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
- package/dist/types/features/assistant/AssistantPrompter.d.ts +0 -20
- package/dist/types/features/assistant/AssistantPrompterLayout.d.ts +0 -20
- package/dist/types/features/assistant/AssistantPrompterLayoutV2.d.ts +0 -20
- package/dist/types/features/assistant/AssistantRenderer.d.ts +0 -34
- package/dist/types/features/assistant/components/Assistant.d.ts +0 -10
- package/dist/types/features/assistant/data/minischema.d.ts +0 -1
- package/dist/types/features/assistant/index.d.ts +0 -7
- package/dist/types/features/assistant/model/AssistantPrompterLayoutV2/AssistantPrompterLayoutV2.d.ts +0 -20
- package/dist/types/features/assistant/model/AssistantPrompterLayoutV2/Prompts.d.ts +0 -4
- package/dist/types/features/assistant/util/CleanupUtil.d.ts +0 -1
- package/dist/types/features/form-generation-ui/FormGenerationUIModule.d.ts +0 -3
- package/dist/types/features/form-generation-ui/components/FormGeneration.d.ts +0 -2
- package/dist/types/features/form-generation-ui/components/GPTModal.d.ts +0 -2
- package/dist/types/features/form-generation-ui/dist/index.d.cts +0 -63
- package/dist/types/features/form-generation-ui/dist/index.es.d.ts +0 -60
- package/dist/types/features/form-generation-ui/index.d.ts +0 -2
- package/dist/types/features/form-generation-ui/inject.d.ts +0 -7
- package/dist/types/features/palette/PaletteRenderer.d.ts +0 -33
- package/dist/types/features/properties-panel/PropertiesPanelRenderer.d.ts +0 -37
- package/dist/types/features/properties-panel/context/FormPropertiesPanelContext.d.ts +0 -11
- package/dist/types/features/properties-panel/context/index.d.ts +0 -1
- package/dist/types/features/properties-panel/entries/ExpressionValidationEntry.d.ts +0 -44
- package/dist/types/features/properties-panel/groups/ExpressionValidationsGroup.d.ts +0 -53
- package/dist/types/features/properties-panel/hooks/usePropertiesPanelService.d.ts +0 -1
- package/dist/types/features/properties-panel/icons/index.d.ts +0 -1
- package/dist/types/features/render-injection/TestInjection.d.ts +0 -7
- package/dist/types/features/render-injection/components/TestInjectionComponent.d.ts +0 -2
- package/dist/types/features/util/renderManagerBuilder.d.ts +0 -45
package/dist/index.cjs
CHANGED
|
@@ -9589,8 +9589,12 @@ class SectionModuleBase {
|
|
|
9589
9589
|
constructor(eventBus, sectionKey) {
|
|
9590
9590
|
this._eventBus = eventBus;
|
|
9591
9591
|
this._sectionKey = sectionKey;
|
|
9592
|
-
this._eventBus.on(`${this._sectionKey}.section.rendered`, () =>
|
|
9593
|
-
|
|
9592
|
+
this._eventBus.on(`${this._sectionKey}.section.rendered`, () => {
|
|
9593
|
+
this.isSectionRendered = true;
|
|
9594
|
+
});
|
|
9595
|
+
this._eventBus.on(`${this._sectionKey}.section.destroyed`, () => {
|
|
9596
|
+
this.isSectionRendered = false;
|
|
9597
|
+
});
|
|
9594
9598
|
}
|
|
9595
9599
|
|
|
9596
9600
|
/**
|
|
@@ -9622,9 +9626,11 @@ class SectionModuleBase {
|
|
|
9622
9626
|
* Circumvents timing issues.
|
|
9623
9627
|
*/
|
|
9624
9628
|
_onceSectionRendered(callback) {
|
|
9625
|
-
|
|
9629
|
+
if (this.isSectionRendered) {
|
|
9626
9630
|
callback();
|
|
9627
|
-
}
|
|
9631
|
+
} else {
|
|
9632
|
+
this._eventBus.once(`${this._sectionKey}.section.rendered`, callback);
|
|
9633
|
+
}
|
|
9628
9634
|
}
|
|
9629
9635
|
}
|
|
9630
9636
|
|