@spiffcommerce/core 27.1.0-beta.91b561f6-b5a3-516f-93cd-3bdab8dfce5c → 27.1.0-beta.de59798c-64e3-5d17-b483-6b76ccac8338
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 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10857,9 +10857,10 @@ class mo {
|
|
|
10857
10857
|
await this.onSelectionChange(), n && await n();
|
|
10858
10858
|
}
|
|
10859
10859
|
async ensureStepsAreLoaded() {
|
|
10860
|
+
console.log("ensuring steps loaded"), console.trace();
|
|
10860
10861
|
const e = Dt(this.allScenes, this.stepSelections).map((l) => l.renderableSteps), a = [], n = e.flat();
|
|
10861
10862
|
for (const l of n)
|
|
10862
|
-
if (!this.stepInitialised[l.stepName])
|
|
10863
|
+
if (console.log(`checking step ${l.stepName} (${this.stepInitialised[l.stepName]})`), !this.stepInitialised[l.stepName])
|
|
10863
10864
|
switch (this.stepInitialised[l.stepName] = !0, l.type) {
|
|
10864
10865
|
case P.DigitalContent:
|
|
10865
10866
|
a.push(
|
|
@@ -10907,7 +10908,7 @@ class mo {
|
|
|
10907
10908
|
a.push(zt.init(l, this, this.reloadedState));
|
|
10908
10909
|
break;
|
|
10909
10910
|
case P.Text:
|
|
10910
|
-
a.push(W.init(l, this, this.reloadedState));
|
|
10911
|
+
console.log(`initing for ${l.stepName}`), a.push(W.init(l, this, this.reloadedState));
|
|
10911
10912
|
break;
|
|
10912
10913
|
}
|
|
10913
10914
|
const i = (await Promise.allSettled(a)).map((l) => {
|
|
@@ -13389,7 +13390,7 @@ class tl {
|
|
|
13389
13390
|
});
|
|
13390
13391
|
}
|
|
13391
13392
|
async createHandle(t) {
|
|
13392
|
-
switch (t.type) {
|
|
13393
|
+
switch (console.log(`creating handle ${t.name} / ${t.title}`), console.trace(), t.type) {
|
|
13393
13394
|
case X.FileUpload:
|
|
13394
13395
|
return new el(this.bundle, t).initialize();
|
|
13395
13396
|
case X.ColorOption:
|
|
@@ -13722,12 +13723,14 @@ class al extends Ia {
|
|
|
13722
13723
|
]);
|
|
13723
13724
|
}
|
|
13724
13725
|
async applyGlobalState(t) {
|
|
13726
|
+
console.log("applying text global state"), console.trace();
|
|
13725
13727
|
const e = this.getStateValue();
|
|
13726
13728
|
if (!e)
|
|
13727
13729
|
return Promise.resolve();
|
|
13728
13730
|
await this.applyTextSelection(e, t);
|
|
13729
13731
|
}
|
|
13730
13732
|
async applyTextSelection(t, e) {
|
|
13733
|
+
console.log("applying text selection");
|
|
13731
13734
|
const n = this.getSharedSteps(e).map((i) => {
|
|
13732
13735
|
i.setText(t);
|
|
13733
13736
|
});
|
|
@@ -15827,7 +15830,7 @@ class rd {
|
|
|
15827
15830
|
} catch (a) {
|
|
15828
15831
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15829
15832
|
}
|
|
15830
|
-
}, this.options = t, this.options.applicationKey && Rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.1.0-beta.
|
|
15833
|
+
}, this.options = t, this.options.applicationKey && Rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.1.0-beta.a8655933-c975-59bd-aacc-b66e4a8fd124"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15831
15834
|
}
|
|
15832
15835
|
configure(t) {
|
|
15833
15836
|
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);
|