@atlaskit/editor-core 216.7.12 → 216.7.13

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,11 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 216.7.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 216.7.12
4
10
 
5
11
  ### Patch Changes
@@ -359,7 +359,9 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
359
359
  // merge alignMultipleWrappedImageInLayoutStyles with layoutBaseStyles when clean up platform_editor_fix_media_in_renderer
360
360
  (0, _platformFeatureFlags.fg)('platform_editor_fix_media_in_renderer') && alignMultipleWrappedImageInLayoutStyles, (0, _experiments.editorExperiment)('platform_synced_block', true) &&
361
361
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
362
- _syncBlockStyles.syncBlockStyles,
362
+ _syncBlockStyles.syncBlockStyles, (0, _experiments.editorExperiment)('platform_synced_block', true) && (0, _platformFeatureFlags.fg)('platform_synced_block_dogfooding') &&
363
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
364
+ _syncBlockStyles.syncBlockOverflowStyles,
363
365
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
364
366
  (0, _experiments.editorExperiment)('advanced_layouts', true) && _layout.layoutBaseStylesAdvanced, (0, _experiments.editorExperiment)('advanced_layouts', true) ?
365
367
  // 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.syncBlockStyles = void 0;
7
+ exports.syncBlockStyles = exports.syncBlockOverflowStyles = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
10
  var _syncBlock = require("@atlaskit/editor-common/sync-block");
@@ -127,4 +127,16 @@ var syncBlockStyles = exports.syncBlockStyles = (0, _react.css)((0, _definePrope
127
127
  right: "var(--ds-space-150, 12px)",
128
128
  backgroundColor: "var(--ds-surface, #FFFFFF)",
129
129
  maxWidth: '140px'
130
- }));
130
+ }));
131
+
132
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
133
+ var syncBlockOverflowStyles = exports.syncBlockOverflowStyles = (0, _react.css)({
134
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
135
+ '.ProseMirror': (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_syncBlock.BodiedSyncBlockSharedCssClassName.content), {
136
+ // Contain floated elements (wrap-left/wrap-right) within synced block borders
137
+ overflow: 'hidden'
138
+ }), ".".concat(_syncBlock.SyncBlockSharedCssClassName.renderer), {
139
+ // Contain floated elements (wrap-left/wrap-right) within synced block borders
140
+ overflow: 'hidden'
141
+ })
142
+ });
@@ -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 = "216.7.11";
8
+ var version = exports.version = "216.7.12";
@@ -58,7 +58,7 @@ import { selectionToolbarAnimationStyles } from './styles/selectionToolbarStyles
58
58
  import { shadowStyles } from './styles/shadowStyles';
59
59
  import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, showDiffDeletedNodeStyles, showDiffDeletedNodeStylesNew, 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
- import { syncBlockStyles } from './styles/syncBlockStyles';
61
+ import { syncBlockStyles, syncBlockOverflowStyles } from './styles/syncBlockStyles';
62
62
  import { tableCommentEditorStyles, tableContainerOverflowY, tableContainerStyles, tableEmptyRowStyles, tableLayoutFixes } from './styles/tableStyles';
63
63
  import { decisionDangerStyles, decisionIconWithVisualRefresh, decisionStyles, getDenseTasksAndDecisionsStyles, taskItemCheckboxStyles, taskItemCheckboxStylesWithBlockTaskItem, taskItemNextCheckboxStyles, taskItemStyles, taskItemStylesWithBlockTaskItem, tasksAndDecisionsStyles } from './styles/tasksAndDecisionsStyles';
64
64
  import { telepointerColorAndCommonStyle, telepointerStyle } from './styles/telepointerStyles';
@@ -355,7 +355,9 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
355
355
  // merge alignMultipleWrappedImageInLayoutStyles with layoutBaseStyles when clean up platform_editor_fix_media_in_renderer
356
356
  fg('platform_editor_fix_media_in_renderer') && alignMultipleWrappedImageInLayoutStyles, editorExperiment('platform_synced_block', true) &&
357
357
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
358
- syncBlockStyles,
358
+ syncBlockStyles, editorExperiment('platform_synced_block', true) && fg('platform_synced_block_dogfooding') &&
359
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
360
+ syncBlockOverflowStyles,
359
361
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
360
362
  editorExperiment('advanced_layouts', true) && layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ?
