@superblocksteam/library 2.0.117-next.1 → 2.0.117-next.2

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.
@@ -1,4 +1,4 @@
1
- import { _ as root_store_default, t as makeWrappedComponent, x as api_hmr_tracker_default } from "../jsx-wrapper-B1B_ySZF.js";
1
+ import { _ as root_store_default, t as makeWrappedComponent, x as api_hmr_tracker_default } from "../jsx-wrapper-BLrvyiEf.js";
2
2
  import { SOURCE_ID_ATTRIBUTE } from "@superblocksteam/library-shared";
3
3
  import * as ReactJsxDevRuntime from "react/jsx-dev-runtime";
4
4
 
@@ -2725,13 +2725,18 @@ var ApiManager = class {
2725
2725
  timingBreakdown: buildTimingBreakdown()
2726
2726
  };
2727
2727
  fileSyncMs = await this.timedEnsureFilesSynced(`executeSdkApiV3(${apiName})`);
2728
- const profile = this.rootStore.profile;
2728
+ const selectedProfile = context$1.profiles?.selected;
2729
+ const requestProfile = selectedProfile ? {
2730
+ id: selectedProfile.id,
2731
+ name: selectedProfile.displayName,
2732
+ key: selectedProfile.key
2733
+ } : this.rootStore.profile;
2729
2734
  const editModeBranchName = this.rootStore.branchName ?? "main";
2730
2735
  const commitId = this.rootStore.commitId;
2731
2736
  const editMode$1 = isEditMode();
2732
2737
  const appMode$1 = getAppMode();
2733
2738
  const viewMode = editMode$1 ? OrchestratorViewMode.EDIT : appMode$1 === AppMode.PREVIEW ? OrchestratorViewMode.PREVIEW : OrchestratorViewMode.DEPLOYED;
2734
- const profileKey = profile?.key ?? "default";
2739
+ const profileKey = requestProfile?.key ?? "default";
2735
2740
  const agentBaseUrl = (() => {
2736
2741
  if (this.rootStore.dataPlaneGatewayEnabled) {
2737
2742
  const dpUrl = this._dpRoutingConfig[profileKey];
@@ -2758,7 +2763,7 @@ var ApiManager = class {
2758
2763
  const exportName = this.rootStore.getApiExportName(apiName);
2759
2764
  if (exportName) body.exportName = exportName;
2760
2765
  if (files.length > 0) body.files = files;
2761
- if (profile) body.profile = profile;
2766
+ if (requestProfile) body.profile = requestProfile;
2762
2767
  if (editMode$1) {
2763
2768
  body.branchName = editModeBranchName;
2764
2769
  body.includeDiagnostics = true;
@@ -2773,7 +2778,8 @@ var ApiManager = class {
2773
2778
  payload: {
2774
2779
  apiId: apiName,
2775
2780
  callbackId,
2776
- integrationIds
2781
+ integrationIds,
2782
+ ...requestProfile ? { profile: requestProfile } : {}
2777
2783
  }
2778
2784
  }, "*");
2779
2785
  });
@@ -4241,4 +4247,4 @@ const useJSXContext = () => {
4241
4247
 
4242
4248
  //#endregion
4243
4249
  export { useSuperblocksProfiles as A, isEditMode as B, rejectById as C, useSuperblocksContext as D, getAppMode as E, colors as F, createPropertiesPanelDefinition as G, Prop as H, editorBridge as I, getEditStore as K, iframeMessageHandler as L, embedStore as M, generateId as N, useSuperblocksDataTags as O, sendNotification as P, isEmbeddedBySuperblocksFirstParty as R, addNewPromise as S, SuperblocksContextProvider as T, PropsCategory as U, createManagedPropsList as V, Section as W, root_store_default as _, FixWithClarkButton as a, getContextFromTraceHeaders as b, ErrorContent as c, ErrorMessage as d, ErrorStack as f, StyledClarkIcon as g, SecondaryButton as h, getWidgetRectAnchorName as i, useSuperblocksUser as j, useSuperblocksGroups as k, ErrorDetails as l, ErrorTitle as m, useJSXContext as n, ActionsContainer as o, ErrorSummary as p, getWidgetAnchorName as r, ErrorContainer as s, makeWrappedComponent as t, ErrorIconContainer as u, startEditorSync as v, resolveById as w, api_hmr_tracker_default as x, createIframeSpan as y, sendMessageImmediately as z };
4244
- //# sourceMappingURL=jsx-wrapper-B1B_ySZF.js.map
4250
+ //# sourceMappingURL=jsx-wrapper-BLrvyiEf.js.map