@atlaskit/collab-provider 9.18.2 → 9.18.4

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.18.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#58848](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58848) [`ec070585b78d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ec070585b78d) - fix the FF keys
8
+
9
+ ## 9.18.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147) [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) - Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
14
+
3
15
  ## 9.18.2
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,43 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.confluence.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "composite": true,
7
+ "outDir": "../dist",
8
+ "rootDir": "../",
9
+ "baseUrl": "../"
10
+ },
11
+ "include": [
12
+ "../src/**/*.ts",
13
+ "../src/**/*.tsx"
14
+ ],
15
+ "exclude": [
16
+ "../src/**/__tests__/*",
17
+ "../src/**/*.test.*",
18
+ "../src/**/test.*"
19
+ ],
20
+ "references": [
21
+ {
22
+ "path": "../../../analytics/analytics-gas-types/afm-cc/tsconfig.json"
23
+ },
24
+ {
25
+ "path": "../../../analytics/analytics-listeners/afm-cc/tsconfig.json"
26
+ },
27
+ {
28
+ "path": "../../editor-common/afm-cc/tsconfig.json"
29
+ },
30
+ {
31
+ "path": "../../editor-json-transformer/afm-cc/tsconfig.json"
32
+ },
33
+ {
34
+ "path": "../../prosemirror-collab/afm-cc/tsconfig.json"
35
+ },
36
+ {
37
+ "path": "../../../data/ufo-external/afm-cc/tsconfig.json"
38
+ },
39
+ {
40
+ "path": "../../../elements/util-service-support/afm-cc/tsconfig.json"
41
+ }
42
+ ]
43
+ }
@@ -50,7 +50,7 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
50
50
  function DocumentService(participantsService, analyticsHelper, fetchCatchup, fetchReconcile, providerEmitCallback, broadcast, getUserId, onErrorHandled, metadataService) {
51
51
  var _this = this;
52
52
  var enableErrorOnFailedDocumentApply = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : false;
53
- var enableSendStepsQueue = arguments.length > 10 && arguments[10] !== undefined ? arguments[10] : (0, _featureFlags.getCollabProviderFeatureFlag)('sendStepsQueueFF');
53
+ var enableSendStepsQueue = arguments.length > 10 && arguments[10] !== undefined ? arguments[10] : (0, _featureFlags.getCollabProviderFeatureFlag)('sendStepsQueue');
54
54
  (0, _classCallCheck2.default)(this, DocumentService);
55
55
  // Fires analytics to editor when collab editor cannot sync up
56
56
  (0, _defineProperty2.default)(this, "stepRejectCounter", 0);
@@ -10,8 +10,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
10
10
  var defaultNCSFeatureFlags = {
11
11
  testFF: false,
12
12
  socketMessageMetricsFF: false,
13
- sendStepsQueueFF: false,
14
- blockViewOnlyFF: false
13
+ sendStepsQueue: false,
14
+ blockViewOnly: false
15
15
  };
16
16
 
17
17
  /**
@@ -21,8 +21,8 @@ var productKeys = {
21
21
  confluence: {
22
22
  testFF: 'confluence.frontend.collab.provider.testFF',
23
23
  socketMessageMetricsFF: 'confluence.frontend.collab.provider.socketMessageMetricsFF',
24
- sendStepsQueueFF: 'confluence.frontend.collab.provider.sendStepsQueueFF',
25
- blockViewOnlyFF: 'confluence.frontend.collab.provider.blockViewOnlyFF'
24
+ sendStepsQueue: 'confluence.frontend.ncs.send-steps-queue',
25
+ blockViewOnly: 'confluence.frontend.ncs.block-view-only'
26
26
  }
27
27
  };
28
28
  var filterFeatureFlagNames = function filterFeatureFlagNames(flags) {
@@ -265,9 +265,9 @@ var Provider = exports.Provider = /*#__PURE__*/function (_Emitter) {
265
265
  _this.metadataService = new _metadataService.MetadataService(_this.emitCallback, _this.channel.sendMetadata);
266
266
  _this.documentService = new _documentService.DocumentService(_this.participantsService, _this.analyticsHelper, _this.channel.fetchCatchup, _this.channel.fetchReconcile, _this.emitCallback, _this.channel.broadcast, function () {
267
267
  return _this.userId;
268
- }, _this.onErrorHandled, _this.metadataService, _this.config.enableErrorOnFailedDocumentApply, (0, _featureFlags.getCollabProviderFeatureFlag)('sendStepsQueueFF', _this.config.featureFlags));
268
+ }, _this.onErrorHandled, _this.metadataService, _this.config.enableErrorOnFailedDocumentApply, (0, _featureFlags.getCollabProviderFeatureFlag)('sendStepsQueue', _this.config.featureFlags));
269
269
  _this.namespaceService = new _namespaceService.NamespaceService();
