@nivaro/react 0.1.25 → 0.1.27

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +6 -3
  2. package/dist/index.js +4950 -4863
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -153,6 +153,9 @@ export declare interface ChatOnlineUser {
153
153
  display_name: string | null;
154
154
  role_name?: string | null;
155
155
  current_path?: string | null;
156
+ /** Reported by the client: a tab left open is not the same as being here. */
157
+ is_idle?: boolean;
158
+ last_active?: string | null;
156
159
  }
157
160
 
158
161
  export declare function ChatPanel({ open, onClose, renderMessageBody, requestedDm }: {
@@ -1133,7 +1136,7 @@ export declare function PipelinePanel({ collection, item, defaultExpanded, title
1133
1136
  defaultExpanded?: boolean;
1134
1137
  title?: string;
1135
1138
  showApprovalChain?: boolean;
1136
- onBeforeTransition?: () => boolean;
1139
+ onBeforeTransition?: () => boolean | Promise<boolean>;
1137
1140
  addendumPending?: boolean;
1138
1141
  addendumView?: boolean;
1139
1142
  }): JSX.Element | null;
@@ -1141,7 +1144,7 @@ export declare function PipelinePanel({ collection, item, defaultExpanded, title
1141
1144
  export declare function PipelineTransitionButtons({ collection, item, onBeforeTransition }: {
1142
1145
  collection: string;
1143
1146
  item: string;
1144
- onBeforeTransition?: () => boolean;
1147
+ onBeforeTransition?: () => boolean | Promise<boolean>;
1145
1148
  }): JSX.Element | null;
1146
1149
 
1147
1150
  export declare function ProfileView({ userId, className }: {
@@ -1708,7 +1711,7 @@ export declare function useTypingIndicator(room: string | null): {
1708
1711
  typingText: string | null;
1709
1712
  };
1710
1713
 
1711
- export declare function useUnreadChirp(totalUnread: number): void;
1714
+ export declare function useUnreadChirp(totalUnread: number, rooms?: RoomInfo[]): void;
1712
1715
 
1713
1716
  export declare function useWatchFields(form: UseNivaroFormReturn, fields: string[]): Record<string, unknown>;
1714
1717