@atlaskit/editor-core 215.15.5 → 215.17.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,33 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 215.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`fdef841890edf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fdef841890edf) -
8
+ Add gate for vc fixes
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 215.16.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [`92ad90cd1d2e8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/92ad90cd1d2e8) -
19
+ [https://hello.jira.atlassian.cloud/browse/EDITOR-3332] - created EditorSSRRenderer component
20
+ - [`bc11393275e1c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bc11393275e1c) -
21
+ Do not use React State for storing pluginInjectionAPI reference
22
+
23
+ ### Patch Changes
24
+
25
+ - [`e3779b75fdeca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e3779b75fdeca) -
26
+ EDITOR-1643 Promote syncBlock and bodiedSyncBlock to full schema
27
+ - [`e1ae4cbd9d3f6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e1ae4cbd9d3f6) -
28
+ Fix hydration error with the AIFC toolbar by not rendering in SSR
29
+ - Updated dependencies
30
+
3
31
  ## 215.15.5
4
32
 
5
33
  ### Patch Changes
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.EditorInternal = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
8
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
11
  var _react = require("react");
@@ -12,6 +13,7 @@ var _react2 = require("@emotion/react");
12
13
  var _analytics = require("@atlaskit/editor-common/analytics");
13
14
  var _portal = require("@atlaskit/editor-common/portal");
14
15
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
15
17
  var _ErrorBoundary = _interopRequireDefault(require("../create-editor/ErrorBoundary"));
16
18
  var _ReactEditorView = _interopRequireDefault(require("../create-editor/ReactEditorView"));
17
19
  var _EditorContext = _interopRequireDefault(require("../ui/EditorContext"));
@@ -77,9 +79,16 @@ var EditorInternal = exports.EditorInternal = /*#__PURE__*/(0, _react.memo)(func
77
79
  createAnalyticsEvent: createAnalyticsEvent,
78
80
  contextIdentifierProvider: props.contextIdentifierProvider,
79
81
  featureFlags: featureFlags
80
- }, (0, _react2.jsx)("div", {
82
+ }, (0, _react2.jsx)("div", (0, _extends2.default)({
81
83
  css: editorContainerStyles
82
- }, (0, _react2.jsx)(_EditorContext.default, {
84
+ // eslint-disable-next-line react/jsx-props-no-spreading
85
+ }, (0, _expValEquals.expValEquals)('cc_fix_hydration_ttvc', 'isEnabled', true) ? process.env.REACT_SSR ? {
86
+ 'data-vc-ignore-if-no-layout-shift': true,
87
+ 'data-ssr-placeholder': 'fallback'
88
+ } : {
89
+ 'data-vc-ignore-if-no-layout-shift': true,
90
+ 'data-ssr-placeholder-replace': 'fallback'
91
+ } : {}), (0, _react2.jsx)(_EditorContext.default, {
83
92
  editorActions: editorActions
84
93
  }, (0, _react2.jsx)(_IntlProviderIfMissingWrapper.IntlProviderIfMissingWrapper, null, (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_ReactEditorView.default, {
85
94
  editorProps: overriddenEditorProps,
@@ -30,6 +30,7 @@ var _view = require("@atlaskit/editor-prosemirror/view");
30
30
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
31
31
  var _interactionMetrics = require("@atlaskit/react-ufo/interaction-metrics");
32
32
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
33
+ var _expVal = require("@atlaskit/tmp-editor-statsig/expVal");
33
34
  var _useProviders = require("../composable-editor/hooks/useProviders");
34
35
  var _featureFlagsFromProps = require("../utils/feature-flags-from-props");
35
36
  var _getNodesCount = require("../utils/getNodesCount");
@@ -150,7 +151,9 @@ function ReactEditorView(props) {
150
151
  } else {
151
152
  config.current = (0, _createEditor.processPluginsList)((0, _createPluginsList.default)(options.props.preset, props.editorProps, pluginInjectionAPI.current));
152
153
  schema = (0, _createSchema.createSchema)(config.current);
153
- setEditorAPI(pluginInjectionAPI.current.api());
154
+ if (!(0, _expVal.expVal)('platform_editor_no_state_plugin_injection_api', 'isEnabled', false)) {
155
+ setEditorAPI(pluginInjectionAPI.current.api());
156
+ }
154
157
  }
155
158
  var contentTransformerProvider = options.props.editorProps.contentTransformerProvider;
156
159
  var plugins = (0, _createEditor.createPMPlugins)({
@@ -393,7 +396,7 @@ function ReactEditorView(props) {
393
396
 
394
397
  // Temporary to replace provider factory while migration to `ComposableEditor` occurs
395
398
  (0, _useProviders.useProviders)({
396
- editorApi: editorAPI,
399
+ editorApi: (0, _expVal.expVal)('platform_editor_no_state_plugin_injection_api', 'isEnabled', false) ? pluginInjectionAPI.current.api() : editorAPI,
397
400
  contextIdentifierProvider: props.editorProps.contextIdentifierProvider,
398
401
  mediaProvider: (_media = props.editorProps.media) === null || _media === void 0 ? void 0 : _media.provider,
399
402
  mentionProvider: props.editorProps.mentionProvider,
@@ -755,7 +758,7 @@ function ReactEditorView(props) {
755
758
  transformer: contentTransformer.current,
756
759
  dispatchAnalyticsEvent: dispatchAnalyticsEvent,
757
760
  editorRef: editorRef,
758
- editorAPI: editorAPI
761
+ editorAPI: (0, _expVal.expVal)('platform_editor_no_state_plugin_injection_api', 'isEnabled', false) ? pluginInjectionAPI.current.api() : editorAPI
759
762
  })) !== null && _props$render !== void 0 ? _props$render : editor : editor);
760
763
  }
761
764
 
@@ -11,6 +11,7 @@ var _runtime = require("@compiled/react/runtime");
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var _reactIntlNext = require("react-intl-next");
13
13
  var _contextPanel = require("@atlaskit/editor-common/context-panel");
14
+ var _coreUtils = require("@atlaskit/editor-common/core-utils");
14
15
  var _toolbar = require("@atlaskit/editor-common/toolbar");
15
16
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
16
17
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
@@ -102,7 +103,7 @@ var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbar
102
103
  showKeyline: showKeyline || ContextPanelWidth > 0
103
104
  }, beforeIcon && /*#__PURE__*/_react.default.createElement("div", {
104
105
  className: (0, _runtime.ax)([styles.mainToolbarIconBefore, (0, _expValEquals.expValEquals)('platform_editor_toolbar_support_custom_components', 'isEnabled', true) && styles.mainToolbarIconBeforeNew])
105
- }, beforeIcon), (0, _expValEquals.expValEquals)('platform_editor_toolbar_support_custom_components', 'isEnabled', true) ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(FirstChildWrapper, null, toolbarDockingPosition !== 'none' && components && (0, _toolbar2.isToolbar)(toolbar) && (!(0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || editorView) && /*#__PURE__*/_react.default.createElement(_Toolbar.ToolbarNext, {
106
+ }, beforeIcon), (0, _expValEquals.expValEquals)('platform_editor_toolbar_support_custom_components', 'isEnabled', true) ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(FirstChildWrapper, null, toolbarDockingPosition !== 'none' && components && (0, _toolbar2.isToolbar)(toolbar) && (!(0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || editorView && (!(0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) || !(0, _coreUtils.isSSR)())) && /*#__PURE__*/_react.default.createElement(_Toolbar.ToolbarNext, {
106
107
  toolbar: toolbar,
107
108
  components: components,
108
109
  editorView: editorView,
@@ -115,7 +116,7 @@ var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbar
115
116
  }, !!customPrimaryToolbarComponents && 'before' in customPrimaryToolbarComponents && /*#__PURE__*/_react.default.createElement("div", {
116
117
  "data-testid": 'before-primary-toolbar-components-plugin',
117
118
  className: (0, _runtime.ax)([styles.beforePrimaryToolbarComponents])
118
- }, customPrimaryToolbarComponents.before), !!customPrimaryToolbarComponents && 'after' in customPrimaryToolbarComponents ? customPrimaryToolbarComponents.after : customPrimaryToolbarComponents)), (0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_patch_7') && /*#__PURE__*/_react.default.createElement(_ToolbarPortal.ToolbarPortalMountPoint, null)) : toolbarDockingPosition !== 'none' && components && (0, _toolbar2.isToolbar)(toolbar) && (!(0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || editorView) && /*#__PURE__*/_react.default.createElement(_Toolbar.ToolbarNext, {
119
+ }, customPrimaryToolbarComponents.before), !!customPrimaryToolbarComponents && 'after' in customPrimaryToolbarComponents ? customPrimaryToolbarComponents.after : customPrimaryToolbarComponents)), (0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_patch_7') && /*#__PURE__*/_react.default.createElement(_ToolbarPortal.ToolbarPortalMountPoint, null)) : toolbarDockingPosition !== 'none' && components && (0, _toolbar2.isToolbar)(toolbar) && (!(0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || editorView && (!(0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) || !(0, _coreUtils.isSSR)())) && /*#__PURE__*/_react.default.createElement(_Toolbar.ToolbarNext, {
119
120
  toolbar: toolbar,
120
121
  components: components,
121
122
  editorView: editorView,
@@ -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 = "215.15.4";
8
+ var version = exports.version = "215.16.0";
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
1
2
  /**
2
3
  * @jsxRuntime classic
3
4
  * @jsx jsx
@@ -9,6 +10,7 @@ import { css, jsx } from '@emotion/react';
9
10
  import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
10
11
  import { usePortalProvider } from '@atlaskit/editor-common/portal';
11
12
  import { fg } from '@atlaskit/platform-feature-flags';
13
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
14
  import ErrorBoundary from '../create-editor/ErrorBoundary';
13
15
  import ReactEditorViewNext from '../create-editor/ReactEditorView';
14
16
  import EditorContext from '../ui/EditorContext';
@@ -65,9 +67,16 @@ export const EditorInternal = /*#__PURE__*/memo(({
65
67
  createAnalyticsEvent: createAnalyticsEvent,
66
68
  contextIdentifierProvider: props.contextIdentifierProvider,
67
69
  featureFlags: featureFlags
68
- }, jsx("div", {
70
+ }, jsx("div", _extends({
69
71
  css: editorContainerStyles
70
- }, jsx(EditorContext, {
72
+ // eslint-disable-next-line react/jsx-props-no-spreading
73
+ }, expValEquals('cc_fix_hydration_ttvc', 'isEnabled', true) ? process.env.REACT_SSR ? {
74
+ 'data-vc-ignore-if-no-layout-shift': true,
75
+ 'data-ssr-placeholder': 'fallback'
76
+ } : {
77
+ 'data-vc-ignore-if-no-layout-shift': true,
78
+ 'data-ssr-placeholder-replace': 'fallback'
79
+ } : {}), jsx(EditorContext, {
71
80
  editorActions: editorActions
72
81
  }, jsx(IntlProviderIfMissingWrapper, null, jsx(Fragment, null, jsx(ReactEditorViewNext, {
73
82
  editorProps: overriddenEditorProps,
@@ -19,6 +19,7 @@ import { EditorView } from '@atlaskit/editor-prosemirror/view';
19
19
  import { fg } from '@atlaskit/platform-feature-flags';
20
20
  import { abortAll, getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
21
21
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
22
+ import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
22
23
  import { useProviders } from '../composable-editor/hooks/useProviders';
23
24
  import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
24
25
  import { getNodesCount } from '../utils/getNodesCount';
@@ -123,7 +124,9 @@ export function ReactEditorView(props) {
123
124
  } else {
124
125
  config.current = processPluginsList(createPluginsList(options.props.preset, props.editorProps, pluginInjectionAPI.current));
125
126
  schema = createSchema(config.current);
126
- setEditorAPI(pluginInjectionAPI.current.api());
127
+ if (!expVal('platform_editor_no_state_plugin_injection_api', 'isEnabled', false)) {
128
+ setEditorAPI(pluginInjectionAPI.current.api());
129
+ }
127
130
  }
128
131
  const {
129
132
  contentTransformerProvider
@@ -365,7 +368,7 @@ export function ReactEditorView(props) {
365
368
 
366
369
  // Temporary to replace provider factory while migration to `ComposableEditor` occurs
367
370
  useProviders({
368
- editorApi: editorAPI,
371
+ editorApi: expVal('platform_editor_no_state_plugin_injection_api', 'isEnabled', false) ? pluginInjectionAPI.current.api() : editorAPI,
369
372
  contextIdentifierProvider: props.editorProps.contextIdentifierProvider,
370
373
  mediaProvider: (_media = props.editorProps.media) === null || _media === void 0 ? void 0 : _media.provider,
371
374
  mentionProvider: props.editorProps.mentionProvider,
@@ -698,7 +701,7 @@ export function ReactEditorView(props) {
698
701
  transformer: contentTransformer.current,
699
702
  dispatchAnalyticsEvent: dispatchAnalyticsEvent,
700
703
  editorRef: editorRef,
701
- editorAPI: editorAPI
704
+ editorAPI: expVal('platform_editor_no_state_plugin_injection_api', 'isEnabled', false) ? pluginInjectionAPI.current.api() : editorAPI
702
705
  })) !== null && _props$render !== void 0 ? _props$render : editor : editor);
703
706
  }
704
707
 
@@ -4,6 +4,7 @@ import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback } from 'react';
5
5
  import { useIntl } from 'react-intl-next';
6
6
  import { ContextPanelConsumer } from '@atlaskit/editor-common/context-panel';
7
+ import { isSSR } from '@atlaskit/editor-common/core-utils';
7
8
  import { TOOLBARS } from '@atlaskit/editor-common/toolbar';
8
9
  import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
9
10
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -97,7 +98,7 @@ export const FullPageToolbarNext = ({
97
98
  showKeyline: showKeyline || ContextPanelWidth > 0
98
99
  }, beforeIcon && /*#__PURE__*/React.createElement("div", {
99
100
  className: ax([styles.mainToolbarIconBefore, expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) && styles.mainToolbarIconBeforeNew])
100
- }, beforeIcon), expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null, toolbarDockingPosition !== 'none' && components && isToolbar(toolbar) && (!expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || editorView) && /*#__PURE__*/React.createElement(ToolbarNext, {
101
+ }, beforeIcon), expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null, toolbarDockingPosition !== 'none' && components && isToolbar(toolbar) && (!expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || editorView && (!expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) || !isSSR())) && /*#__PURE__*/React.createElement(ToolbarNext, {
101
102
  toolbar: toolbar,
102
103
  components: components,
103
104
  editorView: editorView,
@@ -110,7 +111,7 @@ export const FullPageToolbarNext = ({
110
111
  }, !!customPrimaryToolbarComponents && 'before' in customPrimaryToolbarComponents && /*#__PURE__*/React.createElement("div", {
111
112
  "data-testid": 'before-primary-toolbar-components-plugin',
112
113
  className: ax([styles.beforePrimaryToolbarComponents])
113
- }, customPrimaryToolbarComponents.before), !!customPrimaryToolbarComponents && 'after' in customPrimaryToolbarComponents ? customPrimaryToolbarComponents.after : customPrimaryToolbarComponents)), fg('platform_editor_toolbar_aifc_patch_7') && /*#__PURE__*/React.createElement(ToolbarPortalMountPoint, null)) : toolbarDockingPosition !== 'none' && components && isToolbar(toolbar) && (!expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || editorView) && /*#__PURE__*/React.createElement(ToolbarNext, {
114
+ }, customPrimaryToolbarComponents.before), !!customPrimaryToolbarComponents && 'after' in customPrimaryToolbarComponents ? customPrimaryToolbarComponents.after : customPrimaryToolbarComponents)), fg('platform_editor_toolbar_aifc_patch_7') && /*#__PURE__*/React.createElement(ToolbarPortalMountPoint, null)) : toolbarDockingPosition !== 'none' && components && isToolbar(toolbar) && (!expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || editorView && (!expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) || !isSSR())) && /*#__PURE__*/React.createElement(ToolbarNext, {
114
115
  toolbar: toolbar,
115
116
  components: components,
116
117
  editorView: editorView,
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "215.15.4";
2
+ export const version = "215.16.0";
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
1
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -13,6 +14,7 @@ import { css, jsx } from '@emotion/react';
13
14
  import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
14
15
  import { usePortalProvider } from '@atlaskit/editor-common/portal';
15
16
  import { fg } from '@atlaskit/platform-feature-flags';
17
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
16
18
  import ErrorBoundary from '../create-editor/ErrorBoundary';
17
19
  import ReactEditorViewNext from '../create-editor/ReactEditorView';
18
20
  import EditorContext from '../ui/EditorContext';
@@ -73,9 +75,16 @@ export var EditorInternal = /*#__PURE__*/memo(function (_ref) {
73
75
  createAnalyticsEvent: createAnalyticsEvent,
74
76
  contextIdentifierProvider: props.contextIdentifierProvider,
75
77
  featureFlags: featureFlags
76
- }, jsx("div", {
78
+ }, jsx("div", _extends({
77
79
  css: editorContainerStyles
78
- }, jsx(EditorContext, {
80
+ // eslint-disable-next-line react/jsx-props-no-spreading
81
+ }, expValEquals('cc_fix_hydration_ttvc', 'isEnabled', true) ? process.env.REACT_SSR ? {
82
+ 'data-vc-ignore-if-no-layout-shift': true,
83
+ 'data-ssr-placeholder': 'fallback'
84
+ } : {
85
+ 'data-vc-ignore-if-no-layout-shift': true,
86
+ 'data-ssr-placeholder-replace': 'fallback'
87
+ } : {}), jsx(EditorContext, {
79
88
  editorActions: editorActions
80
89
  }, jsx(IntlProviderIfMissingWrapper, null, jsx(Fragment, null, jsx(ReactEditorViewNext, {
81
90
  editorProps: overriddenEditorProps,
@@ -27,6 +27,7 @@ import { EditorView } from '@atlaskit/editor-prosemirror/view';
27
27
  import { fg } from '@atlaskit/platform-feature-flags';
28
28
  import { abortAll, getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
29
29
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
30
+ import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
30
31
  import { useProviders } from '../composable-editor/hooks/useProviders';
31
32
  import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
32
33
  import { getNodesCount } from '../utils/getNodesCount';
@@ -141,7 +142,9 @@ export function ReactEditorView(props) {
141
142
  } else {
142
143
  config.current = processPluginsList(createPluginsList(options.props.preset, props.editorProps, pluginInjectionAPI.current));
143
144
  schema = createSchema(config.current);
144
- setEditorAPI(pluginInjectionAPI.current.api());
145
+ if (!expVal('platform_editor_no_state_plugin_injection_api', 'isEnabled', false)) {
146
+ setEditorAPI(pluginInjectionAPI.current.api());
147
+ }
145
148
  }
146
149
  var contentTransformerProvider = options.props.editorProps.contentTransformerProvider;
147
150
  var plugins = createPMPlugins({
@@ -384,7 +387,7 @@ export function ReactEditorView(props) {
384
387
 
385
388
  // Temporary to replace provider factory while migration to `ComposableEditor` occurs
386
389
  useProviders({
387
- editorApi: editorAPI,
390
+ editorApi: expVal('platform_editor_no_state_plugin_injection_api', 'isEnabled', false) ? pluginInjectionAPI.current.api() : editorAPI,
388
391
  contextIdentifierProvider: props.editorProps.contextIdentifierProvider,
389
392
  mediaProvider: (_media = props.editorProps.media) === null || _media === void 0 ? void 0 : _media.provider,
390
393
  mentionProvider: props.editorProps.mentionProvider,
@@ -746,7 +749,7 @@ export function ReactEditorView(props) {
746
749
  transformer: contentTransformer.current,
747
750
  dispatchAnalyticsEvent: dispatchAnalyticsEvent,
748
751
  editorRef: editorRef,
749
- editorAPI: editorAPI
752
+ editorAPI: expVal('platform_editor_no_state_plugin_injection_api', 'isEnabled', false) ? pluginInjectionAPI.current.api() : editorAPI
750
753
  })) !== null && _props$render !== void 0 ? _props$render : editor : editor);
751
754
  }
752
755
 
@@ -4,6 +4,7 @@ import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback } from 'react';
5
5
  import { useIntl } from 'react-intl-next';
6
6
  import { ContextPanelConsumer } from '@atlaskit/editor-common/context-panel';
7
+ import { isSSR } from '@atlaskit/editor-common/core-utils';
7
8
  import { TOOLBARS } from '@atlaskit/editor-common/toolbar';
8
9
  import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
9
10
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -94,7 +95,7 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
94
95
  showKeyline: showKeyline || ContextPanelWidth > 0
95
96
  }, beforeIcon && /*#__PURE__*/React.createElement("div", {
96
97
  className: ax([styles.mainToolbarIconBefore, expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) && styles.mainToolbarIconBeforeNew])
97
- }, beforeIcon), expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null, toolbarDockingPosition !== 'none' && components && isToolbar(toolbar) && (!expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || editorView) && /*#__PURE__*/React.createElement(ToolbarNext, {
98
+ }, beforeIcon), expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null, toolbarDockingPosition !== 'none' && components && isToolbar(toolbar) && (!expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || editorView && (!expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) || !isSSR())) && /*#__PURE__*/React.createElement(ToolbarNext, {
98
99
  toolbar: toolbar,
99
100
  components: components,
100
101
  editorView: editorView,
@@ -107,7 +108,7 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
107
108
  }, !!customPrimaryToolbarComponents && 'before' in customPrimaryToolbarComponents && /*#__PURE__*/React.createElement("div", {
108
109
  "data-testid": 'before-primary-toolbar-components-plugin',
109
110
  className: ax([styles.beforePrimaryToolbarComponents])
110
- }, customPrimaryToolbarComponents.before), !!customPrimaryToolbarComponents && 'after' in customPrimaryToolbarComponents ? customPrimaryToolbarComponents.after : customPrimaryToolbarComponents)), fg('platform_editor_toolbar_aifc_patch_7') && /*#__PURE__*/React.createElement(ToolbarPortalMountPoint, null)) : toolbarDockingPosition !== 'none' && components && isToolbar(toolbar) && (!expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || editorView) && /*#__PURE__*/React.createElement(ToolbarNext, {
111
+ }, customPrimaryToolbarComponents.before), !!customPrimaryToolbarComponents && 'after' in customPrimaryToolbarComponents ? customPrimaryToolbarComponents.after : customPrimaryToolbarComponents)), fg('platform_editor_toolbar_aifc_patch_7') && /*#__PURE__*/React.createElement(ToolbarPortalMountPoint, null)) : toolbarDockingPosition !== 'none' && components && isToolbar(toolbar) && (!expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || editorView && (!expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) || !isSSR())) && /*#__PURE__*/React.createElement(ToolbarNext, {
111
112
  toolbar: toolbar,
112
113
  components: components,
113
114
  editorView: editorView,
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "215.15.4";
2
+ export var version = "215.16.0";
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/editor-core/editor-styles-container",
3
+ "main": "../dist/cjs/ui/EditorContentContainer/EditorContentContainer.js",
4
+ "module": "../dist/esm/ui/EditorContentContainer/EditorContentContainer.js",
5
+ "module:es2019": "../dist/es2019/ui/EditorContentContainer/EditorContentContainer.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/ui/EditorContentContainer/EditorContentContainer.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.9": {
12
+ "*": [
13
+ "../dist/types-ts4.5/ui/EditorContentContainer/EditorContentContainer.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "215.15.5",
3
+ "version": "215.17.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@atlaskit/activity-provider": "^2.5.0",
42
- "@atlaskit/adf-schema": "^51.4.0",
42
+ "@atlaskit/adf-schema": "^51.5.1",
43
43
  "@atlaskit/afm-i18n-platform-editor-editor-core": "2.10.0",
44
44
  "@atlaskit/analytics-namespaced-context": "^7.2.0",
45
45
  "@atlaskit/analytics-next": "^11.1.0",
@@ -64,7 +64,7 @@
64
64
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
65
65
  "@atlaskit/react-ufo": "^4.15.0",
66
66
  "@atlaskit/task-decision": "^19.2.0",
67
- "@atlaskit/tmp-editor-statsig": "^14.4.0",
67
+ "@atlaskit/tmp-editor-statsig": "^14.6.0",
68
68
  "@atlaskit/tokens": "^8.4.0",
69
69
  "@atlaskit/tooltip": "^20.10.0",
70
70
  "@atlaskit/width-detector": "^5.0.0",
@@ -81,7 +81,7 @@
81
81
  "uuid": "^3.1.0"
82
82
  },
83
83
  "peerDependencies": {
84
- "@atlaskit/editor-common": "^110.36.0",
84
+ "@atlaskit/editor-common": "^110.38.0",
85
85
  "@atlaskit/link-provider": "^4.0.0",
86
86
  "@atlaskit/media-core": "^37.0.0",
87
87
  "react": "^18.2.0",
@@ -104,7 +104,7 @@
104
104
  "@atlaskit/media-integration-test-helpers": "workspace:^",
105
105
  "@atlaskit/media-test-helpers": "^39.0.0",
106
106
  "@atlaskit/modal-dialog": "^14.7.0",
107
- "@atlaskit/renderer": "^124.16.0",
107
+ "@atlaskit/renderer": "^124.17.0",
108
108
  "@atlaskit/section-message": "^8.9.0",
109
109
  "@atlaskit/synchrony-test-helpers": "workspace:^",
110
110
  "@atlaskit/toggle": "^15.1.0",