@atlaskit/editor-synced-block-renderer 6.0.0 → 6.0.2

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,19 @@
1
1
  # @atlaskit/editor-synced-block-renderer
2
2
 
3
+ ## 6.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`b8082ae893289`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b8082ae893289) -
8
+ Account for new deletionReason: source-block-unpublished
9
+ - Updated dependencies
10
+
11
+ ## 6.0.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 6.0.0
4
18
 
5
19
  ### Patch Changes
@@ -38,6 +38,10 @@ var errorMap = {
38
38
  description: _messages.syncBlockMessages.sourceDeletedDescription,
39
39
  icon: _linkBroken.default
40
40
  },
41
+ 'source-block-unpublished': {
42
+ description: _messages.syncBlockMessages.sourceDeletedDescription,
43
+ icon: _linkBroken.default
44
+ },
41
45
  'source-document-deleted': {
42
46
  description: _messages.syncBlockMessages.notFoundDescription,
43
47
  icon: _eyeOpenStrikethrough.default
@@ -103,8 +107,8 @@ var SyncedBlockNotFoundError = exports.SyncedBlockNotFoundError = function Synce
103
107
  formatMessage = _useIntl2.formatMessage;
104
108
  (0, _react.useEffect)(function () {
105
109
  if (!sourceAri ||
106
- // Only fetch source info for these 2 cases
107
- !['source-block-deleted', 'source-block-unsynced'].includes(reason)) {
110
+ // Only fetch source info for these 3 cases
111
+ !['source-block-deleted', 'source-block-unsynced', 'source-block-unpublished'].includes(reason)) {
108
112
  setSourceInfo({});
109
113
  return;
110
114
  }
@@ -26,6 +26,10 @@ const errorMap = {
26
26
  description: messages.sourceDeletedDescription,
27
27
  icon: LinkBrokenIcon
28
28
  },
29
+ 'source-block-unpublished': {
30
+ description: messages.sourceDeletedDescription,
31
+ icon: LinkBrokenIcon
32
+ },
29
33
  'source-document-deleted': {
30
34
  description: messages.notFoundDescription,
31
35
  icon: EyeOpenStrikethroughIcon
@@ -92,8 +96,8 @@ export const SyncedBlockNotFoundError = ({
92
96
  } = useIntl();
93
97
  useEffect(() => {
94
98
  if (!sourceAri ||
95
- // Only fetch source info for these 2 cases
96
- !['source-block-deleted', 'source-block-unsynced'].includes(reason)) {
99
+ // Only fetch source info for these 3 cases
100
+ !['source-block-deleted', 'source-block-unsynced', 'source-block-unpublished'].includes(reason)) {
97
101
  setSourceInfo({});
98
102
  return;
99
103
  }
@@ -29,6 +29,10 @@ var errorMap = {
29
29
  description: messages.sourceDeletedDescription,
30
30
  icon: LinkBrokenIcon
31
31
  },
32
+ 'source-block-unpublished': {
33
+ description: messages.sourceDeletedDescription,
34
+ icon: LinkBrokenIcon
35
+ },
32
36
  'source-document-deleted': {
33
37
  description: messages.notFoundDescription,
34
38
  icon: EyeOpenStrikethroughIcon
@@ -94,8 +98,8 @@ export var SyncedBlockNotFoundError = function SyncedBlockNotFoundError(_ref2) {
94
98
  formatMessage = _useIntl2.formatMessage;
95
99
  useEffect(function () {
96
100
  if (!sourceAri ||
97
- // Only fetch source info for these 2 cases
98
- !['source-block-deleted', 'source-block-unsynced'].includes(reason)) {
101
+ // Only fetch source info for these 3 cases
102
+ !['source-block-deleted', 'source-block-unsynced', 'source-block-unpublished'].includes(reason)) {
99
103
  setSourceInfo({});
100
104
  return;
101
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-synced-block-renderer",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
4
4
  "description": "SyncedBlockRenderer for @atlaskit/editor-plugin-synced-block",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,8 +33,8 @@
33
33
  "@atlaskit/editor-plugin-synced-block": "^6.0.0",
34
34
  "@atlaskit/editor-synced-block-provider": "^4.0.0",
35
35
  "@atlaskit/heading": "^5.3.0",
36
- "@atlaskit/icon": "^32.0.0",
37
- "@atlaskit/icon-lab": "^5.17.0",
36
+ "@atlaskit/icon": "^33.0.0",
37
+ "@atlaskit/icon-lab": "^6.0.0",
38
38
  "@atlaskit/image": "^3.0.0",
39
39
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
40
  "@atlaskit/primitives": "^18.0.0",
@@ -48,7 +48,7 @@
48
48
  "relay-runtime": "npm:atl-relay-runtime@0.0.0-main-39e79f66"
49
49
  },
50
50
  "peerDependencies": {
51
- "@atlaskit/editor-common": "^112.0.0",
51
+ "@atlaskit/editor-common": "^112.4.0",
52
52
  "react": "^18.2.0",
53
53
  "react-intl-next": "npm:react-intl@^5.18.1"
54
54
  },