@spiffcommerce/core 34.1.0-beta.7aa1a99d-0a8c-5121-9077-e86bd0250c3d → 34.1.0-beta.aa06721b-355b-51f7-8a0c-602066ef1a36
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 +3 -12
- package/dist/index.js +227 -279
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2883 -3017
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2025,13 +2025,12 @@ interface Bundle$1 {
|
|
|
2025
2025
|
* Finalizes all experiences within the bundle. This will return a promise that resolves when all experiences have been finalized.
|
|
2026
2026
|
* The promise resolves with a list of messages that indicate the status of each experience including
|
|
2027
2027
|
* helpful details like what product to add to cart on supported e-commerce platforms.
|
|
2028
|
-
* @param onProgressUpdate
|
|
2028
|
+
* @param onProgressUpdate A callback that will be called when the progress of the finalization changes.
|
|
2029
2029
|
* @param createPreviewImage A callback that will be called when a preview image is required. This is used to generate a preview image for the design.
|
|
2030
2030
|
* If this callback is not provided, no preview image will be generated.
|
|
2031
|
-
* @param onProgress A callback that will be called when using the background process method (currently in beta).
|
|
2032
2031
|
* @returns {BundleDesignCreationMessage} An object containing an array of design messages, along with the Bundle's Id and the event type.
|
|
2033
2032
|
*/
|
|
2034
|
-
finish(onProgressUpdate?: DesignCreationProgressUpdate, createPreviewImage?: (workflowExperience: WorkflowExperience, shouldRender3D?: boolean) => Promise<string | undefined
|
|
2033
|
+
finish(onProgressUpdate?: DesignCreationProgressUpdate, createPreviewImage?: (workflowExperience: WorkflowExperience, shouldRender3D?: boolean) => Promise<string | undefined>): Promise<BundleDesignCreationMessage>;
|
|
2035
2034
|
/**
|
|
2036
2035
|
* A convenience function allowing you to place an order with all the items in the bundle.
|
|
2037
2036
|
*/
|
|
@@ -2968,6 +2967,7 @@ interface Step<T extends AnyStepData = AnyStepData> {
|
|
|
2968
2967
|
relevantPanelName?: string;
|
|
2969
2968
|
silent?: boolean;
|
|
2970
2969
|
option?: OptionResource;
|
|
2970
|
+
overrideDefaultVariantId?: string;
|
|
2971
2971
|
optionId?: string;
|
|
2972
2972
|
stepName: string;
|
|
2973
2973
|
stepTitle: string;
|
|
@@ -3894,7 +3894,6 @@ interface Transaction {
|
|
|
3894
3894
|
marketplaceThemeInstallConfiguration?: ThemeInstallConfigurationGraphQl;
|
|
3895
3895
|
completed?: boolean;
|
|
3896
3896
|
addressValidationStatus?: AddressValidationStatus;
|
|
3897
|
-
design?: Design;
|
|
3898
3897
|
}
|
|
3899
3898
|
declare enum AddressValidationStatus {
|
|
3900
3899
|
Pending = "Pending",
|
|
@@ -4259,14 +4258,6 @@ declare enum ProductCameraRig {
|
|
|
4259
4258
|
Orbit = 0,
|
|
4260
4259
|
Pan = 1
|
|
4261
4260
|
}
|
|
4262
|
-
interface Design {
|
|
4263
|
-
id?: string;
|
|
4264
|
-
sku?: string;
|
|
4265
|
-
transaction?: Transaction;
|
|
4266
|
-
processExecution?: {
|
|
4267
|
-
id?: string;
|
|
4268
|
-
};
|
|
4269
|
-
}
|
|
4270
4261
|
/**
|
|
4271
4262
|
* Someone who has used a workflow experience and entered their contact details.
|
|
4272
4263
|
*/
|