@atlaskit/editor-synced-block-renderer 8.3.1 → 8.3.3
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 +15 -0
- package/dist/cjs/ui/SyncedBlockErrorComponent.js +1 -1
- package/dist/cjs/ui/SyncedBlockUnpublishedError.js +1 -5
- package/dist/es2019/ui/SyncedBlockErrorComponent.js +2 -2
- package/dist/es2019/ui/SyncedBlockUnpublishedError.js +1 -5
- package/dist/esm/ui/SyncedBlockErrorComponent.js +2 -2
- package/dist/esm/ui/SyncedBlockUnpublishedError.js +1 -5
- package/package.json +3 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-synced-block-renderer
|
|
2
2
|
|
|
3
|
+
## 8.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 8.3.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`cec76b6d3aeaa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cec76b6d3aeaa) -
|
|
14
|
+
Cleanup feature gate `platform_synced_block_patch_11`. Jira work-item issue-type icons,
|
|
15
|
+
product-specific copy, and Relay environment initialisation are now permanently enabled.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 8.3.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -78,7 +78,7 @@ var SyncedBlockErrorComponent = exports.SyncedBlockErrorComponent = function Syn
|
|
|
78
78
|
{
|
|
79
79
|
return /*#__PURE__*/_react.default.createElement(_SyncedBlockUnpublishedError.SyncedBlockUnpublishedError, {
|
|
80
80
|
sourceURL: sourceURL,
|
|
81
|
-
sourceProduct: (0, _utils.
|
|
81
|
+
sourceProduct: (0, _utils.getSourceProductFromResourceIdSafe)(resourceId)
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
case _editorSyncedBlockProvider.SyncBlockError.Errored:
|
|
@@ -12,7 +12,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
12
12
|
var _reactIntl = require("react-intl");
|
|
13
13
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
14
14
|
var _eyeOpenStrikethrough = _interopRequireDefault(require("@atlaskit/icon/core/eye-open-strikethrough"));
|
|
15
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
16
|
var _SyncedBlockErrorStateCard = require("./SyncedBlockErrorStateCard");
|
|
18
17
|
var styles = {
|
|
@@ -28,10 +27,7 @@ var SyncedBlockUnpublishedError = exports.SyncedBlockUnpublishedError = function
|
|
|
28
27
|
// description is saved" rather than "the page is published" because Jira issues
|
|
29
28
|
// don't have a page-level publish action — the description field is what's
|
|
30
29
|
// being authored.
|
|
31
|
-
|
|
32
|
-
// Gated by `platform_synced_block_patch_11` so the new copy can be rolled out (and
|
|
33
|
-
// dialled off) independently of the rest of the renderer.
|
|
34
|
-
var message = sourceProduct === 'jira-work-item' && (0, _platformFeatureFlags.fg)('platform_synced_block_patch_11') ? _messages.syncBlockMessages.unpublishedErrorJiraWorkItem : _messages.syncBlockMessages.unpublishedError;
|
|
30
|
+
var message = sourceProduct === 'jira-work-item' ? _messages.syncBlockMessages.unpublishedErrorJiraWorkItem : _messages.syncBlockMessages.unpublishedError;
|
|
35
31
|
var description = formatMessage(message, {
|
|
36
32
|
link: function link(chunks) {
|
|
37
33
|
return sourceURL ? /*#__PURE__*/_react.default.createElement(_compiled.Anchor, {
|
|
@@ -3,7 +3,7 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit
|
|
|
3
3
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
4
4
|
import { SyncBlockSharedCssClassName } from '@atlaskit/editor-common/sync-block';
|
|
5
5
|
import { fetchErrorPayload, getContentIdAndProductFromResourceId, SyncBlockError } from '@atlaskit/editor-synced-block-provider';
|
|
6
|
-
import {
|
|
6
|
+
import { getSourceProductFromResourceIdSafe } from '@atlaskit/editor-synced-block-provider/utils';
|
|
7
7
|
import { SyncedBlockEntityNotFoundError } from './SyncedBlockEntityNotFoundError';
|
|
8
8
|
import { SyncedBlockGenericError } from './SyncedBlockGenericError';
|
|
9
9
|
import { SyncedBlockLoadError } from './SyncedBlockLoadError';
|
|
@@ -72,7 +72,7 @@ export const SyncedBlockErrorComponent = ({
|
|
|
72
72
|
{
|
|
73
73
|
return /*#__PURE__*/React.createElement(SyncedBlockUnpublishedError, {
|
|
74
74
|
sourceURL: sourceURL,
|
|
75
|
-
sourceProduct:
|
|
75
|
+
sourceProduct: getSourceProductFromResourceIdSafe(resourceId)
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
case SyncBlockError.Errored:
|
|
@@ -5,7 +5,6 @@ import React from 'react';
|
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
import EyeOpenStrikethroughIcon from '@atlaskit/icon/core/eye-open-strikethrough';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { Anchor } from '@atlaskit/primitives/compiled';
|
|
10
9
|
import { SyncedBlockErrorStateCard } from './SyncedBlockErrorStateCard';
|
|
11
10
|
const styles = {
|
|
@@ -23,10 +22,7 @@ export const SyncedBlockUnpublishedError = ({
|
|
|
23
22
|
// description is saved" rather than "the page is published" because Jira issues
|
|
24
23
|
// don't have a page-level publish action — the description field is what's
|
|
25
24
|
// being authored.
|
|
26
|
-
|
|
27
|
-
// Gated by `platform_synced_block_patch_11` so the new copy can be rolled out (and
|
|
28
|
-
// dialled off) independently of the rest of the renderer.
|
|
29
|
-
const message = sourceProduct === 'jira-work-item' && fg('platform_synced_block_patch_11') ? messages.unpublishedErrorJiraWorkItem : messages.unpublishedError;
|
|
25
|
+
const message = sourceProduct === 'jira-work-item' ? messages.unpublishedErrorJiraWorkItem : messages.unpublishedError;
|
|
30
26
|
const description = formatMessage(message, {
|
|
31
27
|
link: chunks => sourceURL ? /*#__PURE__*/React.createElement(Anchor, {
|
|
32
28
|
href: sourceURL,
|
|
@@ -3,7 +3,7 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit
|
|
|
3
3
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
4
4
|
import { SyncBlockSharedCssClassName } from '@atlaskit/editor-common/sync-block';
|
|
5
5
|
import { fetchErrorPayload, getContentIdAndProductFromResourceId, SyncBlockError } from '@atlaskit/editor-synced-block-provider';
|
|
6
|
-
import {
|
|
6
|
+
import { getSourceProductFromResourceIdSafe } from '@atlaskit/editor-synced-block-provider/utils';
|
|
7
7
|
import { SyncedBlockEntityNotFoundError } from './SyncedBlockEntityNotFoundError';
|
|
8
8
|
import { SyncedBlockGenericError } from './SyncedBlockGenericError';
|
|
9
9
|
import { SyncedBlockLoadError } from './SyncedBlockLoadError';
|
|
@@ -70,7 +70,7 @@ export var SyncedBlockErrorComponent = function SyncedBlockErrorComponent(_ref)
|
|
|
70
70
|
{
|
|
71
71
|
return /*#__PURE__*/React.createElement(SyncedBlockUnpublishedError, {
|
|
72
72
|
sourceURL: sourceURL,
|
|
73
|
-
sourceProduct:
|
|
73
|
+
sourceProduct: getSourceProductFromResourceIdSafe(resourceId)
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
case SyncBlockError.Errored:
|
|
@@ -5,7 +5,6 @@ import React from 'react';
|
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
import EyeOpenStrikethroughIcon from '@atlaskit/icon/core/eye-open-strikethrough';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { Anchor } from '@atlaskit/primitives/compiled';
|
|
10
9
|
import { SyncedBlockErrorStateCard } from './SyncedBlockErrorStateCard';
|
|
11
10
|
var styles = {
|
|
@@ -21,10 +20,7 @@ export var SyncedBlockUnpublishedError = function SyncedBlockUnpublishedError(_r
|
|
|
21
20
|
// description is saved" rather than "the page is published" because Jira issues
|
|
22
21
|
// don't have a page-level publish action — the description field is what's
|
|
23
22
|
// being authored.
|
|
24
|
-
|
|
25
|
-
// Gated by `platform_synced_block_patch_11` so the new copy can be rolled out (and
|
|
26
|
-
// dialled off) independently of the rest of the renderer.
|
|
27
|
-
var message = sourceProduct === 'jira-work-item' && fg('platform_synced_block_patch_11') ? messages.unpublishedErrorJiraWorkItem : messages.unpublishedError;
|
|
23
|
+
var message = sourceProduct === 'jira-work-item' ? messages.unpublishedErrorJiraWorkItem : messages.unpublishedError;
|
|
28
24
|
var description = formatMessage(message, {
|
|
29
25
|
link: function link(chunks) {
|
|
30
26
|
return sourceURL ? /*#__PURE__*/React.createElement(Anchor, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-synced-block-renderer",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.3",
|
|
4
4
|
"description": "SyncedBlockRenderer for @atlaskit/editor-plugin-synced-block",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@atlaskit/editor-plugin-synced-block": "^8.3.0",
|
|
41
41
|
"@atlaskit/editor-synced-block-provider": "^6.6.0",
|
|
42
42
|
"@atlaskit/heading": "^5.4.0",
|
|
43
|
-
"@atlaskit/icon": "^
|
|
43
|
+
"@atlaskit/icon": "^35.0.0",
|
|
44
44
|
"@atlaskit/icon-lab": "^6.9.0",
|
|
45
45
|
"@atlaskit/image": "^3.0.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"relay-runtime": "^20.1.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@atlaskit/editor-common": "^114.
|
|
58
|
+
"@atlaskit/editor-common": "^114.35.0",
|
|
59
59
|
"react": "^18.2.0",
|
|
60
60
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
61
61
|
},
|
|
@@ -96,10 +96,5 @@
|
|
|
96
96
|
"import-no-extraneous-disable-for-examples-and-docs"
|
|
97
97
|
]
|
|
98
98
|
}
|
|
99
|
-
},
|
|
100
|
-
"platform-feature-flags": {
|
|
101
|
-
"platform_synced_block_patch_11": {
|
|
102
|
-
"type": "boolean"
|
|
103
|
-
}
|
|
104
99
|
}
|
|
105
100
|
}
|