@spiffcommerce/core 21.9.0-alpha.4 → 21.9.0-alpha.6
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 +9 -3
- package/dist/index.js +242 -190
- package/dist/index.umd.cjs +22 -22
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1808,6 +1808,7 @@ declare class FileUploadGlobalPropertyHandle extends GlobalPropertyHandle {
|
|
|
1808
1808
|
setUseOriginalImage(value: boolean): Promise<void>;
|
|
1809
1809
|
applyGlobalState(targetExperiences?: WorkflowExperience[]): Promise<void>;
|
|
1810
1810
|
private applyImageSelection;
|
|
1811
|
+
private updateSharedStepStorage;
|
|
1811
1812
|
}
|
|
1812
1813
|
declare class TextGlobalPropertyHandle extends GlobalPropertyHandle {
|
|
1813
1814
|
constructor(bundle: Bundle, property: GlobalPropertyConfigurationAspect);
|
|
@@ -2736,7 +2737,7 @@ interface FrameCreateOpts {
|
|
|
2736
2737
|
declare class FrameStepService implements StepService<FrameStepData> {
|
|
2737
2738
|
init(stepData: Step<FrameStepData>, workflowManager: WorkflowManager, reducerState?: LayoutsState): Promise<CommandWithFollowup | null>;
|
|
2738
2739
|
private reload;
|
|
2739
|
-
selectImage(stepData: Step<FrameStepData>, asset: Asset, workflowManager: WorkflowManager): void
|
|
2740
|
+
selectImage(stepData: Step<FrameStepData>, asset: Asset, workflowManager: WorkflowManager): Promise<void>;
|
|
2740
2741
|
selectVariant(stepData: Step<FrameStepData>, variant: VariantResource | undefined, elements: RegionElement[], workflowManager: WorkflowManager, setFrameIsUpdating?: (status: boolean) => void): Promise<void>;
|
|
2741
2742
|
getCreateElementCommand(id: string, region: Region, layout: ILayout, options: FrameCreateOpts): CreateElementCommand<FrameElement>;
|
|
2742
2743
|
loadPatternFromString(src: string, frameService: FrameService): Promise<void>;
|
|
@@ -3179,7 +3180,12 @@ declare class FrameStepHandle extends StepHandle<FrameStepData> {
|
|
|
3179
3180
|
private frameService;
|
|
3180
3181
|
selectVariant(variant: Variant): Promise<void>;
|
|
3181
3182
|
onFrameDataChanged(callback: (frameData: FrameData$1[]) => void): void;
|
|
3182
|
-
|
|
3183
|
+
/**
|
|
3184
|
+
* Updates the image selection inside the frame.
|
|
3185
|
+
* @param asset The asset to use.
|
|
3186
|
+
* @param storeAsOriginal Optional: Store this asset as the original, unmodified version of the image. Default: `true`.
|
|
3187
|
+
*/
|
|
3188
|
+
selectImage(asset: Asset, storeAsOriginal?: boolean): Promise<void>;
|
|
3183
3189
|
/**
|
|
3184
3190
|
* Removes the background from an image, stores it in the state, and returns the new asset.
|
|
3185
3191
|
* @param applyNewAsset Optionally applies the new asset as the current image selection. Default: `true`.
|
|
@@ -3194,7 +3200,7 @@ declare class FrameStepHandle extends StepHandle<FrameStepData> {
|
|
|
3194
3200
|
getOriginalImageSelection(): Promise<Asset | undefined>;
|
|
3195
3201
|
getBackgroundRemovedImageSelection(): Promise<Asset | undefined>;
|
|
3196
3202
|
getUseOriginalImageSelection(): boolean;
|
|
3197
|
-
setUseOriginalImageSelection(value: boolean): void
|
|
3203
|
+
setUseOriginalImageSelection(value: boolean): Promise<void>;
|
|
3198
3204
|
}
|
|
3199
3205
|
|
|
3200
3206
|
declare class MaterialStepHandle extends StepHandle<MaterialStepData> {
|