@atlaskit/renderer 110.4.5 → 110.5.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/react/nodes/blockCard.js +1 -3
- package/dist/cjs/react/nodes/embedCard.js +1 -3
- package/dist/cjs/react/nodes/inlineCard.js +1 -5
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/blockCard.js +1 -3
- package/dist/es2019/react/nodes/embedCard.js +1 -3
- package/dist/es2019/react/nodes/inlineCard.js +1 -5
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/blockCard.js +1 -3
- package/dist/esm/react/nodes/embedCard.js +1 -3
- package/dist/esm/react/nodes/inlineCard.js +1 -5
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 110.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#145026](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/145026)
|
|
8
|
+
[`98399b2cfafdc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/98399b2cfafdc) -
|
|
9
|
+
Remove references to showActions and showServerActions
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 110.4.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -38,7 +38,6 @@ function BlockCard(props) {
|
|
|
38
38
|
smartLinks = props.smartLinks,
|
|
39
39
|
isNodeNested = props.isNodeNested;
|
|
40
40
|
var _ref = smartLinks || {},
|
|
41
|
-
showServerActions = _ref.showServerActions,
|
|
42
41
|
actionOptions = _ref.actionOptions;
|
|
43
42
|
var onClick = (0, _getCardClickHandler.getCardClickHandler)(eventHandlers, url);
|
|
44
43
|
var platform = 'web';
|
|
@@ -48,8 +47,7 @@ function BlockCard(props) {
|
|
|
48
47
|
onClick: onClick,
|
|
49
48
|
container: portal,
|
|
50
49
|
isDatasource: !!props.datasource,
|
|
51
|
-
actionOptions: actionOptions
|
|
52
|
-
showServerActions: showServerActions
|
|
50
|
+
actionOptions: actionOptions
|
|
53
51
|
};
|
|
54
52
|
var analyticsData = {
|
|
55
53
|
attributes: {
|
|
@@ -56,7 +56,6 @@ function EmbedCard(props) {
|
|
|
56
56
|
var embedIframeRef = (0, _react2.useRef)(null);
|
|
57
57
|
var onClick = (0, _getCardClickHandler.getCardClickHandler)(eventHandlers, url);
|
|
58
58
|
var _ref = smartLinks || {},
|
|
59
|
-
showServerActions = _ref.showServerActions,
|
|
60
59
|
actionOptions = _ref.actionOptions;
|
|
61
60
|
var platform = 'web';
|
|
62
61
|
var cardProps = {
|
|
@@ -66,8 +65,7 @@ function EmbedCard(props) {
|
|
|
66
65
|
container: portal,
|
|
67
66
|
platform: platform,
|
|
68
67
|
frameStyle: (_smartLinks$frameStyl = smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.frameStyle) !== null && _smartLinks$frameStyl !== void 0 ? _smartLinks$frameStyl : 'show',
|
|
69
|
-
actionOptions: actionOptions
|
|
70
|
-
showServerActions: showServerActions
|
|
68
|
+
actionOptions: actionOptions
|
|
71
69
|
};
|
|
72
70
|
var _useState = (0, _react2.useState)(null),
|
|
73
71
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -38,7 +38,6 @@ var InlineCard = function InlineCard(props) {
|
|
|
38
38
|
var _ref = smartLinks || {},
|
|
39
39
|
showAuthTooltip = _ref.showAuthTooltip,
|
|
40
40
|
hideHoverPreview = _ref.hideHoverPreview,
|
|
41
|
-
showServerActions = _ref.showServerActions,
|
|
42
41
|
actionOptions = _ref.actionOptions,
|
|
43
42
|
ssr = _ref.ssr;
|
|
44
43
|
var analyticsData = {
|
|
@@ -65,7 +64,6 @@ var InlineCard = function InlineCard(props) {
|
|
|
65
64
|
showAuthTooltip: showAuthTooltip,
|
|
66
65
|
showHoverPreview: !hideHoverPreview,
|
|
67
66
|
actionOptions: actionOptions,
|
|
68
|
-
showServerActions: showServerActions,
|
|
69
67
|
onClick: onClick
|
|
70
68
|
})));
|
|
71
69
|
}
|
|
@@ -77,7 +75,6 @@ var InlineCard = function InlineCard(props) {
|
|
|
77
75
|
showAuthTooltip: showAuthTooltip,
|
|
78
76
|
showHoverPreview: !hideHoverPreview,
|
|
79
77
|
actionOptions: actionOptions,
|
|
80
|
-
showServerActions: showServerActions,
|
|
81
78
|
onClick: onClick
|
|
82
79
|
}));
|
|
83
80
|
}
|
|
@@ -99,8 +96,7 @@ var InlineCard = function InlineCard(props) {
|
|
|
99
96
|
appearance: "inline",
|
|
100
97
|
showHoverPreview: !hideHoverPreview,
|
|
101
98
|
showAuthTooltip: showAuthTooltip,
|
|
102
|
-
actionOptions: actionOptions
|
|
103
|
-
showServerActions: showServerActions
|
|
99
|
+
actionOptions: actionOptions
|
|
104
100
|
}, cardProps, {
|
|
105
101
|
onResolve: function onResolve(data) {
|
|
106
102
|
if (!data.url || !data.title) {
|
|
@@ -63,7 +63,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
63
63
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
64
64
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
65
65
|
var packageName = "@atlaskit/renderer";
|
|
66
|
-
var packageVersion = "110.
|
|
66
|
+
var packageVersion = "110.5.0";
|
|
67
67
|
var defaultNodeComponents = exports.defaultNodeComponents = _nodes.nodeToReact;
|
|
68
68
|
var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
69
69
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
@@ -32,7 +32,6 @@ export default function BlockCard(props) {
|
|
|
32
32
|
isNodeNested
|
|
33
33
|
} = props;
|
|
34
34
|
const {
|
|
35
|
-
showServerActions,
|
|
36
35
|
actionOptions
|
|
37
36
|
} = smartLinks || {};
|
|
38
37
|
const onClick = getCardClickHandler(eventHandlers, url);
|
|
@@ -43,8 +42,7 @@ export default function BlockCard(props) {
|
|
|
43
42
|
onClick,
|
|
44
43
|
container: portal,
|
|
45
44
|
isDatasource: !!props.datasource,
|
|
46
|
-
actionOptions
|
|
47
|
-
showServerActions
|
|
45
|
+
actionOptions
|
|
48
46
|
};
|
|
49
47
|
const analyticsData = {
|
|
50
48
|
attributes: {
|
|
@@ -49,7 +49,6 @@ export default function EmbedCard(props) {
|
|
|
49
49
|
const embedIframeRef = useRef(null);
|
|
50
50
|
const onClick = getCardClickHandler(eventHandlers, url);
|
|
51
51
|
const {
|
|
52
|
-
showServerActions,
|
|
53
52
|
actionOptions
|
|
54
53
|
} = smartLinks || {};
|
|
55
54
|
const platform = 'web';
|
|
@@ -60,8 +59,7 @@ export default function EmbedCard(props) {
|
|
|
60
59
|
container: portal,
|
|
61
60
|
platform,
|
|
62
61
|
frameStyle: (_smartLinks$frameStyl = smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.frameStyle) !== null && _smartLinks$frameStyl !== void 0 ? _smartLinks$frameStyl : 'show',
|
|
63
|
-
actionOptions
|
|
64
|
-
showServerActions
|
|
62
|
+
actionOptions
|
|
65
63
|
};
|
|
66
64
|
const [liveHeight, setLiveHeight] = useState(null);
|
|
67
65
|
const [aspectRatio, setAspectRatio] = useState();
|
|
@@ -32,7 +32,6 @@ const InlineCard = props => {
|
|
|
32
32
|
const {
|
|
33
33
|
showAuthTooltip,
|
|
34
34
|
hideHoverPreview,
|
|
35
|
-
showServerActions,
|
|
36
35
|
actionOptions,
|
|
37
36
|
ssr
|
|
38
37
|
} = smartLinks || {};
|
|
@@ -60,7 +59,6 @@ const InlineCard = props => {
|
|
|
60
59
|
showAuthTooltip: showAuthTooltip,
|
|
61
60
|
showHoverPreview: !hideHoverPreview,
|
|
62
61
|
actionOptions: actionOptions,
|
|
63
|
-
showServerActions: showServerActions,
|
|
64
62
|
onClick: onClick
|
|
65
63
|
})));
|
|
66
64
|
}
|
|
@@ -72,7 +70,6 @@ const InlineCard = props => {
|
|
|
72
70
|
showAuthTooltip: showAuthTooltip,
|
|
73
71
|
showHoverPreview: !hideHoverPreview,
|
|
74
72
|
actionOptions: actionOptions,
|
|
75
|
-
showServerActions: showServerActions,
|
|
76
73
|
onClick: onClick
|
|
77
74
|
}));
|
|
78
75
|
}
|
|
@@ -95,8 +92,7 @@ const InlineCard = props => {
|
|
|
95
92
|
appearance: "inline",
|
|
96
93
|
showHoverPreview: !hideHoverPreview,
|
|
97
94
|
showAuthTooltip: showAuthTooltip,
|
|
98
|
-
actionOptions: actionOptions
|
|
99
|
-
showServerActions: showServerActions
|
|
95
|
+
actionOptions: actionOptions
|
|
100
96
|
}, cardProps, {
|
|
101
97
|
onResolve: data => {
|
|
102
98
|
if (!data.url || !data.title) {
|
|
@@ -45,7 +45,7 @@ import { nodeToReact } from '../../react/nodes';
|
|
|
45
45
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
46
46
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
47
47
|
const packageName = "@atlaskit/renderer";
|
|
48
|
-
const packageVersion = "110.
|
|
48
|
+
const packageVersion = "110.5.0";
|
|
49
49
|
export const defaultNodeComponents = nodeToReact;
|
|
50
50
|
export class Renderer extends PureComponent {
|
|
51
51
|
constructor(props) {
|
|
@@ -30,7 +30,6 @@ export default function BlockCard(props) {
|
|
|
30
30
|
smartLinks = props.smartLinks,
|
|
31
31
|
isNodeNested = props.isNodeNested;
|
|
32
32
|
var _ref = smartLinks || {},
|
|
33
|
-
showServerActions = _ref.showServerActions,
|
|
34
33
|
actionOptions = _ref.actionOptions;
|
|
35
34
|
var onClick = getCardClickHandler(eventHandlers, url);
|
|
36
35
|
var platform = 'web';
|
|
@@ -40,8 +39,7 @@ export default function BlockCard(props) {
|
|
|
40
39
|
onClick: onClick,
|
|
41
40
|
container: portal,
|
|
42
41
|
isDatasource: !!props.datasource,
|
|
43
|
-
actionOptions: actionOptions
|
|
44
|
-
showServerActions: showServerActions
|
|
42
|
+
actionOptions: actionOptions
|
|
45
43
|
};
|
|
46
44
|
var analyticsData = {
|
|
47
45
|
attributes: {
|
|
@@ -48,7 +48,6 @@ export default function EmbedCard(props) {
|
|
|
48
48
|
var embedIframeRef = useRef(null);
|
|
49
49
|
var onClick = getCardClickHandler(eventHandlers, url);
|
|
50
50
|
var _ref = smartLinks || {},
|
|
51
|
-
showServerActions = _ref.showServerActions,
|
|
52
51
|
actionOptions = _ref.actionOptions;
|
|
53
52
|
var platform = 'web';
|
|
54
53
|
var cardProps = {
|
|
@@ -58,8 +57,7 @@ export default function EmbedCard(props) {
|
|
|
58
57
|
container: portal,
|
|
59
58
|
platform: platform,
|
|
60
59
|
frameStyle: (_smartLinks$frameStyl = smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.frameStyle) !== null && _smartLinks$frameStyl !== void 0 ? _smartLinks$frameStyl : 'show',
|
|
61
|
-
actionOptions: actionOptions
|
|
62
|
-
showServerActions: showServerActions
|
|
60
|
+
actionOptions: actionOptions
|
|
63
61
|
};
|
|
64
62
|
var _useState = useState(null),
|
|
65
63
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -30,7 +30,6 @@ var InlineCard = function InlineCard(props) {
|
|
|
30
30
|
var _ref = smartLinks || {},
|
|
31
31
|
showAuthTooltip = _ref.showAuthTooltip,
|
|
32
32
|
hideHoverPreview = _ref.hideHoverPreview,
|
|
33
|
-
showServerActions = _ref.showServerActions,
|
|
34
33
|
actionOptions = _ref.actionOptions,
|
|
35
34
|
ssr = _ref.ssr;
|
|
36
35
|
var analyticsData = {
|
|
@@ -57,7 +56,6 @@ var InlineCard = function InlineCard(props) {
|
|
|
57
56
|
showAuthTooltip: showAuthTooltip,
|
|
58
57
|
showHoverPreview: !hideHoverPreview,
|
|
59
58
|
actionOptions: actionOptions,
|
|
60
|
-
showServerActions: showServerActions,
|
|
61
59
|
onClick: onClick
|
|
62
60
|
})));
|
|
63
61
|
}
|
|
@@ -69,7 +67,6 @@ var InlineCard = function InlineCard(props) {
|
|
|
69
67
|
showAuthTooltip: showAuthTooltip,
|
|
70
68
|
showHoverPreview: !hideHoverPreview,
|
|
71
69
|
actionOptions: actionOptions,
|
|
72
|
-
showServerActions: showServerActions,
|
|
73
70
|
onClick: onClick
|
|
74
71
|
}));
|
|
75
72
|
}
|
|
@@ -91,8 +88,7 @@ var InlineCard = function InlineCard(props) {
|
|
|
91
88
|
appearance: "inline",
|
|
92
89
|
showHoverPreview: !hideHoverPreview,
|
|
93
90
|
showAuthTooltip: showAuthTooltip,
|
|
94
|
-
actionOptions: actionOptions
|
|
95
|
-
showServerActions: showServerActions
|
|
91
|
+
actionOptions: actionOptions
|
|
96
92
|
}, cardProps, {
|
|
97
93
|
onResolve: function onResolve(data) {
|
|
98
94
|
if (!data.url || !data.title) {
|
|
@@ -55,7 +55,7 @@ import { nodeToReact } from '../../react/nodes';
|
|
|
55
55
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
56
56
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
57
57
|
var packageName = "@atlaskit/renderer";
|
|
58
|
-
var packageVersion = "110.
|
|
58
|
+
var packageVersion = "110.5.0";
|
|
59
59
|
export var defaultNodeComponents = nodeToReact;
|
|
60
60
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
61
61
|
_inherits(Renderer, _PureComponent);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "110.
|
|
3
|
+
"version": "110.5.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/media-ui": "^25.15.0",
|
|
47
47
|
"@atlaskit/media-viewer": "^48.10.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
49
|
-
"@atlaskit/smart-card": "^28.
|
|
49
|
+
"@atlaskit/smart-card": "^28.2.0",
|
|
50
50
|
"@atlaskit/status": "^1.5.0",
|
|
51
51
|
"@atlaskit/task-decision": "^17.11.0",
|
|
52
52
|
"@atlaskit/theme": "^13.0.0",
|