@spiffcommerce/core 34.4.2 → 34.4.3
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 +104 -104
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9007,7 +9007,10 @@ class Xo {
|
|
|
9007
9007
|
e.getCommandDispatcher()(f);
|
|
9008
9008
|
}
|
|
9009
9009
|
), s.length === 0 && l) {
|
|
9010
|
-
const p = V.getDefaultVariant(
|
|
9010
|
+
const p = V.getDefaultVariant(
|
|
9011
|
+
l,
|
|
9012
|
+
t.overrideDefaultVariantId
|
|
9013
|
+
);
|
|
9011
9014
|
if (p) {
|
|
9012
9015
|
const f = await this.selectVariantCommand(
|
|
9013
9016
|
t,
|
|
@@ -9043,7 +9046,10 @@ class Xo {
|
|
|
9043
9046
|
const h = c.getGlobalPropertyStateManager().getAspect(A.name);
|
|
9044
9047
|
if (h)
|
|
9045
9048
|
if (s.length === 0 && l) {
|
|
9046
|
-
const g = V.getDefaultVariant(
|
|
9049
|
+
const g = V.getDefaultVariant(
|
|
9050
|
+
l,
|
|
9051
|
+
t.overrideDefaultVariantId
|
|
9052
|
+
);
|
|
9047
9053
|
if (g) {
|
|
9048
9054
|
const m = await this.selectVariantCommand(
|
|
9049
9055
|
t,
|
|
@@ -9112,9 +9118,7 @@ class Xo {
|
|
|
9112
9118
|
u.push(...m);
|
|
9113
9119
|
}
|
|
9114
9120
|
if (c) {
|
|
9115
|
-
const m = i.map(
|
|
9116
|
-
(p) => new ta(p.id, c, t.data.strokeThickness)
|
|
9117
|
-
);
|
|
9121
|
+
const m = i.map((p) => new ta(p.id, c, t.data.strokeThickness));
|
|
9118
9122
|
u.push(...m);
|
|
9119
9123
|
}
|
|
9120
9124
|
const h = await this.changeInputTextWithRegion(
|
|
@@ -9160,8 +9164,8 @@ class Xo {
|
|
|
9160
9164
|
g.push(...p);
|
|
9161
9165
|
}
|
|
9162
9166
|
if (c) {
|
|
9163
|
-
const p =
|
|
9164
|
-
(f) => new ta(f.id, c, t.data.strokeThickness)
|
|
9167
|
+
const p = u.map(
|
|
9168
|
+
(f) => new ta(f.newElement.id, c, t.data.strokeThickness)
|
|
9165
9169
|
);
|
|
9166
9170
|
g.push(...p);
|
|
9167
9171
|
}
|
|
@@ -16177,7 +16181,7 @@ class Ud {
|
|
|
16177
16181
|
} catch (a) {
|
|
16178
16182
|
throw console.error(a), new gt("Critical - Unable to synchronize workflow state with server.");
|
|
16179
16183
|
}
|
|
16180
|
-
}, this.options = t, this.options.applicationKey && nr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.4.
|
|
16184
|
+
}, this.options = t, this.options.applicationKey && nr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.4.3"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16181
16185
|
}
|
|
16182
16186
|
configure(t) {
|
|
16183
16187
|
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);
|