@spiffcommerce/core 44.5.6-alpha.5 → 44.6.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 +9 -0
- package/dist/{index-BFeXhRxg.js → index-Bw9IeJ49.js} +6 -25
- package/dist/{index-BFeXhRxg.js.map → index-Bw9IeJ49.js.map} +1 -1
- package/dist/{index-CFpHWUEx.cjs → index-T_iRUrC3.cjs} +5 -5
- package/dist/{index-CFpHWUEx.cjs.map → index-T_iRUrC3.cjs.map} +1 -1
- package/dist/{index.browser-DkPy7zyG.cjs → index.browser-C3yejTxm.cjs} +2 -2
- package/dist/{index.browser-DkPy7zyG.cjs.map → index.browser-C3yejTxm.cjs.map} +1 -1
- package/dist/{index.browser-oJDA3nBL.js → index.browser-CVfUyTq0.js} +2 -2
- package/dist/{index.browser-oJDA3nBL.js.map → index.browser-CVfUyTq0.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +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
|
+
## [44.6.0] - 27-08-2026
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- **Dynamic Workflow Configuration**: New `WorkflowExperience.updateWorkflowConfiguration()` method to dynamically update workflow structure at runtime
|
|
22
|
+
- Supports adding, removing, and changing panels, steps, and step groups
|
|
23
|
+
- Automatically preserves user state and canvas content where possible
|
|
24
|
+
- New `WorkflowExperienceEventType.WorkflowConfigurationChanged` event
|
|
25
|
+
|
|
17
26
|
## [44.5.4] - 17-08-2026
|
|
18
27
|
|
|
19
28
|
### Fixed
|
|
@@ -64868,12 +64868,7 @@ const cU = (r) => r.sort((e, t) => e.index - t.index).map((e) => ({
|
|
|
64868
64868
|
f && this.setWorkflow(f);
|
|
64869
64869
|
}
|
|
64870
64870
|
async updateWorkflowConfiguration(e) {
|
|
64871
|
-
e.panels && await this.updatePanels(e.panels), e.steps && await this.updateSteps(e.steps);
|
|
64872
|
-
let t = this.getWorkflowExperience().getWorkflow().stepGroups || [];
|
|
64873
|
-
e.stepGroups && (t = await this.updateScenes(e.stepGroups)), this.allScenes = h0({
|
|
64874
|
-
...this.getWorkflowExperience().getWorkflow(),
|
|
64875
|
-
stepGroups: t
|
|
64876
|
-
}), await this.ensureStepsAreLoaded(), this.renderLayouts(), await this.onSelectionChange();
|
|
64871
|
+
e.panels && await this.updatePanels(e.panels), e.steps && await this.updateSteps(e.steps), this.allScenes = h0(this.getWorkflowExperience().getWorkflow()), await this.ensureStepsAreLoaded(), this.renderLayouts(), await this.onSelectionChange();
|
|
64877
64872
|
}
|
|
64878
64873
|
async updatePanels(e) {
|
|
64879
64874
|
const t = this.experience.getWorkflow();
|
|
@@ -64916,20 +64911,6 @@ const cU = (r) => r.sort((e, t) => e.index - t.index).map((e) => ({
|
|
|
64916
64911
|
}
|
|
64917
64912
|
delete this.stepSelections[e], delete this.stepMetadata[e], delete this.storage[e], delete this.stepElements[e], delete this.stepInitialised[e], delete this.stepSpecificServices[e], delete this.mandatorySteps[e], this.validationErrors.steps.delete(e);
|
|
64918
64913
|
}
|
|
64919
|
-
async updateScenes(e) {
|
|
64920
|
-
const t = this.experience.getWorkflow();
|
|
64921
|
-
if (!t) return [];
|
|
64922
|
-
let n = [...t.stepGroups];
|
|
64923
|
-
if (e.removed && (n = n.filter((i) => i.id && !e.removed.includes(i.id))), e.changed)
|
|
64924
|
-
for (const i of e.changed) {
|
|
64925
|
-
const a = i.id || i.name, s = n.findIndex((o) => o.id === a);
|
|
64926
|
-
s >= 0 && (n[s] = i);
|
|
64927
|
-
}
|
|
64928
|
-
if (e.added)
|
|
64929
|
-
for (const { item: i, index: a } of e.added)
|
|
64930
|
-
n.splice(a, 0, i);
|
|
64931
|
-
return n;
|
|
64932
|
-
}
|
|
64933
64914
|
getTemplatingContext() {
|
|
64934
64915
|
const e = this.experience.getTransaction().recipient, t = { recipient: e };
|
|
64935
64916
|
return this.recipientConversionConfiguration?.requestedDataItems?.forEach((n) => {
|
|
@@ -67539,7 +67520,7 @@ class QT {
|
|
|
67539
67520
|
throw new Error("No workflow set");
|
|
67540
67521
|
e.steps && this.cachedStepHandles.clear();
|
|
67541
67522
|
const t = this.applyWorkflowChanges(this.workflow, e);
|
|
67542
|
-
await this.workflowManager.updateWorkflowConfiguration(e), this.
|
|
67523
|
+
this.workflow = t, await this.workflowManager.updateWorkflowConfiguration(e), this.callEvent(
|
|
67543
67524
|
"WorkflowConfigurationChanged"
|
|
67544
67525
|
/* WorkflowConfigurationChanged */
|
|
67545
67526
|
);
|
|
@@ -72951,7 +72932,7 @@ class rz extends tz {
|
|
|
72951
72932
|
});
|
|
72952
72933
|
}
|
|
72953
72934
|
async loadEventStreamCapability() {
|
|
72954
|
-
const { EventStreamSerde: e, eventStreamSerdeProvider: t } = await import("./index.browser-
|
|
72935
|
+
const { EventStreamSerde: e, eventStreamSerdeProvider: t } = await import("./index.browser-CVfUyTq0.js"), n = this.resolveEventStreamMarshaller(t);
|
|
72955
72936
|
return new e({
|
|
72956
72937
|
marshaller: n,
|
|
72957
72938
|
serializer: this.serializer,
|
|
@@ -80389,7 +80370,7 @@ class rY {
|
|
|
80389
80370
|
} catch (n) {
|
|
80390
80371
|
throw console.error(n), new so("Critical - Unable to synchronize workflow state with server.");
|
|
80391
80372
|
}
|
|
80392
|
-
}, this.options = e, this.options.applicationKey && X4(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 44.5.6-alpha.
|
|
80373
|
+
}, this.options = e, this.options.applicationKey && X4(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 44.5.6-alpha.6"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
80393
80374
|
}
|
|
80394
80375
|
configure(e) {
|
|
80395
80376
|
Ps.setHubUrl(e.hubUrl), Ps.setServerUrl(e.serverUrl), Ps.setServicesApiUrl(e.servicesApiUrl), this.marketplaceThemeInstallId = e.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = e.marketplaceThemeInstallConfigurationId, this.userPoolClientId = e.userPoolClientId, this.userPoolRegion = e.userPoolRegion, this.spiffRegion = e.spiffRegion, e.bearerAuthenticationToken && K4(e.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Ed.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|
|
@@ -80398,7 +80379,7 @@ class rY {
|
|
|
80398
80379
|
* @returns The version of the @spiffcommerce/core package that this client is running.
|
|
80399
80380
|
*/
|
|
80400
80381
|
getVersion() {
|
|
80401
|
-
return "44.5.6-alpha.
|
|
80382
|
+
return "44.5.6-alpha.6";
|
|
80402
80383
|
}
|
|
80403
80384
|
/**
|
|
80404
80385
|
* @returns The asset manager allows for common operations related to assets
|
|
@@ -82544,4 +82525,4 @@ export {
|
|
|
82544
82525
|
d9 as y,
|
|
82545
82526
|
c9 as z
|
|
82546
82527
|
};
|
|
82547
|
-
//# sourceMappingURL=index-
|
|
82528
|
+
//# sourceMappingURL=index-Bw9IeJ49.js.map
|