@cryptr/cryptr-react
Advanced tools
| import './index.css'; | ||
| //# sourceMappingURL=index.d.ts.map |
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA"} |
| import { CSSProperties } from 'react'; | ||
| type AccountAccessProps = { | ||
| children?: JSX.Element; | ||
| text?: string; | ||
| style?: CSSProperties; | ||
| className?: string; | ||
| isWidget?: boolean; | ||
| tenantName?: string; | ||
| tenantLogo?: string; | ||
| defaultSignText?: string; | ||
| }; | ||
| /** | ||
| * @ignore | ||
| * @deprecated since version 1.3.6 | ||
| * @name AccountAccessButton | ||
| */ | ||
| declare const CryptrAccountAccessButton: ({ children, text, defaultSignText, style, className, isWidget, tenantName, tenantLogo, }: AccountAccessProps) => JSX.Element; | ||
| export default CryptrAccountAccessButton; | ||
| //# sourceMappingURL=CryptrAccountAccessButton.d.ts.map |
| {"version":3,"file":"CryptrAccountAccessButton.d.ts","sourceRoot":"","sources":["../../../src/lib/components/CryptrAccountAccessButton.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAY,MAAM,OAAO,CAAA;AAMtD,KAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAED;;;;GAIG;AACH,QAAA,MAAM,yBAAyB,6FAS5B,kBAAkB,KAAG,WA4KvB,CAAA;AAED,eAAe,yBAAyB,CAAA"} |
| import React, { CSSProperties } from 'react'; | ||
| /** | ||
| * @typedef {Object} LogOutProps | ||
| */ | ||
| type LogOutProps = { | ||
| /** Desired text in your button */ | ||
| text?: string; | ||
| /** Callback called after logout */ | ||
| callback?: () => void; | ||
| /** Desired style in your button */ | ||
| style?: CSSProperties; | ||
| /** Desired class in your button */ | ||
| className?: string; | ||
| /** Set to `false` if you want to display even session is live */ | ||
| autoHide?: boolean; | ||
| /** Desired url after url */ | ||
| targetUrl?: string; | ||
| /** Set to `true`if you want also a SLO request among token revokation */ | ||
| sloAfterRevoke?: boolean; | ||
| }; | ||
| /** | ||
| * Component to log out your user from it's current session. | ||
| * Usable props [LogoutProps](#LogOutProps) | ||
| * @name LogOutButton | ||
| * @category Components | ||
| * | ||
| * @example <caption>Simple logout button</caption> | ||
| * return ( | ||
| * <LogOutButton /> | ||
| * ) | ||
| * | ||
| * @example <caption>When you want a specific text</caption> | ||
| * return ( | ||
| * <LogOutButton text={'Sign out here'} /> | ||
| * ) | ||
| * | ||
| * @example <caption>When you want to keep visible even if no session</caption> | ||
| * return ( | ||
| * <LogOutButton autoHide={false} /> | ||
| * ) | ||
| * | ||
| * @example <caption>When you want to do a SLO among token revokation</caption> | ||
| * return ( | ||
| * <LogOutButton sloAfterRevoke={true} /> | ||
| * ) | ||
| */ | ||
| declare const CryptrLogOutButton: React.FC<LogOutProps>; | ||
| export default CryptrLogOutButton; | ||
| //# sourceMappingURL=CryptrLogOutButton.d.ts.map |
| {"version":3,"file":"CryptrLogOutButton.d.ts","sourceRoot":"","sources":["../../../src/lib/components/CryptrLogOutButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAI5C;;GAEG;AACH,KAAK,WAAW,GAAG;IACjB,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,mCAAmC;IACnC,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yEAAyE;IACzE,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA6B7C,CAAA;AAED,eAAe,kBAAkB,CAAA"} |
| import React, { CSSProperties } from 'react'; | ||
| type SignInProps = { | ||
| text?: string; | ||
| scopes?: string; | ||
| style?: CSSProperties; | ||
| className?: string; | ||
| autoHide?: boolean; | ||
| }; | ||
| /** | ||
| * @ignore | ||
| * @deprecated since version 1.3.0 replaced by SignInWithDomainButton | ||
| * @name SignInButton | ||
| */ | ||
| declare const CryptrSignInButton: React.FC<SignInProps>; | ||
| export default CryptrSignInButton; | ||
| //# sourceMappingURL=CryptrSignInButton.d.ts.map |
| {"version":3,"file":"CryptrSignInButton.d.ts","sourceRoot":"","sources":["../../../src/lib/components/CryptrSignInButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAI5C,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED;;;;GAIG;AACH,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA4B7C,CAAA;AAED,eAAe,kBAAkB,CAAA"} |
| import { SsoSignOptsAttrs } from '@cryptr/cryptr-spa-js/dist/types/interfaces'; | ||
| import React, { CSSProperties } from 'react'; | ||
| /** | ||
| * @typedef {Object} SignInWithDomainProps | ||
| */ | ||
| type SignInWithDomainProps = { | ||
| /** | ||
| * The (optional) Organization domain | ||
| */ | ||
| domain?: string; | ||
| /** Text you want for your button */ | ||
| text?: string; | ||
| /** Class you want for your button */ | ||
| className?: string; | ||
| /** Style you want for your button */ | ||
| style?: CSSProperties; | ||
| /** Set to `false` if you do not want to hide it when live session */ | ||
| autoHide?: boolean; | ||
| /** Any other useful option such as `locale` */ | ||
| options?: SsoSignOptsAttrs; | ||
| }; | ||
| /** | ||
| * Component to sign in with a specific domain (if known). | ||
| * Usable props : [SignInWithDomainProps](#SignInWithDomainProps) | ||
| * @category Components | ||
| * | ||
| * @name SignInWithDomainButton | ||
| * @example <caption>When you want user to type email by his own</caption> | ||
| * return ( | ||
| * <SignInWithDomainButton /> | ||
| * ) | ||
| * | ||
| * @example <caption>When you know user by his organization's domain</caption> | ||
| * return ( | ||
| * <SignInWithDomainButton domain={'blablabus'} /> | ||
| * ) | ||
| * | ||
| * @example <caption>When you want to specify a different locale</caption> | ||
| * return ( | ||
| * <SignInWithDomainButton locale={'fr'} /> | ||
| * ) | ||
| * | ||
| * @example <caption>When you to keep the button even if there is an active session</caption> | ||
| * return ( | ||
| * <SignInWithDomainButton autoHide={false} /> | ||
| * ) | ||
| * | ||
| */ | ||
| declare const CryptrSignInWithDomainButton: React.FC<SignInWithDomainProps>; | ||
| export default CryptrSignInWithDomainButton; | ||
| //# sourceMappingURL=CryptrSignInWithDomainButton.d.ts.map |
| {"version":3,"file":"CryptrSignInWithDomainButton.d.ts","sourceRoot":"","sources":["../../../src/lib/components/CryptrSignInWithDomainButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAA;AAC9E,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAI5C;;GAEG;AACH,KAAK,qBAAqB,GAAG;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qCAAqC;IACrC,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,gBAAgB,CAAA;CAC3B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,QAAA,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAwCjE,CAAA;AAED,eAAe,4BAA4B,CAAA"} |
| import { SsoSignOptsAttrs } from '@cryptr/cryptr-spa-js/dist/types/interfaces'; | ||
| import React, { CSSProperties } from 'react'; | ||
| /** | ||
| * @typedef {Props} SignInWithEmailProps | ||
| */ | ||
| type SignInWithEmailProps = { | ||
| /** | ||
| * Required user's email that you want to login | ||
| */ | ||
| email: string; | ||
| /** Text you want for your button */ | ||
| text?: string; | ||
| /** Class you want for your button */ | ||
| className?: string; | ||
| /** Style you want for your button */ | ||
| style?: CSSProperties; | ||
| /** | ||
| * Set to `false` if you do not want to hide it when live session | ||
| */ | ||
| autoHide?: boolean; | ||
| /** Any other useful option such as `locale` */ | ||
| options?: SsoSignOptsAttrs; | ||
| }; | ||
| /** | ||
| * Components to sign in with a specific domain (if known). | ||
| * Usable props : [SignInWithEmailProps](#SignInWithEmailProps) | ||
| * | ||
| * @name SignInWithEmailButton | ||
| * @category Components | ||
| * @example <caption>When you want to intiate a session knowing the user's email</caption> | ||
| * | ||
| * return ( | ||
| * <SignInWithEmailButton email={'john@blablabus.fr'} /> | ||
| * ) | ||
| * | ||
| * @example <caption>When you want to also precise the locale</caption> | ||
| * return ( | ||
| * <SignInWithEmailButton email={'john@blablabus.fr'} locale={'fr'} /> | ||
| * ) | ||
| * | ||
| * @example <caption>When you want to keep button visible even if there is an active session</caption> | ||
| * return ( | ||
| * <SignInWithEmailButton email={'john@blablabus.fr'} autoHide={false} /> | ||
| * ) | ||
| * | ||
| */ | ||
| declare const CryptrSignInWithEmailButton: React.FC<SignInWithEmailProps>; | ||
| export default CryptrSignInWithEmailButton; | ||
| //# sourceMappingURL=CryptrSignInWithEmailButton.d.ts.map |
| {"version":3,"file":"CryptrSignInWithEmailButton.d.ts","sourceRoot":"","sources":["../../../src/lib/components/CryptrSignInWithEmailButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAA;AAC9E,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAI5C;;GAEG;AACH,KAAK,oBAAoB,GAAG;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qCAAqC;IACrC,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,gBAAgB,CAAA;CAC3B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA+B/D,CAAA;AAED,eAAe,2BAA2B,CAAA"} |
| import React, { CSSProperties } from 'react'; | ||
| type SignUpProps = { | ||
| text?: string; | ||
| scopes?: string; | ||
| style?: CSSProperties; | ||
| className?: string; | ||
| autoHide?: boolean; | ||
| }; | ||
| /** | ||
| * @ignore | ||
| * @deprecated since version 1.3.0 replaced by SignInWithDomainButton | ||
| * @name SignUpButton | ||
| */ | ||
| declare const CryptrSignUpButton: React.FC<SignUpProps>; | ||
| export default CryptrSignUpButton; | ||
| //# sourceMappingURL=CryptrSignUpButton.d.ts.map |
| {"version":3,"file":"CryptrSignUpButton.d.ts","sourceRoot":"","sources":["../../../src/lib/components/CryptrSignUpButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAI5C,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED;;;;GAIG;AACH,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA4B7C,CAAA;AAED,eAAe,kBAAkB,CAAA"} |
| import { SsoSignOptsAttrs } from '@cryptr/cryptr-spa-js/dist/types/interfaces'; | ||
| import React, { CSSProperties } from 'react'; | ||
| type SsoGatewayProps = { | ||
| idpIds?: string[]; | ||
| text?: string; | ||
| className?: string; | ||
| style?: CSSProperties; | ||
| autoHide?: boolean; | ||
| options?: SsoSignOptsAttrs; | ||
| }; | ||
| /** | ||
| * @ignore | ||
| * @deprecated since version 1.3.0 replaced by SignInWithDomainButton | ||
| * @name SsoGatewayButton | ||
| */ | ||
| declare const CryptrSsoGatewayButton: React.FC<SsoGatewayProps>; | ||
| export default CryptrSsoGatewayButton; | ||
| //# sourceMappingURL=CryptrSsoGatewayButton.d.ts.map |
| {"version":3,"file":"CryptrSsoGatewayButton.d.ts","sourceRoot":"","sources":["../../../src/lib/components/CryptrSsoGatewayButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAA;AAC9E,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAI5C,KAAK,eAAe,GAAG;IACrB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,gBAAgB,CAAA;CAC3B,CAAA;AAED;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmCrD,CAAA;AAED,eAAe,sBAAsB,CAAA"} |
| import { SsoSignOptsAttrs } from '@cryptr/cryptr-spa-js/dist/types/interfaces'; | ||
| import React, { CSSProperties } from 'react'; | ||
| type SsoSignInProps = { | ||
| idpId: string; | ||
| text?: string; | ||
| className?: string; | ||
| style?: CSSProperties; | ||
| autoHide?: boolean; | ||
| options?: SsoSignOptsAttrs; | ||
| }; | ||
| /** | ||
| * @ignore | ||
| * @deprecated since version 1.3.0 replaced by SignInWithDomainButton | ||
| * @name SsoSignInButton | ||
| */ | ||
| declare const CryptrSsoSignInButton: React.FC<SsoSignInProps>; | ||
| export default CryptrSsoSignInButton; | ||
| //# sourceMappingURL=CryptrSsoSignInButton.d.ts.map |
| {"version":3,"file":"CryptrSsoSignInButton.d.ts","sourceRoot":"","sources":["../../../src/lib/components/CryptrSsoSignInButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAA;AAC9E,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAI5C,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,gBAAgB,CAAA;CAC3B,CAAA;AAED;;;;GAIG;AACH,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAsCnD,CAAA;AAED,eAAe,qBAAqB,CAAA"} |
| /// <reference types="react" /> | ||
| import { AxiosPromise, AxiosRequestConfig } from 'axios'; | ||
| import { ProviderConfig, User } from './utils/cryptr.interfaces'; | ||
| /** | ||
| * @name Cryptr Context | ||
| */ | ||
| declare const CryptrContext: import("react").Context<{ | ||
| signinWithRedirect: (...args: any[]) => never; | ||
| signupWithRedirect: (...args: any[]) => never; | ||
| signinWithSSO: (...args: any[]) => never; | ||
| signInWithSSOGateway: (...args: any[]) => never; | ||
| signInWithDomain: (...args: any[]) => never; | ||
| signInWithEmail: (...args: any[]) => never; | ||
| isAuthenticated: (...args: any[]) => never; | ||
| userAccountAccess: (...args: any[]) => never; | ||
| logOut: (...args: any[]) => never; | ||
| user: () => User | null; | ||
| decoratedRequest: (axiosConfig: AxiosRequestConfig) => AxiosPromise<unknown>; | ||
| config: () => ProviderConfig; | ||
| defaultScopes: (...args: any[]) => never; | ||
| getCurrentAccessToken: (...args: any[]) => never; | ||
| getCurrentIdToken: (...args: any[]) => never; | ||
| isLoading: boolean; | ||
| error: null; | ||
| }>; | ||
| export default CryptrContext; | ||
| //# sourceMappingURL=CryptrContext.d.ts.map |
| {"version":3,"file":"CryptrContext.d.ts","sourceRoot":"","sources":["../../src/lib/CryptrContext.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAGxD,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAyBhE;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;gBAVe,IAAI,GAAG,IAAI;oCACS,kBAAkB,KAAK,aAAa,OAAO,CAAC;kBAC9D,cAAc;;;;;;EAQC,CAAA;AAEnD,eAAe,aAAa,CAAA"} |
| /// <reference types="react" /> | ||
| import { CryptrTokenClaims } from './utils/cryptr.interfaces'; | ||
| import { Config } from '@cryptr/cryptr-spa-js/dist/types/interfaces'; | ||
| interface ProviderOptions extends Config { | ||
| onRedirectCallback?: (claims: CryptrTokenClaims | null) => void; | ||
| onLogOutCallback?: () => void; | ||
| defaultScopes?: string; | ||
| } | ||
| interface ProviderProps extends ProviderOptions { | ||
| children: JSX.Element; | ||
| } | ||
| declare const CryptrProvider: (props: ProviderProps) => JSX.Element; | ||
| export default CryptrProvider; | ||
| //# sourceMappingURL=CryptrProvider.d.ts.map |
| {"version":3,"file":"CryptrProvider.d.ts","sourceRoot":"","sources":["../../src/lib/CryptrProvider.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,iBAAiB,EAAwB,MAAM,2BAA2B,CAAA;AACnF,OAAO,EAAE,MAAM,EAAoB,MAAM,6CAA6C,CAAA;AAgCtF,UAAU,eAAgB,SAAQ,MAAM;IACtC,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAA;IAC/D,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AACD,UAAU,aAAc,SAAQ,eAAe;IAC7C,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAA;CACtB;AAqBD,QAAA,MAAM,cAAc,UAAW,aAAa,KAAG,WAoJ9C,CAAA;AAED,eAAe,cAAc,CAAA"} |
| declare const CryptrReducer: (state: any, action: any) => any; | ||
| export default CryptrReducer; | ||
| //# sourceMappingURL=CryptrReducer.d.ts.map |
| {"version":3,"file":"CryptrReducer.d.ts","sourceRoot":"","sources":["../../src/lib/CryptrReducer.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,aAAa,kCA6BlB,CAAA;AAED,eAAe,aAAa,CAAA"} |
| /// <reference types="react" /> | ||
| export declare const SignInWithDomainButton: import("react").FC<{ | ||
| domain?: string | undefined; | ||
| text?: string | undefined; | ||
| className?: string | undefined; | ||
| style?: import("react").CSSProperties | undefined; | ||
| autoHide?: boolean | undefined; | ||
| options?: import("@cryptr/cryptr-spa-js/dist/types/interfaces").SsoSignOptsAttrs | undefined; | ||
| }>; | ||
| export declare const SignInWithEmailButton: import("react").FC<{ | ||
| email: string; | ||
| text?: string | undefined; | ||
| className?: string | undefined; | ||
| style?: import("react").CSSProperties | undefined; | ||
| autoHide?: boolean | undefined; | ||
| options?: import("@cryptr/cryptr-spa-js/dist/types/interfaces").SsoSignOptsAttrs | undefined; | ||
| }>; | ||
| export declare const LogOutButton: import("react").FC<{ | ||
| text?: string | undefined; | ||
| callback?: (() => void) | undefined; | ||
| style?: import("react").CSSProperties | undefined; | ||
| className?: string | undefined; | ||
| autoHide?: boolean | undefined; | ||
| targetUrl?: string | undefined; | ||
| sloAfterRevoke?: boolean | undefined; | ||
| }>; | ||
| export declare const AccountButton: ({ children, text, defaultSignText, style, className, isWidget, tenantName, tenantLogo, }: { | ||
| children?: JSX.Element | undefined; | ||
| text?: string | undefined; | ||
| style?: import("react").CSSProperties | undefined; | ||
| className?: string | undefined; | ||
| isWidget?: boolean | undefined; | ||
| tenantName?: string | undefined; | ||
| tenantLogo?: string | undefined; | ||
| defaultSignText?: string | undefined; | ||
| }) => JSX.Element; | ||
| export { default as CryptrProvider } from './CryptrProvider'; | ||
| export { default as useCryptr } from './useCryptr'; | ||
| /** | ||
| * Key/value Array representing extra data on a specific resource (User/application) | ||
| * @interface | ||
| */ | ||
| interface MetaDatas { | ||
| [key: string]: string | number | boolean; | ||
| } | ||
| /** | ||
| * Decoded claims from a token (ID/Access) | ||
| * @interface | ||
| * | ||
| * @prop {number} iat - Unix timestamp of Token issued at | ||
| * @prop {string} aud - Audience of the React app that generetaed this token | ||
| * @prop {string} cid - Client ID of the React app that generetaed this token | ||
| * @prop {string} dbs - Database/environment of the app/user | ||
| * @prop {string} iss - Cryptr service that issued the token | ||
| * @prop {string[]} scp - Authorized scopes while using this token | ||
| * @prop {string} tnt - Organization's domain that user belongs to. | ||
| * @prop {string} sub - Cryptr User's unique identifier | ||
| * @prop {number} exp - Unix timestamp for the expiration date for this token | ||
| * @prop {number} jti - JSON web Token unique Identifier | ||
| * @prop {number} ver - Current version of Cryptr token | ||
| * @prop {number} jtt - JSON web Token type. ex `openid` | ||
| * @prop {MetaDatas} resource_owner_metadata - Array of key/pair of data identifying the user (populated for exemple by SSO) | ||
| * @prop {MetaDatas} application_metadata - Array of key/pair of data related to the application | ||
| */ | ||
| export interface CryptrTokenClaims { | ||
| iat: number; | ||
| aud: string; | ||
| cid: string; | ||
| dbs: string; | ||
| iss: string; | ||
| scp: string[]; | ||
| tnt: string; | ||
| sub: string; | ||
| exp: number; | ||
| jti: string; | ||
| ver: number; | ||
| jtt: string; | ||
| resource_owner_metadata?: MetaDatas; | ||
| application_metadata?: MetaDatas; | ||
| } | ||
| declare const CryptrReact: {}; | ||
| /** | ||
| * @interface SsoSignOptsAttrs | ||
| * | ||
| * @prop {string} [clientId] - Specific Cryptr React Application Unique identifier reference | ||
| * @prop {string} [tenantDomain] - Specific Cryptr Organization's domain | ||
| * @prop {string[]} [scope] - Specific scope for this login request | ||
| * @prop {string} [redirectUri] - Specific redirect URI for this login request | ||
| * @prop {string} [locale] - Specific locale for this login request | ||
| */ | ||
| export default CryptrReact; | ||
| //# sourceMappingURL=index.d.ts.map |
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";AAaA,eAAO,MAAM,sBAAsB;;;;;;;EAA+B,CAAA;AAClE,eAAO,MAAM,qBAAqB;;;;;;;EAA8B,CAAA;AAChE,eAAO,MAAM,YAAY;;;;;;;;EAAkB,CAAA;AAC3C,eAAO,MAAM,aAAa;;;;;;;;;iBAA4B,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAElD;;;GAGG;AACH,UAAU,SAAS;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CACzC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,EAAE,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,uBAAuB,CAAC,EAAE,SAAS,CAAA;IACnC,oBAAoB,CAAC,EAAE,SAAS,CAAA;CACjC;AAED,QAAA,MAAM,WAAW,IAAK,CAAA;AAEtB;;;;;;;;GAQG;AAEH,eAAe,WAAW,CAAA"} |
| /** | ||
| * The initial auth state. | ||
| * @category Defaults | ||
| * | ||
| * @prop {boolean} isAuthenticated=false - If there is an active session | ||
| * @prop {boolean} isLoading=false - If there is a Cryptr authentication process in progress | ||
| * @prop {User} user=null - User representation if session active | ||
| * @prop {unknown} error=null - Is there any error ongoing | ||
| */ | ||
| declare const initialCryptrState: { | ||
| isAuthenticated: boolean; | ||
| isLoading: boolean; | ||
| user: null; | ||
| error: null; | ||
| }; | ||
| export default initialCryptrState; | ||
| //# sourceMappingURL=initialCryptrState.d.ts.map |
| {"version":3,"file":"initialCryptrState.d.ts","sourceRoot":"","sources":["../../src/lib/initialCryptrState.tsx"],"names":[],"mappings":"AAYA;;;;;;;;GAQG;AACH,QAAA,MAAM,kBAAkB;;;;;CAMvB,CAAA;AAED,eAAe,kBAAkB,CAAA"} |
| /** | ||
| * @function LogOutFunction | ||
| * @category Hook functions | ||
| * @async | ||
| * @param {function} [callback] - Callback function executed when logout succeeded | ||
| * @param {string} [targetUrl] - Specific URL to redirect after logout | ||
| * @param {boolean} [sloAfterRevoke=false] - If you want to do or not the SLO process after token revokation | ||
| */ | ||
| /** | ||
| * @function SignInWithEmailFunction | ||
| * @category Hook functions | ||
| * | ||
| * @param {string} email - The email of the User you want to authenticate | ||
| * @param {SsoSignOptsAttrs} [options] - Specific options if needed | ||
| */ | ||
| /** | ||
| * @function SignInWithDomainFunction | ||
| * @category Hook functions | ||
| * | ||
| * @param {string} [domain] - The domain of the organization you want to use for this authentication process | ||
| * @param {SsoSignOptsAttrs} [options] - Specific options if needed | ||
| */ | ||
| /** | ||
| * @name Cryptr Hooks | ||
| * | ||
| * @prop {function} isAuthenticated - Returns `true` if there is an active session | ||
| * @prop {boolean} isLoading - Returns `true` if there is a Cryptr authentication process in progress | ||
| * @prop {LogOutFunction} logOut - Initiates the log out process | ||
| * @prop {function} user - Function that returns a User if there is an active session | ||
| * @prop {SignInWithEmailFunction} signInWithEmail - Initiates a sign in process while providing the user's email | ||
| * @prop {SignInWithDomainFunction} signInWithDomain - Initiates a sign in process while providing the organization's domain if known | ||
| * @prop {function} decorateRequest - Function that automatically decorate an `axios` request with the current session access token | ||
| * @prop {function} config - Function that returns the current config | ||
| * @prop {function} getCurrentAccessToken - Function that returns the current access token if there is an active session. Usefull if you want to process your own decoration process with your back-end. | ||
| * @prop {function} getCurrentIdToken - Function that returns the current id token if there is an active session | ||
| * | ||
| * @example | ||
| * | ||
| * import { useCryptr } from '@cryptr/cryptr-react' | ||
| * | ||
| * @example <caption>Then when you want to connect user by his email</caption> | ||
| * const { signInWithEmail } = useCryptr() | ||
| * //... | ||
| * signInWithEmail('john@company.com') | ||
| * | ||
| * @example <caption>When you want to get current active session's access token</caption> | ||
| * const { getCurrentAccessToken } = useCryptr() | ||
| * //... | ||
| * getCurrentAccessToken() // "eyJ..." | ||
| * | ||
| * @example <caption>When you want to initiate a logout process</caption> | ||
| * const { logOut } = useCryptr() | ||
| * //... | ||
| * logOut() | ||
| */ | ||
| declare const useCryptr: () => { | ||
| signinWithRedirect: (...args: any[]) => never; | ||
| signupWithRedirect: (...args: any[]) => never; | ||
| signinWithSSO: (...args: any[]) => never; | ||
| signInWithSSOGateway: (...args: any[]) => never; | ||
| signInWithDomain: (...args: any[]) => never; | ||
| signInWithEmail: (...args: any[]) => never; | ||
| isAuthenticated: (...args: any[]) => never; | ||
| userAccountAccess: (...args: any[]) => never; | ||
| logOut: (...args: any[]) => never; | ||
| user: () => import("./utils/cryptr.interfaces").User | null; | ||
| decoratedRequest: (axiosConfig: import("axios").AxiosRequestConfig<any>) => import("axios").AxiosPromise<unknown>; | ||
| config: () => import("./utils/cryptr.interfaces").ProviderConfig; | ||
| defaultScopes: (...args: any[]) => never; | ||
| getCurrentAccessToken: (...args: any[]) => never; | ||
| getCurrentIdToken: (...args: any[]) => never; | ||
| isLoading: boolean; | ||
| error: null; | ||
| }; | ||
| export default useCryptr; | ||
| //# sourceMappingURL=useCryptr.d.ts.map |
| {"version":3,"file":"useCryptr.d.ts","sourceRoot":"","sources":["../../src/lib/useCryptr.tsx"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH;;;;;;GAMG;AAEH;;;;;;GAMG;AAGH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;CAAkC,CAAA;AAEjD,eAAe,SAAS,CAAA"} |
| export declare const hiddenStyle: { | ||
| display: string; | ||
| }; | ||
| //# sourceMappingURL=constants.d.ts.map |
| {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/constants.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;CAAsB,CAAA"} |
| export interface Config { | ||
| tenant_domain: string; | ||
| client_id: string; | ||
| audience: string; | ||
| default_redirect_uri: string; | ||
| default_slo_after_revoke: boolean; | ||
| default_locale?: string; | ||
| region?: string; | ||
| cryptr_base_url?: string; | ||
| telemetry?: boolean; | ||
| dedicated_server?: boolean; | ||
| fixed_pkce?: boolean; | ||
| } | ||
| /** | ||
| * Your Global Cryptr config settings for your React application | ||
| * @interface | ||
| * @prop {string} tenant_domain - Your Account `domain` | ||
| * @prop {string} client_id - Your React Application ID in Cryptr | ||
| * @prop {string} audience - Your React Application base URL | ||
| * @prop {string} default_redirect_uri - Your default URI endpoint adter login | ||
| * @prop {boolean} default_slo_after_revoke - (For SSO) If SLO has to be done for `logOut` process | ||
| * @prop {string} [default_locale="en"] - Your React Application default language | ||
| * @prop {string} [region] - **Deprecated:** since 1.3.0 | ||
| * @prop {string} [cryptr_base_url] - Your Cryptr service URL, ex: `https://my-company.authent.me` | ||
| * @prop {boolean} [telemetry=false] - Activates monitoring of your React to Cryptr | ||
| * @prop {boolean} [dedicated_server=false] - Set to `true` if you owns your Cryptr Service | ||
| * @prop {boolean} [fixed_pkce=false] - Since 1.2.0 set to `true` | ||
| * @prop {function} [onRedirectCallback=DEFAULT_REDIRECT_CALLBACK] - The default behaviour after login, see [DEFAULT_REDIRECT_CALLBACK](./global.html#DEFAULT_REDIRECT_CALLBACK) | ||
| * @prop {function} [onLogOutCallback=DEFAULT_LOGOUT_CALLBACK] - The default behaviour after logout, see [DEFAULT_LOGOUT_CALLBACK](./global.html#DEFAULT_LOGOUT_CALLBACK) | ||
| * @prop {string} [defaultScopes='openid email profile'] - The default scopes you want while opening Cryptr oAuth session | ||
| */ | ||
| export interface ProviderConfig extends Config { | ||
| onRedirectCallback: (claims: CryptrTokenClaims | null) => void; | ||
| onLogOutCallback: () => void; | ||
| defaultScopes: string; | ||
| } | ||
| export interface CryptrTokens { | ||
| accessToken: string; | ||
| } | ||
| export interface CryptrClient { | ||
| canHandleAuthentication: () => void; | ||
| getClaimsFromAccess: () => void; | ||
| handleRedirectCallback: () => void; | ||
| isAuthenticated: () => void; | ||
| signInWithRedirect: () => void; | ||
| } | ||
| /** | ||
| * Represents the current Cryptr User that owns the session | ||
| * @interface | ||
| * | ||
| * @prop {string} email - User's email | ||
| * @prop {string} tnt - User's organization domain | ||
| * @prop {string} sub - User's Unique identifier | ||
| * @prop {string} [ips] - [if SSO session] -> the provider type, ex: `azure_ad` | ||
| * @prop {string} [sci] - [if SSO session] -> the SSO connection unique identifier, ex: `blablabus_xeab-1234` | ||
| * @prop {string} given_name - User's given name if known | ||
| * @prop {string} family_name - User's family name if known | ||
| * @prop {string} nickname - User's nickname if known | ||
| * @prop {string} picture - User's picture if known | ||
| * | ||
| */ | ||
| export interface User { | ||
| email: string; | ||
| tnt: string; | ||
| sub: string; | ||
| ips?: string; | ||
| sci?: string; | ||
| scp?: string[]; | ||
| given_name?: string; | ||
| family_name?: string; | ||
| nickname?: string; | ||
| picture?: string; | ||
| } | ||
| export interface CryptrTokenClaims { | ||
| iat: number; | ||
| aud: string; | ||
| cid: string; | ||
| dbs: string; | ||
| iss: string; | ||
| scp: string[]; | ||
| tnt: string; | ||
| sub: string; | ||
| exp: number; | ||
| jti: string; | ||
| ver: number; | ||
| jtt: string; | ||
| resource_owner_metadata?: { | ||
| [key: string]: string | number | boolean; | ||
| }; | ||
| application_metadata?: { | ||
| [key: string]: string | number | boolean; | ||
| }; | ||
| } | ||
| //# sourceMappingURL=cryptr.interfaces.d.ts.map |
| {"version":3,"file":"cryptr.interfaces.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/cryptr.interfaces.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,MAAM;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,wBAAwB,EAAE,OAAO,CAAA;IACjC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,cAAe,SAAQ,MAAM;IAE5C,kBAAkB,EAAE,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9D,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,aAAa,EAAE,MAAM,CAAA;CACtB;AACD,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,uBAAuB,EAAE,MAAM,IAAI,CAAA;IACnC,mBAAmB,EAAE,MAAM,IAAI,CAAA;IAC/B,sBAAsB,EAAE,MAAM,IAAI,CAAA;IAClC,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,kBAAkB,EAAE,MAAM,IAAI,CAAA;CAC/B;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,EAAE,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,uBAAuB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;IACtE,oBAAoB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;CACpE"} |
+3
-3
| { | ||
| "name": "@cryptr/cryptr-react", | ||
| "version": "1.3.0", | ||
| "version": "1.3.6", | ||
| "private": false, | ||
| "dependencies": { | ||
| "@cryptr/cryptr-spa-js": "^1.3.0", | ||
| "axios": "^0.27.2", | ||
| "@cryptr/cryptr-spa-js": "^1.3.6", | ||
| "axios": "^1.6.5", | ||
| "prop-types": "^15.8.1" | ||
@@ -9,0 +9,0 @@ }, |
+25
-19
@@ -5,3 +5,2 @@ # 📚 @cryptr/cryptr-react | ||
| See [Online documentation](https://cryptr-react-doc.onrender.com) | ||
| See <a href="https://cryptr-react-doc.onrender.com" target="_blank">Online documentation</a> | ||
@@ -25,7 +24,8 @@ | ||
| - [Cryptr Hooks](#cryptr-hooks) | ||
| - [Since 1.3.6](#since-136) | ||
| - [Components](#components-2) | ||
| ## Installation | ||
| Current version `1.3.0` | ||
| Current version `1.3.6` | ||
@@ -63,14 +63,14 @@ ```bash | ||
| | key | Required/Optional | type | Default | Description | | ||
| | --------------------------- | --------------------- | ------------- | ------- | ---------------------------------------------------- | | ||
| | `tenant_domain` | **required** | string slug | - | Reference to your company entity | | ||
| | `client_id` | **required** | uuid | - | Reference to your front app id | | ||
| | `audience` | **required** | string URL | - | Root URL of your front app | | ||
| | `default_redirect_uri` | **required** | string URL | - | Desired redirection URL after authentication process | | ||
| | `cryptr_base_url` | **required** | string URL | - | URL of your Cryptr service | | ||
| | `default_slo_after_revoke` | **required**(since 1.2.0) | boolean | | Defines if SLO has to be done on SSO logout process | | ||
| | `default_locale` | Optional | string locale | `en` | - | | ||
| | `dedicated_server` | Optional | boolean | false | Contact Cryptr Team to set properly | | ||
| | `fixed_pkce` | Optional | boolean | false | Contact Cryptr Team to set properly | | ||
| | `telemetry` | Optional | boolean | false | Set to `true` if debug | | ||
| | key | Required/Optional | type | Default | Description | | ||
| | -------------------------- | ------------------------- | ------------- | ------- | ---------------------------------------------------- | | ||
| | `tenant_domain` | **required** | string slug | - | Reference to your company entity | | ||
| | `client_id` | **required** | uuid | - | Reference to your front app id | | ||
| | `audience` | **required** | string URL | - | Root URL of your front app | | ||
| | `default_redirect_uri` | **required** | string URL | - | Desired redirection URL after authentication process | | ||
| | `cryptr_base_url` | **required** | string URL | - | URL of your Cryptr service | | ||
| | `default_slo_after_revoke` | **required**(since 1.2.0) | boolean | | Defines if SLO has to be done on SSO logout process | | ||
| | `default_locale` | Optional | string locale | `en` | - | | ||
| | `dedicated_server` | Optional | boolean | false | Contact Cryptr Team to set properly | | ||
| | `fixed_pkce` | Optional | boolean | false | Contact Cryptr Team to set properly | | ||
| | `telemetry` | Optional | boolean | false | Set to `true` if debug | | ||
@@ -194,6 +194,6 @@ ⚠️ `fixed_pkce` will be removed in the future `1.4.0` release version | ||
| - ~~`SignInButton`~~ -> `SignInWithDomainButton` | ||
| - ~~`SignUpButton`~~ -> `SignInWithDomainButton` | ||
| - ~~`SsoGatewayButton`~~ -> `SignInWithDomainButton` | ||
| - ~~`SsoSignInButton`~~ -> `SignInWithDomainButton` | ||
| - ~~`SignInButton`~~ -> `SignInWithDomainButton` | ||
| - ~~`SignUpButton`~~ -> `SignInWithDomainButton` | ||
| - ~~`SsoGatewayButton`~~ -> `SignInWithDomainButton` | ||
| - ~~`SsoSignInButton`~~ -> `SignInWithDomainButton` | ||
@@ -206,1 +206,7 @@ #### Cryptr Hooks | ||
| - ~~`signinWithSSOGateway`~~ | ||
| ### Since 1.3.6 | ||
| #### Components | ||
| - ~~`AccountButton`~~ Discontinued feature |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
44
340%0
-100%208
2.97%1
-98.72%1
-98.91%43093
-98.87%559
-91.02%1
Infinity%+ Added
+ Added
- Removed
Updated
Updated