@axa-fr/react-oidc 7.22.23 → 7.22.24

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,5 +1,4 @@
1
1
  import { Fetch } from '@axa-fr/oidc-client';
2
-
3
2
  export interface ComponentWithOidcFetchProps {
4
3
  fetch?: Fetch;
5
4
  }
@@ -1,7 +1,6 @@
1
1
  import { Fetch, ILOidcLocation, OidcClient, OidcConfiguration } from '@axa-fr/oidc-client';
2
2
  import { ComponentType, FC, PropsWithChildren } from 'react';
3
3
  import { CustomHistory } from './core/routes/withRouter.js';
4
-
5
4
  export type oidcContext = {
6
5
  (name?: string): OidcClient;
7
6
  };
@@ -1,6 +1,5 @@
1
1
  import { StringMap } from '@axa-fr/oidc-client';
2
2
  import { FC, PropsWithChildren } from 'react';
3
-
4
3
  export type OidcSecureProps = {
5
4
  callbackPath?: string;
6
5
  extras?: StringMap;
@@ -1 +1 @@
1
- {"version":3,"file":"OidcSecure.d.ts","sourceRoot":"","sources":["../src/OidcSecure.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,EAAE,EAAE,iBAAiB,EAAa,MAAM,OAAO,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAkB7D,CAAC;AAEF,eAAO,MAAM,cAAc,qBAEL,GAAG,kBAAkB,eAAe,CAAC,CAAC,0HAWzD,CAAC"}
1
+ {"version":3,"file":"OidcSecure.d.ts","sourceRoot":"","sources":["../src/OidcSecure.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,EAAE,EAAE,iBAAiB,EAAa,MAAM,OAAO,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAkB7D,CAAC;AAEF,eAAO,MAAM,cAAc,qBAEL,EAAE,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC,0HAWzD,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { StringMap } from '@axa-fr/oidc-client';
2
-
3
2
  export declare const useOidc: (configurationName?: string) => {
4
3
  login: (callbackPath?: string | undefined, extras?: StringMap | undefined, silentLoginOnly?: boolean) => Promise<unknown>;
5
4
  logout: (callbackPath?: string | null | undefined, extras?: StringMap | undefined) => Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"ReactOidc.d.ts","sourceRoot":"","sources":["../src/ReactOidc.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAU,MAAM,qBAAqB,CAAC;AAkBpE,eAAO,MAAM,OAAO;2BA6BF,MAAM,GAAG,SAAS,WACxB,SAAS,GAAG,SAAS;4BAYf,MAAM,GAAG,IAAI,GAAG,SAAS,WAC/B,SAAS,GAAG,SAAS;2BAKrB,SAAS,GAAG,SAAS,KAC5B,QAAQ,eAAe,GAAG,WAAW,CAAC;;CAe1C,CAAC;AAsBF,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,kBAAkB,CAAC,EAAE,GAAG,CAAC;IACzB,6CAA6C,CAAC,EAAE,GAAG,CAAC;CACrD,CAAC;AASF,eAAO,MAAM,kBAAkB,iDA6C9B,CAAC;AAeF,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,cAAc,CAAC,EAAE,GAAG,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,cAAc,6CAqC1B,CAAC"}
1
+ {"version":3,"file":"ReactOidc.d.ts","sourceRoot":"","sources":["../src/ReactOidc.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAU,MAAM,qBAAqB,CAAC;AAkBpE,eAAO,MAAM,OAAO;2BA6BF,MAAM,GAAG,SAAS,WACxB,SAAS,GAAG,SAAS;4BAYf,MAAM,GAAG,IAAI,GAAG,SAAS,WAC/B,SAAS,GAAG,SAAS;2BAKrB,SAAS,GAAG,SAAS,KAC5B,OAAO,CAAC,eAAe,GAAG,WAAW,CAAC;;CAe1C,CAAC;AAsBF,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,kBAAkB,CAAC,EAAE,GAAG,CAAC;IACzB,6CAA6C,CAAC,EAAE,GAAG,CAAC;CACrD,CAAC;AASF,eAAO,MAAM,kBAAkB,iDA6C9B,CAAC;AAeF,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,cAAc,CAAC,EAAE,GAAG,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,cAAc,6CAqC1B,CAAC"}
package/dist/User.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { OidcUserInfo } from '@axa-fr/oidc-client';
2
-
3
2
  export declare enum OidcUserStatus {
4
3
  Unauthenticated = "Unauthenticated",
5
4
  Loading = "Loading user",
@@ -1 +1 @@
1
- {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../src/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGpE,oBAAY,cAAc;IACxB,eAAe,oBAAoB;IACnC,OAAO,iBAAiB;IACxB,MAAM,gBAAgB;IACtB,YAAY,uBAAuB;CACpC;AAED,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,IAAI;IAC5D,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IACf,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;CAwDvB,CAAC"}
1
+ {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../src/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGpE,oBAAY,cAAc;IACxB,eAAe,oBAAoB;IACnC,OAAO,iBAAiB;IACxB,MAAM,gBAAgB;IACtB,YAAY,uBAAuB;CACpC;AAED,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,IAAI;IAC5D,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IACf,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,YAAY;;;;CAwDjD,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { ComponentType } from 'react';
2
-
3
2
  declare const AuthenticatingError: ComponentType<any>;
4
3
  export default AuthenticatingError;
5
4
  //# sourceMappingURL=AuthenticateError.component.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { ComponentType } from 'react';
2
-
3
2
  declare const Authenticating: ComponentType<any>;
4
3
  export default Authenticating;
5
4
  //# sourceMappingURL=Authenticating.component.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { ComponentType } from 'react';
2
-
3
2
  export declare const CallBackSuccess: ComponentType<any>;
4
3
  declare const CallbackManager: ComponentType<any>;
5
4
  export default CallbackManager;
@@ -1,5 +1,4 @@
1
1
  import { ComponentType } from 'react';
2
-
3
2
  declare const Loading: ComponentType<any>;
4
3
  export default Loading;
5
4
  //# sourceMappingURL=Loading.component.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { ComponentType } from 'react';
2
-
3
2
  declare const ServiceWorkerNotSupported: ComponentType<any>;
4
3
  export default ServiceWorkerNotSupported;
5
4
  //# sourceMappingURL=ServiceWorkerNotSupported.component.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { ComponentType } from 'react';
2
-
3
2
  export declare const SessionLost: ComponentType<any>;
4
3
  export default SessionLost;
5
4
  //# sourceMappingURL=SessionLost.component.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  export interface SilentCallbackProps {
4
3
  configurationName: string;
5
4
  }
@@ -1,5 +1,4 @@
1
1
  import { ComponentType } from 'react';
2
-
3
2
  declare const SilentLogin: ComponentType<any>;
4
3
  export default SilentLogin;
5
4
  //# sourceMappingURL=SilentLogin.component.d.ts.map
@@ -1,7 +1,6 @@
1
1
  import { ILOidcLocation } from '@axa-fr/oidc-client';
2
2
  import { default as React, ComponentType } from 'react';
3
3
  import { CustomHistory } from './withRouter.js';
4
-
5
4
  type OidcRoutesProps = {
6
5
  callbackSuccessComponent?: ComponentType;
7
6
  callbackErrorComponent?: ComponentType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axa-fr/react-oidc",
3
- "version": "7.22.23",
3
+ "version": "7.22.24",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
@@ -40,31 +40,31 @@
40
40
  "lint": "eslint src"
41
41
  },
42
42
  "dependencies": {
43
- "@axa-fr/oidc-client-service-worker": "7.22.23",
44
- "@axa-fr/oidc-client": "7.22.23"
43
+ "@axa-fr/oidc-client-service-worker": "7.22.24",
44
+ "@axa-fr/oidc-client": "7.22.24"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "react": "^17.0.0 || ^18.0.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@testing-library/jest-dom": "6.4.5",
51
- "@testing-library/react": "15.0.7",
50
+ "@testing-library/jest-dom": "6.5.0",
51
+ "@testing-library/react": "16.0.1",
52
52
  "@testing-library/user-event": "14.5.2",
53
- "@types/react": "18.3.2",
54
- "@vitejs/plugin-react": "4.2.1",
55
- "@vitest/coverage-v8": "1.6.0",
56
- "cpy": "11.0.1",
53
+ "@types/react": "18.3.5",
54
+ "@vitejs/plugin-react": "4.3.1",
55
+ "@vitest/coverage-v8": "2.0.5",
56
+ "cpy": "11.1.0",
57
57
  "cpy-cli": "^5.0.0",
58
58
  "cross-env": "^7.0.3",
59
- "jsdom": "24.0.0",
60
- "msw": "2.3.0",
59
+ "jsdom": "25.0.0",
60
+ "msw": "2.4.1",
61
61
  "react": "^18.3.1",
62
62
  "react-dom": "^18.3.1",
63
- "rimraf": "5.0.7",
64
- "typescript": "5.4.5",
63
+ "rimraf": "6.0.1",
64
+ "typescript": "5.5.4",
65
65
  "vite": "5.2.11",
66
- "vite-plugin-dts": "3.9.1",
67
- "vitest": "1.6.0"
66
+ "vite-plugin-dts": "4.1.0",
67
+ "vitest": "2.0.5"
68
68
  },
69
69
  "license": "MIT",
70
70
  "publishConfig": {