@superblocksteam/library 2.0.40-next.5 → 2.0.40-next.7
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.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/{root-store-D5kPt3bg.js → root-store-9yoF7VAG.js} +11 -9
- package/dist/{root-store-D5kPt3bg.js.map → root-store-9yoF7VAG.js.map} +1 -1
- package/dist/root-store-BiFc0PAV.js +4 -0
- package/package.json +2 -2
- package/dist/root-store-BY1bErZz.js +0 -4
|
@@ -993,7 +993,7 @@ var registry_default = EventRegistry;
|
|
|
993
993
|
|
|
994
994
|
//#endregion
|
|
995
995
|
//#region src/lib/triggers/run-event-handlers.ts
|
|
996
|
-
const getRootStore = () => import("./root-store-
|
|
996
|
+
const getRootStore = () => import("./root-store-BiFc0PAV.js").then((module) => module.default);
|
|
997
997
|
const runEventHandlers = async ({ flow, name, scopeId, additionalContext }) => {
|
|
998
998
|
const context$1 = {
|
|
999
999
|
scopeId,
|
|
@@ -3625,8 +3625,8 @@ var ApiManager = class {
|
|
|
3625
3625
|
loadApiManifest({ apis = {}, apiDependencies = [] }) {
|
|
3626
3626
|
this.setAllApis(apis);
|
|
3627
3627
|
apiDependencies.forEach((dep) => {
|
|
3628
|
-
this.setApiDepCandidates(dep.apiName, dep.params);
|
|
3629
|
-
this.setApiReferences(dep.apiName, dep.dependencies);
|
|
3628
|
+
this.setApiDepCandidates(dep.scopeId, dep.apiName, dep.params);
|
|
3629
|
+
this.setApiReferences(dep.scopeId, dep.apiName, dep.dependencies);
|
|
3630
3630
|
});
|
|
3631
3631
|
const apisToSet = Object.values(apis).map(({ api, scopeId }) => ({
|
|
3632
3632
|
...api,
|
|
@@ -3653,12 +3653,14 @@ var ApiManager = class {
|
|
|
3653
3653
|
setApisLoaded() {
|
|
3654
3654
|
this.rootStore.setApisLoaded();
|
|
3655
3655
|
}
|
|
3656
|
-
setApiDepCandidates(apiName, deps) {
|
|
3657
|
-
this.apiNameToDepCandidates[
|
|
3656
|
+
setApiDepCandidates(scopeId, apiName, deps) {
|
|
3657
|
+
if (!this.apiNameToDepCandidates[scopeId]) this.apiNameToDepCandidates[scopeId] = {};
|
|
3658
|
+
this.apiNameToDepCandidates[scopeId][apiName] = deps;
|
|
3658
3659
|
if (!this.rootStore.isApisLoaded) this.rootStore.setApisLoaded();
|
|
3659
3660
|
}
|
|
3660
|
-
setApiReferences(apiName, deps) {
|
|
3661
|
-
this.apiNameToApiReferences[
|
|
3661
|
+
setApiReferences(scopeId, apiName, deps) {
|
|
3662
|
+
if (!this.apiNameToApiReferences[scopeId]) this.apiNameToApiReferences[scopeId] = {};
|
|
3663
|
+
this.apiNameToApiReferences[scopeId][apiName] = deps;
|
|
3662
3664
|
}
|
|
3663
3665
|
updateApi(api, scopeId) {
|
|
3664
3666
|
if (!this.apisByName[scopeId]) this.apisByName[scopeId] = {};
|
|
@@ -3737,7 +3739,7 @@ var ApiManager = class {
|
|
|
3737
3739
|
error: "No application ID was found"
|
|
3738
3740
|
};
|
|
3739
3741
|
}
|
|
3740
|
-
const inputs = getApiDeps(this.rootStore.entityManager, scopeId, this.apiNameToDepCandidates[apiName] ?? []);
|
|
3742
|
+
const inputs = getApiDeps(this.rootStore.entityManager, scopeId, this.apiNameToDepCandidates[scopeId]?.[apiName] ?? []);
|
|
3741
3743
|
if (!this.agentUrls.length) {
|
|
3742
3744
|
editorBridge.setApiResponse(apiName, {
|
|
3743
3745
|
status: "STATUS_COMPLETED",
|
|
@@ -4554,4 +4556,4 @@ var root_store_default = new RootStore();
|
|
|
4554
4556
|
|
|
4555
4557
|
//#endregion
|
|
4556
4558
|
export { CLASS_NAMES, DEFAULT_ANONYMOUS_SOURCE_ID, DevTools, EventFlow, GLOBAL_SCOPE_ID, LazyFunction, NavigationEvent, Prop, PropsPanelCategory, RecordProp, Section, VALIDATORS, addNewPromise, colors, createInternalPropsList, createManagedPropsList, createPropertiesPanelDefinition, editorBridge, generateId, getEditStore, getName, iframeMessageHandler, isEditMode, isEmbeddedBySuperblocksFirstParty, isLocalLink, isName, isNameEqual, navigation, rejectById, resolveById, root_store_default, run_event_handlers_default, sendNotification, startEditorSync, system_error_default };
|
|
4557
|
-
//# sourceMappingURL=root-store-
|
|
4559
|
+
//# sourceMappingURL=root-store-9yoF7VAG.js.map
|