@alviere/ui 0.15.3 → 0.16.1
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/dist/index.js +14 -7
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/web-components.js +1 -1
- package/dist/web-components.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5773,10 +5773,14 @@ const manager = AlviereCoreManager.getInstance();
|
|
|
5773
5773
|
function getAlviereCore(config) {
|
|
5774
5774
|
return manager.getOrCreate(config);
|
|
5775
5775
|
}
|
|
5776
|
+
function updateAlviereCore(config) {
|
|
5777
|
+
return manager.updateOrCreate(config);
|
|
5778
|
+
}
|
|
5776
5779
|
const alviereCoreManager = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5777
5780
|
__proto__: null,
|
|
5778
5781
|
AlviereCoreManager,
|
|
5779
|
-
getAlviereCore
|
|
5782
|
+
getAlviereCore,
|
|
5783
|
+
updateAlviereCore
|
|
5780
5784
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5781
5785
|
const validator = AlviereCore.createValidator();
|
|
5782
5786
|
function createEnhancedBaseInputMixin(config) {
|
|
@@ -12750,13 +12754,14 @@ const createFlowCoreStore = () => {
|
|
|
12750
12754
|
}
|
|
12751
12755
|
const debug = state2.config.debug || false;
|
|
12752
12756
|
debug && uiLogger.info("🔄 Updating JWT in shared AlviereCore instance (store)...");
|
|
12753
|
-
|
|
12757
|
+
const newConfig = { ...state2.config, jwt: newJwt };
|
|
12758
|
+
const newCore = updateAlviereCore(newConfig);
|
|
12754
12759
|
debug && uiLogger.info("✅ Shared AlviereCore updated with new JWT (store):", {
|
|
12755
|
-
accountUuid:
|
|
12756
|
-
businessUuid:
|
|
12757
|
-
isFirstTimeUser:
|
|
12760
|
+
accountUuid: newCore.getAccountUuid(),
|
|
12761
|
+
businessUuid: newCore.getBusinessUuid(),
|
|
12762
|
+
isFirstTimeUser: newCore.isFirstTimeUser()
|
|
12758
12763
|
});
|
|
12759
|
-
return { ...state2,
|
|
12764
|
+
return { ...state2, core: newCore, config: newConfig };
|
|
12760
12765
|
});
|
|
12761
12766
|
},
|
|
12762
12767
|
/**
|
|
@@ -19703,7 +19708,6 @@ function createJwtFlowManager(options) {
|
|
|
19703
19708
|
const currentJwt = getJwt();
|
|
19704
19709
|
if (currentJwt) {
|
|
19705
19710
|
set(effectiveJwt, currentJwt, true);
|
|
19706
|
-
scheduleRefresh(currentJwt);
|
|
19707
19711
|
}
|
|
19708
19712
|
});
|
|
19709
19713
|
user_effect(() => {
|
|
@@ -20530,6 +20534,9 @@ function MultiStepFlow($$anchor, $$props) {
|
|
|
20530
20534
|
debug: debug()
|
|
20531
20535
|
});
|
|
20532
20536
|
}
|
|
20537
|
+
if (jwt()) {
|
|
20538
|
+
jwtManager.updateJwt(jwt());
|
|
20539
|
+
}
|
|
20533
20540
|
if (((_a3 = config() === null || config() === void 0 ? void 0 : config().steps) === null || _a3 === void 0 ? void 0 : _a3.length) > 0) {
|
|
20534
20541
|
debug() && uiLogger.info("🚀 MultiStepFlow mounted with", config().steps.length, "steps");
|
|
20535
20542
|
flowManager.markStepInProgress(0);
|