361
363
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -166,4 +166,21 @@ export const syncBlockStyles = css({
166
166
  backgroundColor: "var(--ds-surface, #FFFFFF)",
167
167
  maxWidth: '140px'
168
168
  }
169
+ });
170
+
171
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
172
+ export const syncBlockOverflowStyles = css({
173
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
174
+ '.ProseMirror': {
175
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
176
+ [`.${BodiedSyncBlockSharedCssClassName.content}`]: {
177
+ // Contain floated elements (wrap-left/wrap-right) within synced block borders
178
+ overflow: 'hidden'
179
+ },
180
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
181
+ [`.${SyncBlockSharedCssClassName.renderer}`]: {
182
+ // Contain floated elements (wrap-left/wrap-right) within synced block borders
183
+ overflow: 'hidden'
184
+ }
185
+ }
169
186
  });
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "216.7.11";
2
+ export const version = "216.7.12";
@@ -59,7 +59,7 @@ import { selectionToolbarAnimationStyles } from './styles/selectionToolbarStyles
59
59
  import { shadowStyles } from './styles/shadowStyles';
60
60
  import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, showDiffDeletedNodeStyles, showDiffDeletedNodeStylesNew, 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
- import { syncBlockStyles } from './styles/syncBlockStyles';
62
+ import { syncBlockStyles, syncBlockOverflowStyles } from './styles/syncBlockStyles';
63
63
  import { tableCommentEditorStyles, tableContainerOverflowY, tableContainerStyles, tableEmptyRowStyles, tableLayoutFixes } from './styles/tableStyles';
64
64
  import { decisionDangerStyles, decisionIconWithVisualRefresh, decisionStyles, getDenseTasksAndDecisionsStyles, taskItemCheckboxStyles, taskItemCheckboxStylesWithBlockTaskItem, taskItemNextCheckboxStyles, taskItemStyles, taskItemStylesWithBlockTaskItem, tasksAndDecisionsStyles } from './styles/tasksAndDecisionsStyles';
65
65
  import { telepointerColorAndCommonStyle, telepointerStyle } from './styles/telepointerStyles';
@@ -351,7 +351,9 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
351
351
  // merge alignMultipleWrappedImageInLayoutStyles with layoutBaseStyles when clean up platform_editor_fix_media_in_renderer
352
352
  fg('platform_editor_fix_media_in_renderer') && alignMultipleWrappedImageInLayoutStyles, editorExperiment('platform_synced_block', true) &&
353
353
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
354
- syncBlockStyles,
354
+ syncBlockStyles, editorExperiment('platform_synced_block', true) && fg('platform_synced_block_dogfooding') &&
355
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
356
+ syncBlockOverflowStyles,
355
357
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
356
358
  editorExperiment('advanced_layouts', true) && layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ?
357
359
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -119,4 +119,16 @@ export var syncBlockStyles = css(_defineProperty({
119
119
  right: "var(--ds-space-150, 12px)",
120
120
  backgroundColor: "var(--ds-surface, #FFFFFF)",
121
121
  maxWidth: '140px'
122
- }));
122
+ }));
123
+
124
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
125
+ export var syncBlockOverflowStyles = css({
126
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
127
+ '.ProseMirror': _defineProperty(_defineProperty({}, ".".concat(BodiedSyncBlockSharedCssClassName.content), {
128
+ // Contain floated elements (wrap-left/wrap-right) within synced block borders
129
+ overflow: 'hidden'
130
+ }), ".".concat(SyncBlockSharedCssClassName.renderer), {
131
+ // Contain floated elements (wrap-left/wrap-right) within synced block borders
132
+ overflow: 'hidden'
133
+ })
134
+ });
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "216.7.11";
2
+ export var version = "216.7.12";
@@ -1,2 +1,3 @@
1
1
  import { type SerializedStyles } from '@emotion/react';
2
2
  export declare const syncBlockStyles: SerializedStyles;
3
+ export declare const syncBlockOverflowStyles: SerializedStyles;
@@ -1,2 +1,3 @@
1
1
  import { type SerializedStyles } from '@emotion/react';
2
2
  export declare const syncBlockStyles: SerializedStyles;
3
+ export declare const syncBlockOverflowStyles: SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "216.7.12",
3
+ "version": "216.7.13",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -66,7 +66,7 @@
66
66
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
67
67
  "@atlaskit/react-ufo": "^5.0.0",
68
68
  "@atlaskit/task-decision": "^19.2.0",
69
- "@atlaskit/tmp-editor-statsig": "^16.36.0",
69
+ "@atlaskit/tmp-editor-statsig": "^17.0.0",
70
70
  "@atlaskit/tokens": "^10.1.0",
71
71
  "@atlaskit/tooltip": "^20.14.0",
72
72
  "@atlaskit/width-detector": "^5.0.0",