@spiffcommerce/core 31.2.3-beta.5249dfb4-40fc-508c-8b98-cb6aa1aafe90 → 31.2.3-beta.85869a99-dc4e-57d8-937e-352cd65b71a3
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 +7 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -8645,7 +8645,8 @@ const Fs = new Ds(), Ye = (r, t, e, a, n) => {
|
|
8645
8645
|
const l = n.getApproximateHeight() * a;
|
8646
8646
|
let c = !0;
|
8647
8647
|
for (; c; ) {
|
8648
|
-
|
8648
|
+
const d = l + (s - 1) * e;
|
8649
|
+
if (console.log(`LOG: textbox height for size ${e}: ${d}`), d > r.height)
|
8649
8650
|
return [null, null];
|
8650
8651
|
const A = Math.max(...o);
|
8651
8652
|
if (A <= r.width)
|
@@ -8665,23 +8666,23 @@ const Fs = new Ds(), Ye = (r, t, e, a, n) => {
|
|
8665
8666
|
}
|
8666
8667
|
return [null, null];
|
8667
8668
|
}, fe = (r, t, e, a, n) => {
|
8668
|
-
console.log(
|
8669
|
+
console.log(`LOG: determineCorrectFontSize, region height ${e.height}`);
|
8669
8670
|
let i, s;
|
8670
8671
|
const o = Et(t.assetUrl), l = o.getFont();
|
8671
8672
|
if (n.size) {
|
8672
8673
|
const u = r / l.unitsPerEm;
|
8673
|
-
return [i, s] = Ye(e, a, r, u, o), [n.size, i, s];
|
8674
|
+
return [i, s] = Ye(e, a, r, u, o), console.log(`LOG: fixed mode returning ${n.size, s}`), [n.size, i, s];
|
8674
8675
|
}
|
8675
8676
|
const c = 6;
|
8676
8677
|
let d = c - Ge;
|
8677
8678
|
if (a.length > 0) {
|
8678
8679
|
let u = a, h = 0;
|
8679
8680
|
for (; (!n.maxSize || d <= n.maxSize) && u; )
|
8680
|
-
d += Ge, h = d / l.unitsPerEm, [u, s] = Ye(e, a, d, h, o);
|
8681
|
+
d += Ge, h = d / l.unitsPerEm, [u, s] = Ye(e, a, d, h, o), console.log(`LOG: intermediate result ${[u, s]}`);
|
8681
8682
|
}
|
8682
8683
|
d > c && (d -= Ge), n.minSize && d < n.minSize && (d = n.minSize);
|
8683
8684
|
const A = d / l.unitsPerEm;
|
8684
|
-
return [i, s] = Ye(e, a, d, A, o), [d, i, s];
|
8685
|
+
return [i, s] = Ye(e, a, d, A, o), console.log(`LOG: var mode returning ${[d, i, s]}`), [d, i, s];
|
8685
8686
|
}, Je = 30;
|
8686
8687
|
class De extends Error {
|
8687
8688
|
constructor(t) {
|
@@ -15955,7 +15956,7 @@ class md {
|
|
15955
15956
|
} catch (a) {
|
15956
15957
|
throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
|
15957
15958
|
}
|
15958
|
-
}, this.options = t, this.options.applicationKey && Lr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 31.2.3"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
15959
|
+
}, this.options = t, this.options.applicationKey && Lr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 31.2.3-beta.5249dfb4-40fc-508c-8b98-cb6aa1aafe90"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
15959
15960
|
}
|
15960
15961
|
configure(t) {
|
15961
15962
|
gt.setHubUrl(t.hubUrl), gt.setServerUrl(t.serverUrl), gt.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 && zr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|