@spiffcommerce/core 33.13.3-beta.457bd19e-ea34-5883-a9d5-8d280ac94127 → 33.13.4-beta.3775e146-5ec5-5c55-ae4d-808f77f90dd6
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 +6 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11926,7 +11926,10 @@ class il extends tt {
|
|
|
11926
11926
|
*/
|
|
11927
11927
|
getColors() {
|
|
11928
11928
|
const t = this.manager.getRegionElements(this.step.stepName) || [];
|
|
11929
|
-
if (t.length === 0)
|
|
11929
|
+
if (t.length === 0) {
|
|
11930
|
+
this.step.stepName === "d724f23b-162f-e40c-5049-c4470c80c839" && console.log("LOG: no regions");
|
|
11931
|
+
return;
|
|
11932
|
+
}
|
|
11930
11933
|
const a = L(t[0].id, this.manager.getAllLayoutData()).colors, r = this.getCurrentVariant()?.getAssetResource()?.assetConfiguration, o = r?.defaultColorVariants || [];
|
|
11931
11934
|
if (o.length !== 0) {
|
|
11932
11935
|
const s = {};
|
|
@@ -11936,10 +11939,10 @@ class il extends tt {
|
|
|
11936
11939
|
const d = c.id.replace(/\W/g, "");
|
|
11937
11940
|
s[l.channelNumber] = { browserValue: a[d]?.browserValue || "" };
|
|
11938
11941
|
}
|
|
11939
|
-
}), s;
|
|
11942
|
+
}), this.step.stepName === "d724f23b-162f-e40c-5049-c4470c80c839" && console.log(`LOG: asset config case ${JSON.stringify(s, null, 2)}`), s;
|
|
11940
11943
|
}
|
|
11941
11944
|
try {
|
|
11942
|
-
return a;
|
|
11945
|
+
return this.step.stepName === "d724f23b-162f-e40c-5049-c4470c80c839" && console.log(`LOG: standard case ${JSON.stringify(a, null, 2)}`), a;
|
|
11943
11946
|
} catch (s) {
|
|
11944
11947
|
console.error(s);
|
|
11945
11948
|
}
|
|
@@ -16199,7 +16202,7 @@ class $d {
|
|
|
16199
16202
|
} catch (a) {
|
|
16200
16203
|
throw console.error(a), new mt("Critical - Unable to synchronize workflow state with server.");
|
|
16201
16204
|
}
|
|
16202
|
-
}, this.options = t, this.options.applicationKey && rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 33.13.
|
|
16205
|
+
}, this.options = t, this.options.applicationKey && rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 33.13.4"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16203
16206
|
}
|
|
16204
16207
|
configure(t) {
|
|
16205
16208
|
ft.setHubUrl(t.hubUrl), ft.setServerUrl(t.serverUrl), ft.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 && sr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Vt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|