@superblocksteam/library 2.0.83-next.1 → 2.0.83

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 { S as api_hmr_tracker_default, _ as root_store_default, t as makeWrappedComponent } from "../jsx-wrapper-BxcW9P1H.js";
1
+ import { S as api_hmr_tracker_default, _ as root_store_default, t as makeWrappedComponent } from "../jsx-wrapper-DbFLItO2.js";
2
2
  import { SOURCE_ID_ATTRIBUTE } from "@superblocksteam/library-shared";
3
3
  import * as ReactJsxDevRuntime from "react/jsx-dev-runtime";
4
4
 
@@ -2386,7 +2386,6 @@ var ApiManager = class {
2386
2386
  delete this.runningApiControllers[apiName];
2387
2387
  const error = this.findError(parsedResult ?? void 0);
2388
2388
  const data = isApiV2ExecutionResponse(parsedResult) ? parsedResult?.output?.result : null;
2389
- const stepLogs = this.extractStepLogs(parsedResult);
2390
2389
  const timeTaken = Date.now() - executionStartTime;
2391
2390
  this.callContexts[callId] = {
2392
2391
  apiId,
@@ -2404,8 +2403,7 @@ var ApiManager = class {
2404
2403
  response: data,
2405
2404
  error,
2406
2405
  loading: false,
2407
- isTestRun,
2408
- stepLogs
2406
+ isTestRun
2409
2407
  });
2410
2408
  else editorBridge.addApiRunRecord(apiId, {
2411
2409
  id: `${apiId}-${executionStartTime}`,
@@ -2417,8 +2415,7 @@ var ApiManager = class {
2417
2415
  response: data,
2418
2416
  error,
2419
2417
  loading: false,
2420
- isTestRun,
2421
- stepLogs
2418
+ isTestRun
2422
2419
  });
2423
2420
  return {
2424
2421
  parsedResult,
@@ -2452,27 +2449,6 @@ var ApiManager = class {
2452
2449
  if ("status" in response && response.status === "STATUS_COMPLETED") return 200;
2453
2450
  return 500;
2454
2451
  }
2455
- /**
2456
- * Extract step-level logs from execution events.
2457
- * Captures console.log (stdout), console.error (stderr), output, and errors for each step.
2458
- */
2459
- extractStepLogs(response) {
2460
- if (!response || !isApiV2ExecutionResponse(response) || !response.events) return [];
2461
- const stepLogs = [];
2462
- for (const event of response.events) {
2463
- const execEvent = "result" in event ? event.result.event : event;
2464
- if (!execEvent?.end) continue;
2465
- const { end, name } = execEvent;
2466
- if (end.output?.stdout && end.output.stdout.length > 0 || end.output?.stderr && end.output.stderr.length > 0 || end.output?.result !== void 0 || end.error?.message) stepLogs.push({
2467
- stepName: name,
2468
- stdout: end.output?.stdout,
2469
- stderr: end.output?.stderr,
2470
- output: end.output?.result,
2471
- error: end.error?.message
2472
- });
2473
- }
2474
- return stepLogs;
2475
- }
2476
2452
  @action async cancelApi(apiName, _scopeId) {
2477
2453
  const abortController = this.runningApiControllers[apiName];
2478
2454
  if (!abortController) {
@@ -3668,4 +3644,4 @@ const useJSXContext = () => {
3668
3644
 
3669
3645
  //#endregion
3670
3646
  export { useSuperblocksProfiles as A, PropsCategory as B, addNewPromise as C, getAppMode as D, SuperblocksContextProvider as E, iframeMessageHandler as F, createPropertiesPanelDefinition as H, isEmbeddedBySuperblocksFirstParty as I, isEditMode as L, sendNotification as M, colors as N, useSuperblocksContext as O, editorBridge as P, createManagedPropsList as R, api_hmr_tracker_default as S, resolveById as T, getEditStore as U, Section as V, root_store_default as _, FixWithClarkButton as a, createIframeSpan 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, rejectById as w, getContextFromTraceHeaders as x, generateId as y, Prop as z };
3671
- //# sourceMappingURL=jsx-wrapper-BxcW9P1H.js.map
3647
+ //# sourceMappingURL=jsx-wrapper-DbFLItO2.js.map