@atlaskit/collab-provider 9.44.0 → 9.44.1

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,13 @@
1
1
  # @atlaskit/collab-provider
2
2
 
3
+ ## 9.44.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#159176](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159176)
8
+ [`8f1d77592a9dc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8f1d77592a9dc) -
9
+ Bump adf-schema to 44.2.0
10
+
3
11
  ## 9.44.0
4
12
 
5
13
  ### Minor Changes
@@ -8,8 +8,7 @@ exports.getCollabProviderFeatureFlag = getCollabProviderFeatureFlag;
8
8
  exports.getProductSpecificFeatureFlags = void 0;
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
10
  var defaultNCSFeatureFlags = {
11
- testFF: false,
12
- blockViewOnly: false
11
+ testFF: false
13
12
  };
14
13
 
15
14
  /**
@@ -17,8 +16,7 @@ var defaultNCSFeatureFlags = {
17
16
  */
18
17
  var productKeys = {
19
18
  confluence: {
20
- testFF: 'confluence.frontend.collab.provider.testFF',
21
- blockViewOnly: 'confluence.frontend.ncs.block-view-only'
19
+ testFF: 'confluence.frontend.collab.provider.testFF'
22
20
  }
23
21
  };
24
22
  var filterFeatureFlagNames = function filterFeatureFlagNames(flags) {
@@ -31,7 +31,6 @@ var _participantsService = require("../participants/participants-service");
31
31
  var _errorCodeMapper = require("../errors/error-code-mapper");
32
32
  var _internalErrors = require("../errors/internal-errors");
33
33
  var _const = require("../helpers/const");
34
- var _featureFlags = require("../feature-flags");
35
34
  var _api = require("../api/api");
36
35
  var _performance = require("../analytics/performance");
37
36
  var _nullApi = require("../api/null-api");
@@ -455,7 +454,7 @@ var Provider = exports.Provider = /*#__PURE__*/function (_Emitter) {
455
454
  }, {
456
455
  key: "isViewOnly",
457
456
  value: function isViewOnly() {
458
- return (0, _featureFlags.getCollabProviderFeatureFlag)('blockViewOnly', this.config.featureFlags) && this.permit &&
457
+ return this.permit &&
459
458
  // isPermittedToEdit or isPermittedToView can be undefined, must use `===` here.
460
459
  this.permit.isPermittedToEdit === false && this.permit.isPermittedToView === true;
461
460
  }
@@ -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.0";
8
+ var version = exports.version = "9.44.1";
9
9
  var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
10
10
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
11
11
  };
@@ -1,6 +1,5 @@
1
1
  const defaultNCSFeatureFlags = {
2
- testFF: false,
3
- blockViewOnly: false
2
+ testFF: false
4
3
  };
5
4
 
6
5
  /**
@@ -8,8 +7,7 @@ const defaultNCSFeatureFlags = {
8
7
  */
9
8
  const productKeys = {
10
9
  confluence: {
11
- testFF: 'confluence.frontend.collab.provider.testFF',
12
- blockViewOnly: 'confluence.frontend.ncs.block-view-only'
10
+ testFF: 'confluence.frontend.collab.provider.testFF'
13
11
  }
14
12
  };
15
13
  const filterFeatureFlagNames = flags => {
@@ -15,7 +15,6 @@ import { ParticipantsService } from '../participants/participants-service';
15
15
  import { errorCodeMapper } from '../errors/error-code-mapper';
16
16
  import { INTERNAL_ERROR_CODE } from '../errors/internal-errors';
17
17
  import { EVENT_ACTION, EVENT_STATUS, CatchupEventReason } from '../helpers/const';
18
- import { getCollabProviderFeatureFlag } from '../feature-flags';
19
18
  import { Api } from '../api/api';
20
19
  import { shouldTelepointerBeSampled } from '../analytics/performance';
21
20
  import { NullApi } from '../api/null-api';
@@ -392,7 +391,7 @@ export class Provider extends Emitter {
392
391
  }
393
392
  }
394
393
  isViewOnly() {
395
- return getCollabProviderFeatureFlag('blockViewOnly', this.config.featureFlags) && this.permit &&
394
+ return this.permit &&
396
395
  // isPermittedToEdit or isPermittedToView can be undefined, must use `===` here.
397
396
  this.permit.isPermittedToEdit === false && this.permit.isPermittedToView === true;
398
397
  }
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/collab-provider";
2
- export const version = "9.44.0";
2
+ export const version = "9.44.1";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,7 +1,6 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  var defaultNCSFeatureFlags = {
3
- testFF: false,
4
- blockViewOnly: false
3
+ testFF: false
5
4
  };
6
5
 
7
6
  /**
@@ -9,8 +8,7 @@ var defaultNCSFeatureFlags = {
9
8
  */
10
9
  var productKeys = {
11
10
  confluence: {
12
- testFF: 'confluence.frontend.collab.provider.testFF',
13
- blockViewOnly: 'confluence.frontend.ncs.block-view-only'
11
+ testFF: 'confluence.frontend.collab.provider.testFF'
14
12
  }
15
13
  };
16
14
  var filterFeatureFlagNames = function filterFeatureFlagNames(flags) {
@@ -28,7 +28,6 @@ import { ParticipantsService } from '../participants/participants-service';
28
28
  import { errorCodeMapper } from '../errors/error-code-mapper';
29
29
  import { INTERNAL_ERROR_CODE } from '../errors/internal-errors';
30
30
  import { EVENT_ACTION, EVENT_STATUS, CatchupEventReason } from '../helpers/const';
31
- import { getCollabProviderFeatureFlag } from '../feature-flags';
32
31
  import { Api } from '../api/api';
33
32
  import { shouldTelepointerBeSampled } from '../analytics/performance';
34
33
  import { NullApi } from '../api/null-api';
@@ -448,7 +447,7 @@ export var Provider = /*#__PURE__*/function (_Emitter) {
448
447
  }, {
449
448
  key: "isViewOnly",
450
449
  value: function isViewOnly() {
451
- return getCollabProviderFeatureFlag('blockViewOnly', this.config.featureFlags) && this.permit &&
450
+ return this.permit &&
452
451
  // isPermittedToEdit or isPermittedToView can be undefined, must use `===` here.
453
452
  this.permit.isPermittedToEdit === false && this.permit.isPermittedToView === true;
454
453
  }
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/collab-provider";
2
- export var version = "9.44.0";
2
+ export var version = "9.44.1";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,6 +1,5 @@
1
1
  export interface NCSFeatureFlags {
2
2
  testFF?: boolean;
3
- blockViewOnly?: boolean;
4
3
  }
5
4
  export interface WithNCSFeatureFlags {
6
5
  featureFlags?: NCSFeatureFlags;
@@ -1,6 +1,5 @@
1
1
  export interface NCSFeatureFlags {
2
2
  testFF?: boolean;
3
- blockViewOnly?: boolean;
4
3
  }
5
4
  export interface WithNCSFeatureFlags {
6
5
  featureFlags?: NCSFeatureFlags;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/collab-provider",
3
- "version": "9.44.0",
3
+ "version": "9.44.1",
4
4
  "description": "A provider for collaborative editing.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -34,7 +34,7 @@
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.8.0",
37
+ "@atlaskit/editor-common": "^94.9.0",
38
38
  "@atlaskit/editor-json-transformer": "^8.20.0",
39
39
  "@atlaskit/editor-prosemirror": "6.0.0",
40
40
  "@atlaskit/platform-feature-flags": "^0.3.0",
@@ -62,7 +62,7 @@
62
62
  }
63
63
  },
64
64
  "devDependencies": {
65
- "@atlaskit/adf-schema": "^42.3.1",
65
+ "@atlaskit/adf-schema": "^44.2.0",
66
66
  "@atlassian/feature-flags-test-utils": "^0.2.0",
67
67
  "typescript": "~5.4.2"
68
68
  },