@atlaskit/renderer 108.1.2 → 108.1.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 +8 -0
- package/dist/cjs/i18n/en_ZZ.js +4 -4
- package/dist/cjs/react/nodes/blockCard.js +9 -1
- package/dist/cjs/react/nodes/embedCard.js +8 -1
- package/dist/cjs/react/nodes/inlineCard.js +8 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/cjs/ui/Renderer/style.js +14 -14
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/i18n/en_ZZ.js +4 -4
- package/dist/es2019/react/nodes/blockCard.js +10 -1
- package/dist/es2019/react/nodes/embedCard.js +9 -1
- package/dist/es2019/react/nodes/inlineCard.js +9 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/Renderer/style.js +14 -14
- package/dist/es2019/version.json +1 -1
- package/dist/esm/i18n/en_ZZ.js +4 -4
- package/dist/esm/react/nodes/blockCard.js +9 -1
- package/dist/esm/react/nodes/embedCard.js +8 -1
- package/dist/esm/react/nodes/inlineCard.js +8 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/Renderer/style.js +14 -14
- package/dist/esm/version.json +1 -1
- package/dist/types/i18n/en_ZZ.d.ts +2 -2
- package/dist/types/react/nodes/fallback.d.ts +0 -1
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/fallback.d.ts +0 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 108.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`077e086c53f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/077e086c53f) - [ux] ED-17971 Changes the color token used for table borders and background of table controls and numbered column.
|
|
8
|
+
- [`65ff31a2ad4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/65ff31a2ad4) - use onError prop on smart card to handle errors
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 108.1.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/i18n/en_ZZ.js
CHANGED
|
@@ -13,16 +13,16 @@ exports.default = void 0;
|
|
|
13
13
|
*/
|
|
14
14
|
//
|
|
15
15
|
var _default = {
|
|
16
|
-
'fabric.editor.codeBlockCopyButton.copiedToClipboard': 'Copied!',
|
|
17
|
-
'fabric.editor.codeBlockCopyButton.copyToClipboard': 'Copy',
|
|
18
16
|
'fabric.editor.headingLink.ascOrderLabel': 'Sort column Z to A',
|
|
19
17
|
'fabric.editor.headingLink.ascSortingLabel': 'ascending',
|
|
20
18
|
'fabric.editor.headingLink.copied': 'Copied!',
|
|
21
19
|
'fabric.editor.headingLink.copyAnchorLink': 'Copy link to heading',
|
|
22
20
|
'fabric.editor.headingLink.copyAriaLabel': 'Copy',
|
|
23
|
-
'fabric.editor.headingLink.descOrderLabel':
|
|
21
|
+
'fabric.editor.headingLink.descOrderLabel': 'Clear sorting',
|
|
22
|
+
'fabric.editor.headingLink.descSortingLabel': 'descending',
|
|
24
23
|
'fabric.editor.headingLink.failedToCopy': 'Copy failed',
|
|
24
|
+
'fabric.editor.headingLink.invalidLabel': "⚠️ You can't sort a table with merged cells",
|
|
25
25
|
'fabric.editor.headingLink.noOrderLabel': 'Sort column A to Z',
|
|
26
|
-
'fabric.editor.headingLink.noneSortingLabel': '
|
|
26
|
+
'fabric.editor.headingLink.noneSortingLabel': 'none'
|
|
27
27
|
};
|
|
28
28
|
exports.default = _default;
|
|
@@ -42,6 +42,12 @@ function BlockCard(props) {
|
|
|
42
42
|
// Below is added for the future implementation of Linking Platform namespaced analytic context
|
|
43
43
|
location: 'renderer'
|
|
44
44
|
};
|
|
45
|
+
var onError = function onError(_ref2) {
|
|
46
|
+
var err = _ref2.err;
|
|
47
|
+
if (err) {
|
|
48
|
+
throw err;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
45
51
|
return /*#__PURE__*/_react.default.createElement(_analyticsNext.AnalyticsContext, {
|
|
46
52
|
data: analyticsData
|
|
47
53
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -56,5 +62,7 @@ function BlockCard(props) {
|
|
|
56
62
|
showActions: rendererAppearance !== 'mobile',
|
|
57
63
|
platform: platform,
|
|
58
64
|
showServerActions: showServerActions
|
|
59
|
-
}, cardProps
|
|
65
|
+
}, cardProps, {
|
|
66
|
+
onError: onError
|
|
67
|
+
})))));
|
|
60
68
|
}
|
|
@@ -115,6 +115,12 @@ function EmbedCard(props) {
|
|
|
115
115
|
}
|
|
116
116
|
var lineLength = isFullWidth ? Math.min(_editorSharedStyles.akEditorFullWidthLayoutWidth, containerWidth - padding) : nonFullWidthSize;
|
|
117
117
|
var uiMediaSingleStyles = layout === 'full-width' || layout === 'wide' ? uIMediaSingleLayoutStyles : '';
|
|
118
|
+
var onError = function onError(_ref3) {
|
|
119
|
+
var err = _ref3.err;
|
|
120
|
+
if (err) {
|
|
121
|
+
throw err;
|
|
122
|
+
}
|
|
123
|
+
};
|
|
118
124
|
return (0, _react.jsx)(_fallback.CardErrorBoundary, (0, _extends2.default)({
|
|
119
125
|
unsupportedComponent: _ui.UnsupportedBlock
|
|
120
126
|
}, cardProps), (0, _react.jsx)(_smartCard.EmbedResizeMessageListener, {
|
|
@@ -146,7 +152,8 @@ function EmbedCard(props) {
|
|
|
146
152
|
}, cardProps, {
|
|
147
153
|
onResolve: onResolve,
|
|
148
154
|
inheritDimensions: true,
|
|
149
|
-
embedIframeRef: embedIframeRef
|
|
155
|
+
embedIframeRef: embedIframeRef,
|
|
156
|
+
onError: onError
|
|
150
157
|
})))))));
|
|
151
158
|
}));
|
|
152
159
|
}
|
|
@@ -50,6 +50,12 @@ var InlineCard = function InlineCard(props) {
|
|
|
50
50
|
showServerActions: showServerActions
|
|
51
51
|
}));
|
|
52
52
|
}
|
|
53
|
+
var onError = function onError(_ref2) {
|
|
54
|
+
var err = _ref2.err;
|
|
55
|
+
if (err) {
|
|
56
|
+
throw err;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
53
59
|
return /*#__PURE__*/_react.default.createElement(_analyticsNext.AnalyticsContext, {
|
|
54
60
|
data: analyticsData
|
|
55
61
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -69,7 +75,8 @@ var InlineCard = function InlineCard(props) {
|
|
|
69
75
|
return;
|
|
70
76
|
}
|
|
71
77
|
props.smartCardStorage.set(data.url, data.title);
|
|
72
|
-
}
|
|
78
|
+
},
|
|
79
|
+
onError: onError
|
|
73
80
|
})))));
|
|
74
81
|
};
|
|
75
82
|
var _default = (0, _SmartCardStorage.withSmartCardStorage)(InlineCard);
|
|
@@ -55,7 +55,7 @@ exports.NORMAL_SEVERITY_THRESHOLD = NORMAL_SEVERITY_THRESHOLD;
|
|
|
55
55
|
var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
56
56
|
exports.DEGRADED_SEVERITY_THRESHOLD = DEGRADED_SEVERITY_THRESHOLD;
|
|
57
57
|
var packageName = "@atlaskit/renderer";
|
|
58
|
-
var packageVersion = "108.1.
|
|
58
|
+
var packageVersion = "108.1.3";
|
|
59
59
|
var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
60
60
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
61
61
|
var _super = _createSuper(Renderer);
|
|
@@ -114,29 +114,29 @@ var rendererStyles = function rendererStyles(wrapperProps) {
|
|
|
114
114
|
light: "var(--ds-background-neutral, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"),
|
|
115
115
|
dark: "var(--ds-background-neutral, ".concat(_editorSharedStyles.akEditorTableToolbarDark, ")")
|
|
116
116
|
})(themeProps), (0, _components.themed)({
|
|
117
|
-
light: "var(--ds-
|
|
118
|
-
dark: "var(--ds-
|
|
117
|
+
light: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"),
|
|
118
|
+
dark: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorderDark, ")")
|
|
119
119
|
})(themeProps), _editorSharedStyles.akEditorTableNumberColumnWidth, (0, _components.themed)({
|
|
120
120
|
light: "var(--ds-text-subtlest, ".concat(colors.N200, ")"),
|
|
121
121
|
dark: "var(--ds-text-subtlest, ".concat(colors.DN400, ")")
|
|
122
122
|
})(themeProps), (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), _consts.RendererCssClassName.NUMBER_COLUMN, _editorSharedStyles.akEditorStickyHeaderZIndex, (0, _components.themed)({
|
|
123
|
-
light: "var(--ds-
|
|
124
|
-
dark: "var(--ds-
|
|
123
|
+
light: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"),
|
|
124
|
+
dark: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorderDark, ")")
|
|
125
125
|
})(themeProps), (0, _components.themed)({
|
|
126
|
-
light: "var(--ds-
|
|
127
|
-
dark: "var(--ds-
|
|
126
|
+
light: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"),
|
|
127
|
+
dark: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorderDark, ")")
|
|
128
128
|
})(themeProps), _editorSharedStyles.akEditorStickyHeaderZIndex, (0, _components.themed)({
|
|
129
|
-
light: "var(--ds-
|
|
130
|
-
dark: "var(--ds-
|
|
129
|
+
light: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"),
|
|
130
|
+
dark: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorderDark, ")")
|
|
131
131
|
})(themeProps), (0, _components.themed)({
|
|
132
|
-
light: "var(--ds-
|
|
133
|
-
dark: "var(--ds-
|
|
132
|
+
light: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"),
|
|
133
|
+
dark: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorderDark, ")")
|
|
134
134
|
})(themeProps), (0, _components.themed)({
|
|
135
|
-
light: "var(--ds-
|
|
136
|
-
dark: "var(--ds-
|
|
135
|
+
light: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"),
|
|
136
|
+
dark: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableToolbarDark, ")")
|
|
137
137
|
})(themeProps), (0, _components.themed)({
|
|
138
|
-
light: "var(--ds-
|
|
139
|
-
dark: "var(--ds-
|
|
138
|
+
light: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"),
|
|
139
|
+
dark: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableToolbarDark, ")")
|
|
140
140
|
})(themeProps), "var(--ds-radius-100, 3px)", _editorSharedStyles.blockNodesVerticalMargin, useGridRenderForCodeBlock(useBlockRenderForCodeBlock), (0, _lightWeightCodeBlock.getLightWeightCodeBlockStylesForRootRendererStyleSheet)(), _styles.columnLayoutSharedStyle, "var(--ds-space-250, 20px)", "var(--ds-space-400, 32px)", _editorSharedStyles.gridMediumMaxWidth, _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.blockNodesVerticalMargin, _utils.browser.safari ? _styles.codeBlockInListSafariFix : '');
|
|
141
141
|
};
|
|
142
142
|
};
|
package/dist/cjs/version.json
CHANGED
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
*/
|
|
8
8
|
//
|
|
9
9
|
export default {
|
|
10
|
-
'fabric.editor.codeBlockCopyButton.copiedToClipboard': 'Copied!',
|
|
11
|
-
'fabric.editor.codeBlockCopyButton.copyToClipboard': 'Copy',
|
|
12
10
|
'fabric.editor.headingLink.ascOrderLabel': 'Sort column Z to A',
|
|
13
11
|
'fabric.editor.headingLink.ascSortingLabel': 'ascending',
|
|
14
12
|
'fabric.editor.headingLink.copied': 'Copied!',
|
|
15
13
|
'fabric.editor.headingLink.copyAnchorLink': 'Copy link to heading',
|
|
16
14
|
'fabric.editor.headingLink.copyAriaLabel': 'Copy',
|
|
17
|
-
'fabric.editor.headingLink.descOrderLabel':
|
|
15
|
+
'fabric.editor.headingLink.descOrderLabel': 'Clear sorting',
|
|
16
|
+
'fabric.editor.headingLink.descSortingLabel': 'descending',
|
|
18
17
|
'fabric.editor.headingLink.failedToCopy': 'Copy failed',
|
|
18
|
+
'fabric.editor.headingLink.invalidLabel': "⚠️ You can't sort a table with merged cells",
|
|
19
19
|
'fabric.editor.headingLink.noOrderLabel': 'Sort column A to Z',
|
|
20
|
-
'fabric.editor.headingLink.noneSortingLabel': '
|
|
20
|
+
'fabric.editor.headingLink.noneSortingLabel': 'none'
|
|
21
21
|
};
|
|
@@ -33,6 +33,13 @@ export default function BlockCard(props) {
|
|
|
33
33
|
// Below is added for the future implementation of Linking Platform namespaced analytic context
|
|
34
34
|
location: 'renderer'
|
|
35
35
|
};
|
|
36
|
+
const onError = ({
|
|
37
|
+
err
|
|
38
|
+
}) => {
|
|
39
|
+
if (err) {
|
|
40
|
+
throw err;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
36
43
|
return /*#__PURE__*/React.createElement(AnalyticsContext, {
|
|
37
44
|
data: analyticsData
|
|
38
45
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -47,5 +54,7 @@ export default function BlockCard(props) {
|
|
|
47
54
|
showActions: rendererAppearance !== 'mobile',
|
|
48
55
|
platform: platform,
|
|
49
56
|
showServerActions: showServerActions
|
|
50
|
-
}, cardProps
|
|
57
|
+
}, cardProps, {
|
|
58
|
+
onError: onError
|
|
59
|
+
})))));
|
|
51
60
|
}
|
|
@@ -114,6 +114,13 @@ export default function EmbedCard(props) {
|
|
|
114
114
|
}
|
|
115
115
|
const lineLength = isFullWidth ? Math.min(akEditorFullWidthLayoutWidth, containerWidth - padding) : nonFullWidthSize;
|
|
116
116
|
const uiMediaSingleStyles = layout === 'full-width' || layout === 'wide' ? uIMediaSingleLayoutStyles : '';
|
|
117
|
+
const onError = ({
|
|
118
|
+
err
|
|
119
|
+
}) => {
|
|
120
|
+
if (err) {
|
|
121
|
+
throw err;
|
|
122
|
+
}
|
|
123
|
+
};
|
|
117
124
|
return jsx(CardErrorBoundary, _extends({
|
|
118
125
|
unsupportedComponent: UnsupportedBlock
|
|
119
126
|
}, cardProps), jsx(EmbedResizeMessageListener, {
|
|
@@ -145,7 +152,8 @@ export default function EmbedCard(props) {
|
|
|
145
152
|
}, cardProps, {
|
|
146
153
|
onResolve: onResolve,
|
|
147
154
|
inheritDimensions: true,
|
|
148
|
-
embedIframeRef: embedIframeRef
|
|
155
|
+
embedIframeRef: embedIframeRef,
|
|
156
|
+
onError: onError
|
|
149
157
|
})))))));
|
|
150
158
|
}));
|
|
151
159
|
}
|
|
@@ -46,6 +46,13 @@ const InlineCard = props => {
|
|
|
46
46
|
showServerActions: showServerActions
|
|
47
47
|
}));
|
|
48
48
|
}
|
|
49
|
+
const onError = ({
|
|
50
|
+
err
|
|
51
|
+
}) => {
|
|
52
|
+
if (err) {
|
|
53
|
+
throw err;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
49
56
|
return /*#__PURE__*/React.createElement(AnalyticsContext, {
|
|
50
57
|
data: analyticsData
|
|
51
58
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -65,7 +72,8 @@ const InlineCard = props => {
|
|
|
65
72
|
return;
|
|
66
73
|
}
|
|
67
74
|
props.smartCardStorage.set(data.url, data.title);
|
|
68
|
-
}
|
|
75
|
+
},
|
|
76
|
+
onError: onError
|
|
69
77
|
})))));
|
|
70
78
|
};
|
|
71
79
|
export default withSmartCardStorage(InlineCard);
|
|
@@ -35,7 +35,7 @@ import { RenderTracking } from '../../react/utils/performance/RenderTracking';
|
|
|
35
35
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
36
36
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
37
37
|
const packageName = "@atlaskit/renderer";
|
|
38
|
-
const packageVersion = "108.1.
|
|
38
|
+
const packageVersion = "108.1.3";
|
|
39
39
|
export class Renderer extends PureComponent {
|
|
40
40
|
constructor(props) {
|
|
41
41
|
super(props);
|
|
@@ -548,8 +548,8 @@ export const rendererStyles = wrapperProps => theme => {
|
|
|
548
548
|
})(themeProps)};
|
|
549
549
|
border-right: 1px solid
|
|
550
550
|
${themed({
|
|
551
|
-
light: `var(--ds-
|
|
552
|
-
dark: `var(--ds-
|
|
551
|
+
light: `var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`,
|
|
552
|
+
dark: `var(--ds-background-accent-gray-subtler, ${akEditorTableBorderDark})`
|
|
553
553
|
})(themeProps)};
|
|
554
554
|
width: ${akEditorTableNumberColumnWidth}px;
|
|
555
555
|
text-align: center;
|
|
@@ -574,13 +574,13 @@ export const rendererStyles = wrapperProps => theme => {
|
|
|
574
574
|
|
|
575
575
|
border-right: 1px solid
|
|
576
576
|
${themed({
|
|
577
|
-
light: `var(--ds-
|
|
578
|
-
dark: `var(--ds-
|
|
577
|
+
light: `var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`,
|
|
578
|
+
dark: `var(--ds-background-accent-gray-subtler, ${akEditorTableBorderDark})`
|
|
579
579
|
})(themeProps)};
|
|
580
580
|
border-bottom: 1px solid
|
|
581
581
|
${themed({
|
|
582
|
-
light: `var(--ds-
|
|
583
|
-
dark: `var(--ds-
|
|
582
|
+
light: `var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`,
|
|
583
|
+
dark: `var(--ds-background-accent-gray-subtler, ${akEditorTableBorderDark})`
|
|
584
584
|
})(themeProps)};
|
|
585
585
|
|
|
586
586
|
/* this is to compensate for the table border */
|
|
@@ -606,20 +606,20 @@ export const rendererStyles = wrapperProps => theme => {
|
|
|
606
606
|
.sticky td {
|
|
607
607
|
box-shadow: 0px 1px
|
|
608
608
|
${themed({
|
|
609
|
-
light: `var(--ds-
|
|
610
|
-
dark: `var(--ds-
|
|
609
|
+
light: `var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`,
|
|
610
|
+
dark: `var(--ds-background-accent-gray-subtler, ${akEditorTableBorderDark})`
|
|
611
611
|
})(themeProps)},
|
|
612
612
|
0px -0.5px ${themed({
|
|
613
|
-
light: `var(--ds-
|
|
614
|
-
dark: `var(--ds-
|
|
613
|
+
light: `var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`,
|
|
614
|
+
dark: `var(--ds-background-accent-gray-subtler, ${akEditorTableBorderDark})`
|
|
615
615
|
})(themeProps)},
|
|
616
616
|
inset -1px 0px ${themed({
|
|
617
|
-
light: `var(--ds-
|
|
618
|
-
dark: `var(--ds-
|
|
617
|
+
light: `var(--ds-background-accent-gray-subtler, ${akEditorTableToolbar})`,
|
|
618
|
+
dark: `var(--ds-background-accent-gray-subtler, ${akEditorTableToolbarDark})`
|
|
619
619
|
})(themeProps)},
|
|
620
620
|
0px -1px ${themed({
|
|
621
|
-
light: `var(--ds-
|
|
622
|
-
dark: `var(--ds-
|
|
621
|
+
light: `var(--ds-background-accent-gray-subtler, ${akEditorTableToolbar})`,
|
|
622
|
+
dark: `var(--ds-background-accent-gray-subtler, ${akEditorTableToolbarDark})`
|
|
623
623
|
})(themeProps)};
|
|
624
624
|
}
|
|
625
625
|
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/i18n/en_ZZ.js
CHANGED
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
*/
|
|
8
8
|
//
|
|
9
9
|
export default {
|
|
10
|
-
'fabric.editor.codeBlockCopyButton.copiedToClipboard': 'Copied!',
|
|
11
|
-
'fabric.editor.codeBlockCopyButton.copyToClipboard': 'Copy',
|
|
12
10
|
'fabric.editor.headingLink.ascOrderLabel': 'Sort column Z to A',
|
|
13
11
|
'fabric.editor.headingLink.ascSortingLabel': 'ascending',
|
|
14
12
|
'fabric.editor.headingLink.copied': 'Copied!',
|
|
15
13
|
'fabric.editor.headingLink.copyAnchorLink': 'Copy link to heading',
|
|
16
14
|
'fabric.editor.headingLink.copyAriaLabel': 'Copy',
|
|
17
|
-
'fabric.editor.headingLink.descOrderLabel':
|
|
15
|
+
'fabric.editor.headingLink.descOrderLabel': 'Clear sorting',
|
|
16
|
+
'fabric.editor.headingLink.descSortingLabel': 'descending',
|
|
18
17
|
'fabric.editor.headingLink.failedToCopy': 'Copy failed',
|
|
18
|
+
'fabric.editor.headingLink.invalidLabel': "⚠️ You can't sort a table with merged cells",
|
|
19
19
|
'fabric.editor.headingLink.noOrderLabel': 'Sort column A to Z',
|
|
20
|
-
'fabric.editor.headingLink.noneSortingLabel': '
|
|
20
|
+
'fabric.editor.headingLink.noneSortingLabel': 'none'
|
|
21
21
|
};
|
|
@@ -32,6 +32,12 @@ export default function BlockCard(props) {
|
|
|
32
32
|
// Below is added for the future implementation of Linking Platform namespaced analytic context
|
|
33
33
|
location: 'renderer'
|
|
34
34
|
};
|
|
35
|
+
var onError = function onError(_ref2) {
|
|
36
|
+
var err = _ref2.err;
|
|
37
|
+
if (err) {
|
|
38
|
+
throw err;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
35
41
|
return /*#__PURE__*/React.createElement(AnalyticsContext, {
|
|
36
42
|
data: analyticsData
|
|
37
43
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -46,5 +52,7 @@ export default function BlockCard(props) {
|
|
|
46
52
|
showActions: rendererAppearance !== 'mobile',
|
|
47
53
|
platform: platform,
|
|
48
54
|
showServerActions: showServerActions
|
|
49
|
-
}, cardProps
|
|
55
|
+
}, cardProps, {
|
|
56
|
+
onError: onError
|
|
57
|
+
})))));
|
|
50
58
|
}
|
|
@@ -108,6 +108,12 @@ export default function EmbedCard(props) {
|
|
|
108
108
|
}
|
|
109
109
|
var lineLength = isFullWidth ? Math.min(akEditorFullWidthLayoutWidth, containerWidth - padding) : nonFullWidthSize;
|
|
110
110
|
var uiMediaSingleStyles = layout === 'full-width' || layout === 'wide' ? uIMediaSingleLayoutStyles : '';
|
|
111
|
+
var onError = function onError(_ref3) {
|
|
112
|
+
var err = _ref3.err;
|
|
113
|
+
if (err) {
|
|
114
|
+
throw err;
|
|
115
|
+
}
|
|
116
|
+
};
|
|
111
117
|
return jsx(CardErrorBoundary, _extends({
|
|
112
118
|
unsupportedComponent: UnsupportedBlock
|
|
113
119
|
}, cardProps), jsx(EmbedResizeMessageListener, {
|
|
@@ -139,7 +145,8 @@ export default function EmbedCard(props) {
|
|
|
139
145
|
}, cardProps, {
|
|
140
146
|
onResolve: onResolve,
|
|
141
147
|
inheritDimensions: true,
|
|
142
|
-
embedIframeRef: embedIframeRef
|
|
148
|
+
embedIframeRef: embedIframeRef,
|
|
149
|
+
onError: onError
|
|
143
150
|
})))))));
|
|
144
151
|
}));
|
|
145
152
|
}
|
|
@@ -43,6 +43,12 @@ var InlineCard = function InlineCard(props) {
|
|
|
43
43
|
showServerActions: showServerActions
|
|
44
44
|
}));
|
|
45
45
|
}
|
|
46
|
+
var onError = function onError(_ref2) {
|
|
47
|
+
var err = _ref2.err;
|
|
48
|
+
if (err) {
|
|
49
|
+
throw err;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
46
52
|
return /*#__PURE__*/React.createElement(AnalyticsContext, {
|
|
47
53
|
data: analyticsData
|
|
48
54
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -62,7 +68,8 @@ var InlineCard = function InlineCard(props) {
|
|
|
62
68
|
return;
|
|
63
69
|
}
|
|
64
70
|
props.smartCardStorage.set(data.url, data.title);
|
|
65
|
-
}
|
|
71
|
+
},
|
|
72
|
+
onError: onError
|
|
66
73
|
})))));
|
|
67
74
|
};
|
|
68
75
|
export default withSmartCardStorage(InlineCard);
|
|
@@ -45,7 +45,7 @@ import { RenderTracking } from '../../react/utils/performance/RenderTracking';
|
|
|
45
45
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
46
46
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
47
47
|
var packageName = "@atlaskit/renderer";
|
|
48
|
-
var packageVersion = "108.1.
|
|
48
|
+
var packageVersion = "108.1.3";
|
|
49
49
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
50
50
|
_inherits(Renderer, _PureComponent);
|
|
51
51
|
var _super = _createSuper(Renderer);
|
|
@@ -103,29 +103,29 @@ export var rendererStyles = function rendererStyles(wrapperProps) {
|
|
|
103
103
|
light: "var(--ds-background-neutral, ".concat(akEditorTableToolbar, ")"),
|
|
104
104
|
dark: "var(--ds-background-neutral, ".concat(akEditorTableToolbarDark, ")")
|
|
105
105
|
})(themeProps), themed({
|
|
106
|
-
light: "var(--ds-
|
|
107
|
-
dark: "var(--ds-
|
|
106
|
+
light: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"),
|
|
107
|
+
dark: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorderDark, ")")
|
|
108
108
|
})(themeProps), akEditorTableNumberColumnWidth, themed({
|
|
109
109
|
light: "var(--ds-text-subtlest, ".concat(colors.N200, ")"),
|
|
110
110
|
dark: "var(--ds-text-subtlest, ".concat(colors.DN400, ")")
|
|
111
111
|
})(themeProps), relativeFontSizeToBase16(fontSize()), RendererCssClassName.NUMBER_COLUMN, akEditorStickyHeaderZIndex, themed({
|
|
112
|
-
light: "var(--ds-
|
|
113
|
-
dark: "var(--ds-
|
|
112
|
+
light: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"),
|
|
113
|
+
dark: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorderDark, ")")
|
|
114
114
|
})(themeProps), themed({
|
|
115
|
-
light: "var(--ds-
|
|
116
|
-
dark: "var(--ds-
|
|
115
|
+
light: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"),
|
|
116
|
+
dark: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorderDark, ")")
|
|
117
117
|
})(themeProps), akEditorStickyHeaderZIndex, themed({
|
|
118
|
-
light: "var(--ds-
|
|
119
|
-
dark: "var(--ds-
|
|
118
|
+
light: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"),
|
|
119
|
+
dark: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorderDark, ")")
|
|
120
120
|
})(themeProps), themed({
|
|
121
|
-
light: "var(--ds-
|
|
122
|
-
dark: "var(--ds-
|
|
121
|
+
light: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"),
|
|
122
|
+
dark: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorderDark, ")")
|
|
123
123
|
})(themeProps), themed({
|
|
124
|
-
light: "var(--ds-
|
|
125
|
-
dark: "var(--ds-
|
|
124
|
+
light: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableToolbar, ")"),
|
|
125
|
+
dark: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableToolbarDark, ")")
|
|
126
126
|
})(themeProps), themed({
|
|
127
|
-
light: "var(--ds-
|
|
128
|
-
dark: "var(--ds-
|
|
127
|
+
light: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableToolbar, ")"),
|
|
128
|
+
dark: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableToolbarDark, ")")
|
|
129
129
|
})(themeProps), "var(--ds-radius-100, 3px)", blockNodesVerticalMargin, useGridRenderForCodeBlock(useBlockRenderForCodeBlock), getLightWeightCodeBlockStylesForRootRendererStyleSheet(), columnLayoutSharedStyle, "var(--ds-space-250, 20px)", "var(--ds-space-400, 32px)", gridMediumMaxWidth, blockNodesVerticalMargin, blockNodesVerticalMargin, blockNodesVerticalMargin, browser.safari ? codeBlockInListSafariFix : '');
|
|
130
130
|
};
|
|
131
131
|
};
|
package/dist/esm/version.json
CHANGED
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
7
|
declare const _default: {
|
|
8
|
-
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
9
|
-
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
10
8
|
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
11
9
|
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
12
10
|
'fabric.editor.headingLink.copied': string;
|
|
13
11
|
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
14
12
|
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
15
13
|
'fabric.editor.headingLink.descOrderLabel': string;
|
|
14
|
+
'fabric.editor.headingLink.descSortingLabel': string;
|
|
16
15
|
'fabric.editor.headingLink.failedToCopy': string;
|
|
16
|
+
'fabric.editor.headingLink.invalidLabel': string;
|
|
17
17
|
'fabric.editor.headingLink.noOrderLabel': string;
|
|
18
18
|
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
19
19
|
};
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
7
|
declare const _default: {
|
|
8
|
-
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
9
|
-
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
10
8
|
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
11
9
|
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
12
10
|
'fabric.editor.headingLink.copied': string;
|
|
13
11
|
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
14
12
|
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
15
13
|
'fabric.editor.headingLink.descOrderLabel': string;
|
|
14
|
+
'fabric.editor.headingLink.descSortingLabel': string;
|
|
16
15
|
'fabric.editor.headingLink.failedToCopy': string;
|
|
16
|
+
'fabric.editor.headingLink.invalidLabel': string;
|
|
17
17
|
'fabric.editor.headingLink.noOrderLabel': string;
|
|
18
18
|
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
19
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "108.1.
|
|
3
|
+
"version": "108.1.3",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
40
40
|
"@atlaskit/button": "^16.7.0",
|
|
41
41
|
"@atlaskit/code": "^14.6.0",
|
|
42
|
-
"@atlaskit/editor-common": "^74.
|
|
42
|
+
"@atlaskit/editor-common": "^74.3.0",
|
|
43
43
|
"@atlaskit/editor-json-transformer": "^8.9.0",
|
|
44
44
|
"@atlaskit/editor-palette": "1.4.2",
|
|
45
45
|
"@atlaskit/editor-shared-styles": "^2.4.0",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"@atlaskit/media-ui": "^23.0.0",
|
|
53
53
|
"@atlaskit/media-viewer": "^48.0.0",
|
|
54
54
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
55
|
-
"@atlaskit/smart-card": "^26.
|
|
55
|
+
"@atlaskit/smart-card": "^26.5.0",
|
|
56
56
|
"@atlaskit/status": "^1.3.0",
|
|
57
57
|
"@atlaskit/task-decision": "^17.6.0",
|
|
58
58
|
"@atlaskit/theme": "^12.5.0",
|
|
59
|
-
"@atlaskit/tokens": "^1.
|
|
59
|
+
"@atlaskit/tokens": "^1.5.0",
|
|
60
60
|
"@atlaskit/tooltip": "^17.8.0",
|
|
61
61
|
"@babel/runtime": "^7.0.0",
|
|
62
62
|
"@emotion/react": "^11.7.1",
|
|
@@ -80,17 +80,17 @@
|
|
|
80
80
|
"@atlaskit/avatar": "^21.3.0",
|
|
81
81
|
"@atlaskit/css-reset": "^6.5.0",
|
|
82
82
|
"@atlaskit/docs": "*",
|
|
83
|
-
"@atlaskit/editor-core": "^
|
|
84
|
-
"@atlaskit/editor-test-helpers": "^18.
|
|
83
|
+
"@atlaskit/editor-core": "^185.0.0",
|
|
84
|
+
"@atlaskit/editor-test-helpers": "^18.5.0",
|
|
85
85
|
"@atlaskit/link-provider": "^1.6.0",
|
|
86
86
|
"@atlaskit/link-test-helpers": "^4.0.0",
|
|
87
87
|
"@atlaskit/logo": "^13.14.0",
|
|
88
88
|
"@atlaskit/media-core": "^34.1.0",
|
|
89
|
-
"@atlaskit/media-integration-test-helpers": "^
|
|
89
|
+
"@atlaskit/media-integration-test-helpers": "^3.0.0",
|
|
90
90
|
"@atlaskit/media-test-helpers": "^33.0.0",
|
|
91
91
|
"@atlaskit/mention": "^22.1.0",
|
|
92
92
|
"@atlaskit/navigation-next": "^9.0.0",
|
|
93
|
-
"@atlaskit/profilecard": "^19.
|
|
93
|
+
"@atlaskit/profilecard": "^19.4.0",
|
|
94
94
|
"@atlaskit/radio": "^5.6.0",
|
|
95
95
|
"@atlaskit/range": "^7.1.0",
|
|
96
96
|
"@atlaskit/ssr": "*",
|