@atlaskit/editor-core 213.6.0 → 213.6.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,13 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 213.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0baf501ee24bc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0baf501ee24bc) -
8
+ Add dangerouslySetInnerHTML to ReactEditorView when platform_editor_hydratable_ui is enabled
9
+ - Updated dependencies
10
+
3
11
  ## 213.6.0
4
12
 
5
13
  ### Minor Changes
@@ -681,6 +681,11 @@ function ReactEditorView(props) {
681
681
  "aria-describedby": assistiveDescribedBy,
682
682
  "data-editor-id": editorId.current,
683
683
  "data-vc-ignore-if-no-layout-shift": true
684
+ // eslint-disable-next-line react/no-danger -- needed for SSR and hydration so react keeps the HTML untouched
685
+ ,
686
+ dangerouslySetInnerHTML: (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? {
687
+ __html: ''
688
+ } : undefined
684
689
  }));
685
690
  }, [handleEditorViewRef, props.intl]);
686
691
  var previousPreset = (0, _hooks.usePreviousState)(preset);
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "213.5.6";
8
+ var version = exports.version = "0.0.0-development";
@@ -628,6 +628,11 @@ export function ReactEditorView(props) {
628
628
  "aria-describedby": assistiveDescribedBy,
629
629
  "data-editor-id": editorId.current,
630
630
  "data-vc-ignore-if-no-layout-shift": true
631
+ // eslint-disable-next-line react/no-danger -- needed for SSR and hydration so react keeps the HTML untouched
632
+ ,
633
+ dangerouslySetInnerHTML: expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? {
634
+ __html: ''
635
+ } : undefined
631
636
  }));
632
637
  }, [handleEditorViewRef, props.intl]);
633
638
  const previousPreset = usePreviousState(preset);
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "213.5.6";
2
+ export const version = "0.0.0-development";
@@ -671,6 +671,11 @@ export function ReactEditorView(props) {
671
671
  "aria-describedby": assistiveDescribedBy,
672
672
  "data-editor-id": editorId.current,
673
673
  "data-vc-ignore-if-no-layout-shift": true
674
+ // eslint-disable-next-line react/no-danger -- needed for SSR and hydration so react keeps the HTML untouched
675
+ ,
676
+ dangerouslySetInnerHTML: expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? {
677
+ __html: ''
678
+ } : undefined
674
679
  }));
675
680
  }, [handleEditorViewRef, props.intl]);
676
681
  var previousPreset = usePreviousState(preset);
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "213.5.6";
2
+ export var version = "0.0.0-development";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "213.6.0",
3
+ "version": "213.6.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"