@gisce/react-ooui 2.119.0-alpha.6 → 2.119.0-alpha.8

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.
@@ -10,12 +10,15 @@ export type CommentsSidePanelProps = {
10
10
  resourceId: number;
11
11
  onClose: () => void;
12
12
  onAddComment: (body: string) => Promise<void>;
13
- onFetchComments: () => void;
13
+ onFetchComments: (opts?: {
14
+ silent?: boolean;
15
+ }) => void;
14
16
  onFetchMentionUsers: (query: string) => Promise<MentionUser[]>;
15
17
  currentUserId?: number;
16
18
  canAddComment?: boolean;
17
19
  participants?: Participant[];
18
20
  participantsLoading?: boolean;
21
+ isParticipant?: boolean;
19
22
  isMuted?: boolean;
20
23
  muteUpdating?: boolean;
21
24
  onToggleMute?: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"CommentsSidePanel.d.ts","sourceRoot":"","sources":["../../src/actionbar/CommentsSidePanel.tsx"],"names":[],"mappings":";AAsBA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAiB3E,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,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAC/D,aAAa,CAAC,EAAE,MAAM,CAAC;IAC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O,CAAC;IACxB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,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;AA8sBF,eAAO,MAAM,iBAAiB,8CAxca,sBAAsB,oDAwcA,CAAC"}
@@ -2,10 +2,11 @@
2
2
  import { Participant } from '../*/types/comments';
3
3
  export type ParticipantsSectionProps = {
4
4
  participants: Participant[];
5
+ isParticipant: boolean;
5
6
  isMuted: boolean;
6
7
  loading: boolean;
7
8
  updating: boolean;
8
9
  onToggleMute: () => void;
9
10
  };
10
- export declare const ParticipantsSection: import("react").MemoExoticComponent<({ participants, isMuted, loading, updating, onToggleMute, }: ParticipantsSectionProps) => import("react/jsx-runtime").JSX.Element>;
11
+ export declare const ParticipantsSection: import("react").MemoExoticComponent<({ participants, isParticipant, isMuted, loading, updating, onToggleMute, }: ParticipantsSectionProps) => import("react/jsx-runtime").JSX.Element>;
11
12
  //# sourceMappingURL=ParticipantsSection.d.ts.map
@@ -1 +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"}
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,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AA4IF,eAAO,MAAM,mBAAmB,mHAnI7B,wBAAwB,6CAmI0C,CAAC"}
@@ -7,9 +7,9 @@ export type UseParticipantsOpts = {
7
7
  };
8
8
  export declare const useParticipants: (opts: UseParticipantsOpts) => {
9
9
  isMuted: boolean;
10
+ isParticipant: boolean;
10
11
  updating: boolean;
11
12
  toggleMute: () => Promise<void>;
12
- isParticipant: boolean;
13
13
  cancelRequest: (requestId?: string | undefined) => void;
14
14
  };
15
15
  //# sourceMappingURL=useParticipants.d.ts.map
@@ -1 +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
+ {"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;AAOF,eAAO,MAAM,eAAe,SAAU,mBAAmB;;;;;;CAuExD,CAAC"}
@@ -9,7 +9,9 @@ export declare const useRecordComments: (opts: UseRecordCommentsOpts) => {
9
9
  participants: Participant[];
10
10
  userStatus: UserStatus | null;
11
11
  loading: boolean;
12
- fetchComments: () => Promise<void>;
12
+ fetchComments: (opts?: {
13
+ silent?: boolean;
14
+ }) => Promise<void>;
13
15
  addComment: (body: string) => Promise<any>;
14
16
  fetchMentionUsers: (query: string) => Promise<MentionUser[]>;
15
17
  markAsRead: (messageId: number) => Promise<void>;
@@ -1 +1 @@
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"}
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;;;;;2BAwB3C;QAAE,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE;uBA6CrB,MAAM;+BAiBL,MAAM,KAAG,QAAQ,WAAW,EAAE,CAAC;4BAqB3B,MAAM;;;CAoC3B,CAAC"}
@@ -155,6 +155,7 @@ declare const _default: {
155
155
  comments: string;
156
156
  writeComment: string;
157
157
  noComments: string;
158
+ newMessages: string;
158
159
  noMatches: string;
159
160
  createNewRecord: string;
160
161
  clearSelection: string;
@@ -162,6 +163,7 @@ declare const _default: {
162
163
  subscribe: string;
163
164
  receivingNotifications: string;
164
165
  mutedNotifications: string;
166
+ notParticipant: string;
165
167
  participants: string;
166
168
  };
167
169
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ca_ES.d.ts","sourceRoot":"","sources":["../../src/locales/ca_ES.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA+KE"}
1
+ {"version":3,"file":"ca_ES.d.ts","sourceRoot":"","sources":["../../src/locales/ca_ES.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAkLE"}
@@ -155,6 +155,7 @@ declare const _default: {
155
155
  comments: string;
156
156
  writeComment: string;
157
157
  noComments: string;
158
+ newMessages: string;
158
159
  noMatches: string;
159
160
  createNewRecord: string;
160
161
  clearSelection: string;
@@ -162,6 +163,7 @@ declare const _default: {
162
163
  subscribe: string;
163
164
  receivingNotifications: string;
164
165
  mutedNotifications: string;
166
+ notParticipant: string;
165
167
  participants: string;
166
168
  };
167
169
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"en_US.d.ts","sourceRoot":"","sources":["../../src/locales/en_US.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA4KE"}
1
+ {"version":3,"file":"en_US.d.ts","sourceRoot":"","sources":["../../src/locales/en_US.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA+KE"}
@@ -155,6 +155,7 @@ declare const _default: {
155
155
  comments: string;
156
156
  writeComment: string;
157
157
  noComments: string;
158
+ newMessages: string;
158
159
  noMatches: string;
159
160
  createNewRecord: string;
160
161
  clearSelection: string;
@@ -162,6 +163,7 @@ declare const _default: {
162
163
  subscribe: string;
163
164
  receivingNotifications: string;
164
165
  mutedNotifications: string;
166
+ notParticipant: string;
165
167
  participants: string;
166
168
  };
167
169
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"es_ES.d.ts","sourceRoot":"","sources":["../../src/locales/es_ES.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAkLE"}
1
+ {"version":3,"file":"es_ES.d.ts","sourceRoot":"","sources":["../../src/locales/es_ES.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAqLE"}