@atlaskit/collab-provider 7.1.8 → 7.2.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,11 @@
1
1
  # @atlaskit/collab-provider
2
2
 
3
+ ## 7.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`502a39af839`](https://bitbucket.org/atlassian/atlassian-frontend/commits/502a39af839) - Allow collab provider to opt-in for 404 responses from NCS backend
8
+
3
9
  ## 7.1.8
4
10
 
5
11
  ### Patch Changes
@@ -133,7 +133,9 @@ var Channel = /*#__PURE__*/function (_Emitter) {
133
133
  // The permission token.
134
134
  token: token,
135
135
  // The initialized status. If false, BE will send document, otherwise not.
136
- initialized: _this2.initialized
136
+ initialized: _this2.initialized,
137
+ // ESS-1009 Allow to opt-in into 404 response
138
+ need404: _this2.config.need404
137
139
  });
138
140
  }).catch(function (err) {
139
141
  _this2.emit('error', err);
@@ -145,7 +147,9 @@ var Channel = /*#__PURE__*/function (_Emitter) {
145
147
  var _authCb = function _authCb(cb) {
146
148
  cb({
147
149
  // The initialized status. If false, BE will send document, otherwise not.
148
- initialized: _this2.initialized
150
+ initialized: _this2.initialized,
151
+ // ESS-1009 Allow to opt-in into 404 response
152
+ need404: _this2.config.need404
149
153
  });
150
154
  };
151
155
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/collab-provider",
3
- "version": "7.1.8",
3
+ "version": "7.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -86,7 +86,9 @@ export class Channel extends Emitter {
86
86
  // The permission token.
87
87
  token,
88
88
  // The initialized status. If false, BE will send document, otherwise not.
89
- initialized: this.initialized
89
+ initialized: this.initialized,
90
+ // ESS-1009 Allow to opt-in into 404 response
91
+ need404: this.config.need404
90
92
  });
91
93
  }).catch(err => {
92
94
  this.emit('error', err);
@@ -98,7 +100,9 @@ export class Channel extends Emitter {
98
100
  const authCb = cb => {
99
101
  cb({
100
102
  // The initialized status. If false, BE will send document, otherwise not.
101
- initialized: this.initialized
103
+ initialized: this.initialized,
104
+ // ESS-1009 Allow to opt-in into 404 response
105
+ need404: this.config.need404
102
106
  });
103
107
  };
104
108
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/collab-provider",
3
- "version": "7.1.8",
3
+ "version": "7.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -119,7 +119,9 @@ export var Channel = /*#__PURE__*/function (_Emitter) {
119
119
  // The permission token.
120
120
  token: token,
121
121
  // The initialized status. If false, BE will send document, otherwise not.
122
- initialized: _this2.initialized
122
+ initialized: _this2.initialized,
123
+ // ESS-1009 Allow to opt-in into 404 response
124
+ need404: _this2.config.need404
123
125
  });
124
126
  }).catch(function (err) {
125
127
  _this2.emit('error', err);
@@ -131,7 +133,9 @@ export var Channel = /*#__PURE__*/function (_Emitter) {
131
133
  var _authCb = function _authCb(cb) {
132
134
  cb({
133
135
  // The initialized status. If false, BE will send document, otherwise not.
134
- initialized: _this2.initialized
136
+ initialized: _this2.initialized,
137
+ // ESS-1009 Allow to opt-in into 404 response
138
+ need404: _this2.config.need404
135
139
  });
136
140
  };
137
141
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/collab-provider",
3
- "version": "7.1.8",
3
+ "version": "7.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -14,6 +14,7 @@ export interface Config {
14
14
  documentAri: string;
15
15
  lifecycle?: Lifecycle;
16
16
  storage?: Storage;
17
+ need404?: boolean;
17
18
  createSocket(path: string, auth?: (cb: (data: object) => void) => void): Socket;
18
19
  analyticsClient?: AnalyticsWebClient;
19
20
  getUser?(userId: string): Promise<Pick<CollabParticipant, 'avatar' | 'email' | 'name'> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/collab-provider",
3
- "version": "7.1.8",
3
+ "version": "7.2.0",
4
4
  "description": "A provider for collaborative editing.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -49,7 +49,7 @@
49
49
  "@types/prosemirror-model": "^1.11.0",
50
50
  "@types/prosemirror-state": "^1.2.0",
51
51
  "prosemirror-model": "1.14.3",
52
- "typescript": "3.9.6"
52
+ "typescript": "3.9.10"
53
53
  },
54
54
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
55
55
  }