@atlaskit/renderer 124.16.2 → 124.16.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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 124.16.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`be08843fca604`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/be08843fca604) -
8
+ [EDITOR-3389] Make sure that renderer falls back to 'full-width' if the appearance is 'max' and
9
+ the experiment is off
10
+ - Updated dependencies
11
+
3
12
  ## 124.16.2
4
13
 
5
14
  ### Patch Changes
@@ -69,7 +69,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
69
69
  // we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
70
70
  var TABLE_INFO_TIMEOUT = 10000;
71
71
  var packageName = "@atlaskit/renderer";
72
- var packageVersion = "0.0.0-development";
72
+ var packageVersion = "124.16.2";
73
73
  var setAsQueryContainerStyles = (0, _react2.css)({
74
74
  containerName: 'ak-renderer-wrapper',
75
75
  containerType: 'inline-size'
@@ -780,6 +780,11 @@ var RendererWithAnnotationSelection = function RendererWithAnnotationSelection(p
780
780
  adfDocument = props.document;
781
781
  var localRef = _react.default.useRef(null);
782
782
  var innerRef = props.innerRef || localRef;
783
+
784
+ // @see https://hello.jira.atlassian.cloud/browse/EDITOR-3389
785
+ if (props.appearance === 'max' && (0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', false)) {
786
+ props.appearance = 'full-width';
787
+ }
783
788
  if (!allowAnnotations) {
784
789
  // Ignored via go/ees005
785
790
  // eslint-disable-next-line react/jsx-props-no-spreading
@@ -55,7 +55,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
55
55
  // we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
56
56
  const TABLE_INFO_TIMEOUT = 10000;
57
57
  const packageName = "@atlaskit/renderer";
58
- const packageVersion = "0.0.0-development";
58
+ const packageVersion = "124.16.2";
59
59
  const setAsQueryContainerStyles = css({
60
60
  containerName: 'ak-renderer-wrapper',
61
61
  containerType: 'inline-size'
@@ -767,6 +767,11 @@ const RendererWithAnnotationSelection = props => {
767
767
  } = props;
768
768
  const localRef = React.useRef(null);
769
769
  const innerRef = props.innerRef || localRef;
770
+
771
+ // @see https://hello.jira.atlassian.cloud/browse/EDITOR-3389
772
+ if (props.appearance === 'max' && expValEquals('editor_tinymce_full_width_mode', 'isEnabled', false)) {
773
+ props.appearance = 'full-width';
774
+ }
770
775
  if (!allowAnnotations) {
771
776
  // Ignored via go/ees005
772
777
  // eslint-disable-next-line react/jsx-props-no-spreading
@@ -60,7 +60,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
60
60
  // we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
61
61
  var TABLE_INFO_TIMEOUT = 10000;
62
62
  var packageName = "@atlaskit/renderer";
63
- var packageVersion = "0.0.0-development";
63
+ var packageVersion = "124.16.2";
64
64
  var setAsQueryContainerStyles = css({
65
65
  containerName: 'ak-renderer-wrapper',
66
66
  containerType: 'inline-size'
@@ -771,6 +771,11 @@ var RendererWithAnnotationSelection = function RendererWithAnnotationSelection(p
771
771
  adfDocument = props.document;
772
772
  var localRef = React.useRef(null);
773
773
  var innerRef = props.innerRef || localRef;
774
+
775
+ // @see https://hello.jira.atlassian.cloud/browse/EDITOR-3389
776
+ if (props.appearance === 'max' && expValEquals('editor_tinymce_full_width_mode', 'isEnabled', false)) {
777
+ props.appearance = 'full-width';
778
+ }
774
779
  if (!allowAnnotations) {
775
780
  // Ignored via go/ees005
776
781
  // eslint-disable-next-line react/jsx-props-no-spreading
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "124.16.2",
3
+ "version": "124.16.3",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -59,7 +59,7 @@
59
59
  "@atlaskit/task-decision": "^19.2.0",
60
60
  "@atlaskit/theme": "^21.0.0",
61
61
  "@atlaskit/tmp-editor-statsig": "^13.40.0",
62
- "@atlaskit/tokens": "^8.1.0",
62
+ "@atlaskit/tokens": "^8.2.0",
63
63
  "@atlaskit/tooltip": "^20.10.0",
64
64
  "@atlaskit/visually-hidden": "^3.0.0",
65
65
  "@babel/runtime": "^7.0.0",