@atlaskit/renderer 118.6.14 → 118.6.16

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,23 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 118.6.16
4
+
5
+ ### Patch Changes
6
+
7
+ - [#169039](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/169039)
8
+ [`d2488752fcad8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d2488752fcad8) -
9
+ EDITOR-508 Part 1 of cleaning up `platform_editor_use_nested_table_pm_nodes`
10
+ - Updated dependencies
11
+
12
+ ## 118.6.15
13
+
14
+ ### Patch Changes
15
+
16
+ - [#171405](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/171405)
17
+ [`cf426feee2ec4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cf426feee2ec4) -
18
+ Use css variables for breakout width calculation
19
+ [commit](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/924963a1871eb4c6dd79b8461da35946cca7a484).
20
+
3
21
  ## 118.6.14
4
22
 
5
23
  ### Patch Changes
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /* prettier-ignore */
8
+ /**
9
+ * NOTE:
10
+ *
11
+ * This file is automatically generated by Traduki 2.0.
12
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
+ */
14
+ //Slovenian (Slovenia) [sl-SI]
15
+ var _default = exports.default = {
16
+ 'fabric.editor.headingLink.ascSortingLabel': 'naraščajoče',
17
+ 'fabric.editor.headingLink.copied': 'Kopirano!',
18
+ 'fabric.editor.headingLink.copyAnchorLink': 'Kopiraj povezavo do naslova',
19
+ 'fabric.editor.headingLink.copyAriaLabel': 'Kopiraj',
20
+ 'fabric.editor.headingLink.descSortingLabel': 'padajoče',
21
+ 'fabric.editor.headingLink.failedToCopy': 'Kopiranje ni uspelo',
22
+ 'fabric.editor.headingLink.noneSortingLabel': 'brez',
23
+ 'fabric.editor.inlineComment.marker.end': 'konec komentarja v vrstici',
24
+ 'fabric.editor.inlineComment.marker.start': 'začetek komentarja v vrstici'
25
+ };
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /* prettier-ignore */
8
+ /**
9
+ * NOTE:
10
+ *
11
+ * This file is automatically generated by Traduki 2.0.
12
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
13
+ */
14
+ //Serbian (Serbia) [sr-RS]
15
+ var _default = exports.default = {
16
+ 'fabric.editor.headingLink.ascSortingLabel': 'rastući',
17
+ 'fabric.editor.headingLink.copied': 'Kopirano!',
18
+ 'fabric.editor.headingLink.copyAnchorLink': 'Kopiraj link naslova',
19
+ 'fabric.editor.headingLink.copyAriaLabel': 'Kopiraj',
20
+ 'fabric.editor.headingLink.descSortingLabel': 'opadajući',
21
+ 'fabric.editor.headingLink.failedToCopy': 'Kopiranje nije uspelo',
22
+ 'fabric.editor.headingLink.noneSortingLabel': 'nijedno',
23
+ 'fabric.editor.inlineComment.marker.end': 'kraj umetnutog komentara',
24
+ 'fabric.editor.inlineComment.marker.start': 'početak umetnutog komentara'
25
+ };
@@ -25,16 +25,15 @@ var wrapperStyles = (0, _react.css)({
25
25
  marginLeft: '50%',
26
26
  transform: 'translateX(-50%)'
27
27
  });
28
- var CONTAINER_WITHOUT_GUTTER = "calc(100cqw - ".concat(_editorSharedStyles.akEditorGutterPadding, "px * 2)");
29
28
  var getWidth = function getWidth(width, mode) {
30
29
  if ((0, _experiments.editorExperiment)('advanced_layouts', true) && width) {
31
- return "min(".concat(width, "px, ").concat(CONTAINER_WITHOUT_GUTTER, ")");
30
+ return "min(".concat(width, "px, var(--ak-editor--breakout-container-without-gutter-width))");
32
31
  } else {
33
32
  if (mode === 'full-width') {
34
- return "max(".concat(_editorSharedStyles.akEditorDefaultLayoutWidth, "px, min(").concat(_editorSharedStyles.akEditorFullWidthLayoutWidth, "px, ").concat(CONTAINER_WITHOUT_GUTTER, "))");
33
+ return "max(".concat(_editorSharedStyles.akEditorDefaultLayoutWidth, "px, min(").concat(_editorSharedStyles.akEditorFullWidthLayoutWidth, "px, var(--ak-editor--breakout-container-without-gutter-width))))");
35
34
  }
36
35
  if (mode === 'wide') {
37
- return "min(var(--ak-editor--breakout-wide-layout-width), ".concat(CONTAINER_WITHOUT_GUTTER, ")");
36
+ return "min(var(--ak-editor--breakout-wide-layout-width), var(--ak-editor--breakout-container-without-gutter-width)))";
38
37
  }
39
38
  }
40
39
  };
@@ -67,34 +67,33 @@ var _validation = function _validation(doc, schema, adfStage, useSpecBasedValida
67
67
  result.version = 1;
68
68
  }
69
69
  }
