@spiffcommerce/core 27.2.1-beta.9303d634-cb1d-5844-a597-a4e69b0192f5 → 27.2.1-beta.f3c9817f-fe9e-57f7-8eec-983456841dd1
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -14850,40 +14850,40 @@ class Je {
|
|
|
14850
14850
|
}
|
|
14851
14851
|
async applyGlobalPropertyState(t) {
|
|
14852
14852
|
var a;
|
|
14853
|
-
const e = await this.
|
|
14854
|
-
console.log(`
|
|
14855
|
-
for (const n of
|
|
14856
|
-
const i = n.
|
|
14857
|
-
if (console.log(`
|
|
14858
|
-
switch (
|
|
14853
|
+
const e = await this.globalPropertyHandleService.getHandles();
|
|
14854
|
+
console.log(`LOG: ${e.length} handles`);
|
|
14855
|
+
for (const n of t.aspects) {
|
|
14856
|
+
const i = n == null ? void 0 : n.name, s = e.find((o) => o.getName() === i);
|
|
14857
|
+
if (console.log(`LOG: handle for ${i}? ${s}`), s)
|
|
14858
|
+
switch (n.type) {
|
|
14859
14859
|
case z.FileUpload: {
|
|
14860
|
-
const o =
|
|
14861
|
-
l.length > 0 &&
|
|
14862
|
-
const c = (a =
|
|
14860
|
+
const o = s, l = await ve([n.value]);
|
|
14861
|
+
l.length > 0 && await o.selectImage(l[0]);
|
|
14862
|
+
const c = (a = n.storage) == null ? void 0 : a.colors;
|
|
14863
14863
|
if (c) {
|
|
14864
14864
|
const d = Object.fromEntries(
|
|
14865
14865
|
c.map((A) => [A.key, { browserValue: A.browserValue, pmsValue: A.pmsValue }]) ?? []
|
|
14866
14866
|
);
|
|
14867
|
-
await o.changeColors(d)
|
|
14867
|
+
await o.changeColors(d);
|
|
14868
14868
|
}
|
|
14869
14869
|
break;
|
|
14870
14870
|
}
|
|
14871
14871
|
case z.ColorOption: {
|
|
14872
|
-
const o =
|
|
14873
|
-
if (
|
|
14874
|
-
const c = o.getAllVariants().find((d) => d.getId() ===
|
|
14875
|
-
c &&
|
|
14872
|
+
const o = s;
|
|
14873
|
+
if (n.type === z.ColorOption) {
|
|
14874
|
+
const c = o.getAllVariants().find((d) => d.getId() === n.value);
|
|
14875
|
+
c && await o.selectVariant(c);
|
|
14876
14876
|
} else
|
|
14877
|
-
o.setCustomColor(
|
|
14877
|
+
o.setCustomColor(n.value);
|
|
14878
14878
|
break;
|
|
14879
14879
|
}
|
|
14880
14880
|
case z.Option: {
|
|
14881
|
-
const o =
|
|
14882
|
-
c &&
|
|
14881
|
+
const o = s, c = o.getAllVariants().find((d) => d.getId() === n.value);
|
|
14882
|
+
c && await o.selectVariant(c);
|
|
14883
14883
|
break;
|
|
14884
14884
|
}
|
|
14885
14885
|
case z.Text: {
|
|
14886
|
-
await
|
|
14886
|
+
await s.setText(n.value);
|
|
14887
14887
|
break;
|
|
14888
14888
|
}
|
|
14889
14889
|
}
|
|
@@ -15901,7 +15901,7 @@ class rd {
|
|
|
15901
15901
|
} catch (a) {
|
|
15902
15902
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15903
15903
|
}
|
|
15904
|
-
}, this.options = t, this.options.applicationKey && Rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.2.1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15904
|
+
}, 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.18d38888-19ca-5144-b378-0ea4ef812e79"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15905
15905
|
}
|
|
15906
15906
|
configure(t) {
|
|
15907
15907
|
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);
|