@@ -1258,6 +1258,24 @@ declare module "SendbirdUIKitGlobal" {
12581258 onThemeChange ?( theme : string ) : void ;
12591259 onEditProfile ?( updatedUser : User ) : void ;
12601260 }
1261+
1262+ /** UI */
1263+ export interface ModalProps {
1264+ className ?: string ;
1265+ hideFooter ?: boolean ;
1266+ disabled ?: boolean ;
1267+ type ?: string ;
1268+ isFullScreenOnMobile ?: boolean ;
1269+ isCloseOnClickOutside ?: boolean ;
1270+ children : React . ReactElement | string ;
1271+ /**
1272+ * Do not use this! onCancel will be deprecated in v4. Use onClose instead.
1273+ */
1274+ onCancel ?: ( ) => void ;
1275+ onClose ?: ( ) => void ;
1276+ onSubmit ?: ( ) => void ;
1277+ renderHeader ?: ( ) => React . ReactElement ;
1278+ }
12611279}
12621280
12631281declare module '@sendbird/uikit-react' {
@@ -1286,9 +1304,10 @@ declare module '@sendbird/uikit-react/App' {
12861304}
12871305
12881306declare module '@sendbird/uikit-react/SendbirdProvider' {
1289- import type { SendbirdProviderProps } from 'SendbirdUIKitGlobal' ;
1290- const SendbirdProvider : React . FunctionComponent < SendbirdProviderProps > ;
1307+ import type { SendbirdProviderProps , SendBirdState } from 'SendbirdUIKitGlobal' ;
1308+ export const SendbirdProvider : React . FunctionComponent < SendbirdProviderProps > ;
12911309 export default SendbirdProvider ;
1310+ export function useSendbirdStateContext ( ) : SendBirdState ;
12921311}
12931312
12941313declare module '@sendbird/uikit-react/sendbirdSelectors' {
@@ -1299,7 +1318,7 @@ declare module '@sendbird/uikit-react/sendbirdSelectors' {
12991318
13001319declare module '@sendbird/uikit-react/useSendbirdStateContext' {
13011320 import type { SendBirdState } from 'SendbirdUIKitGlobal' ;
1302- function useSendbirdStateContext ( ) : SendBirdState ;
1321+ export function useSendbirdStateContext ( ) : SendBirdState ;
13031322 export default useSendbirdStateContext ;
13041323}
13051324
@@ -1334,11 +1353,36 @@ declare module '@sendbird/uikit-react/handlers/UserEventHandler' {
13341353 export default UserEventHandler ;
13351354}
13361355
1356+ /** pubSub */
1357+ declare module '@Sendbird/uikit-react/pubSub/topics' {
1358+ export enum PUBSUB_TOPICS {
1359+ // Group Channel
1360+ USER_UPDATED = 'USER_UPDATED' ,
1361+ SEND_MESSAGE_START = 'SEND_MESSAGE_START' ,
1362+ SEND_MESSAGE_FAILED = 'SEND_MESSAGE_FAILED' ,
1363+ SEND_USER_MESSAGE = 'SEND_USER_MESSAGE' ,
1364+ SEND_FILE_MESSAGE = 'SEND_FILE_MESSAGE' ,
1365+ ON_FILE_INFO_UPLOADED = 'ON_FILE_INFO_UPLOADED' ,
1366+ UPDATE_USER_MESSAGE = 'UPDATE_USER_MESSAGE' ,
1367+ DELETE_MESSAGE = 'DELETE_MESSAGE' ,
1368+ LEAVE_CHANNEL = 'LEAVE_CHANNEL' ,
1369+ CREATE_CHANNEL = 'CREATE_CHANNEL' ,
1370+ // Open Channel
1371+ UPDATE_OPEN_CHANNEL = 'UPDATE_OPEN_CHANNEL' ,
1372+ }
1373+ export enum PublishingModuleType {
1374+ CHANNEL = 'CHANNEL' ,
1375+ THREAD = 'THREAD' ,
1376+ }
1377+ export default PUBSUB_TOPICS ;
1378+ }
1379+
13371380/** hooks */
13381381declare module '@sendbird/uikit-react/hooks/useModal' {
1382+ import type { ModalProps } from 'SendbirdUIKitGlobal' ;
13391383 export type OpenGlobalModalProps = {
13401384 modalProps : ModalProps ;
1341- childElement : ( props : { closeModal : ( ) => void } ) => ReactElement ;
1385+ childElement : ( props : { closeModal : ( ) => void } ) => React . ReactElement ;
13421386 } ;
13431387 export interface GlobalModalContextInterface {
13441388 openModal : ( props : OpenGlobalModalProps ) => void ;
@@ -2568,22 +2612,7 @@ declare module '@sendbird/uikit-react/ui/MessageStatus' {
25682612}
25692613
25702614declare module '@sendbird/uikit-react/ui/Modal' {
2571- interface ModalProps {
2572- className ?: string ;
2573- hideFooter ?: boolean ;
2574- disabled ?: boolean ;
2575- type ?: string ;
2576- isFullScreenOnMobile ?: boolean ;
2577- isCloseOnClickOutside ?: boolean ;
2578- children : React . ReactElement | string ;
2579- /**
2580- * Do not use this! onCancel will be deprecated in v4. Use onClose instead.
2581- */
2582- onCancel ?: ( ) => void ;
2583- onClose ?: ( ) => void ;
2584- onSubmit ?: ( ) => void ;
2585- renderHeader ?: ( ) => React . ReactElement ;
2586- }
2615+ import type { ModalProps } from 'SendbirdUIKitGlobal' ;
25872616 const Modal : React . FC < ModalProps > ;
25882617 export default Modal ;
25892618}
0 commit comments