70
- if ((0, _platformFeatureFlags.fg)('platform_editor_use_nested_table_pm_nodes')) {
71
- // Convert nested-table extensions into nested tables
72
- try {
73
- var _transformNestedTable = (0, _transforms.transformNestedTablesIncomingDocument)(result, {
74
- environment: 'renderer',
75
- disableNestedRendererTreatment: (0, _platformFeatureFlags.fg)('platform_editor_nested_table_extension_comment_fix')
76
- }),
77
- _transformedAdf = _transformNestedTable.transformedAdf,
78
- _isTransformed = _transformNestedTable.isTransformed;
79
- if (_isTransformed) {
80
- dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 || dispatchAnalyticsEvent({
81
- action: _analytics.ACTION.NESTED_TABLE_TRANSFORMED,
82
- actionSubject: _analytics.ACTION_SUBJECT.RENDERER,
83
- eventType: _analytics.EVENT_TYPE.OPERATIONAL
84
- });
85
- result = _transformedAdf;
86
- }
87
- } catch (e) {
70
+
71
+ // Convert nested-table extensions into nested tables
72
+ try {
73
+ var _transformNestedTable = (0, _transforms.transformNestedTablesIncomingDocument)(result, {
74
+ environment: 'renderer',
75
+ disableNestedRendererTreatment: (0, _platformFeatureFlags.fg)('platform_editor_nested_table_extension_comment_fix')
76
+ }),
77
+ _transformedAdf = _transformNestedTable.transformedAdf,
78
+ _isTransformed = _transformNestedTable.isTransformed;
79
+ if (_isTransformed) {
88
80
  dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 || dispatchAnalyticsEvent({
89
- action: _analytics.ACTION.INVALID_PROSEMIRROR_DOCUMENT,
81
+ action: _analytics.ACTION.NESTED_TABLE_TRANSFORMED,
90
82
  actionSubject: _analytics.ACTION_SUBJECT.RENDERER,
91
- eventType: _analytics.EVENT_TYPE.OPERATIONAL,
92
- attributes: {
93
- platform: _events.PLATFORM.WEB,
94
- errorStack: "".concat(e instanceof Error && e.name === 'NodeNestingTransformError' ? 'NodeNestingTransformError - Failed to encode one or more nested tables' : undefined)
95
- }
83
+ eventType: _analytics.EVENT_TYPE.OPERATIONAL
96
84
  });
85
+ result = _transformedAdf;
97
86
  }
87
+ } catch (e) {
88
+ dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 || dispatchAnalyticsEvent({
89
+ action: _analytics.ACTION.INVALID_PROSEMIRROR_DOCUMENT,
90
+ actionSubject: _analytics.ACTION_SUBJECT.RENDERER,
91
+ eventType: _analytics.EVENT_TYPE.OPERATIONAL,
92
+ attributes: {
93
+ platform: _events.PLATFORM.WEB,
94
+ errorStack: "".concat(e instanceof Error && e.name === 'NodeNestingTransformError' ? 'NodeNestingTransformError - Failed to encode one or more nested tables' : undefined)
95
+ }
96
+ });
98
97
  }
99
98
  return result;
100
99
  };
@@ -140,9 +140,9 @@ var baseStyles = (0, _react.css)((_css = {
140
140
  color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")")
141
141
  })));
142
142
  var akEditorBreakpointForSmallDevice = '1266px';
