Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"typescript": "5.1.6"
},
"dependencies": {
"@asgardeo/js-ui-core": "*",
"@asgardeo/js": "*",
"@oxygen-ui/react": "^1.11.0",
"base64url": "^3.0.1",
"buffer": "^6.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/SignIn/SignIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
authorize,
getBranding,
keys,
} from '@asgardeo/js-ui-core';
} from '@asgardeo/js';
import {CircularProgress, ThemeProvider} from '@oxygen-ui/react';
import {FC, ReactElement, useContext, useEffect, useState} from 'react';
import BasicAuth from './fragments/BasicAuth';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {ScreenType, keys} from '@asgardeo/js-ui-core';
import {ScreenType, keys} from '@asgardeo/js';
import {CircularProgress, Grid, Skeleton} from '@oxygen-ui/react';
import {ReactElement, useContext, useState} from 'react';
import AsgardeoContext from '../../../contexts/asgardeo-context';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {ScreenType, keys} from '@asgardeo/js-ui-core';
import {ScreenType, keys} from '@asgardeo/js';
import {CircularProgress, Skeleton} from '@oxygen-ui/react';
import {ReactElement, useContext, useState} from 'react';
import AsgardeoContext from '../../../contexts/asgardeo-context';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/SignIn/fragments/SmsOtp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {ScreenType, keys} from '@asgardeo/js-ui-core';
import {ScreenType, keys} from '@asgardeo/js';
import {CircularProgress} from '@oxygen-ui/react';
import {ReactElement, useState} from 'react';
import useTranslations from '../../../hooks/use-translations';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/SignIn/fragments/Totp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {ScreenType, keys} from '@asgardeo/js-ui-core';
import {ScreenType, keys} from '@asgardeo/js';
import {CircularProgress, Grid, Skeleton} from '@oxygen-ui/react';
import {useState, ReactElement, useContext} from 'react';
import AsgardeoContext from '../../../contexts/asgardeo-context';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/contexts/branding-preference-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {Branding} from '@asgardeo/js-ui-core';
import {Branding} from '@asgardeo/js';
import {Context, createContext} from 'react';

const BrandingPreferenceContext: Context<Branding> = createContext<Branding>(undefined);
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/hooks/use-authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {signOut as signOutApiCall} from '@asgardeo/js-ui-core';
import {signOut as signOutApiCall} from '@asgardeo/js';
import {useContext} from 'react';
import AsgardeoContext from '../contexts/asgardeo-context';
import AuthContext from '../models/auth-context';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/hooks/use-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {UIAuthConfig} from '@asgardeo/js-ui-core';
import {UIAuthConfig} from '@asgardeo/js';
import {useContext} from 'react';
import AsgardeoContext from '../contexts/asgardeo-context';
import UseConfig from '../models/use-config';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/hooks/use-on.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {useContext, useEffect} from 'react';
import AsgardeoContext from '../contexts/asgardeo-context';
import AuthContext from '../models/auth-context';
import {Hooks, UseOnProps} from '../models/use-on';
import {AsgardeoUIException} from '@asgardeo/js-ui-core';
import {AsgardeoUIException} from '@asgardeo/js';

