@superblocksteam/library 2.0.166 → 2.0.168-next.0
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/jsx-dev-runtime/index.js +2 -2
- package/dist/{jsx-wrapper-1kyr6-x3.js → jsx-wrapper-CcDmmMUB.js} +2 -2
- package/dist/{jsx-wrapper-1kyr6-x3.js.map → jsx-wrapper-CcDmmMUB.js.map} +1 -1
- package/dist/lib/index.d.ts +56 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +367 -41
- package/dist/lib/index.js.map +1 -1
- package/dist/{root-store-BYYXPQRA.js → root-store-B4NzJHt8.js} +20 -9
- package/dist/root-store-B4NzJHt8.js.map +1 -0
- package/dist/{sdk-api-discovery-DvvsdT1z.js → sdk-api-discovery-D6Xp39R4.js} +2 -2
- package/dist/{sdk-api-discovery-DvvsdT1z.js.map → sdk-api-discovery-D6Xp39R4.js.map} +1 -1
- package/package.json +5 -5
- package/dist/root-store-BYYXPQRA.js.map +0 -1
|
@@ -180,7 +180,7 @@ var DeployedParentBridge = class {
|
|
|
180
180
|
sendConsoleLog(_data, _forceSend) {}
|
|
181
181
|
setInteractionMode(_mode) {}
|
|
182
182
|
forwardKeypress(_keys, _eventInfo) {}
|
|
183
|
-
sendCaptureScreenshotResponse(_callbackId, _dataUrl, _error) {}
|
|
183
|
+
sendCaptureScreenshotResponse(_callbackId, _dataUrl, _error, _metadata) {}
|
|
184
184
|
sendPingAppReadyForScreenshotResponse(_callbackId, _isReady, _reason) {}
|
|
185
185
|
updateProfiles(profiles) {
|
|
186
186
|
sendMessageImmediately({
|
|
@@ -549,13 +549,18 @@ var SuperblocksEditorBridge = class SuperblocksEditorBridge {
|
|
|
549
549
|
}
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
sendCaptureScreenshotResponse(callbackId, dataUrl, error) {
|
|
552
|
+
sendCaptureScreenshotResponse(callbackId, dataUrl, error, metadata) {
|
|
553
553
|
this.sendImmediate({
|
|
554
554
|
type: "capture-screenshot-response",
|
|
555
555
|
payload: {
|
|
556
556
|
callbackId,
|
|
557
557
|
dataUrl,
|
|
558
|
-
error
|
|
558
|
+
error,
|
|
559
|
+
pageWidth: metadata?.pageWidth,
|
|
560
|
+
pageHeight: metadata?.pageHeight,
|
|
561
|
+
mode: metadata?.mode,
|
|
562
|
+
crop: metadata?.crop,
|
|
563
|
+
uncapturedImageCount: metadata?.uncapturedImageCount
|
|
559
564
|
}
|
|
560
565
|
});
|
|
561
566
|
}
|
|
@@ -605,8 +610,9 @@ var LocationStore = class {
|
|
|
605
610
|
rootStore;
|
|
606
611
|
constructor(rootStore) {
|
|
607
612
|
this.rootStore = rootStore;
|
|
613
|
+
makeObservable(this, { updateLocation: action });
|
|
608
614
|
}
|
|
609
|
-
|
|
615
|
+
updateLocation(location, routes, params) {
|
|
610
616
|
this.route = this.locationToRouteInfo(location, routes, params);
|
|
611
617
|
this.sendLocationToEditor();
|
|
612
618
|
}
|
|
@@ -1859,6 +1865,11 @@ var ApiManager = class {
|
|
|
1859
1865
|
this.waitForBootstrapPromise = new Promise((resolve) => {
|
|
1860
1866
|
this.resolveBootstrapPromise = resolve;
|
|
1861
1867
|
});
|
|
1868
|
+
makeObservable(this, {
|
|
1869
|
+
rerunApiByCallId: action,
|
|
1870
|
+
runApiByPath: action,
|
|
1871
|
+
cancelApi: action
|
|
1872
|
+
});
|
|
1862
1873
|
}
|
|
1863
1874
|
set agentUrls(urls) {
|
|
1864
1875
|
this._agentUrls = urls ?? [];
|
|
@@ -1939,7 +1950,7 @@ var ApiManager = class {
|
|
|
1939
1950
|
});
|
|
1940
1951
|
this.waitForInitApiPromise = waitForInitApiPromise;
|
|
1941
1952
|
}
|
|
1942
|
-
|
|
1953
|
+
async rerunApiByCallId(callId) {
|
|
1943
1954
|
const context = this.callContexts[callId];
|
|
1944
1955
|
if (!context) {
|
|
1945
1956
|
console.error(`No call context found for callId: ${callId}`);
|
|
@@ -1966,7 +1977,7 @@ var ApiManager = class {
|
|
|
1966
1977
|
error: result.error
|
|
1967
1978
|
};
|
|
1968
1979
|
}
|
|
1969
|
-
|
|
1980
|
+
async runApiByPath({ path, inputs, callId, callback, isTestRun, injectedCallerId }) {
|
|
1970
1981
|
console.debug("[api-store.runApiByPath] Called with:", {
|
|
1971
1982
|
path,
|
|
1972
1983
|
inputs,
|
|
@@ -2349,7 +2360,7 @@ var ApiManager = class {
|
|
|
2349
2360
|
}
|
|
2350
2361
|
if (!entryPoint && this.rootStore.sdkApiEnabled) try {
|
|
2351
2362
|
const rediscoveryT0 = performance.now();
|
|
2352
|
-
const { discoverAndRegisterSdkApis } = await import("./sdk-api-discovery-
|
|
2363
|
+
const { discoverAndRegisterSdkApis } = await import("./sdk-api-discovery-D6Xp39R4.js").then((n) => n.n);
|
|
2353
2364
|
await discoverAndRegisterSdkApis();
|
|
2354
2365
|
const rediscoveryMs = Math.round(performance.now() - rediscoveryT0);
|
|
2355
2366
|
discoveryMs += rediscoveryMs;
|
|
@@ -2545,7 +2556,7 @@ var ApiManager = class {
|
|
|
2545
2556
|
this.runningApiControllers[apiName]?.delete(abortController);
|
|
2546
2557
|
}
|
|
2547
2558
|
}
|
|
2548
|
-
|
|
2559
|
+
async cancelApi(apiName, _scopeId) {
|
|
2549
2560
|
const controllers = this.runningApiControllers[apiName];
|
|
2550
2561
|
if (!controllers || controllers.size === 0) {
|
|
2551
2562
|
console.warn(`No running API execution found for ${apiName}`);
|
|
@@ -3185,4 +3196,4 @@ var root_store_default = new RootStore();
|
|
|
3185
3196
|
//#endregion
|
|
3186
3197
|
export { iframeMessageHandler as C, isEditMode as E, getParentOrigin as S, sendMessageImmediately as T, generateId as _, tracker as a, editorBridge as b, resolveById as c, useSuperblocksContext as d, useSuperblocksDataTags as f, embedStore as g, useSuperblocksUser as h, getContextFromTraceHeaders as i, SuperblocksContextProvider as l, useSuperblocksProfiles as m, root_store_default as n, addNewPromise as o, useSuperblocksGroups as p, createIframeSpan as r, rejectById as s, ORCHESTRATOR_EXECUTE_RESPONSE_SIZE_LIMIT_FLAG as t, getAppMode as u, sendNotification as v, isEmbeddedBySuperblocksFirstParty as w, getEditStore as x, colors as y };
|
|
3187
3198
|
|
|
3188
|
-
//# sourceMappingURL=root-store-
|
|
3199
|
+
//# sourceMappingURL=root-store-B4NzJHt8.js.map
|