@spiffcommerce/core 16.8.1-rc.1 → 16.8.1-rc.2
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 +46 -46
- package/dist/index.umd.cjs +60 -60
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createHttpLink as Qt, InMemoryCache as ut, ApolloClient as mt, from as pt, gql as y } from "@apollo/client/core";
|
|
2
2
|
import { fetch as Ae, getAttributesFromArrayBuffer as Me, AssetType as Be, StepType as I, StepAspectType as O, getFrameData as ee, frameDataCache as It, UpdateFramePattern as ye, calculateOffsets as te, LayoutElementType as H, generate as k, CreateElementCommand as J, generateSVGWithUnknownColors as Ye, svgObjectURL as MA, fetchAsString as Z, DeleteElementCommand as $, GroupCommand as G, generateDefaultRectangleFrameSvg as de, GetSVGDimensions as Dt, patternImageDataCache as we, fetchAsArrayBuffer as ft, findElement as yA, modifySVGWithElementProperties as Ft, IllustrationColorCommand as VA, IllustrationCacheCommand as Mt, getFontMetrics as yt, getPatternImageData as WA, FontColorCommand as Yt, FontImageFillCommand as TA, applyTextTransformations as XA, determineCorrectFontSizeAndLines as DA, FontSourceCommand as Ee, loadFont as ae, TextChangeCommand as St, FontSizeCommand as xt, createElementNS as Nt, createElement as wA, _loadFontExternalDataURL as ne, UpdateWorkflowStateCommand as he, CommandContext as Rt, createCanvas as YA, getSvgElement as Se, LayoutRenderingPurpose as xe, renderPapyrusComponentAsString as Ne, loadImage as Re, getDomParser as Pe, toBase64 as Ce, getVariant as Pt, generateFrameSVG as Ht, getDefaultVariant as GA, domParser as He, sanitizeSvgTree as Ue, traverse as Ut, xmlSerializer as Ge, CreateLayoutCommand as Gt, sortElementsByLayersWithIndex as vt, AspectType as fA, rehydrateSerializedLayout as AA } from "@spiffcommerce/papyrus";
|
|
3
|
-
import { AssetType as
|
|
3
|
+
import { AssetType as Ls, BringForwardCommand as Os, BringToBackCommand as zs, BringToFrontCommand as Ks, CanvasCommand as js, CommandContext as Vs, CreateElementCommand as Ws, CreateLayoutCommand as Xs, DeleteElementCommand as qs, FontAlignmentCommand as Zs, FontColorCommand as $s, FontSizeCommand as _s, FontSourceCommand as Ai, GroupCommand as ei, LayoutElementFactory as ti, LayoutElementType as ai, MoveCommand as ni, ResizeCommand as si, RotateCommand as ii, SendBackwardsCommand as oi, StepAspectType as ri, StepType as ci, TextChangeCommand as gi, UnitOfMeasurement as li, dataUrlFromExternalUrl as Bi, determineCorrectFontSizeAndLines as di, findElement as wi, frameDataCache as Ei, generate as hi, generateSVGWithUnknownColors as Ci, getAttributesFromArrayBuffer as Qi, getAxisAlignedBoundingBox as ui, getFrameData as mi, getSvgElement as pi, loadFont as Ii, patternImageDataCache as Di, registerFetchImplementation as fi, registerWindowImplementation as Fi, rehydrateSerializedLayout as Mi, setCanvasModule as yi } from "@spiffcommerce/papyrus";
|
|
4
4
|
import { setContext as kt } from "@apollo/client/link/context";
|
|
5
5
|
import { onError as bt } from "@apollo/client/link/error";
|
|
6
|
-
import EA from "@sentry/browser";
|
|
6
|
+
import * as EA from "@sentry/browser";
|
|
7
7
|
import { Pith as ve } from "pith";
|
|
8
8
|
import ke from "lodash.debounce";
|
|
9
9
|
import be from "lodash.isequal";
|
|
@@ -192,9 +192,9 @@ class jt {
|
|
|
192
192
|
fetch: Ae
|
|
193
193
|
}), e = kt(async (s, i) => {
|
|
194
194
|
const { headers: o } = i, r = o || {}, c = await Kt(), B = i.bearer ?? c.bearer, l = i.partnerId ?? c.partnerId, d = i.activeIntegration ?? c.activeIntegration, E = i.transactionOwnerId ?? c.transactionOwnerId, C = i.customerToken ?? c.customerToken, w = i.applicationKey ?? c.applicationKey, Q = i.bundleOwnerId ?? c.bundleOwnerId;
|
|
195
|
-
if (EA && EA.getCurrentHub()) {
|
|
195
|
+
if (console.log(EA), EA && EA.getCurrentHub()) {
|
|
196
196
|
const h = EA.getCurrentHub().traceHeaders();
|
|
197
|
-
console.log(
|
|
197
|
+
console.log(h), Object.entries(h).forEach(([u, f]) => {
|
|
198
198
|
r[u] = f;
|
|
199
199
|
});
|
|
200
200
|
}
|
|
@@ -10574,7 +10574,7 @@ class Fs {
|
|
|
10574
10574
|
e.set(A.partner.id, A.id), x.setMap("partnerCustomerIds", e);
|
|
10575
10575
|
}
|
|
10576
10576
|
}
|
|
10577
|
-
class
|
|
10577
|
+
class bs {
|
|
10578
10578
|
getInitializationPromise() {
|
|
10579
10579
|
return Promise.resolve();
|
|
10580
10580
|
}
|
|
@@ -10769,43 +10769,43 @@ class ys extends j {
|
|
|
10769
10769
|
}
|
|
10770
10770
|
export {
|
|
10771
10771
|
_ as AssetNotFoundError,
|
|
10772
|
-
|
|
10773
|
-
|
|
10774
|
-
|
|
10775
|
-
|
|
10772
|
+
Ls as AssetType,
|
|
10773
|
+
Os as BringForwardCommand,
|
|
10774
|
+
zs as BringToBackCommand,
|
|
10775
|
+
Ks as BringToFrontCommand,
|
|
10776
10776
|
oa as BulkPriceCalculationStrategy,
|
|
10777
10777
|
Za as BulkStepHandle,
|
|
10778
|
-
|
|
10778
|
+
js as CanvasCommand,
|
|
10779
10779
|
ts as CollectionProduct,
|
|
10780
|
-
|
|
10780
|
+
Vs as CommandContext,
|
|
10781
10781
|
ca as ConversionDataType,
|
|
10782
10782
|
ra as ConversionLocation,
|
|
10783
|
-
|
|
10784
|
-
|
|
10785
|
-
|
|
10783
|
+
Ws as CreateElementCommand,
|
|
10784
|
+
Xs as CreateLayoutCommand,
|
|
10785
|
+
qs as DeleteElementCommand,
|
|
10786
10786
|
pA as FlowExecutionNodeResult,
|
|
10787
10787
|
os as FlowExecutionResult,
|
|
10788
10788
|
is as FlowService,
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
|
|
10792
|
-
|
|
10789
|
+
Zs as FontAlignmentCommand,
|
|
10790
|
+
$s as FontColorCommand,
|
|
10791
|
+
_s as FontSizeCommand,
|
|
10792
|
+
Ai as FontSourceCommand,
|
|
10793
10793
|
ma as FrameService,
|
|
10794
10794
|
Ms as FrameStep,
|
|
10795
10795
|
ys as FrameStepHandle,
|
|
10796
10796
|
le as GlobalPropertyHandle,
|
|
10797
|
-
|
|
10797
|
+
ei as GroupCommand,
|
|
10798
10798
|
$a as IllustrationStepHandle,
|
|
10799
10799
|
UA as InformationMessageType,
|
|
10800
10800
|
sn as InformationStepHandle,
|
|
10801
|
-
|
|
10802
|
-
|
|
10801
|
+
ti as LayoutElementFactory,
|
|
10802
|
+
ai as LayoutElementType,
|
|
10803
10803
|
L as LayoutNotFoundError,
|
|
10804
10804
|
_a as MaterialStepHandle,
|
|
10805
10805
|
xA as MisconfigurationError,
|
|
10806
|
-
|
|
10806
|
+
bs as MockWorkflowManager,
|
|
10807
10807
|
An as ModelStepHandle,
|
|
10808
|
-
|
|
10808
|
+
ni as MoveCommand,
|
|
10809
10809
|
ht as ObjectInput,
|
|
10810
10810
|
cs as ObjectInputType,
|
|
10811
10811
|
SA as OptionNotFoundError,
|
|
@@ -10818,60 +10818,60 @@ export {
|
|
|
10818
10818
|
Ze as PromiseQueue,
|
|
10819
10819
|
tn as QuestionStepHandle,
|
|
10820
10820
|
qe as QueueablePromise,
|
|
10821
|
-
|
|
10821
|
+
si as ResizeCommand,
|
|
10822
10822
|
lA as ResourceNotFoundError,
|
|
10823
|
-
|
|
10824
|
-
|
|
10823
|
+
ii as RotateCommand,
|
|
10824
|
+
oi as SendBackwardsCommand,
|
|
10825
10825
|
an as ShapeStepHandle,
|
|
10826
10826
|
Fs as SpiffCommerceClient,
|
|
10827
10827
|
RA as StakeholderType,
|
|
10828
|
-
|
|
10828
|
+
ri as StepAspectType,
|
|
10829
10829
|
j as StepHandle,
|
|
10830
|
-
|
|
10831
|
-
|
|
10830
|
+
ci as StepType,
|
|
10831
|
+
gi as TextChangeCommand,
|
|
10832
10832
|
nn as TextStepHandle,
|
|
10833
10833
|
ns as Transform,
|
|
10834
10834
|
as as TransformCollection,
|
|
10835
10835
|
v as UnhandledBehaviorError,
|
|
10836
|
-
|
|
10836
|
+
li as UnitOfMeasurement,
|
|
10837
10837
|
X as Variant,
|
|
10838
10838
|
QA as WorkflowExperienceImpl,
|
|
10839
10839
|
T as assetService,
|
|
10840
10840
|
dn as createDesign,
|
|
10841
|
-
|
|
10841
|
+
Bi as dataUrlFromExternalUrl,
|
|
10842
10842
|
KA as designService,
|
|
10843
|
-
|
|
10843
|
+
di as determineCorrectFontSizeAndLines,
|
|
10844
10844
|
Da as digitalContentStepService,
|
|
10845
|
-
|
|
10846
|
-
|
|
10845
|
+
wi as findElement,
|
|
10846
|
+
Ei as frameDataCache,
|
|
10847
10847
|
ZA as frameStepService,
|
|
10848
10848
|
Xe as gatherVaryingStepAspects,
|
|
10849
|
-
|
|
10849
|
+
hi as generate,
|
|
10850
10850
|
Mn as generateCommands,
|
|
10851
|
-
|
|
10851
|
+
Ci as generateSVGWithUnknownColors,
|
|
10852
10852
|
Nn as generateStateFromDesignInputSteps,
|
|
10853
|
-
|
|
10854
|
-
|
|
10853
|
+
Qi as getAttributesFromArrayBuffer,
|
|
10854
|
+
ui as getAxisAlignedBoundingBox,
|
|
10855
10855
|
ua as getBoundedOffsets,
|
|
10856
|
-
|
|
10857
|
-
|
|
10856
|
+
mi as getFrameData,
|
|
10857
|
+
pi as getSvgElement,
|
|
10858
10858
|
IA as getWorkflow,
|
|
10859
10859
|
Ct as getWorkflows,
|
|
10860
10860
|
N as graphQlManager,
|
|
10861
10861
|
FA as illustrationStepService,
|
|
10862
|
-
|
|
10862
|
+
Ii as loadFont,
|
|
10863
10863
|
_e as materialStepService,
|
|
10864
10864
|
At as modelStepService,
|
|
10865
10865
|
Sa as moduleStepService,
|
|
10866
10866
|
z as optionService,
|
|
10867
|
-
|
|
10867
|
+
Di as patternImageDataCache,
|
|
10868
10868
|
x as persistenceService,
|
|
10869
10869
|
et as pictureStepService,
|
|
10870
10870
|
tt as questionStepService,
|
|
10871
|
-
|
|
10872
|
-
|
|
10873
|
-
|
|
10874
|
-
|
|
10871
|
+
fi as registerFetchImplementation,
|
|
10872
|
+
Fi as registerWindowImplementation,
|
|
10873
|
+
Mi as rehydrateSerializedLayout,
|
|
10874
|
+
yi as setCanvasModule,
|
|
10875
10875
|
cA as shapeStepService,
|
|
10876
10876
|
pa as shortenUrl,
|
|
10877
10877
|
NA as spiffCoreConfiguration,
|