@spiffcommerce/core 27.2.0 → 27.2.1-beta.18d38888-19ca-5144-b378-0ea4ef812e79
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 +10 -4
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -12513,7 +12513,7 @@ class Oo {
|
|
|
12513
12513
|
}
|
|
12514
12514
|
async assignCustomerDetails(t) {
|
|
12515
12515
|
var n, i, s;
|
|
12516
|
-
const a = (s = (i = (n = (await
|
|
12516
|
+
const a = (s = (i = (n = (await this.graphQlClient().mutate({
|
|
12517
12517
|
mutation: To,
|
|
12518
12518
|
variables: {
|
|
12519
12519
|
id: this.getWorkflowManager().getTransaction().id,
|
|
@@ -14850,15 +14850,15 @@ class Je {
|
|
|
14850
14850
|
}
|
|
14851
14851
|
async applyGlobalPropertyState(t) {
|
|
14852
14852
|
var a;
|
|
14853
|
-
const e = await this.
|
|
14854
|
-
for (const n of
|
|
14855
|
-
const i = n.
|
|
14853
|
+
const e = await this.globalPropertyHandleService.getHandles();
|
|
14854
|
+
for (const n of t.aspects) {
|
|
14855
|
+
const i = n == null ? void 0 : n.name, s = e.find((o) => o.getName() === i);
|
|
14856
14856
|
if (s)
|
|
14857
|
-
switch (
|
|
14857
|
+
switch (n.type) {
|
|
14858
14858
|
case z.FileUpload: {
|
|
14859
|
-
const o =
|
|
14859
|
+
const o = s, l = await ve([n.value]);
|
|
14860
14860
|
l.length > 0 && await o.selectImage(l[0]);
|
|
14861
|
-
const c = (a =
|
|
14861
|
+
const c = (a = n.storage) == null ? void 0 : a.colors;
|
|
14862
14862
|
if (c) {
|
|
14863
14863
|
const d = Object.fromEntries(
|
|
14864
14864
|
c.map((A) => [A.key, { browserValue: A.browserValue, pmsValue: A.pmsValue }]) ?? []
|
|
@@ -14868,21 +14868,21 @@ class Je {
|
|
|
14868
14868
|
break;
|
|
14869
14869
|
}
|
|
14870
14870
|
case z.ColorOption: {
|
|
14871
|
-
const o =
|
|
14872
|
-
if (
|
|
14873
|
-
const c = o.getAllVariants().find((d) => d.getId() ===
|
|
14871
|
+
const o = s;
|
|
14872
|
+
if (n.type === z.ColorOption) {
|
|
14873
|
+
const c = o.getAllVariants().find((d) => d.getId() === n.value);
|
|
14874
14874
|
c && await o.selectVariant(c);
|
|
14875
14875
|
} else
|
|
14876
|
-
o.setCustomColor(
|
|
14876
|
+
o.setCustomColor(n.value);
|
|
14877
14877
|
break;
|
|
14878
14878
|
}
|
|
14879
14879
|
case z.Option: {
|
|
14880
|
-
const o =
|
|
14880
|
+
const o = s, c = o.getAllVariants().find((d) => d.getId() === n.value);
|
|
14881
14881
|
c && await o.selectVariant(c);
|
|
14882
14882
|
break;
|
|
14883
14883
|
}
|
|
14884
14884
|
case z.Text: {
|
|
14885
|
-
await
|
|
14885
|
+
await s.setText(n.value);
|
|
14886
14886
|
break;
|
|
14887
14887
|
}
|
|
14888
14888
|
}
|
|
@@ -15900,7 +15900,7 @@ class rd {
|
|
|
15900
15900
|
} catch (a) {
|
|
15901
15901
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15902
15902
|
}
|
|
15903
|
-
}, this.options = t, this.options.applicationKey && Rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.2.
|
|
15903
|
+
}, this.options = t, this.options.applicationKey && Rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.2.1-beta.0b62fc5b-7391-5211-9c59-10f72e60bfae"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15904
15904
|
}
|
|
15905
15905
|
configure(t) {
|
|
15906
15906
|
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 && $r(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|