@spiffcommerce/core 34.0.0-beta.322fa505-3389-5c95-b10a-aa770e6ef11c → 34.0.0-beta.3f834cdd-e926-5e26-aac9-a754220b001e
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 +9 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -12208,21 +12208,21 @@ 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
|
|
12212
|
-
this.manager.updateStorage(this.step.stepName,
|
|
12213
|
-
const
|
|
12211
|
+
const s = { inputText: i, text: i };
|
|
12212
|
+
this.manager.updateStorage(this.step.stepName, s);
|
|
12213
|
+
const l = this.manager.getStepStorage(this.step.stepName), c = H.getProcessedInput(
|
|
12214
12214
|
i,
|
|
12215
12215
|
this.step.data,
|
|
12216
|
-
|
|
12217
|
-
), { command:
|
|
12216
|
+
l?.customiseAllText ?? !1
|
|
12217
|
+
), { command: d, errorData: A, helperData: u } = H.updateInputText(
|
|
12218
12218
|
i,
|
|
12219
12219
|
a,
|
|
12220
12220
|
this.step,
|
|
12221
12221
|
this.manager
|
|
12222
12222
|
);
|
|
12223
|
-
return
|
|
12224
|
-
text:
|
|
12225
|
-
}), e;
|
|
12223
|
+
return d && this.manager.getCommandDispatcher()(d), e.helperData = u, e.errorData = A, !o && !A ? this.manager.updateMetadata(this.step.stepName, {
|
|
12224
|
+
text: c
|
|
12225
|
+
}) : console.log(`Text update - Helper data: ${JSON.stringify(u, null, 2)}, Error data: ${JSON.stringify(A, null, 2)}`), e;
|
|
12226
12226
|
}
|
|
12227
12227
|
/**
|
|
12228
12228
|
* Gets the text currently applied to the elements of this step.
|
|
@@ -16114,7 +16114,7 @@ class Rd {
|
|
|
16114
16114
|
} catch (a) {
|
|
16115
16115
|
throw console.error(a), new gt("Critical - Unable to synchronize workflow state with server.");
|
|
16116
16116
|
}
|
|
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("------------------------");
|
|
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-beta.322fa505-3389-5c95-b10a-aa770e6ef11c"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16118
16118
|
}
|
|
16119
16119
|
configure(t) {
|
|
16120
16120
|
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);
|