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