@atlaskit/renderer 120.1.10 → 120.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,26 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 120.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#190110](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/190110)
8
+ [`0fc96695978de`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fc96695978de) -
9
+ Fix breakout width calculation in full width
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 120.1.11
16
+
17
+ ### Patch Changes
18
+
19
+ - [#188198](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/188198)
20
+ [`19d5545b5d8df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/19d5545b5d8df) -
21
+ [ux] EDM-10717 Clean up platform_editor_hyperlink_underline
22
+ - Updated dependencies
23
+
3
24
  ## 120.1.10
4
25
 
5
26
  ### Patch Changes
@@ -15,7 +15,7 @@ exports.default = void 0;
15
15
  var _default = exports.default = {
16
16
  'fabric.editor.headingLink.ascSortingLabel': 'aufsteigend',
17
17
  'fabric.editor.headingLink.copied': 'Kopiert!',
18
- 'fabric.editor.headingLink.copyAnchorLink': 'Link in Überschrift kopieren',
18
+ 'fabric.editor.headingLink.copyAnchorLink': 'Link zur Überschrift kopieren',
19
19
  'fabric.editor.headingLink.copyAriaLabel': 'Kopieren',
20
20
  'fabric.editor.headingLink.descSortingLabel': 'absteigend',
21
21
  'fabric.editor.headingLink.failedToCopy': 'Kopieren ist fehlgeschlagen',
@@ -9,6 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _react = require("@emotion/react");
10
10
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
11
11
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
12
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
13
  /**
13
14
  * @jsxRuntime classic
14
15
  * @jsx jsx
@@ -27,6 +28,9 @@ var getWidth = function getWidth(width, mode) {
27
28
  return "min(".concat(width, "px, var(--ak-editor--breakout-container-without-gutter-width))");
28
29
  } else {
29
30
  if (mode === 'full-width') {
31
+ if ((0, _expValEquals.expValEquals)('platform_editor_renderer_breakout_fix', 'isEnabled', true)) {
32
+ return "min(".concat(_editorSharedStyles.akEditorFullWidthLayoutWidth, "px, var(--ak-editor--breakout-container-without-gutter-width))");
33
+ }
30
34
  return "max(".concat(_editorSharedStyles.akEditorDefaultLayoutWidth, "px, min(").concat(_editorSharedStyles.akEditorFullWidthLayoutWidth, "px, var(--ak-editor--breakout-container-without-gutter-width)))");
31
35
  }
32
36
  if (mode === 'wide') {
@@ -13,7 +13,6 @@ var _colors = require("@atlaskit/theme/colors");
13
13
  var _utils = require("../../utils");
14
14
  var _events = require("../../analytics/events");
15
15
  var _analytics = require("@atlaskit/editor-common/analytics");
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
16
  var _linkUrl = _interopRequireDefault(require("@atlaskit/smart-card/link-url"));
18
17
  var _analyticsNext = require("@atlaskit/analytics-next");
19
18
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -82,7 +81,7 @@ function Link(props) {
82
81
  }
83
82
  // Ignored via go/ees005
84
83
  // eslint-disable-next-line react/jsx-props-no-spreading
85
- }, anchorProps, dataAttributes, (0, _platformFeatureFlags.fg)('platform_editor_hyperlink_underline') && {
84
+ }, anchorProps, dataAttributes, {
86
85
  isLinkComponent: true
87
86
  }), props.children));
88
87
  }
@@ -62,7 +62,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
62
62
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
63
63
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
64
64
  var packageName = "@atlaskit/renderer";
65
- var packageVersion = "120.1.9";
65
+ var packageVersion = "120.1.11";
66
66
  var setAsQueryContainerStyles = (0, _react2.css)({
67
67
  containerName: 'ak-renderer-wrapper',
68
68
  containerType: 'inline-size'
@@ -9,7 +9,7 @@
9
9
  export default {
10
10
  'fabric.editor.headingLink.ascSortingLabel': 'aufsteigend',
11
11
  'fabric.editor.headingLink.copied': 'Kopiert!',
12
- 'fabric.editor.headingLink.copyAnchorLink': 'Link in Überschrift kopieren',
12
+ 'fabric.editor.headingLink.copyAnchorLink': 'Link zur Überschrift kopieren',
13
13
  'fabric.editor.headingLink.copyAriaLabel': 'Kopieren',
14
14
  'fabric.editor.headingLink.descSortingLabel': 'absteigend',
15
15
  'fabric.editor.headingLink.failedToCopy': 'Kopieren ist fehlgeschlagen',
@@ -7,6 +7,7 @@ import _extends from "@babel/runtime/helpers/extends";
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
9
9
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
11
  const wrapperStyles = css({
11
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
12
13
  margin: `${blockNodesVerticalMargin} 0`,
@@ -19,6 +20,9 @@ const getWidth = (width, mode) => {
19
20
  return `min(${width}px, var(--ak-editor--breakout-container-without-gutter-width))`;
20
21
  } else {
21
22
  if (mode === 'full-width') {
23
+ if (expValEquals('platform_editor_renderer_breakout_fix', 'isEnabled', true)) {
24
+ return `min(${akEditorFullWidthLayoutWidth}px, var(--ak-editor--breakout-container-without-gutter-width))`;
25
+ }
22
26
  return `max(${akEditorDefaultLayoutWidth}px, min(${akEditorFullWidthLayoutWidth}px, var(--ak-editor--breakout-container-without-gutter-width)))`;
23
27
  }
24
28
  if (mode === 'wide') {
@@ -10,7 +10,6 @@ import { B400, B300, B500 } from '@atlaskit/theme/colors';
10
10
  import { getEventHandler } from '../../utils';
11
11
  import { PLATFORM, MODE } from '../../analytics/events';
12
12
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
13
- import { fg } from '@atlaskit/platform-feature-flags';
14
13
  import LinkUrl from '@atlaskit/smart-card/link-url';
15
14
  import { AnalyticsContext } from '@atlaskit/analytics-next';
16
15
  const anchorStyles = css({
@@ -73,7 +72,7 @@ export default function Link(props) {
73
72
  }
74
73
  // Ignored via go/ees005
75
74
  // eslint-disable-next-line react/jsx-props-no-spreading
76
- }, anchorProps, dataAttributes, fg('platform_editor_hyperlink_underline') && {
75
+ }, anchorProps, dataAttributes, {
77
76
  isLinkComponent: true
78
77
  }), props.children));
79
78
  }
@@ -48,7 +48,7 @@ import { PortalContext } from './PortalContext';
48
48
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
49
49
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
50
50
  const packageName = "@atlaskit/renderer";
51
- const packageVersion = "120.1.9";
51
+ const packageVersion = "120.1.11";
52
52
  const setAsQueryContainerStyles = css({
53
53
  containerName: 'ak-renderer-wrapper',
54
54
  containerType: 'inline-size'
@@ -9,7 +9,7 @@
9
9
  export default {
10
10
  'fabric.editor.headingLink.ascSortingLabel': 'aufsteigend',
11
11
  'fabric.editor.headingLink.copied': 'Kopiert!',
12
- 'fabric.editor.headingLink.copyAnchorLink': 'Link in Überschrift kopieren',
12
+ 'fabric.editor.headingLink.copyAnchorLink': 'Link zur Überschrift kopieren',
13
13
  'fabric.editor.headingLink.copyAriaLabel': 'Kopieren',
14
14
  'fabric.editor.headingLink.descSortingLabel': 'absteigend',
15
15
  'fabric.editor.headingLink.failedToCopy': 'Kopieren ist fehlgeschlagen',
@@ -7,6 +7,7 @@ import _extends from "@babel/runtime/helpers/extends";
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
9
9
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
11
  var wrapperStyles = css({
11
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
12
13
  margin: "".concat(blockNodesVerticalMargin, " 0"),
@@ -19,6 +20,9 @@ var getWidth = function getWidth(width, mode) {
19
20
  return "min(".concat(width, "px, var(--ak-editor--breakout-container-without-gutter-width))");
20
21
  } else {
21
22
  if (mode === 'full-width') {
23
+ if (expValEquals('platform_editor_renderer_breakout_fix', 'isEnabled', true)) {
24
+ return "min(".concat(akEditorFullWidthLayoutWidth, "px, var(--ak-editor--breakout-container-without-gutter-width))");
25
+ }
22
26
  return "max(".concat(akEditorDefaultLayoutWidth, "px, min(").concat(akEditorFullWidthLayoutWidth, "px, var(--ak-editor--breakout-container-without-gutter-width)))");
23
27
  }
24
28
  if (mode === 'wide') {
@@ -10,7 +10,6 @@ import { B400, B300, B500 } from '@atlaskit/theme/colors';
10
10
  import { getEventHandler } from '../../utils';
11
11
  import { PLATFORM, MODE } from '../../analytics/events';
12
12
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
13
- import { fg } from '@atlaskit/platform-feature-flags';
14
13
  import LinkUrl from '@atlaskit/smart-card/link-url';
15
14
  import { AnalyticsContext } from '@atlaskit/analytics-next';
16
15
  var anchorStyles = css({
@@ -71,7 +70,7 @@ export default function Link(props) {
71
70
  }
72
71
  // Ignored via go/ees005
73
72
  // eslint-disable-next-line react/jsx-props-no-spreading
74
- }, anchorProps, dataAttributes, fg('platform_editor_hyperlink_underline') && {
73
+ }, anchorProps, dataAttributes, {
75
74
  isLinkComponent: true
76
75
  }), props.children));
77
76
  }
@@ -53,7 +53,7 @@ import { PortalContext } from './PortalContext';
53
53
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
54
54
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
55
55
  var packageName = "@atlaskit/renderer";
56
- var packageVersion = "120.1.9";
56
+ var packageVersion = "120.1.11";
57
57
  var setAsQueryContainerStyles = css({
58
58
  containerName: 'ak-renderer-wrapper',
59
59
  containerType: 'inline-size'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "120.1.10",
3
+ "version": "120.2.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/editor-tables": "^2.9.0",
38
38
  "@atlaskit/emoji": "^69.3.0",
39
39
  "@atlaskit/feature-gate-js-client": "^5.5.0",
40
- "@atlaskit/icon": "^27.5.0",
40
+ "@atlaskit/icon": "^27.6.0",
41
41
  "@atlaskit/link": "^3.2.0",
42
42
  "@atlaskit/link-datasource": "^4.14.0",
43
43
  "@atlaskit/media-card": "^79.4.0",
@@ -50,11 +50,11 @@
50
50
  "@atlaskit/platform-feature-flags": "^1.1.0",
51
51
  "@atlaskit/platform-feature-flags-react": "^0.2.0",
52
52
  "@atlaskit/react-ufo": "^4.1.0",
53
- "@atlaskit/smart-card": "^40.4.0",
53
+ "@atlaskit/smart-card": "^40.5.0",
54
54
  "@atlaskit/status": "^3.0.0",
55
55
  "@atlaskit/task-decision": "^19.2.0",
56
56
  "@atlaskit/theme": "^19.0.0",
57
- "@atlaskit/tmp-editor-statsig": "^9.9.0",
57
+ "@atlaskit/tmp-editor-statsig": "^9.10.0",
58
58
  "@atlaskit/tokens": "^5.6.0",
59
59
  "@atlaskit/tooltip": "^20.3.0",
60
60
  "@atlaskit/visually-hidden": "^3.0.0",
@@ -163,9 +163,6 @@
163
163
  "platform-component-visual-refresh": {
164
164
  "type": "boolean"
165
165
  },
166
- "platform_editor_hyperlink_underline": {
167
- "type": "boolean"
168
- },
169
166
  "confluence-frontend-comments-panel": {
170
167
  "type": "boolean"
171
168
  },