@atlaskit/renderer 128.10.2 → 128.10.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,15 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 128.10.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0ad738e8f896e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0ad738e8f896e) -
8
+ Remove `support_table_in_comment` and `support_table_in_comment_jira` experiment references. Both
9
+ experiments are fully rolled out — table resizing, alignment, scaling, and distribute columns are
10
+ now enabled unconditionally in comment editors.
11
+ - Updated dependencies
12
+
3
13
  ## 128.10.2
4
14
 
5
15
  ### Patch Changes
@@ -11,7 +11,6 @@ var _react = _interopRequireWildcard(require("react"));
11
11
  var _styles = require("@atlaskit/editor-common/styles");
12
12
  var _ui = require("@atlaskit/editor-common/ui");
13
13
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
14
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
15
14
  var _nodeWidth = require("@atlaskit/editor-common/node-width");
16
15
  var _useFeatureFlags = require("../../../use-feature-flags");
17
16
  var _rendererContext = require("../../../renderer-context");
@@ -349,11 +348,7 @@ var Colgroup = exports.Colgroup = function Colgroup(props) {
349
348
  })) !== null && _renderSyncBlockColgr !== void 0 ? _renderSyncBlockColgr : renderScaleDownColgroup(_objectSpread(_objectSpread({}, props), {}, {
350
349
  isTopLevelRenderer: isTopLevelRenderer,
351
350
  isInsideOfSyncBlock: isInsideOfSyncBlock,
352
- isTableScalingEnabled: props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'max' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true)) || props.rendererAppearance === 'comment' && (0, _experiments.editorExperiment)('support_table_in_comment', true, {
353
- exposure: true
354
- }) || props.rendererAppearance === 'comment' && (0, _experiments.editorExperiment)('support_table_in_comment_jira', true, {
355
- exposure: true
356
- }),
351
+ isTableScalingEnabled: props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'max' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true)) || props.rendererAppearance === 'comment',
357
352
  isTableFixedColumnWidthsOptionEnabled: isTableFixedColumnWidthsOptionEnabled && (props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'max' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true)))
358
353
  }));
359
354
  if (!colStyles) {
@@ -39,9 +39,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
39
39
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
40
40
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
41
41
  var isTableResizingEnabled = exports.isTableResizingEnabled = function isTableResizingEnabled(appearance) {
42
- return (0, _appearance.isFullWidthOrFullPageAppearance)(appearance) || (0, _appearance.isCommentAppearance)(appearance) && (0, _experiments.editorExperiment)('support_table_in_comment', true, {
43
- exposure: true
44
- });
42
+ return (0, _appearance.isFullWidthOrFullPageAppearance)(appearance) || (0, _appearance.isCommentAppearance)(appearance);
45
43
  };
46
44
  var isStickyScrollbarEnabled = exports.isStickyScrollbarEnabled = function isStickyScrollbarEnabled(appearance) {
47
45
  return (0, _appearance.isFullWidthOrFullPageAppearance)(appearance) && (0, _experiments.editorExperiment)('platform_renderer_table_sticky_scrollbar', true, {
@@ -51,9 +51,7 @@ var stickyContainerAdditionalStyles = {
51
51
  zIndex: 1
52
52
  };
53
53
  var isTableResizingEnabled = exports.isTableResizingEnabled = function isTableResizingEnabled(appearance) {
54
- return (0, _appearance.isFullWidthOrFullPageAppearance)(appearance) || (0, _appearance.isCommentAppearance)(appearance) && (0, _experiments.editorExperiment)('support_table_in_comment', true, {
55
- exposure: true
56
- });
54
+ return (0, _appearance.isFullWidthOrFullPageAppearance)(appearance) || (0, _appearance.isCommentAppearance)(appearance);
57
55
  };
58
56
  var isStickyScrollbarEnabled = exports.isStickyScrollbarEnabled = function isStickyScrollbarEnabled(appearance) {
59
57
  return (0, _appearance.isFullWidthOrFullPageAppearance)(appearance) && (0, _experiments.editorExperiment)('platform_renderer_table_sticky_scrollbar', true, {
@@ -2,7 +2,6 @@ import React, { useContext } from 'react';
2
2
  import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common/styles';
3
3
  import { WidthContext } from '@atlaskit/editor-common/ui';
4
4
  import { akEditorTableNumberColumnWidth, akEditorTableLegacyCellMinWidth, akEditorTableCellMinWidth } from '@atlaskit/editor-shared-styles';
5
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
6
5
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
7
6
  import { useFeatureFlags } from '../../../use-feature-flags';
8
7
  import { useRendererContext } from '../../../renderer-context';
@@ -324,11 +323,7 @@ export const Colgroup = props => {
324
323
  ...props,
325
324
  isTopLevelRenderer,
326
325
  isInsideOfSyncBlock,
327
- isTableScalingEnabled: props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)) || props.rendererAppearance === 'comment' && editorExperiment('support_table_in_comment', true, {
328
- exposure: true
329
- }) || props.rendererAppearance === 'comment' && editorExperiment('support_table_in_comment_jira', true, {
330
- exposure: true
331
- }),
326
+ isTableScalingEnabled: props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)) || props.rendererAppearance === 'comment',
332
327
  isTableFixedColumnWidthsOptionEnabled: isTableFixedColumnWidthsOptionEnabled && (props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)))
333
328
  });