270
- if ((0, _featureFlags.getCollabProviderFeatureFlag)('sendStepsQueueFF', _this.config.featureFlags)) {
270
+ if ((0, _featureFlags.getCollabProviderFeatureFlag)('sendStepsQueue', _this.config.featureFlags)) {
271
271
  _this.sendStepsTimer = setInterval(function () {
272
272
  logger('Intervally sendStepsFromCurrentState');
273
273
  _this.documentService.sendStepsFromCurrentState(true);
@@ -384,7 +384,7 @@ var Provider = exports.Provider = /*#__PURE__*/function (_Emitter) {
384
384
  }, {
385
385
  key: "isViewOnly",
386
386
  value: function isViewOnly() {
387
- return (0, _featureFlags.getCollabProviderFeatureFlag)('blockViewOnlyFF', this.config.featureFlags) && this.permit &&
387
+ return (0, _featureFlags.getCollabProviderFeatureFlag)('blockViewOnly', this.config.featureFlags) && this.permit &&
388
388
  // isPermittedToEdit or isPermittedToView can be undefined, must use `===` here.
389
389
  this.permit.isPermittedToEdit === false && this.permit.isPermittedToView === true;
390
390
  }
@@ -452,7 +452,7 @@ var Provider = exports.Provider = /*#__PURE__*/function (_Emitter) {
452
452
  try {
453
453
  (0, _get2.default)((0, _getPrototypeOf2.default)(Provider.prototype), "unsubscribeAll", this).call(this);
454
454
  this.channel.disconnect();
455
- if ((0, _featureFlags.getCollabProviderFeatureFlag)('sendStepsQueueFF', this.config.featureFlags)) {
455
+ if ((0, _featureFlags.getCollabProviderFeatureFlag)('sendStepsQueue', this.config.featureFlags)) {
456
456
  if (this.sendStepsTimer) {
457
457
  clearInterval(this.sendStepsTimer);
458
458
  this.sendStepsTimer = undefined;
@@ -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.18.2";
8
+ var version = exports.version = "9.18.4";
9
9
  var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
10
10
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
11
11
  };
@@ -34,7 +34,7 @@ export class DocumentService {
34
34
  * @param enableErrorOnFailedDocumentApply - Enable failed document update exceptions.
35
35
  * @param enableSendStepsQueue - Enable send steps queue.
36
36
  */
37
- constructor(participantsService, analyticsHelper, fetchCatchup, fetchReconcile, providerEmitCallback, broadcast, getUserId, onErrorHandled, metadataService, enableErrorOnFailedDocumentApply = false, enableSendStepsQueue = getCollabProviderFeatureFlag('sendStepsQueueFF')) {
37
+ constructor(participantsService, analyticsHelper, fetchCatchup, fetchReconcile, providerEmitCallback, broadcast, getUserId, onErrorHandled, metadataService, enableErrorOnFailedDocumentApply = false, enableSendStepsQueue = getCollabProviderFeatureFlag('sendStepsQueue')) {
38
38
  // Fires analytics to editor when collab editor cannot sync up
39
39
  _defineProperty(this, "stepRejectCounter", 0);
40
40
  _defineProperty(this, "aggressiveCatchup", false);
@@ -1,8 +1,8 @@
1
1
  const defaultNCSFeatureFlags = {
2
2
  testFF: false,
3
3
  socketMessageMetricsFF: false,
4
- sendStepsQueueFF: false,
5
- blockViewOnlyFF: false
4
+ sendStepsQueue: false,
5
+ blockViewOnly: false
6
6
  };
7
7
 
8
8
  /**
@@ -12,8 +12,8 @@ const productKeys = {
12
12
  confluence: {
13
13
  testFF: 'confluence.frontend.collab.provider.testFF',
14
14
  socketMessageMetricsFF: 'confluence.frontend.collab.provider.socketMessageMetricsFF',
15
- sendStepsQueueFF: 'confluence.frontend.collab.provider.sendStepsQueueFF',
16
- blockViewOnlyFF: 'confluence.frontend.collab.provider.blockViewOnlyFF'
15
+ sendStepsQueue: 'confluence.frontend.ncs.send-steps-queue',
16
+ blockViewOnly: 'confluence.frontend.ncs.block-view-only'
17
17
  }
18
18
  };
19
19
  const filterFeatureFlagNames = flags => {
@@ -218,9 +218,9 @@ export class Provider extends Emitter {
218
218
  this.isProviderInitialized = false;
219
219
  this.participantsService = new ParticipantsService(this.analyticsHelper, undefined, this.emitCallback, this.config.getUser, this.channel.broadcast, this.channel.sendPresenceJoined, this.getPresenceData, this.setUserId);
220
220
  this.metadataService = new MetadataService(this.emitCallback, this.channel.sendMetadata);
221
- this.documentService = new DocumentService(this.participantsService, this.analyticsHelper, this.channel.fetchCatchup, this.channel.fetchReconcile, this.emitCallback, this.channel.broadcast, () => this.userId, this.onErrorHandled, this.metadataService, this.config.enableErrorOnFailedDocumentApply, getCollabProviderFeatureFlag('sendStepsQueueFF', this.config.featureFlags));
221
+ this.documentService = new DocumentService(this.participantsService, this.analyticsHelper, this.channel.fetchCatchup, this.channel.fetchReconcile, this.emitCallback, this.channel.broadcast, () => this.userId, this.onErrorHandled, this.metadataService, this.config.enableErrorOnFailedDocumentApply, getCollabProviderFeatureFlag('sendStepsQueue', this.config.featureFlags));
222
222
  this.namespaceService = new NamespaceService();
223
- if (getCollabProviderFeatureFlag('sendStepsQueueFF', this.config.featureFlags)) {
223
+ if (getCollabProviderFeatureFlag('sendStepsQueue', this.config.featureFlags)) {
224
224
  this.sendStepsTimer = setInterval(() => {
225
225
  logger('Intervally sendStepsFromCurrentState');
226
226
  this.documentService.sendStepsFromCurrentState(true);
@@ -325,7 +325,7 @@ export class Provider extends Emitter {
325
325
  }
326
326
  }
327
327
  isViewOnly() {
328
- return getCollabProviderFeatureFlag('blockViewOnlyFF', this.config.featureFlags) && this.permit &&
328
+ return getCollabProviderFeatureFlag('blockViewOnly', this.config.featureFlags) && this.permit &&
329
329
  // isPermittedToEdit or isPermittedToView can be undefined, must use `===` here.
330
330
  this.permit.isPermittedToEdit === false && this.permit.isPermittedToView === true;
331
331
  }
@@ -384,7 +384,7 @@ export class Provider extends Emitter {
384
384
  try {
385
385
  super.unsubscribeAll();
386
386
  this.channel.disconnect();
387
- if (getCollabProviderFeatureFlag('sendStepsQueueFF', this.config.featureFlags)) {
387
+ if (getCollabProviderFeatureFlag('sendStepsQueue', this.config.featureFlags)) {
388
388
  if (this.sendStepsTimer) {
389
389
  clearInterval(this.sendStepsTimer);
390
390
  this.sendStepsTimer = undefined;
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/collab-provider";
2
- export const version = "9.18.2";
2
+ export const version = "9.18.4";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -43,7 +43,7 @@ export var DocumentService = /*#__PURE__*/function () {
43
43
  function DocumentService(participantsService, analyticsHelper, fetchCatchup, fetchReconcile, providerEmitCallback, broadcast, getUserId, onErrorHandled, metadataService) {
44
44
  var _this = this;
45
45
  var enableErrorOnFailedDocumentApply = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : false;
46
- var enableSendStepsQueue = arguments.length > 10 && arguments[10] !== undefined ? arguments[10] : getCollabProviderFeatureFlag('sendStepsQueueFF');
46
+ var enableSendStepsQueue = arguments.length > 10 && arguments[10] !== undefined ? arguments[10] : getCollabProviderFeatureFlag('sendStepsQueue');
47
47
  _classCallCheck(this, DocumentService);
48
48
  // Fires analytics to editor when collab editor cannot sync up
49
49
  _defineProperty(this, "stepRejectCounter", 0);
@@ -2,8 +2,8 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  var defaultNCSFeatureFlags = {
3
3
  testFF: false,
4
4
  socketMessageMetricsFF: false,
5
- sendStepsQueueFF: false,
6
- blockViewOnlyFF: false
5
+ sendStepsQueue: false,
6
+ blockViewOnly: false
7
7
  };
8
8
 
9
9
  /**
@@ -13,8 +13,8 @@ var productKeys = {
13
13
  confluence: {
14
14
  testFF: 'confluence.frontend.collab.provider.testFF',
15
15
  socketMessageMetricsFF: 'confluence.frontend.collab.provider.socketMessageMetricsFF',
16
- sendStepsQueueFF: 'confluence.frontend.collab.provider.sendStepsQueueFF',
17
- blockViewOnlyFF: 'confluence.frontend.collab.provider.blockViewOnlyFF'
16
+ sendStepsQueue: 'confluence.frontend.ncs.send-steps-queue',
17
+ blockViewOnly: 'confluence.frontend.ncs.block-view-only'
18
18
  }
19
19
  };
20
20
  var filterFeatureFlagNames = function filterFeatureFlagNames(flags) {
@@ -258,9 +258,9 @@ export var Provider = /*#__PURE__*/function (_Emitter) {
258
258
  _this.metadataService = new MetadataService(_this.emitCallback, _this.channel.sendMetadata);
259
259
  _this.documentService = new DocumentService(_this.participantsService, _this.analyticsHelper, _this.channel.fetchCatchup, _this.channel.fetchReconcile, _this.emitCallback, _this.channel.broadcast, function () {
260
260
  return _this.userId;
261
- }, _this.onErrorHandled, _this.metadataService, _this.config.enableErrorOnFailedDocumentApply, getCollabProviderFeatureFlag('sendStepsQueueFF', _this.config.featureFlags));
261
+ }, _this.onErrorHandled, _this.metadataService, _this.config.enableErrorOnFailedDocumentApply, getCollabProviderFeatureFlag('sendStepsQueue', _this.config.featureFlags));
262
262
  _this.namespaceService = new NamespaceService();
263
- if (getCollabProviderFeatureFlag('sendStepsQueueFF', _this.config.featureFlags)) {
263
+ if (getCollabProviderFeatureFlag('sendStepsQueue', _this.config.featureFlags)) {
264
264
  _this.sendStepsTimer = setInterval(function () {
265
265
  logger('Intervally sendStepsFromCurrentState');
266
266
  _this.documentService.sendStepsFromCurrentState(true);
@@ -377,7 +377,7 @@ export var Provider = /*#__PURE__*/function (_Emitter) {
377
377
  }, {
378
378
  key: "isViewOnly",
379
379
  value: function isViewOnly() {
380
- return getCollabProviderFeatureFlag('blockViewOnlyFF', this.config.featureFlags) && this.permit &&
380
+ return getCollabProviderFeatureFlag('blockViewOnly', this.config.featureFlags) && this.permit &&
381
381
  // isPermittedToEdit or isPermittedToView can be undefined, must use `===` here.
382
382
  this.permit.isPermittedToEdit === false && this.permit.isPermittedToView === true;
383
383
  }
@@ -445,7 +445,7 @@ export var Provider = /*#__PURE__*/function (_Emitter) {
445
445
  try {
446
446
  _get(_getPrototypeOf(Provider.prototype), "unsubscribeAll", this).call(this);
447
447
  this.channel.disconnect();
448
- if (getCollabProviderFeatureFlag('sendStepsQueueFF', this.config.featureFlags)) {
448
+ if (getCollabProviderFeatureFlag('sendStepsQueue', this.config.featureFlags)) {
449
449
  if (this.sendStepsTimer) {
450
450
  clearInterval(this.sendStepsTimer);
451
451
  this.sendStepsTimer = undefined;
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/collab-provider";
2
- export var version = "9.18.2";
2
+ export var version = "9.18.4";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,8 +1,8 @@
1
1
  export interface NCSFeatureFlags {
2
2
  testFF?: boolean;
3
3
  socketMessageMetricsFF?: boolean;
4
- sendStepsQueueFF?: boolean;
5
- blockViewOnlyFF?: boolean;
4
+ sendStepsQueue?: boolean;
5
+ blockViewOnly?: boolean;
6
6
  }
7
7
  export interface WithNCSFeatureFlags {
8
8
  featureFlags?: NCSFeatureFlags;
@@ -148,6 +148,7 @@ export type NamespaceStatus = {
148
148
  export type Permit = {
149
149
  reason?: string;
150
150
  isPermittedToView?: boolean;
151
+ isPermittedToComment?: boolean;
151
152
  isPermittedToEdit?: boolean;
152
153
  maintenanceMode?: boolean;
153
154
  };
@@ -1,8 +1,8 @@
1
1
  export interface NCSFeatureFlags {
2
2
  testFF?: boolean;
3
3
  socketMessageMetricsFF?: boolean;
4
- sendStepsQueueFF?: boolean;
5
- blockViewOnlyFF?: boolean;
4
+ sendStepsQueue?: boolean;
5
+ blockViewOnly?: boolean;
6
6
  }
7
7
  export interface WithNCSFeatureFlags {
8
8
  featureFlags?: NCSFeatureFlags;
@@ -148,6 +148,7 @@ export type NamespaceStatus = {
148
148
  export type Permit = {
149
149
  reason?: string;
150
150
  isPermittedToView?: boolean;
151
+ isPermittedToComment?: boolean;
151
152
  isPermittedToEdit?: boolean;
152
153
  maintenanceMode?: boolean;
153
154
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/collab-provider",
3
- "version": "9.18.2",
3
+ "version": "9.18.4",
4
4
  "description": "A provider for collaborative editing.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "@atlaskit/analytics-gas-types": "^5.1.0",
38
38
  "@atlaskit/analytics-listeners": "^8.7.0",
39
- "@atlaskit/editor-common": "^76.24.0",
39
+ "@atlaskit/editor-common": "^76.25.0",
40
40
  "@atlaskit/editor-json-transformer": "^8.10.0",
41
41
  "@atlaskit/editor-prosemirror": "1.1.0",
42
42
  "@atlaskit/prosemirror-collab": "^0.2.0",