@spiffcommerce/core 21.10.1-1 → 21.11.0-alpha.0
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 +20 -19
- package/dist/index.umd.cjs +3 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _spiffcommerce_papyrus from '@spiffcommerce/papyrus';
|
|
2
2
|
import { OptionResource, VariantResource, Step, AnyStepData, FrameOffsets, PatternImageData, Region, Workflow, ILayout, LayoutsState, LayoutData, Asset, MaterialResource, AssetType, StepType, AspectType, CommandState, CommandContext, GlobalPropertyConfigurationAspect, GlobalPropertyConfiguration, Theme, SilentStepData, Placeable, StepStorage, CanvasCommand, LayoutState, SerializableStep, FrameStepData, CreateElementCommand, FrameElement, IllustrationStepData, IllustrationElement, ColorDefinition, MaterialStepData, ModelStepData, TextStepData, TextboxElement, TextFillImage, FontData, GroupCommand, PictureStepData, QuestionStepData, ShapeStepData, ModuleStepData, DigitalContentStepData, FrameData as FrameData$1, InformationStepData } from '@spiffcommerce/papyrus';
|
|
3
|
-
export { Animatable, AnyStepData, AspectType, Asset, AssetType, BringForwardCommand, BringToBackCommand, BringToFrontCommand, CanvasCommand, ColorDefinition, ColorProfileProps, CommandContext, CommandState, CreateElementCommand, CreateLayoutCommand, DeleteElementCommand, DigitalContentStepData, FontAlignmentCommand, FontColorCommand, FontSizeCommand, FontSourceCommand, FrameElement, FrameStepData, GroupCommand, ILayout, IllustrationElement, IllustrationStepData, ImageElement, InformationStepData, LayoutData, LayoutElement, LayoutElementFactory, LayoutElementType, LayoutsState, MaterialStepData, ModelStepData, ModuleStepData, MoveCommand, OptionResource, PictureStepData, QuestionStepData, ResizeCommand, RotateCommand, SendBackwardsCommand, ShapeStepData, Step, StepAspect, StepAspectType, StepStorage, StepType, TextChangeCommand, TextStepData, TextboxElement, Theme, UnitOfMeasurement, VariantResource, Workflow, WorkflowPanel, dataUrlFromExternalUrl, determineCorrectFontSizeAndLines, findElement, frameDataCache, generate, generateSVGWithUnknownColors, getAttributesFromArrayBuffer, getAxisAlignedBoundingBox, getFrameData, getSvgElement, loadFont, patternImageDataCache, registerFetchImplementation, registerWindowImplementation, rehydrateSerializedLayout, setCanvasModule } from '@spiffcommerce/papyrus';
|
|
3
|
+
export { Animatable, AnyStepData, AspectType, Asset, AssetType, BringForwardCommand, BringToBackCommand, BringToFrontCommand, CanvasCommand, ColorDefinition, ColorProfileProps, CommandContext, CommandState, CreateElementCommand, CreateLayoutCommand, DeleteElementCommand, DigitalContentStepData, FontAlignmentCommand, FontColorCommand, FontSizeCommand, FontSourceCommand, FrameElement, FrameStepData, GroupCommand, ILayout, IllustrationElement, IllustrationStepData, ImageElement, InformationStepData, LayoutData, LayoutElement, LayoutElementFactory, LayoutElementType, LayoutsState, MaterialStepData, ModelStepData, ModuleStepData, MoveCommand, OptionResource, PictureStepData, QuestionStepData, ResizeCommand, RotateCommand, SendBackwardsCommand, ShapeStepData, Step, StepAspect, StepAspectType, StepStorage, StepType, TextChangeCommand, TextStepData, TextboxElement, Theme, UnitOfMeasurement, UpdateImageSourceCommand, VariantResource, Workflow, WorkflowPanel, dataUrlFromExternalUrl, determineCorrectFontSizeAndLines, findElement, frameDataCache, generate, generateSVGWithUnknownColors, getAttributesFromArrayBuffer, getAxisAlignedBoundingBox, getFrameData, getSvgElement, loadFont, patternImageDataCache, registerFetchImplementation, registerWindowImplementation, rehydrateSerializedLayout, setCanvasModule } from '@spiffcommerce/papyrus';
|
|
4
4
|
import { ApolloClient, MutationOptions, FetchResult } from '@apollo/client/core';
|
|
5
5
|
import { RenderableContextService, RenderableContext, ThreeDPreviewService, ModelContainer } from '@spiffcommerce/preview';
|
|
6
6
|
import * as lodash from 'lodash';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createHttpLink as CA, InMemoryCache as QA, ApolloClient as mA, from as pA, gql as D } from "@apollo/client/core";
|
|
2
2
|
import { fetch as $e, getAttributesFromArrayBuffer as Pt, AssetType as ht, StepType as y, getFrameData as _e, frameDataCache as IA, GroupCommand as v, UpdateFramePattern as xt, UpdateFrameThresholdSettingsCommand as fA, calculateOffsets as et, LayoutElementType as k, generate as J, CreateElementCommand as T, generateSVGWithUnknownColors as Nt, svgObjectURL as Me, fetchAsString as Z, DeleteElementCommand as $, generateDefaultRectangleFrameSvg as Et, GetSVGDimensions as DA, patternImageDataCache as ut, fetchAsArrayBuffer as FA, findElement as Se, modifySVGWithElementProperties as yA, IllustrationColorCommand as je, IllustrationCacheCommand as MA, getFontMetrics as SA, getPatternImageData as Ve, FontAlignmentCommand as YA, FontColorCommand as PA, FontImageFillCommand as Je, applyTextTransformations as We, determineCorrectFontSizeAndLines as De, FontSourceCommand as Ct, loadFont as tt, TextChangeCommand as xA, FontSizeCommand as NA, createElementNS as HA, createElement as Ee, _loadFontExternalDataURL as At, UpdateWorkflowStateCommand as Qt, CommandContext as RA, createCanvas as Ye, getSvgElement as Ht, LayoutRenderingPurpose as Rt, renderPapyrusComponentAsString as Ut, loadImage as vt, getDomParser as Gt, toBase64 as mt, getVariant as UA, generateFrameSVG as vA, getDefaultVariant as ve, domParser as kt, sanitizeSvgTree as bt, traverse as GA, xmlSerializer as Jt, CreateLayoutCommand as kA, AspectType as ce, rehydrateSerializedLayout as ee } from "@spiffcommerce/papyrus";
|
|
3
|
-
import { AspectType as qi, AssetType as Zi, BringForwardCommand as $i, BringToBackCommand as _i, BringToFrontCommand as eo, CanvasCommand as to, CommandContext as Ao, CreateElementCommand as ao, CreateLayoutCommand as no, DeleteElementCommand as io, FontAlignmentCommand as oo, FontColorCommand as so, FontSizeCommand as ro, FontSourceCommand as co, GroupCommand as go, LayoutElementFactory as lo, LayoutElementType as Bo, MoveCommand as wo, ResizeCommand as ho, RotateCommand as Eo, SendBackwardsCommand as uo, StepAspectType as Co, StepType as Qo, TextChangeCommand as mo, UnitOfMeasurement as po,
|
|
3
|
+
import { AspectType as qi, AssetType as Zi, BringForwardCommand as $i, BringToBackCommand as _i, BringToFrontCommand as eo, CanvasCommand as to, CommandContext as Ao, CreateElementCommand as ao, CreateLayoutCommand as no, DeleteElementCommand as io, FontAlignmentCommand as oo, FontColorCommand as so, FontSizeCommand as ro, FontSourceCommand as co, GroupCommand as go, LayoutElementFactory as lo, LayoutElementType as Bo, MoveCommand as wo, ResizeCommand as ho, RotateCommand as Eo, SendBackwardsCommand as uo, StepAspectType as Co, StepType as Qo, TextChangeCommand as mo, UnitOfMeasurement as po, UpdateImageSourceCommand as Io, dataUrlFromExternalUrl as fo, determineCorrectFontSizeAndLines as Do, findElement as Fo, frameDataCache as yo, generate as Mo, generateSVGWithUnknownColors as So, getAttributesFromArrayBuffer as Yo, getAxisAlignedBoundingBox as Po, getFrameData as xo, getSvgElement as No, loadFont as Ho, patternImageDataCache as Ro, registerFetchImplementation as Uo, registerWindowImplementation as vo, rehydrateSerializedLayout as Go, setCanvasModule as ko } from "@spiffcommerce/papyrus";
|
|
4
4
|
import { setContext as bA } from "@apollo/client/link/context";
|
|
5
5
|
import { onError as JA } from "@apollo/client/link/error";
|
|
6
6
|
import { Pith as Ot } from "pith";
|
|
@@ -2232,7 +2232,7 @@ class Pa {
|
|
|
2232
2232
|
}
|
|
2233
2233
|
async selectVariantCommand(e, t, A, a, n) {
|
|
2234
2234
|
var C;
|
|
2235
|
-
if (
|
|
2235
|
+
if (!e.data || !e.data.regions)
|
|
2236
2236
|
throw new xe(e, "Missing regions.");
|
|
2237
2237
|
a(!0);
|
|
2238
2238
|
const i = A.map((u) => new $(u.id));
|
|
@@ -5204,7 +5204,7 @@ class en {
|
|
|
5204
5204
|
this.currentAdjustingStepId = e, this.onMakingAdjustmentsChange();
|
|
5205
5205
|
}
|
|
5206
5206
|
setMandatoryFulfilled(e, t) {
|
|
5207
|
-
this.mandatorySteps[e] !== t && (
|
|
5207
|
+
this.mandatorySteps[e] !== t && (this.mandatorySteps = { ...this.mandatorySteps, [e]: t }, this.onMandatoryChange());
|
|
5208
5208
|
}
|
|
5209
5209
|
toggleDesignConfirmed() {
|
|
5210
5210
|
this.confirmedDesign = !this.confirmedDesign, this.onConfirmChange();
|
|
@@ -11357,44 +11357,45 @@ export {
|
|
|
11357
11357
|
oi as TransformCollection,
|
|
11358
11358
|
b as UnhandledBehaviorError,
|
|
11359
11359
|
po as UnitOfMeasurement,
|
|
11360
|
+
Io as UpdateImageSourceCommand,
|
|
11360
11361
|
X as Variant,
|
|
11361
11362
|
Qn as WorkflowExperienceEventType,
|
|
11362
11363
|
me as WorkflowExperienceImpl,
|
|
11363
11364
|
G as assetService,
|
|
11364
11365
|
hn as createDesign,
|
|
11365
|
-
|
|
11366
|
+
fo as dataUrlFromExternalUrl,
|
|
11366
11367
|
Le as designService,
|
|
11367
|
-
|
|
11368
|
+
Do as determineCorrectFontSizeAndLines,
|
|
11368
11369
|
Sa as digitalContentStepService,
|
|
11369
|
-
|
|
11370
|
-
|
|
11370
|
+
Fo as findElement,
|
|
11371
|
+
yo as frameDataCache,
|
|
11371
11372
|
Fe as frameStepService,
|
|
11372
|
-
|
|
11373
|
+
Mo as generate,
|
|
11373
11374
|
Pn as generateCommands,
|
|
11374
|
-
|
|
11375
|
+
So as generateSVGWithUnknownColors,
|
|
11375
11376
|
zi as generateStateFromDesignInputSteps,
|
|
11376
|
-
|
|
11377
|
-
|
|
11377
|
+
Yo as getAttributesFromArrayBuffer,
|
|
11378
|
+
Po as getAxisAlignedBoundingBox,
|
|
11378
11379
|
Da as getBoundedOffsets,
|
|
11379
|
-
|
|
11380
|
-
|
|
11380
|
+
xo as getFrameData,
|
|
11381
|
+
No as getSvgElement,
|
|
11381
11382
|
fe as getWorkflow,
|
|
11382
11383
|
uA as getWorkflows,
|
|
11383
11384
|
x as graphQlManager,
|
|
11384
11385
|
ye as illustrationStepService,
|
|
11385
|
-
|
|
11386
|
+
Ho as loadFont,
|
|
11386
11387
|
eA as materialStepService,
|
|
11387
11388
|
tA as modelStepService,
|
|
11388
11389
|
Ra as moduleStepService,
|
|
11389
11390
|
j as optionService,
|
|
11390
|
-
|
|
11391
|
+
Ro as patternImageDataCache,
|
|
11391
11392
|
P as persistenceService,
|
|
11392
11393
|
AA as pictureStepService,
|
|
11393
11394
|
aA as questionStepService,
|
|
11394
|
-
|
|
11395
|
-
|
|
11396
|
-
|
|
11397
|
-
|
|
11395
|
+
Uo as registerFetchImplementation,
|
|
11396
|
+
vo as registerWindowImplementation,
|
|
11397
|
+
Go as rehydrateSerializedLayout,
|
|
11398
|
+
ko as setCanvasModule,
|
|
11398
11399
|
re as shapeStepService,
|
|
11399
11400
|
ya as shortenUrl,
|
|
11400
11401
|
q as spiffCoreConfiguration,
|