@spiffcommerce/core 27.3.0-beta.f34c55fe-1026-57b8-8dd4-554ec74ad478 → 28.0.0-beta.398e84c4-0e3f-5896-b63e-fbda3709ca9d
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/CHANGELOG.md +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -14730,17 +14730,18 @@ class Je {
|
|
|
14730
14730
|
u([]);
|
|
14731
14731
|
return;
|
|
14732
14732
|
}
|
|
14733
|
-
console.log("Setting default global variants.")
|
|
14734
|
-
|
|
14735
|
-
|
|
14736
|
-
|
|
14737
|
-
|
|
14738
|
-
|
|
14739
|
-
|
|
14733
|
+
console.log("Setting default global variants.");
|
|
14734
|
+
const m = this.globalPropertyStateManager.getGlobalPropertyState();
|
|
14735
|
+
m ? this.globalPropertyHandleService.getHandles().then((g) => {
|
|
14736
|
+
const p = g.map((f) => {
|
|
14737
|
+
if (f.getType() === z.ColorOption || f.getType() === z.Option) {
|
|
14738
|
+
const C = f;
|
|
14739
|
+
if (!m.aspects.find((S) => S.name === C.getName()))
|
|
14740
|
+
return C.initDefaultVariant();
|
|
14740
14741
|
}
|
|
14741
14742
|
});
|
|
14742
|
-
Promise.all(
|
|
14743
|
-
});
|
|
14743
|
+
Promise.all(p).then(u).catch(h);
|
|
14744
|
+
}) : (console.log("Attempted to set global default variant before state was initialized."), u([]));
|
|
14744
14745
|
});
|
|
14745
14746
|
this.initializationPromise = Promise.all([
|
|
14746
14747
|
this.loadExistingWorkflowExperiences(((A = e.transactions) == null ? void 0 : A.map((u) => u.id)) || [], {
|
|
@@ -15991,7 +15992,7 @@ class Ad {
|
|
|
15991
15992
|
} catch (a) {
|
|
15992
15993
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15993
15994
|
}
|
|
15994
|
-
}, this.options = t, this.options.applicationKey && $r(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version:
|
|
15995
|
+
}, this.options = t, this.options.applicationKey && $r(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 28.0.0-beta.8b436715-be6d-53f1-b6bd-4784e49e500a"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15995
15996
|
}
|
|
15996
15997
|
configure(t) {
|
|
15997
15998
|
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 && Lr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|