const useOn = (props: UseOnProps) => {
const {callback, event} = props;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/models/asgardeo-provider-props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {BrandingProps, Store, UIAuthConfig} from '@asgardeo/js-ui-core';
import {BrandingProps, Store, UIAuthConfig} from '@asgardeo/js';

interface AsgardeoProviderProps {
branding?: BrandingProps;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/models/auth-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {UIAuthConfig, MeAPIResponse} from '@asgardeo/js-ui-core';
import {UIAuthConfig, MeAPIResponse} from '@asgardeo/js';

interface AuthContext {
accessToken: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/models/basic-auth-props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {Authenticator, BrandingProps} from '@asgardeo/js-ui-core';
import {Authenticator, BrandingProps} from '@asgardeo/js';
import {ReactElement} from 'react';
import {AlertType} from './sign-in';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {BrandingProps} from '@asgardeo/js-ui-core';
import {BrandingProps} from '@asgardeo/js';

interface BrandingPreferenceProviderProps {
branding?: BrandingProps;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/models/email-otp-props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {Authenticator, BrandingProps} from '@asgardeo/js-ui-core';
import {Authenticator, BrandingProps} from '@asgardeo/js';
import {AlertType} from './sign-in';

interface EmailOtpProps {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/models/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {BrandingPreferenceTextProps, ScreenType, TextObject} from '@asgardeo/js-ui-core';
import {BrandingPreferenceTextProps, ScreenType, TextObject} from '@asgardeo/js';

export type I18nLocalization =
| {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/models/public-models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
* under the License.
*/

export type {UIAuthConfig} from '@asgardeo/js-ui-core';
export type {UIAuthConfig} from '@asgardeo/js';
export {Hooks} from './use-on';
2 changes: 1 addition & 1 deletion packages/react/src/models/sign-in.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {BrandingProps} from '@asgardeo/js-ui-core';
import {BrandingProps} from '@asgardeo/js';
import {ReactElement} from 'react';

export interface SignInProps {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/models/totp-props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {Authenticator, BrandingProps} from '@asgardeo/js-ui-core';
import {Authenticator, BrandingProps} from '@asgardeo/js';
import {AlertType} from './sign-in';

interface TotpProps {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/models/use-authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {MeAPIResponse} from '@asgardeo/js-ui-core';
import {MeAPIResponse} from '@asgardeo/js';

interface UseAuthentication {
accessToken: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/models/use-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {UIAuthConfig} from '@asgardeo/js-ui-core';
import {UIAuthConfig} from '@asgardeo/js';

interface UseConfig {
config: UIAuthConfig;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/providers/AsgardeoProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {AuthClient, CryptoUtils, MeAPIResponse, Store, UIAuthClient, getProfileInformation} from '@asgardeo/js-ui-core';
import {AuthClient, CryptoUtils, MeAPIResponse, Store, UIAuthClient, getProfileInformation} from '@asgardeo/js';
import {FC, PropsWithChildren, useCallback, useEffect, useMemo, useRef, useState} from 'react';
import BrandingPreferenceProvider from './BrandingPreferenceProvider';
import I18nProvider from './I18nProvider';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {Branding, getBranding} from '@asgardeo/js-ui-core';
import {Branding, getBranding} from '@asgardeo/js';
import {ThemeProvider} from '@oxygen-ui/react';
import {FC, PropsWithChildren, useContext, useEffect, useState} from 'react';
import AsgardeoContext from '../contexts/asgardeo-context';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/providers/I18nProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {TextObject, getLocalization} from '@asgardeo/js-ui-core';
import {TextObject, getLocalization} from '@asgardeo/js';
import {FC, PropsWithChildren, useCallback, useContext, useMemo, useState} from 'react';
import AsgardeoContext from '../contexts/asgardeo-context';
import I18nContext from '../contexts/i18n-context';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/theme/generate-theme-sign-in.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {BrandingPreferenceTheme, ThemeConfig} from '@asgardeo/js-ui-core';
import {BrandingPreferenceTheme, ThemeConfig} from '@asgardeo/js';
import {extendTheme, Theme} from '@oxygen-ui/react';

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/theme/generate-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {BrandingPreferenceTheme, ThemeConfig} from '@asgardeo/js-ui-core';
import {BrandingPreferenceTheme, ThemeConfig} from '@asgardeo/js';
import {extendTheme, Theme} from '@oxygen-ui/react';

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/utils/crypto-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

import {Buffer} from 'buffer';
import {CryptoUtils, JWKInterface, AsgardeoUIException} from '@asgardeo/js-ui-core';
import {CryptoUtils, JWKInterface, AsgardeoUIException} from '@asgardeo/js';
import base64url from 'base64url';
import sha256 from 'fast-sha256';
import {createLocalJWKSet, jwtVerify} from 'jose';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/utils/session-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

import {Store} from '@asgardeo/js-ui-core';
import {Store} from '@asgardeo/js';

export default class SessionStore implements Store {
private storage: Storage;
Expand Down
Loading