@spiffcommerce/core 34.4.1-beta.bf5c28f5-8552-52a0-841f-46d5240fb5bd → 34.4.1-beta.c626c011-1b3b-595f-9e38-1d62fdf92d5d
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 +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6990,7 +6990,7 @@ class ta extends O {
|
|
|
6990
6990
|
super(), this.id = t, this.strokeColor = e, this.strokeThickness = a;
|
|
6991
6991
|
}
|
|
6992
6992
|
apply(t) {
|
|
6993
|
-
|
|
6993
|
+
this.oldState = t;
|
|
6994
6994
|
const e = z(this.id, Object.values(t.layouts));
|
|
6995
6995
|
if (!e.id)
|
|
6996
6996
|
throw new W();
|
|
@@ -8750,9 +8750,7 @@ class Xo {
|
|
|
8750
8750
|
height: s.height,
|
|
8751
8751
|
width: s.width,
|
|
8752
8752
|
scale: t.data.imageFillScale || 1
|
|
8753
|
-
} : void 0, c = this.getDefaultStrokeColorVariant(t.data)
|
|
8754
|
-
console.log(`log: default ${JSON.stringify(c, null, 2)}`);
|
|
8755
|
-
const d = c?.color ? {
|
|
8753
|
+
} : void 0, c = this.getDefaultStrokeColorVariant(t.data), d = t.data.strokeEnabled && c?.color ? {
|
|
8756
8754
|
browserValue: c.color,
|
|
8757
8755
|
pmsValue: c.name
|
|
8758
8756
|
} : void 0;
|
|
@@ -9009,7 +9007,10 @@ class Xo {
|
|
|
9009
9007
|
e.getCommandDispatcher()(f);
|
|
9010
9008
|
}
|
|
9011
9009
|
), s.length === 0 && l) {
|
|
9012
|
-
const p = V.getDefaultVariant(
|
|
9010
|
+
const p = V.getDefaultVariant(
|
|
9011
|
+
l,
|
|
9012
|
+
t.overrideDefaultVariantId
|
|
9013
|
+
);
|
|
9013
9014
|
if (p) {
|
|
9014
9015
|
const f = await this.selectVariantCommand(
|
|
9015
9016
|
t,
|
|
@@ -9045,7 +9046,10 @@ class Xo {
|
|
|
9045
9046
|
const h = c.getGlobalPropertyStateManager().getAspect(A.name);
|
|
9046
9047
|
if (h)
|
|
9047
9048
|
if (s.length === 0 && l) {
|
|
9048
|
-
const g = V.getDefaultVariant(
|
|
9049
|
+
const g = V.getDefaultVariant(
|
|
9050
|
+
l,
|
|
9051
|
+
t.overrideDefaultVariantId
|
|
9052
|
+
);
|
|
9049
9053
|
if (g) {
|
|
9050
9054
|
const m = await this.selectVariantCommand(
|
|
9051
9055
|
t,
|
|
@@ -9089,7 +9093,7 @@ class Xo {
|
|
|
9089
9093
|
}
|
|
9090
9094
|
getDefaultStrokeColorVariant(t) {
|
|
9091
9095
|
const e = t.strokeOption;
|
|
9092
|
-
if (
|
|
9096
|
+
if (e)
|
|
9093
9097
|
return V.getDefaultVariant(e);
|
|
9094
9098
|
}
|
|
9095
9099
|
async fontDataFromVariant(t) {
|
|
@@ -9114,9 +9118,7 @@ class Xo {
|
|
|
9114
9118
|
u.push(...m);
|
|
9115
9119
|
}
|
|
9116
9120
|
if (c) {
|
|
9117
|
-
const m = i.map(
|
|
9118
|
-
(p) => new ta(p.id, c, t.data.strokeThickness)
|
|
9119
|
-
);
|
|
9121
|
+
const m = i.map((p) => new ta(p.id, c, t.data.strokeThickness));
|
|
9120
9122
|
u.push(...m);
|
|
9121
9123
|
}
|
|
9122
9124
|
const h = await this.changeInputTextWithRegion(
|
|
@@ -9162,8 +9164,8 @@ class Xo {
|
|
|
9162
9164
|
g.push(...p);
|
|
9163
9165
|
}
|
|
9164
9166
|
if (c) {
|
|
9165
|
-
const p =
|
|
9166
|
-
(f) => new ta(f.id, c, t.data.strokeThickness)
|
|
9167
|
+
const p = u.map(
|
|
9168
|
+
(f) => new ta(f.newElement.id, c, t.data.strokeThickness)
|
|
9167
9169
|
);
|
|
9168
9170
|
g.push(...p);
|
|
9169
9171
|
}
|
|
@@ -10986,7 +10988,7 @@ const nl = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
10986
10988
|
throw console.error(g), this.initialized = !1, new Error("Workflow initialization failed due to an error. See console.");
|
|
10987
10989
|
}), this.initializationPromise.finally(
|
|
10988
10990
|
() => this.commandContext.registerStateCallback(() => {
|
|
10989
|
-
|
|
10991
|
+
this.updateStateWithServer(), this.renderLayouts();
|
|
10990
10992
|
})
|
|
10991
10993
|
), h && await this.injectIntoPreviewService(h, !0);
|
|
10992
10994
|
}, this.renderLayouts = () => {
|
|
@@ -11695,7 +11697,7 @@ const nl = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11695
11697
|
this.editedCallbacks.forEach((t) => t(this.editedSteps));
|
|
11696
11698
|
}
|
|
11697
11699
|
onElementsChange() {
|
|
11698
|
-
|
|
11700
|
+
this.elementsCallbacks.forEach((t) => t(this.stepElements));
|
|
11699
11701
|
}
|
|
11700
11702
|
onInformationResultChange() {
|
|
11701
11703
|
this.informationResultCallbacks.forEach((t) => t(this.informationResults));
|
|
@@ -11717,7 +11719,6 @@ const nl = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11717
11719
|
});
|
|
11718
11720
|
}
|
|
11719
11721
|
async onSelectionChange() {
|
|
11720
|
-
console.log("log: onSelectionChange");
|
|
11721
11722
|
const t = await this.traversableScenes();
|
|
11722
11723
|
for (const e of this.selectionCallbacks)
|
|
11723
11724
|
e({
|
|
@@ -16169,7 +16170,7 @@ class Ud {
|
|
|
16169
16170
|
} catch (a) {
|
|
16170
16171
|
throw console.error(a), new gt("Critical - Unable to synchronize workflow state with server.");
|
|
16171
16172
|
}
|
|
16172
|
-
}, this.options = t, this.options.applicationKey && nr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.4.1
|
|
16173
|
+
}, this.options = t, this.options.applicationKey && nr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.4.1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16173
16174
|
}
|
|
16174
16175
|
configure(t) {
|
|
16175
16176
|
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 && rr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|