@atlaskit/renderer 110.4.4 → 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 CHANGED
@@ -1,5 +1,26 @@
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
+
15
+ ## 110.4.5
16
+
17
+ ### Patch Changes
18
+
19
+ - [#144888](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/144888)
20
+ [`de9029605ff53`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/de9029605ff53) -
21
+ [ED-24681] Clean up FD `confluence.frontend.comments-on-media.bug.insert.excerpt`
22
+ - Updated dependencies
23
+
3
24
  ## 110.4.4
4
25
 
5
26
  ### 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) {
@@ -317,7 +317,7 @@ var Media = /*#__PURE__*/function (_PureComponent) {
317
317
  var shouldOpenMediaViewer = !linkHref && allowMediaViewer;
318
318
  var isInPageInclude = mediaSingleElement === null || mediaSingleElement === void 0 ? void 0 : mediaSingleElement.closest('[data-node-type="include"]');
319
319
  var isIncludeExcerpt = !!(mediaSingleElement !== null && mediaSingleElement !== void 0 && mediaSingleElement.closest('.ak-excerpt-include'));
320
- var showCommentBadge = !!annotationMarks && (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.commentsOnMedia) && !isInPageInclude && (!(featureFlags !== null && featureFlags !== void 0 && featureFlags.commentsOnMediaInsertExcerpt) || !isIncludeExcerpt);
320
+ var showCommentBadge = !!annotationMarks && (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.commentsOnMedia) && !isInPageInclude && !isIncludeExcerpt;
321
321
  var shouldShowExternalMediaBadge = _this.props.type === 'external';
322
322
  return (0, _react2.jsx)(MediaLink, {
323
323
  mark: linkMark,
@@ -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.4.4";
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) {
@@ -282,7 +282,7 @@ class Media extends PureComponent {
282
282
  const shouldOpenMediaViewer = !linkHref && allowMediaViewer;
283
283
  const isInPageInclude = mediaSingleElement === null || mediaSingleElement === void 0 ? void 0 : mediaSingleElement.closest('[data-node-type="include"]');
284
284
  const isIncludeExcerpt = !!(mediaSingleElement !== null && mediaSingleElement !== void 0 && mediaSingleElement.closest('.ak-excerpt-include'));
285
- const showCommentBadge = !!annotationMarks && (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.commentsOnMedia) && !isInPageInclude && (!(featureFlags !== null && featureFlags !== void 0 && featureFlags.commentsOnMediaInsertExcerpt) || !isIncludeExcerpt);
285
+ const showCommentBadge = !!annotationMarks && (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.commentsOnMedia) && !isInPageInclude && !isIncludeExcerpt;
286
286
  const shouldShowExternalMediaBadge = this.props.type === 'external';
287
287
  return jsx(MediaLink, {
288
288
  mark: linkMark,
@@ -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.4.4";
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) {
@@ -308,7 +308,7 @@ var Media = /*#__PURE__*/function (_PureComponent) {
308
308
  var shouldOpenMediaViewer = !linkHref && allowMediaViewer;
309
309
  var isInPageInclude = mediaSingleElement === null || mediaSingleElement === void 0 ? void 0 : mediaSingleElement.closest('[data-node-type="include"]');
310
310
  var isIncludeExcerpt = !!(mediaSingleElement !== null && mediaSingleElement !== void 0 && mediaSingleElement.closest('.ak-excerpt-include'));
311
- var showCommentBadge = !!annotationMarks && (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.commentsOnMedia) && !isInPageInclude && (!(featureFlags !== null && featureFlags !== void 0 && featureFlags.commentsOnMediaInsertExcerpt) || !isIncludeExcerpt);
311
+ var showCommentBadge = !!annotationMarks && (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.commentsOnMedia) && !isInPageInclude && !isIncludeExcerpt;
312
312
  var shouldShowExternalMediaBadge = _this.props.type === 'external';
313
313
  return jsx(MediaLink, {
314
314
  mark: linkMark,
@@ -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.4.4";
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.4.4",
3
+ "version": "110.5.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -27,28 +27,28 @@
27
27
  "@atlaskit/analytics-listeners": "^8.11.0",
28
28
  "@atlaskit/analytics-namespaced-context": "^6.12.0",
29
29
  "@atlaskit/analytics-next": "^10.1.0",
30
- "@atlaskit/button": "^20.1.0",
30
+ "@atlaskit/button": "^20.2.0",
31
31
  "@atlaskit/code": "^15.6.0",
32
32
  "@atlaskit/editor-common": "^91.0.0",
33
33
  "@atlaskit/editor-json-transformer": "^8.18.0",
34
34
  "@atlaskit/editor-palette": "1.6.0",
35
35
  "@atlaskit/editor-prosemirror": "6.0.0",
36
36
  "@atlaskit/editor-shared-styles": "^2.13.0",
37
- "@atlaskit/emoji": "^67.7.0",
37
+ "@atlaskit/emoji": "^67.8.0",
38
38
  "@atlaskit/feature-gate-js-client": "^4.19.0",
39
39
  "@atlaskit/icon": "^22.18.0",
40
40
  "@atlaskit/link-datasource": "^3.1.0",
41
41
  "@atlaskit/media-card": "^78.5.0",
42
42
  "@atlaskit/media-client": "^28.0.0",
43
43
  "@atlaskit/media-client-react": "^2.2.0",
44
- "@atlaskit/media-common": "^11.4.0",
44
+ "@atlaskit/media-common": "^11.5.0",
45
45
  "@atlaskit/media-filmstrip": "^47.3.0",
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.1.0",
50
- "@atlaskit/status": "^1.4.0",
51
- "@atlaskit/task-decision": "^17.10.0",
49
+ "@atlaskit/smart-card": "^28.2.0",
50
+ "@atlaskit/status": "^1.5.0",
51
+ "@atlaskit/task-decision": "^17.11.0",
52
52
  "@atlaskit/theme": "^13.0.0",
53
53
  "@atlaskit/tmp-editor-statsig": "*",
54
54
  "@atlaskit/tokens": "^1.61.0",
@@ -79,7 +79,7 @@
79
79
  "@atlaskit/media-core": "^34.3.0",
80
80
  "@atlaskit/media-integration-test-helpers": "^3.1.0",
81
81
  "@atlaskit/media-test-helpers": "^34.4.0",
82
- "@atlaskit/mention": "^23.2.0",
82
+ "@atlaskit/mention": "^23.3.0",
83
83
  "@atlaskit/navigation-next": "^9.0.0",
84
84
  "@atlaskit/util-data-test": "^17.9.0",
85
85
  "@atlaskit/visual-regression": "*",