@gisce/react-ooui 2.119.0-alpha.1 → 2.119.0-alpha.2

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.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { RecordComment, MentionUser } from '../*/types/comments';
2
+ import { RecordComment, MentionUser, Participant } from '../*/types/comments';
3
3
  export declare const COMMENTS_PANEL_WIDTH = 450;
4
4
  export declare const COMMENTS_PANEL_GAP = 8;
5
5
  export type CommentsSidePanelProps = {
@@ -14,6 +14,13 @@ export type CommentsSidePanelProps = {
14
14
  onFetchMentionUsers: (query: string) => Promise<MentionUser[]>;
15
15
  currentUserId?: number;
16
16
  canAddComment?: boolean;
17
+ participants?: Participant[];
18
+ participantsLoading?: boolean;
19
+ isMuted?: boolean;
20
+ muteUpdating?: boolean;
21
+ onToggleMute?: () => void;
22
+ lastMessageRead?: number | false;
23
+ onMarkAsRead?: (messageId: number) => void;
17
24
  };
18
25
  export declare const CommentsSidePanel: import("react").MemoExoticComponent<(props: CommentsSidePanelProps) => import("react/jsx-runtime").JSX.Element | null>;
19
26
  //# sourceMappingURL=CommentsSidePanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CommentsSidePanel.d.ts","sourceRoot":"","sources":["../../src/actionbar/CommentsSidePanel.tsx"],"names":[],"mappings":";AAsBA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAgB9D,eAAO,MAAM,oBAAoB,MAAM,CAAC;AACxC,eAAO,MAAM,kBAAkB,IAAI,CAAC;AAoBpC,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EA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OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACjC,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C,CAAC;AAqkBF,eAAO,MAAM,iBAAiB,8CAtXa,sBAAsB,oDAsXA,CAAC"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Participant } from '../*/types/comments';
3
+ export type ParticipantsSectionProps = {
4
+ participants: Participant[];
5
+ isMuted: boolean;
6
+ loading: boolean;
7
+ updating: boolean;
8
+ onToggleMute: () => void;
9
+ };
10
+ export declare const ParticipantsSection: import("react").MemoExoticComponent<({ participants, isMuted, loading, updating, onToggleMute, }: ParticipantsSectionProps) => import("react/jsx-runtime").JSX.Element>;
11
+ //# sourceMappingURL=ParticipantsSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParticipantsSection.d.ts","sourceRoot":"","sources":["../../src/actionbar/ParticipantsSection.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM/C,MAAM,MAAM,wBAAwB,GAAG;IACrC,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AA4HF,eAAO,MAAM,mBAAmB,oGApH7B,wBAAwB,6CAoH0C,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { UserStatus } from '../*/types/comments';
2
+ export type UseParticipantsOpts = {
3
+ model: string;
4
+ resourceId?: number;
5
+ userStatus: UserStatus | null;
6
+ context?: any;
7
+ };
8
+ export declare const useParticipants: (opts: UseParticipantsOpts) => {
9
+ isMuted: boolean;
10
+ updating: boolean;
11
+ toggleMute: () => Promise<void>;
12
+ isParticipant: boolean;
13
+ cancelRequest: (requestId?: string | undefined) => void;
14
+ };
15
+ //# sourceMappingURL=useParticipants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useParticipants.d.ts","sourceRoot":"","sources":["../../src/hooks/useParticipants.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,GAAG,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,eAAe,SAAU,mBAAmB;;;;;;CA8CxD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { RecordComment, MentionUser } from '../*/types/comments';
1
+ import { RecordComment, MentionUser, Participant, UserStatus } from '../*/types/comments';
2
2
  export type UseRecordCommentsOpts = {
3
3
  model: string;
4
4
  resourceId?: number;
@@ -6,10 +6,13 @@ export type UseRecordCommentsOpts = {
6
6
  };
7
7
  export declare const useRecordComments: (opts: UseRecordCommentsOpts) => {
8
8
  comments: RecordComment[];
9
+ participants: Participant[];
10
+ userStatus: UserStatus | null;
9
11
  loading: boolean;
10
12
  fetchComments: () => Promise<void>;
11
13
  addComment: (body: string) => Promise<any>;
12
14
  fetchMentionUsers: (query: string) => Promise<MentionUser[]>;
15
+ markAsRead: (messageId: number) => Promise<void>;
13
16
  cancelRequest: (requestId?: string | undefined) => void;
14
17
  commentCount: number;
15
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useRecordComments.d.ts","sourceRoot":"","sources":["../../src/hooks/useRecordComments.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE9D,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,GAAG,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,iBAAiB,SAAU,qBAAqB;;;;uBAgC5C,MAAM;+BAiBL,MAAM,KAAG,QAAQ,WAAW,EAAE,CAAC;;;CA6BhD,CAAC"}
1
+ {"version":3,"file":"useRecordComments.d.ts","sourceRoot":"","sources":["../../src/hooks/useRecordComments.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,aAAa,EACb,WAAW,EACX,WAAW,EACX,UAAU,EACX,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,GAAG,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,iBAAiB,SAAU,qBAAqB;;;;;;uBAkD5C,MAAM;+BAiBL,MAAM,KAAG,QAAQ,WAAW,EAAE,CAAC;4BAqB3B,MAAM;;;CAoC3B,CAAC"}
@@ -158,6 +158,11 @@ declare const _default: {
158
158
  noMatches: string;
159
159
  createNewRecord: string;
160
160
  clearSelection: string;
161
+ unsubscribe: string;
162
+ subscribe: string;
163
+ receivingNotifications: string;
164
+ mutedNotifications: string;
165
+ participants: string;
161
166
  };
162
167
  export default _default;
163
168
  //# sourceMappingURL=ca_ES.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ca_ES.d.ts","sourceRoot":"","sources":["../../src/locales/ca_ES.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAyKE"}
1
+ {"version":3,"file":"ca_ES.d.ts","sourceRoot":"","sources":["../../src/locales/ca_ES.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA+KE"}
@@ -158,6 +158,11 @@ declare const _default: {
158
158
  noMatches: string;
159
159
  createNewRecord: string;
160
160
  clearSelection: string;
161
+ unsubscribe: string;
162
+ subscribe: string;
163
+ receivingNotifications: string;
164
+ mutedNotifications: string;
165
+ participants: string;
161
166
  };
162
167
  export default _default;
163
168
  //# sourceMappingURL=en_US.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"en_US.d.ts","sourceRoot":"","sources":["../../src/locales/en_US.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAsKE"}
1
+ {"version":3,"file":"en_US.d.ts","sourceRoot":"","sources":["../../src/locales/en_US.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA4KE"}
@@ -158,6 +158,11 @@ declare const _default: {
158
158
  noMatches: string;
159
159
  createNewRecord: string;
160
160
  clearSelection: string;
161
+ unsubscribe: string;
162
+ subscribe: string;
163
+ receivingNotifications: string;
164
+ mutedNotifications: string;
165
+ participants: string;
161
166
  };
162
167
  export default _default;
163
168
  //# sourceMappingURL=es_ES.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"es_ES.d.ts","sourceRoot":"","sources":["../../src/locales/es_ES.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA4KE"}
1
+ {"version":3,"file":"es_ES.d.ts","sourceRoot":"","sources":["../../src/locales/es_ES.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAkLE"}