@spiffcommerce/core 22.2.1 → 22.3.0-beta.16fa91c4-be20-562e-8dd1-4fa7a696a037
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 +33 -1
- package/dist/index.js +1453 -1392
- package/dist/index.umd.cjs +40 -40
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2115,6 +2115,10 @@ interface WorkflowManager {
|
|
|
2115
2115
|
* Returns the client that was responsible for spawning this manager.
|
|
2116
2116
|
*/
|
|
2117
2117
|
getClient(): SpiffCommerceClient;
|
|
2118
|
+
/**
|
|
2119
|
+
* Returns the worjkflow experience that was responsible for creating this manager.
|
|
2120
|
+
*/
|
|
2121
|
+
getWorkflowExperience(): WorkflowExperience;
|
|
2118
2122
|
/**
|
|
2119
2123
|
* Re-fetches the transactionShareActions for this WorkflowManager's Transaction object.
|
|
2120
2124
|
* The updated transactionShareActions overwrite the existing values on the Transaction object returned by `getTransaction()`.
|
|
@@ -3051,7 +3055,7 @@ declare const moduleStepService: ModuleStepService;
|
|
|
3051
3055
|
declare class DigitalContentStepService implements StepService<DigitalContentStepData> {
|
|
3052
3056
|
init(stepData: Step<DigitalContentStepData>, workflowManager: WorkflowManager, reducerState?: LayoutsState): Promise<CommandWithFollowup | null>;
|
|
3053
3057
|
private reload;
|
|
3054
|
-
regenerateQRCode(elements: RegionElement[],
|
|
3058
|
+
regenerateQRCode(elements: RegionElement[], assetKey: string, workflowManager: WorkflowManager, stepData: Step<DigitalContentStepData>): Promise<string>;
|
|
3055
3059
|
private regionElements;
|
|
3056
3060
|
private command;
|
|
3057
3061
|
}
|
|
@@ -3060,6 +3064,7 @@ declare const digitalContentStepService: DigitalContentStepService;
|
|
|
3060
3064
|
declare class MockWorkflowManager implements WorkflowManager {
|
|
3061
3065
|
private client;
|
|
3062
3066
|
getClient(): SpiffCommerceClient;
|
|
3067
|
+
getWorkflowExperience(): WorkflowExperience;
|
|
3063
3068
|
setClient(client: SpiffCommerceClient): void;
|
|
3064
3069
|
getInitializationPromise(): Promise<void>;
|
|
3065
3070
|
getProduct: () => Product;
|
|
@@ -3484,14 +3489,41 @@ declare function findPmsColors(input: string, limit?: number): PmsSearchResult[]
|
|
|
3484
3489
|
*/
|
|
3485
3490
|
declare function browserColorToHex(color: string): string;
|
|
3486
3491
|
|
|
3492
|
+
/**
|
|
3493
|
+
* The digital content step allows for associating uploaded content with a QR code. This code
|
|
3494
|
+
* can be displayed on the users design such as in a gift card and people can access
|
|
3495
|
+
* the hosted content by scanning the QR.
|
|
3496
|
+
*/
|
|
3487
3497
|
declare class DigitalContentStepHandle extends StepHandle<DigitalContentStepData> {
|
|
3488
3498
|
constructor(manager: WorkflowManager, step: Step<DigitalContentStepData>);
|
|
3489
3499
|
selectVariant(): Promise<void>;
|
|
3500
|
+
/**
|
|
3501
|
+
* Returns a preview URL used to show the generated QR code in your UI.
|
|
3502
|
+
*/
|
|
3503
|
+
getPreviewURL(): string;
|
|
3504
|
+
/**
|
|
3505
|
+
* Turns an asset into a QR code that can be used to access the content.
|
|
3506
|
+
* @param asset The asset to use for the QR code.
|
|
3507
|
+
* @returns The final URL string for the QR code.
|
|
3508
|
+
*/
|
|
3509
|
+
selectVideo(asset: Asset): Promise<string>;
|
|
3490
3510
|
}
|
|
3491
3511
|
|
|
3492
3512
|
declare class ModuleStepHandle extends StepHandle<ModuleStepData> {
|
|
3493
3513
|
constructor(manager: WorkflowManager, step: Step<ModuleStepData>);
|
|
3494
3514
|
selectVariant(): Promise<void>;
|
|
3515
|
+
/**
|
|
3516
|
+
* Return the remaining amount of characters that
|
|
3517
|
+
* the user is allowed to add, or undefined if there is no limit.
|
|
3518
|
+
*/
|
|
3519
|
+
getCharactersRemaining(): number | undefined;
|
|
3520
|
+
/**
|
|
3521
|
+
* Return the maximum characters allowed for
|
|
3522
|
+
* this step, or undefined if there is no limit.
|
|
3523
|
+
*/
|
|
3524
|
+
getCharacterLimit(): number | undefined;
|
|
3525
|
+
getText(): string;
|
|
3526
|
+
setText(value: string): void;
|
|
3495
3527
|
}
|
|
3496
3528
|
|
|
3497
3529
|
export { AddonHandle, ArrayInput, AssetNotFoundError, Bundle$1 as Bundle, BundleDesignCreationMessage, BundleEvent, BundleEventData, BundleEventType, CollectionProduct, ColorOption, ColorOptionGlobalPropertyHandle, ConditionalGlobalPropertiesChangedEventData, ConversionConfiguration, ConversionData, ConversionDataType, ConversionLocation, Customer, CustomerDetailsInput, DesignCreationMessage, DesignCreationProgressUpdate, DesignInputStep, DigitalContentStepHandle, EditedSteps, FileUploadGlobalPropertyHandle, FlowExecutionNodeResult, FlowExecutionResult, FlowService, FrameService, FrameStep, FrameStepHandle, FrameThresholdSettings, GetNewWorkflowOptions, GetWorkflowOptions, GlobalPropertyHandle, IllustrationStepHandle, InformationMessageType, InformationResult, InformationStepHandle, IntegrationProduct, IntegrationType, LayoutNotFoundError, MandatorySteps, MaterialStepHandle, MisconfigurationError, MockWorkflowManager, ModelStepHandle, ModuleStepHandle, NodeType, ObjectInput, ObjectInputType, OptionGlobalPropertyHandle, OptionNotFoundError, ParseError, PictureStepHandle, PmsSearchResult, Product, ProductCameraRig, ProductCollection, ProductWorkflow$1 as ProductWorkflow, promiseCache as PromiseCache, PromiseQueue, QuestionStepHandle, QueueablePromise, RegionElement, RenderableScene, ResourceNotFoundError, SavedDesign, SelectionStorage, ShapeStepHandle, SilentIllustrationStepData, SpiffCommerceClient, Stakeholder, StakeholderType, StateMutationFunc, StepElements, StepHandle, TextGlobalPropertyHandle, TextInput, TextStepHandle, TextStepStorage, ToastCallback, Transaction, TransactionShareAction, TransactionShareActionType, Transform, TransformCollection$1 as TransformCollection, UnhandledBehaviorError, Variant, Vector3, WorkflowExperience, WorkflowExperienceEventType, WorkflowExperienceHoverEventData, WorkflowExperienceImpl, WorkflowManager, WorkflowMetadata, WorkflowScene, WorkflowSelections, WorkflowStorage, assetService, browserColorToHex, createDesign, designService, digitalContentStepService, findPmsColors, frameStepService, generateCommands, generateStateFromDesignInputSteps, getBoundedOffsets, getWorkflow, getWorkflows, graphQlManager, illustrationStepService, matchHexToPms, materialStepService, modelStepService, moduleStepService, optionService, persistenceService, pictureStepService, pmsToRgb, questionStepService, rgbToPms, setBearerAuthenticationToken, shapeStepService, shortenUrl, spiffCoreConfiguration, stepAspectValuesToDesignInputSteps, textStepService, toast };
|