@atlaskit/editor-core 216.1.7 → 216.2.0

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,16 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 216.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`0ef55acfa69f4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0ef55acfa69f4) -
8
+ Skip validation for SSR Renderer
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 216.1.7
4
15
 
5
16
  ### Patch Changes
@@ -135,7 +135,7 @@ function ReactEditorView(props) {
135
135
 
136
136
  // if the collabEdit API is set, skip this validation due to potential pm validation errors
137
137
  // from docs that end up with invalid marks after processing (See #hot-111702 for more details)
138
- if ((api === null || api === void 0 ? void 0 : api.collabEdit) !== undefined || options.props.editorProps.skipValidation) {
138
+ if ((0, _coreUtils.isSSR)() && (0, _expValEquals.expValEquals)('platform_editor_ssr_renderer', 'isEnabled', true) || (api === null || api === void 0 ? void 0 : api.collabEdit) !== undefined || options.props.editorProps.skipValidation) {
139
139
  return (0, _processRawValue.processRawValueWithoutValidation)(schema, options.doc, dispatchAnalyticsEvent);
140
140
  } else {
141
141
  return (0, _processRawValue.processRawValue)(schema, options.doc, options.props.providerFactory, options.props.editorProps.sanitizePrivateContent, contentTransformer.current, dispatchAnalyticsEvent);
@@ -108,7 +108,7 @@ export function ReactEditorView(props) {
108
108
 
109
109
  // if the collabEdit API is set, skip this validation due to potential pm validation errors
110
110
  // from docs that end up with invalid marks after processing (See #hot-111702 for more details)
111
- if ((api === null || api === void 0 ? void 0 : api.collabEdit) !== undefined || options.props.editorProps.skipValidation) {
111
+ if (isSSR() && expValEquals('platform_editor_ssr_renderer', 'isEnabled', true) || (api === null || api === void 0 ? void 0 : api.collabEdit) !== undefined || options.props.editorProps.skipValidation) {
112
112
  return processRawValueWithoutValidation(schema, options.doc, dispatchAnalyticsEvent);
113
113
  } else {
114
114
  return processRawValue(schema, options.doc, options.props.providerFactory, options.props.editorProps.sanitizePrivateContent, contentTransformer.current, dispatchAnalyticsEvent);
@@ -126,7 +126,7 @@ export function ReactEditorView(props) {
126
126
 
127
127
  // if the collabEdit API is set, skip this validation due to potential pm validation errors
128
128
  // from docs that end up with invalid marks after processing (See #hot-111702 for more details)
129
- if ((api === null || api === void 0 ? void 0 : api.collabEdit) !== undefined || options.props.editorProps.skipValidation) {
129
+ if (isSSR() && expValEquals('platform_editor_ssr_renderer', 'isEnabled', true) || (api === null || api === void 0 ? void 0 : api.collabEdit) !== undefined || options.props.editorProps.skipValidation) {
130
130
  return processRawValueWithoutValidation(schema, options.doc, dispatchAnalyticsEvent);
131
131
  } else {
132
132
  return processRawValue(schema, options.doc, options.props.providerFactory, options.props.editorProps.sanitizePrivateContent, contentTransformer.current, dispatchAnalyticsEvent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "216.1.7",
3
+ "version": "216.2.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"