@atlaskit/renderer 111.2.3 → 111.2.5

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,21 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 111.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 111.2.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [#152851](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152851)
14
+ [`caba4b5434f99`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/caba4b5434f99) -
15
+ Injects a custom interaction name to CardLoading component. This will individualise the experience
16
+ in Performance Portal
17
+ - Updated dependencies
18
+
3
19
  ## 111.2.3
4
20
 
5
21
  ### Patch Changes
@@ -7,5 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = Em;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  function Em(props) {
10
+ // ignore the eslint warning Text primitive does not support dataAttributes
11
+ // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
10
12
  return /*#__PURE__*/_react.default.createElement("em", props.dataAttributes, props.children);
11
13
  }
@@ -7,5 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = Strong;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  function Strong(props) {
10
+ // ignore the eslint warning Text primitive does not support dataAttributes
11
+ // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
10
12
  return /*#__PURE__*/_react.default.createElement("strong", props.dataAttributes, props.children);
11
13
  }
@@ -10,5 +10,10 @@ var _inline = _interopRequireDefault(require("./inline"));
10
10
  function Paragraph(_ref) {
11
11
  var children = _ref.children,
12
12
  dataAttributes = _ref.dataAttributes;
13
- return /*#__PURE__*/_react.default.createElement("p", dataAttributes, /*#__PURE__*/_react.default.createElement(_inline.default, null, children));
13
+ return (
14
+ /*#__PURE__*/
15
+ // ignore the eslint warning Text primitive does not support dataAttributes
16
+ // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
17
+ _react.default.createElement("p", dataAttributes, /*#__PURE__*/_react.default.createElement(_inline.default, null, children))
18
+ );
14
19
  }
@@ -108,7 +108,8 @@ var MediaCardView = exports.MediaCardView = /*#__PURE__*/function (_Component) {
108
108
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderLoadingCard", function () {
109
109
  var cardDimensions = _this.props.cardDimensions;
110
110
  return /*#__PURE__*/_react.default.createElement(_mediaCard.CardLoading, {
111
- dimensions: cardDimensions
111
+ dimensions: cardDimensions,
112
+ interactionName: "renderer-media-card-loading"
112
113
  });
113
114
  });
114
115
  /**
@@ -65,7 +65,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
65
65
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
66
66
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
67
67
  var packageName = "@atlaskit/renderer";
68
- var packageVersion = "111.2.3";
68
+ var packageVersion = "111.2.5";
69
69
  var setAsQueryContainerStyles = (0, _react2.css)({
70
70
  containerName: 'ak-renderer-wrapper',
71
71
  containerType: 'inline-size',
@@ -1,4 +1,6 @@
1
1
  import React from 'react';
2
2
  export default function Em(props) {
3
+ // ignore the eslint warning Text primitive does not support dataAttributes
4
+ // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
3
5
  return /*#__PURE__*/React.createElement("em", props.dataAttributes, props.children);
4
6
  }
@@ -1,4 +1,6 @@
1
1
  import React from 'react';
2
2
  export default function Strong(props) {
3
+ // ignore the eslint warning Text primitive does not support dataAttributes
4
+ // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
3
5
  return /*#__PURE__*/React.createElement("strong", props.dataAttributes, props.children);
4
6
  }
@@ -4,5 +4,10 @@ export default function Paragraph({
4
4
  children,
5
5
  dataAttributes
6
6
  }) {
7
- return /*#__PURE__*/React.createElement("p", dataAttributes, /*#__PURE__*/React.createElement(Inline, null, children));
7
+ return (
8
+ /*#__PURE__*/
9
+ // ignore the eslint warning Text primitive does not support dataAttributes
10
+ // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
11
+ React.createElement("p", dataAttributes, /*#__PURE__*/React.createElement(Inline, null, children))
12
+ );
8
13
  }
@@ -61,7 +61,8 @@ export class MediaCardView extends Component {
61
61
  cardDimensions
62
62
  } = this.props;
63
63
  return /*#__PURE__*/React.createElement(CardLoading, {
64
- dimensions: cardDimensions
64
+ dimensions: cardDimensions,
65
+ interactionName: "renderer-media-card-loading"
65
66
  });
