@atlaskit/editor-synced-block-renderer 4.0.10 → 4.1.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-renderer
2
2
 
3
+ ## 4.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`82d57d01a0f61`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/82d57d01a0f61) -
8
+ Distinguish between collab offline and internet offline cases for connectivity mode
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 4.0.10
4
15
 
5
16
  ### Patch Changes
@@ -59,6 +59,9 @@
59
59
  {
60
60
  "path": "../../../design-system/tokens/afm-products/tsconfig.json"
61
61
  },
62
+ {
63
+ "path": "../../../design-system/tooltip/afm-products/tsconfig.json"
64
+ },
62
65
  {
63
66
  "path": "../../editor-common/afm-products/tsconfig.json"
64
67
  }
@@ -24,11 +24,11 @@ var SyncedBlockRendererComponent = function SyncedBlockRendererComponent(_ref) {
24
24
  var _useSharedPluginState = (0, _hooks.useSharedPluginStateWithSelector)(api, ['connectivity'], function (_ref2) {
25
25
  var connectivityState = _ref2.connectivityState;
26
26
  return {
27
- isOffline: (connectivityState === null || connectivityState === void 0 ? void 0 : connectivityState.mode) === 'offline'
27
+ isInternetOffline: (connectivityState === null || connectivityState === void 0 ? void 0 : connectivityState.mode) === 'collab-offline'
28
28
  };
29
29
  }),
30
- isOffline = _useSharedPluginState.isOffline;
31
- if (isOffline) {
30
+ isInternetOffline = _useSharedPluginState.isInternetOffline;
31
+ if (isInternetOffline) {
32
32
  return /*#__PURE__*/_react.default.createElement(_SyncedBlockErrorComponent.SyncedBlockErrorComponent, {
33
33
  error: _editorSyncedBlockProvider.SyncBlockError.Offline
34
34
  });
@@ -16,13 +16,13 @@ const SyncedBlockRendererComponent = ({
16
16
  reloadData
17
17
  } = useFetchSyncBlockData();
18
18
  const {
19
- isOffline
19
+ isInternetOffline
20
20
  } = useSharedPluginStateWithSelector(api, ['connectivity'], ({
21
21
  connectivityState
22
22
  }) => ({
23
- isOffline: (connectivityState === null || connectivityState === void 0 ? void 0 : connectivityState.mode) === 'offline'
23
+ isInternetOffline: (connectivityState === null || connectivityState === void 0 ? void 0 : connectivityState.mode) === 'collab-offline'
24
24
  }));
25
- if (isOffline) {
25
+ if (isInternetOffline) {
26
26
  return /*#__PURE__*/React.createElement(SyncedBlockErrorComponent, {
27
27
  error: SyncBlockError.Offline
28
28
  });
@@ -16,11 +16,11 @@ var SyncedBlockRendererComponent = function SyncedBlockRendererComponent(_ref) {
16
16
  var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['connectivity'], function (_ref2) {
17
17
  var connectivityState = _ref2.connectivityState;
18
18
  return {
19
- isOffline: (connectivityState === null || connectivityState === void 0 ? void 0 : connectivityState.mode) === 'offline'
19
+ isInternetOffline: (connectivityState === null || connectivityState === void 0 ? void 0 : connectivityState.mode) === 'collab-offline'
20
20
  };
21
21
  }),
22
- isOffline = _useSharedPluginState.isOffline;
23
- if (isOffline) {
22
+ isInternetOffline = _useSharedPluginState.isInternetOffline;
23
+ if (isInternetOffline) {
24
24
  return /*#__PURE__*/React.createElement(SyncedBlockErrorComponent, {
25
25
  error: SyncBlockError.Offline
26
26
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-synced-block-renderer",
3
- "version": "4.0.10",
3
+ "version": "4.1.0",
4
4
  "description": "SyncedBlockRenderer for @atlaskit/editor-plugin-synced-block",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@atlaskit/button": "^23.9.0",
32
32
  "@atlaskit/css": "^0.19.0",
33
- "@atlaskit/editor-plugin-synced-block": "^4.6.0",
33
+ "@atlaskit/editor-plugin-synced-block": "^4.7.0",
34
34
  "@atlaskit/editor-synced-block-provider": "^2.15.0",
35
35
  "@atlaskit/heading": "^5.2.0",
36
36
  "@atlaskit/icon": "^29.3.0",