@spiffcommerce/core 34.0.0-beta.3f834cdd-e926-5e26-aac9-a754220b001e → 34.0.0-beta.76c71f85-226f-58df-8196-d18c693f246e
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 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7580,7 +7580,7 @@ class De {
|
|
|
7580
7580
|
svg: d.svg,
|
|
7581
7581
|
colors: i ?? d.colors
|
|
7582
7582
|
};
|
|
7583
|
-
ht.set(t, A), e.setPatternData(A, a);
|
|
7583
|
+
console.log(`LOG: generated ${d.svg}`), ht.set(t, A), e.setPatternData(A, a);
|
|
7584
7584
|
} else {
|
|
7585
7585
|
const o = await Re(t, !0), s = await $e(o), l = {
|
|
7586
7586
|
src: t,
|
|
@@ -12208,21 +12208,29 @@ class cl extends tt {
|
|
|
12208
12208
|
helperData: {}
|
|
12209
12209
|
}, 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
12210
|
o || (e.input = i);
|
|
12211
|
-
const s = { inputText: i, text: i };
|
|
12212
|
-
this.manager.updateStorage(this.step.stepName,
|
|
12213
|
-
const
|
|
12211
|
+
const s = a.length <= 0, l = s ? { inputText: i, text: i } : { inputText: i };
|
|
12212
|
+
this.manager.updateStorage(this.step.stepName, l);
|
|
12213
|
+
const c = this.manager.getStepStorage(this.step.stepName), d = H.getProcessedInput(
|
|
12214
12214
|
i,
|
|
12215
12215
|
this.step.data,
|
|
12216
|
-
|
|
12217
|
-
), { command: d, errorData: A, helperData: u } = H.updateInputText(
|
|
12218
|
-
i,
|
|
12219
|
-
a,
|
|
12220
|
-
this.step,
|
|
12221
|
-
this.manager
|
|
12216
|
+
c?.customiseAllText ?? !1
|
|
12222
12217
|
);
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
|
|
12218
|
+
if (s)
|
|
12219
|
+
o || this.manager.updateMetadata(this.step.stepName, {
|
|
12220
|
+
text: d
|
|
12221
|
+
});
|
|
12222
|
+
else {
|
|
12223
|
+
const { command: A, errorData: u, helperData: h } = H.updateInputText(
|
|
12224
|
+
i,
|
|
12225
|
+
a,
|
|
12226
|
+
this.step,
|
|
12227
|
+
this.manager
|
|
12228
|
+
);
|
|
12229
|
+
A && this.manager.getCommandDispatcher()(A), e.helperData = h, e.errorData = u, !o && !u && this.manager.updateMetadata(this.step.stepName, {
|
|
12230
|
+
text: d
|
|
12231
|
+
});
|
|
12232
|
+
}
|
|
12233
|
+
return e;
|
|
12226
12234
|
}
|
|
12227
12235
|
/**
|
|
12228
12236
|
* Gets the text currently applied to the elements of this step.
|
|
@@ -16114,7 +16122,7 @@ class Rd {
|
|
|
16114
16122
|
} catch (a) {
|
|
16115
16123
|
throw console.error(a), new gt("Critical - Unable to synchronize workflow state with server.");
|
|
16116
16124
|
}
|
|
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
|
|
16125
|
+
}, 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("------------------------");
|
|
16118
16126
|
}
|
|
16119
16127
|
configure(t) {
|
|
16120
16128
|
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);
|