@atlaskit/editor-synced-block-renderer 26.0.0 → 28.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 +12 -0
- package/dist/cjs/ui/SyncedBlockEntityNotFoundError.js +2 -2
- package/dist/cjs/ui/SyncedBlockLoadError.js +2 -2
- package/dist/cjs/ui/SyncedBlockLoadingState.js +2 -2
- package/dist/cjs/ui/SyncedBlockNotFoundError.js +5 -4
- package/dist/cjs/ui/SyncedBlockPermissionDenied.js +17 -14
- package/dist/cjs/ui/SyncedBlockUnpublishedError.js +2 -2
- package/dist/es2019/ui/SyncedBlockEntityNotFoundError.js +1 -1
- package/dist/es2019/ui/SyncedBlockLoadError.js +1 -1
- package/dist/es2019/ui/SyncedBlockLoadingState.js +1 -1
- package/dist/es2019/ui/SyncedBlockNotFoundError.js +2 -1
- package/dist/es2019/ui/SyncedBlockPermissionDenied.js +4 -1
- package/dist/es2019/ui/SyncedBlockUnpublishedError.js +1 -1
- package/dist/esm/ui/SyncedBlockEntityNotFoundError.js +1 -1
- package/dist/esm/ui/SyncedBlockLoadError.js +1 -1
- package/dist/esm/ui/SyncedBlockLoadingState.js +1 -1
- package/dist/esm/ui/SyncedBlockNotFoundError.js +2 -1
- package/dist/esm/ui/SyncedBlockPermissionDenied.js +4 -1
- package/dist/esm/ui/SyncedBlockUnpublishedError.js +1 -1
- package/dist/types/types.d.ts +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -13,7 +13,7 @@ var _reactIntl = require("react-intl");
|
|
|
13
13
|
var _syncBlock = require("@atlaskit/editor-common/messages/syncBlock");
|
|
14
14
|
var _constants = require("@atlaskit/editor-common/sync-block/constants");
|
|
15
15
|
var _linkBroken = _interopRequireDefault(require("@atlaskit/icon/core/link-broken"));
|
|
16
|
-
var
|
|
16
|
+
var _anchor = require("@atlaskit/primitives/compiled/anchor");
|
|
17
17
|
var _SyncedBlockErrorStateCard = require("./SyncedBlockErrorStateCard");
|
|
18
18
|
var styles = {
|
|
19
19
|
link: "_4bfu1r31 _1hmsglyw _ajmmnqa1"
|
|
@@ -23,7 +23,7 @@ var SyncedBlockEntityNotFoundError = exports.SyncedBlockEntityNotFoundError = fu
|
|
|
23
23
|
formatMessage = _useIntl.formatMessage;
|
|
24
24
|
var description = formatMessage(_syncBlock.syncBlockMessages.entityNotFoundDescription, {
|
|
25
25
|
link: function link(chunks) {
|
|
26
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement(_anchor.Anchor, {
|
|
27
27
|
href: _constants.SYNCED_BLOCKS_DOCUMENTATION_URL,
|
|
28
28
|
target: "_blank",
|
|
29
29
|
rel: "noopener noreferrer",
|
|
@@ -12,7 +12,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
12
12
|
var _reactIntl = require("react-intl");
|
|
13
13
|
var _button = _interopRequireDefault(require("@atlaskit/button/default/button"));
|
|
14
14
|
var _syncBlock = require("@atlaskit/editor-common/messages/syncBlock");
|
|
15
|
-
var
|
|
15
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
16
16
|
var _SyncedBlockErrorStateCard = require("./SyncedBlockErrorStateCard");
|
|
17
17
|
var styles = {
|
|
18
18
|
buttonContainer: "_18u0u2gc _1e0c1txw _4cvr1h6o"
|
|
@@ -37,7 +37,7 @@ var SyncedBlockLoadError = exports.SyncedBlockLoadError = function SyncedBlockLo
|
|
|
37
37
|
}, formatMessage(_syncBlock.syncBlockMessages.retryButton));
|
|
38
38
|
return /*#__PURE__*/_react.default.createElement(_SyncedBlockErrorStateCard.SyncedBlockErrorStateCard, {
|
|
39
39
|
description: formatMessage(_syncBlock.syncBlockMessages.generalErrorDescription)
|
|
40
|
-
}, onRetry && /*#__PURE__*/_react.default.createElement(
|
|
40
|
+
}, onRetry && /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
41
41
|
xcss: styles.buttonContainer
|
|
42
42
|
}, button));
|
|
43
43
|
};
|
|
@@ -12,7 +12,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
12
12
|
var _reactIntl = require("react-intl");
|
|
13
13
|
var _syncBlock = require("@atlaskit/editor-common/messages/syncBlock");
|
|
14
14
|
var _syncBlock2 = require("@atlaskit/editor-common/styles/sync-block");
|
|
15
|
-
var
|
|
15
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
16
16
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
|
|
17
17
|
var styles = {
|
|
18
18
|
wrapper: "_1tkevbgk _1e0c1txw _1bah1h6o _4cvr1h6o"
|
|
@@ -25,7 +25,7 @@ var SyncedBlockLoadingState = exports.SyncedBlockLoadingState = function SyncedB
|
|
|
25
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/no-unsafe-style-overrides
|
|
26
26
|
_react.default.createElement("div", {
|
|
27
27
|
className: _syncBlock2.SyncBlockSharedCssClassName.loading
|
|
28
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
28
|
+
}, /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
29
29
|
xcss: styles.wrapper
|
|
30
30
|
}, /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
31
31
|
size: "small",
|
|
@@ -21,7 +21,8 @@ var _SyncBlockActionsContext = require("@atlaskit/editor-common/sync-block/SyncB
|
|
|
21
21
|
var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
|
|
22
22
|
var _eyeOpenStrikethrough = _interopRequireDefault(require("@atlaskit/icon/core/eye-open-strikethrough"));
|
|
23
23
|
var _linkBroken = _interopRequireDefault(require("@atlaskit/icon/core/link-broken"));
|
|
24
|
-
var
|
|
24
|
+
var _anchor = require("@atlaskit/primitives/compiled/anchor");
|
|
25
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
25
26
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
|
|
26
27
|
var _SyncedBlockErrorStateCard = require("./SyncedBlockErrorStateCard");
|
|
27
28
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -81,7 +82,7 @@ var useErrorInfo = function useErrorInfo(reason, url, title) {
|
|
|
81
82
|
description: formatMessage(description, {
|
|
82
83
|
title: title,
|
|
83
84
|
a: function a(chunk) {
|
|
84
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
85
|
+
return /*#__PURE__*/_react.default.createElement(_anchor.Anchor, {
|
|
85
86
|
href: url,
|
|
86
87
|
target: "_blank",
|
|
87
88
|
rel: 'noopener noreferrer',
|
|
@@ -142,12 +143,12 @@ var SyncedBlockNotFoundError = exports.SyncedBlockNotFoundError = function Synce
|
|
|
142
143
|
var _useErrorInfo = useErrorInfo(reason, sourceInfo === null || sourceInfo === void 0 ? void 0 : sourceInfo.url, sourceInfo === null || sourceInfo === void 0 ? void 0 : sourceInfo.title),
|
|
143
144
|
description = _useErrorInfo.description,
|
|
144
145
|
icon = _useErrorInfo.icon;
|
|
145
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, sourceInfo === undefined ? /*#__PURE__*/_react.default.createElement(
|
|
146
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, sourceInfo === undefined ? /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
146
147
|
xcss: styles.spinner
|
|
147
148
|
}, /*#__PURE__*/_react.default.createElement(_spinner.default, null)) : /*#__PURE__*/_react.default.createElement(_SyncedBlockErrorStateCard.SyncedBlockErrorStateCard, {
|
|
148
149
|
description: description,
|
|
149
150
|
icon: icon
|
|
150
|
-
}, deleteSyncBlock && /*#__PURE__*/_react.default.createElement(
|
|
151
|
+
}, deleteSyncBlock && /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
151
152
|
xcss: styles.closeButton
|
|
152
153
|
}, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
153
154
|
appearance: "subtle",
|
|
@@ -23,7 +23,10 @@ var _heading = _interopRequireDefault(require("@atlaskit/heading/heading"));
|
|
|
23
23
|
var _statusSuccess = _interopRequireDefault(require("@atlaskit/icon/core/status-success"));
|
|
24
24
|
var _image = _interopRequireDefault(require("@atlaskit/image"));
|
|
25
25
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
26
|
-
var
|
|
26
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
27
|
+
var _flex = require("@atlaskit/primitives/compiled/flex");
|
|
28
|
+
var _stack = require("@atlaskit/primitives/compiled/stack");
|
|
29
|
+
var _text = require("@atlaskit/primitives/compiled/text");
|
|
27
30
|
var _PermissionDenied = _interopRequireDefault(require("./assets/PermissionDenied.svg"));
|
|
28
31
|
var _SyncedBlockGenericError = require("./SyncedBlockGenericError");
|
|
29
32
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
@@ -69,31 +72,31 @@ var SyncedBlockPermissionDeniedConfluencePage = function SyncedBlockPermissionDe
|
|
|
69
72
|
onError: handleRequestError
|
|
70
73
|
});
|
|
71
74
|
};
|
|
72
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
75
|
+
return /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
73
76
|
xcss: styles.wrapper
|
|
74
77
|
}, /*#__PURE__*/_react.default.createElement(_image.default, {
|
|
75
78
|
src: _PermissionDenied.default,
|
|
76
79
|
alt: formatMessage(_syncBlock.syncBlockMessages.permissionDeniedAltText),
|
|
77
80
|
width: "48",
|
|
78
81
|
height: "48"
|
|
79
|
-
}), /*#__PURE__*/_react.default.createElement(
|
|
82
|
+
}), /*#__PURE__*/_react.default.createElement(_stack.Stack, {
|
|
80
83
|
space: "space.100"
|
|
81
84
|
}, /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
82
85
|
size: "xsmall"
|
|
83
|
-
}, formatMessage((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_blocks_patch_12') ? _syncBlock.syncBlockMessages.contentUnavailableHeading : _syncBlock.syncBlockMessages.permissionDeniedHeading)), /*#__PURE__*/_react.default.createElement(
|
|
86
|
+
}, formatMessage((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_blocks_patch_12') ? _syncBlock.syncBlockMessages.contentUnavailableHeading : _syncBlock.syncBlockMessages.permissionDeniedHeading)), /*#__PURE__*/_react.default.createElement(_text.Text, {
|
|
84
87
|
color: "color.text.subtle"
|
|
85
|
-
}, formatMessage((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_blocks_patch_12') ? _syncBlock.syncBlockMessages.contentUnavailableDescription : _syncBlock.syncBlockMessages.permissionDeniedDescription)), requestAccessState === RequestAccessState.pending ? /*#__PURE__*/_react.default.createElement(
|
|
88
|
+
}, formatMessage((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_blocks_patch_12') ? _syncBlock.syncBlockMessages.contentUnavailableDescription : _syncBlock.syncBlockMessages.permissionDeniedDescription)), requestAccessState === RequestAccessState.pending ? /*#__PURE__*/_react.default.createElement(_flex.Flex, {
|
|
86
89
|
columnGap: "space.050",
|
|
87
90
|
alignItems: "center"
|
|
88
91
|
}, /*#__PURE__*/_react.default.createElement(_statusSuccess.default, {
|
|
89
92
|
size: "small",
|
|
90
93
|
color: "var(--ds-icon-subtle, #505258)",
|
|
91
94
|
label: formatMessage(_syncBlock.syncBlockMessages.accessRequested)
|
|
92
|
-
}), /*#__PURE__*/_react.default.createElement(
|
|
95
|
+
}), /*#__PURE__*/_react.default.createElement(_text.Text, {
|
|
93
96
|
color: "color.text.subtlest",
|
|
94
97
|
weight: "bold",
|
|
95
98
|
testId: "sync-block-access-requested-msg"
|
|
96
|
-
}, formatMessage(_syncBlock.syncBlockMessages.accessRequested))) : /*#__PURE__*/_react.default.createElement(
|
|
99
|
+
}, formatMessage(_syncBlock.syncBlockMessages.accessRequested))) : /*#__PURE__*/_react.default.createElement(_flex.Flex, {
|
|
97
100
|
columnGap: "space.100",
|
|
98
101
|
alignItems: "center"
|
|
99
102
|
}, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
@@ -102,7 +105,7 @@ var SyncedBlockPermissionDeniedConfluencePage = function SyncedBlockPermissionDe
|
|
|
102
105
|
onClick: onClick,
|
|
103
106
|
isLoading: requestAccessState === RequestAccessState.loading,
|
|
104
107
|
testId: "sync-block-request-access-btn"
|
|
105
|
-
}, formatMessage(_syncBlock.syncBlockMessages.requestAccessButton)), requestAccessState === RequestAccessState.errored && /*#__PURE__*/_react.default.createElement(
|
|
108
|
+
}, formatMessage(_syncBlock.syncBlockMessages.requestAccessButton)), requestAccessState === RequestAccessState.errored && /*#__PURE__*/_react.default.createElement(_text.Text, {
|
|
106
109
|
color: "color.text.warning",
|
|
107
110
|
testId: "sync-block-access-error-msg"
|
|
108
111
|
}, formatMessage(_syncBlock.syncBlockMessages.requestAccessError)))));
|
|
@@ -154,31 +157,31 @@ var SyncedBlockPermissionDeniedJiraWorkItem = function SyncedBlockPermissionDeni
|
|
|
154
157
|
}
|
|
155
158
|
}, _callee, null, [[1, 3]]);
|
|
156
159
|
})), [accountId, sourceContentId]);
|
|
157
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
160
|
+
return /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
158
161
|
xcss: styles.wrapper
|
|
159
162
|
}, /*#__PURE__*/_react.default.createElement(_image.default, {
|
|
160
163
|
src: _PermissionDenied.default,
|
|
161
164
|
alt: formatMessage(_syncBlock.syncBlockMessages.permissionDeniedAltText),
|
|
162
165
|
width: "48",
|
|
163
166
|
height: "48"
|
|
164
|
-
}), /*#__PURE__*/_react.default.createElement(
|
|
167
|
+
}), /*#__PURE__*/_react.default.createElement(_stack.Stack, {
|
|
165
168
|
space: "space.100"
|
|
166
169
|
}, /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
167
170
|
size: "xsmall"
|
|
168
|
-
}, formatMessage((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_blocks_patch_12') ? _syncBlock.syncBlockMessages.contentUnavailableHeading : _syncBlock.syncBlockMessages.permissionDeniedHeading)), /*#__PURE__*/_react.default.createElement(
|
|
171
|
+
}, formatMessage((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_blocks_patch_12') ? _syncBlock.syncBlockMessages.contentUnavailableHeading : _syncBlock.syncBlockMessages.permissionDeniedHeading)), /*#__PURE__*/_react.default.createElement(_text.Text, {
|
|
169
172
|
color: "color.text.subtle"
|
|
170
|
-
}, formatMessage((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_blocks_patch_12') ? _syncBlock.syncBlockMessages.contentUnavailableDescription : _syncBlock.syncBlockMessages.permissionDeniedDescription)), requestAccessState === RequestAccessState.pending ? /*#__PURE__*/_react.default.createElement(
|
|
173
|
+
}, formatMessage((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_blocks_patch_12') ? _syncBlock.syncBlockMessages.contentUnavailableDescription : _syncBlock.syncBlockMessages.permissionDeniedDescription)), requestAccessState === RequestAccessState.pending ? /*#__PURE__*/_react.default.createElement(_flex.Flex, {
|
|
171
174
|
columnGap: "space.050",
|
|
172
175
|
alignItems: "center"
|
|
173
176
|
}, /*#__PURE__*/_react.default.createElement(_statusSuccess.default, {
|
|
174
177
|
size: "small",
|
|
175
178
|
color: "var(--ds-icon-subtle, #505258)",
|
|
176
179
|
label: formatMessage(_syncBlock.syncBlockMessages.accessRequested)
|
|
177
|
-
}), /*#__PURE__*/_react.default.createElement(
|
|
180
|
+
}), /*#__PURE__*/_react.default.createElement(_text.Text, {
|
|
178
181
|
color: "color.text.subtlest",
|
|
179
182
|
weight: "bold",
|
|
180
183
|
testId: "sync-block-access-requested-msg"
|
|
181
|
-
}, formatMessage(_syncBlock.syncBlockMessages.accessRequested))) : /*#__PURE__*/_react.default.createElement(
|
|
184
|
+
}, formatMessage(_syncBlock.syncBlockMessages.accessRequested))) : /*#__PURE__*/_react.default.createElement(_flex.Flex, {
|
|
182
185
|
columnGap: "space.100",
|
|
183
186
|
alignItems: "center"
|
|
184
187
|
}, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
@@ -12,7 +12,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
12
12
|
var _reactIntl = require("react-intl");
|
|
13
13
|
var _syncBlock = require("@atlaskit/editor-common/messages/syncBlock");
|
|
14
14
|
var _eyeOpenStrikethrough = _interopRequireDefault(require("@atlaskit/icon/core/eye-open-strikethrough"));
|
|
15
|
-
var
|
|
15
|
+
var _anchor = require("@atlaskit/primitives/compiled/anchor");
|
|
16
16
|
var _SyncedBlockErrorStateCard = require("./SyncedBlockErrorStateCard");
|
|
17
17
|
var styles = {
|
|
18
18
|
link: "_4bfu1r31 _1hmsglyw _ajmmnqa1"
|
|
@@ -30,7 +30,7 @@ var SyncedBlockUnpublishedError = exports.SyncedBlockUnpublishedError = function
|
|
|
30
30
|
var message = sourceProduct === 'jira-work-item' ? _syncBlock.syncBlockMessages.unpublishedErrorJiraWorkItem : _syncBlock.syncBlockMessages.unpublishedError;
|
|
31
31
|
var description = formatMessage(message, {
|
|
32
32
|
link: function link(chunks) {
|
|
33
|
-
return sourceURL ? /*#__PURE__*/_react.default.createElement(
|
|
33
|
+
return sourceURL ? /*#__PURE__*/_react.default.createElement(_anchor.Anchor, {
|
|
34
34
|
href: sourceURL,
|
|
35
35
|
target: "_blank",
|
|
36
36
|
rel: 'noopener noreferrer',
|
|
@@ -6,7 +6,7 @@ import { useIntl } from 'react-intl';
|
|
|
6
6
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages/syncBlock';
|
|
7
7
|
import { SYNCED_BLOCKS_DOCUMENTATION_URL } from '@atlaskit/editor-common/sync-block/constants';
|
|
8
8
|
import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
9
|
-
import { Anchor } from '@atlaskit/primitives/compiled';
|
|
9
|
+
import { Anchor } from '@atlaskit/primitives/compiled/anchor';
|
|
10
10
|
import { SyncedBlockErrorStateCard } from './SyncedBlockErrorStateCard';
|
|
11
11
|
const styles = {
|
|
12
12
|
link: "_4bfu1r31 _1hmsglyw _ajmmnqa1"
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import Button from '@atlaskit/button/default/button';
|
|
7
7
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages/syncBlock';
|
|
8
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
9
9
|
import { SyncedBlockErrorStateCard } from './SyncedBlockErrorStateCard';
|
|
10
10
|
const styles = {
|
|
11
11
|
buttonContainer: "_18u0u2gc _1e0c1txw _4cvr1h6o"
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages/syncBlock';
|
|
7
7
|
import { SyncBlockSharedCssClassName } from '@atlaskit/editor-common/styles/sync-block';
|
|
8
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
9
9
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
10
10
|
const styles = {
|
|
11
11
|
wrapper: "_1tkevbgk _1e0c1txw _1bah1h6o _4cvr1h6o"
|
|
@@ -10,7 +10,8 @@ import { useSyncBlockActions } from '@atlaskit/editor-common/sync-block/SyncBloc
|
|
|
10
10
|
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
11
11
|
import EyeOpenStrikethroughIcon from '@atlaskit/icon/core/eye-open-strikethrough';
|
|
12
12
|
import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
13
|
-
import { Anchor
|
|
13
|
+
import { Anchor } from '@atlaskit/primitives/compiled/anchor';
|
|
14
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
14
15
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
15
16
|
import { SyncedBlockErrorStateCard } from './SyncedBlockErrorStateCard';
|
|
16
17
|
const styles = {
|
|
@@ -12,7 +12,10 @@ import Heading from '@atlaskit/heading/heading';
|
|
|
12
12
|
import StatusSuccessIcon from '@atlaskit/icon/core/status-success';
|
|
13
13
|
import Image from '@atlaskit/image';
|
|
14
14
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
15
|
-
import {
|
|
15
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
16
|
+
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
17
|
+
import { Stack } from '@atlaskit/primitives/compiled/stack';
|
|
18
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
16
19
|
import PermissionDenied from './assets/PermissionDenied.svg';
|
|
17
20
|
import { SyncedBlockGenericError } from './SyncedBlockGenericError';
|
|
18
21
|
const styles = {
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages/syncBlock';
|
|
7
7
|
import EyeOpenStrikethroughIcon from '@atlaskit/icon/core/eye-open-strikethrough';
|
|
8
|
-
import { Anchor } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { Anchor } from '@atlaskit/primitives/compiled/anchor';
|
|
9
9
|
import { SyncedBlockErrorStateCard } from './SyncedBlockErrorStateCard';
|
|
10
10
|
const styles = {
|
|
11
11
|
link: "_4bfu1r31 _1hmsglyw _ajmmnqa1"
|
|
@@ -6,7 +6,7 @@ import { useIntl } from 'react-intl';
|
|
|
6
6
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages/syncBlock';
|
|
7
7
|
import { SYNCED_BLOCKS_DOCUMENTATION_URL } from '@atlaskit/editor-common/sync-block/constants';
|
|
8
8
|
import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
9
|
-
import { Anchor } from '@atlaskit/primitives/compiled';
|
|
9
|
+
import { Anchor } from '@atlaskit/primitives/compiled/anchor';
|
|
10
10
|
import { SyncedBlockErrorStateCard } from './SyncedBlockErrorStateCard';
|
|
11
11
|
var styles = {
|
|
12
12
|
link: "_4bfu1r31 _1hmsglyw _ajmmnqa1"
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import Button from '@atlaskit/button/default/button';
|
|
7
7
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages/syncBlock';
|
|
8
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
9
9
|
import { SyncedBlockErrorStateCard } from './SyncedBlockErrorStateCard';
|
|
10
10
|
var styles = {
|
|
11
11
|
buttonContainer: "_18u0u2gc _1e0c1txw _4cvr1h6o"
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages/syncBlock';
|
|
7
7
|
import { SyncBlockSharedCssClassName } from '@atlaskit/editor-common/styles/sync-block';
|
|
8
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
9
9
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
10
10
|
var styles = {
|
|
11
11
|
wrapper: "_1tkevbgk _1e0c1txw _1bah1h6o _4cvr1h6o"
|
|
@@ -13,7 +13,8 @@ import { useSyncBlockActions } from '@atlaskit/editor-common/sync-block/SyncBloc
|
|
|
13
13
|
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
14
14
|
import EyeOpenStrikethroughIcon from '@atlaskit/icon/core/eye-open-strikethrough';
|
|
15
15
|
import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
16
|
-
import { Anchor
|
|
16
|
+
import { Anchor } from '@atlaskit/primitives/compiled/anchor';
|
|
17
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
17
18
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
18
19
|
import { SyncedBlockErrorStateCard } from './SyncedBlockErrorStateCard';
|
|
19
20
|
var styles = {
|
|
@@ -15,7 +15,10 @@ import Heading from '@atlaskit/heading/heading';
|
|
|
15
15
|
import StatusSuccessIcon from '@atlaskit/icon/core/status-success';
|
|
16
16
|
import Image from '@atlaskit/image';
|
|
17
17
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
18
|
-
import {
|
|
18
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
19
|
+
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
20
|
+
import { Stack } from '@atlaskit/primitives/compiled/stack';
|
|
21
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
19
22
|
import PermissionDenied from './assets/PermissionDenied.svg';
|
|
20
23
|
import { SyncedBlockGenericError } from './SyncedBlockGenericError';
|
|
21
24
|
var styles = {
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import { syncBlockMessages as messages } from '@atlaskit/editor-common/messages/syncBlock';
|
|
7
7
|
import EyeOpenStrikethroughIcon from '@atlaskit/icon/core/eye-open-strikethrough';
|
|
8
|
-
import { Anchor } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { Anchor } from '@atlaskit/primitives/compiled/anchor';
|
|
9
9
|
import { SyncedBlockErrorStateCard } from './SyncedBlockErrorStateCard';
|
|
10
10
|
var styles = {
|
|
11
11
|
link: "_4bfu1r31 _1hmsglyw _ajmmnqa1"
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { RendererProps } from '@atlaskit/renderer/
|
|
1
|
+
import type { RendererProps } from '@atlaskit/renderer/core';
|
|
2
2
|
export type SyncedBlockRendererOptions = Pick<RendererProps, 'appearance' | 'allowAltTextOnImages' | 'allowAnnotations' | 'allowColumnSorting' | 'allowCopyToClipboard' | 'allowCustomPanels' | 'allowHeadingAnchorLinks' | 'allowPlaceholderText' | 'allowRendererContainerStyles' | 'allowSelectAllTrap' | 'allowUgcScrubber' | 'allowWrapCodeBlock' | 'emojiResourceConfig' | 'eventHandlers' | 'media' | 'mentionNodeDataProvider' | 'smartLinks' | 'stickyHeaders' | 'contentMode'>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-synced-block-renderer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "28.0.0",
|
|
4
4
|
"description": "SyncedBlockRenderer for @atlaskit/editor-plugin-synced-block",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"atlaskit:src": "src/index.ts",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@atlaskit/adf-schema": "^57.7.0",
|
|
34
|
-
"@atlaskit/button": "^25.
|
|
34
|
+
"@atlaskit/button": "^25.6.0",
|
|
35
35
|
"@atlaskit/css": "^1.1.0",
|
|
36
36
|
"@atlaskit/editor-json-transformer": "^10.0.0",
|
|
37
|
-
"@atlaskit/editor-plugin-synced-block": "^
|
|
38
|
-
"@atlaskit/editor-synced-block-provider": "^
|
|
37
|
+
"@atlaskit/editor-plugin-synced-block": "^28.0.0",
|
|
38
|
+
"@atlaskit/editor-synced-block-provider": "^26.0.0",
|
|
39
39
|
"@atlaskit/heading": "^8.0.0",
|
|
40
40
|
"@atlaskit/icon": "^38.0.0",
|
|
41
41
|
"@atlaskit/icon-lab": "^7.11.0",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
44
44
|
"@atlaskit/primitives": "^22.6.0",
|
|
45
45
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
46
|
-
"@atlaskit/renderer": "^
|
|
46
|
+
"@atlaskit/renderer": "^153.0.0",
|
|
47
47
|
"@atlaskit/spinner": "^20.4.0",
|
|
48
|
-
"@atlaskit/tokens": "^20.
|
|
48
|
+
"@atlaskit/tokens": "^20.8.0",
|
|
49
49
|
"@atlaskit/tooltip": "^24.4.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@compiled/react": "^1.0.2",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"relay-runtime": "^20.1.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@atlaskit/editor-common": "^
|
|
56
|
+
"@atlaskit/editor-common": "^134.0.0",
|
|
57
57
|
"react": "^18.2.0 || ^19.2.0",
|
|
58
58
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
59
59
|
},
|