@spiffcommerce/core 33.0.0 → 33.1.0-beta.862b8150-11b4-59dd-84cf-02e1089dd07d
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 +61 -49
- package/dist/index.d.ts +6 -0
- package/dist/index.js +167 -166
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1004 -990
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -14,13 +14,25 @@ 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
|
+
## [33.2.0] - 20-10-2025
|
18
|
+
|
19
|
+
### Changed
|
20
|
+
|
21
|
+
- Global aspects can now be configured to check their conditions using a logical "AND" or "OR", rather than just "OR".
|
22
|
+
|
23
|
+
## [33.1.0] - 20-10-2025
|
24
|
+
|
25
|
+
### Fixed
|
26
|
+
|
27
|
+
- Global aspects that are transitively conditional now get cleared correctly when deactivated.
|
28
|
+
|
17
29
|
## [33.0.0] - 14-10-2025
|
18
30
|
|
19
|
-
|
31
|
+
### Changed
|
20
32
|
|
21
33
|
- Updated `WorkflowExperience` to store `transaction`, `product`, `profanityList`, and `workflow` as direct properties, initialized in the constructor for improved encapsulation and performance.
|
22
34
|
|
23
|
-
|
35
|
+
### Added
|
24
36
|
|
25
37
|
- Added new methods to `WorkflowExperience`: `getProduct()`, `getProfanityList()`, `setProduct(integrationProductId: string)`, `getTransaction()`, `getWorkflow()`, and `setWorkflow(workflow: Workflow)` for easier access and mutation of core experience data.
|
26
38
|
- Introduced `getIntegrationProductIds()` and `addIntegrationProductId(id: string)` methods to `Bundle` and `BundleImpl` for tracking associated integration product IDs.
|
@@ -29,138 +41,138 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
29
41
|
|
30
42
|
## [32.4.0] - 16-10-2025
|
31
43
|
|
32
|
-
|
44
|
+
### Added
|
33
45
|
|
34
46
|
- The interface `GetWorkflowFromIntegrationProductOptions` now has optional `quantity` and `recipient` arguments.
|
35
47
|
|
36
48
|
## [32.3.1] - 09-10-2025
|
37
49
|
|
38
|
-
|
50
|
+
### Added
|
39
51
|
|
40
52
|
- Added the `SelectionChanged` event to `WorkflowExperienceEventType`. This event fires whenever the selection in a workflow experience changes. This includes changes to variant selections.
|
41
53
|
|
42
54
|
## [32.3.0] - 08-10-2025
|
43
55
|
|
44
|
-
|
56
|
+
### Added
|
45
57
|
|
46
58
|
- Added the new global function `deleteBundle` which takes a bundle id string and deletes the marks the bundle as deleted on the server.
|
47
59
|
|
48
60
|
## [32.2.6] - 08-10-2025
|
49
61
|
|
50
|
-
|
62
|
+
### Fixed
|
51
63
|
|
52
64
|
- Resolved an issue where `finish` function on `Bundle` would return no items if the bundle was being edited.
|
53
65
|
|
54
66
|
## [32.2.5] - 01-10-2025
|
55
67
|
|
56
|
-
|
68
|
+
### Fixed
|
57
69
|
|
58
70
|
- Fixed various bugs with custom colors for global properties.
|
59
71
|
|
60
72
|
## [32.2.4] - 29-09-2025
|
61
73
|
|
62
|
-
|
74
|
+
### Fixed
|
63
75
|
|
64
76
|
- Fixed a regression from 32.2.3 which causes defaults to incorrectly be applied when applying a saved global state to a bundle.
|
65
77
|
|
66
78
|
## [32.2.3] - 29-09-2025
|
67
79
|
|
68
|
-
|
80
|
+
### Fixed
|
69
81
|
|
70
82
|
- Whenever global property handles change, they will correctly apply their defaults if no value is set.
|
71
83
|
|
72
84
|
## [32.2.2] - 29-09-2025
|
73
85
|
|
74
|
-
|
86
|
+
### Fixed
|
75
87
|
|
76
88
|
- Text steps will no longer incorrectly clear templated text under certain configurations.
|
77
89
|
|
78
90
|
## [32.2.1] - 24-09-2025
|
79
91
|
|
80
|
-
|
92
|
+
### Changed
|
81
93
|
|
82
94
|
- Whenever the Global Property State of a bundle has changed, every active handle will re-apply their current state.
|
83
95
|
|
84
96
|
## [32.2.0] - 24-09-2025
|
85
97
|
|
86
|
-
|
98
|
+
### Added
|
87
99
|
|
88
100
|
- Added new field `addressValidationStatus` on the Transaction type, which is fetched whenever the transaction is read.
|
89
101
|
|
90
|
-
|
102
|
+
### Changed
|
91
103
|
|
92
104
|
- When calling `overrideWorkflowExperienceRecipientAddress`, the associated Transaction's `addressValidationStatus` is updated locally.
|
93
105
|
|
94
106
|
## [32.1.0] - 23-09-2025
|
95
107
|
|
96
|
-
|
108
|
+
### Added
|
97
109
|
|
98
110
|
- Added new `overrideWorkflowExperienceRecipientAddress` function to override the address of a specific workflow experience recipient.
|
99
111
|
|
100
112
|
## [31.4.0] - 10-09-2025
|
101
113
|
|
102
|
-
|
114
|
+
### Added
|
103
115
|
|
104
116
|
- Fetching new `limit` option for Theme Configurations
|
105
117
|
|
106
118
|
## [31.3.0] - 10-09-2025
|
107
119
|
|
108
|
-
|
120
|
+
### Added
|
109
121
|
|
110
122
|
- The function `ProductCollection.fetchProductsFeed` now supports an additional metafield filters parameter for filtering via attached workflows.
|
111
123
|
|
112
124
|
## [31.2.4] - 04-09-2025
|
113
125
|
|
114
|
-
|
126
|
+
### Fixed
|
115
127
|
|
116
128
|
- Vertical text steps now respect region boundaries, even if the text is really long.
|
117
129
|
|
118
130
|
## [30.2.2] - 01-09-2025
|
119
131
|
|
120
|
-
|
132
|
+
### Added
|
121
133
|
|
122
134
|
- The `collectionId` field will now be available on the complete event.
|
123
135
|
|
124
136
|
## [31.2.2] - 01-09-2025
|
125
137
|
|
126
|
-
|
138
|
+
### Fixed
|
127
139
|
|
128
140
|
- Text steps with templated input should have their font correctly resized in appropriate situations.
|
129
141
|
- The templating context for a WorkflowManager now correctly provides first/last name fields with a custom `uniqueIdentifier`.
|
130
142
|
|
131
143
|
## [30.2.1] - 01-09-2025
|
132
144
|
|
133
|
-
|
145
|
+
### Added
|
134
146
|
|
135
147
|
- The `name`, `dispatchDate`, `purchaseOrder` and `collectionName` fields will now be available on the complete event.
|
136
148
|
|
137
149
|
## [30.2.0] - 01-09-2025
|
138
150
|
|
139
|
-
|
151
|
+
### Added
|
140
152
|
|
141
153
|
- The `getOrCreateCustomer` call will fetch an existing customer's product collection customers.
|
142
154
|
|
143
155
|
## [31.1.0] - 01-09-2025
|
144
156
|
|
145
|
-
|
157
|
+
### Added
|
146
158
|
|
147
159
|
- The function `ProductCollection.fetchProductsFeed` now supports an additional string parameter to further filter the returned products by name.
|
148
160
|
|
149
161
|
## [31.0.0] - 29-08-2025
|
150
162
|
|
151
|
-
|
163
|
+
### Added
|
152
164
|
|
153
165
|
- Latest versions of internal build tools and libraries. EG. Vite and ESLint
|
154
166
|
|
155
167
|
## [30.0.0] - 27-08-2025
|
156
168
|
|
157
|
-
|
169
|
+
### Added
|
158
170
|
|
159
171
|
- The `updateRecipient` method now has extra arguments, primarily for custom fields.
|
160
172
|
|
161
173
|
## [29.3.0] - 27-08-2025
|
162
174
|
|
163
|
-
|
175
|
+
### Added
|
164
176
|
|
165
177
|
- Added new functionality regarding mandatory Global Property aspects:
|
166
178
|
- New function `GlobalPropertyHandle.isMandatory(): boolean`: returns a boolean indicating whether the aspect has been marked as required to be completed before the user can continue.
|
@@ -169,144 +181,144 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
169
181
|
|
170
182
|
## [29.2.0] - 25-08-2025
|
171
183
|
|
172
|
-
|
184
|
+
### Added
|
173
185
|
|
174
186
|
- Added the function `TextGlobalPropertyHandle.isTemplatingEnabled(): boolean`. Use this to determine whether you should display any templating tools.
|
175
187
|
|
176
188
|
## [29.1.2] - 25-08-2025
|
177
189
|
|
178
|
-
|
190
|
+
### Changed
|
179
191
|
|
180
192
|
- Text steps now render any templated values prior to calculating the character limit
|
181
193
|
|
182
194
|
## [29.1.1] - 20-08-2025
|
183
195
|
|
184
|
-
|
196
|
+
### Fixed
|
185
197
|
|
186
198
|
- Inputting an incorrect code when calling `verifyCode` will no longer prevent you from succeeding if you then input the correct code in a subsequent request.
|
187
199
|
|
188
200
|
## [29.0.4] - 14-08-2025
|
189
201
|
|
190
|
-
|
202
|
+
### Fixed
|
191
203
|
|
192
204
|
- Existing dispatchDate is now correctly applied when reloading a bundle
|
193
205
|
|
194
206
|
## [29.0.3] - 14-08-2025
|
195
207
|
|
196
|
-
|
208
|
+
### Added
|
197
209
|
|
198
210
|
- `getDispatchStartDate` method to `ProductCollection`.
|
199
211
|
- `getDispatchEndDate` method to `ProductCollection`.
|
200
212
|
|
201
213
|
## [29.0.2] - 08-08-2025
|
202
214
|
|
203
|
-
|
215
|
+
### Fixed
|
204
216
|
|
205
217
|
- `getExportedStepData` now returns only steps with properties as per original behavior.
|
206
218
|
|
207
219
|
## [29.0.1] - 07-08-2025
|
208
220
|
|
209
|
-
|
221
|
+
### Fixed
|
210
222
|
|
211
223
|
- Missing `ExportedStepData` types.
|
212
224
|
|
213
225
|
## [29.0.0] - 06-08-2025
|
214
226
|
|
215
|
-
|
227
|
+
### Changed
|
216
228
|
|
217
229
|
- 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.
|
218
230
|
|
219
231
|
## [28.0.0] - 30-07-2025
|
220
232
|
|
221
|
-
|
233
|
+
### Changed
|
222
234
|
|
223
235
|
- The `duplicateBundle` method now returns a function that creates a bundle object, rather than creating the object automatically.
|
224
236
|
|
225
|
-
|
237
|
+
### Fixed
|
226
238
|
|
227
239
|
- Fixed bugs around reloading state.
|
228
240
|
|
229
241
|
## [27.3.0] - 28-07-2025
|
230
242
|
|
231
|
-
|
243
|
+
### Added
|
232
244
|
|
233
245
|
- CurrencyService & CurrencyContext can now be used to correctly transform values for display. See `client.getCurrencyContext`
|
234
246
|
|
235
247
|
## [27.2.1] - 28-07-2025
|
236
248
|
|
237
|
-
|
249
|
+
### Fixed
|
238
250
|
|
239
251
|
- `WorkflowExperience.assignCustomerDetails` should no longer fail when you have ownership of the associated Transaction.
|
240
252
|
|
241
253
|
## [27.2.0] - 24-07-2025
|
242
254
|
|
243
|
-
|
255
|
+
### Added
|
244
256
|
|
245
257
|
- Bundles now have the `applyGlobalPropertyState` method for copying one global state onto another.
|
246
258
|
|
247
259
|
## [27.1.1] - 23-07-2025
|
248
260
|
|
249
|
-
|
261
|
+
### Fixed
|
250
262
|
|
251
263
|
- Correctly the case of handle multiple text steps that are conditional and share a text aspect.
|
252
264
|
|
253
265
|
## [27.1.0] - 16-07-2025
|
254
266
|
|
255
|
-
|
267
|
+
### Changed
|
256
268
|
|
257
269
|
- Added support for Handlebars in text steps.
|
258
270
|
|
259
271
|
## [27.0.0] - 15-07-2025
|
260
272
|
|
261
|
-
|
273
|
+
### Changed
|
262
274
|
|
263
275
|
- Modified the functions for logging in as a customer.
|
264
276
|
|
265
277
|
## [26.40.0] - 10-07-2025
|
266
278
|
|
267
|
-
|
279
|
+
### Added
|
268
280
|
|
269
281
|
- Added `setDispatchDate` and `setPurchaseOrder` to `Bundle`.
|
270
282
|
|
271
283
|
## [26.39.0] - 08-07-2025
|
272
284
|
|
273
|
-
|
285
|
+
### Fixed
|
274
286
|
|
275
287
|
- The function `fetchProductsFeed` on `ProductCollection` now correctly reads from the in-memory cache for repeated calls with the same inputs.
|
276
288
|
|
277
289
|
## [26.38.0] - 07-07-2025
|
278
290
|
|
279
|
-
|
291
|
+
### Added
|
280
292
|
|
281
293
|
- `WorkflowManager` now has the function `addRecipientCallback` to listen to changes to the attached Recipient.
|
282
294
|
|
283
295
|
## [26.35.0] - 03-07-2025
|
284
296
|
|
285
|
-
|
297
|
+
### Added
|
286
298
|
|
287
299
|
- The `Bundle` type now has the `productsCount` property.
|
288
300
|
|
289
301
|
## [26.33.0] - 02-07-2025
|
290
302
|
|
291
|
-
|
303
|
+
### Added
|
292
304
|
|
293
305
|
- The method `getBundlesForCustomer` now has an "ordered" option.
|
294
306
|
|
295
307
|
## [26.31.0] - 24-06-2025
|
296
308
|
|
297
|
-
|
309
|
+
### Fixed
|
298
310
|
|
299
311
|
- Fixed issues with authorizing certain requests affecting recipients.
|
300
312
|
|
301
313
|
## [26.30.0] - 23-06-2025
|
302
314
|
|
303
|
-
|
315
|
+
### Added
|
304
316
|
|
305
317
|
- New global function `getProductCollections`, which fetches a list of Product Collections by their ids.
|
306
318
|
|
307
319
|
## [26.29.3] - 19-06-2025
|
308
320
|
|
309
|
-
|
321
|
+
### Fixed
|
310
322
|
|
311
323
|
- The method `updateRecipient` now saves its arguments correctly.
|
312
324
|
|
package/dist/index.d.ts
CHANGED
@@ -1583,6 +1583,7 @@ interface GlobalPropertyStateManager {
|
|
1583
1583
|
setBundleOptions(bundleOptions?: BundleOptions): void;
|
1584
1584
|
getBundleOptions(): BundleOptions | undefined;
|
1585
1585
|
setConfiguration(configuration: GlobalPropertyConfiguration | undefined): void;
|
1586
|
+
clearAspects(names: string[]): Promise<void>;
|
1586
1587
|
}
|
1587
1588
|
interface BundleOptions {
|
1588
1589
|
additionalHeaders?: {
|
@@ -2964,6 +2965,10 @@ interface GlobalPropertyConfiguration {
|
|
2964
2965
|
id: string;
|
2965
2966
|
aspects: GlobalPropertyConfigurationAspect[];
|
2966
2967
|
}
|
2968
|
+
declare enum GlobalPropertyConfigurationConditionMode {
|
2969
|
+
AND = "AND",
|
2970
|
+
OR = "OR"
|
2971
|
+
}
|
2967
2972
|
interface GlobalPropertyConfigurationAspect {
|
2968
2973
|
name: string;
|
2969
2974
|
type: AspectType;
|
@@ -2971,6 +2976,7 @@ interface GlobalPropertyConfigurationAspect {
|
|
2971
2976
|
description: string;
|
2972
2977
|
entityId?: string;
|
2973
2978
|
conditions?: GlobalPropertyConfigurationAspectCondition[];
|
2979
|
+
conditionMode?: GlobalPropertyConfigurationConditionMode;
|
2974
2980
|
data?: GlobalPropertyConfigurationAspectData;
|
2975
2981
|
mandatory?: boolean;
|
2976
2982
|
}
|