@atlaskit/collab-provider 9.4.0 → 9.5.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.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/participants/participants-helper.js +1 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/participants/participants-helper.js +1 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/participants/participants-helper.js +1 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/participants/participants-helper.d.ts +2 -1
- package/dist/types/types.d.ts +2 -2
- package/dist/types-ts4.5/participants/participants-helper.d.ts +2 -1
- package/dist/types-ts4.5/types.d.ts +2 -2
- package/package.json +1 -1
- package/report.api.md +11 -3
- package/tmp/api-report-tmp.d.ts +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 9.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`27f5fbdbb04`](https://bitbucket.org/atlassian/atlassian-frontend/commits/27f5fbdbb04) - ESS-3718: add email as a field in ProviderParticipant to support JWM presence/multiplayer bugfix
|
|
8
|
+
|
|
3
9
|
## 9.4.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -25,6 +25,7 @@ var createParticipantFromPayload = /*#__PURE__*/function () {
|
|
|
25
25
|
participant = {
|
|
26
26
|
name: (user === null || user === void 0 ? void 0 : user.name) || '',
|
|
27
27
|
avatar: (user === null || user === void 0 ? void 0 : user.avatar) || '',
|
|
28
|
+
email: (user === null || user === void 0 ? void 0 : user.email) || '',
|
|
28
29
|
sessionId: sessionId,
|
|
29
30
|
lastActive: timestamp,
|
|
30
31
|
userId: userId,
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = "@atlaskit/collab-provider";
|
|
8
8
|
exports.name = name;
|
|
9
|
-
var version = "9.
|
|
9
|
+
var version = "9.5.0";
|
|
10
10
|
exports.version = version;
|
|
11
11
|
var nextMajorVersion = function nextMajorVersion() {
|
|
12
12
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
package/dist/cjs/version.json
CHANGED
|
@@ -13,6 +13,7 @@ export const createParticipantFromPayload = async (payload, getUser) => {
|
|
|
13
13
|
const participant = {
|
|
14
14
|
name: (user === null || user === void 0 ? void 0 : user.name) || '',
|
|
15
15
|
avatar: (user === null || user === void 0 ? void 0 : user.avatar) || '',
|
|
16
|
+
email: (user === null || user === void 0 ? void 0 : user.email) || '',
|
|
16
17
|
sessionId,
|
|
17
18
|
lastActive: timestamp,
|
|
18
19
|
userId,
|
package/dist/es2019/version.json
CHANGED
|
@@ -18,6 +18,7 @@ export var createParticipantFromPayload = /*#__PURE__*/function () {
|
|
|
18
18
|
participant = {
|
|
19
19
|
name: (user === null || user === void 0 ? void 0 : user.name) || '',
|
|
20
20
|
avatar: (user === null || user === void 0 ? void 0 : user.avatar) || '',
|
|
21
|
+
email: (user === null || user === void 0 ? void 0 : user.email) || '',
|
|
21
22
|
sessionId: sessionId,
|
|
22
23
|
lastActive: timestamp,
|
|
23
24
|
userId: userId,
|
package/dist/esm/version.json
CHANGED
|
@@ -3,9 +3,10 @@ export declare const PARTICIPANT_UPDATE_INTERVAL: number;
|
|
|
3
3
|
export type ProviderParticipant = CollabParticipant & {
|
|
4
4
|
userId: string;
|
|
5
5
|
clientId: number | string;
|
|
6
|
+
email: string;
|
|
6
7
|
};
|
|
7
8
|
export type ParticipantsMap = Map<string, ProviderParticipant>;
|
|
8
|
-
export type GetUserType = ((userId: string) => Promise<Pick<ProviderParticipant, 'name' | 'avatar' | 'userId'>>) | undefined;
|
|
9
|
+
export type GetUserType = ((userId: string) => Promise<Pick<ProviderParticipant, 'name' | 'avatar' | 'userId' | 'email'>>) | undefined;
|
|
9
10
|
export declare const createParticipantFromPayload: (payload: import("../types").PresenceData & {
|
|
10
11
|
timestamp: number;
|
|
11
12
|
} & {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { DisconnectReason } from './disconnected-reason-mapper';
|
|
|
6
6
|
import type { InternalError } from './errors/error-types';
|
|
7
7
|
import type { ProviderError } from './errors/error-types';
|
|
8
8
|
import { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
9
|
-
import {
|
|
9
|
+
import { GetUserType } from './participants/participants-helper';
|
|
10
10
|
import AnalyticsHelper from './analytics/analytics-helper';
|
|
11
11
|
export interface CollabParticipant {
|
|
12
12
|
lastActive: number;
|
|
@@ -78,7 +78,7 @@ export interface Config {
|
|
|
78
78
|
featureFlags?: {
|
|
79
79
|
[key: string]: boolean;
|
|
80
80
|
};
|
|
81
|
-
getUser
|
|
81
|
+
getUser?: GetUserType;
|
|
82
82
|
/**
|
|
83
83
|
* If provided, permissionTokenRefresh is called whenever a new JWT token is required.
|
|
84
84
|
*/
|
|
@@ -3,9 +3,10 @@ export declare const PARTICIPANT_UPDATE_INTERVAL: number;
|
|
|
3
3
|
export type ProviderParticipant = CollabParticipant & {
|
|
4
4
|
userId: string;
|
|
5
5
|
clientId: number | string;
|
|
6
|
+
email: string;
|
|
6
7
|
};
|
|
7
8
|
export type ParticipantsMap = Map<string, ProviderParticipant>;
|
|
8
|
-
export type GetUserType = ((userId: string) => Promise<Pick<ProviderParticipant, 'name' | 'avatar' | 'userId'>>) | undefined;
|
|
9
|
+
export type GetUserType = ((userId: string) => Promise<Pick<ProviderParticipant, 'name' | 'avatar' | 'userId' | 'email'>>) | undefined;
|
|
9
10
|
export declare const createParticipantFromPayload: (payload: import("../types").PresenceData & {
|
|
10
11
|
timestamp: number;
|
|
11
12
|
} & {
|
|
@@ -6,7 +6,7 @@ import type { DisconnectReason } from './disconnected-reason-mapper';
|
|
|
6
6
|
import type { InternalError } from './errors/error-types';
|
|
7
7
|
import type { ProviderError } from './errors/error-types';
|
|
8
8
|
import { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
9
|
-
import {
|
|
9
|
+
import { GetUserType } from './participants/participants-helper';
|
|
10
10
|
import AnalyticsHelper from './analytics/analytics-helper';
|
|
11
11
|
export interface CollabParticipant {
|
|
12
12
|
lastActive: number;
|
|
@@ -78,7 +78,7 @@ export interface Config {
|
|
|
78
78
|
featureFlags?: {
|
|
79
79
|
[key: string]: boolean;
|
|
80
80
|
};
|
|
81
|
-
getUser
|
|
81
|
+
getUser?: GetUserType;
|
|
82
82
|
/**
|
|
83
83
|
* If provided, permissionTokenRefresh is called whenever a new JWT token is required.
|
|
84
84
|
*/
|
package/package.json
CHANGED
package/report.api.md
CHANGED
|
@@ -268,9 +268,7 @@ interface Config {
|
|
|
268
268
|
// (undocumented)
|
|
269
269
|
getAnalyticsWebClient?: Promise<AnalyticsWebClient>;
|
|
270
270
|
// (undocumented)
|
|
271
|
-
getUser
|
|
272
|
-
userId: string,
|
|
273
|
-
): Promise<Pick<ProviderParticipant, 'avatar' | 'name' | 'userId'>>;
|
|
271
|
+
getUser?: GetUserType;
|
|
274
272
|
// (undocumented)
|
|
275
273
|
initialDraft?: InitialDraft;
|
|
276
274
|
// (undocumented)
|
|
@@ -338,6 +336,15 @@ type FailToSave = {
|
|
|
338
336
|
status?: number;
|
|
339
337
|
};
|
|
340
338
|
|
|
339
|
+
// @public (undocumented)
|
|
340
|
+
type GetUserType =
|
|
341
|
+
| ((
|
|
342
|
+
userId: string,
|
|
343
|
+
) => Promise<
|
|
344
|
+
Pick<ProviderParticipant, 'avatar' | 'email' | 'name' | 'userId'>
|
|
345
|
+
>)
|
|
346
|
+
| undefined;
|
|
347
|
+
|
|
341
348
|
// @public (undocumented)
|
|
342
349
|
interface InitAndAuthData {
|
|
343
350
|
// (undocumented)
|
|
@@ -559,6 +566,7 @@ export type ProviderError =
|
|
|
559
566
|
type ProviderParticipant = CollabParticipant & {
|
|
560
567
|
userId: string;
|
|
561
568
|
clientId: number | string;
|
|
569
|
+
email: string;
|
|
562
570
|
};
|
|
563
571
|
|
|
564
572
|
// @public (undocumented)
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -240,7 +240,7 @@ interface Config {
|
|
|
240
240
|
// (undocumented)
|
|
241
241
|
getAnalyticsWebClient?: Promise<AnalyticsWebClient>;
|
|
242
242
|
// (undocumented)
|
|
243
|
-
getUser
|
|
243
|
+
getUser?: GetUserType;
|
|
244
244
|
// (undocumented)
|
|
245
245
|
initialDraft?: InitialDraft;
|
|
246
246
|
// (undocumented)
|
|
@@ -308,6 +308,9 @@ type FailToSave = {
|
|
|
308
308
|
status?: number;
|
|
309
309
|
};
|
|
310
310
|
|
|
311
|
+
// @public (undocumented)
|
|
312
|
+
type GetUserType = ((userId: string) => Promise<Pick<ProviderParticipant, 'avatar' | 'email' | 'name' | 'userId'>>) | undefined;
|
|
313
|
+
|
|
311
314
|
// @public (undocumented)
|
|
312
315
|
interface InitAndAuthData {
|
|
313
316
|
// (undocumented)
|
|
@@ -511,6 +514,7 @@ export type ProviderError = DocumentNotFound | DocumentNotRestore | FailToSave |
|
|
|
511
514
|
type ProviderParticipant = CollabParticipant & {
|
|
512
515
|
userId: string;
|
|
513
516
|
clientId: number | string;
|
|
517
|
+
email: string;
|
|
514
518
|
};
|
|
515
519
|
|
|
516
520
|
// @public (undocumented)
|