@atlaskit/renderer 110.1.0 → 110.2.0

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,22 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 110.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#142155](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/142155)
8
+ [`9749eb9ba2987`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9749eb9ba2987) -
9
+ Remove platform.editor.table.use-increased-scaling-percent feature flag
10
+
11
+ ## 110.1.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [#140707](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/140707)
16
+ [`972fb840acf35`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/972fb840acf35) -
17
+ Switch from fg to experiment for media-from-url
18
+ - Updated dependencies
19
+
3
20
  ## 110.1.0
4
21
 
5
22
  ### Minor Changes
@@ -35,7 +35,7 @@ var _mediaSingle = require("@atlaskit/editor-common/media-single");
35
35
  var _reactIntlNext = require("react-intl-next");
36
36
  var _hooks = require("../../../ui/annotations/hooks");
37
37
  var _types = require("@atlaskit/editor-common/types");
38
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
38
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
39
39
  var _excluded = ["marks", "mediaSingleElement", "isDrafting"],
40
40
  _excluded2 = ["marks", "mediaSingleElement", "isDrafting"];
41
41
  var _templateObject, _templateObject2;
@@ -211,7 +211,7 @@ var CommentBadgeWrapper = function CommentBadgeWrapper(_ref5) {
211
211
  /**
212
212
  * Remove CommentBadgeWrapper component above
213
213
  * and rename CommentBadgeNextWrapper to CommentBadgeWrapper
214
- * when clean up platform_editor_insert_media_plugin_phase_one feature flag
214
+ * when clean up platform_editor_add_media_from_url feature flag
215
215
  */
216
216
 
217
217
  var CommentBadgeNextWrapper = function CommentBadgeNextWrapper(_ref6) {
@@ -330,7 +330,7 @@ var Media = /*#__PURE__*/function (_PureComponent) {
330
330
  data: (0, _defineProperty2.default)({}, _analyticsNamespacedContext.MEDIA_CONTEXT, {
331
331
  border: !!borderMark
332
332
  })
333
- }, (0, _platformFeatureFlags.fg)('platform_editor_insert_media_plugin_phase_one') && (0, _react2.jsx)(_mediaSingle.MediaBadges, {
333
+ }, (0, _experiments.editorExperiment)('add-media-from-url', true) && (0, _react2.jsx)(_mediaSingle.MediaBadges, {
334
334
  mediaElement: mediaSingleElement,
335
335
  mediaWidth: width,
336
336
  mediaHeight: height
@@ -344,7 +344,7 @@ var Media = /*#__PURE__*/function (_PureComponent) {
344
344
  isDrafting: isDrafting,
345
345
  badgeSize: badgeSize
346
346
  }));
347
- }), !(0, _platformFeatureFlags.fg)('platform_editor_insert_media_plugin_phase_one') && showCommentBadge && (0, _react2.jsx)(CommentBadgeWrapper, {
347
+ }), !(0, _experiments.editorExperiment)('add-media-from-url', true) && showCommentBadge && (0, _react2.jsx)(CommentBadgeWrapper, {
348
348
  marks: annotationMarks,
349
349
  mediaSingleElement: mediaSingleElement,
350
350
  width: width,
@@ -10,7 +10,6 @@ var _react = _interopRequireDefault(require("react"));
10
10
  var _styles = require("@atlaskit/editor-common/styles");
11
11
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
12
12
  var _nodeWidth = require("@atlaskit/editor-common/node-width");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _useFeatureFlags = require("../../../use-feature-flags");
15
14
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
15
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -139,7 +138,7 @@ var renderScaleDownColgroup = function renderScaleDownColgroup(props) {
139
138
  var scaleDownPercent = 0;
140
139
  var isTableScalingWithFixedColumnWidthsOptionEnabled = isTableScalingEnabled && isTableFixedColumnWidthsOptionEnabled;
141
140
  var isTableWidthFixed = isTableScalingWithFixedColumnWidthsOptionEnabled && ((_props$tableNode = props.tableNode) === null || _props$tableNode === void 0 ? void 0 : _props$tableNode.attrs.displayMode) === 'fixed';
142
- var maxScalingPercent = isTableScalingWithFixedColumnWidthsOptionEnabled && (0, _platformFeatureFlags.fg)('platform.editor.table.use-increased-scaling-percent') ? MAX_SCALING_PERCENT_TABLES_WITH_FIXED_COLUMN_WIDTHS_OPTION : MAX_SCALING_PERCENT;
141
+ var maxScalingPercent = isTableScalingWithFixedColumnWidthsOptionEnabled ? MAX_SCALING_PERCENT_TABLES_WITH_FIXED_COLUMN_WIDTHS_OPTION : MAX_SCALING_PERCENT;
143
142
 
144
143
  // fixes migration tables with zero-width columns
145
144
  if (zeroWidthColumnsCount > 0) {
@@ -63,7 +63,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
63
63
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
64
64
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
65
65
  var packageName = "@atlaskit/renderer";
66
- var packageVersion = "110.1.0";
66
+ var packageVersion = "110.2.0";
67
67
  var defaultNodeComponents = exports.defaultNodeComponents = _nodes.nodeToReact;
68
68
  var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
69
69
  (0, _inherits2.default)(Renderer, _PureComponent);
@@ -25,7 +25,7 @@ import { CommentBadge as CommentBadgeComponent, CommentBadgeNext, ExternalImageB
25
25
  import { injectIntl } from 'react-intl-next';
26
26
  import { useInlineCommentSubscriberContext, useInlineCommentsFilter } from '../../../ui/annotations/hooks';
27
27
  import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
28
- import { fg } from '@atlaskit/platform-feature-flags';
28
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
29
29
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
30
30
  const linkStyle = css`
31
31
  position: absolute;
@@ -191,7 +191,7 @@ const CommentBadgeWrapper = ({
191
191
  /**
192
192
  * Remove CommentBadgeWrapper component above
193
193
  * and rename CommentBadgeNextWrapper to CommentBadgeWrapper
194
- * when clean up platform_editor_insert_media_plugin_phase_one feature flag
194
+ * when clean up platform_editor_add_media_from_url feature flag
195
195
  */
196
196
 
197
197
  const CommentBadgeNextWrapper = ({
@@ -297,7 +297,7 @@ class Media extends PureComponent {
297
297
  border: !!borderMark
298
298
  }
299
299
  }
300
- }, fg('platform_editor_insert_media_plugin_phase_one') && jsx(MediaBadges, {
300
+ }, editorExperiment('add-media-from-url', true) && jsx(MediaBadges, {
301
301
  mediaElement: mediaSingleElement,
302
302
  mediaWidth: width,
303
303
  mediaHeight: height
@@ -310,7 +310,7 @@ class Media extends PureComponent {
310
310
  mediaSingleElement: mediaSingleElement,
311
311
  isDrafting: isDrafting,
312
312
  badgeSize: badgeSize
313
- }))), !fg('platform_editor_insert_media_plugin_phase_one') && showCommentBadge && jsx(CommentBadgeWrapper, {
313
+ }))), !editorExperiment('add-media-from-url', true) && showCommentBadge && jsx(CommentBadgeWrapper, {
314
314
  marks: annotationMarks,
315
315
  mediaSingleElement: mediaSingleElement,
316
316
  width: width,
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common/styles';
3
3
  import { akEditorTableNumberColumnWidth, akEditorTableLegacyCellMinWidth } from '@atlaskit/editor-shared-styles';
4
4
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { useFeatureFlags } from '../../../use-feature-flags';
7
6
  // we allow scaling down column widths by no more than 30%
8
7
  // this intends to reduce unwanted scrolling in the Renderer in these scenarios:
@@ -126,7 +125,7 @@ const renderScaleDownColgroup = props => {
126
125
  let scaleDownPercent = 0;
127
126
  const isTableScalingWithFixedColumnWidthsOptionEnabled = isTableScalingEnabled && isTableFixedColumnWidthsOptionEnabled;
128
127
  const isTableWidthFixed = isTableScalingWithFixedColumnWidthsOptionEnabled && ((_props$tableNode = props.tableNode) === null || _props$tableNode === void 0 ? void 0 : _props$tableNode.attrs.displayMode) === 'fixed';
129
- const maxScalingPercent = isTableScalingWithFixedColumnWidthsOptionEnabled && fg('platform.editor.table.use-increased-scaling-percent') ? MAX_SCALING_PERCENT_TABLES_WITH_FIXED_COLUMN_WIDTHS_OPTION : MAX_SCALING_PERCENT;
128
+ const maxScalingPercent = isTableScalingWithFixedColumnWidthsOptionEnabled ? MAX_SCALING_PERCENT_TABLES_WITH_FIXED_COLUMN_WIDTHS_OPTION : MAX_SCALING_PERCENT;
130
129
 
131
130
  // fixes migration tables with zero-width columns
132
131
  if (zeroWidthColumnsCount > 0) {
@@ -45,7 +45,7 @@ import { nodeToReact } from '../../react/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 = "110.1.0";
48
+ const packageVersion = "110.2.0";
49
49
  export const defaultNodeComponents = nodeToReact;
50
50
  export class Renderer extends PureComponent {
51
51
  constructor(props) {
@@ -41,7 +41,7 @@ import { CommentBadge as CommentBadgeComponent, CommentBadgeNext, ExternalImageB
41
41
  import { injectIntl } from 'react-intl-next';
42
42
  import { useInlineCommentSubscriberContext, useInlineCommentsFilter } from '../../../ui/annotations/hooks';
43
43
  import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
44
- import { fg } from '@atlaskit/platform-feature-flags';
44
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
45
45
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
46
46
  var linkStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tposition: absolute;\n\tbackground: transparent;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\tleft: 0;\n\tcursor: pointer;\n\twidth: 100% !important;\n\theight: 100% !important;\n"])));
47
47
 
@@ -202,7 +202,7 @@ var CommentBadgeWrapper = function CommentBadgeWrapper(_ref5) {
202
202
  /**
203
203
  * Remove CommentBadgeWrapper component above
204
204
  * and rename CommentBadgeNextWrapper to CommentBadgeWrapper
205
- * when clean up platform_editor_insert_media_plugin_phase_one feature flag
205
+ * when clean up platform_editor_add_media_from_url feature flag
206
206
  */
207
207
 
208
208
  var CommentBadgeNextWrapper = function CommentBadgeNextWrapper(_ref6) {
@@ -321,7 +321,7 @@ var Media = /*#__PURE__*/function (_PureComponent) {
321
321
  data: _defineProperty({}, MEDIA_CONTEXT, {
322
322
  border: !!borderMark
323
323
  })
324
- }, fg('platform_editor_insert_media_plugin_phase_one') && jsx(MediaBadges, {
324
+ }, editorExperiment('add-media-from-url', true) && jsx(MediaBadges, {
325
325
  mediaElement: mediaSingleElement,
326
326
  mediaWidth: width,
327
327
  mediaHeight: height
@@ -335,7 +335,7 @@ var Media = /*#__PURE__*/function (_PureComponent) {
335
335
  isDrafting: isDrafting,
336
336
  badgeSize: badgeSize
337
337
  }));
338
- }), !fg('platform_editor_insert_media_plugin_phase_one') && showCommentBadge && jsx(CommentBadgeWrapper, {
338
+ }), !editorExperiment('add-media-from-url', true) && showCommentBadge && jsx(CommentBadgeWrapper, {
339
339
  marks: annotationMarks,
340
340
  mediaSingleElement: mediaSingleElement,
341
341
  width: width,
@@ -5,7 +5,6 @@ import React from 'react';
5
5
  import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common/styles';
6
6
  import { akEditorTableNumberColumnWidth, akEditorTableLegacyCellMinWidth } from '@atlaskit/editor-shared-styles';
7
7
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { useFeatureFlags } from '../../../use-feature-flags';
10
9
  // we allow scaling down column widths by no more than 30%
11
10
  // this intends to reduce unwanted scrolling in the Renderer in these scenarios:
@@ -132,7 +131,7 @@ var renderScaleDownColgroup = function renderScaleDownColgroup(props) {
132
131
  var scaleDownPercent = 0;
133
132
  var isTableScalingWithFixedColumnWidthsOptionEnabled = isTableScalingEnabled && isTableFixedColumnWidthsOptionEnabled;
134
133
  var isTableWidthFixed = isTableScalingWithFixedColumnWidthsOptionEnabled && ((_props$tableNode = props.tableNode) === null || _props$tableNode === void 0 ? void 0 : _props$tableNode.attrs.displayMode) === 'fixed';
135
- var maxScalingPercent = isTableScalingWithFixedColumnWidthsOptionEnabled && fg('platform.editor.table.use-increased-scaling-percent') ? MAX_SCALING_PERCENT_TABLES_WITH_FIXED_COLUMN_WIDTHS_OPTION : MAX_SCALING_PERCENT;
134
+ var maxScalingPercent = isTableScalingWithFixedColumnWidthsOptionEnabled ? MAX_SCALING_PERCENT_TABLES_WITH_FIXED_COLUMN_WIDTHS_OPTION : MAX_SCALING_PERCENT;
136
135
 
137
136
  // fixes migration tables with zero-width columns
138
137
  if (zeroWidthColumnsCount > 0) {
@@ -55,7 +55,7 @@ import { nodeToReact } from '../../react/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 = "110.1.0";
58
+ var packageVersion = "110.2.0";
59
59
  export var defaultNodeComponents = nodeToReact;
60
60
  export var Renderer = /*#__PURE__*/function (_PureComponent) {
61
61
  _inherits(Renderer, _PureComponent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "110.1.0",
3
+ "version": "110.2.0",
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.1.0",
30
30
  "@atlaskit/button": "^20.1.0",
31
31
  "@atlaskit/code": "^15.6.0",
32
- "@atlaskit/editor-common": "^89.1.0",
32
+ "@atlaskit/editor-common": "^89.3.0",
33
33
  "@atlaskit/editor-json-transformer": "^8.18.0",
34
34
  "@atlaskit/editor-palette": "1.6.0",
35
35
  "@atlaskit/editor-prosemirror": "6.0.0",
@@ -38,20 +38,20 @@
38
38
  "@atlaskit/feature-gate-js-client": "^4.19.0",
39
39
  "@atlaskit/icon": "^22.18.0",
40
40
  "@atlaskit/link-datasource": "^3.0.0",
41
- "@atlaskit/media-card": "^78.3.0",
41
+ "@atlaskit/media-card": "^78.4.0",
42
42
  "@atlaskit/media-client": "^28.0.0",
43
43
  "@atlaskit/media-client-react": "^2.2.0",
44
44
  "@atlaskit/media-common": "^11.4.0",
45
45
  "@atlaskit/media-filmstrip": "^47.2.0",
46
- "@atlaskit/media-ui": "^25.11.0",
47
- "@atlaskit/media-viewer": "^48.8.0",
46
+ "@atlaskit/media-ui": "^25.14.0",
47
+ "@atlaskit/media-viewer": "^48.10.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.3.0",
49
49
  "@atlaskit/smart-card": "^28.1.0",
50
50
  "@atlaskit/status": "^1.4.0",
51
51
  "@atlaskit/task-decision": "^17.10.0",
52
52
  "@atlaskit/theme": "^13.0.0",
53
53
  "@atlaskit/tmp-editor-statsig": "*",
54
- "@atlaskit/tokens": "^1.59.0",
54
+ "@atlaskit/tokens": "^1.60.0",
55
55
  "@atlaskit/tooltip": "^18.7.0",
56
56
  "@babel/runtime": "^7.0.0",
57
57
  "@emotion/react": "^11.7.1",
@@ -62,7 +62,7 @@
62
62
  "uuid": "^3.1.0"
63
63
  },
64
64
  "peerDependencies": {
65
- "@atlaskit/link-provider": "^1.14.0",
65
+ "@atlaskit/link-provider": "^1.16.0",
66
66
  "@atlaskit/media-core": "^34.3.0",
67
67
  "react": "^16.8.0 || ^17.0.0 || ~18.2.0",
68
68
  "react-dom": "^16.8.0 || ^17.0.0 || ~18.2.0"
@@ -71,14 +71,14 @@
71
71
  "@af/integration-testing": "*",
72
72
  "@af/visual-regression": "*",
73
73
  "@atlaskit/analytics-gas-types": "^5.1.0",
74
- "@atlaskit/css-reset": "^6.10.0",
74
+ "@atlaskit/css-reset": "^6.11.0",
75
75
  "@atlaskit/editor-test-helpers": "^18.33.0",
76
- "@atlaskit/link-provider": "^1.15.0",
76
+ "@atlaskit/link-provider": "^1.16.0",
77
77
  "@atlaskit/link-test-helpers": "^7.5.0",
78
78
  "@atlaskit/linking-common": "^5.11.0",
79
79
  "@atlaskit/media-core": "^34.3.0",
80
80
  "@atlaskit/media-integration-test-helpers": "^3.1.0",
81
- "@atlaskit/media-test-helpers": "^34.2.0",
81
+ "@atlaskit/media-test-helpers": "^34.3.0",
82
82
  "@atlaskit/mention": "^23.2.0",
83
83
  "@atlaskit/navigation-next": "^9.0.0",
84
84
  "@atlaskit/util-data-test": "^17.9.0",
@@ -131,15 +131,9 @@
131
131
  "editor_inline_comments_on_inline_nodes": {
132
132
  "type": "boolean"
133
133
  },
134
- "platform.editor.table.use-increased-scaling-percent": {
135
- "type": "boolean"
136
- },
137
134
  "annotations_align_editor_and_renderer_styles": {
138
135
  "type": "boolean"
139
136
  },
140
- "platform_editor_insert_media_plugin_phase_one": {
141
- "type": "boolean"
142
- },
143
137
  "platform-fix-table-ssr-resizing": {
144
138
  "type": "boolean"
145
139
  },