@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 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 Os, BringForwardCommand as zs, BringToBackCommand as Ks, BringToFrontCommand as js, CanvasCommand as Vs, CommandContext as Ws, CreateElementCommand as Xs, CreateLayoutCommand as qs, DeleteElementCommand as Zs, FontAlignmentCommand as $s, FontColorCommand as _s, FontSizeCommand as Ai, FontSourceCommand as ei, GroupCommand as ti, LayoutElementFactory as ai, LayoutElementType as ni, MoveCommand as si, ResizeCommand as ii, RotateCommand as oi, SendBackwardsCommand as ri, StepAspectType as ci, StepType as gi, TextChangeCommand as li, UnitOfMeasurement as Bi, dataUrlFromExternalUrl as di, determineCorrectFontSizeAndLines as wi, findElement as Ei, frameDataCache as hi, generate as Ci, generateSVGWithUnknownColors as Qi, getAttributesFromArrayBuffer as ui, getAxisAlignedBoundingBox as mi, getFrameData as pi, getSvgElement as Ii, loadFont as Di, patternImageDataCache as fi, registerFetchImplementation as Fi, registerWindowImplementation as Mi, rehydrateSerializedLayout as yi, setCanvasModule as Yi } from "@spiffcommerce/papyrus";
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(EA, h), Object.entries(h).forEach(([u, f]) => {
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 Js {
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
- Os as AssetType,
10773
- zs as BringForwardCommand,
10774
- Ks as BringToBackCommand,
10775
- js as BringToFrontCommand,
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
- Vs as CanvasCommand,
10778
+ js as CanvasCommand,
10779
10779
  ts as CollectionProduct,
10780
- Ws as CommandContext,
10780
+ Vs as CommandContext,
10781
10781
  ca as ConversionDataType,
10782
10782
  ra as ConversionLocation,
10783
- Xs as CreateElementCommand,
10784
- qs as CreateLayoutCommand,
10785
- Zs as DeleteElementCommand,
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
- $s as FontAlignmentCommand,
10790
- _s as FontColorCommand,
10791
- Ai as FontSizeCommand,
10792
- ei as FontSourceCommand,
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
- ti as GroupCommand,
10797
+ ei as GroupCommand,
10798
10798
  $a as IllustrationStepHandle,
10799
10799
  UA as InformationMessageType,
10800
10800
  sn as InformationStepHandle,
10801
- ai as LayoutElementFactory,
10802
- ni as LayoutElementType,
10801
+ ti as LayoutElementFactory,
10802
+ ai as LayoutElementType,
10803
10803
  L as LayoutNotFoundError,
10804
10804
  _a as MaterialStepHandle,
10805
10805
  xA as MisconfigurationError,
10806
- Js as MockWorkflowManager,
10806
+ bs as MockWorkflowManager,
10807
10807
  An as ModelStepHandle,
10808
- si as MoveCommand,
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
- ii as ResizeCommand,
10821
+ si as ResizeCommand,
10822
10822
  lA as ResourceNotFoundError,
10823
- oi as RotateCommand,
10824
- ri as SendBackwardsCommand,
10823
+ ii as RotateCommand,
10824
+ oi as SendBackwardsCommand,
10825
10825
  an as ShapeStepHandle,
10826
10826
  Fs as SpiffCommerceClient,
10827
10827
  RA as StakeholderType,
10828
- ci as StepAspectType,
10828
+ ri as StepAspectType,
10829
10829
  j as StepHandle,
10830
- gi as StepType,
10831
- li as TextChangeCommand,
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
- Bi as UnitOfMeasurement,
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
- di as dataUrlFromExternalUrl,
10841
+ Bi as dataUrlFromExternalUrl,
10842
10842
  KA as designService,
10843
- wi as determineCorrectFontSizeAndLines,
10843
+ di as determineCorrectFontSizeAndLines,
10844
10844
  Da as digitalContentStepService,
10845
- Ei as findElement,
10846
- hi as frameDataCache,
10845
+ wi as findElement,
10846
+ Ei as frameDataCache,
10847
10847
  ZA as frameStepService,
10848
10848
  Xe as gatherVaryingStepAspects,
10849
- Ci as generate,
10849
+ hi as generate,
10850
10850
  Mn as generateCommands,
10851
- Qi as generateSVGWithUnknownColors,
10851
+ Ci as generateSVGWithUnknownColors,
10852
10852
  Nn as generateStateFromDesignInputSteps,
10853
- ui as getAttributesFromArrayBuffer,
10854
- mi as getAxisAlignedBoundingBox,
10853
+ Qi as getAttributesFromArrayBuffer,
10854
+ ui as getAxisAlignedBoundingBox,
10855
10855
  ua as getBoundedOffsets,
10856
- pi as getFrameData,
10857
- Ii as getSvgElement,
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
- Di as loadFont,
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
- fi as patternImageDataCache,
10867
+ Di as patternImageDataCache,
10868
10868
  x as persistenceService,
10869
10869
  et as pictureStepService,
10870
10870
  tt as questionStepService,
10871
- Fi as registerFetchImplementation,
10872
- Mi as registerWindowImplementation,
10873
- yi as rehydrateSerializedLayout,
10874
- Yi as setCanvasModule,
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,