@spiffcommerce/core 34.0.0-beta.322fa505-3389-5c95-b10a-aa770e6ef11c → 34.0.0-beta.3f2fe6a9-805d-5c25-a99f-4d12215f8c94
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 +22 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3349,7 +3349,10 @@ const de = (n) => {
|
|
|
3349
3349
|
Pa(e);
|
|
3350
3350
|
const a = {};
|
|
3351
3351
|
Dt(e, (o) => {
|
|
3352
|
-
fr.includes(o.tagName) && !o.attributes.getNamedItem("fill")
|
|
3352
|
+
if (fr.includes(o.tagName) && !o.attributes.getNamedItem("fill")) {
|
|
3353
|
+
const c = "spiff-fill-none";
|
|
3354
|
+
o.setAttribute("spiff-fill", "none"), o.classList.add(c), a.none = { browserValue: "none" };
|
|
3355
|
+
}
|
|
3353
3356
|
const s = o.attributes.getNamedItem("fill");
|
|
3354
3357
|
if (s && s.value !== "none" && !s.value.startsWith("url(")) {
|
|
3355
3358
|
const c = Ya(s.value), d = c.browserValue.replace(/\W/g, ""), A = `spiff-fill-${d}`;
|
|
@@ -12208,21 +12211,29 @@ class cl extends tt {
|
|
|
12208
12211
|
helperData: {}
|
|
12209
12212
|
}, a = H.findLayoutElements(this.manager, this.step), i = H.filterUnsupportedCharacters(t, a[0]?.fontData), r = xt(i, this.manager).length, o = !!this.step.data && !!this.step.data.maxLength && r > this.step.data.maxLength;
|
|
12210
12213
|
o || (e.input = i);
|
|
12211
|
-
const
|
|
12214
|
+
const s = a.length <= 0, l = s ? { inputText: i, text: i } : { inputText: i };
|
|
12212
12215
|
this.manager.updateStorage(this.step.stepName, l);
|
|
12213
12216
|
const c = this.manager.getStepStorage(this.step.stepName), d = H.getProcessedInput(
|
|
12214
12217
|
i,
|
|
12215
12218
|
this.step.data,
|
|
12216
12219
|
c?.customiseAllText ?? !1
|
|
12217
|
-
), { command: A, errorData: u, helperData: h } = H.updateInputText(
|
|
12218
|
-
i,
|
|
12219
|
-
a,
|
|
12220
|
-
this.step,
|
|
12221
|
-
this.manager
|
|
12222
12220
|
);
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
|
|
12221
|
+
if (s)
|
|
12222
|
+
o || this.manager.updateMetadata(this.step.stepName, {
|
|
12223
|
+
text: d
|
|
12224
|
+
});
|
|
12225
|
+
else {
|
|
12226
|
+
const { command: A, errorData: u, helperData: h } = H.updateInputText(
|
|
12227
|
+
i,
|
|
12228
|
+
a,
|
|
12229
|
+
this.step,
|
|
12230
|
+
this.manager
|
|
12231
|
+
);
|
|
12232
|
+
A && this.manager.getCommandDispatcher()(A), e.helperData = h, e.errorData = u, !o && !u && this.manager.updateMetadata(this.step.stepName, {
|
|
12233
|
+
text: d
|
|
12234
|
+
});
|
|
12235
|
+
}
|
|
12236
|
+
return e;
|
|
12226
12237
|
}
|
|
12227
12238
|
/**
|
|
12228
12239
|
* Gets the text currently applied to the elements of this step.
|
|
@@ -16114,7 +16125,7 @@ class Rd {
|
|
|
16114
16125
|
} catch (a) {
|
|
16115
16126
|
throw console.error(a), new gt("Critical - Unable to synchronize workflow state with server.");
|
|
16116
16127
|
}
|
|
16117
|
-
}, this.options = t, this.options.applicationKey && ar(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.0.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16128
|
+
}, this.options = t, this.options.applicationKey && ar(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.0.0-beta.c6fd98dc-c442-53b2-b921-8f53e4fd56f9"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16118
16129
|
}
|
|
16119
16130
|
configure(t) {
|
|
16120
16131
|
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 && ir(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|