@spiffcommerce/core 18.5.0-alpha.1 → 19.0.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 +9 -8
- package/dist/index.js +252 -267
- package/dist/index.umd.cjs +15 -33
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1939,11 +1939,18 @@ interface Bundle {
|
|
|
1939
1939
|
*/
|
|
1940
1940
|
getInitializationPromise(): Promise<void>;
|
|
1941
1941
|
/**
|
|
1942
|
-
* Sets the position, rotation, and scale of a workflow experience within this bundle.
|
|
1942
|
+
* Sets the position, rotation, and scale of a named transform for a workflow experience within this bundle.
|
|
1943
1943
|
* @param workflowExperience The workflow experience to update.
|
|
1944
|
+
* @param transformName The name of the transform.
|
|
1944
1945
|
* @param transform An object containing `position`, `rotation`, and `scale` properties. Each property is an object with `x`, `y`, and `z` properties.
|
|
1945
1946
|
*/
|
|
1946
|
-
|
|
1947
|
+
updateWorkflowExperienceTransform(workflowExperience: WorkflowExperience, transformName: string, transform: BundleStateTransform): Promise<void>;
|
|
1948
|
+
/**
|
|
1949
|
+
* Sets a transform of a workflow experience within this bundle to be the active one.
|
|
1950
|
+
* @param workflowExperience The workflow experience to update.
|
|
1951
|
+
* @param transform The name of the transform to make the active transform.
|
|
1952
|
+
*/
|
|
1953
|
+
activateWorkflowExperienceTransform(workflowExperience: WorkflowExperience, transformName: string): Promise<void>;
|
|
1947
1954
|
}
|
|
1948
1955
|
type BundleEventType = "conditional-global-properties-changed" | "workflow-experience-hover-enter" | "workflow-experience-hover-exit";
|
|
1949
1956
|
type BundleEventData = ConditionalGlobalPropertiesChangedEventData | WorkflowExperienceHoverEventData;
|
|
@@ -2211,12 +2218,6 @@ declare class SpiffCommerceClient {
|
|
|
2211
2218
|
getAssetManager(): AssetManager;
|
|
2212
2219
|
getCurrencyCode(): string;
|
|
2213
2220
|
getFlowService(): FlowService;
|
|
2214
|
-
getIntegration(): Promise<{
|
|
2215
|
-
id: string;
|
|
2216
|
-
theme: Theme;
|
|
2217
|
-
partner: Partner;
|
|
2218
|
-
logo: string;
|
|
2219
|
-
}>;
|
|
2220
2221
|
/**
|
|
2221
2222
|
* Attempts to load persisted authentication information from local storage, and authenticate with the Spiff Commerce API.
|
|
2222
2223
|
* @param bundleId The ID of the bundle you intend to load.
|