@atlaskit/editor-core 216.9.5 → 216.9.7

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,21 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 216.9.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`899c299510719`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/899c299510719) -
8
+ [ux] EDITOR-5273 fix first node in document margin for sync blocks to fix shift during ssr
9
+ - Updated dependencies
10
+
11
+ ## 216.9.6
12
+
13
+ ### Patch Changes
14
+
15
+ - [`fa62876ed1943`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fa62876ed1943) -
16
+ EDITOR-5134 Clean up platform_synced_block_patch_1
17
+ - Updated dependencies
18
+
3
19
  ## 216.9.5
4
20
 
5
21
  ### Patch Changes
@@ -362,7 +362,9 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
362
362
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
363
363
  _syncBlockStyles.syncBlockStyles, (0, _experiments.editorExperiment)('platform_synced_block', true) &&
364
364
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
365
- _syncBlockStyles.syncBlockOverflowStyles,
365
+ _syncBlockStyles.syncBlockOverflowStyles, (0, _experiments.editorExperiment)('platform_synced_block', true) && (0, _platformFeatureFlags.fg)('platform_synced_block_patch_3') &&
366
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
367
+ _syncBlockStyles.syncBlockFirstNodeStyles,
366
368
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
367
369
  (0, _experiments.editorExperiment)('advanced_layouts', true) && _layout.layoutBaseStylesAdvanced, (0, _experiments.editorExperiment)('advanced_layouts', true) ?
368
370
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -422,7 +424,9 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
422
424
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
423
425
  _resizerStyles.pragmaticResizerStylesSyncedBlock, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) ?
424
426
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
425
- _resizerStyles.pragmaticResizerStyles : undefined, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) ? (0, _platformFeatureFlags.fg)('platform_synced_block_patch_1') ?
427
+ _resizerStyles.pragmaticResizerStyles : undefined, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) ?
428
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
429
+ (0, _experiments.editorExperiment)('platform_synced_block', true) ?
426
430
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
427
431
  _resizerStyles.pragmaticResizerStylesCodeBlockSyncedBlockPatch :
428
432
  // 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 = exports.syncBlockOverflowStyles = void 0;
7
+ exports.syncBlockStyles = exports.syncBlockOverflowStyles = exports.syncBlockFirstNodeStyles = 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");
@@ -160,4 +160,9 @@ var syncBlockOverflowStyles = exports.syncBlockOverflowStyles = (0, _react.css)(
160
160
  // Contain floated elements (wrap-left/wrap-right) within synced block borders
161
161
  overflow: 'hidden'
162
162
  })
163
- });
163
+ });
164
+
165
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
166
+ var syncBlockFirstNodeStyles = exports.syncBlockFirstNodeStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".ProseMirror > .fabric-editor-breakout-mark:first-child", (0, _defineProperty2.default)({}, ".".concat(_syncBlock.SyncBlockSharedCssClassName.prefix, ", .").concat(_syncBlock.BodiedSyncBlockSharedCssClassName.prefix), {
167
+ marginTop: 0
168
+ })));
@@ -57,7 +57,7 @@ import { selectionToolbarAnimationStyles } from './styles/selectionToolbarStyles
57
57
  import { shadowStyles } from './styles/shadowStyles';
58
58
  import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, showDiffDeletedNodeStyles, showDiffDeletedNodeStylesNew, smartCardDiffStyles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
59
59
  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';
60
- import { syncBlockStyles, syncBlockOverflowStyles } from './styles/syncBlockStyles';
60
+ import { syncBlockStyles, syncBlockFirstNodeStyles, syncBlockOverflowStyles } from './styles/syncBlockStyles';
61
61
  import { tableCommentEditorStyles, tableContainerOverflowY, tableContainerStyles, tableEmptyRowStyles, tableLayoutFixes } from './styles/tableStyles';
62
62
  import { decisionDangerStyles, decisionIconWithVisualRefresh, decisionStyles, getDenseTasksAndDecisionsStyles, taskItemCheckboxStyles, taskItemCheckboxStylesWithBlockTaskItem, taskItemNextCheckboxStyles, taskItemStyles, taskItemStylesWithBlockTaskItem, tasksAndDecisionsStyles } from './styles/tasksAndDecisionsStyles';
63
63
  import { telepointerColorAndCommonStyle, telepointerStyle } from './styles/telepointerStyles';
@@ -358,7 +358,9 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
358
358
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
359
359
  syncBlockStyles, editorExperiment('platform_synced_block', true) &&
360
360
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
361
- syncBlockOverflowStyles,
361
+ syncBlockOverflowStyles, editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_3') &&
362
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
363
+ syncBlockFirstNodeStyles,
362
364
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
363
365
  editorExperiment('advanced_layouts', true) && layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ?
