@asgardeo/react 0.2.3 → 0.3.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/README.md +108 -6
- package/dist/AsgardeoReactClient.d.ts +37 -0
- package/dist/__temp__/api.d.ts +229 -0
- package/dist/__temp__/models.d.ts +105 -0
- package/dist/api/scim2/getMeProfile.d.ts +39 -0
- package/dist/api/scim2/getSchemas.d.ts +39 -0
- package/dist/api/scim2/updateMeProfile.d.ts +38 -0
- package/dist/cjs/index.js +1888 -45111
- package/dist/cjs/index.js.map +7 -1
- package/dist/components/actions/SignInButton/BaseSignInButton.d.ts +65 -0
- package/dist/components/actions/SignInButton/SignInButton.d.ts +46 -0
- package/dist/components/actions/SignOutButton/BaseSignOutButton.d.ts +65 -0
- package/dist/components/actions/SignOutButton/SignOutButton.d.ts +44 -0
- package/dist/components/actions/SignUpButton/BaseSignUpButton.d.ts +65 -0
- package/dist/components/actions/SignUpButton/SignUpButton.d.ts +45 -0
- package/dist/components/control/SignedIn.d.ts +45 -0
- package/dist/components/control/SignedOut.d.ts +45 -0
- package/dist/components/presentation/User.d.ts +57 -0
- package/dist/components/presentation/UserDropdown/BaseUserDropdown.d.ts +76 -0
- package/dist/components/presentation/UserDropdown/UserDropdown.d.ts +49 -0
- package/dist/components/presentation/UserProfile/BaseUserProfile.d.ts +42 -0
- package/dist/components/presentation/UserProfile/UserProfile.d.ts +49 -0
- package/dist/{cjs/types/components/SignIn/SignIn.d.ts → components/primitives/Avatar/Avatar.d.ts} +25 -14
- package/dist/{esm/types/models/use-on.d.ts → components/primitives/Checkbox/Checkbox.d.ts} +20 -9
- package/dist/components/primitives/DatePicker/DatePicker.d.ts +50 -0
- package/dist/components/primitives/Popover/Popover.d.ts +59 -0
- package/dist/components/primitives/Select/Select.d.ts +60 -0
- package/dist/components/primitives/TextField/TextField.d.ts +46 -0
- package/dist/contexts/AsgardeoContext.d.ts +56 -0
- package/dist/{cjs/types/contexts/i18n-context.d.ts → hooks/useAsgardeo.d.ts} +4 -5
- package/dist/hooks/useBrowserUrl.d.ts +47 -0
- package/dist/index.d.ts +36 -348
- package/dist/index.js +1935 -0
- package/dist/index.js.map +7 -0
- package/dist/{cjs/types/models/public-models.d.ts → models/config.d.ts} +3 -3
- package/dist/{cjs/types/hooks/use-config.d.ts → providers/AsgardeoProvider.d.ts} +7 -5
- package/dist/{cjs/types/models/asgardeo-provider-props.d.ts → theme/ThemeContext.d.ts} +8 -7
- package/dist/{esm/types/models/asgardeo-provider-props.d.ts → theme/ThemeProvider.d.ts} +7 -7
- package/dist/{cjs/types/models/use-on.d.ts → theme/types.d.ts} +22 -12
- package/dist/{esm/types/oxygen-ui-react-auth-components/index.d.ts → theme/useTheme.d.ts} +3 -3
- package/dist/{cjs/types/models/use-config.d.ts → utils/getMappedUserProfileValue.d.ts} +3 -6
- package/dist/utils/getUserProfile.d.ts +59 -0
- package/package.json +55 -58
- package/dist/cjs/types/components/SignIn/fragments/BasicAuth.d.ts +0 -35
- package/dist/cjs/types/components/SignIn/fragments/EmailOtp.d.ts +0 -32
- package/dist/cjs/types/components/SignIn/fragments/IdentifierFirst.d.ts +0 -35
- package/dist/cjs/types/components/SignIn/fragments/LoginOptionsBox.d.ts +0 -30
- package/dist/cjs/types/components/SignIn/fragments/SmsOtp.d.ts +0 -21
- package/dist/cjs/types/components/SignIn/fragments/Totp.d.ts +0 -33
- package/dist/cjs/types/components/SignInButton/SignInButton.d.ts +0 -29
- package/dist/cjs/types/components/SignOutButton/SignOutButton.d.ts +0 -27
- package/dist/cjs/types/components/SignedIn/SignedIn.d.ts +0 -29
- package/dist/cjs/types/components/SignedOut/SignedOut.d.ts +0 -29
- package/dist/cjs/types/components/public-components.d.ts +0 -22
- package/dist/cjs/types/contexts/asgardeo-context.d.ts +0 -21
- package/dist/cjs/types/contexts/branding-preference-context.d.ts +0 -21
- package/dist/cjs/types/hooks/use-authentication.d.ts +0 -27
- package/dist/cjs/types/hooks/use-on.d.ts +0 -20
- package/dist/cjs/types/hooks/use-translations.d.ts +0 -33
- package/dist/cjs/types/index.d.ts +0 -22
- package/dist/cjs/types/models/auth-context.d.ts +0 -43
- package/dist/cjs/types/models/basic-auth-props.d.ts +0 -29
- package/dist/cjs/types/models/branding-preference-provider-props.d.ts +0 -22
- package/dist/cjs/types/models/email-otp-props.d.ts +0 -26
- package/dist/cjs/types/models/i18n.d.ts +0 -34
- package/dist/cjs/types/models/jwt-verify-options.d.ts +0 -25
- package/dist/cjs/types/models/login-options-box-props.d.ts +0 -24
- package/dist/cjs/types/models/sign-in.d.ts +0 -49
- package/dist/cjs/types/models/signed-props.d.ts +0 -22
- package/dist/cjs/types/models/totp-props.d.ts +0 -26
- package/dist/cjs/types/models/use-authentication.d.ts +0 -29
- package/dist/cjs/types/models/use-translations.d.ts +0 -22
- package/dist/cjs/types/oxygen-ui-react-auth-components/SignIn/SignIn.d.ts +0 -79
- package/dist/cjs/types/oxygen-ui-react-auth-components/SignInAlert/SignInAlert.d.ts +0 -37
- package/dist/cjs/types/oxygen-ui-react-auth-components/SignInButton/SignInButton.d.ts +0 -27
- package/dist/cjs/types/oxygen-ui-react-auth-components/SignInDivider/SignInDivider.d.ts +0 -26
- package/dist/cjs/types/oxygen-ui-react-auth-components/SignInFooter/SignInFooter.d.ts +0 -29
- package/dist/cjs/types/oxygen-ui-react-auth-components/SignInImage/SignInImage.d.ts +0 -23
- package/dist/cjs/types/oxygen-ui-react-auth-components/SignInLink/SignInLink.d.ts +0 -25
- package/dist/cjs/types/oxygen-ui-react-auth-components/SignInPaper/SignInPaper.d.ts +0 -26
- package/dist/cjs/types/oxygen-ui-react-auth-components/SignInPinInput/SignInPinInput.d.ts +0 -30
- package/dist/cjs/types/oxygen-ui-react-auth-components/SignInTextField/SignInTextField.d.ts +0 -26
- package/dist/cjs/types/oxygen-ui-react-auth-components/SignInTypography/SignInTypography.d.ts +0 -32
- package/dist/cjs/types/oxygen-ui-react-auth-components/index.d.ts +0 -19
- package/dist/cjs/types/oxygen-ui-react-auth-components/models/component.d.ts +0 -27
- package/dist/cjs/types/providers/AsgardeoProvider.d.ts +0 -34
- package/dist/cjs/types/providers/BrandingPreferenceProvider.d.ts +0 -32
- package/dist/cjs/types/providers/I18nProvider.d.ts +0 -33
- package/dist/cjs/types/theme/generate-theme-sign-in.d.ts +0 -28
- package/dist/cjs/types/theme/generate-theme.d.ts +0 -30
- package/dist/cjs/types/utils/crypto-utils.d.ts +0 -52
- package/dist/cjs/types/utils/session-store.d.ts +0 -25
- package/dist/esm/index.js +0 -45151
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/types/components/SignIn/SignIn.d.ts +0 -31
- package/dist/esm/types/components/SignIn/fragments/BasicAuth.d.ts +0 -35
- package/dist/esm/types/components/SignIn/fragments/EmailOtp.d.ts +0 -32
- package/dist/esm/types/components/SignIn/fragments/IdentifierFirst.d.ts +0 -35
- package/dist/esm/types/components/SignIn/fragments/LoginOptionsBox.d.ts +0 -30
- package/dist/esm/types/components/SignIn/fragments/SmsOtp.d.ts +0 -21
- package/dist/esm/types/components/SignIn/fragments/Totp.d.ts +0 -33
- package/dist/esm/types/components/SignInButton/SignInButton.d.ts +0 -29
- package/dist/esm/types/components/SignOutButton/SignOutButton.d.ts +0 -27
- package/dist/esm/types/components/SignedIn/SignedIn.d.ts +0 -29
- package/dist/esm/types/components/SignedOut/SignedOut.d.ts +0 -29
- package/dist/esm/types/components/public-components.d.ts +0 -22
- package/dist/esm/types/contexts/asgardeo-context.d.ts +0 -21
- package/dist/esm/types/contexts/branding-preference-context.d.ts +0 -21
- package/dist/esm/types/contexts/i18n-context.d.ts +0 -21
- package/dist/esm/types/hooks/use-authentication.d.ts +0 -27
- package/dist/esm/types/hooks/use-config.d.ts +0 -23
- package/dist/esm/types/hooks/use-on.d.ts +0 -20
- package/dist/esm/types/hooks/use-translations.d.ts +0 -33
- package/dist/esm/types/index.d.ts +0 -22
- package/dist/esm/types/models/auth-context.d.ts +0 -43
- package/dist/esm/types/models/basic-auth-props.d.ts +0 -29
- package/dist/esm/types/models/branding-preference-provider-props.d.ts +0 -22
- package/dist/esm/types/models/email-otp-props.d.ts +0 -26
- package/dist/esm/types/models/i18n.d.ts +0 -34
- package/dist/esm/types/models/jwt-verify-options.d.ts +0 -25
- package/dist/esm/types/models/login-options-box-props.d.ts +0 -24
- package/dist/esm/types/models/public-models.d.ts +0 -19
- package/dist/esm/types/models/sign-in.d.ts +0 -49
- package/dist/esm/types/models/signed-props.d.ts +0 -22
- package/dist/esm/types/models/totp-props.d.ts +0 -26
- package/dist/esm/types/models/use-authentication.d.ts +0 -29
- package/dist/esm/types/models/use-config.d.ts +0 -22
- package/dist/esm/types/models/use-translations.d.ts +0 -22
- package/dist/esm/types/oxygen-ui-react-auth-components/SignIn/SignIn.d.ts +0 -79
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInAlert/SignInAlert.d.ts +0 -37
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInButton/SignInButton.d.ts +0 -27
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInDivider/SignInDivider.d.ts +0 -26
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInFooter/SignInFooter.d.ts +0 -29
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInImage/SignInImage.d.ts +0 -23
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInLink/SignInLink.d.ts +0 -25
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInPaper/SignInPaper.d.ts +0 -26
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInPinInput/SignInPinInput.d.ts +0 -30
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInTextField/SignInTextField.d.ts +0 -26
- package/dist/esm/types/oxygen-ui-react-auth-components/SignInTypography/SignInTypography.d.ts +0 -32
- package/dist/esm/types/oxygen-ui-react-auth-components/models/component.d.ts +0 -27
- package/dist/esm/types/providers/AsgardeoProvider.d.ts +0 -34
- package/dist/esm/types/providers/BrandingPreferenceProvider.d.ts +0 -32
- package/dist/esm/types/providers/I18nProvider.d.ts +0 -33
- package/dist/esm/types/theme/generate-theme-sign-in.d.ts +0 -28
- package/dist/esm/types/theme/generate-theme.d.ts +0 -30
- package/dist/esm/types/utils/crypto-utils.d.ts +0 -52
- package/dist/esm/types/utils/session-store.d.ts +0 -25
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
-
*
|
|
4
|
-
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
-
* in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing,
|
|
12
|
-
* software distributed under the License is distributed on an
|
|
13
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
* KIND, either express or implied. See the License for the
|
|
15
|
-
* specific language governing permissions and limitations
|
|
16
|
-
* under the License.
|
|
17
|
-
*/
|
|
18
|
-
import { TextFieldProps } from '@oxygen-ui/react';
|
|
19
|
-
import { ElementType, ForwardRefExoticComponent } from 'react';
|
|
20
|
-
import { WithWrapperProps } from '../models/component';
|
|
21
|
-
import './sign-in-text-field.scss';
|
|
22
|
-
export type SignInTextFieldProps<C extends ElementType = ElementType> = {
|
|
23
|
-
component?: C;
|
|
24
|
-
} & Omit<TextFieldProps, 'component'>;
|
|
25
|
-
declare const SignInTextField: ForwardRefExoticComponent<SignInTextFieldProps> & WithWrapperProps;
|
|
26
|
-
export default SignInTextField;
|
package/dist/esm/types/oxygen-ui-react-auth-components/SignInTypography/SignInTypography.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
-
*
|
|
4
|
-
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
-
* in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing,
|
|
12
|
-
* software distributed under the License is distributed on an
|
|
13
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
* KIND, either express or implied. See the License for the
|
|
15
|
-
* specific language governing permissions and limitations
|
|
16
|
-
* under the License.
|
|
17
|
-
*/
|
|
18
|
-
import { TypographyProps } from '@oxygen-ui/react';
|
|
19
|
-
import { ElementType, ForwardRefExoticComponent } from 'react';
|
|
20
|
-
import { WithWrapperProps } from '../models/component';
|
|
21
|
-
import './sign-in-typography.scss';
|
|
22
|
-
export type SignInTypographyProps<C extends ElementType = ElementType> = {
|
|
23
|
-
component?: C;
|
|
24
|
-
} & Omit<TypographyProps, 'component'> & ({
|
|
25
|
-
subtitle?: never;
|
|
26
|
-
title?: boolean;
|
|
27
|
-
} | {
|
|
28
|
-
subtitle?: boolean;
|
|
29
|
-
title?: never;
|
|
30
|
-
});
|
|
31
|
-
declare const SignInTypography: ForwardRefExoticComponent<SignInTypographyProps> & WithWrapperProps;
|
|
32
|
-
export default SignInTypography;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
-
*
|
|
4
|
-
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
-
* in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing,
|
|
12
|
-
* software distributed under the License is distributed on an
|
|
13
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
* KIND, either express or implied. See the License for the
|
|
15
|
-
* specific language governing permissions and limitations
|
|
16
|
-
* under the License.
|
|
17
|
-
*/
|
|
18
|
-
export type WithWrapperProps = MuiWrapperProps;
|
|
19
|
-
export interface MuiWrapperProps {
|
|
20
|
-
/**
|
|
21
|
-
* Component name with `Mui` prefix.
|
|
22
|
-
* To provide maximum flexibility and performance, MUI needs a way to know the nature
|
|
23
|
-
* of the child elements a component receives.
|
|
24
|
-
* @see {@link https://mui.com/material-ui/guides/composition/#wrapping-components}
|
|
25
|
-
*/
|
|
26
|
-
muiName: string;
|
|
27
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
-
*
|
|
4
|
-
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
-
* in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing,
|
|
12
|
-
* software distributed under the License is distributed on an
|
|
13
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
* KIND, either express or implied. See the License for the
|
|
15
|
-
* specific language governing permissions and limitations
|
|
16
|
-
* under the License.
|
|
17
|
-
*/
|
|
18
|
-
import { FC, PropsWithChildren } from 'react';
|
|
19
|
-
import AsgardeoProviderProps from '../models/asgardeo-provider-props';
|
|
20
|
-
/**
|
|
21
|
-
* `AsgardeoProvider` is a component that provides an Asgardeo context to all its children.
|
|
22
|
-
* It takes an object of type `AsgardeProviderProps` as props, which includes the children to render,
|
|
23
|
-
* a configuration object, a store instance, and a branding object.
|
|
24
|
-
*
|
|
25
|
-
* @param {PropsWithChildren<AsgardeoProviderProps>} props - The properties passed to the component.
|
|
26
|
-
* @param {ReactNode} props.children - The children to render inside the provider.
|
|
27
|
-
* @param {Config} props.config - The configuration object for the Asgardeo context.
|
|
28
|
-
* @param {Store} [props.store] - An optional store instance. If not provided, a new SessionStore will be created.
|
|
29
|
-
* @param {Branding} props.branding - The branding object for the Asgardeo context.
|
|
30
|
-
*
|
|
31
|
-
* @returns {ReactElement} A React element that provides the Asgardeo context to all its children.
|
|
32
|
-
*/
|
|
33
|
-
declare const AsgardeoProvider: FC<PropsWithChildren<AsgardeoProviderProps>>;
|
|
34
|
-
export default AsgardeoProvider;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
-
*
|
|
4
|
-
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
-
* in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing,
|
|
12
|
-
* software distributed under the License is distributed on an
|
|
13
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
* KIND, either express or implied. See the License for the
|
|
15
|
-
* specific language governing permissions and limitations
|
|
16
|
-
* under the License.
|
|
17
|
-
*/
|
|
18
|
-
import { FC, PropsWithChildren } from 'react';
|
|
19
|
-
import BrandingPreferenceProviderProps from '../models/branding-preference-provider-props';
|
|
20
|
-
/**
|
|
21
|
-
* `BrandingPreferenceProvider` is a component that provides a branding context to all its children.
|
|
22
|
-
* It takes an object of type `BrandingPreferenceProviderProps` as props, which includes the children to render,
|
|
23
|
-
* and a branding object.
|
|
24
|
-
*
|
|
25
|
-
* @param {PropsWithChildren<BrandingPreferenceProviderProps>} props - The properties passed to the component.
|
|
26
|
-
* @param {ReactNode} props.children - The children to render inside the provider.
|
|
27
|
-
* @param {Branding} props.branding - The branding object for the context.
|
|
28
|
-
*
|
|
29
|
-
* @returns {ReactElement} A React element that provides the branding context to all its children.
|
|
30
|
-
*/
|
|
31
|
-
declare const BrandingPreferenceProvider: FC<PropsWithChildren<BrandingPreferenceProviderProps>>;
|
|
32
|
-
export default BrandingPreferenceProvider;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
-
*
|
|
4
|
-
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
-
* in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing,
|
|
12
|
-
* software distributed under the License is distributed on an
|
|
13
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
* KIND, either express or implied. See the License for the
|
|
15
|
-
* specific language governing permissions and limitations
|
|
16
|
-
* under the License.
|
|
17
|
-
*/
|
|
18
|
-
import { FC, PropsWithChildren } from 'react';
|
|
19
|
-
import { I18nProviderProps } from '../models/i18n';
|
|
20
|
-
/**
|
|
21
|
-
* `I18nProvider` is a component that provides an internationalization context to all its children.
|
|
22
|
-
* It takes an object of type `I18nProviderProps` as props, which includes the children to render,
|
|
23
|
-
* a locale override, and text overrides.
|
|
24
|
-
*
|
|
25
|
-
* @param {PropsWithChildren<I18nProviderProps>} props - The properties passed to the component.
|
|
26
|
-
* @param {ReactNode} props.children - The children to render inside the provider.
|
|
27
|
-
* @param {string} [props.providerLocaleOverride] - Optional locale override.
|
|
28
|
-
* @param {TextObject} [props.providerTextOverrides] - Optional text overrides.
|
|
29
|
-
*
|
|
30
|
-
* @returns {ReactElement} A React element that provides the internationalization context to all its children.
|
|
31
|
-
*/
|
|
32
|
-
declare const I18nProvider: FC<PropsWithChildren<I18nProviderProps>>;
|
|
33
|
-
export default I18nProvider;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
-
*
|
|
4
|
-
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
-
* in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing,
|
|
12
|
-
* software distributed under the License is distributed on an
|
|
13
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
* KIND, either express or implied. See the License for the
|
|
15
|
-
* specific language governing permissions and limitations
|
|
16
|
-
* under the License.
|
|
17
|
-
*/
|
|
18
|
-
import { BrandingPreferenceTheme } from '@asgardeo/js';
|
|
19
|
-
import { Theme } from '@oxygen-ui/react';
|
|
20
|
-
/**
|
|
21
|
-
* This function generates the theme for the sign-in component.
|
|
22
|
-
*
|
|
23
|
-
* @param {BrandingPreferenceTheme} brandingPreferenceTheme - The branding preference theme.
|
|
24
|
-
*
|
|
25
|
-
* @return {Theme} The generated theme.
|
|
26
|
-
*/
|
|
27
|
-
declare const generateThemeSignIn: (brandingPreferenceTheme: BrandingPreferenceTheme) => Theme;
|
|
28
|
-
export default generateThemeSignIn;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
-
*
|
|
4
|
-
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
-
* in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing,
|
|
12
|
-
* software distributed under the License is distributed on an
|
|
13
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
* KIND, either express or implied. See the License for the
|
|
15
|
-
* specific language governing permissions and limitations
|
|
16
|
-
* under the License.
|
|
17
|
-
*/
|
|
18
|
-
import { BrandingPreferenceTheme } from '@asgardeo/js';
|
|
19
|
-
import { Theme } from '@oxygen-ui/react';
|
|
20
|
-
/**
|
|
21
|
-
* `generateTheme` is a function that generates a theme based on the provided branding preferences.
|
|
22
|
-
* It takes an object of type `BrandingPreferenceTheme` as an argument, which includes the active
|
|
23
|
-
* theme and configurations for different themes.
|
|
24
|
-
*
|
|
25
|
-
* @param {BrandingPreferenceTheme} brandingPreferenceTheme - The branding preferences used to generate the theme.
|
|
26
|
-
*
|
|
27
|
-
* @returns {Theme} A theme object that can be used with the `extendTheme` function from `@oxygen-ui/react`.
|
|
28
|
-
*/
|
|
29
|
-
declare const generateTheme: (brandingPreferenceTheme: BrandingPreferenceTheme) => Theme;
|
|
30
|
-
export default generateTheme;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
-
*
|
|
4
|
-
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
-
* in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing,
|
|
12
|
-
* software distributed under the License is distributed on an
|
|
13
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
* KIND, either express or implied. See the License for the
|
|
15
|
-
* specific language governing permissions and limitations
|
|
16
|
-
* under the License.
|
|
17
|
-
*/
|
|
18
|
-
/// <reference types="node" />
|
|
19
|
-
import { Buffer } from 'buffer';
|
|
20
|
-
import { CryptoUtils, JWKInterface } from '@asgardeo/js';
|
|
21
|
-
export default class SPACryptoUtils implements CryptoUtils<Buffer | string> {
|
|
22
|
-
/**
|
|
23
|
-
* Get URL encoded string.
|
|
24
|
-
*
|
|
25
|
-
* @returns {string} base 64 url encoded value.
|
|
26
|
-
*/
|
|
27
|
-
base64URLEncode(value: Buffer | string): string;
|
|
28
|
-
/**
|
|
29
|
-
* Get URL decoded string.
|
|
30
|
-
*
|
|
31
|
-
* @returns {string} base 64 url decoded value.
|
|
32
|
-
*/
|
|
33
|
-
base64URLDecode(value: string): string;
|
|
34
|
-
/**
|
|
35
|
-
* Get SHA256 hash of the given data.
|
|
36
|
-
*
|
|
37
|
-
* @returns {string | Buffer} SHA256 hash of the data.
|
|
38
|
-
*/
|
|
39
|
-
hashSha256(data: string): string | Buffer;
|
|
40
|
-
/**
|
|
41
|
-
* Generate random bytes.
|
|
42
|
-
*
|
|
43
|
-
* @returns {string | Buffer} Random bytes.
|
|
44
|
-
*/
|
|
45
|
-
generateRandomBytes(length: number): string | Buffer;
|
|
46
|
-
/**
|
|
47
|
-
* Verify the given JWT.
|
|
48
|
-
*
|
|
49
|
-
* @returns {Promise<boolean>} Promise containing the verification status.
|
|
50
|
-
*/
|
|
51
|
-
verifyJwt(idToken: string, jwk: Partial<JWKInterface>, algorithms: string[], clientID: string, issuer: string, subject: string, clockTolerance?: number, validateJwtIssuer?: boolean): Promise<boolean>;
|
|
52
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
-
*
|
|
4
|
-
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
-
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
-
* in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing,
|
|
12
|
-
* software distributed under the License is distributed on an
|
|
13
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
* KIND, either express or implied. See the License for the
|
|
15
|
-
* specific language governing permissions and limitations
|
|
16
|
-
* under the License.
|
|
17
|
-
*/
|
|
18
|
-
import { Store } from '@asgardeo/js';
|
|
19
|
-
export default class SessionStore implements Store {
|
|
20
|
-
private storage;
|
|
21
|
-
constructor();
|
|
22
|
-
setData(key: string, value: string): Promise<void>;
|
|
23
|
-
getData(key: string): Promise<string>;
|
|
24
|
-
removeData(key: string): Promise<void>;
|
|
25
|
-
}
|