@atlaskit/collab-provider 9.44.1 → 9.45.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/collab-provider
2
2
 
3
+ ## 9.45.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#163776](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/163776)
8
+ [`45d76610f271d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/45d76610f271d) -
9
+ Add support for optional property, isGuest, on CollabProvider
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 9.44.1
4
16
 
5
17
  ### Patch Changes
@@ -1,45 +1,45 @@
1
1
  {
2
- "extends": "../../../../tsconfig.entry-points.jira.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../tsDist/@atlaskit__collab-provider/app",
7
- "composite": true,
8
- "rootDir": "../"
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*"
18
- ],
19
- "references": [
20
- {
21
- "path": "../../../analytics/analytics-gas-types/afm-jira/tsconfig.json"
22
- },
23
- {
24
- "path": "../../../analytics/analytics-listeners/afm-jira/tsconfig.json"
25
- },
26
- {
27
- "path": "../../editor-common/afm-jira/tsconfig.json"
28
- },
29
- {
30
- "path": "../../editor-json-transformer/afm-jira/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
34
- },
35
- {
36
- "path": "../../prosemirror-collab/afm-jira/tsconfig.json"
37
- },
38
- {
39
- "path": "../../../data/ufo-external/afm-jira/tsconfig.json"
40
- },
41
- {
42
- "path": "../../../elements/util-service-support/afm-jira/tsconfig.json"
43
- }
44
- ]
45
- }
2
+ "extends": "../../../../tsconfig.entry-points.jira.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../tsDist/@atlaskit__collab-provider/app",
7
+ "rootDir": "../",
8
+ "composite": true
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*"
18
+ ],
19
+ "references": [
20
+ {
21
+ "path": "../../../analytics/analytics-gas-types/afm-jira/tsconfig.json"
22
+ },
23
+ {
24
+ "path": "../../../analytics/analytics-listeners/afm-jira/tsconfig.json"
25
+ },
26
+ {
27
+ "path": "../../editor-common/afm-jira/tsconfig.json"
28
+ },
29
+ {
30
+ "path": "../../editor-json-transformer/afm-jira/tsconfig.json"
31
+ },
32
+ {
33
+ "path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
34
+ },
35
+ {
36
+ "path": "../../prosemirror-collab/afm-jira/tsconfig.json"
37
+ },
38
+ {
39
+ "path": "../../../data/ufo-external/afm-jira/tsconfig.json"
40
+ },
41
+ {
42
+ "path": "../../../elements/util-service-support/afm-jira/tsconfig.json"
43
+ }
44
+ ]
45
+ }
@@ -30,7 +30,8 @@ var createParticipantFromPayload = exports.createParticipantFromPayload = /*#__P
30
30
  lastActive: timestamp,
31
31
  userId: userId,
32
32
  clientId: clientId,
33
- permit: permit
33
+ permit: permit,
34
+ isGuest: user === null || user === void 0 ? void 0 : user.isGuest
34
35
  };
35
36
  return _context.abrupt("return", participant);
36
37
  case 6:
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/collab-provider";
8
- var version = exports.version = "9.44.1";
8
+ var version = exports.version = "9.45.0";
9
9
  var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
10
10
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
11
11
  };
@@ -19,7 +19,8 @@ export const createParticipantFromPayload = async (payload, getUser) => {
19
19
  lastActive: timestamp,
20
20
  userId,
21
21
  clientId,
22
- permit
22
+ permit,
23
+ isGuest: user === null || user === void 0 ? void 0 : user.isGuest
23
24
  };
24
25
  return participant;
25
26
  };
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/collab-provider";
2
- export const version = "9.44.1";
2
+ export const version = "9.45.0";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -23,7 +23,8 @@ export var createParticipantFromPayload = /*#__PURE__*/function () {
23
23
  lastActive: timestamp,
24
24
  userId: userId,
25
25
  clientId: clientId,
26
- permit: permit
26
+ permit: permit,
27
+ isGuest: user === null || user === void 0 ? void 0 : user.isGuest
27
28
  };
28
29
  return _context.abrupt("return", participant);
29
30
  case 6:
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/collab-provider";
2
- export var version = "9.44.1";
2
+ export var version = "9.45.0";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -2,7 +2,7 @@ import type { PresencePayload } from '../types';
2
2
  import type { ProviderParticipant } from '@atlaskit/editor-common/collab';
3
3
  export declare const PARTICIPANT_UPDATE_INTERVAL: number;
4
4
  export type ParticipantsMap = Map<string, ProviderParticipant>;
5
- export type GetUserType = ((userId: string) => Promise<Pick<ProviderParticipant, 'name' | 'avatar' | 'userId' | 'email'>>) | undefined;
5
+ export type GetUserType = ((userId: string) => Promise<Pick<ProviderParticipant, 'name' | 'avatar' | 'userId' | 'email' | 'isGuest'>>) | undefined;
6
6
  export declare const createParticipantFromPayload: (payload: import("../types").PresenceData & {
7
7
  timestamp: number;
8
8
  } & {
@@ -2,7 +2,7 @@ import type { PresencePayload } from '../types';
2
2
  import type { ProviderParticipant } from '@atlaskit/editor-common/collab';
3
3
  export declare const PARTICIPANT_UPDATE_INTERVAL: number;
4
4
  export type ParticipantsMap = Map<string, ProviderParticipant>;
5
- export type GetUserType = ((userId: string) => Promise<Pick<ProviderParticipant, 'name' | 'avatar' | 'userId' | 'email'>>) | undefined;
5
+ export type GetUserType = ((userId: string) => Promise<Pick<ProviderParticipant, 'name' | 'avatar' | 'userId' | 'email' | 'isGuest'>>) | undefined;
6
6
  export declare const createParticipantFromPayload: (payload: import("../types").PresenceData & {
7
7
  timestamp: number;
8
8
  } & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/collab-provider",
3
- "version": "9.44.1",
3
+ "version": "9.45.0",
4
4
  "description": "A provider for collaborative editing.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -34,8 +34,8 @@
34
34
  "dependencies": {
35
35
  "@atlaskit/analytics-gas-types": "^5.1.0",
36
36
  "@atlaskit/analytics-listeners": "^8.11.0",
37
- "@atlaskit/editor-common": "^94.9.0",
38
- "@atlaskit/editor-json-transformer": "^8.20.0",
37
+ "@atlaskit/editor-common": "^94.20.0",
38
+ "@atlaskit/editor-json-transformer": "^8.21.0",
39
39
  "@atlaskit/editor-prosemirror": "6.0.0",
40
40
  "@atlaskit/platform-feature-flags": "^0.3.0",
41
41
  "@atlaskit/prosemirror-collab": "^0.10.0",