@atlaskit/editor-ssr-renderer 2.1.2 → 2.1.4

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,17 @@
1
1
  # @atlaskit/editor-ssr-renderer
2
2
 
3
+ ## 2.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 2.1.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 2.1.2
4
16
 
5
17
  ### Patch Changes
@@ -378,9 +378,11 @@ function EditorSSRRenderer(_ref) {
378
378
  return /*#__PURE__*/_react.default.createElement("div", {
379
379
  ref: containerRef,
380
380
  id: divProps.id
381
+ // For some reason on SSR, the result `class` has a trailing space, that broke UFO,
382
+ // because ReactEditorView produces a div with `class` without space.
381
383
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
382
384
  ,
383
- className: divProps.className,
385
+ className: divProps.className.trim(),
384
386
  "aria-label": divProps['aria-label'],
385
387
  "aria-describedby": divProps['aria-describedby'],
386
388
  "data-editor-id": divProps['data-editor-id'],
@@ -287,9 +287,11 @@ export function EditorSSRRenderer({
287
287
  return /*#__PURE__*/React.createElement("div", {
288
288
  ref: containerRef,
289
289
  id: divProps.id
290
+ // For some reason on SSR, the result `class` has a trailing space, that broke UFO,
291
+ // because ReactEditorView produces a div with `class` without space.
290
292
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
291
293
  ,
292
- className: divProps.className,
294
+ className: divProps.className.trim(),
293
295
  "aria-label": divProps['aria-label'],
294
296
  "aria-describedby": divProps['aria-describedby'],
295
297
  "data-editor-id": divProps['data-editor-id'],
@@ -370,9 +370,11 @@ export function EditorSSRRenderer(_ref) {
370
370
  return /*#__PURE__*/React.createElement("div", {
371
371
  ref: containerRef,
372
372
  id: divProps.id
373
+ // For some reason on SSR, the result `class` has a trailing space, that broke UFO,
374
+ // because ReactEditorView produces a div with `class` without space.
373
375
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
374
376
  ,
375
- className: divProps.className,
377
+ className: divProps.className.trim(),
376
378
  "aria-label": divProps['aria-label'],
377
379
  "aria-describedby": divProps['aria-describedby'],
378
380
  "data-editor-id": divProps['data-editor-id'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-ssr-renderer",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "SSR Renderer based on Editor",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "atlassian": {
@@ -29,12 +29,12 @@
29
29
  "dependencies": {
30
30
  "@atlaskit/adf-schema": "^51.5.0",
31
31
  "@atlaskit/editor-prosemirror": "^7.3.0",
32
- "@atlaskit/tmp-editor-statsig": "^21.0.0",
32
+ "@atlaskit/tmp-editor-statsig": "^23.0.0",
33
33
  "@babel/runtime": "^7.0.0",
34
34
  "react-intl-next": "npm:react-intl@^5.18.1"
35
35
  },
36
36
  "peerDependencies": {
37
- "@atlaskit/editor-common": "^111.11.0",
37
+ "@atlaskit/editor-common": "^111.12.0",
38
38
  "react": "^18.2.0"
39
39
  }
40
40
  }