@spiffcommerce/core 27.1.0-beta.2ef99307-3cf1-5417-a8f2-08bd6109eb47 → 27.1.0-beta.4b701db0-4aa9-5e94-b640-cd096f19527b
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 +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8978,7 +8978,7 @@ class bs {
|
|
|
8978
8978
|
});
|
|
8979
8979
|
}
|
|
8980
8980
|
updateInputText(t, e, a, n) {
|
|
8981
|
-
const i = n.getStepStorage(a.stepName), s = this.getProcessedInput(t, a.data,
|
|
8981
|
+
const i = n.getStepStorage(a.stepName), s = this.getProcessedInput(t, a.data, (i == null ? void 0 : i.customiseAllText) ?? !1), o = {
|
|
8982
8982
|
command: void 0,
|
|
8983
8983
|
helperData: {},
|
|
8984
8984
|
errorData: this.getErrorsForText(t, a, n)
|
|
@@ -9004,7 +9004,7 @@ class bs {
|
|
|
9004
9004
|
}
|
|
9005
9005
|
return !a.data.curved && e.length > 0 && !Array.from(d.values()).every((u) => u) ? (o.errorData || (o.errorData = {}), o.errorData.doesNotFit = !0, o) : (n.updateStorage(a.stepName, { text: t }), n.updateMetadata(a.stepName, {
|
|
9006
9006
|
text: s
|
|
9007
|
-
}), (i.defaultCleared || !a.data.deleteDefaultOnFocus) && s.trim() !== "" && n.setMandatoryFulfilled(a.stepName, !0), o.command = new $(l), o);
|
|
9007
|
+
}), (i != null && i.defaultCleared || !a.data.deleteDefaultOnFocus) && s.trim() !== "" && n.setMandatoryFulfilled(a.stepName, !0), o.command = new $(l), o);
|
|
9008
9008
|
}
|
|
9009
9009
|
async selectVariant(t, e, a, n, i) {
|
|
9010
9010
|
const s = await this.selectVariantCommand(
|
|
@@ -9152,7 +9152,7 @@ class bs {
|
|
|
9152
9152
|
a.text || "",
|
|
9153
9153
|
a,
|
|
9154
9154
|
i,
|
|
9155
|
-
|
|
9155
|
+
(a == null ? void 0 : a.customiseAllText) ?? !1,
|
|
9156
9156
|
s,
|
|
9157
9157
|
o
|
|
9158
9158
|
);
|
|
@@ -9177,7 +9177,7 @@ class bs {
|
|
|
9177
9177
|
((u = h[0]) == null ? void 0 : u.newElement.input) || a.text || t.data.defaultText || "",
|
|
9178
9178
|
a,
|
|
9179
9179
|
i,
|
|
9180
|
-
|
|
9180
|
+
(a == null ? void 0 : a.customiseAllText) ?? !1,
|
|
9181
9181
|
s,
|
|
9182
9182
|
o
|
|
9183
9183
|
), g = h.flatMap((f) => f.commands);
|
|
@@ -11481,7 +11481,7 @@ class So extends it {
|
|
|
11481
11481
|
const l = this.manager.getStepStorage(this.step.stepName), c = W.getProcessedInput(
|
|
11482
11482
|
n,
|
|
11483
11483
|
this.step.data,
|
|
11484
|
-
|
|
11484
|
+
(l == null ? void 0 : l.customiseAllText) ?? !1
|
|
11485
11485
|
);
|
|
11486
11486
|
if (s)
|
|
11487
11487
|
i || this.manager.updateMetadata(this.step.stepName, {
|
|
@@ -15826,7 +15826,7 @@ class rd {
|
|
|
15826
15826
|
} catch (a) {
|
|
15827
15827
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15828
15828
|
}
|
|
15829
|
-
}, 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.
|
|
15829
|
+
}, 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.0ac5c474-b5b4-51a7-80c4-5462b0e68fd8"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15830
15830
|
}
|
|
15831
15831
|
configure(t) {
|
|
15832
15832
|
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);
|