@atlaskit/renderer 112.8.0 → 112.8.2

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,17 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 112.8.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 112.8.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 112.8.0
4
16
 
5
17
  ### Minor Changes
@@ -10,6 +10,6 @@ function Em(props) {
10
10
  // ignore the eslint warning Text primitive does not support dataAttributes
11
11
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
12
12
  // Ignored via go/ees005
13
- // eslint-disable-next-line react/jsx-props-no-spreading
13
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/use-primitives-text
14
14
  return /*#__PURE__*/_react.default.createElement("em", props.dataAttributes, props.children);
15
15
  }
@@ -10,6 +10,6 @@ function Strong(props) {
10
10
  // ignore the eslint warning Text primitive does not support dataAttributes
11
11
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
12
12
  // Ignored via go/ees005
13
- // eslint-disable-next-line react/jsx-props-no-spreading
13
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/use-primitives-text
14
14
  return /*#__PURE__*/_react.default.createElement("strong", props.dataAttributes, props.children);
15
15
  }
@@ -104,6 +104,9 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
104
104
  height: height
105
105
  });
106
106
  }, []);
107
+
108
+ // Ignored via go/ees005
109
+ // eslint-disable-next-line prefer-const
107
110
  var _media$props = media.props,
108
111
  _media$props$width = _media$props.width,
109
112
  width = _media$props$width === void 0 ? DEFAULT_WIDTH : _media$props$width,
@@ -15,7 +15,7 @@ function Paragraph(_ref) {
15
15
  // ignore the eslint warning Text primitive does not support dataAttributes
16
16
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
17
17
  // Ignored via go/ees005
18
- // eslint-disable-next-line react/jsx-props-no-spreading
18
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/use-primitives-text
19
19
  _react.default.createElement("p", dataAttributes, /*#__PURE__*/_react.default.createElement(_inline.default, null, children))
20
20
  );
21
21
  }
@@ -189,7 +189,7 @@ var Colgroup = exports.Colgroup = function Colgroup(props) {
189
189
  }
