@owlmeans/mui-oidc-rp 0.1.10 → 0.1.14
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatcher.d.ts","sourceRoot":"","sources":["../../src/components/dispatcher.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dispatcher.d.ts","sourceRoot":"","sources":["../../src/components/dispatcher.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU,6FAiDrB,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { DispatcherHOC } from '@owlmeans/client-auth';
|
|
3
|
-
import { useSearchParams } from 'react-router';
|
|
4
3
|
import { useEffect } from 'react';
|
|
5
4
|
import { useContext } from '@owlmeans/web-client';
|
|
6
5
|
import { useI18nLib } from '@owlmeans/client-i18n';
|
|
@@ -8,8 +7,8 @@ import { AUTH_QUERY } from '@owlmeans/auth';
|
|
|
8
7
|
import { useFlow } from '@owlmeans/web-flow';
|
|
9
8
|
import { DEFAULT_ALIAS } from '../consts.js';
|
|
10
9
|
export const Dispatcher = DispatcherHOC(({ provideToken, navigate }) => {
|
|
11
|
-
const [query] = useSearchParams();
|
|
12
10
|
const context = useContext();
|
|
11
|
+
const [query] = context.router().useSearchParams();
|
|
13
12
|
const client = useFlow();
|
|
14
13
|
const t = useI18nLib('auth', 'dispatcher');
|
|
15
14
|
useEffect(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatcher.js","sourceRoot":"","sources":["../../src/components/dispatcher.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"dispatcher.js","sourceRoot":"","sources":["../../src/components/dispatcher.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,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
|
6
6
|
"scripts": {
|
|
@@ -29,34 +29,32 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@owlmeans/auth": "^0.1.
|
|
33
|
-
"@owlmeans/basic-envelope": "^0.1.
|
|
34
|
-
"@owlmeans/client": "^0.1.
|
|
35
|
-
"@owlmeans/client-auth": "^0.1.
|
|
36
|
-
"@owlmeans/client-flow": "^0.1.
|
|
37
|
-
"@owlmeans/client-i18n": "^0.1.
|
|
38
|
-
"@owlmeans/context": "^0.1.
|
|
39
|
-
"@owlmeans/flow": "^0.1.
|
|
40
|
-
"@owlmeans/entrypoint": "^0.1.
|
|
41
|
-
"@owlmeans/oidc": "^0.1.
|
|
42
|
-
"@owlmeans/resource": "^0.1.
|
|
43
|
-
"@owlmeans/web-client": "^0.1.
|
|
44
|
-
"@owlmeans/web-flow": "^0.1.
|
|
32
|
+
"@owlmeans/auth": "^0.1.14",
|
|
33
|
+
"@owlmeans/basic-envelope": "^0.1.14",
|
|
34
|
+
"@owlmeans/client": "^0.1.14",
|
|
35
|
+
"@owlmeans/client-auth": "^0.1.14",
|
|
36
|
+
"@owlmeans/client-flow": "^0.1.14",
|
|
37
|
+
"@owlmeans/client-i18n": "^0.1.14",
|
|
38
|
+
"@owlmeans/context": "^0.1.14",
|
|
39
|
+
"@owlmeans/flow": "^0.1.14",
|
|
40
|
+
"@owlmeans/entrypoint": "^0.1.14",
|
|
41
|
+
"@owlmeans/oidc": "^0.1.14",
|
|
42
|
+
"@owlmeans/resource": "^0.1.14",
|
|
43
|
+
"@owlmeans/web-client": "^0.1.14",
|
|
44
|
+
"@owlmeans/web-flow": "^0.1.14",
|
|
45
45
|
"oidc-client-ts": "3.5.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@mui/material": "^7.*",
|
|
49
|
-
"react": "*"
|
|
50
|
-
"react-router": "^7.*"
|
|
49
|
+
"react": "*"
|
|
51
50
|
},
|
|
52
51
|
"devDependencies": {
|
|
53
52
|
"@owlmeans/dep-config": "workspace:*",
|
|
54
|
-
"@owlmeans/test-auth": "^0.1.
|
|
55
|
-
"@types/bun": "^1.3.
|
|
56
|
-
"@types/react": "^19.2.
|
|
57
|
-
"nodemon": "^3.1.
|
|
58
|
-
"
|
|
59
|
-
"typescript": "^6.0.2"
|
|
53
|
+
"@owlmeans/test-auth": "^0.1.14",
|
|
54
|
+
"@types/bun": "^1.3.14",
|
|
55
|
+
"@types/react": "^19.2.17",
|
|
56
|
+
"nodemon": "^3.1.14",
|
|
57
|
+
"typescript": "^6.0.3"
|
|
60
58
|
},
|
|
61
59
|
"publishConfig": {
|
|
62
60
|
"access": "public"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
import { DispatcherHOC } from '@owlmeans/client-auth'
|
|
3
|
-
import { useSearchParams } from 'react-router'
|
|
4
3
|
import { useEffect } from 'react'
|
|
5
4
|
import { useContext } from '@owlmeans/web-client'
|
|
6
5
|
import { useI18nLib } from '@owlmeans/client-i18n'
|
|
@@ -10,8 +9,8 @@ import { OidcAuthService } from '../types.js'
|
|
|
10
9
|
import { DEFAULT_ALIAS } from '../consts.js'
|
|
11
10
|
|
|
12
11
|
export const Dispatcher = DispatcherHOC(({ provideToken, navigate }) => {
|
|
13
|
-
const [query] = useSearchParams()
|
|
14
12
|
const context = useContext()
|
|
13
|
+
const [query] = context.router().useSearchParams()
|
|
15
14
|
const client = useFlow()
|
|
16
15
|
|
|
17
16
|
const t = useI18nLib('auth', 'dispatcher')
|