@spiffcommerce/core 32.2.4-beta.dc196f53-5f18-5038-aa12-74b58d514361 → 32.2.5
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -13838,7 +13838,7 @@ class Za extends nr {
|
|
|
13838
13838
|
* @param variant The variant to select.
|
|
13839
13839
|
*/
|
|
13840
13840
|
async selectVariant(t, e) {
|
|
13841
|
-
await this.bundle.getGlobalPropertyStateManager().setAspect(this.property.name, t.getId(), void 0, e);
|
|
13841
|
+
await this.bundle.getGlobalPropertyStateManager().setAspect(this.property.name, t.getId(), void 0, e), await this.applyColorVariant(t, void 0, e);
|
|
13842
13842
|
}
|
|
13843
13843
|
async applyGlobalState(t) {
|
|
13844
13844
|
const e = this.getStateValue();
|
|
@@ -14889,10 +14889,8 @@ class Ze {
|
|
|
14889
14889
|
break;
|
|
14890
14890
|
}
|
|
14891
14891
|
case U.ColorOption: {
|
|
14892
|
-
const s = i, l = s.getAllVariants().find((
|
|
14893
|
-
l && await s.selectVariant(l),
|
|
14894
|
-
a.storage.customColor
|
|
14895
|
-
);
|
|
14892
|
+
const s = i, l = s.getAllVariants().find((d) => d.getId() === a.value), c = a.storage ? a.storage : void 0;
|
|
14893
|
+
l && await s.selectVariant(l), c?.customColor && s.setCustomColor(c.customColor);
|
|
14896
14894
|
break;
|
|
14897
14895
|
}
|
|
14898
14896
|
case U.Option: {
|
|
@@ -16005,7 +16003,7 @@ class vd {
|
|
|
16005
16003
|
} catch (a) {
|
|
16006
16004
|
throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
|
|
16007
16005
|
}
|
|
16008
|
-
}, this.options = t, this.options.applicationKey && Wr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.2.
|
|
16006
|
+
}, this.options = t, this.options.applicationKey && Wr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.2.5"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16009
16007
|
}
|
|
16010
16008
|
configure(t) {
|
|
16011
16009
|
gt.setHubUrl(t.hubUrl), gt.setServerUrl(t.serverUrl), gt.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 && Hr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|