190
190
  var colStyles = renderScaleDownColgroup(_objectSpread(_objectSpread({}, props), {}, {
191
191
  isTopLevelRenderer: isTopLevelRenderer,
192
- isTableScalingEnabled: !!(flags && 'tablePreserveWidth' in flags && flags.tablePreserveWidth) || props.rendererAppearance === 'comment' && (0, _experiments.editorExperiment)('support_table_in_comment', true, {
192
+ isTableScalingEnabled: props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'comment' && (0, _experiments.editorExperiment)('support_table_in_comment', true, {
193
193
  exposure: true
194
194
  }) || props.rendererAppearance === 'comment' && (0, _experiments.editorExperiment)('support_table_in_comment_jira', true, {
195
195
  exposure: true
@@ -38,7 +38,7 @@ var titleStyles = (0, _react.css)({
38
38
  border: 'none',
39
39
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
40
40
  fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()),
41
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
41
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
42
42
  lineHeight: _editorSharedStyles.akEditorLineHeight,
43
43
  fontWeight: "var(--ds-font-weight-regular, 400)",
44
44
  display: 'flex',
@@ -64,7 +64,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
64
64
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
65
65
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
66
66
  var packageName = "@atlaskit/renderer";
67
- var packageVersion = "112.8.0";
67
+ var packageVersion = "112.8.2";
68
68
  var setAsQueryContainerStyles = (0, _react2.css)({
69
69
  containerName: 'ak-renderer-wrapper',
70
70
  containerType: 'inline-size',
@@ -5,7 +5,7 @@ import { PLATFORM } from './events';
5
5
  // Ignored via go/ees005
6
6
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
7
7
 
8
- let rendersMap = {};
8
+ const rendersMap = {};
9
9
  const processLevelsAndTrack = (item, thresholds, dispatchAnalyticsEvent) => {
10
10
  try {
11
11
  const {
@@ -3,6 +3,6 @@ export default function Em(props) {
3
3
  // ignore the eslint warning Text primitive does not support dataAttributes
4
4
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
5
5
  // Ignored via go/ees005
6
- // eslint-disable-next-line react/jsx-props-no-spreading
6
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/use-primitives-text
7
7
  return /*#__PURE__*/React.createElement("em", props.dataAttributes, props.children);
8
8
  }
@@ -3,6 +3,6 @@ export default function Strong(props) {
3
3
  // ignore the eslint warning Text primitive does not support dataAttributes
4
4
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
5
5
  // Ignored via go/ees005
6
- // eslint-disable-next-line react/jsx-props-no-spreading
6
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/use-primitives-text
7
7
  return /*#__PURE__*/React.createElement("strong", props.dataAttributes, props.children);
8
8
  }
@@ -89,6 +89,9 @@ const MediaSingleWithChildren = props => {
89
89
  height
90
90
  });
91
91
  }, []);
92
+
93
+ // Ignored via go/ees005
94
+ // eslint-disable-next-line prefer-const
92
95
  let {
93
96
  width = DEFAULT_WIDTH,
94
97
  height = DEFAULT_HEIGHT,
@@ -6,7 +6,7 @@ import { getItemCounterDigitsSize, resolveOrder } from '@atlaskit/editor-common/
6
6
  import { getListIndentLevel } from '../utils/lists';
7
7
  export default function OrderedList(props) {
8
8
  var _props$content;
9
- let extraProps = {};
9
+ const extraProps = {};
10
10
  const itemCounterDigitsSize = getItemCounterDigitsSize({
11
11
  order: props.order,
12
12
  itemsCount: props === null || props === void 0 ? void 0 : (_props$content = props.content) === null || _props$content === void 0 ? void 0 : _props$content.length
@@ -9,7 +9,7 @@ export default function Paragraph({
9
9
  // ignore the eslint warning Text primitive does not support dataAttributes
10
10
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
11
11
  // Ignored via go/ees005
12
- // eslint-disable-next-line react/jsx-props-no-spreading
12
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/use-primitives-text
13
13
  React.createElement("p", dataAttributes, /*#__PURE__*/React.createElement(Inline, null, children))
14
14
  );
15
15
  }
@@ -50,7 +50,7 @@ const calcScalePercent = ({
50
50
  const colWidthSum = columnWidths => columnWidths.reduce((prev, curr) => curr + prev, 0);
51
51
  const renderScaleDownColgroup = props => {
52
52
  var _props$tableNode;
53
- let {
53
+ const {
54
54
  columnWidths,
55
55
  isNumberColumnEnabled,
56
56
  renderWidth,
@@ -170,7 +170,7 @@ export const Colgroup = props => {
170
170
  const {
171
171
  isTopLevelRenderer
172
172
  } = useRendererContext();
173
- let {
173
+ const {
174
174
  columnWidths,
175
175
  isNumberColumnEnabled
176
176
  } = props;
@@ -181,7 +181,7 @@ export const Colgroup = props => {
181
181
  const colStyles = renderScaleDownColgroup({
182
182
  ...props,
183
183
  isTopLevelRenderer,
184
- isTableScalingEnabled: !!(flags && 'tablePreserveWidth' in flags && flags.tablePreserveWidth) || props.rendererAppearance === 'comment' && editorExperiment('support_table_in_comment', true, {
184
+ isTableScalingEnabled: props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'comment' && editorExperiment('support_table_in_comment', true, {
185
185
  exposure: true
186
186
  }) || props.rendererAppearance === 'comment' && editorExperiment('support_table_in_comment_jira', true, {
187
187
  exposure: true
@@ -8,7 +8,7 @@ const table = (node, schema) => {
8
8
  };
9
9
  const tableRow = (node, schema) => {
10
10
  const result = [];
11
- let separator = '|';
11
+ const separator = '|';
12
12
  node.forEach(n => {
13
13
  result.push(tableCell(n, schema));
14
14
  });
@@ -23,7 +23,7 @@ const titleStyles = css({
23
23
  border: 'none',
24
24
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
25
25
  fontSize: relativeFontSizeToBase16(fontSize()),
26
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
27
27
  lineHeight: akEditorLineHeight,
28
28
  fontWeight: "var(--ds-font-weight-regular, 400)",
29
29
  display: 'flex',
@@ -45,7 +45,7 @@ import { TruncatedWrapper } from './truncated-wrapper';
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 = "112.8.0";
48
+ const packageVersion = "112.8.2";
49
49
  const setAsQueryContainerStyles = css({
50
50
  containerName: 'ak-renderer-wrapper',
51
51
  containerType: 'inline-size',
@@ -403,7 +403,7 @@ export class __RendererClassComponent extends PureComponent {
403
403
  schema: schema,
404
404
  onAnalyticsEvent: this.fireAnalyticsEvent
405
405
  }, result)))))));
406
- let rendererResult = truncated ? jsx(TruncatedWrapper, {
406
+ const rendererResult = truncated ? jsx(TruncatedWrapper, {
407
407
  height: maxHeight,
408
408
  fadeHeight: fadeOutHeight
409
409
  }, rendererOutput) : rendererOutput;
@@ -552,7 +552,7 @@ const handleWrapperOnClick = (event, props, mouseDownSelection) => {
552
552
  }
553
553
  };
554
554
  const RendererFunctionalComponent = props => {
555
- let mouseDownSelection = useRef(undefined);
555
+ const mouseDownSelection = useRef(undefined);
556
556
  const providerFactory = useMemo(() => props.dataProviders || new ProviderFactory(), [props.dataProviders]);
557
557
  const createRendererContext = useMemo(() => (featureFlags, isTopLevelRenderer) => {
558
558
  const normalizedFeatureFlags = normalizeFeatureFlags(featureFlags);
@@ -773,7 +773,7 @@ const RendererFunctionalComponent = props => {
773
773
  schema: schema,
774
774
  onAnalyticsEvent: fireAnalyticsEvent
775
775
  }, result)))))));
776
- let rendererResult = props.truncated ? jsx(TruncatedWrapper, {
776
+ const rendererResult = props.truncated ? jsx(TruncatedWrapper, {
777
777
  height: props.maxHeight,
778
778
  fadeHeight: props.fadeOutHeight
779
779
  }, rendererOutput) : rendererOutput;
@@ -3,6 +3,6 @@ export default function Em(props) {
3
3
  // ignore the eslint warning Text primitive does not support dataAttributes
4
4
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
5
5
  // Ignored via go/ees005
6
- // eslint-disable-next-line react/jsx-props-no-spreading
6
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/use-primitives-text
7
7
  return /*#__PURE__*/React.createElement("em", props.dataAttributes, props.children);
8
8
  }
@@ -3,6 +3,6 @@ export default function Strong(props) {
3
3
  // ignore the eslint warning Text primitive does not support dataAttributes
4
4
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
5
5
  // Ignored via go/ees005
6
- // eslint-disable-next-line react/jsx-props-no-spreading
6
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/use-primitives-text
7
7
  return /*#__PURE__*/React.createElement("strong", props.dataAttributes, props.children);
8
8
  }
@@ -93,6 +93,9 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
93
93
  height: height
94
94
  });
95
95
  }, []);
96
+
97
+ // Ignored via go/ees005
98
+ // eslint-disable-next-line prefer-const
96
99
  var _media$props = media.props,
97
100
  _media$props$width = _media$props.width,
98
101
  width = _media$props$width === void 0 ? DEFAULT_WIDTH : _media$props$width,
@@ -8,7 +8,7 @@ export default function Paragraph(_ref) {
8
8
  // ignore the eslint warning Text primitive does not support dataAttributes
9
9
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
10
10
  // Ignored via go/ees005
11
- // eslint-disable-next-line react/jsx-props-no-spreading
11
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/use-primitives-text
12
12
  React.createElement("p", dataAttributes, /*#__PURE__*/React.createElement(Inline, null, children))
13
13
  );
14
14
  }
@@ -183,7 +183,7 @@ export var Colgroup = function Colgroup(props) {
183
183
  }
184
184
  var colStyles = renderScaleDownColgroup(_objectSpread(_objectSpread({}, props), {}, {
185
185
  isTopLevelRenderer: isTopLevelRenderer,
186
- isTableScalingEnabled: !!(flags && 'tablePreserveWidth' in flags && flags.tablePreserveWidth) || props.rendererAppearance === 'comment' && editorExperiment('support_table_in_comment', true, {
186
+ isTableScalingEnabled: props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'comment' && editorExperiment('support_table_in_comment', true, {
187
187
  exposure: true
188
188
  }) || props.rendererAppearance === 'comment' && editorExperiment('support_table_in_comment_jira', true, {
189
189
  exposure: true
@@ -28,7 +28,7 @@ var titleStyles = css({
28
28
  border: 'none',
29
29
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
30
30
  fontSize: relativeFontSizeToBase16(fontSize()),
31
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
32
32
  lineHeight: akEditorLineHeight,
33
33
  fontWeight: "var(--ds-font-weight-regular, 400)",
34
34
  display: 'flex',
@@ -54,7 +54,7 @@ import { TruncatedWrapper } from './truncated-wrapper';
54
54
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
55
55
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
56
56
  var packageName = "@atlaskit/renderer";
57
- var packageVersion = "112.8.0";
57
+ var packageVersion = "112.8.2";
58
58
  var setAsQueryContainerStyles = css({
59
59
  containerName: 'ak-renderer-wrapper',
60
60
  containerType: 'inline-size',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "112.8.0",
3
+ "version": "112.8.2",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,7 +29,7 @@
29
29
  "@atlaskit/analytics-next": "^10.2.0",
30
30
  "@atlaskit/button": "^20.3.0",
31
31
  "@atlaskit/code": "^15.6.0",
32
- "@atlaskit/editor-common": "^97.2.0",
32
+ "@atlaskit/editor-common": "^98.2.0",
33
33
  "@atlaskit/editor-json-transformer": "^8.21.0",
34
34
  "@atlaskit/editor-palette": "1.6.3",
35
35
  "@atlaskit/editor-prosemirror": "6.2.1",
@@ -46,11 +46,11 @@
46
46
  "@atlaskit/media-ui": "^27.2.0",
47
47
  "@atlaskit/media-viewer": "^49.5.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.3.0",
49
- "@atlaskit/smart-card": "^33.1.0",
49
+ "@atlaskit/smart-card": "^34.0.0",
50
50
  "@atlaskit/status": "^1.8.0",
51
51
  "@atlaskit/task-decision": "^17.11.0",
52
52
  "@atlaskit/theme": "^14.0.0",
53
- "@atlaskit/tmp-editor-statsig": "^2.29.0",
53
+ "@atlaskit/tmp-editor-statsig": "^2.32.0",
54
54
  "@atlaskit/tokens": "^2.5.0",
55
55
  "@atlaskit/tooltip": "^19.0.0",
56
56
  "@babel/runtime": "^7.0.0",
@@ -78,7 +78,7 @@
78
78
  "@atlaskit/media-core": "^34.4.0",
79
79
  "@atlaskit/media-integration-test-helpers": "^3.1.0",
80
80
  "@atlaskit/media-test-helpers": "^34.7.0",
81
- "@atlaskit/mention": "^23.4.0",
81
+ "@atlaskit/mention": "^23.7.0",
82
82
  "@atlaskit/navigation-next": "^9.0.0",
83
83
  "@atlaskit/util-data-test": "^17.13.0",
84
84
  "@atlaskit/visual-regression": "*",