@atlaskit/editor-core 215.26.0 → 215.27.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,25 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 215.27.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`15ae0981a01a4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/15ae0981a01a4) -
8
+ [https://hello.jira.atlassian.cloud/browse/EDITOR-4119](EDITOR-4119) - allow FullPageToolbarNext
9
+ without EditorView in SSR
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 215.26.1
16
+
17
+ ### Patch Changes
18
+
19
+ - [`f41ee46c84bb1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f41ee46c84bb1) -
20
+ [EDITOR-3881] Fix table styling to work with SSR renderer
21
+ - Updated dependencies
22
+
3
23
  ## 215.26.0
4
24
 
5
25
  ### Minor Changes
@@ -104,7 +104,7 @@ var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbar
104
104
  showKeyline: showKeyline || ContextPanelWidth > 0
105
105
  }, beforeIcon && /*#__PURE__*/_react.default.createElement("div", {
106
106
  className: (0, _runtime.ax)([styles.mainToolbarIconBefore, (0, _expValEquals.expValEquals)('platform_editor_toolbar_support_custom_components', 'isEnabled', true) && styles.mainToolbarIconBeforeNew])
107
- }, 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_toolbar_delay_render_fix', 'isEnabled', true) ? !(0, _coreUtils.isSSR)() : !(0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) || !(0, _coreUtils.isSSR)())) && /*#__PURE__*/_react.default.createElement(_Toolbar.ToolbarNext, {
107
+ }, 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) || ((0, _expValEquals.expValEquals)('platform_editor_ssr_renderer', 'isEnabled', true) && (0, _coreUtils.isSSR)() || editorView) && ((0, _expValEquals.expValEquals)('platform_editor_toolbar_delay_render_fix', 'isEnabled', true) ? !(0, _coreUtils.isSSR)() : !(0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) || !(0, _coreUtils.isSSR)())) && /*#__PURE__*/_react.default.createElement(_Toolbar.ToolbarNext, {
108
108
  toolbar: toolbar,
109
109
  components: components,
110
110
  editorView: editorView,
@@ -476,7 +476,11 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
476
476
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
477
477
  _tableStyles.tableContainerStyles,
478
478
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
479
- !(0, _platformFeatureFlags.fg)('platform_editor_table_container_y_overflow_fix') && _tableStyles.tableContainerOverflowY,
479
+ !(0, _platformFeatureFlags.fg)('platform_editor_table_container_y_overflow_fix') && _tableStyles.tableContainerOverflowY, (0, _expValEquals.expValEquals)('platform_editor_ssr_renderer', 'isEnabled', true) &&
480
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
481
+ (0, _styles.tableSharedStyle)(),
482
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
483
+ (0, _expValEquals.expValEquals)('platform_editor_ssr_renderer', 'isEnabled', true) && _tableStyles.tableEmptyRowStyles,
480
484
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
481
485
  _link.hyperLinkFloatingToolbarStyles,
482
486
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.tableLayoutFixes = exports.tableContainerStyles = exports.tableContainerOverflowY = exports.tableCommentEditorStyles = exports.tableCommentEditorMarginOverride = void 0;
7
+ exports.tableLayoutFixes = exports.tableEmptyRowStyles = exports.tableContainerStyles = exports.tableContainerOverflowY = exports.tableCommentEditorStyles = exports.tableCommentEditorMarginOverride = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
10
  var _scrollbarStyles = require("./scrollbarStyles");
@@ -67,4 +67,19 @@ var tableContainerOverflowY = exports.tableContainerOverflowY = (0, _react.css)(
67
67
  '.ProseMirror .pm-table-wrapper': {
68
68
  overflowY: 'visible'
69
69
  }
70
+ });
71
+
72
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
73
+ var tableEmptyRowStyles = exports.tableEmptyRowStyles = (0, _react.css)({
74
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
75
+ '.ProseMirror .pm-table-wrapper': {
76
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
77
+ '.pm-table-cell-content-wrap, .pm-table-header-content-wrap': {
78
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
79
+ 'p:empty': {
80
+ /* add a minimum height to empty table rows in SSR */
81
+ minHeight: '1.714em'
82
+ }
83
+ }
84
+ }
70
85
  });
@@ -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.25.0";
8
+ var version = exports.version = "215.26.1";
@@ -99,7 +99,7 @@ export const FullPageToolbarNext = ({
99
99
  showKeyline: showKeyline || ContextPanelWidth > 0
100
100
  }, beforeIcon && /*#__PURE__*/React.createElement("div", {
101
101
  className: ax([styles.mainToolbarIconBefore, expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) && styles.mainToolbarIconBeforeNew])
102
- }, 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_toolbar_delay_render_fix', 'isEnabled', true) ? !isSSR() : !expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) || !isSSR())) && /*#__PURE__*/React.createElement(ToolbarNext, {
102
+ }, 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) || (expValEquals('platform_editor_ssr_renderer', 'isEnabled', true) && isSSR() || editorView) && (expValEquals('platform_editor_toolbar_delay_render_fix', 'isEnabled', true) ? !isSSR() : !expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) || !isSSR())) && /*#__PURE__*/React.createElement(ToolbarNext, {
103
103
  toolbar: toolbar,
104
104
  components: components,
105
105
  editorView: editorView,
@@ -8,7 +8,7 @@ import React from 'react';
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { jsx, useTheme } from '@emotion/react';
10
10
  import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
11
- import { richMediaClassName } from '@atlaskit/editor-common/styles';
11
+ import { richMediaClassName, tableSharedStyle } from '@atlaskit/editor-common/styles';
12
12
  import { akEditorGutterPaddingDynamic, editorFontSize } from '@atlaskit/editor-shared-styles';
13
13
  import { fg } from '@atlaskit/platform-feature-flags';
14
14
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
@@ -59,7 +59,7 @@ import { shadowStyles } from './styles/shadowStyles';
59
59
  import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, showDiffDeletedNodeStyles, smartCardDiffStyles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
60
60
  import { statusDangerStyles, statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match } from './styles/statusStyles';
61
61
  import { syncBlockStyles } from './styles/syncBlockStyles';
62
- import { tableCommentEditorStyles, tableContainerOverflowY, tableContainerStyles, tableLayoutFixes } from './styles/tableStyles';
62
+ import { tableCommentEditorStyles, tableContainerOverflowY, tableContainerStyles, tableLayoutFixes, tableEmptyRowStyles } from './styles/tableStyles';
63
63
  import { decisionDangerStyles, decisionIconWithVisualRefresh, decisionIconWithoutVisualRefresh, decisionStyles, getDenseTasksAndDecisionsStyles, taskItemStyles, taskItemStylesWithBlockTaskItem, tasksAndDecisionsStyles } from './styles/tasksAndDecisionsStyles';
64
64
  import { telepointerColorAndCommonStyle, telepointerStyle } from './styles/telepointerStyles';
65
65
  import { textColorStyles } from './styles/textColorStyles';
@@ -472,7 +472,11 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
472
472
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
473
473
  tableContainerStyles,
474
474
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
475
- !fg('platform_editor_table_container_y_overflow_fix') && tableContainerOverflowY,
475
+ !fg('platform_editor_table_container_y_overflow_fix') && tableContainerOverflowY, expValEquals('platform_editor_ssr_renderer', 'isEnabled', true) &&
476
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
477
+ tableSharedStyle(),
478
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
479
+ expValEquals('platform_editor_ssr_renderer', 'isEnabled', true) && tableEmptyRowStyles,
476
480
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
477
481
  hyperLinkFloatingToolbarStyles,
478
482
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -63,4 +63,19 @@ export const tableContainerOverflowY = css({
63
63
  '.ProseMirror .pm-table-wrapper': {
64
64
  overflowY: 'visible'
65
65
  }
66
+ });
67
+
68
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
69
+ export const tableEmptyRowStyles = css({
70
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
71
+ '.ProseMirror .pm-table-wrapper': {
72
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
73
+ '.pm-table-cell-content-wrap, .pm-table-header-content-wrap': {
74
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
75
+ 'p:empty': {
76
+ /* add a minimum height to empty table rows in SSR */
77
+ minHeight: '1.714em'
78
+ }
79
+ }
80
+ }
66
81
  });
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "215.25.0";
2
+ export const version = "215.26.1";
@@ -96,7 +96,7 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
96
96
  showKeyline: showKeyline || ContextPanelWidth > 0
97
97
  }, beforeIcon && /*#__PURE__*/React.createElement("div", {
98
98
  className: ax([styles.mainToolbarIconBefore, expValEquals('platform_editor_toolbar_support_custom_components', 'isEnabled', true) && styles.mainToolbarIconBeforeNew])
99
- }, 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_toolbar_delay_render_fix', 'isEnabled', true) ? !isSSR() : !expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) || !isSSR())) && /*#__PURE__*/React.createElement(ToolbarNext, {
99
+ }, 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) || (expValEquals('platform_editor_ssr_renderer', 'isEnabled', true) && isSSR() || editorView) && (expValEquals('platform_editor_toolbar_delay_render_fix', 'isEnabled', true) ? !isSSR() : !expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) || !isSSR())) && /*#__PURE__*/React.createElement(ToolbarNext, {
100
100
  toolbar: toolbar,
101
101
  components: components,
102
102
  editorView: editorView,
@@ -9,7 +9,7 @@ import React from 'react';
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
10
  import { jsx, useTheme } from '@emotion/react';
11
11
  import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
12
- import { richMediaClassName } from '@atlaskit/editor-common/styles';
12
+ import { richMediaClassName, tableSharedStyle } from '@atlaskit/editor-common/styles';
13
13
  import { akEditorGutterPaddingDynamic, editorFontSize } from '@atlaskit/editor-shared-styles';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
@@ -60,7 +60,7 @@ import { shadowStyles } from './styles/shadowStyles';
60
60
  import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, showDiffDeletedNodeStyles, smartCardDiffStyles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
61
61
  import { statusDangerStyles, statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match } from './styles/statusStyles';
62
62
  import { syncBlockStyles } from './styles/syncBlockStyles';
63
- import { tableCommentEditorStyles, tableContainerOverflowY, tableContainerStyles, tableLayoutFixes } from './styles/tableStyles';
63
+ import { tableCommentEditorStyles, tableContainerOverflowY, tableContainerStyles, tableLayoutFixes, tableEmptyRowStyles } from './styles/tableStyles';
64
64
  import { decisionDangerStyles, decisionIconWithVisualRefresh, decisionIconWithoutVisualRefresh, decisionStyles, getDenseTasksAndDecisionsStyles, taskItemStyles, taskItemStylesWithBlockTaskItem, tasksAndDecisionsStyles } from './styles/tasksAndDecisionsStyles';
65
65
  import { telepointerColorAndCommonStyle, telepointerStyle } from './styles/telepointerStyles';
66
66
  import { textColorStyles } from './styles/textColorStyles';
@@ -468,7 +468,11 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
468
468
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
469
469
  tableContainerStyles,
470
470
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
471
- !fg('platform_editor_table_container_y_overflow_fix') && tableContainerOverflowY,
471
+ !fg('platform_editor_table_container_y_overflow_fix') && tableContainerOverflowY, expValEquals('platform_editor_ssr_renderer', 'isEnabled', true) &&
472
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
473
+ tableSharedStyle(),
474
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
475
+ expValEquals('platform_editor_ssr_renderer', 'isEnabled', true) && tableEmptyRowStyles,
472
476
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
473
477
  hyperLinkFloatingToolbarStyles,
474
478
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -60,4 +60,19 @@ export var tableContainerOverflowY = css({
60
60
  '.ProseMirror .pm-table-wrapper': {
61
61
  overflowY: 'visible'
62
62
  }
63
+ });
64
+
65
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
66
+ export var tableEmptyRowStyles = css({
67
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
68
+ '.ProseMirror .pm-table-wrapper': {
69
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
70
+ '.pm-table-cell-content-wrap, .pm-table-header-content-wrap': {
71
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
72
+ 'p:empty': {
73
+ /* add a minimum height to empty table rows in SSR */
74
+ minHeight: '1.714em'
75
+ }
76
+ }
77
+ }
63
78
  });
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "215.25.0";
2
+ export var version = "215.26.1";
@@ -4,3 +4,4 @@ export declare const tableCommentEditorMarginOverride: SerializedStyles;
4
4
  export declare const tableCommentEditorStyles: SerializedStyles;
5
5
  export declare const tableContainerStyles: SerializedStyles;
6
6
  export declare const tableContainerOverflowY: SerializedStyles;
7
+ export declare const tableEmptyRowStyles: SerializedStyles;
@@ -4,3 +4,4 @@ export declare const tableCommentEditorMarginOverride: SerializedStyles;
4
4
  export declare const tableCommentEditorStyles: SerializedStyles;
5
5
  export declare const tableContainerStyles: SerializedStyles;
6
6
  export declare const tableContainerOverflowY: SerializedStyles;
7
+ export declare const tableEmptyRowStyles: SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "215.26.0",
3
+ "version": "215.27.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"