364
366
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -418,7 +420,9 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
418
420
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
419
421
  pragmaticResizerStylesSyncedBlock, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) ?
420
422
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
421
- pragmaticResizerStyles : undefined, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) ? fg('platform_synced_block_patch_1') ?
423
+ pragmaticResizerStyles : undefined, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) ?
424
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
425
+ editorExperiment('platform_synced_block', true) ?
422
426
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
423
427
  pragmaticResizerStylesCodeBlockSyncedBlockPatch :
424
428
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -209,4 +209,15 @@ export const syncBlockOverflowStyles = css({
209
209
  overflow: 'hidden'
210
210
  }
211
211
  }
212
+ });
213
+
214
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
215
+ export const syncBlockFirstNodeStyles = css({
216
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
217
+ [`.ProseMirror > .fabric-editor-breakout-mark:first-child`]: {
218
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
219
+ [`.${SyncBlockSharedCssClassName.prefix}, .${BodiedSyncBlockSharedCssClassName.prefix}`]: {
220
+ marginTop: 0
221
+ }
222
+ }
212
223
  });
@@ -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, syncBlockOverflowStyles } from './styles/syncBlockStyles';
61
+ import { syncBlockStyles, syncBlockFirstNodeStyles, 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';
@@ -354,7 +354,9 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
354
354
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
355
355
  syncBlockStyles, editorExperiment('platform_synced_block', true) &&
356
356
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
357
- syncBlockOverflowStyles,
357
+ syncBlockOverflowStyles, editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_3') &&
358
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
359
+ syncBlockFirstNodeStyles,
358
360
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
359
361
  editorExperiment('advanced_layouts', true) && layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ?
360
362
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -414,7 +416,9 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
414
416
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
415
417
  pragmaticResizerStylesSyncedBlock, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) ?
416
418
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
417
- pragmaticResizerStyles : undefined, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) ? fg('platform_synced_block_patch_1') ?
419
+ pragmaticResizerStyles : undefined, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) ?
420
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
421
+ editorExperiment('platform_synced_block', true) ?
418
422
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
419
423
  pragmaticResizerStylesCodeBlockSyncedBlockPatch :
420
424
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -152,4 +152,9 @@ export var syncBlockOverflowStyles = css({
152
152
  // Contain floated elements (wrap-left/wrap-right) within synced block borders
153
153
  overflow: 'hidden'
154
154
  })
155
- });
155
+ });
156
+
157
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
158
+ export var syncBlockFirstNodeStyles = css(_defineProperty({}, ".ProseMirror > .fabric-editor-breakout-mark:first-child", _defineProperty({}, ".".concat(SyncBlockSharedCssClassName.prefix, ", .").concat(BodiedSyncBlockSharedCssClassName.prefix), {
159
+ marginTop: 0
160
+ })));
@@ -1,3 +1,4 @@
1
1
  import { type SerializedStyles } from '@emotion/react';
2
2
  export declare const syncBlockStyles: SerializedStyles;
3
3
  export declare const syncBlockOverflowStyles: SerializedStyles;
4
+ export declare const syncBlockFirstNodeStyles: SerializedStyles;
@@ -1,3 +1,4 @@
1
1
  import { type SerializedStyles } from '@emotion/react';
2
2
  export declare const syncBlockStyles: SerializedStyles;
3
3
  export declare const syncBlockOverflowStyles: SerializedStyles;
4
+ export declare const syncBlockFirstNodeStyles: SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "216.9.5",
3
+ "version": "216.9.7",
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.2.0",
68
68
  "@atlaskit/task-decision": "^19.2.0",
69
- "@atlaskit/tmp-editor-statsig": "^24.1.0",
69
+ "@atlaskit/tmp-editor-statsig": "^25.2.0",
70
70
  "@atlaskit/tokens": "^11.0.0",
71
71
  "@atlaskit/tooltip": "^20.14.0",
72
72
  "@atlaskit/width-detector": "^5.0.0",
@@ -83,7 +83,7 @@
83
83
  "uuid": "^3.1.0"
84
84
  },
85
85
  "peerDependencies": {
86
- "@atlaskit/editor-common": "^111.12.0",
86
+ "@atlaskit/editor-common": "^111.14.0",
87
87
  "@atlaskit/link-provider": "^4.2.0",
88
88
  "@atlaskit/media-core": "^37.0.0",
89
89
  "react": "^18.2.0",
@@ -337,10 +337,10 @@
337
337
  "platform_editor_a11y_9262": {
338
338
  "type": "boolean"
339
339
  },
340
- "platform_synced_block_patch_1": {
340
+ "platform_synced_block_patch_2": {
341
341
  "type": "boolean"
342
342
  },
343
- "platform_synced_block_patch_2": {
343
+ "platform_synced_block_patch_3": {
344
344
  "type": "boolean"
345
345
  }
346
346
  },