@spiffcommerce/core 21.13.0 → 21.13.1-1
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.d.ts +1 -1
- package/dist/index.js +56 -55
- package/dist/index.umd.cjs +20 -19
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3241,7 +3241,7 @@ declare class QuestionStepHandle extends StepHandle<QuestionStepData> {
|
|
|
3241
3241
|
/**
|
|
3242
3242
|
* The way that this step expects to be rendered.
|
|
3243
3243
|
*/
|
|
3244
|
-
getDisplayType():
|
|
3244
|
+
getDisplayType(): any;
|
|
3245
3245
|
}
|
|
3246
3246
|
|
|
3247
3247
|
declare class ShapeStepHandle extends StepHandle<ShapeStepData> {
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createHttpLink as IA, InMemoryCache as fA, ApolloClient as DA, from as FA, gql as D } from "@apollo/client/core";
|
|
2
|
-
import { fetch as et, getAttributesFromArrayBuffer as Rt, AssetType as ut, StepType as y, getFrameData as tt, frameDataCache as yA, GroupCommand as v, UpdateFramePattern as Ht, UpdateFrameThresholdSettingsCommand as MA, calculateOffsets as At, LayoutElementType as k, generate as J, CreateElementCommand as
|
|
3
|
-
import { AspectType as es, AssetType as ts, BringForwardCommand as As, BringToBackCommand as as, BringToFrontCommand as ns, CanvasCommand as is, CommandContext as ss, CreateElementCommand as os, CreateLayoutCommand as rs, DeleteElementCommand as cs, FontAlignmentCommand as gs, FontColorCommand as ls, FontSizeCommand as Bs, FontSourceCommand as ds, GroupCommand as ws, LayoutElementFactory as hs, LayoutElementType as Es, MoveCommand as us, ResizeCommand as Cs, RotateCommand as Qs, SendBackwardsCommand as ms, StepAspectType as ps, StepType as Is, TextChangeCommand as fs, UnitOfMeasurement as Ds, UpdateImageSourceCommand as Fs, dataUrlFromExternalUrl as ys, determineCorrectFontSizeAndLines as Ms, findElement as Ss, frameDataCache as Ys, generate as Ps, generateSVGWithUnknownColors as xs, getAttributesFromArrayBuffer as Ns, getAxisAlignedBoundingBox as Rs, getFrameData as Hs, getSvgElement as Us, loadFont as vs, patternImageDataCache as Gs, registerFetchImplementation as ks, registerWindowImplementation as bs, rehydrateSerializedLayout as Js, setCanvasModule as
|
|
2
|
+
import { fetch as et, getAttributesFromArrayBuffer as Rt, AssetType as ut, StepType as y, getFrameData as tt, frameDataCache as yA, GroupCommand as v, UpdateFramePattern as Ht, UpdateFrameThresholdSettingsCommand as MA, calculateOffsets as At, LayoutElementType as k, generate as J, CreateElementCommand as L, generateSVGWithUnknownColors as Ut, svgObjectURL as Pe, fetchAsString as _, DeleteElementCommand as ee, generateDefaultRectangleFrameSvg as Ct, GetSVGDimensions as SA, patternImageDataCache as Qt, fetchAsArrayBuffer as YA, findElement as xe, modifySVGWithElementProperties as PA, IllustrationColorCommand as We, IllustrationCacheCommand as xA, getFontMetrics as NA, getPatternImageData as Xe, FontAlignmentCommand as RA, FontColorCommand as HA, FontImageFillCommand as Oe, applyTextTransformations as qe, determineCorrectFontSizeAndLines as Me, FontSourceCommand as mt, loadFont as at, TextChangeCommand as UA, FontSizeCommand as vA, createElementNS as GA, createElement as Qe, _loadFontExternalDataURL as nt, UpdateWorkflowStateCommand as pt, CommandContext as kA, createCanvas as Ne, getSvgElement as vt, LayoutRenderingPurpose as Gt, renderPapyrusComponentAsString as kt, loadImage as bt, getDomParser as Jt, toBase64 as It, getVariant as bA, generateFrameSVG as JA, getDefaultVariant as be, domParser as Tt, sanitizeSvgTree as Lt, traverse as TA, xmlSerializer as Ot, CreateLayoutCommand as LA, AspectType as Be, rehydrateSerializedLayout as Ae } from "@spiffcommerce/papyrus";
|
|
3
|
+
import { AspectType as es, AssetType as ts, BringForwardCommand as As, BringToBackCommand as as, BringToFrontCommand as ns, CanvasCommand as is, CommandContext as ss, CreateElementCommand as os, CreateLayoutCommand as rs, DeleteElementCommand as cs, FontAlignmentCommand as gs, FontColorCommand as ls, FontSizeCommand as Bs, FontSourceCommand as ds, GroupCommand as ws, LayoutElementFactory as hs, LayoutElementType as Es, MoveCommand as us, ResizeCommand as Cs, RotateCommand as Qs, SendBackwardsCommand as ms, StepAspectType as ps, StepType as Is, TextChangeCommand as fs, UnitOfMeasurement as Ds, UpdateImageSourceCommand as Fs, dataUrlFromExternalUrl as ys, determineCorrectFontSizeAndLines as Ms, findElement as Ss, frameDataCache as Ys, generate as Ps, generateSVGWithUnknownColors as xs, getAttributesFromArrayBuffer as Ns, getAxisAlignedBoundingBox as Rs, getFrameData as Hs, getSvgElement as Us, loadFont as vs, patternImageDataCache as Gs, registerFetchImplementation as ks, registerWindowImplementation as bs, rehydrateSerializedLayout as Js, setCanvasModule as Ts } from "@spiffcommerce/papyrus";
|
|
4
4
|
import { setContext as OA } from "@apollo/client/link/context";
|
|
5
5
|
import { onError as zA } from "@apollo/client/link/error";
|
|
6
6
|
import { Pith as zt } from "pith";
|
|
@@ -66,7 +66,7 @@ class U extends Je {
|
|
|
66
66
|
super(`Client Error: ${e}`);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
class
|
|
69
|
+
class Te extends Je {
|
|
70
70
|
constructor(e) {
|
|
71
71
|
super(`Resource Generation Failed: ${e}`);
|
|
72
72
|
}
|
|
@@ -1730,7 +1730,7 @@ class St {
|
|
|
1730
1730
|
id: d.id,
|
|
1731
1731
|
region: a
|
|
1732
1732
|
},
|
|
1733
|
-
command: new
|
|
1733
|
+
command: new L(d, n)
|
|
1734
1734
|
};
|
|
1735
1735
|
} else {
|
|
1736
1736
|
const l = this.configuration.type === y.SilentIllustration ? (B = this.configuration.data.asset) == null ? void 0 : B.fileLink : i, w = await Ut(await (async () => new Promise((h, u) => {
|
|
@@ -1765,7 +1765,7 @@ class St {
|
|
|
1765
1765
|
id: E.id,
|
|
1766
1766
|
region: a
|
|
1767
1767
|
},
|
|
1768
|
-
command: new
|
|
1768
|
+
command: new L(E, n)
|
|
1769
1769
|
};
|
|
1770
1770
|
}
|
|
1771
1771
|
}, this.configuration = e, this.layouts = t, this.product = A || void 0;
|
|
@@ -1802,7 +1802,7 @@ const Pa = async (c) => {
|
|
|
1802
1802
|
}
|
|
1803
1803
|
})).json()).shortUrl;
|
|
1804
1804
|
} catch (t) {
|
|
1805
|
-
throw console.error(t), new
|
|
1805
|
+
throw console.error(t), new Te("Failed to shorten URL, see console.");
|
|
1806
1806
|
}
|
|
1807
1807
|
};
|
|
1808
1808
|
class aA {
|
|
@@ -1876,7 +1876,7 @@ class xa {
|
|
|
1876
1876
|
d.searchParams.append("video", btoa(JSON.stringify([B]))), d.pathname = d.pathname + (d.pathname.slice(-1) === "/" ? "" : "/");
|
|
1877
1877
|
const w = d.toString();
|
|
1878
1878
|
if (w.length >= 2e3)
|
|
1879
|
-
throw new
|
|
1879
|
+
throw new Te("Cannot create QR code, URL too long.");
|
|
1880
1880
|
const E = await Pa(w);
|
|
1881
1881
|
if (s(E), !i.data || !i.data.regions)
|
|
1882
1882
|
throw new He(i, "Missing regions.");
|
|
@@ -1903,7 +1903,7 @@ class xa {
|
|
|
1903
1903
|
throw new Error("Region not found");
|
|
1904
1904
|
if (!B || !g)
|
|
1905
1905
|
throw new Error("Neither a region or layout found!");
|
|
1906
|
-
return new
|
|
1906
|
+
return new L(
|
|
1907
1907
|
{
|
|
1908
1908
|
stepRegion: g,
|
|
1909
1909
|
stepName: a,
|
|
@@ -2035,7 +2035,7 @@ class Ra {
|
|
|
2035
2035
|
});
|
|
2036
2036
|
},
|
|
2037
2037
|
() => {
|
|
2038
|
-
throw new
|
|
2038
|
+
throw new Te("Failed to resolve transcoded PDF");
|
|
2039
2039
|
}
|
|
2040
2040
|
)
|
|
2041
2041
|
);
|
|
@@ -2052,7 +2052,7 @@ class Ra {
|
|
|
2052
2052
|
i && (i.command && a.getCommandDispatcher()(i.command), i.followup && await i.followup());
|
|
2053
2053
|
}
|
|
2054
2054
|
getCreateElementCommand(e, t, A, a) {
|
|
2055
|
-
return new
|
|
2055
|
+
return new L(
|
|
2056
2056
|
{
|
|
2057
2057
|
id: e,
|
|
2058
2058
|
type: k.Frame,
|
|
@@ -2196,7 +2196,7 @@ class Ha {
|
|
|
2196
2196
|
});
|
|
2197
2197
|
}
|
|
2198
2198
|
getCreateElementCommand(e, t, A, a) {
|
|
2199
|
-
return new
|
|
2199
|
+
return new L(
|
|
2200
2200
|
{
|
|
2201
2201
|
stepRegion: t,
|
|
2202
2202
|
stepName: a.stepName,
|
|
@@ -2600,7 +2600,7 @@ class Ga {
|
|
|
2600
2600
|
return console.error(`Can not find layout for region: ${l.panelId}`), null;
|
|
2601
2601
|
const u = [];
|
|
2602
2602
|
return d && u.push(new ee(w)), u.push(
|
|
2603
|
-
new
|
|
2603
|
+
new L(
|
|
2604
2604
|
{
|
|
2605
2605
|
stepRegion: l,
|
|
2606
2606
|
stepName: e.stepName,
|
|
@@ -2728,7 +2728,7 @@ class ba {
|
|
|
2728
2728
|
const E = J();
|
|
2729
2729
|
return {
|
|
2730
2730
|
regionElement: { id: E, region: l },
|
|
2731
|
-
command: new
|
|
2731
|
+
command: new L(
|
|
2732
2732
|
{
|
|
2733
2733
|
stepName: e.stepName,
|
|
2734
2734
|
stepRegion: l,
|
|
@@ -2824,7 +2824,7 @@ class Ja {
|
|
|
2824
2824
|
}
|
|
2825
2825
|
}
|
|
2826
2826
|
const oA = new Ja();
|
|
2827
|
-
class
|
|
2827
|
+
class Ta {
|
|
2828
2828
|
constructor() {
|
|
2829
2829
|
this.shapeFillId = "spiff-fill-shape";
|
|
2830
2830
|
}
|
|
@@ -2958,7 +2958,7 @@ class La {
|
|
|
2958
2958
|
return {
|
|
2959
2959
|
id: C,
|
|
2960
2960
|
region: d,
|
|
2961
|
-
command: new
|
|
2961
|
+
command: new L(
|
|
2962
2962
|
{
|
|
2963
2963
|
stepRegion: d,
|
|
2964
2964
|
stepName: e.stepName,
|
|
@@ -2996,8 +2996,8 @@ class La {
|
|
|
2996
2996
|
}
|
|
2997
2997
|
}
|
|
2998
2998
|
}
|
|
2999
|
-
const le = new
|
|
3000
|
-
class
|
|
2999
|
+
const le = new Ta();
|
|
3000
|
+
class La {
|
|
3001
3001
|
constructor() {
|
|
3002
3002
|
this.latestToast = null, this.toastType = null, this.toastCallbacks = [];
|
|
3003
3003
|
}
|
|
@@ -3022,7 +3022,7 @@ class Ta {
|
|
|
3022
3022
|
);
|
|
3023
3023
|
}
|
|
3024
3024
|
}
|
|
3025
|
-
const Oa = new
|
|
3025
|
+
const Oa = new La(), ze = 30;
|
|
3026
3026
|
class ve extends Error {
|
|
3027
3027
|
constructor(e) {
|
|
3028
3028
|
super(e), Object.setPrototypeOf(this, new.target.prototype), this.name = ve.name;
|
|
@@ -3456,7 +3456,7 @@ class Ka {
|
|
|
3456
3456
|
Q.push(
|
|
3457
3457
|
this.generateTextChangeCommandsForRegion(F, A, m.id, P)
|
|
3458
3458
|
);
|
|
3459
|
-
const S = new
|
|
3459
|
+
const S = new L(m, d);
|
|
3460
3460
|
return {
|
|
3461
3461
|
regionElement: { id: w, region: B },
|
|
3462
3462
|
commands: [S, ...Q],
|
|
@@ -6020,7 +6020,7 @@ class gn extends X {
|
|
|
6020
6020
|
*/
|
|
6021
6021
|
getDisplayType() {
|
|
6022
6022
|
var e;
|
|
6023
|
-
return (e = this.step.option) == null ? void 0 : e.displayType;
|
|
6023
|
+
return this.step.data.displayType || ((e = this.step.option) == null ? void 0 : e.displayType);
|
|
6024
6024
|
}
|
|
6025
6025
|
}
|
|
6026
6026
|
class ln extends X {
|
|
@@ -6519,8 +6519,8 @@ const En = async (c) => {
|
|
|
6519
6519
|
transactionOwnerId: P
|
|
6520
6520
|
}
|
|
6521
6521
|
}), R = (O = N.data) == null ? void 0 : O.transactions[0].workflowState;
|
|
6522
|
-
return N.errors ? (N.errors.forEach((
|
|
6523
|
-
N.errors && console.log("Server Error:",
|
|
6522
|
+
return N.errors ? (N.errors.forEach((T) => {
|
|
6523
|
+
N.errors && console.log("Server Error:", T.message);
|
|
6524
6524
|
}), null) : R ?? null;
|
|
6525
6525
|
})() || (console.warn("State mismatch detected. Uploading known state explicitly"), console.warn("State Object:", JSON.stringify(A())), await c.updateStateWithServerImmediate(A), console.log("Server state is undefined @ Workflow completion"));
|
|
6526
6526
|
const l = c.getPreviewService(), d = (F = e == null ? void 0 : e.finalizeStepConfig) == null ? void 0 : F.lookAtAnimation, w = l && e.showModelOnFinishStep && !!d, E = o && _e(o, e, !0), h = o && _e(o, e, !1), u = async (M) => {
|
|
@@ -6528,16 +6528,16 @@ const En = async (c) => {
|
|
|
6528
6528
|
let S = 0;
|
|
6529
6529
|
if (Object.keys(n).length > 0)
|
|
6530
6530
|
for (const N of Object.keys(n)) {
|
|
6531
|
-
const R = n[N], O = e.steps.find((
|
|
6532
|
-
for (let
|
|
6533
|
-
const W = R.selections[
|
|
6531
|
+
const R = n[N], O = e.steps.find((T) => T.stepName === N);
|
|
6532
|
+
for (let T = 0; T < R.selections.length; ++T) {
|
|
6533
|
+
const W = R.selections[T];
|
|
6534
6534
|
if (O && (!M || O.option && (O.option.variants || []).length > 1 && !O.data.hideSelectionInCart && !O.data.hideSelectionsInCart)) {
|
|
6535
|
-
const
|
|
6536
|
-
P[
|
|
6535
|
+
const Le = O.stepTitle;
|
|
6536
|
+
P[Le] ? P[Le].push({
|
|
6537
6537
|
id: W.id || "",
|
|
6538
6538
|
name: W.name,
|
|
6539
6539
|
priceModifier: W.priceModifier
|
|
6540
|
-
}) : P[
|
|
6540
|
+
}) : P[Le] = [
|
|
6541
6541
|
{
|
|
6542
6542
|
id: W.id || "",
|
|
6543
6543
|
name: W.name,
|
|
@@ -6853,7 +6853,7 @@ class fe {
|
|
|
6853
6853
|
height: g.layoutState.layout.height
|
|
6854
6854
|
}, l = this.commandContext.getLayoutById(g.layoutState.layout.id), d = i.getContext("2d");
|
|
6855
6855
|
if (!d)
|
|
6856
|
-
throw new
|
|
6856
|
+
throw new Te("Failed to obtain 2D context for preview image creation");
|
|
6857
6857
|
const w = vt(l.layoutState.layout, l.layoutState.elements, {
|
|
6858
6858
|
renderingConfiguration: {
|
|
6859
6859
|
purpose: Gt.Print,
|
|
@@ -7153,7 +7153,7 @@ const Dn = [
|
|
|
7153
7153
|
if (!w)
|
|
7154
7154
|
throw new z(d);
|
|
7155
7155
|
const E = J();
|
|
7156
|
-
return new
|
|
7156
|
+
return new L(
|
|
7157
7157
|
{
|
|
7158
7158
|
id: E,
|
|
7159
7159
|
src: g,
|
|
@@ -7194,7 +7194,7 @@ const Dn = [
|
|
|
7194
7194
|
top: a.y
|
|
7195
7195
|
});
|
|
7196
7196
|
return [
|
|
7197
|
-
new
|
|
7197
|
+
new L(
|
|
7198
7198
|
{
|
|
7199
7199
|
id: l,
|
|
7200
7200
|
path: B.path,
|
|
@@ -7239,12 +7239,12 @@ const Dn = [
|
|
|
7239
7239
|
const s = (p = i.asset) == null ? void 0 : p.fileLink;
|
|
7240
7240
|
if (!s)
|
|
7241
7241
|
return console.error(`No asset link for variant with ID: ${a.illustrationVariantId}`), [];
|
|
7242
|
-
const o = await _(s, !0), r = /<svg.*?<\/svg>/s, g = o.match(r) || [], B = (g == null ? void 0 : g.length) > 0 ? g[0] : "", w =
|
|
7242
|
+
const o = await _(s, !0), r = /<svg.*?<\/svg>/s, g = o.match(r) || [], B = (g == null ? void 0 : g.length) > 0 ? g[0] : "", w = Tt().parseFromString(B, "image/svg+xml").firstElementChild;
|
|
7243
7243
|
if (!w)
|
|
7244
7244
|
return console.error("Failed to read SVG."), [];
|
|
7245
|
-
|
|
7245
|
+
Lt(w);
|
|
7246
7246
|
const E = {};
|
|
7247
|
-
|
|
7247
|
+
TA(w, (f) => {
|
|
7248
7248
|
Dn.includes(f.tagName) && !f.attributes.getNamedItem("fill") && f.setAttribute("fill", "#000000");
|
|
7249
7249
|
const F = f.attributes.getNamedItem("fill");
|
|
7250
7250
|
if (F && F.value !== "none") {
|
|
@@ -7271,7 +7271,7 @@ const Dn = [
|
|
|
7271
7271
|
if (!F)
|
|
7272
7272
|
throw new z(f);
|
|
7273
7273
|
const M = J();
|
|
7274
|
-
return new
|
|
7274
|
+
return new L(
|
|
7275
7275
|
{
|
|
7276
7276
|
colors: E,
|
|
7277
7277
|
id: M,
|
|
@@ -7300,7 +7300,7 @@ const Dn = [
|
|
|
7300
7300
|
if (!r)
|
|
7301
7301
|
throw new z(o);
|
|
7302
7302
|
const g = J();
|
|
7303
|
-
return new
|
|
7303
|
+
return new L(
|
|
7304
7304
|
{
|
|
7305
7305
|
colors: {},
|
|
7306
7306
|
id: g,
|
|
@@ -7343,7 +7343,7 @@ const Dn = [
|
|
|
7343
7343
|
if (!d)
|
|
7344
7344
|
throw new z(l);
|
|
7345
7345
|
const w = J();
|
|
7346
|
-
return new
|
|
7346
|
+
return new L(
|
|
7347
7347
|
{
|
|
7348
7348
|
id: w,
|
|
7349
7349
|
src: s,
|
|
@@ -7400,7 +7400,7 @@ const Dn = [
|
|
|
7400
7400
|
/>
|
|
7401
7401
|
</svg>
|
|
7402
7402
|
`, w = { "spiff-fill-shape": { browserValue: i.color || "#000000" } }, E = J();
|
|
7403
|
-
return new
|
|
7403
|
+
return new L(
|
|
7404
7404
|
{
|
|
7405
7405
|
colors: w,
|
|
7406
7406
|
id: E,
|
|
@@ -7451,17 +7451,17 @@ const Dn = [
|
|
|
7451
7451
|
excludeFromExport: e.data.excludeFromPrint,
|
|
7452
7452
|
preserveAspectRatio: "none"
|
|
7453
7453
|
};
|
|
7454
|
-
A.push(new
|
|
7454
|
+
A.push(new L(B, g));
|
|
7455
7455
|
});
|
|
7456
7456
|
} catch (r) {
|
|
7457
7457
|
console.error(r);
|
|
7458
7458
|
}
|
|
7459
7459
|
else {
|
|
7460
7460
|
const r = await _(n, !0), g = (B) => {
|
|
7461
|
-
const l = /<svg.*?<\/svg>/s, d = B.match(l) || [], w = (d == null ? void 0 : d.length) > 0 ? d[0] : "", u =
|
|
7461
|
+
const l = /<svg.*?<\/svg>/s, d = B.match(l) || [], w = (d == null ? void 0 : d.length) > 0 ? d[0] : "", u = Tt().parseFromString(w, "image/svg+xml").firstElementChild;
|
|
7462
7462
|
if (!u)
|
|
7463
7463
|
throw new ge("Failed to read SVG.");
|
|
7464
|
-
return
|
|
7464
|
+
return Lt(u), Ot().serializeToString(u);
|
|
7465
7465
|
};
|
|
7466
7466
|
o.forEach((B) => {
|
|
7467
7467
|
const l = c.find((w) => w.panelId === B.panelId);
|
|
@@ -7486,7 +7486,7 @@ const Dn = [
|
|
|
7486
7486
|
productOverlay: e.type === y.ProductOverlay ? !0 : void 0,
|
|
7487
7487
|
excludeFromExport: e.data.excludeFromPrint
|
|
7488
7488
|
};
|
|
7489
|
-
A.push(new
|
|
7489
|
+
A.push(new L(d, l));
|
|
7490
7490
|
});
|
|
7491
7491
|
}
|
|
7492
7492
|
return A;
|
|
@@ -7565,7 +7565,7 @@ const Dn = [
|
|
|
7565
7565
|
}
|
|
7566
7566
|
);
|
|
7567
7567
|
a.push(
|
|
7568
|
-
new
|
|
7568
|
+
new L(
|
|
7569
7569
|
{
|
|
7570
7570
|
...C,
|
|
7571
7571
|
fontSize: I,
|
|
@@ -7576,7 +7576,7 @@ const Dn = [
|
|
|
7576
7576
|
)
|
|
7577
7577
|
);
|
|
7578
7578
|
} else
|
|
7579
|
-
a.push(new
|
|
7579
|
+
a.push(new L(C, u));
|
|
7580
7580
|
}
|
|
7581
7581
|
return a;
|
|
7582
7582
|
}, Rn = (c, e) => c.conditions ? c.conditions.every((t) => {
|
|
@@ -7820,7 +7820,7 @@ const Vi = (c, e) => {
|
|
|
7820
7820
|
serializableWorkflow: { steps: [] },
|
|
7821
7821
|
layouts: {}
|
|
7822
7822
|
};
|
|
7823
|
-
a = new v(t.map((o) => new
|
|
7823
|
+
a = new v(t.map((o) => new LA(o))).apply(a);
|
|
7824
7824
|
const i = await Hn(c, e, t, A);
|
|
7825
7825
|
return new v(i).apply(a);
|
|
7826
7826
|
}, bn = D`
|
|
@@ -7943,7 +7943,7 @@ const Vi = (c, e) => {
|
|
|
7943
7943
|
}
|
|
7944
7944
|
}
|
|
7945
7945
|
}
|
|
7946
|
-
`,
|
|
7946
|
+
`, Tn = D`
|
|
7947
7947
|
query GetBundleStakeholders($id: String!) {
|
|
7948
7948
|
bundles(ids: [$id]) {
|
|
7949
7949
|
id
|
|
@@ -7963,7 +7963,7 @@ const Vi = (c, e) => {
|
|
|
7963
7963
|
}
|
|
7964
7964
|
}
|
|
7965
7965
|
}
|
|
7966
|
-
`,
|
|
7966
|
+
`, Ln = D`
|
|
7967
7967
|
query GetBundlesForCustomer($id: String!) {
|
|
7968
7968
|
customers(ids: [$id]) {
|
|
7969
7969
|
bundleStakeholders {
|
|
@@ -9269,7 +9269,7 @@ class xt {
|
|
|
9269
9269
|
}
|
|
9270
9270
|
async getAllStakeholders() {
|
|
9271
9271
|
const e = await x.getShadowGraphqlClient().query({
|
|
9272
|
-
query:
|
|
9272
|
+
query: Tn,
|
|
9273
9273
|
errorPolicy: "all",
|
|
9274
9274
|
fetchPolicy: "no-cache",
|
|
9275
9275
|
variables: {
|
|
@@ -10048,6 +10048,7 @@ const Ei = D`
|
|
|
10048
10048
|
}
|
|
10049
10049
|
allowMultipleSelections
|
|
10050
10050
|
displaySelectionsOnFinishStep
|
|
10051
|
+
displayType
|
|
10051
10052
|
hideSelectionsInCart
|
|
10052
10053
|
lookAtAnimation {
|
|
10053
10054
|
...LookAtAnimationFields
|
|
@@ -10675,7 +10676,7 @@ class Ni {
|
|
|
10675
10676
|
if (!this.customer)
|
|
10676
10677
|
throw new Error("Customer not authenticated.");
|
|
10677
10678
|
const e = await x.getShadowGraphqlClient().query({
|
|
10678
|
-
query:
|
|
10679
|
+
query: Ln,
|
|
10679
10680
|
variables: {
|
|
10680
10681
|
id: this.customer.id
|
|
10681
10682
|
},
|
|
@@ -10873,17 +10874,17 @@ class Ni {
|
|
|
10873
10874
|
singleVariantsRenderable: (O = S == null ? void 0 : S.workflowConfiguration) == null ? void 0 : O.singleVariantsRenderable,
|
|
10874
10875
|
stateMutationFunc: F ? async () => {
|
|
10875
10876
|
throw new b("State mutation is forbidden in read only mode!");
|
|
10876
|
-
} : async (
|
|
10877
|
+
} : async (T) => this.updateTransactionState({ ...T, context: { transactionOwnerId: N } }),
|
|
10877
10878
|
readOnly: F,
|
|
10878
10879
|
workflow: P,
|
|
10879
10880
|
isReloadedTransaction: S.type === "transaction"
|
|
10880
10881
|
};
|
|
10881
10882
|
if (S.type === "transaction" && p.workflowState) {
|
|
10882
|
-
const
|
|
10883
|
-
R.layouts = Object.values(
|
|
10883
|
+
const T = JSON.parse(p.workflowState);
|
|
10884
|
+
R.layouts = Object.values(T.layouts || {}).map((W) => W.layout), await Ae(T), await ne(T), R.reloadedState = T;
|
|
10884
10885
|
} else if (!F && S.workflowState) {
|
|
10885
|
-
const
|
|
10886
|
-
R.layouts = Object.values(
|
|
10886
|
+
const T = JSON.parse(S.workflowState);
|
|
10887
|
+
R.layouts = Object.values(T.layouts || {}).map((W) => W.layout), await Ae(T), await ne(T), R.reloadedState = T;
|
|
10887
10888
|
} else
|
|
10888
10889
|
R.layouts = Ve(
|
|
10889
10890
|
R.transaction,
|
|
@@ -11506,7 +11507,7 @@ export {
|
|
|
11506
11507
|
ks as registerFetchImplementation,
|
|
11507
11508
|
bs as registerWindowImplementation,
|
|
11508
11509
|
Js as rehydrateSerializedLayout,
|
|
11509
|
-
|
|
11510
|
+
Ts as setCanvasModule,
|
|
11510
11511
|
le as shapeStepService,
|
|
11511
11512
|
Pa as shortenUrl,
|
|
11512
11513
|
$ as spiffCoreConfiguration,
|