@rpcbase/ui 0.131.0 → 0.132.0

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.
@@ -0,0 +1,7 @@
1
+ export declare function NotificationsButton({ unseenCount, unreadCount, onClick, className, }: {
2
+ unseenCount?: number;
3
+ unreadCount?: number;
4
+ onClick?: () => void;
5
+ className?: string;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=NotificationsButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationsButton.d.ts","sourceRoot":"","sources":["../../../lib/components/Notifications/NotificationsButton.tsx"],"names":[],"mappings":"AAKA,wBAAgB,mBAAmB,CAAC,EAClC,WAAW,EACX,WAAW,EACX,OAAO,EACP,SAAS,GACV,EAAE;IACD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,2CAyBA"}
@@ -0,0 +1,8 @@
1
+ export declare function NotificationsDrawer({ open, onOpenChange, className, limit, defaultUnreadOnly, }: {
2
+ open: boolean;
3
+ onOpenChange: (open: boolean) => void;
4
+ className?: string;
5
+ limit?: number;
6
+ defaultUnreadOnly?: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=NotificationsDrawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationsDrawer.d.ts","sourceRoot":"","sources":["../../../lib/components/Notifications/NotificationsDrawer.tsx"],"names":[],"mappings":"AA4EA,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,YAAY,EACZ,SAAS,EACT,KAAU,EACV,iBAAyB,GAC1B,EAAE;IACD,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,2CAwPA"}
@@ -0,0 +1,17 @@
1
+ import { type ReactNode } from "react";
2
+ import type { NotificationItem } from "./types";
3
+ export type NotificationsRealtimeState = {
4
+ notifications: NotificationItem[];
5
+ unreadCount: number;
6
+ unseenCount: number;
7
+ loading: boolean;
8
+ error: unknown;
9
+ };
10
+ export declare function NotificationsRealtimeProvider({ userId, limit, toastOnNew, children, }: {
11
+ userId?: string;
12
+ limit?: number;
13
+ toastOnNew?: boolean;
14
+ children: ReactNode;
15
+ }): import("react/jsx-runtime").JSX.Element;
16
+ export declare const useNotificationsRealtime: () => NotificationsRealtimeState | null;
17
+ //# sourceMappingURL=NotificationsRealtimeProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationsRealtimeProvider.d.ts","sourceRoot":"","sources":["../../../lib/components/Notifications/NotificationsRealtimeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAI7F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AA0B/C,MAAM,MAAM,0BAA0B,GAAG;IACvC,aAAa,EAAE,gBAAgB,EAAE,CAAA;IACjC,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;AA0CD,wBAAgB,6BAA6B,CAAC,EAC5C,MAAM,EACN,KAAW,EACX,UAAiB,EACjB,QAAQ,GACT,EAAE;IACD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,SAAS,CAAA;CACpB,2CA2GA;AAED,eAAO,MAAM,wBAAwB,QAAO,0BAA0B,GAAG,IAExE,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { NotificationTopicCatalogItem } from "./types";
2
+ export declare function NotificationsSettings({ className, topics, }: {
3
+ className?: string;
4
+ topics?: NotificationTopicCatalogItem[];
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=NotificationsSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationsSettings.d.ts","sourceRoot":"","sources":["../../../lib/components/Notifications/NotificationsSettings.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAqD,4BAA4B,EAA+B,MAAM,SAAS,CAAA;AAyF3I,wBAAgB,qBAAqB,CAAC,EACpC,SAAS,EACT,MAAM,GACP,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,4BAA4B,EAAE,CAAA;CACxC,2CA+LA"}
@@ -0,0 +1,6 @@
1
+ export * from "./types";
2
+ export * from "./NotificationsButton";
3
+ export * from "./NotificationsDrawer";
4
+ export * from "./NotificationsRealtimeProvider";
5
+ export * from "./NotificationsSettings";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/Notifications/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yBAAyB,CAAA"}
@@ -0,0 +1,30 @@
1
+ export type NotificationDigestFrequency = "off" | "daily" | "weekly";
2
+ export type NotificationTopicPreference = {
3
+ topic: string;
4
+ inApp: boolean;
5
+ emailDigest: boolean;
6
+ push: boolean;
7
+ };
8
+ export type NotificationTopicCatalogItem = {
9
+ topic: string;
10
+ title: string;
11
+ description?: string;
12
+ };
13
+ export type NotificationSettings = {
14
+ digestFrequency: NotificationDigestFrequency;
15
+ topicPreferences: NotificationTopicPreference[];
16
+ lastDigestSentAt?: string;
17
+ };
18
+ export type NotificationItem = {
19
+ id: string;
20
+ topic?: string;
21
+ title: string;
22
+ body?: string;
23
+ url?: string;
24
+ createdAt: string;
25
+ seenAt?: string;
26
+ readAt?: string;
27
+ archivedAt?: string;
28
+ metadata?: Record<string, unknown>;
29
+ };
30
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../lib/components/Notifications/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,2BAA2B,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEpE,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;IACd,WAAW,EAAE,OAAO,CAAA;IACpB,IAAI,EAAE,OAAO,CAAA;CACd,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,eAAe,EAAE,2BAA2B,CAAA;IAC5C,gBAAgB,EAAE,2BAA2B,EAAE,CAAA;IAC/C,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC,CAAA"}
@@ -8,4 +8,5 @@ export * from "./Input";
8
8
  export * from "./I18nField";
9
9
  export * from "./PhoneNumberInput";
10
10
  export * from "./header";
11
+ export * from "./Notifications";
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA"}