@nivaro/react 0.2.1 → 0.2.3
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/dist/full.css +1 -1
- package/dist/index.d.ts +24 -1
- package/dist/index.js +39282 -38905
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -813,11 +813,14 @@ declare interface ChatReaction {
|
|
|
813
813
|
user_name: string | null;
|
|
814
814
|
}
|
|
815
815
|
|
|
816
|
-
export declare function ChatRoomList({ rooms, onOpen, onNewGroup }: {
|
|
816
|
+
export declare function ChatRoomList({ rooms, onOpen, onNewGroup, archivedView, loading }: {
|
|
817
817
|
rooms: RoomInfo[];
|
|
818
818
|
onOpen: (room: RoomInfo) => void;
|
|
819
819
|
/** Opens the group-conversation composer (host renders the dialog). */
|
|
820
820
|
onNewGroup?: () => void;
|
|
821
|
+
/** The Archived tab: no assistant entry, rows offer Unarchive. */
|
|
822
|
+
archivedView?: boolean;
|
|
823
|
+
loading?: boolean;
|
|
821
824
|
}): JSX.Element;
|
|
822
825
|
|
|
823
826
|
export declare function ChatRoomView({ room, label, onBack, onOpenSettings, renderMessageBody, initialUnread }: {
|
|
@@ -3103,6 +3106,10 @@ export declare interface IntegrationStatusBannerProps {
|
|
|
3103
3106
|
itemId: string | number;
|
|
3104
3107
|
}
|
|
3105
3108
|
|
|
3109
|
+
/** Whether this browser pinned the chat panel open — hosts read it for their
|
|
3110
|
+
* initial open state, so a pinned panel is still there after a reload. */
|
|
3111
|
+
export declare function isChatPanelPinned(): boolean;
|
|
3112
|
+
|
|
3106
3113
|
export declare function ItemActionButtons({ collection, itemId }: {
|
|
3107
3114
|
collection: string;
|
|
3108
3115
|
itemId: string;
|
|
@@ -5638,6 +5645,8 @@ export declare interface RoomInfo {
|
|
|
5638
5645
|
notify_mode: 'all' | 'mentions';
|
|
5639
5646
|
joined: boolean;
|
|
5640
5647
|
channel: ChannelMeta | null;
|
|
5648
|
+
/** Put away by this person — lives in the Archived tab, never alerts. */
|
|
5649
|
+
archived?: boolean;
|
|
5641
5650
|
}
|
|
5642
5651
|
|
|
5643
5652
|
/**
|
|
@@ -6543,6 +6552,14 @@ export declare type UseNivaroFormReturn = {
|
|
|
6543
6552
|
gridFlushersRef: default_2.MutableRefObject<Map<string, () => Promise<void>>>;
|
|
6544
6553
|
};
|
|
6545
6554
|
|
|
6555
|
+
/**
|
|
6556
|
+
* The person's own sound preference — `preferences.notification_sound`
|
|
6557
|
+
* ('off' | 'subtle' | 'chime'), the same setting the notification bell plays.
|
|
6558
|
+
* Shares the profile card's query key and shape, so changing it there applies
|
|
6559
|
+
* to chat at once. Unset reads as off, which is what the profile shows.
|
|
6560
|
+
*/
|
|
6561
|
+
export declare function useNotificationSoundPreference(): string;
|
|
6562
|
+
|
|
6546
6563
|
/**
|
|
6547
6564
|
* Online-user set for presence dots in user pickers (#284); consumers get a
|
|
6548
6565
|
* Set of upper-cased user ids. Shares the chat's ['presence-online'] entry —
|
|
@@ -6552,6 +6569,8 @@ export declare type UseNivaroFormReturn = {
|
|
|
6552
6569
|
*/
|
|
6553
6570
|
export declare function useOnlineUsers(enabled?: boolean): Set<string>;
|
|
6554
6571
|
|
|
6572
|
+
export declare function useOpenRoomRegistration(room: string | null | undefined): void;
|
|
6573
|
+
|
|
6555
6574
|
export declare function useOptionalNivaroClient(): NivaroClient | null;
|
|
6556
6575
|
|
|
6557
6576
|
export declare function useOptionalRealtime(): RealtimeAdapter | null;
|
|
@@ -6666,6 +6685,10 @@ export declare function useRoomMembership(): {
|
|
|
6666
6685
|
room: string;
|
|
6667
6686
|
mode: "all" | "mentions";
|
|
6668
6687
|
}, unknown>;
|
|
6688
|
+
setArchived: UseMutationResult<unknown, Error, {
|
|
6689
|
+
room: string;
|
|
6690
|
+
archived: boolean;
|
|
6691
|
+
}, unknown>;
|
|
6669
6692
|
};
|
|
6670
6693
|
|
|
6671
6694
|
export declare function useRoomPins(room: string | null): NoInfer<PinnedMessage[]>;
|