@spiffcommerce/core 28.0.2-beta.b15c5a10-0813-5e03-bc2d-aaa4050d46ab → 28.0.2
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 +2 -8
- package/dist/index.d.ts +6 -14
- package/dist/index.js +37 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +462 -535
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,21 +14,15 @@ 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
|
-
|
|
23
17
|
## [28.0.0] - 30-07-2025
|
|
24
18
|
|
|
25
19
|
## Changed
|
|
26
20
|
|
|
27
|
-
-
|
|
21
|
+
- The `duplicateBundle` method now returns a function that creates a bundle object, rather than creating the object automatically.
|
|
28
22
|
|
|
29
23
|
## Fixed
|
|
30
24
|
|
|
31
|
-
-
|
|
25
|
+
- Fixed bugs around reloading state.
|
|
32
26
|
|
|
33
27
|
## [27.3.0] - 28-07-2025
|
|
34
28
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1240,9 +1240,10 @@ 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.
|
|
1244
1243
|
*/
|
|
1245
|
-
|
|
1244
|
+
getExportedData(): Map<string, {
|
|
1245
|
+
[key: string]: string;
|
|
1246
|
+
}>;
|
|
1246
1247
|
/**
|
|
1247
1248
|
* Get the quantity of this WorkflowExperience's Transaction.
|
|
1248
1249
|
* @returns The amount that was, or will be, ordered.
|
|
@@ -1271,17 +1272,6 @@ interface WorkflowExperience {
|
|
|
1271
1272
|
attachAddress(streetAddress?: string, apartment?: string, city?: string, country?: string, state?: string, postCode?: string): Promise<void>;
|
|
1272
1273
|
attachOrganization(name: string): Promise<void>;
|
|
1273
1274
|
}
|
|
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
|
-
}
|
|
1285
1275
|
declare enum WorkflowExperienceEventType {
|
|
1286
1276
|
QuantityChanged = "QuantityChanged",
|
|
1287
1277
|
PriceBreakChanged = "PriceBreakChanged"
|
|
@@ -1344,7 +1334,9 @@ declare class WorkflowExperienceImpl implements WorkflowExperience {
|
|
|
1344
1334
|
*/
|
|
1345
1335
|
private stepHasHandle;
|
|
1346
1336
|
private getCanvasObjectURLAsync;
|
|
1347
|
-
|
|
1337
|
+
getExportedData(): Map<string, {
|
|
1338
|
+
[key: string]: string;
|
|
1339
|
+
}>;
|
|
1348
1340
|
getQuantity(): number;
|
|
1349
1341
|
setQuantity(quantity: number): Promise<void>;
|
|
1350
1342
|
addEventListener(type: WorkflowExperienceEventType, callback: (workflowExperience: WorkflowExperience) => void): void;
|