@atlaskit/renderer 112.8.1 → 112.8.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,20 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 112.8.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#101826](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101826)
8
+ [`efd5cf5ab0eb2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/efd5cf5ab0eb2) -
9
+ ED-26205 Prevent transform of nested tables inside bodied macros for renderer only
10
+ - Updated dependencies
11
+
12
+ ## 112.8.2
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 112.8.1
4
19
 
5
20
  ### Patch Changes
@@ -48,13 +48,7 @@ var RendererActions = exports.default = /*#__PURE__*/function () {
48
48
  } else if (!this.ref) {
49
49
  this.ref = ref;
50
50
  } else if (this.ref !== ref) {
51
- if ((0, _platformFeatureFlags.fg)('platform_editor_legacy_content_macro')) {
52
- if (this.ref.current !== ref.current) {
53
- throw new Error("Renderer has already been registered! It's not allowed to re-register with another new Renderer instance.");
54
- }
55
- } else {
56
- throw new Error("Renderer has already been registered! It's not allowed to re-register with another new Renderer instance.");
57
- }
51
+ throw new Error("Renderer has already been registered! It's not allowed to re-register with another new Renderer instance.");
58
52
  }
59
53
  this.doc = doc;
60
54
  this.schema = schema;
@@ -10,6 +10,6 @@ function Em(props) {
10
10
  // ignore the eslint warning Text primitive does not support dataAttributes
11
11
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
12
12
  // Ignored via go/ees005
13
- // eslint-disable-next-line react/jsx-props-no-spreading
13
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/use-primitives-text
14
14
  return /*#__PURE__*/_react.default.createElement("em", props.dataAttributes, props.children);
15
15
  }
@@ -10,6 +10,6 @@ function Strong(props) {
10
10
  // ignore the eslint warning Text primitive does not support dataAttributes
11
11
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
12
12
  // Ignored via go/ees005
13
- // eslint-disable-next-line react/jsx-props-no-spreading
13
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/use-primitives-text
14
14
  return /*#__PURE__*/_react.default.createElement("strong", props.dataAttributes, props.children);
15
15
  }
@@ -15,7 +15,7 @@ function Paragraph(_ref) {
15
15
  // ignore the eslint warning Text primitive does not support dataAttributes
16
16
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
17
17
  // Ignored via go/ees005
18
- // eslint-disable-next-line react/jsx-props-no-spreading
18
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/use-primitives-text
19
19
  _react.default.createElement("p", dataAttributes, /*#__PURE__*/_react.default.createElement(_inline.default, null, children))
20
20
  );
21
21
  }
@@ -73,7 +73,9 @@ var _validation = function _validation(doc, schema, adfStage, useSpecBasedValida
73
73
  if ((0, _platformFeatureFlags.fg)('platform_editor_use_nested_table_pm_nodes')) {
74
74
  // Convert nested-table extensions into nested tables
75
75
  try {
76
- var _transformNestedTable = (0, _transforms.transformNestedTablesIncomingDocument)(result),
76
+ var _transformNestedTable = (0, _transforms.transformNestedTablesIncomingDocument)(result, {
77
+ environment: 'renderer'
78
+ }),
77
79
  _transformedAdf = _transformNestedTable.transformedAdf,
78
80
  _isTransformed = _transformNestedTable.isTransformed;
79
81
  if (_isTransformed) {
@@ -38,7 +38,7 @@ var titleStyles = (0, _react.css)({
38
38
  border: 'none',
39
39
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
40
40
  fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()),
41
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
41
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
42
42
  lineHeight: _editorSharedStyles.akEditorLineHeight,
43
43
  fontWeight: "var(--ds-font-weight-regular, 400)",
44
44
  display: 'flex',
@@ -64,7 +64,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
64
64
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
65
65
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
66
66
  var packageName = "@atlaskit/renderer";
67
- var packageVersion = "112.8.1";
67
+ var packageVersion = "112.8.3";
68
68
  var setAsQueryContainerStyles = (0, _react2.css)({
69
69
  containerName: 'ak-renderer-wrapper',
70
70
  containerType: 'inline-size',
@@ -32,13 +32,7 @@ export default class RendererActions {
32
32
  } else if (!this.ref) {
33
33
  this.ref = ref;
34
34
  } else if (this.ref !== ref) {
35
- if (fg('platform_editor_legacy_content_macro')) {
36
- if (this.ref.current !== ref.current) {
37
- throw new Error("Renderer has already been registered! It's not allowed to re-register with another new Renderer instance.");
38
- }
39
- } else {
40
- throw new Error("Renderer has already been registered! It's not allowed to re-register with another new Renderer instance.");
41
- }
35
+ throw new Error("Renderer has already been registered! It's not allowed to re-register with another new Renderer instance.");
42
36
  }
43
37
  this.doc = doc;
44
38
  this.schema = schema;
@@ -3,6 +3,6 @@ export default function Em(props) {
3
3
  // ignore the eslint warning Text primitive does not support dataAttributes
4
4
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
5
5
  // Ignored via go/ees005
6
- // eslint-disable-next-line react/jsx-props-no-spreading
6
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/use-primitives-text
7
7
  return /*#__PURE__*/React.createElement("em", props.dataAttributes, props.children);
8
8
  }
@@ -3,6 +3,6 @@ export default function Strong(props) {
3
3
  // ignore the eslint warning Text primitive does not support dataAttributes
4
4
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
5
5
  // Ignored via go/ees005
6
- // eslint-disable-next-line react/jsx-props-no-spreading
6
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/use-primitives-text
7
7
  return /*#__PURE__*/React.createElement("strong", props.dataAttributes, props.children);
8
8
  }
@@ -9,7 +9,7 @@ export default function Paragraph({
9
9
  // ignore the eslint warning Text primitive does not support dataAttributes
10
10
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
11
11
  // Ignored via go/ees005
12
- // eslint-disable-next-line react/jsx-props-no-spreading
12
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/use-primitives-text
13
13
  React.createElement("p", dataAttributes, /*#__PURE__*/React.createElement(Inline, null, children))
14
14
  );
15
15
  }
@@ -69,7 +69,9 @@ const _validation = (doc, schema, adfStage, useSpecBasedValidator, dispatchAnaly
69
69
  const {
70
70
  transformedAdf,
71
71
  isTransformed
72
- } = transformNestedTablesIncomingDocument(result);
72
+ } = transformNestedTablesIncomingDocument(result, {
73
+ environment: 'renderer'
74
+ });
73
75
  if (isTransformed) {
74
76
  dispatchAnalyticsEvent === null || dispatchAnalyticsEvent === void 0 ? void 0 : dispatchAnalyticsEvent({
75
77
  action: ACTION.NESTED_TABLE_TRANSFORMED,
@@ -23,7 +23,7 @@ const titleStyles = css({
23
23
  border: 'none',
24
24
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
25
25
  fontSize: relativeFontSizeToBase16(fontSize()),
26
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
27
27
  lineHeight: akEditorLineHeight,
28
28
  fontWeight: "var(--ds-font-weight-regular, 400)",
29
29
  display: 'flex',
@@ -45,7 +45,7 @@ import { TruncatedWrapper } from './truncated-wrapper';
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 = "112.8.1";
48
+ const packageVersion = "112.8.3";
49
49
  const setAsQueryContainerStyles = css({
50
50
  containerName: 'ak-renderer-wrapper',
51
51
  containerType: 'inline-size',
@@ -41,13 +41,7 @@ var RendererActions = /*#__PURE__*/function () {
41
41
  } else if (!this.ref) {
42
42
  this.ref = ref;
43
43
  } else if (this.ref !== ref) {
44
- if (fg('platform_editor_legacy_content_macro')) {
45
- if (this.ref.current !== ref.current) {
46
- throw new Error("Renderer has already been registered! It's not allowed to re-register with another new Renderer instance.");
47
- }
48
- } else {
49
- throw new Error("Renderer has already been registered! It's not allowed to re-register with another new Renderer instance.");
50
- }
44
+ throw new Error("Renderer has already been registered! It's not allowed to re-register with another new Renderer instance.");
51
45
  }
52
46
  this.doc = doc;
53
47
  this.schema = schema;
@@ -3,6 +3,6 @@ export default function Em(props) {
3
3
  // ignore the eslint warning Text primitive does not support dataAttributes
4
4
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
5
5
  // Ignored via go/ees005
6
- // eslint-disable-next-line react/jsx-props-no-spreading
6
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/use-primitives-text
7
7
  return /*#__PURE__*/React.createElement("em", props.dataAttributes, props.children);
8
8
  }
@@ -3,6 +3,6 @@ export default function Strong(props) {
3
3
  // ignore the eslint warning Text primitive does not support dataAttributes
4
4
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
5
5
  // Ignored via go/ees005
6
- // eslint-disable-next-line react/jsx-props-no-spreading
6
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/use-primitives-text
7
7
  return /*#__PURE__*/React.createElement("strong", props.dataAttributes, props.children);
8
8
  }
@@ -8,7 +8,7 @@ export default function Paragraph(_ref) {
8
8
  // ignore the eslint warning Text primitive does not support dataAttributes
9
9
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
10
10
  // Ignored via go/ees005
11
- // eslint-disable-next-line react/jsx-props-no-spreading
11
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/use-primitives-text
12
12
  React.createElement("p", dataAttributes, /*#__PURE__*/React.createElement(Inline, null, children))
13
13
  );
14
14
  }
@@ -66,7 +66,9 @@ var _validation = function _validation(doc, schema, adfStage, useSpecBasedValida
66
66
  if (fg('platform_editor_use_nested_table_pm_nodes')) {
67
67
  // Convert nested-table extensions into nested tables
68
68
  try {
69
- var _transformNestedTable = transformNestedTablesIncomingDocument(result),
69
+ var _transformNestedTable = transformNestedTablesIncomingDocument(result, {
70
+ environment: 'renderer'
71
+ }),
70
72
  _transformedAdf = _transformNestedTable.transformedAdf,
71
73
  _isTransformed = _transformNestedTable.isTransformed;
72
74
  if (_isTransformed) {
@@ -28,7 +28,7 @@ var titleStyles = css({
28
28
  border: 'none',
29
29
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
30
30
  fontSize: relativeFontSizeToBase16(fontSize()),
31
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
32
32
  lineHeight: akEditorLineHeight,
33
33
  fontWeight: "var(--ds-font-weight-regular, 400)",
34
34
  display: 'flex',
@@ -54,7 +54,7 @@ import { TruncatedWrapper } from './truncated-wrapper';
54
54
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
55
55
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
56
56
  var packageName = "@atlaskit/renderer";
57
- var packageVersion = "112.8.1";
57
+ var packageVersion = "112.8.3";
58
58
  var setAsQueryContainerStyles = css({
59
59
  containerName: 'ak-renderer-wrapper',
60
60
  containerType: 'inline-size',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "112.8.1",
3
+ "version": "112.8.3",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -23,34 +23,34 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@atlaskit/adf-schema": "^46.1.0",
26
- "@atlaskit/adf-utils": "^19.14.0",
26
+ "@atlaskit/adf-utils": "^19.16.0",
27
27
  "@atlaskit/analytics-listeners": "^8.13.0",
28
28
  "@atlaskit/analytics-namespaced-context": "^6.12.0",
29
29
  "@atlaskit/analytics-next": "^10.2.0",
30
30
  "@atlaskit/button": "^20.3.0",
31
31
  "@atlaskit/code": "^15.6.0",
32
- "@atlaskit/editor-common": "^98.0.0",
32
+ "@atlaskit/editor-common": "^98.2.0",
33
33
  "@atlaskit/editor-json-transformer": "^8.21.0",
34
34
  "@atlaskit/editor-palette": "1.6.3",
35
35
  "@atlaskit/editor-prosemirror": "6.2.1",
36
36
  "@atlaskit/editor-shared-styles": "^3.2.0",
37
- "@atlaskit/emoji": "^67.11.0",
37
+ "@atlaskit/emoji": "^67.12.0",
38
38
  "@atlaskit/feature-gate-js-client": "^4.23.0",
39
- "@atlaskit/icon": "^23.1.0",
39
+ "@atlaskit/icon": "^23.3.0",
40
40
  "@atlaskit/link-datasource": "^3.15.0",
41
- "@atlaskit/media-card": "^78.17.0",
41
+ "@atlaskit/media-card": "^78.18.0",
42
42
  "@atlaskit/media-client": "^29.0.0",
43
43
  "@atlaskit/media-client-react": "^2.5.0",
44
44
  "@atlaskit/media-common": "^11.7.0",
45
45
  "@atlaskit/media-filmstrip": "^48.1.0",
46
- "@atlaskit/media-ui": "^27.2.0",
47
- "@atlaskit/media-viewer": "^49.5.0",
46
+ "@atlaskit/media-ui": "^27.3.0",
47
+ "@atlaskit/media-viewer": "^49.6.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.3.0",
49
- "@atlaskit/smart-card": "^33.3.0",
49
+ "@atlaskit/smart-card": "^34.0.0",
50
50
  "@atlaskit/status": "^1.8.0",
51
51
  "@atlaskit/task-decision": "^17.11.0",
52
52
  "@atlaskit/theme": "^14.0.0",
53
- "@atlaskit/tmp-editor-statsig": "^2.31.0",
53
+ "@atlaskit/tmp-editor-statsig": "^2.33.0",
54
54
  "@atlaskit/tokens": "^2.5.0",
55
55
  "@atlaskit/tooltip": "^19.0.0",
56
56
  "@babel/runtime": "^7.0.0",
@@ -78,7 +78,7 @@
78
78
  "@atlaskit/media-core": "^34.4.0",
79
79
  "@atlaskit/media-integration-test-helpers": "^3.1.0",
80
80
  "@atlaskit/media-test-helpers": "^34.7.0",
81
- "@atlaskit/mention": "^23.5.0",
81
+ "@atlaskit/mention": "^23.7.0",
82
82
  "@atlaskit/navigation-next": "^9.0.0",
83
83
  "@atlaskit/util-data-test": "^17.13.0",
84
84
  "@atlaskit/visual-regression": "*",
@@ -135,9 +135,6 @@
135
135
  "platform_editor_allow_annotation_triple_click": {
136
136
  "type": "boolean"
137
137
  },
138
- "platform-datasources-enable-two-way-sync": {
139
- "type": "boolean"
140
- },
141
138
  "platform_editor_external_media_comment_bugfix": {
142
139
  "type": "boolean"
143
140
  },