@spiffcommerce/core 28.0.1-beta.f5df4b3f-ec7b-542e-84ca-48ed7f2a1458 → 28.0.2-beta.b15c5a10-0813-5e03-bc2d-aaa4050d46ab

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/CHANGELOG.md CHANGED
@@ -14,15 +14,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
14
  - `Fixed` for any bug fixes.
15
15
  - `Security` in case of vulnerabilities.
16
16
 
17
+ ## [29.0.0] - 06-08-2025
18
+
19
+ ## Changed
20
+
21
+ - The `getExportedData` method has been renamed `getExportedStepData` for clarity, it now returns a list of steps and their metadata chronological to the workflow. Localization has also been removed as this is a theme concern.
22
+
17
23
  ## [28.0.0] - 30-07-2025
18
24
 
19
25
  ## Changed
20
26
 
21
- - The `duplicateBundle` method now returns a function that creates a bundle object, rather than creating the object automatically.
27
+ - The `duplicateBundle` method now returns a function that creates a bundle object, rather than creating the object automatically.
22
28
 
23
29
  ## Fixed
24
30
 
25
- - Fixed bugs around reloading state.
31
+ - Fixed bugs around reloading state.
26
32
 
27
33
  ## [27.3.0] - 28-07-2025
28
34
 
package/dist/index.d.ts CHANGED
@@ -1240,10 +1240,9 @@ interface WorkflowExperience {
1240
1240
  /**
1241
1241
  * Returns the metadata associated with this workflow experience.
1242
1242
  * This is a combination of the metadata from the workflow, and the selections made by the user.
1243
+ * @returns An array of ExportedStepData objects, each containing the step ID, title, and properties.
1243
1244
  */
1244
- getExportedData(): Map<string, {
1245
- [key: string]: string;
1246
- }>;
1245
+ getExportedStepData(): ExportedStepData[];
1247
1246
  /**
1248
1247
  * Get the quantity of this WorkflowExperience's Transaction.
1249
1248
  * @returns The amount that was, or will be, ordered.
@@ -1272,6 +1271,17 @@ interface WorkflowExperience {
1272
1271
  attachAddress(streetAddress?: string, apartment?: string, city?: string, country?: string, state?: string, postCode?: string): Promise<void>;
1273
1272
  attachOrganization(name: string): Promise<void>;
1274
1273
  }
1274
+ type ExportedStepDataPropertyType = "selection" | "color" | "image" | "text";
1275
+ interface ExportedStepDataProperty {
1276
+ type: ExportedStepDataPropertyType;
1277
+ value: string;
1278
+ priceModifier: number;
1279
+ }
1280
+ interface ExportedStepData {
1281
+ stepId: string;
1282
+ title: string;
1283
+ properties: ExportedStepDataProperty[];
1284
+ }
1275
1285
  declare enum WorkflowExperienceEventType {
1276
1286
  QuantityChanged = "QuantityChanged",
1277
1287
  PriceBreakChanged = "PriceBreakChanged"
@@ -1334,9 +1344,7 @@ declare class WorkflowExperienceImpl implements WorkflowExperience {
1334
1344
  */
1335
1345
  private stepHasHandle;
1336
1346
  private getCanvasObjectURLAsync;
1337
- getExportedData(): Map<string, {
1338
- [key: string]: string;
1339
- }>;
1347
+ getExportedStepData(): ExportedStepData[];
1340
1348
  getQuantity(): number;
1341
1349
  setQuantity(quantity: number): Promise<void>;
1342
1350
  addEventListener(type: WorkflowExperienceEventType, callback: (workflowExperience: WorkflowExperience) => void): void;