143
-
144
- // Corresponds to the legacyContentStyles from `@atlaskit/editor-core` meant to introduce responsive breakout width.
145
143
  var responsiveBreakoutWidth = (0, _react.css)((0, _defineProperty2.default)({
144
+ '--ak-editor--breakout-container-without-gutter-width': "calc(100cqw - ".concat(_editorSharedStyles.akEditorGutterPadding, "px * 2)"),
145
+ // Corresponds to the legacyContentStyles from `@atlaskit/editor-core` meant to introduce responsive breakout width.
146
146
  '--ak-editor--breakout-wide-layout-width': "".concat(_editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, "px")
147
147
  }, "@media (min-width: ".concat(akEditorBreakpointForSmallDevice, ")"), {
148
148
  '--ak-editor--breakout-wide-layout-width': "".concat(_editorSharedStyles.akEditorCalculatedWideLayoutWidth, "px")
@@ -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 = "118.6.14";
65
+ var packageVersion = "118.6.16";
66
66
  var setAsQueryContainerStyles = (0, _react2.css)({
67
67
  containerName: 'ak-renderer-wrapper',
68
68
  containerType: 'inline-size'
@@ -0,0 +1,19 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //Slovenian (Slovenia) [sl-SI]
9
+ export default {
10
+ 'fabric.editor.headingLink.ascSortingLabel': 'naraščajoče',
11
+ 'fabric.editor.headingLink.copied': 'Kopirano!',
12
+ 'fabric.editor.headingLink.copyAnchorLink': 'Kopiraj povezavo do naslova',
13
+ 'fabric.editor.headingLink.copyAriaLabel': 'Kopiraj',
14
+ 'fabric.editor.headingLink.descSortingLabel': 'padajoče',
15
+ 'fabric.editor.headingLink.failedToCopy': 'Kopiranje ni uspelo',
16
+ 'fabric.editor.headingLink.noneSortingLabel': 'brez',
17
+ 'fabric.editor.inlineComment.marker.end': 'konec komentarja v vrstici',
18
+ 'fabric.editor.inlineComment.marker.start': 'začetek komentarja v vrstici'
19
+ };
@@ -0,0 +1,19 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //Serbian (Serbia) [sr-RS]
9
+ export default {
10
+ 'fabric.editor.headingLink.ascSortingLabel': 'rastući',
11
+ 'fabric.editor.headingLink.copied': 'Kopirano!',
12
+ 'fabric.editor.headingLink.copyAnchorLink': 'Kopiraj link naslova',
13
+ 'fabric.editor.headingLink.copyAriaLabel': 'Kopiraj',
14
+ 'fabric.editor.headingLink.descSortingLabel': 'opadajući',
15
+ 'fabric.editor.headingLink.failedToCopy': 'Kopiranje nije uspelo',
16
+ 'fabric.editor.headingLink.noneSortingLabel': 'nijedno',
17
+ 'fabric.editor.inlineComment.marker.end': 'kraj umetnutog komentara',
18
+ 'fabric.editor.inlineComment.marker.start': 'početak umetnutog komentara'
19
+ };
@@ -7,7 +7,7 @@ import _extends from "@babel/runtime/helpers/extends";
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import { WidthConsumer } from '@atlaskit/editor-common/ui';
9
9
  import { calcBreakoutWithCustomWidth, calcBreakoutWidth } from '@atlaskit/editor-common/utils';
10
- import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
10
+ import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
11
11
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
12
12
  import { fg } from '@atlaskit/platform-feature-flags';
13
13
  const wrapperStyles = css({
@@ -17,16 +17,15 @@ const wrapperStyles = css({
17
17
  marginLeft: '50%',
18
18
  transform: 'translateX(-50%)'
19
19
  });
20
- const CONTAINER_WITHOUT_GUTTER = `calc(100cqw - ${akEditorGutterPadding}px * 2)`;
21
20
  const getWidth = (width, mode) => {
22
21
  if (editorExperiment('advanced_layouts', true) && width) {
23
- return `min(${width}px, ${CONTAINER_WITHOUT_GUTTER})`;
22
+ return `min(${width}px, var(--ak-editor--breakout-container-without-gutter-width))`;
24
23
  } else {
25
24
  if (mode === 'full-width') {
26
- return `max(${akEditorDefaultLayoutWidth}px, min(${akEditorFullWidthLayoutWidth}px, ${CONTAINER_WITHOUT_GUTTER}))`;
25
+ return `max(${akEditorDefaultLayoutWidth}px, min(${akEditorFullWidthLayoutWidth}px, var(--ak-editor--breakout-container-without-gutter-width))))`;
27
26
  }
28
27
  if (mode === 'wide') {
29
- return `min(var(--ak-editor--breakout-wide-layout-width), ${CONTAINER_WITHOUT_GUTTER})`;
28
+ return `min(var(--ak-editor--breakout-wide-layout-width), var(--ak-editor--breakout-container-without-gutter-width)))`;
30
29
  }
31
30
  }
32
31
  };
@@ -60,35 +60,34 @@ const _validation = (doc, schema, adfStage, useSpecBasedValidator, dispatchAnaly
60
60
  result.version = 1;
61
61
  }
62
62
  }
63
- if (fg('platform_editor_use_nested_table_pm_nodes')) {
64
- // Convert nested-table extensions into nested tables
65
- try {
66
- const {
67
- transformedAdf,
68
- isTransformed
69
- } = transformNestedTablesIncomingDocument(result, {
70
- environment: 'renderer',
71
- disableNestedRendererTreatment: fg('platform_editor_nested_table_extension_comment_fix')
72
- });
73
- if (isTransformed) {
74
- dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 ? void 0 : dispatchAnalyticsEvent({
75
- action: ACTION.NESTED_TABLE_TRANSFORMED,
76
- actionSubject: ACTION_SUBJECT.RENDERER,
77
- eventType: EVENT_TYPE.OPERATIONAL
78
- });
79
- result = transformedAdf;
80
- }
81
- } catch (e) {
63
+
64
+ // Convert nested-table extensions into nested tables
65
+ try {
66
+ const {
67
+ transformedAdf,
68
+ isTransformed
69
+ } = transformNestedTablesIncomingDocument(result, {
70
+ environment: 'renderer',
71
+ disableNestedRendererTreatment: fg('platform_editor_nested_table_extension_comment_fix')
72
+ });
73
+ if (isTransformed) {
82
74
  dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 ? void 0 : dispatchAnalyticsEvent({
83
- action: ACTION.INVALID_PROSEMIRROR_DOCUMENT,
75
+ action: ACTION.NESTED_TABLE_TRANSFORMED,
84
76
  actionSubject: ACTION_SUBJECT.RENDERER,
85
- eventType: EVENT_TYPE.OPERATIONAL,
86
- attributes: {
87
- platform: PLATFORM.WEB,
88
- errorStack: `${e instanceof Error && e.name === 'NodeNestingTransformError' ? 'NodeNestingTransformError - Failed to encode one or more nested tables' : undefined}`
89
- }
77
+ eventType: EVENT_TYPE.OPERATIONAL
90
78
  });
79
+ result = transformedAdf;
91
80
  }
81
+ } catch (e) {
82
+ dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 ? void 0 : dispatchAnalyticsEvent({
83
+ action: ACTION.INVALID_PROSEMIRROR_DOCUMENT,
84
+ actionSubject: ACTION_SUBJECT.RENDERER,
85
+ eventType: EVENT_TYPE.OPERATIONAL,
86
+ attributes: {
87
+ platform: PLATFORM.WEB,
88
+ errorStack: `${e instanceof Error && e.name === 'NodeNestingTransformError' ? 'NodeNestingTransformError - Failed to encode one or more nested tables' : undefined}`
89
+ }
90
+ });
92
91
  }
93
92
  return result;
94
93
  };
@@ -11,7 +11,7 @@ import { B300, B400, B500, N20, N200, N30A, N40A, N60A, N800, R50, R500, Y300, Y
11
11
  import { FullPagePadding } from './style';
12
12
  import { fg } from '@atlaskit/platform-feature-flags';
13
13
  import { RendererCssClassName } from '../../consts';
14
- import { akEditorBlockquoteBorderColor, akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorLineHeight, akEditorSelectedNodeClassName, akEditorShadowZIndex, akEditorStickyHeaderZIndex, akEditorTableBorder, akEditorTableCellMinWidth, akEditorTableNumberColumnWidth, akEditorTableToolbar, blockNodesVerticalMargin, gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
14
+ import { akEditorBlockquoteBorderColor, akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorLineHeight, akEditorSelectedNodeClassName, akEditorShadowZIndex, akEditorStickyHeaderZIndex, akEditorTableBorder, akEditorTableCellMinWidth, akEditorTableNumberColumnWidth, akEditorTableToolbar, blockNodesVerticalMargin, gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
15
15
  import { INLINE_IMAGE_WRAPPER_CLASS_NAME } from '@atlaskit/editor-common/media-inline';
16
16
  import { HeadingAnchorWrapperClassName } from '../../react/nodes/heading-anchor';
17
17
  import { CodeBlockSharedCssClassName, DateSharedCssClassName, listItemCounterPadding, richMediaClassName, SmartCardSharedCssClassName, tableCellBorderWidth, tableCellMinWidth, tableCellPadding, tableMarginTop, TableSharedCssClassName, TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
@@ -199,9 +199,9 @@ const baseStyles = css({
199
199
  }
200
200
  });
201
201
  const akEditorBreakpointForSmallDevice = '1266px';
202
-
203
- // Corresponds to the legacyContentStyles from `@atlaskit/editor-core` meant to introduce responsive breakout width.
204
202
  const responsiveBreakoutWidth = css({
203
+ '--ak-editor--breakout-container-without-gutter-width': `calc(100cqw - ${akEditorGutterPadding}px * 2)`,
204
+ // Corresponds to the legacyContentStyles from `@atlaskit/editor-core` meant to introduce responsive breakout width.
205
205
  '--ak-editor--breakout-wide-layout-width': `${akEditorCalculatedWideLayoutWidthSmallViewport}px`,
206
206
  [`@media (min-width: ${akEditorBreakpointForSmallDevice})`]: {
207
207
  '--ak-editor--breakout-wide-layout-width': `${akEditorCalculatedWideLayoutWidth}px`
@@ -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 = "118.6.14";
51
+ const packageVersion = "118.6.16";
52
52
  const setAsQueryContainerStyles = css({
53
53
  containerName: 'ak-renderer-wrapper',
54
54
  containerType: 'inline-size'
@@ -0,0 +1,19 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //Slovenian (Slovenia) [sl-SI]
9
+ export default {
10
+ 'fabric.editor.headingLink.ascSortingLabel': 'naraščajoče',
11
+ 'fabric.editor.headingLink.copied': 'Kopirano!',
12
+ 'fabric.editor.headingLink.copyAnchorLink': 'Kopiraj povezavo do naslova',
13
+ 'fabric.editor.headingLink.copyAriaLabel': 'Kopiraj',
14
+ 'fabric.editor.headingLink.descSortingLabel': 'padajoče',
15
+ 'fabric.editor.headingLink.failedToCopy': 'Kopiranje ni uspelo',
16
+ 'fabric.editor.headingLink.noneSortingLabel': 'brez',
17
+ 'fabric.editor.inlineComment.marker.end': 'konec komentarja v vrstici',
18
+ 'fabric.editor.inlineComment.marker.start': 'začetek komentarja v vrstici'
19
+ };
@@ -0,0 +1,19 @@
1
+ /* prettier-ignore */
2
+ /**
3
+ * NOTE:
4
+ *
5
+ * This file is automatically generated by Traduki 2.0.
6
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
+ */
8
+ //Serbian (Serbia) [sr-RS]
9
+ export default {
10
+ 'fabric.editor.headingLink.ascSortingLabel': 'rastući',
11
+ 'fabric.editor.headingLink.copied': 'Kopirano!',
12
+ 'fabric.editor.headingLink.copyAnchorLink': 'Kopiraj link naslova',
13
+ 'fabric.editor.headingLink.copyAriaLabel': 'Kopiraj',
14
+ 'fabric.editor.headingLink.descSortingLabel': 'opadajući',
15
+ 'fabric.editor.headingLink.failedToCopy': 'Kopiranje nije uspelo',
16
+ 'fabric.editor.headingLink.noneSortingLabel': 'nijedno',
17
+ 'fabric.editor.inlineComment.marker.end': 'kraj umetnutog komentara',
18
+ 'fabric.editor.inlineComment.marker.start': 'početak umetnutog komentara'
19
+ };
@@ -7,7 +7,7 @@ import _extends from "@babel/runtime/helpers/extends";
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import { WidthConsumer } from '@atlaskit/editor-common/ui';
9
9
  import { calcBreakoutWithCustomWidth, calcBreakoutWidth } from '@atlaskit/editor-common/utils';
10
- import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
10
+ import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
11
11
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
12
12
  import { fg } from '@atlaskit/platform-feature-flags';
13
13
  var wrapperStyles = css({
@@ -17,16 +17,15 @@ var wrapperStyles = css({
17
17
  marginLeft: '50%',
18
18
  transform: 'translateX(-50%)'
19
19
  });
20
- var CONTAINER_WITHOUT_GUTTER = "calc(100cqw - ".concat(akEditorGutterPadding, "px * 2)");
21
20
  var getWidth = function getWidth(width, mode) {
22
21
  if (editorExperiment('advanced_layouts', true) && width) {
23
- return "min(".concat(width, "px, ").concat(CONTAINER_WITHOUT_GUTTER, ")");
22
+ return "min(".concat(width, "px, var(--ak-editor--breakout-container-without-gutter-width))");
24
23
  } else {
25
24
  if (mode === 'full-width') {
26
- return "max(".concat(akEditorDefaultLayoutWidth, "px, min(").concat(akEditorFullWidthLayoutWidth, "px, ").concat(CONTAINER_WITHOUT_GUTTER, "))");
25
+ return "max(".concat(akEditorDefaultLayoutWidth, "px, min(").concat(akEditorFullWidthLayoutWidth, "px, var(--ak-editor--breakout-container-without-gutter-width))))");
27
26
  }
28
27
  if (mode === 'wide') {
29
- return "min(var(--ak-editor--breakout-wide-layout-width), ".concat(CONTAINER_WITHOUT_GUTTER, ")");
28
+ return "min(var(--ak-editor--breakout-wide-layout-width), var(--ak-editor--breakout-container-without-gutter-width)))";
30
29
  }
31
30
  }
32
31
  };
@@ -60,34 +60,33 @@ var _validation = function _validation(doc, schema, adfStage, useSpecBasedValida
60
60
  result.version = 1;
61
61
  }
62
62
  }
63
- if (fg('platform_editor_use_nested_table_pm_nodes')) {
64
- // Convert nested-table extensions into nested tables
65
- try {
66
- var _transformNestedTable = transformNestedTablesIncomingDocument(result, {
67
- environment: 'renderer',
68
- disableNestedRendererTreatment: fg('platform_editor_nested_table_extension_comment_fix')
69
- }),
70
- _transformedAdf = _transformNestedTable.transformedAdf,
71
- _isTransformed = _transformNestedTable.isTransformed;
72
- if (_isTransformed) {
73
- dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 || dispatchAnalyticsEvent({
74
- action: ACTION.NESTED_TABLE_TRANSFORMED,
75
- actionSubject: ACTION_SUBJECT.RENDERER,
76
- eventType: EVENT_TYPE.OPERATIONAL
77
- });
78
- result = _transformedAdf;
79
- }
80
- } catch (e) {
63
+
64
+ // Convert nested-table extensions into nested tables
65
+ try {
66
+ var _transformNestedTable = transformNestedTablesIncomingDocument(result, {
67
+ environment: 'renderer',
68
+ disableNestedRendererTreatment: fg('platform_editor_nested_table_extension_comment_fix')
69
+ }),
70
+ _transformedAdf = _transformNestedTable.transformedAdf,
71
+ _isTransformed = _transformNestedTable.isTransformed;
72
+ if (_isTransformed) {
81
73
  dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 || dispatchAnalyticsEvent({
82
- action: ACTION.INVALID_PROSEMIRROR_DOCUMENT,
74
+ action: ACTION.NESTED_TABLE_TRANSFORMED,
83
75
  actionSubject: ACTION_SUBJECT.RENDERER,
84
- eventType: EVENT_TYPE.OPERATIONAL,
85
- attributes: {
86
- platform: PLATFORM.WEB,
87
- errorStack: "".concat(e instanceof Error && e.name === 'NodeNestingTransformError' ? 'NodeNestingTransformError - Failed to encode one or more nested tables' : undefined)
88
- }
76
+ eventType: EVENT_TYPE.OPERATIONAL
89
77
  });
78
+ result = _transformedAdf;
90
79
  }
80
+ } catch (e) {
81
+ dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 || dispatchAnalyticsEvent({
82
+ action: ACTION.INVALID_PROSEMIRROR_DOCUMENT,
83
+ actionSubject: ACTION_SUBJECT.RENDERER,
84
+ eventType: EVENT_TYPE.OPERATIONAL,
85
+ attributes: {
86
+ platform: PLATFORM.WEB,
87
+ errorStack: "".concat(e instanceof Error && e.name === 'NodeNestingTransformError' ? 'NodeNestingTransformError - Failed to encode one or more nested tables' : undefined)
88
+ }
89
+ });
91
90
  }
92
91
  return result;
93
92
  };
@@ -13,7 +13,7 @@ import { B300, B400, B500, N20, N200, N30A, N40A, N60A, N800, R50, R500, Y300, Y
13
13
  import { FullPagePadding } from './style';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import { RendererCssClassName } from '../../consts';
16
- import { akEditorBlockquoteBorderColor, akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorLineHeight, akEditorSelectedNodeClassName, akEditorShadowZIndex, akEditorStickyHeaderZIndex, akEditorTableBorder, akEditorTableCellMinWidth, akEditorTableNumberColumnWidth, akEditorTableToolbar, blockNodesVerticalMargin, gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
16
+ import { akEditorBlockquoteBorderColor, akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorLineHeight, akEditorSelectedNodeClassName, akEditorShadowZIndex, akEditorStickyHeaderZIndex, akEditorTableBorder, akEditorTableCellMinWidth, akEditorTableNumberColumnWidth, akEditorTableToolbar, blockNodesVerticalMargin, gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
17
17
  import { INLINE_IMAGE_WRAPPER_CLASS_NAME } from '@atlaskit/editor-common/media-inline';
18
18
  import { HeadingAnchorWrapperClassName } from '../../react/nodes/heading-anchor';
19
19
  import { CodeBlockSharedCssClassName, DateSharedCssClassName, listItemCounterPadding, richMediaClassName, SmartCardSharedCssClassName, tableCellBorderWidth, tableCellMinWidth, tableCellPadding, tableMarginTop, TableSharedCssClassName, TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
@@ -133,9 +133,9 @@ var baseStyles = css((_css = {
133
133
  color: "var(--ds-text-subtlest, ".concat(N200, ")")
134
134
  })));
135
135
  var akEditorBreakpointForSmallDevice = '1266px';
136
-
137
- // Corresponds to the legacyContentStyles from `@atlaskit/editor-core` meant to introduce responsive breakout width.
138
136
  var responsiveBreakoutWidth = css(_defineProperty({
137
+ '--ak-editor--breakout-container-without-gutter-width': "calc(100cqw - ".concat(akEditorGutterPadding, "px * 2)"),
138
+ // Corresponds to the legacyContentStyles from `@atlaskit/editor-core` meant to introduce responsive breakout width.
139
139
  '--ak-editor--breakout-wide-layout-width': "".concat(akEditorCalculatedWideLayoutWidthSmallViewport, "px")
140
140
  }, "@media (min-width: ".concat(akEditorBreakpointForSmallDevice, ")"), {
141
141
  '--ak-editor--breakout-wide-layout-width': "".concat(akEditorCalculatedWideLayoutWidth, "px")
@@ -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 = "118.6.14";
56
+ var packageVersion = "118.6.16";
57
57
  var setAsQueryContainerStyles = css({
58
58
  containerName: 'ak-renderer-wrapper',
59
59
  containerType: 'inline-size'
@@ -0,0 +1,18 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ declare const _default: {
8
+ 'fabric.editor.headingLink.ascSortingLabel': string;
9
+ 'fabric.editor.headingLink.copied': string;
10
+ 'fabric.editor.headingLink.copyAnchorLink': string;
11
+ 'fabric.editor.headingLink.copyAriaLabel': string;
12
+ 'fabric.editor.headingLink.descSortingLabel': string;
13
+ 'fabric.editor.headingLink.failedToCopy': string;
14
+ 'fabric.editor.headingLink.noneSortingLabel': string;
15
+ 'fabric.editor.inlineComment.marker.end': string;
16
+ 'fabric.editor.inlineComment.marker.start': string;
17
+ };
18
+ export default _default;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ declare const _default: {
8
+ 'fabric.editor.headingLink.ascSortingLabel': string;
9
+ 'fabric.editor.headingLink.copied': string;
10
+ 'fabric.editor.headingLink.copyAnchorLink': string;
11
+ 'fabric.editor.headingLink.copyAriaLabel': string;
12
+ 'fabric.editor.headingLink.descSortingLabel': string;
13
+ 'fabric.editor.headingLink.failedToCopy': string;
14
+ 'fabric.editor.headingLink.noneSortingLabel': string;
15
+ 'fabric.editor.inlineComment.marker.end': string;
16
+ 'fabric.editor.inlineComment.marker.start': string;
17
+ };
18
+ export default _default;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ declare const _default: {
8
+ 'fabric.editor.headingLink.ascSortingLabel': string;
9
+ 'fabric.editor.headingLink.copied': string;
10
+ 'fabric.editor.headingLink.copyAnchorLink': string;
11
+ 'fabric.editor.headingLink.copyAriaLabel': string;
12
+ 'fabric.editor.headingLink.descSortingLabel': string;
13
+ 'fabric.editor.headingLink.failedToCopy': string;
14
+ 'fabric.editor.headingLink.noneSortingLabel': string;
15
+ 'fabric.editor.inlineComment.marker.end': string;
16
+ 'fabric.editor.inlineComment.marker.start': string;
17
+ };
18
+ export default _default;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
7
+ declare const _default: {
8
+ 'fabric.editor.headingLink.ascSortingLabel': string;
9
+ 'fabric.editor.headingLink.copied': string;
10
+ 'fabric.editor.headingLink.copyAnchorLink': string;
11
+ 'fabric.editor.headingLink.copyAriaLabel': string;
12
+ 'fabric.editor.headingLink.descSortingLabel': string;
13
+ 'fabric.editor.headingLink.failedToCopy': string;
14
+ 'fabric.editor.headingLink.noneSortingLabel': string;
15
+ 'fabric.editor.inlineComment.marker.end': string;
16
+ 'fabric.editor.inlineComment.marker.start': string;
17
+ };
18
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "118.6.14",
3
+ "version": "118.6.16",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/analytics-next": "^11.1.0",
32
32
  "@atlaskit/button": "^23.2.0",
33
33
  "@atlaskit/code": "^17.2.0",
34
- "@atlaskit/editor-common": "^106.6.0",
34
+ "@atlaskit/editor-common": "^106.7.0",
35
35
  "@atlaskit/editor-json-transformer": "^8.24.0",
36
36
  "@atlaskit/editor-palette": "^2.1.0",
37
37
  "@atlaskit/editor-prosemirror": "7.0.0",
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/link": "^3.2.0",
44
44
  "@atlaskit/link-datasource": "^4.11.0",
45
45
  "@atlaskit/media-card": "^79.3.0",
46
- "@atlaskit/media-client": "^33.3.0",
46
+ "@atlaskit/media-client": "^33.4.0",
47
47
  "@atlaskit/media-client-react": "^4.1.0",
48
48
  "@atlaskit/media-common": "^12.1.0",
49
49
  "@atlaskit/media-filmstrip": "^50.1.0",
@@ -57,7 +57,7 @@
57
57
  "@atlaskit/task-decision": "^19.2.0",
58
58
  "@atlaskit/theme": "^18.0.0",
59
59
  "@atlaskit/tmp-editor-statsig": "^7.0.0",
60
- "@atlaskit/tokens": "^5.1.0",
60
+ "@atlaskit/tokens": "^5.2.0",
61
61
  "@atlaskit/tooltip": "^20.3.0",
62
62
  "@atlaskit/visually-hidden": "^3.0.0",
63
63
  "@babel/runtime": "^7.0.0",
@@ -166,9 +166,6 @@
166
166
  "platform-component-visual-refresh": {
167
167
  "type": "boolean"
168
168
  },
169
- "platform_editor_use_nested_table_pm_nodes": {
170
- "type": "boolean"
171
- },
172
169
  "platform_editor_hyperlink_underline": {
173
170
  "type": "boolean"
174
171
  },