@incodetech/web 0.0.0-dev-20260820-6f816e8f → 0.0.0-dev-20260820-26f63bf6
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.
|
@@ -4,10 +4,14 @@ import { t as registerIncodeModuleElement } from "../incodeModule-DM_YoMkO.js";
|
|
|
4
4
|
import { createAuthenticationManager } from "@incodetech/core/authentication";
|
|
5
5
|
//#region src/modules/authentication/authentication.tsx
|
|
6
6
|
var AuthenticationContent = ({ config, authHint, manager: externalManager, onFinish, onError }) => {
|
|
7
|
-
const [state, manager] = useManager(() =>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
const [state, manager] = useManager(() => {
|
|
8
|
+
if (externalManager) return externalManager;
|
|
9
|
+
if (!config) throw new Error("Authentication config is required when no manager is provided");
|
|
10
|
+
return createAuthenticationManager({
|
|
11
|
+
config,
|
|
12
|
+
authHint
|
|
13
|
+
});
|
|
14
|
+
}, { manageLifecycle: !externalManager });
|
|
11
15
|
useModuleTerminalCallbacks({
|
|
12
16
|
status: state.status,
|
|
13
17
|
onFinish,
|
|
@@ -29,9 +33,9 @@ var AuthenticationContent = ({ config, authHint, manager: externalManager, onFin
|
|
|
29
33
|
return null;
|
|
30
34
|
};
|
|
31
35
|
var AuthenticationWithLocalConfig = ({ config, manager, onFinish, onError }) => {
|
|
32
|
-
return /* @__PURE__ */ u(IncodeComponent, { children: config ? /* @__PURE__ */ u(AuthenticationContent, {
|
|
36
|
+
return /* @__PURE__ */ u(IncodeComponent, { children: config || manager ? /* @__PURE__ */ u(AuthenticationContent, {
|
|
33
37
|
config,
|
|
34
|
-
authHint: config
|
|
38
|
+
authHint: config?.authHint,
|
|
35
39
|
manager,
|
|
36
40
|
onFinish,
|
|
37
41
|
onError
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260820-
|
|
3
|
+
"version": "0.0.0-dev-20260820-26f63bf6",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
"qrcode": "^1.5.4",
|
|
293
293
|
"signature_pad": "^5.1.3",
|
|
294
294
|
"tailwindcss": "^4.1.17",
|
|
295
|
-
"@incodetech/core": "0.0.0-dev-20260820-
|
|
295
|
+
"@incodetech/core": "0.0.0-dev-20260820-26f63bf6"
|
|
296
296
|
},
|
|
297
297
|
"devDependencies": {
|
|
298
298
|
"@microsoft/api-extractor": "^7.53.3",
|