@atlaskit/editor-synced-block-provider 3.14.6 → 3.15.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,16 @@
|
|
|
1
1
|
# @atlaskit/editor-synced-block-provider
|
|
2
2
|
|
|
3
|
+
## 3.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`04b96fcb2ac43`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/04b96fcb2ac43) -
|
|
8
|
+
Use existing function to check if SSR
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 3.14.6
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -5,12 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.subscribeToBlockUpdates = void 0;
|
|
7
7
|
var _graphqlWs = require("graphql-ws");
|
|
8
|
+
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
8
9
|
var _utils = require("../../utils/utils");
|
|
9
10
|
var GRAPHQL_WS_ENDPOINT = '/gateway/api/graphql/subscriptions';
|
|
10
11
|
var blockServiceClient = null;
|
|
11
12
|
var getBlockServiceClient = function getBlockServiceClient() {
|
|
12
13
|
// Don't create client during SSR
|
|
13
|
-
if (
|
|
14
|
+
if ((0, _coreUtils.isSSR)()) {
|
|
14
15
|
return null;
|
|
15
16
|
}
|
|
16
17
|
if (!blockServiceClient) {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { createClient } from 'graphql-ws';
|
|
2
|
+
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
2
3
|
import { convertContentUpdatedAt } from '../../utils/utils';
|
|
3
4
|
const GRAPHQL_WS_ENDPOINT = '/gateway/api/graphql/subscriptions';
|
|
4
5
|
let blockServiceClient = null;
|
|
5
6
|
const getBlockServiceClient = () => {
|
|
6
7
|
// Don't create client during SSR
|
|
7
|
-
if (
|
|
8
|
+
if (isSSR()) {
|
|
8
9
|
return null;
|
|
9
10
|
}
|
|
10
11
|
if (!blockServiceClient) {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { createClient } from 'graphql-ws';
|
|
2
|
+
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
2
3
|
import { convertContentUpdatedAt } from '../../utils/utils';
|
|
3
4
|
var GRAPHQL_WS_ENDPOINT = '/gateway/api/graphql/subscriptions';
|
|
4
5
|
var blockServiceClient = null;
|
|
5
6
|
var getBlockServiceClient = function getBlockServiceClient() {
|
|
6
7
|
// Don't create client during SSR
|
|
7
|
-
if (
|
|
8
|
+
if (isSSR()) {
|
|
8
9
|
return null;
|
|
9
10
|
}
|
|
10
11
|
if (!blockServiceClient) {
|
package/package.json
CHANGED