66
67
  });
67
68
  /**
@@ -45,7 +45,7 @@ import { countNodes } from './count-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 = "111.2.3";
48
+ const packageVersion = "111.2.5";
49
49
  const setAsQueryContainerStyles = css({
50
50
  containerName: 'ak-renderer-wrapper',
51
51
  containerType: 'inline-size',
@@ -1,4 +1,6 @@
1
1
  import React from 'react';
2
2
  export default function Em(props) {
3
+ // ignore the eslint warning Text primitive does not support dataAttributes
4
+ // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
3
5
  return /*#__PURE__*/React.createElement("em", props.dataAttributes, props.children);
4
6
  }
@@ -1,4 +1,6 @@
1
1
  import React from 'react';
2
2
  export default function Strong(props) {
3
+ // ignore the eslint warning Text primitive does not support dataAttributes
4
+ // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
3
5
  return /*#__PURE__*/React.createElement("strong", props.dataAttributes, props.children);
4
6
  }
@@ -3,5 +3,10 @@ import Inline from './inline';
3
3
  export default function Paragraph(_ref) {
4
4
  var children = _ref.children,
5
5
  dataAttributes = _ref.dataAttributes;
6
- return /*#__PURE__*/React.createElement("p", dataAttributes, /*#__PURE__*/React.createElement(Inline, null, children));
6
+ return (
7
+ /*#__PURE__*/
8
+ // ignore the eslint warning Text primitive does not support dataAttributes
9
+ // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
10
+ React.createElement("p", dataAttributes, /*#__PURE__*/React.createElement(Inline, null, children))
11
+ );
7
12
  }
@@ -98,7 +98,8 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
98
98
  _defineProperty(_assertThisInitialized(_this), "renderLoadingCard", function () {
99
99
  var cardDimensions = _this.props.cardDimensions;
100
100
  return /*#__PURE__*/React.createElement(CardLoading, {
101
- dimensions: cardDimensions
101
+ dimensions: cardDimensions,
102
+ interactionName: "renderer-media-card-loading"
102
103
  });
103
104
  });
104
105
  /**
@@ -55,7 +55,7 @@ import { countNodes } from './count-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 = "111.2.3";
58
+ var packageVersion = "111.2.5";
59
59
  var setAsQueryContainerStyles = css({
60
60
  containerName: 'ak-renderer-wrapper',
61
61
  containerType: 'inline-size',
@@ -1,8 +1,41 @@
1
1
  import type { CardProps } from '@atlaskit/smart-card';
2
2
  export interface SmartLinksOptions {
3
+ /**
4
+ * A flag to enable inline Smart Link to render without lazy loading.
5
+ * Default is false.
6
+ *
7
+ * Component: inline
8
+ */
3
9
  ssr?: boolean;
10
+ /**
11
+ * A flag to display unresolved state on hover preview on inline Smart Link.
12
+ * Default is false.
13
+ *
14
+ * Component: inline
15
+ */
4
16
  showAuthTooltip?: boolean;
17
+ /**
18
+ * A flag to disable hover preview on inline Smart Link.
19
+ * Default is false.
20
+ *
21
+ * Component: inline
22
+ */
5
23
  hideHoverPreview?: boolean;
24
+ /**
25
+ * Configure visibility of actions available.
26
+ * By default, smart links show all actions available on the views.
27
+ * Set `hide` to true to disable all actions.
28
+ * Set `hide` to false and set `exclude` to enable only specific actions.
29
+ *
30
+ * Component: inline (hover preview), block (card)
31
+ */
6
32
  actionOptions?: CardProps['actionOptions'];
33
+ /**
34
+ * A prop that determines the style of a frame:
35
+ * whether to show it, hide it or only show it when a user hovers over embed.
36
+ * Default is `show`
37
+ *
38
+ * Component: embed
39
+ */
7
40
  frameStyle?: CardProps['frameStyle'];
8
41
  }
@@ -1,8 +1,41 @@
1
1
  import type { CardProps } from '@atlaskit/smart-card';