334
329
  if (!colStyles) {
@@ -20,9 +20,7 @@ import { isCommentAppearance, isFullPageAppearance, isFullWidthAppearance, isFul
20
20
  import { TableStickyScrollbar } from './TableStickyScrollbar';
21
21
  import { TableProcessorWithContainerStyles } from './tableNew';
22
22
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
23
- export const isTableResizingEnabled = appearance => isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance) && editorExperiment('support_table_in_comment', true, {
24
- exposure: true
25
- });
23
+ export const isTableResizingEnabled = appearance => isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance);
26
24
  export const isStickyScrollbarEnabled = appearance => isFullWidthOrFullPageAppearance(appearance) && editorExperiment('platform_renderer_table_sticky_scrollbar', true, {
27
25
  exposure: true
28
26
  });
@@ -32,9 +32,7 @@ const stickyContainerAdditionalStyles = {
32
32
  bottom: "var(--ds-space-0, 0px)",
33
33
  zIndex: 1
34
34
  };
35
- export const isTableResizingEnabled = appearance => isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance) && editorExperiment('support_table_in_comment', true, {
36
- exposure: true
37
- });
35
+ export const isTableResizingEnabled = appearance => isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance);
38
36
  export const isStickyScrollbarEnabled = appearance => isFullWidthOrFullPageAppearance(appearance) && editorExperiment('platform_renderer_table_sticky_scrollbar', true, {
39
37
  exposure: true
40
38
  });
@@ -5,7 +5,6 @@ import React, { useContext } from 'react';
5
5
  import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common/styles';
6
6
  import { WidthContext } from '@atlaskit/editor-common/ui';
7
7
  import { akEditorTableNumberColumnWidth, akEditorTableLegacyCellMinWidth, akEditorTableCellMinWidth } from '@atlaskit/editor-shared-styles';
8
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
9
8
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
10
9
  import { useFeatureFlags } from '../../../use-feature-flags';
11
10
  import { useRendererContext } from '../../../renderer-context';
@@ -341,11 +340,7 @@ export var Colgroup = function Colgroup(props) {
341
340
  })) !== null && _renderSyncBlockColgr !== void 0 ? _renderSyncBlockColgr : renderScaleDownColgroup(_objectSpread(_objectSpread({}, props), {}, {
342
341
  isTopLevelRenderer: isTopLevelRenderer,
343
342
  isInsideOfSyncBlock: isInsideOfSyncBlock,
344
- isTableScalingEnabled: props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)) || props.rendererAppearance === 'comment' && editorExperiment('support_table_in_comment', true, {
345
- exposure: true
346
- }) || props.rendererAppearance === 'comment' && editorExperiment('support_table_in_comment_jira', true, {
347
- exposure: true
348
- }),
343
+ isTableScalingEnabled: props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)) || props.rendererAppearance === 'comment',
349
344
  isTableFixedColumnWidthsOptionEnabled: isTableFixedColumnWidthsOptionEnabled && (props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)))
350
345
  }));
351
346
  if (!colStyles) {
@@ -32,9 +32,7 @@ import { TableStickyScrollbar } from './TableStickyScrollbar';
32
32
  import { TableProcessorWithContainerStyles } from './tableNew';
33
33
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
34
34
  export var isTableResizingEnabled = function isTableResizingEnabled(appearance) {
35
- return isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance) && editorExperiment('support_table_in_comment', true, {
36
- exposure: true
37
- });
35
+ return isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance);
38
36
  };
39
37
  export var isStickyScrollbarEnabled = function isStickyScrollbarEnabled(appearance) {
40
38
  return isFullWidthOrFullPageAppearance(appearance) && editorExperiment('platform_renderer_table_sticky_scrollbar', true, {
@@ -45,9 +45,7 @@ var stickyContainerAdditionalStyles = {
45
45
  zIndex: 1
46
46
  };
47
47
  export var isTableResizingEnabled = function isTableResizingEnabled(appearance) {
48
- return isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance) && editorExperiment('support_table_in_comment', true, {
49
- exposure: true
50
- });
48
+ return isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance);
51
49
  };
52
50
  export var isStickyScrollbarEnabled = function isStickyScrollbarEnabled(appearance) {
53
51
  return isFullWidthOrFullPageAppearance(appearance) && editorExperiment('platform_renderer_table_sticky_scrollbar', true, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "128.10.2",
3
+ "version": "128.10.3",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -59,7 +59,7 @@
59
59
  "@atlaskit/status": "^3.2.0",
60
60
  "@atlaskit/task-decision": "^19.3.0",
61
61
  "@atlaskit/theme": "^23.0.0",
62
- "@atlaskit/tmp-editor-statsig": "^60.2.0",
62
+ "@atlaskit/tmp-editor-statsig": "^61.0.0",
63
63
  "@atlaskit/tokens": "^13.0.0",
64
64
  "@atlaskit/tooltip": "^21.1.0",
65
65
  "@atlaskit/visually-hidden": "^3.0.0",