@atlaskit/editor-synced-block-renderer 4.0.10 → 5.0.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,22 @@
1
1
  # @atlaskit/editor-synced-block-renderer
2
2
 
3
+ ## 5.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`82d57d01a0f61`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/82d57d01a0f61) -
14
+ Distinguish between collab offline and internet offline cases for connectivity mode
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 4.0.10
4
21
 
5
22
  ### 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": "5.0.0",
4
4
  "description": "SyncedBlockRenderer for @atlaskit/editor-plugin-synced-block",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,14 +30,14 @@
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",
34
- "@atlaskit/editor-synced-block-provider": "^2.15.0",
33
+ "@atlaskit/editor-plugin-synced-block": "^5.0.0",
34
+ "@atlaskit/editor-synced-block-provider": "^3.0.0",
35
35
  "@atlaskit/heading": "^5.2.0",
36
36
  "@atlaskit/icon": "^29.3.0",
37
37
  "@atlaskit/icon-lab": "^5.13.0",
38
38
  "@atlaskit/image": "^3.0.0",
39
39
  "@atlaskit/primitives": "^17.0.0",
40
- "@atlaskit/renderer": "^124.22.0",
40
+ "@atlaskit/renderer": "^125.0.0",
41
41
  "@atlaskit/spinner": "^19.0.0",
42
42
  "@atlaskit/tokens": "^9.0.0",
43
43
  "@atlaskit/tooltip": "^20.11.0",
@@ -46,7 +46,7 @@
46
46
  "relay-runtime": "npm:atl-relay-runtime@0.0.0-main-39e79f66"
47
47
  },
48
48
  "peerDependencies": {
49
- "@atlaskit/editor-common": "^110.46.0",
49
+ "@atlaskit/editor-common": "^111.0.0",
50
50
  "react": "^18.2.0",
51
51
  "react-intl-next": "npm:react-intl@^5.18.1"
52
52
  },