@spiffcommerce/core 34.3.0-beta.93adb5e0-6f1f-5a2c-82a3-b3d6fdd913aa → 34.3.0-beta.d90c7926-d1af-5ab0-80ef-c51c0956fa8d
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 +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3909,14 +3909,16 @@ const _t = new Mr(), On = C`
|
|
|
3909
3909
|
class Or {
|
|
3910
3910
|
constructor() {
|
|
3911
3911
|
this.getDefaultVariant = (t, e) => {
|
|
3912
|
+
console.log(`log: getting default variant for option ${t.id} (${t.name}) with override ${e}`);
|
|
3912
3913
|
const a = t.variants;
|
|
3913
3914
|
if (a) {
|
|
3914
3915
|
if (a.length === 1)
|
|
3915
3916
|
return a[0];
|
|
3916
3917
|
if (e) {
|
|
3917
|
-
const i = a.find((r) => r.id === e);
|
|
3918
|
+
const i = a.find((r) => (console.log(`log: comparing variant ${r.id} (${r.name}) to override ${e}`), r.id === e));
|
|
3918
3919
|
if (i)
|
|
3919
|
-
return i;
|
|
3920
|
+
return console.log("log: found override"), i;
|
|
3921
|
+
console.log("log: did not find override");
|
|
3920
3922
|
}
|
|
3921
3923
|
if (t.defaultVariant !== void 0)
|
|
3922
3924
|
return a.find((i) => i.id === t.defaultVariant?.id);
|
|
@@ -4671,6 +4673,7 @@ const V = new Or(), $n = C`
|
|
|
4671
4673
|
identifier
|
|
4672
4674
|
conversionConfigurationId
|
|
4673
4675
|
}
|
|
4676
|
+
overrideDefaultVariantId
|
|
4674
4677
|
option {
|
|
4675
4678
|
...OptionFields
|
|
4676
4679
|
}
|
|
@@ -16163,7 +16166,7 @@ class Ud {
|
|
|
16163
16166
|
} catch (a) {
|
|
16164
16167
|
throw console.error(a), new gt("Critical - Unable to synchronize workflow state with server.");
|
|
16165
16168
|
}
|
|
16166
|
-
}, this.options = t, this.options.applicationKey && nr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.3.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16169
|
+
}, this.options = t, this.options.applicationKey && nr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.3.0-beta.fcce1a2a-9b47-5742-9feb-5ff24c4e9d73"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16167
16170
|
}
|
|
16168
16171
|
configure(t) {
|
|
16169
16172
|
pt.setHubUrl(t.hubUrl), pt.setServerUrl(t.serverUrl), pt.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 && rr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|