Hiyve Components - v1.0.0
    Preparing search index...

    Interface WaitingRoomAdmittanceProps

    Props for the WaitingRoomAdmittance component.

    This component shows waiting participants and provides admit/reject controls. It can be displayed as a popover, inline list, or dialog.

    <WaitingRoomAdmittance
    participants={waitingList}
    onAdmit={async (userId) => {
    await client.admitWaitingRoomUser({ userToAdmit: userId });
    }}
    onReject={async (userId) => {
    await client.rejectWaitingRoomUser({ userToReject: userId });
    }}
    variant="popover"
    anchorEl={anchorEl}
    open={open}
    onClose={() => setOpen(false)}
    />
    interface WaitingRoomAdmittanceProps {
        anchorEl?: HTMLElement | null;
        autoAdmitSystemUsers?: boolean;
        colors?: Partial<WaitingRoomAdmittanceColors>;
        icons?: Partial<WaitingRoomAdmittanceIcons>;
        labels?: Partial<WaitingRoomAdmittanceLabels>;
        notificationSoundUrl?: string;
        onAdmit?: (userId: string) => void | Promise<void>;
        onAdmitAll?: () => void | Promise<void>;
        onClose?: () => void;
        onReject?: (userId: string) => void | Promise<void>;
        open?: boolean;
        participants?: WaitingParticipant[];
        playNotificationSound?: boolean;
        renderProps?: WaitingRoomAdmittanceRenderProps;
        styles?: Partial<WaitingRoomAdmittanceStyles>;
        sx?: SxProps<Theme>;
        systemUserPrefixes?: readonly string[];
        variant?: WaitingRoomAdmittanceVariant;
    }
    Index

    Properties

    anchorEl?: HTMLElement | null

    Anchor element for popover variant

    autoAdmitSystemUsers?: boolean

    Automatically admit system users (recorders, streamers, transcribers). These are identified by userId prefix — see systemUserPrefixes for the default list (case-insensitive; covers recorder-/recorder_, rectrans-/rectrans_, streamer-/streamer_, transcriber-/transcriber_) — or by the ghost-camera naming convention (a device an in-room participant paired as a secondary camera feed), which is always treated as a system user.

    false
    
    colors?: Partial<WaitingRoomAdmittanceColors>

    Custom colors

    Custom icons

    labels?: Partial<WaitingRoomAdmittanceLabels>

    Custom labels for i18n support

    notificationSoundUrl?: string

    Custom notification sound URL

    onAdmit?: (userId: string) => void | Promise<void>

    Callback when a participant is admitted. When used inside HiyveProvider, this is automatically connected to admitUser().

    onAdmitAll?: () => void | Promise<void>

    Callback when all participants are admitted

    onClose?: () => void

    Callback when the popover/dialog is closed

    onReject?: (userId: string) => void | Promise<void>

    Callback when a participant is rejected. When used inside HiyveProvider, this is automatically connected to rejectUser().

    open?: boolean

    Whether the popover/dialog is open

    participants?: WaitingParticipant[]

    List of participants waiting to be admitted. When used inside HiyveProvider, this is automatically populated from useWaitingRoom().

    playNotificationSound?: boolean

    Play a sound when new participants arrive

    Render props for advanced customization

    styles?: Partial<WaitingRoomAdmittanceStyles>

    Custom styles

    sx?: SxProps<Theme>

    MUI sx prop for container styling

    systemUserPrefixes?: readonly string[]

    UserId prefixes that identify system users for autoAdmitSystemUsers. Case-insensitive prefix match against both the waiting user's id and external id. Override when your deployment's bots join with different id patterns. Paired secondary cameras (ghost cameras) are detected independently of this list.

    DEFAULT_SYSTEM_USER_PREFIXES
    

    Display variant: popover, inline, or dialog