UNPKG

@asgardeo/react

Version:
66 lines (65 loc) 1.99 kB
/** * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import { User } from '@asgardeo/browser'; import { FC, ReactElement } from 'react'; interface ExtendedFlatSchema { path?: string; schemaId?: string; } interface Schema extends ExtendedFlatSchema { caseExact?: boolean; description?: string; displayName?: string; displayOrder?: string; multiValued?: boolean; mutability?: string; name?: string; required?: boolean; returned?: string; subAttributes?: Schema[]; type?: string; uniqueness?: string; value?: any; } export interface BaseUserProfileProps { attributeMapping?: { [key: string]: string | string[] | undefined; firstName?: string | string[]; lastName?: string | string[]; picture?: string | string[]; username?: string | string[]; }; cardLayout?: boolean; className?: string; editable?: boolean; fallback?: ReactElement; flattenedProfile?: User; hideFields?: string[]; mode?: 'inline' | 'popup'; onOpenChange?: (open: boolean) => void; onUpdate?: (payload: any) => Promise<void>; open?: boolean; profile?: User; schemas?: Schema[]; showFields?: string[]; title?: string; error?: string | null; isLoading?: boolean; } declare const BaseUserProfile: FC<BaseUserProfileProps>; export default BaseUserProfile;