@superblocksteam/library 2.0.41-next.65 → 2.0.41-next.67

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.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { early_console_buffer_default } from "./early-console-buffer-DWTLgla0.js";
2
- import { 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 } from "./root-store-D4uiJaOf.js";
2
+ import { 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 } from "./root-store-mvrXQD3h.js";
3
3
  import "./utils-CCBWAYIM.js";
4
4
  import { AiContextMode, AiGenerationState, BindingMetaSymbol, SbEntityType, StateVarPersistence, StateVarPersistence as StateVarPersistence$1, ThemeMode, TriggerStepType, ViteMessageKind, isValidStepDef, sbEntitySymbol } from "@superblocksteam/library-shared/types";
5
5
  import _, { get, isEmpty, isEqual, isNumber, isObject, merge, set, throttle } from "lodash";
@@ -6616,10 +6616,10 @@ var SuspensibleAPI = class {
6616
6616
  get error() {
6617
6617
  return this._error;
6618
6618
  }
6619
- async run(options, ...args) {
6619
+ async run(options) {
6620
6620
  this._isLoading = true;
6621
6621
  this._error = void 0;
6622
- this._promise = this._runFn(options, ...args).then(action((data) => {
6622
+ this._promise = this._runFn(options).then(action((data) => {
6623
6623
  this._response = data;
6624
6624
  this._isLoading = false;
6625
6625
  return data;
@@ -6660,10 +6660,10 @@ const propertiesDefinition = {
6660
6660
  }).readable()
6661
6661
  }),
6662
6662
  functions: Section.category("Derived").children({
6663
- run: Prop.function(async function(traceHeaders) {
6663
+ run: Prop.function(async function(args) {
6664
6664
  const api = this;
6665
6665
  try {
6666
- const result = await api._suspensibleApi.run(traceHeaders);
6666
+ const result = await api._suspensibleApi.run(args);
6667
6667
  await api.onSuccess?.();
6668
6668
  return result;
6669
6669
  } catch (error) {
@@ -6679,7 +6679,7 @@ const propertiesDefinition = {
6679
6679
  const api = this;
6680
6680
  return new SuspensibleAPI({
6681
6681
  runFn: async (options) => {
6682
- const result = await root_store_default.apis.runApi(api.name, api.scopeId, options?.traceHeaders).catch((err) => ({
6682
+ const result = await root_store_default.apis.runApi(api.name, api.scopeId, options).catch((err) => ({
6683
6683
  error: err,
6684
6684
  data: null
6685
6685
  }));