@superblocksteam/library 2.0.129 → 2.0.130-next.1

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 tracker } from "../jsx-wrapper-CWuebR52.js";
1
+ import { _ as root_store_default, t as makeWrappedComponent, x as tracker } from "../jsx-wrapper-BpJeKbJA.js";
2
2
  import { SOURCE_ID_ATTRIBUTE } from "@superblocksteam/library-shared";
3
3
  import * as ReactJsxDevRuntime from "react/jsx-dev-runtime";
4
4
  //#region src/jsx-dev-runtime/jsx-dev-runtime.ts
@@ -755,7 +755,7 @@ var DeployedParentBridge = class {
755
755
  setInteractionMode(_mode) {}
756
756
  forwardKeypress(_keys, _eventInfo) {}
757
757
  sendCaptureScreenshotResponse(_callbackId, _dataUrl, _error) {}
758
- sendPingAppReadyForScreenshotResponse(_callbackId, _isReady) {}
758
+ sendPingAppReadyForScreenshotResponse(_callbackId, _isReady, _reason) {}
759
759
  updateProfiles(profiles) {
760
760
  sendMessageImmediately({
761
761
  type: "iframe-action-batch",
@@ -1135,12 +1135,13 @@ var SuperblocksEditorBridge = class SuperblocksEditorBridge {
1135
1135
  }
1136
1136
  });
1137
1137
  }
1138
- sendPingAppReadyForScreenshotResponse(callbackId, isReady) {
1138
+ sendPingAppReadyForScreenshotResponse(callbackId, isReady, reason) {
1139
1139
  this.sendImmediate({
1140
1140
  type: "ping-app-ready-for-screenshot-response",
1141
1141
  payload: {
1142
1142
  callbackId,
1143
- isReady
1143
+ isReady,
1144
+ reason
1144
1145
  }
1145
1146
  });
1146
1147
  }
@@ -2254,6 +2255,10 @@ var ApiManager = class {
2254
2255
  this.token = token;
2255
2256
  this.accessToken = accessToken;
2256
2257
  }
2258
+ clearTokens() {
2259
+ this.token = void 0;
2260
+ this.accessToken = void 0;
2261
+ }
2257
2262
  isInitialized() {
2258
2263
  return !!this.token && !!this.accessToken;
2259
2264
  }
@@ -2462,6 +2467,7 @@ var ApiManager = class {
2462
2467
  window.parent.postMessage({
2463
2468
  type: "authenticate-api-request",
2464
2469
  payload: {
2470
+ ...this.accessToken ? { accessToken: this.accessToken } : {},
2465
2471
  apiId,
2466
2472
  callbackId
2467
2473
  }
@@ -2732,6 +2738,7 @@ var ApiManager = class {
2732
2738
  window.parent.postMessage({
2733
2739
  type: "authenticate-api-request",
2734
2740
  payload: {
2741
+ ...this.accessToken ? { accessToken: this.accessToken } : {},
2735
2742
  apiId: apiName,
2736
2743
  callbackId,
2737
2744
  integrationIds,
@@ -4181,4 +4188,4 @@ const useJSXContext = () => {
4181
4188
  //#endregion
4182
4189
  export { useSuperblocksProfiles as A, sendMessageImmediately as B, rejectById as C, useSuperblocksContext as D, getAppMode as E, colors as F, Section as G, createManagedPropsList as H, editorBridge as I, createPropertiesPanelDefinition as K, getParentOrigin as L, embedStore as M, generateId as N, useSuperblocksDataTags as O, sendNotification as P, iframeMessageHandler as R, addNewPromise as S, SuperblocksContextProvider as T, Prop as U, isEditMode as V, PropsCategory 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, getEditStore as q, getWidgetAnchorName as r, ErrorContainer as s, makeWrappedComponent as t, ErrorIconContainer as u, startEditorSync as v, resolveById as w, tracker as x, createIframeSpan as y, isEmbeddedBySuperblocksFirstParty as z };
4183
4190
 
4184
- //# sourceMappingURL=jsx-wrapper-CWuebR52.js.map
4191
+ //# sourceMappingURL=jsx-wrapper-BpJeKbJA.js.map