@atlaskit/renderer 124.1.1 → 124.1.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,19 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 124.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ca42d0b688ad9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ca42d0b688ad9) -
8
+ [ED-29292] Fix wrapped media in table not wrapping in renderer
9
+ - Updated dependencies
10
+
11
+ ## 124.1.2
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 124.1.1
4
18
 
5
19
  ### Patch Changes
@@ -95,7 +95,13 @@ function applyBreakoutAfterSSR(id, breakoutConsts, shouldSkipBreakoutScript) {
95
95
  // eslint-disable-next-line @atlaskit/editor/no-as-casting
96
96
  var node = maybeNode;
97
97
  var mode = node.dataset.mode || node.dataset.layout || '';
98
- if (!mode || !WIDE_LAYOUT_MODES.includes(mode)) {
98
+ var nodeType = node.dataset.nodeType;
99
+ var widthType = node.dataset.widthType;
100
+ var isMediaSingleWithPixelWidth = nodeType === 'mediaSingle' && widthType === 'pixel';
101
+ if (!mode || !WIDE_LAYOUT_MODES.includes(mode) ||
102
+ // skip apply width styling to mediaSingle node with pixel width to avoid image size changing
103
+ // eslint-disable-next-line @atlaskit/platform/no-preconditioning
104
+ isMediaSingleWithPixelWidth && (0, _platformFeatureFlags.fg)('platform_editor_fix_image_size_diff_during_ssr') && (0, _platformFeatureFlags.fg)('platform_editor_fix_media_in_renderer')) {
99
105
  return;
100
106
  }
101
107
 
@@ -103,7 +103,13 @@ function applyBreakoutAfterSSR(id, breakoutConsts, shouldSkipBreakoutScript) {
103
103
  // eslint-disable-next-line @atlaskit/editor/no-as-casting
104
104
  const node = maybeNode;
105
105
  const mode = node.dataset.mode || node.dataset.layout || '';
106
- if (!mode || !WIDE_LAYOUT_MODES.includes(mode)) {
106
+ const nodeType = node.dataset.nodeType;
107
+ const widthType = node.dataset.widthType;
108
+ const isMediaSingleWithPixelWidth = nodeType === 'mediaSingle' && widthType === 'pixel';
109
+ if (!mode || !WIDE_LAYOUT_MODES.includes(mode) ||
110
+ // skip apply width styling to mediaSingle node with pixel width to avoid image size changing
111
+ // eslint-disable-next-line @atlaskit/platform/no-preconditioning
112
+ isMediaSingleWithPixelWidth && fg('platform_editor_fix_image_size_diff_during_ssr') && fg('platform_editor_fix_media_in_renderer')) {
107
113
  return;
108
114
  }
109
115
 
@@ -86,7 +86,13 @@ function applyBreakoutAfterSSR(id, breakoutConsts, shouldSkipBreakoutScript) {
86
86
  // eslint-disable-next-line @atlaskit/editor/no-as-casting
87
87
  var node = maybeNode;
88
88
  var mode = node.dataset.mode || node.dataset.layout || '';
89
- if (!mode || !WIDE_LAYOUT_MODES.includes(mode)) {
89
+ var nodeType = node.dataset.nodeType;
90
+ var widthType = node.dataset.widthType;
91
+ var isMediaSingleWithPixelWidth = nodeType === 'mediaSingle' && widthType === 'pixel';
92
+ if (!mode || !WIDE_LAYOUT_MODES.includes(mode) ||
93
+ // skip apply width styling to mediaSingle node with pixel width to avoid image size changing
94
+ // eslint-disable-next-line @atlaskit/platform/no-preconditioning
95
+ isMediaSingleWithPixelWidth && fg('platform_editor_fix_image_size_diff_during_ssr') && fg('platform_editor_fix_media_in_renderer')) {
90
96
  return;
91
97
  }
92
98
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "124.1.1",
3
+ "version": "124.1.3",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,7 +30,7 @@
30
30
  "@atlaskit/analytics-namespaced-context": "^7.1.0",
31
31
  "@atlaskit/analytics-next": "^11.1.0",
32
32
  "@atlaskit/browser-apis": "^0.0.1",
33
- "@atlaskit/button": "^23.4.0",
33
+ "@atlaskit/button": "^23.5.0",
34
34
  "@atlaskit/code": "^17.2.0",
35
35
  "@atlaskit/editor-json-transformer": "^8.30.0",
36
36
  "@atlaskit/editor-palette": "^2.1.0",
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/status": "^3.0.0",
57
57
  "@atlaskit/task-decision": "^19.2.0",
58
58
  "@atlaskit/theme": "^21.0.0",
59
- "@atlaskit/tmp-editor-statsig": "^12.33.0",
59
+ "@atlaskit/tmp-editor-statsig": "^13.0.0",
60
60
  "@atlaskit/tokens": "^6.4.0",
61
61
  "@atlaskit/tooltip": "^20.5.0",
62
62
  "@atlaskit/visually-hidden": "^3.0.0",
@@ -91,7 +91,7 @@
91
91
  "@atlaskit/mention": "^24.2.0",
92
92
  "@atlaskit/modal-dialog": "^14.4.0",
93
93
  "@atlaskit/navigation-next": "patch:@atlaskit/navigation-next@npm%3A9.0.17#~/.yarn/patches/@atlaskit-navigation-next-npm-9.0.17-958ca0ab9d.patch",
94
- "@atlaskit/profilecard": "^24.15.0",
94
+ "@atlaskit/profilecard": "^24.16.0",
95
95
  "@atlaskit/util-data-test": "^18.3.0",
96
96
  "@atlassian/feature-flags-test-utils": "^0.3.0",
97
97
  "@testing-library/react": "^13.4.0",
@@ -172,6 +172,9 @@
172
172
  "platform_editor_add_media_from_url_rollout": {
173
173
  "type": "boolean"
174
174
  },
175
+ "platform_editor_fix_media_in_renderer": {
176
+ "type": "boolean"
177
+ },
175
178
  "platform_editor_tables_numbered_column_correction": {
176
179
  "type": "boolean"
177
180
  },