@spiffcommerce/core 27.1.1-beta.a15d228d-e849-57f1-afd3-43243a96f5fb → 27.1.1-beta.f607f221-79ca-5443-b87b-133910316276

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.mjs CHANGED
@@ -10280,15 +10280,12 @@ class mo {
10280
10280
  var w;
10281
10281
  this.workflowStatePromiseQueue = new xn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.renderLayouts = () => {
10282
10282
  var E;
10283
- if (console.log("render a"), !this.previewService)
10283
+ if (!this.previewService)
10284
10284
  return;
10285
- console.log("render b");
10286
10285
  const S = this.getCommandContext().getAllLayouts(), y = (E = this.getLayoutPreviewService()) == null ? void 0 : E.getAll();
10287
- if (console.log("render c"), !!y) {
10288
- console.log("render d");
10286
+ if (y)
10289
10287
  for (const [, B] of y)
10290
- console.log("render e"), B.render(S);
10291
- }
10288
+ B.render(S);
10292
10289
  }, this.experience = t, this.client = e, this.updateTransaction = o, this.graphQlClient = l, this.commandContext = s, this.reloadedState = h, this.transaction = c, this.readOnly = m, this.singleVariantsRenderable = f, this.confirmedDesign = !1, this.editedSteps = {}, this.informationResults = [], this.mandatorySteps = {}, this.pendingUpdates = [], this.selectionCost = 0, this.workflow = a, this.stepSpecificServices = {}, this.profanityFilter = n, this.pollers = [], this.allScenes = [], this.layouts = i, this.product = d, this.previewService = A, this.modelContainer = g, this.stepElements = {}, this.stepInitialised = {}, this.stepMetadata = {}, this.stepSelections = {}, this.storage = {}, this.validationErrors = { steps: /* @__PURE__ */ new Map() }, this.confirmCallbacks = [], this.editedCallbacks = [], this.elementsCallbacks = [], this.informationResultCallbacks = [], this.initCallbacks = [], this.mandatoryCallbacks = [], this.makingAdjustmentsCallback = [], this.metadataCallbacks = [], this.selectionCallbacks = [], this.stepSpecificStorageCallbacks = {}, this.storageCallbacks = [], this.validationCallbacks = [], this.recipientCallbacks = [], this.currentAdjustingStepId = "", this.renderableContextService = u, (w = this.renderableContextService) == null || w.setWorkflowManager(this), this.isReloadedTransaction = p, this.workflow.steps.forEach((S) => {
10293
10290
  this.stepTags[S.stepName] = S.tags ?? [];
10294
10291
  }), C && (this.workflowStatePromiseQueue.enabled = !1), this.initializationPromise = this.initializeDefaultWorkflowState(a), this.initializationPromise.then(() => {
@@ -15325,7 +15322,6 @@ class Ye {
15325
15322
  });
15326
15323
  }
15327
15324
  async checkConditionalHandlesChanged(t, e) {
15328
- console.log("check handles changed");
15329
15325
  const a = await this.globalPropertyHandleService.getHandles(), n = this.globalPropertyHandleService.applyConditionsFromState(a, t), i = this.globalPropertyHandleService.applyConditionsFromState(a, e);
15330
15326
  if ((() => {
15331
15327
  if (n.length !== i.length)
@@ -15341,7 +15337,7 @@ class Ye {
15341
15337
  const o = i.filter((l) => !n.includes(l));
15342
15338
  await Promise.all(o.map((l) => l.applyGlobalState()));
15343
15339
  }
15344
- this.workflowExperiences.length > 0 && (console.log("render layouts"), this.workflowExperiences[0].getWorkflowManager().renderLayouts());
15340
+ this.workflowExperiences.length > 0 && this.workflowExperiences[0].getWorkflowManager().renderLayouts();
15345
15341
  }
15346
15342
  fireEvent(t, e) {
15347
15343
  this.eventEmitter.emit(t, e);
@@ -15865,7 +15861,7 @@ class rd {
15865
15861
  } catch (a) {
15866
15862
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15867
15863
  }
15868
- }, this.options = t, this.options.applicationKey && Rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.1.1-beta.f607f221-79ca-5443-b87b-133910316276"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15864
+ }, this.options = t, this.options.applicationKey && Rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.1.1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15869
15865
  }
15870
15866
  configure(t) {
15871
15867
  mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, this.userPoolClientId = t.userPoolClientId, this.userPoolRegion = t.userPoolRegion, this.spiffRegion = t.spiffRegion, t.bearerAuthenticationToken && $r(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);