@atlaskit/renderer 128.10.0 → 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,27 @@
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
+
13
+ ## 128.10.2
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
19
+ ## 128.10.1
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+
3
25
  ## 128.10.0
4
26
 
5
27
  ### Minor 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, {
@@ -71,7 +71,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
71
71
  var TABLE_INFO_TIMEOUT = 10000;
72
72
  var RENDER_EVENT_SAMPLE_RATE = 0.2;
73
73
  var packageName = "@atlaskit/renderer";
74
- var packageVersion = "128.10.0";
74
+ var packageVersion = "128.10.2";
75
75
  var setAsQueryContainerStyles = (0, _react2.css)({
76
76
  containerName: 'ak-renderer-wrapper',
77
77
  containerType: 'inline-size'
@@ -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
  });
@@ -57,7 +57,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
57
57
  const TABLE_INFO_TIMEOUT = 10000;
58
58
  const RENDER_EVENT_SAMPLE_RATE = 0.2;
59
59
  const packageName = "@atlaskit/renderer";
60
- const packageVersion = "128.10.0";
60
+ const packageVersion = "128.10.2";
61
61
  const setAsQueryContainerStyles = css({
62
62
  containerName: 'ak-renderer-wrapper',
63
63
  containerType: 'inline-size'
@@ -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, {
@@ -62,7 +62,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
62
62
  var TABLE_INFO_TIMEOUT = 10000;
63
63
  var RENDER_EVENT_SAMPLE_RATE = 0.2;
64
64
  var packageName = "@atlaskit/renderer";
65
- var packageVersion = "128.10.0";
65
+ var packageVersion = "128.10.2";
66
66
  var setAsQueryContainerStyles = css({
67
67
  containerName: 'ak-renderer-wrapper',
68
68
  containerType: 'inline-size'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "128.10.0",
3
+ "version": "128.10.3",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -41,7 +41,7 @@
41
41
  "@atlaskit/feature-gate-js-client": "^5.5.0",
42
42
  "@atlaskit/icon": "^34.0.0",
43
43
  "@atlaskit/link": "^3.4.0",
44
- "@atlaskit/link-datasource": "^4.34.0",
44
+ "@atlaskit/link-datasource": "^5.0.0",
45
45
  "@atlaskit/link-extractors": "^2.4.0",
46
46
  "@atlaskit/linking-common": "^9.11.0",
47
47
  "@atlaskit/media-card": "^79.16.0",
@@ -55,11 +55,11 @@
55
55
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
56
56
  "@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
57
57
  "@atlaskit/react-ufo": "^5.13.0",
58
- "@atlaskit/smart-card": "^43.32.0",
58
+ "@atlaskit/smart-card": "^44.0.0",
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": "^59.1.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",
@@ -85,7 +85,7 @@
85
85
  "@atlaskit/analytics-gas-types": "^5.1.0",
86
86
  "@atlaskit/checkbox": "^17.3.0",
87
87
  "@atlaskit/link-provider": "^4.3.0",
88
- "@atlaskit/link-test-helpers": "^9.1.0",
88
+ "@atlaskit/link-test-helpers": "^10.0.0",
89
89
  "@atlaskit/media-core": "^37.0.0",
90
90
  "@atlaskit/media-integration-test-helpers": "workspace:^",
91
91
  "@atlaskit/media-test-helpers": "^40.0.0",