@atlaskit/renderer 119.3.1 → 120.0.1

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,51 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 120.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 120.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [#181024](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/181024)
14
+ [`8e80c487ca307`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8e80c487ca307) - ##
15
+ Make `@atlaskit/editor-common` a peer dependency
16
+
17
+ **WHAT:** `@atlaskit/editor-common` has been moved from `dependencies` to `peerDependencies` in
18
+ all editor plugin packages.
19
+
20
+ **WHY:** This change ensures that only a single version of `@atlaskit/editor-common` is used in
21
+ consuming applications, preventing issues caused by multiple versions of singleton libraries (such
22
+ as context mismatches or duplicated state). This is especially important for packages that rely on
23
+ shared context or singletons.
24
+
25
+ **HOW TO ADJUST:**
26
+
27
+ - Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
28
+ any of these editor plugins.
29
+ - Ensure the version you install matches the version required by the plugins.
30
+ - You can use the
31
+ [`check-peer-dependencies`](https://www.npmjs.com/package/check-peer-dependencies) package to
32
+ verify that all required peer dependencies are installed and compatible.
33
+ - Example install command:
34
+ ```
35
+ npm install @atlaskit/editor-common
36
+ ```
37
+ or
38
+ ```
39
+ yarn add @atlaskit/editor-common
40
+ ```
41
+
42
+ **Note:** This is a breaking change. If `@atlaskit/editor-common` is not installed at the
43
+ application level, you may see errors or unexpected behavior.
44
+
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies
48
+
3
49
  ## 119.3.1
4
50
 
5
51
  ### Patch Changes
@@ -35,9 +35,6 @@
35
35
  {
36
36
  "path": "../../../design-system/code/afm-cc/tsconfig.json"
37
37
  },
38
- {
39
- "path": "../../editor-common/afm-cc/tsconfig.json"
40
- },
41
38
  {
42
39
  "path": "../../editor-json-transformer/afm-cc/tsconfig.json"
43
40
  },
@@ -119,6 +116,9 @@
119
116
  {
120
117
  "path": "../../../design-system/visually-hidden/afm-cc/tsconfig.json"
121
118
  },
119
+ {
120
+ "path": "../../editor-common/afm-cc/tsconfig.json"
121
+ },
122
122
  {
123
123
  "path": "../../../linking-platform/link-provider/afm-cc/tsconfig.json"
124
124
  },
@@ -35,9 +35,6 @@
35
35
  {
36
36
  "path": "../../../design-system/code/afm-jira/tsconfig.json"
37
37
  },
38
- {
39
- "path": "../../editor-common/afm-jira/tsconfig.json"
40
- },
41
38
  {
42
39
  "path": "../../editor-json-transformer/afm-jira/tsconfig.json"
43
40
  },
@@ -119,6 +116,9 @@
119
116
  {
120
117
  "path": "../../../design-system/visually-hidden/afm-jira/tsconfig.json"
121
118
  },
119
+ {
120
+ "path": "../../editor-common/afm-jira/tsconfig.json"
121
+ },
122
122
  {
123
123
  "path": "../../../linking-platform/link-provider/afm-jira/tsconfig.json"
124
124
  },
@@ -35,9 +35,6 @@
35
35
  {
36
36
  "path": "../../../design-system/code/afm-post-office/tsconfig.json"
37
37
  },
38
- {
39
- "path": "../../editor-common/afm-post-office/tsconfig.json"
40
- },
41
38
  {
42
39
  "path": "../../editor-json-transformer/afm-post-office/tsconfig.json"
43
40
  },
@@ -119,6 +116,9 @@
119
116
  {
120
117
  "path": "../../../design-system/visually-hidden/afm-post-office/tsconfig.json"
121
118
  },
119
+ {
120
+ "path": "../../editor-common/afm-post-office/tsconfig.json"
121
+ },
122
122
  {
123
123
  "path": "../../../linking-platform/link-provider/afm-post-office/tsconfig.json"
124
124
  },
@@ -89,7 +89,10 @@ var renderScaleDownColgroup = function renderScaleDownColgroup(props) {
89
89
  // appearance == comment && allowTableResizing && !tableNode?.attrs.width, means it is a comment
90
90
  // appearance == comment && !allowTableResizing && !tableNode?.attrs.width, means it is a inline comment
91
91
  // When comment and inline comment table width inherits from the parent container, we want tableContainerWidth === renderWidth
92
- var tableContainerWidth = rendererAppearance === 'comment' && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width) || isRendererNested ? renderWidth : (0, _nodeWidth.getTableContainerWidth)(tableNode);
92
+
93
+ // Tables with numbered columns inside of extensions cannot use the renderWidth when it is 0. In this case, it should
94
+ // explicitly use the width coming from the table node as the final table container width.
95
+ var tableContainerWidth = rendererAppearance === 'comment' && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width) || isRendererNested && (!(0, _platformFeatureFlags.fg)('platform_fix_nested_num_column_scaling') || !isNumberColumnEnabled) ? renderWidth : (0, _nodeWidth.getTableContainerWidth)(tableNode);
93
96
  if (allowTableResizing && !isInsideOfBlockNode && !isInsideOfTable && !isinsideMultiBodiedExtension && !tableColumnResized) {
94
97
  // when no columns are resized, each column should have equal width, equals to tableWidth / noOfColumns
95
98
  var _tableWidth2 = (isNumberColumnEnabled ? tableContainerWidth - _editorSharedStyles.akEditorTableNumberColumnWidth : tableContainerWidth) - 1;
@@ -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 = "119.3.0";
65
+ var packageVersion = "120.0.0";
66
66
  var setAsQueryContainerStyles = (0, _react2.css)({
67
67
  containerName: 'ak-renderer-wrapper',
68
68
  containerType: 'inline-size'
@@ -77,7 +77,10 @@ const renderScaleDownColgroup = props => {
77
77
  // appearance == comment && allowTableResizing && !tableNode?.attrs.width, means it is a comment
78
78
  // appearance == comment && !allowTableResizing && !tableNode?.attrs.width, means it is a inline comment
79
79
  // When comment and inline comment table width inherits from the parent container, we want tableContainerWidth === renderWidth
80
- const tableContainerWidth = rendererAppearance === 'comment' && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width) || isRendererNested ? renderWidth : getTableContainerWidth(tableNode);
80
+
81
+ // Tables with numbered columns inside of extensions cannot use the renderWidth when it is 0. In this case, it should
82
+ // explicitly use the width coming from the table node as the final table container width.
83
+ const tableContainerWidth = rendererAppearance === 'comment' && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width) || isRendererNested && (!fg('platform_fix_nested_num_column_scaling') || !isNumberColumnEnabled) ? renderWidth : getTableContainerWidth(tableNode);
81
84
  if (allowTableResizing && !isInsideOfBlockNode && !isInsideOfTable && !isinsideMultiBodiedExtension && !tableColumnResized) {
82
85
  // when no columns are resized, each column should have equal width, equals to tableWidth / noOfColumns
83
86
  const tableWidth = (isNumberColumnEnabled ? tableContainerWidth - akEditorTableNumberColumnWidth : tableContainerWidth) - 1;
@@ -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 = "119.3.0";
51
+ const packageVersion = "120.0.0";
52
52
  const setAsQueryContainerStyles = css({
53
53
  containerName: 'ak-renderer-wrapper',
54
54
  containerType: 'inline-size'
@@ -83,7 +83,10 @@ var renderScaleDownColgroup = function renderScaleDownColgroup(props) {
83
83
  // appearance == comment && allowTableResizing && !tableNode?.attrs.width, means it is a comment
84
84
  // appearance == comment && !allowTableResizing && !tableNode?.attrs.width, means it is a inline comment
85
85
  // When comment and inline comment table width inherits from the parent container, we want tableContainerWidth === renderWidth
86
- var tableContainerWidth = rendererAppearance === 'comment' && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width) || isRendererNested ? renderWidth : getTableContainerWidth(tableNode);
86
+
87
+ // Tables with numbered columns inside of extensions cannot use the renderWidth when it is 0. In this case, it should
88
+ // explicitly use the width coming from the table node as the final table container width.
89
+ var tableContainerWidth = rendererAppearance === 'comment' && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width) || isRendererNested && (!fg('platform_fix_nested_num_column_scaling') || !isNumberColumnEnabled) ? renderWidth : getTableContainerWidth(tableNode);
87
90
  if (allowTableResizing && !isInsideOfBlockNode && !isInsideOfTable && !isinsideMultiBodiedExtension && !tableColumnResized) {
88
91
  // when no columns are resized, each column should have equal width, equals to tableWidth / noOfColumns
89
92
  var _tableWidth2 = (isNumberColumnEnabled ? tableContainerWidth - akEditorTableNumberColumnWidth : tableContainerWidth) - 1;
@@ -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 = "119.3.0";
56
+ var packageVersion = "120.0.0";
57
57
  var setAsQueryContainerStyles = css({
58
58
  containerName: 'ak-renderer-wrapper',
59
59
  containerType: 'inline-size'
@@ -34,7 +34,6 @@ declare const _default: {
34
34
  overflowContainerWidth: number;
35
35
  scrollable?: NodeList | undefined;
36
36
  diff?: number | undefined;
37
- visibilityManager?: import("@atlaskit/editor-common/node-visibility").NodeVisibilityManager | undefined;
38
37
  state: {
39
38
  showLeftShadow: boolean;
40
39
  showRightShadow: boolean;
@@ -74,7 +73,6 @@ declare const _default: {
74
73
  overflowContainerWidth: number;
75
74
  scrollable?: NodeList | undefined;
76
75
  diff?: number | undefined;
77
- visibilityManager?: import("@atlaskit/editor-common/node-visibility").NodeVisibilityManager | undefined;
78
76
  state: {
79
77
  showLeftShadow: boolean;
80
78
  showRightShadow: boolean;
@@ -34,7 +34,6 @@ declare const _default: {
34
34
  overflowContainerWidth: number;
35
35
  scrollable?: NodeList | undefined;
36
36
  diff?: number | undefined;
37
- visibilityManager?: import("@atlaskit/editor-common/node-visibility").NodeVisibilityManager | undefined;
38
37
  state: {
39
38
  showLeftShadow: boolean;
40
39
  showRightShadow: boolean;
@@ -74,7 +73,6 @@ declare const _default: {
74
73
  overflowContainerWidth: number;
75
74
  scrollable?: NodeList | undefined;
76
75
  diff?: number | undefined;
77
- visibilityManager?: import("@atlaskit/editor-common/node-visibility").NodeVisibilityManager | undefined;
78
76
  state: {
79
77
  showLeftShadow: boolean;
80
78
  showRightShadow: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "119.3.1",
3
+ "version": "120.0.1",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,7 +30,6 @@
30
30
  "@atlaskit/analytics-next": "^11.1.0",
31
31
  "@atlaskit/button": "^23.2.0",
32
32
  "@atlaskit/code": "^17.2.0",
33
- "@atlaskit/editor-common": "^107.4.0",
34
33
  "@atlaskit/editor-json-transformer": "^8.24.0",
35
34
  "@atlaskit/editor-palette": "^2.1.0",
36
35
  "@atlaskit/editor-prosemirror": "7.0.0",
@@ -38,24 +37,24 @@
38
37
  "@atlaskit/editor-tables": "^2.9.0",
39
38
  "@atlaskit/emoji": "^69.3.0",
40
39
  "@atlaskit/feature-gate-js-client": "^5.5.0",
41
- "@atlaskit/icon": "^27.2.0",
40
+ "@atlaskit/icon": "^27.3.0",
42
41
  "@atlaskit/link": "^3.2.0",
43
- "@atlaskit/link-datasource": "^4.11.0",
42
+ "@atlaskit/link-datasource": "^4.12.0",
44
43
  "@atlaskit/media-card": "^79.3.0",
45
44
  "@atlaskit/media-client": "^35.0.0",
46
45
  "@atlaskit/media-client-react": "^4.1.0",
47
46
  "@atlaskit/media-common": "^12.3.0",
48
47
  "@atlaskit/media-filmstrip": "^51.0.0",
49
- "@atlaskit/media-ui": "^28.5.0",
48
+ "@atlaskit/media-ui": "^28.6.0",
50
49
  "@atlaskit/media-viewer": "^52.4.0",
51
50
  "@atlaskit/platform-feature-flags": "^1.1.0",
52
51
  "@atlaskit/platform-feature-flags-react": "^0.2.0",
53
52
  "@atlaskit/react-ufo": "^3.14.0",
54
- "@atlaskit/smart-card": "^38.20.0",
53
+ "@atlaskit/smart-card": "^39.1.0",
55
54
  "@atlaskit/status": "^3.0.0",
56
55
  "@atlaskit/task-decision": "^19.2.0",
57
56
  "@atlaskit/theme": "^18.0.0",
58
- "@atlaskit/tmp-editor-statsig": "^8.6.0",
57
+ "@atlaskit/tmp-editor-statsig": "^9.0.0",
59
58
  "@atlaskit/tokens": "^5.4.0",
60
59
  "@atlaskit/tooltip": "^20.3.0",
61
60
  "@atlaskit/visually-hidden": "^3.0.0",
@@ -69,6 +68,7 @@
69
68
  "uuid": "^3.1.0"
70
69
  },
71
70
  "peerDependencies": {
71
+ "@atlaskit/editor-common": "^107.7.0",
72
72
  "@atlaskit/link-provider": "^3.4.0",
73
73
  "@atlaskit/media-core": "^37.0.0",
74
74
  "react": "^18.2.0",
@@ -81,7 +81,7 @@
81
81
  "@atlaskit/checkbox": "^17.1.0",
82
82
  "@atlaskit/css-reset": "^7.3.0",
83
83
  "@atlaskit/link-provider": "^3.4.0",
84
- "@atlaskit/link-test-helpers": "^8.1.0",
84
+ "@atlaskit/link-test-helpers": "^8.2.0",
85
85
  "@atlaskit/linking-common": "^9.1.0",
86
86
  "@atlaskit/media-core": "^37.0.0",
87
87
  "@atlaskit/media-integration-test-helpers": "workspace:^",
@@ -138,6 +138,9 @@
138
138
  "platform-ssr-table-resize": {
139
139
  "type": "boolean"
140
140
  },
141
+ "platform_fix_nested_num_column_scaling": {
142
+ "type": "boolean"
143
+ },
141
144
  "cc_complexit_reduce_portal_rerenders": {
142
145
  "type": "boolean"
143
146
  },