@spiffcommerce/core 16.0.0-beta.1 → 16.0.0-beta.10
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 +5 -4
- package/dist/index.js +5456 -50283
- package/dist/index.umd.cjs +97 -282
- package/package.json +13 -15
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _spiffcommerce_papyrus from '@spiffcommerce/papyrus';
|
|
2
2
|
import { OptionResource, VariantResource, Step, AnyStepData, FrameOffsets, PatternImageData, Region, SilentStepData, Placeable, StepStorage, CanvasCommand, CommandContext, ILayout, LayoutState, SerializableStep, Workflow, CommandState, GlobalPropertyConfiguration, LayoutsState, Asset, MaterialResource, AssetType, StepType, GlobalPropertyConfigurationAspect, AspectType, Theme, StepAspect, FrameStepData, CreateElementCommand, FrameElement, IllustrationStepData, IllustrationElement, ColorDefinition, LayoutData, MaterialStepData, ModelStepData, TextStepData, TextboxElement, TextFillImage, FontData, GroupCommand, PictureStepData, QuestionStepData, ShapeStepData, ModuleStepData, DigitalContentStepData, FrameData as FrameData$1, BulkStepData, InformationStepData } from '@spiffcommerce/papyrus';
|
|
3
3
|
export { Animatable, AnyStepData, Asset, AssetType, BringForwardCommand, BringToBackCommand, BringToFrontCommand, BulkStepData, 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, loadFontFromDataUrl, loadFontFromExternalUrl, patternImageDataCache, registerFetchImplementation, registerWindowImplementation, rehydrateSerializedLayout } from '@spiffcommerce/papyrus';
|
|
4
|
-
import { ApolloClient, FetchResult } from '@apollo/client/core';
|
|
4
|
+
import { ApolloClient, MutationOptions, FetchResult } from '@apollo/client/core';
|
|
5
5
|
import * as lodash from 'lodash';
|
|
6
6
|
|
|
7
7
|
declare class OptionService {
|
|
@@ -325,7 +325,7 @@ type StepSpecificStorageCallback = (selections: StepStorage) => void;
|
|
|
325
325
|
type StorageCallback = (storage: WorkflowStorage) => void;
|
|
326
326
|
type CurrentVariationRecordCallback = (variationRecord: null | VariationRecord) => void;
|
|
327
327
|
type VariationRecordsCallback = (records: VariationRecord[]) => void;
|
|
328
|
-
type StateMutationFunc = (options?:
|
|
328
|
+
type StateMutationFunc = (options?: Omit<MutationOptions, "mutation">) => Promise<FetchResult<any, Record<string, any>, Record<string, any>>>;
|
|
329
329
|
interface WorkflowManager {
|
|
330
330
|
addPoller: (poller: Poller) => void;
|
|
331
331
|
addConfirmCallback: (callback: ConfirmCallback) => void;
|
|
@@ -1097,12 +1097,12 @@ declare class Variant {
|
|
|
1097
1097
|
*/
|
|
1098
1098
|
getAssetResource(): Asset | undefined;
|
|
1099
1099
|
/**
|
|
1100
|
-
* @returns The URL for a thumbnail resource configured on this variant.
|
|
1100
|
+
* @returns The URL for a thumbnail resource configured on this variant.
|
|
1101
1101
|
*/
|
|
1102
1102
|
getThumbnail(): string | undefined;
|
|
1103
1103
|
/**
|
|
1104
1104
|
* @returns The URL for the display image configured on this variant. Can be used for things like size charts.
|
|
1105
|
-
* @deprecated To be removed in a future version
|
|
1105
|
+
* @deprecated To be removed in a future version, Please use getThumbnail() instead
|
|
1106
1106
|
*/
|
|
1107
1107
|
getDisplayImage(): string | undefined;
|
|
1108
1108
|
/**
|
|
@@ -1536,6 +1536,7 @@ declare abstract class GlobalPropertyHandle {
|
|
|
1536
1536
|
}
|
|
1537
1537
|
|
|
1538
1538
|
interface GlobalPropertyStateManager {
|
|
1539
|
+
getInitializationPromise(): Promise<void>;
|
|
1539
1540
|
getGlobalPropertyState(): GlobalPropertyState | undefined;
|
|
1540
1541
|
getAspect(name: string): string | undefined;
|
|
1541
1542
|
setAspect(name: string, value: string): Promise<void>;
|