@multiplatform.one/keycloak 9.17.0 → 10.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/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.native.cjs +2 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/index.native.js +2 -2
- package/package.json +13 -13
- package/types/Authenticated.d.ts +2 -2
- package/types/Authenticated.d.ts.map +1 -1
- package/types/Loading.d.ts +1 -1
- package/types/Loading.d.ts.map +1 -1
- package/types/provider/AfterAuth.d.ts +1 -1
- package/types/provider/AfterAuth.d.ts.map +1 -1
- package/types/provider/KeycloakProvider.d.ts +1 -1
- package/types/provider/KeycloakProvider.d.ts.map +1 -1
- package/types/provider/authProvider/index.d.ts +1 -1
- package/types/provider/authProvider/index.d.ts.map +1 -1
- package/types/provider/authProvider/index.native.d.ts +1 -1
- package/types/provider/authProvider/index.native.d.ts.map +1 -1
- package/types/provider/authProvider/index.webext.d.ts +1 -1
- package/types/provider/authProvider/index.webext.d.ts.map +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -103,13 +103,13 @@ var platformBase = {
|
|
|
103
103
|
isNative: false,
|
|
104
104
|
isNext: false,
|
|
105
105
|
isServer: import_constants.isServer,
|
|
106
|
-
isStorybook: import_constants.
|
|
106
|
+
isStorybook: import_constants.isBrowser && typeof window.__STORYBOOK_ADDONS_PREVIEW === "object",
|
|
107
107
|
isTauri: false,
|
|
108
108
|
isTouchable: import_constants.isTouchable,
|
|
109
109
|
isWeb: import_constants.isWeb,
|
|
110
110
|
isWebExtension: false,
|
|
111
111
|
isWebTouchable: import_constants.isWebTouchable,
|
|
112
|
-
isWindowDefined: import_constants.
|
|
112
|
+
isWindowDefined: import_constants.isBrowser,
|
|
113
113
|
preciseName: "unknown",
|
|
114
114
|
broadName: "unknown"
|
|
115
115
|
};
|
|
@@ -105,13 +105,13 @@ var platformBase = {
|
|
|
105
105
|
isNative: false,
|
|
106
106
|
isNext: false,
|
|
107
107
|
isServer: import_constants.isServer,
|
|
108
|
-
isStorybook: import_constants.
|
|
108
|
+
isStorybook: import_constants.isBrowser && typeof window.__STORYBOOK_ADDONS_PREVIEW === "object",
|
|
109
109
|
isTauri: false,
|
|
110
110
|
isTouchable: import_constants.isTouchable,
|
|
111
111
|
isWeb: import_constants.isWeb,
|
|
112
112
|
isWebExtension: false,
|
|
113
113
|
isWebTouchable: import_constants.isWebTouchable,
|
|
114
|
-
isWindowDefined: import_constants.
|
|
114
|
+
isWindowDefined: import_constants.isBrowser,
|
|
115
115
|
preciseName: "unknown",
|
|
116
116
|
broadName: "unknown"
|
|
117
117
|
};
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// ../platform/src/platform/platformBase.ts
|
|
2
2
|
import {
|
|
3
|
+
isBrowser as isWindowDefined,
|
|
3
4
|
isChrome,
|
|
4
5
|
isClient,
|
|
5
6
|
isServer,
|
|
6
7
|
isTouchable,
|
|
7
8
|
isWeb,
|
|
8
|
-
isWebTouchable
|
|
9
|
-
isWindowDefined
|
|
9
|
+
isWebTouchable
|
|
10
10
|
} from "@tamagui/constants";
|
|
11
11
|
var platformOrder = [
|
|
12
12
|
"Ios",
|
package/dist/esm/index.native.js
CHANGED
|
@@ -7,13 +7,13 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
7
7
|
|
|
8
8
|
// ../platform/src/platform/platformBase.ts
|
|
9
9
|
import {
|
|
10
|
+
isBrowser as isWindowDefined,
|
|
10
11
|
isChrome,
|
|
11
12
|
isClient,
|
|
12
13
|
isServer,
|
|
13
14
|
isTouchable,
|
|
14
15
|
isWeb,
|
|
15
|
-
isWebTouchable
|
|
16
|
-
isWindowDefined
|
|
16
|
+
isWebTouchable
|
|
17
17
|
} from "@tamagui/constants";
|
|
18
18
|
var platformOrder = [
|
|
19
19
|
"Ios",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/keycloak",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.1.0",
|
|
4
4
|
"description": "keycloak client for multiplatform.one ecosystem",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"auth",
|
|
@@ -55,32 +55,32 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@better-auth/expo": "~1.6.33",
|
|
58
|
-
"@multiplatform.one/auth": "^
|
|
59
|
-
"@multiplatform.one/keycloak-js": "^
|
|
60
|
-
"@multiplatform.one/store": "^
|
|
58
|
+
"@multiplatform.one/auth": "^10.1.0",
|
|
59
|
+
"@multiplatform.one/keycloak-js": "^10.1.0",
|
|
60
|
+
"@multiplatform.one/store": "^10.1.0",
|
|
61
61
|
"better-auth": "~1.6.33",
|
|
62
62
|
"jwt-decode": "^4.0.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@multiplatform.one/config": "
|
|
66
|
-
"@multiplatform.one/logger": "
|
|
67
|
-
"@multiplatform.one/platform": "
|
|
68
|
-
"@multiplatform.one/test-utils": "
|
|
69
|
-
"@tamagui/build": "2.
|
|
65
|
+
"@multiplatform.one/config": "10.1.0",
|
|
66
|
+
"@multiplatform.one/logger": "10.1.0",
|
|
67
|
+
"@multiplatform.one/platform": "10.1.0",
|
|
68
|
+
"@multiplatform.one/test-utils": "10.1.0",
|
|
69
|
+
"@tamagui/build": "3.2.3",
|
|
70
70
|
"@testing-library/jest-dom": "^7.0.1",
|
|
71
71
|
"@testing-library/react": "^16.3.3",
|
|
72
72
|
"@types/lodash.camelcase": "^4.3.9",
|
|
73
73
|
"@types/lodash.startcase": "^4.4.9",
|
|
74
74
|
"@vitejs/plugin-react": "^6.1.2",
|
|
75
75
|
"esbuild": "^0.28.0",
|
|
76
|
-
"one": "^
|
|
77
|
-
"react": "19.
|
|
76
|
+
"one": "^2.14.1",
|
|
77
|
+
"react": "19.3.0",
|
|
78
78
|
"typescript": "~5.9.3",
|
|
79
79
|
"vitest": "^4.1.12"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"@multiplatform.one/logger": "^
|
|
83
|
-
"@multiplatform.one/platform": "^
|
|
82
|
+
"@multiplatform.one/logger": "^10.1.0",
|
|
83
|
+
"@multiplatform.one/platform": "^10.1.0",
|
|
84
84
|
"react": "^19.1.0",
|
|
85
85
|
"react-native": ">=0.83.0"
|
|
86
86
|
},
|
package/types/Authenticated.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ export interface AuthenticatedProps extends PropsWithChildren {
|
|
|
4
4
|
loadingComponent?: ComponentType;
|
|
5
5
|
loggedOutComponent?: ComponentType;
|
|
6
6
|
}
|
|
7
|
-
export declare function Authenticated({ children, disabled, loggedOutComponent, loadingComponent, }: AuthenticatedProps): import("react
|
|
8
|
-
export declare function withAuthenticated<P extends object>(Component: ComponentType<P>, options?: AuthenticatedProps): (props: P) => import("react
|
|
7
|
+
export declare function Authenticated({ children, disabled, loggedOutComponent, loadingComponent, }: AuthenticatedProps): import("react").JSX.Element;
|
|
8
|
+
export declare function withAuthenticated<P extends object>(Component: ComponentType<P>, options?: AuthenticatedProps): (props: P) => import("react").JSX.Element;
|
|
9
9
|
//# sourceMappingURL=Authenticated.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Authenticated.d.ts","sourceRoot":"","sources":["../src/Authenticated.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAa,MAAM,OAAO,CAAC;AAO9E,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,aAAa,CAAC;IACjC,kBAAkB,CAAC,EAAE,aAAa,CAAC;CACpC;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,gBAAgB,GACjB,EAAE,kBAAkB
|
|
1
|
+
{"version":3,"file":"Authenticated.d.ts","sourceRoot":"","sources":["../src/Authenticated.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAa,MAAM,OAAO,CAAC;AAO9E,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,aAAa,CAAC;IACjC,kBAAkB,CAAC,EAAE,aAAa,CAAC;CACpC;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,gBAAgB,GACjB,EAAE,kBAAkB,+BAoCpB;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAChD,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,EAC3B,OAAO,GAAE,kBAAuB,IAExB,OAAO,CAAC,iCAKjB"}
|
package/types/Loading.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import type { ComponentType } from "react";
|
|
|
2
2
|
export interface LoadingProps {
|
|
3
3
|
loadingComponent?: ComponentType;
|
|
4
4
|
}
|
|
5
|
-
export declare function Loading({ loadingComponent }: LoadingProps): import("react
|
|
5
|
+
export declare function Loading({ loadingComponent }: LoadingProps): import("react").JSX.Element;
|
|
6
6
|
//# sourceMappingURL=Loading.d.ts.map
|
package/types/Loading.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loading.d.ts","sourceRoot":"","sources":["../src/Loading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAO3C,MAAM,WAAW,YAAY;IAC3B,gBAAgB,CAAC,EAAE,aAAa,CAAC;CAClC;AAED,wBAAgB,OAAO,CAAC,EAAE,gBAAgB,EAAE,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"Loading.d.ts","sourceRoot":"","sources":["../src/Loading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAO3C,MAAM,WAAW,YAAY;IAC3B,gBAAgB,CAAC,EAAE,aAAa,CAAC;CAClC;AAED,wBAAgB,OAAO,CAAC,EAAE,gBAAgB,EAAE,EAAE,YAAY,+BAYzD"}
|
|
@@ -2,5 +2,5 @@ import { type ComponentType, type PropsWithChildren } from "react";
|
|
|
2
2
|
export interface AfterAuthProps extends PropsWithChildren {
|
|
3
3
|
loadingComponent?: ComponentType;
|
|
4
4
|
}
|
|
5
|
-
export declare function AfterAuth({ children, loadingComponent: _loadingComponent }: AfterAuthProps): import("react
|
|
5
|
+
export declare function AfterAuth({ children, loadingComponent: _loadingComponent }: AfterAuthProps): import("react").JSX.Element;
|
|
6
6
|
//# sourceMappingURL=AfterAuth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AfterAuth.d.ts","sourceRoot":"","sources":["../../src/provider/AfterAuth.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAa,MAAM,OAAO,CAAC;AAM9E,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,gBAAgB,CAAC,EAAE,aAAa,CAAC;CAClC;AAED,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,EAAE,cAAc
|
|
1
|
+
{"version":3,"file":"AfterAuth.d.ts","sourceRoot":"","sources":["../../src/provider/AfterAuth.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAa,MAAM,OAAO,CAAC;AAM9E,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,gBAAgB,CAAC,EAAE,aAAa,CAAC;CAClC;AAED,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,EAAE,cAAc,+BA8D1F"}
|
|
@@ -14,5 +14,5 @@ export interface KeycloakProviderProps extends PropsWithChildren, AuthConfig {
|
|
|
14
14
|
/** App scheme for the Expo auth-session redirect (native). */
|
|
15
15
|
expoScheme?: string;
|
|
16
16
|
}
|
|
17
|
-
export declare function KeycloakProvider({ baseUrl, betterAuthBaseUrl, children, clientId, expoScheme, loginRedirectUri, loadingComponent, debug, disabled, iframeSso, publicClientId, realm, }: KeycloakProviderProps): import("react
|
|
17
|
+
export declare function KeycloakProvider({ baseUrl, betterAuthBaseUrl, children, clientId, expoScheme, loginRedirectUri, loadingComponent, debug, disabled, iframeSso, publicClientId, realm, }: KeycloakProviderProps): import("react").JSX.Element;
|
|
18
18
|
//# sourceMappingURL=KeycloakProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeycloakProvider.d.ts","sourceRoot":"","sources":["../../src/provider/KeycloakProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB,EAAE,UAAU;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,aAAa,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;oDAGgD;IAChD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,EACL,QAAQ,EACR,SAAS,EACT,cAAc,EACd,KAAK,GACN,EAAE,qBAAqB
|
|
1
|
+
{"version":3,"file":"KeycloakProvider.d.ts","sourceRoot":"","sources":["../../src/provider/KeycloakProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB,EAAE,UAAU;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,aAAa,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;oDAGgD;IAChD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,EACL,QAAQ,EACR,SAAS,EACT,cAAc,EACd,KAAK,GACN,EAAE,qBAAqB,+BA2BvB"}
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* Patched Keycloak JS client for iframe/direct-token strategies.
|
|
10
10
|
*/
|
|
11
11
|
import type { AuthProviderProps } from "./shared";
|
|
12
|
-
export declare function AuthProvider({ children, disabled, keycloakConfig, keycloakInitOptions, loadingComponent, }: AuthProviderProps): import("react
|
|
12
|
+
export declare function AuthProvider({ children, disabled, keycloakConfig, keycloakInitOptions, loadingComponent, }: AuthProviderProps): import("react").JSX.Element;
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/provider/authProvider/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAcH,OAAO,KAAK,EAAE,iBAAiB,EAAyB,MAAM,UAAU,CAAC;AAGzE,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,gBAAgB,GACjB,EAAE,iBAAiB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/provider/authProvider/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAcH,OAAO,KAAK,EAAE,iBAAiB,EAAyB,MAAM,UAAU,CAAC;AAGzE,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,gBAAgB,GACjB,EAAE,iBAAiB,+BA0WnB"}
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
* /expo-authorization-proxy and the cookie hand-back).
|
|
12
12
|
*/
|
|
13
13
|
import type { AuthProviderProps } from "./shared";
|
|
14
|
-
export declare function AuthProvider({ children, disabled, keycloakConfig, loadingComponent: LoadingComponent, }: AuthProviderProps): import("react
|
|
14
|
+
export declare function AuthProvider({ children, disabled, keycloakConfig, loadingComponent: LoadingComponent, }: AuthProviderProps): import("react").JSX.Element;
|
|
15
15
|
//# sourceMappingURL=index.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/provider/authProvider/index.native.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAkBH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AA4IlD,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,gBAAgB,EAAE,gBAAgB,GACnC,EAAE,iBAAiB
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/provider/authProvider/index.native.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAkBH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AA4IlD,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,gBAAgB,EAAE,gBAAgB,GACnC,EAAE,iBAAiB,+BA4CnB"}
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
* Patched Keycloak JS client for direct-token scenarios (iframe, store).
|
|
11
11
|
*/
|
|
12
12
|
import type { AuthProviderProps } from "./shared";
|
|
13
|
-
export declare function AuthProvider({ children, disabled, keycloakConfig, keycloakInitOptions, loadingComponent, }: AuthProviderProps): import("react
|
|
13
|
+
export declare function AuthProvider({ children, disabled, keycloakConfig, keycloakInitOptions, loadingComponent, }: AuthProviderProps): import("react").JSX.Element;
|
|
14
14
|
//# sourceMappingURL=index.webext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.webext.d.ts","sourceRoot":"","sources":["../../../src/provider/authProvider/index.webext.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAcH,OAAO,KAAK,EAAE,iBAAiB,EAAyB,MAAM,UAAU,CAAC;AAGzE,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,gBAAgB,GACjB,EAAE,iBAAiB
|
|
1
|
+
{"version":3,"file":"index.webext.d.ts","sourceRoot":"","sources":["../../../src/provider/authProvider/index.webext.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAcH,OAAO,KAAK,EAAE,iBAAiB,EAAyB,MAAM,UAAU,CAAC;AAGzE,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,gBAAgB,GACjB,EAAE,iBAAiB,+BA+UnB"}
|