@atlaskit/editor-synced-block-renderer 8.3.0 → 8.3.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 +17 -0
- package/dist/cjs/ui/AKRendererWrapper.js +1 -2
- package/dist/cjs/ui/SyncedBlockErrorComponent.js +1 -1
- package/dist/cjs/ui/SyncedBlockPermissionDenied.js +2 -3
- package/dist/cjs/ui/SyncedBlockUnpublishedError.js +1 -5
- package/dist/es2019/ui/AKRendererWrapper.js +1 -2
- package/dist/es2019/ui/SyncedBlockErrorComponent.js +2 -2
- package/dist/es2019/ui/SyncedBlockPermissionDenied.js +2 -3
- package/dist/es2019/ui/SyncedBlockUnpublishedError.js +1 -5
- package/dist/esm/ui/AKRendererWrapper.js +1 -2
- package/dist/esm/ui/SyncedBlockErrorComponent.js +2 -2
- package/dist/esm/ui/SyncedBlockPermissionDenied.js +2 -3
- package/dist/esm/ui/SyncedBlockUnpublishedError.js +1 -5
- package/package.json +3 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-synced-block-renderer
|
|
2
2
|
|
|
3
|
+
## 8.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`cec76b6d3aeaa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cec76b6d3aeaa) -
|
|
8
|
+
Cleanup feature gate `platform_synced_block_patch_11`. Jira work-item issue-type icons,
|
|
9
|
+
product-specific copy, and Relay environment initialisation are now permanently enabled.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 8.3.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`4c459a2718b67`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4c459a2718b67) -
|
|
17
|
+
Clean up synced block feature gates
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 8.3.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -12,7 +12,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _reactIntl = require("react-intl");
|
|
14
14
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
15
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
var _renderer = require("@atlaskit/renderer");
|
|
17
16
|
var _actions = require("@atlaskit/renderer/actions");
|
|
18
17
|
var _rendererContext = require("@atlaskit/renderer/renderer-context");
|
|
@@ -134,7 +133,7 @@ var AKRendererWrapper = exports.AKRendererWrapper = /*#__PURE__*/(0, _react.memo
|
|
|
134
133
|
allowSelectAllTrap: allowSelectAllTrap,
|
|
135
134
|
allowUgcScrubber: allowUgcScrubber,
|
|
136
135
|
allowWrapCodeBlock: allowWrapCodeBlock,
|
|
137
|
-
disableTableOverflowShadow:
|
|
136
|
+
disableTableOverflowShadow: true,
|
|
138
137
|
emojiResourceConfig: emojiResourceConfig,
|
|
139
138
|
eventHandlers: eventHandlers,
|
|
140
139
|
media: media,
|
|
@@ -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:
|
|
@@ -22,7 +22,6 @@ var _requestJiraIssueAccess = require("@atlaskit/editor-synced-block-provider/re
|
|
|
22
22
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
23
23
|
var _statusSuccess = _interopRequireDefault(require("@atlaskit/icon/core/status-success"));
|
|
24
24
|
var _image = _interopRequireDefault(require("@atlaskit/image"));
|
|
25
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
26
25
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
27
26
|
var _PermissionDenied = _interopRequireDefault(require("./assets/PermissionDenied.svg"));
|
|
28
27
|
var _SyncedBlockGenericError = require("./SyncedBlockGenericError");
|
|
@@ -198,10 +197,10 @@ var SyncedBlockPermissionDenied = exports.SyncedBlockPermissionDenied = function
|
|
|
198
197
|
sourceContentId: sourceContentId
|
|
199
198
|
});
|
|
200
199
|
case 'jira-work-item':
|
|
201
|
-
return
|
|
200
|
+
return /*#__PURE__*/_react.default.createElement(SyncedBlockPermissionDeniedJiraWorkItem, {
|
|
202
201
|
sourceContentId: sourceContentId,
|
|
203
202
|
accountId: accountId
|
|
204
|
-
})
|
|
203
|
+
});
|
|
205
204
|
default:
|
|
206
205
|
return /*#__PURE__*/_react.default.createElement(_SyncedBlockGenericError.SyncedBlockGenericError, null);
|
|
207
206
|
}
|
|
@@ -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, {
|
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { memo, useMemo } from 'react';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { ReactRenderer, ValidationContextProvider, defaultNodeComponents } from '@atlaskit/renderer';
|
|
7
6
|
import { RendererActionsContext } from '@atlaskit/renderer/actions';
|
|
8
7
|
import { RendererContextProvider } from '@atlaskit/renderer/renderer-context';
|
|
@@ -126,7 +125,7 @@ export const AKRendererWrapper = /*#__PURE__*/memo(({
|
|
|
126
125
|
allowSelectAllTrap: allowSelectAllTrap,
|
|
127
126
|
allowUgcScrubber: allowUgcScrubber,
|
|
128
127
|
allowWrapCodeBlock: allowWrapCodeBlock,
|
|
129
|
-
disableTableOverflowShadow:
|
|
128
|
+
disableTableOverflowShadow: true,
|
|
130
129
|
emojiResourceConfig: emojiResourceConfig,
|
|
131
130
|
eventHandlers: eventHandlers,
|
|
132
131
|
media: media,
|
|
@@ -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:
|
|
@@ -11,7 +11,6 @@ import { requestJiraSpaceAccess } from '@atlaskit/editor-synced-block-provider/r
|
|
|
11
11
|
import Heading from '@atlaskit/heading';
|
|
12
12
|
import StatusSuccessIcon from '@atlaskit/icon/core/status-success';
|
|
13
13
|
import Image from '@atlaskit/image';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
import { Text, Flex, Stack, Box } from '@atlaskit/primitives/compiled';
|
|
16
15
|
import PermissionDenied from './assets/PermissionDenied.svg';
|
|
17
16
|
import { SyncedBlockGenericError } from './SyncedBlockGenericError';
|
|
@@ -170,10 +169,10 @@ export const SyncedBlockPermissionDenied = ({
|
|
|
170
169
|
sourceContentId: sourceContentId
|
|
171
170
|
});
|
|
172
171
|
case 'jira-work-item':
|
|
173
|
-
return
|
|
172
|
+
return /*#__PURE__*/React.createElement(SyncedBlockPermissionDeniedJiraWorkItem, {
|
|
174
173
|
sourceContentId: sourceContentId,
|
|
175
174
|
accountId: accountId
|
|
176
|
-
})
|
|
175
|
+
});
|
|
177
176
|
default:
|
|
178
177
|
return /*#__PURE__*/React.createElement(SyncedBlockGenericError, null);
|
|
179
178
|
}
|
|
@@ -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,
|
|
@@ -7,7 +7,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import React, { memo, useMemo } from 'react';
|
|
8
8
|
import { useIntl } from 'react-intl';
|
|
9
9
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
import { ReactRenderer, ValidationContextProvider, defaultNodeComponents } from '@atlaskit/renderer';
|
|
12
11
|
import { RendererActionsContext } from '@atlaskit/renderer/actions';
|
|
13
12
|
import { RendererContextProvider } from '@atlaskit/renderer/renderer-context';
|
|
@@ -125,7 +124,7 @@ export var AKRendererWrapper = /*#__PURE__*/memo(function (_ref3) {
|
|
|
125
124
|
allowSelectAllTrap: allowSelectAllTrap,
|
|
126
125
|
allowUgcScrubber: allowUgcScrubber,
|
|
127
126
|
allowWrapCodeBlock: allowWrapCodeBlock,
|
|
128
|
-
disableTableOverflowShadow:
|
|
127
|
+
disableTableOverflowShadow: true,
|
|
129
128
|
emojiResourceConfig: emojiResourceConfig,
|
|
130
129
|
eventHandlers: eventHandlers,
|
|
131
130
|
media: media,
|
|
@@ -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:
|
|
@@ -14,7 +14,6 @@ import { requestJiraSpaceAccess } from '@atlaskit/editor-synced-block-provider/r
|
|
|
14
14
|
import Heading from '@atlaskit/heading';
|
|
15
15
|
import StatusSuccessIcon from '@atlaskit/icon/core/status-success';
|
|
16
16
|
import Image from '@atlaskit/image';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
17
|
import { Text, Flex, Stack, Box } from '@atlaskit/primitives/compiled';
|
|
19
18
|
import PermissionDenied from './assets/PermissionDenied.svg';
|
|
20
19
|
import { SyncedBlockGenericError } from './SyncedBlockGenericError';
|
|
@@ -189,10 +188,10 @@ export var SyncedBlockPermissionDenied = function SyncedBlockPermissionDenied(_r
|
|
|
189
188
|
sourceContentId: sourceContentId
|
|
190
189
|
});
|
|
191
190
|
case 'jira-work-item':
|
|
192
|
-
return
|
|
191
|
+
return /*#__PURE__*/React.createElement(SyncedBlockPermissionDeniedJiraWorkItem, {
|
|
193
192
|
sourceContentId: sourceContentId,
|
|
194
193
|
accountId: accountId
|
|
195
|
-
})
|
|
194
|
+
});
|
|
196
195
|
default:
|
|
197
196
|
return /*#__PURE__*/React.createElement(SyncedBlockGenericError, null);
|
|
198
197
|
}
|
|
@@ -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.2",
|
|
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": "^34.
|
|
43
|
+
"@atlaskit/icon": "^34.6.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.32.0",
|
|
59
59
|
"react": "^18.2.0",
|
|
60
60
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
61
61
|
},
|
|
@@ -96,16 +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_8": {
|
|
102
|
-
"type": "boolean"
|
|
103
|
-
},
|
|
104
|
-
"platform_synced_block_patch_10": {
|
|
105
|
-
"type": "boolean"
|
|
106
|
-
},
|
|
107
|
-
"platform_synced_block_patch_11": {
|
|
108
|
-
"type": "boolean"
|
|
109
|
-
}
|
|
110
99
|
}
|
|
111
100
|
}
|