2
2
  export interface SmartLinksOptions {
3
+ /**
4
+ * A flag to enable inline Smart Link to render without lazy loading.
5
+ * Default is false.
6
+ *
7
+ * Component: inline
8
+ */
3
9
  ssr?: boolean;
10
+ /**
11
+ * A flag to display unresolved state on hover preview on inline Smart Link.
12
+ * Default is false.
13
+ *
14
+ * Component: inline
15
+ */
4
16
  showAuthTooltip?: boolean;
17
+ /**
18
+ * A flag to disable hover preview on inline Smart Link.
19
+ * Default is false.
20
+ *
21
+ * Component: inline
22
+ */
5
23
  hideHoverPreview?: boolean;
24
+ /**
25
+ * Configure visibility of actions available.
26
+ * By default, smart links show all actions available on the views.
27
+ * Set `hide` to true to disable all actions.
28
+ * Set `hide` to false and set `exclude` to enable only specific actions.
29
+ *
30
+ * Component: inline (hover preview), block (card)
31
+ */
6
32
  actionOptions?: CardProps['actionOptions'];
33
+ /**
34
+ * A prop that determines the style of a frame:
35
+ * whether to show it, hide it or only show it when a user hovers over embed.
36
+ * Default is `show`
37
+ *
38
+ * Component: embed
39
+ */
7
40
  frameStyle?: CardProps['frameStyle'];
8
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "111.2.3",
3
+ "version": "111.2.5",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,8 +29,8 @@
29
29
  "@atlaskit/analytics-next": "^10.1.0",
30
30
  "@atlaskit/button": "^20.2.0",
31
31
  "@atlaskit/code": "^15.6.0",
32
- "@atlaskit/editor-common": "^93.5.0",
33
- "@atlaskit/editor-json-transformer": "^8.19.0",
32
+ "@atlaskit/editor-common": "^93.6.0",
33
+ "@atlaskit/editor-json-transformer": "^8.20.0",
34
34
  "@atlaskit/editor-palette": "1.6.1",
35
35
  "@atlaskit/editor-prosemirror": "6.0.0",
36
36
  "@atlaskit/editor-shared-styles": "^3.0.0",
@@ -38,18 +38,18 @@
38
38
  "@atlaskit/feature-gate-js-client": "^4.20.0",
39
39
  "@atlaskit/icon": "^22.22.0",
40
40
  "@atlaskit/link-datasource": "^3.6.0",
41
- "@atlaskit/media-card": "^78.6.0",
41
+ "@atlaskit/media-card": "^78.7.0",
42
42
  "@atlaskit/media-client": "^28.0.0",
43
43
  "@atlaskit/media-client-react": "^2.2.0",
44
44
  "@atlaskit/media-common": "^11.6.0",
45
45
  "@atlaskit/media-filmstrip": "^47.4.0",
46
- "@atlaskit/media-ui": "^25.15.0",
47
- "@atlaskit/media-viewer": "^49.1.0",
46
+ "@atlaskit/media-ui": "^25.16.0",
47
+ "@atlaskit/media-viewer": "^49.2.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.3.0",
49
49
  "@atlaskit/smart-card": "^30.1.0",
50
50
  "@atlaskit/status": "^1.5.0",
51
51
  "@atlaskit/task-decision": "^17.11.0",
52
- "@atlaskit/theme": "^13.1.0",
52
+ "@atlaskit/theme": "^14.0.0",
53
53
  "@atlaskit/tmp-editor-statsig": "*",
54
54
  "@atlaskit/tokens": "^2.0.0",
55
55
  "@atlaskit/tooltip": "^18.8.0",
@@ -80,7 +80,7 @@
80
80
  "@atlaskit/media-test-helpers": "^34.5.0",
81
81
  "@atlaskit/mention": "^23.3.0",
82
82
  "@atlaskit/navigation-next": "^9.0.0",
83
- "@atlaskit/util-data-test": "^17.9.0",
83
+ "@atlaskit/util-data-test": "^17.11.0",
84
84
  "@atlaskit/visual-regression": "*",
85
85
  "@atlassian/feature-flags-test-utils": "*",
86
86
  "@testing-library/react": "^12.1.5",