@atlaskit/editor-core 217.12.3 → 217.12.5

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,24 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 217.12.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`840d3970b9d8c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/840d3970b9d8c) -
8
+ Fix paragraph spacing in panels for small font-size block marks
9
+
10
+ Fix drag handle positioning around small text
11
+
12
+ Fix drag handles not appearing on small text in panels
13
+
14
+ - Updated dependencies
15
+
16
+ ## 217.12.4
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 217.12.3
4
23
 
5
24
  ### Patch Changes
@@ -523,7 +523,9 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
523
523
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
524
524
  _mediaStyles.mediaGroupStyles,
525
525
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
526
- _mediaStyles.mediaAlignmentStyles,
526
+ _mediaStyles.mediaAlignmentStyles, (0, _expValEquals.expValEquals)('platform_editor_small_font_size', 'isEnabled', true) ?
527
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
528
+ _tableStyles.tableLayoutFixesWithFontSize :
527
529
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
528
530
  _tableStyles.tableLayoutFixes,
529
531
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -15,10 +15,11 @@ var blockMarksStyles = exports.blockMarksStyles = (0, _react.css)({
15
15
  // - For nested block marks apart from those with indentation mark.
16
16
  // - Do not remove the margin top for nodes inside indentation marks.
17
17
  // - Do not remove the margin top for nodes inside alignment marks.
18
- //- If first element inside a block node has alignment mark, then remove the margin-top.
18
+ // - Do not remove the margin top for nodes inside font size marks.
19
+ //- If first element inside a block node has alignment or font size mark, then remove the margin-top.
19
20
  //- If first document element has indentation mark remove margin-top.
20
21
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
21
- '*:not(.fabric-editor-block-mark) >, *:not(.fabric-editor-block-mark) > div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment), .fabric-editor-alignment:first-of-type:first-child, .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child': {
22
+ '*:not(.fabric-editor-block-mark) >, *:not(.fabric-editor-block-mark) > div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size), .fabric-editor-alignment:first-of-type:first-child, .fabric-editor-font-size:first-of-type:first-child, .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child': {
22
23
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
23
24
  'p, h1, h2, h3, h4, h5, h6, .heading-wrapper': {
24
25
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
@@ -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.tableEmptyRowStyles = exports.tableContainerStyles = exports.tableCommentEditorStyles = exports.tableCommentEditorMarginOverride = void 0;
7
+ exports.tableLayoutFixesWithFontSize = exports.tableLayoutFixes = exports.tableEmptyRowStyles = exports.tableContainerStyles = 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");
@@ -25,6 +25,21 @@ var tableLayoutFixes = exports.tableLayoutFixes = (0, _react.css)({
25
25
  }
26
26
  });
27
27
 
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
29
+ var tableLayoutFixesWithFontSize = exports.tableLayoutFixesWithFontSize = (0, _react.css)({
30
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
31
+ '.pm-table-header-content-wrap :not(.fabric-editor-alignment, .fabric-editor-font-size), .pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark, .pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark': {
32
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
33
+ 'p:first-of-type': {
34
+ marginTop: 0
35
+ }
36
+ },
37
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
38
+ '.pm-table-cell-content-wrap .mediaGroupView-content-wrap': {
39
+ clear: 'both'
40
+ }
41
+ });
42
+
28
43
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
29
44
  var tableCommentEditorMarginOverride = exports.tableCommentEditorMarginOverride = (0, _react.css)({
30
45
  marginLeft: 0,
@@ -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 = "217.12.2";
8
+ var version = exports.version = "0.0.0-development";
@@ -59,7 +59,7 @@ 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, statusStylesTeam26 } from './styles/statusStyles';
61
61
  import { syncBlockStyles, syncBlockStylesBase, syncBlockFirstNodeStyles, syncBlockOverflowStyles } from './styles/syncBlockStyles';
62
- import { tableCommentEditorStyles, tableContainerStyles, tableEmptyRowStyles, tableLayoutFixes } from './styles/tableStyles';
62
+ import { tableCommentEditorStyles, tableContainerStyles, tableEmptyRowStyles, tableLayoutFixes, tableLayoutFixesWithFontSize } from './styles/tableStyles';
63
63
  import { decisionDangerStyles, decisionIconWithVisualRefresh, decisionStyles, getDenseTasksAndDecisionsStyles, taskItemCheckboxStyles, taskItemStyles, taskItemStylesWithBlockTaskItem, tasksAndDecisionsStyles } from './styles/tasksAndDecisionsStyles';
64
64
  import { telepointerColorAndCommonStyle, telepointerStyle } from './styles/telepointerStyles';
65
65
  import { textColorStyles } from './styles/textColorStyles';
@@ -519,7 +519,9 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
519
519
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
520
520
  mediaGroupStyles,
521
521
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
522
- mediaAlignmentStyles,
522
+ mediaAlignmentStyles, expValEquals('platform_editor_small_font_size', 'isEnabled', true) ?
523
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
524
+ tableLayoutFixesWithFontSize :
523
525
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
524
526
  tableLayoutFixes,
525
527
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -8,10 +8,11 @@ export const blockMarksStyles = css({
8
8
  // - For nested block marks apart from those with indentation mark.
9
9
  // - Do not remove the margin top for nodes inside indentation marks.
10
10
  // - Do not remove the margin top for nodes inside alignment marks.
11
- //- If first element inside a block node has alignment mark, then remove the margin-top.
11
+ // - Do not remove the margin top for nodes inside font size marks.
12
+ //- If first element inside a block node has alignment or font size mark, then remove the margin-top.
12
13
  //- If first document element has indentation mark remove margin-top.
13
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
14
- '*:not(.fabric-editor-block-mark) >, *:not(.fabric-editor-block-mark) > div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment), .fabric-editor-alignment:first-of-type:first-child, .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child': {
15
+ '*:not(.fabric-editor-block-mark) >, *:not(.fabric-editor-block-mark) > div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size), .fabric-editor-alignment:first-of-type:first-child, .fabric-editor-font-size:first-of-type:first-child, .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child': {
15
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
16
17
  'p, h1, h2, h3, h4, h5, h6, .heading-wrapper': {
17
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
@@ -17,6 +17,21 @@ export const tableLayoutFixes = css({
17
17
  }
18
18
  });
19
19
 
20
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
21
+ export const tableLayoutFixesWithFontSize = css({
22
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
23
+ '.pm-table-header-content-wrap :not(.fabric-editor-alignment, .fabric-editor-font-size), .pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark, .pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark': {
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
25
+ 'p:first-of-type': {
26
+ marginTop: 0
27
+ }
28
+ },
29
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
30
+ '.pm-table-cell-content-wrap .mediaGroupView-content-wrap': {
31
+ clear: 'both'
32
+ }
33
+ });
34
+
20
35
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
21
36
  export const tableCommentEditorMarginOverride = css({
22
37
  marginLeft: 0,
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "217.12.2";
2
+ export const version = "0.0.0-development";
@@ -60,7 +60,7 @@ 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, statusStylesTeam26 } from './styles/statusStyles';
62
62
  import { syncBlockStyles, syncBlockStylesBase, syncBlockFirstNodeStyles, syncBlockOverflowStyles } from './styles/syncBlockStyles';
63
- import { tableCommentEditorStyles, tableContainerStyles, tableEmptyRowStyles, tableLayoutFixes } from './styles/tableStyles';
63
+ import { tableCommentEditorStyles, tableContainerStyles, tableEmptyRowStyles, tableLayoutFixes, tableLayoutFixesWithFontSize } from './styles/tableStyles';
64
64
  import { decisionDangerStyles, decisionIconWithVisualRefresh, decisionStyles, getDenseTasksAndDecisionsStyles, taskItemCheckboxStyles, taskItemStyles, taskItemStylesWithBlockTaskItem, tasksAndDecisionsStyles } from './styles/tasksAndDecisionsStyles';
65
65
  import { telepointerColorAndCommonStyle, telepointerStyle } from './styles/telepointerStyles';
66
66
  import { textColorStyles } from './styles/textColorStyles';
@@ -515,7 +515,9 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
515
515
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
516
516
  mediaGroupStyles,
517
517
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
518
- mediaAlignmentStyles,
518
+ mediaAlignmentStyles, expValEquals('platform_editor_small_font_size', 'isEnabled', true) ?
519
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
520
+ tableLayoutFixesWithFontSize :
519
521
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
520
522
  tableLayoutFixes,
521
523
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -8,10 +8,11 @@ export var blockMarksStyles = css({
8
8
  // - For nested block marks apart from those with indentation mark.
9
9
  // - Do not remove the margin top for nodes inside indentation marks.
10
10
  // - Do not remove the margin top for nodes inside alignment marks.
11
- //- If first element inside a block node has alignment mark, then remove the margin-top.
11
+ // - Do not remove the margin top for nodes inside font size marks.
12
+ //- If first element inside a block node has alignment or font size mark, then remove the margin-top.
12
13
  //- If first document element has indentation mark remove margin-top.
13
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
14
- '*:not(.fabric-editor-block-mark) >, *:not(.fabric-editor-block-mark) > div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment), .fabric-editor-alignment:first-of-type:first-child, .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child': {
15
+ '*:not(.fabric-editor-block-mark) >, *:not(.fabric-editor-block-mark) > div.fabric-editor-block-mark:first-of-type:not(.fabric-editor-indentation-mark):not(.fabric-editor-alignment):not(.fabric-editor-font-size), .fabric-editor-alignment:first-of-type:first-child, .fabric-editor-font-size:first-of-type:first-child, .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child': {
15
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
16
17
  'p, h1, h2, h3, h4, h5, h6, .heading-wrapper': {
17
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
@@ -18,6 +18,21 @@ export var tableLayoutFixes = css({
18
18
  }
19
19
  });
20
20
 
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
22
+ export var tableLayoutFixesWithFontSize = css({
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
24
+ '.pm-table-header-content-wrap :not(.fabric-editor-alignment, .fabric-editor-font-size), .pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark, .pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark': {
25
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
26
+ 'p:first-of-type': {
27
+ marginTop: 0
28
+ }
29
+ },
30
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
31
+ '.pm-table-cell-content-wrap .mediaGroupView-content-wrap': {
32
+ clear: 'both'
33
+ }
34
+ });
35
+
21
36
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
22
37
  export var tableCommentEditorMarginOverride = css({
23
38
  marginLeft: 0,
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "217.12.2";
2
+ export var version = "0.0.0-development";
@@ -1,5 +1,6 @@
1
1
  import type { SerializedStyles } from '@emotion/react';
2
2
  export declare const tableLayoutFixes: SerializedStyles;
3
+ export declare const tableLayoutFixesWithFontSize: SerializedStyles;
3
4
  export declare const tableCommentEditorMarginOverride: SerializedStyles;
4
5
  export declare const tableCommentEditorStyles: SerializedStyles;
5
6
  export declare const tableContainerStyles: SerializedStyles;
@@ -1,5 +1,6 @@
1
1
  import type { SerializedStyles } from '@emotion/react';
2
2
  export declare const tableLayoutFixes: SerializedStyles;
3
+ export declare const tableLayoutFixesWithFontSize: SerializedStyles;
3
4
  export declare const tableCommentEditorMarginOverride: SerializedStyles;
4
5
  export declare const tableCommentEditorStyles: SerializedStyles;
5
6
  export declare const tableContainerStyles: SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "217.12.3",
3
+ "version": "217.12.5",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -57,7 +57,7 @@
57
57
  "@atlaskit/editor-ssr-renderer": "^3.2.0",
58
58
  "@atlaskit/editor-toolbar": "^0.20.0",
59
59
  "@atlaskit/editor-toolbar-model": "^0.4.0",
60
- "@atlaskit/emoji": "^69.11.0",
60
+ "@atlaskit/emoji": "^69.12.0",
61
61
  "@atlaskit/feature-gate-js-client": "^5.5.0",
62
62
  "@atlaskit/icon": "^34.0.0",
63
63
  "@atlaskit/link": "^3.4.0",
@@ -67,7 +67,7 @@
67
67
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
68
68
  "@atlaskit/react-ufo": "^5.12.0",
69
69
  "@atlaskit/task-decision": "^19.3.0",
70
- "@atlaskit/tmp-editor-statsig": "^55.1.0",
70
+ "@atlaskit/tmp-editor-statsig": "^56.2.0",
71
71
  "@atlaskit/tokens": "^12.0.0",
72
72
  "@atlaskit/tooltip": "^21.1.0",
73
73
  "@atlaskit/width-detector": "^5.0.0",
@@ -84,7 +84,7 @@
84
84
  "uuid": "^3.1.0"
85
85
  },
86
86
  "peerDependencies": {
87
- "@atlaskit/editor-common": "^112.18.0",
87
+ "@atlaskit/editor-common": "^112.19.0",
88
88
  "@atlaskit/link-provider": "^4.3.0",
89
89
  "@atlaskit/media-core": "^37.0.0",
90
90
  "react": "^18.2.0",
@@ -99,7 +99,7 @@
99
99
  "@atlaskit/analytics-listeners": "^10.0.0",
100
100
  "@atlaskit/collab-provider": "^16.2.0",
101
101
  "@atlaskit/editor-plugin-annotation": "^8.0.0",
102
- "@atlaskit/editor-plugin-card": "^13.1.0",
102
+ "@atlaskit/editor-plugin-card": "^14.0.0",
103
103
  "@atlaskit/editor-plugin-list": "^10.2.0",
104
104
  "@atlaskit/editor-plugin-paste": "^9.1.0",
105
105
  "@atlaskit/editor-test-helpers": "workspace:^",
@@ -113,12 +113,12 @@
113
113
  "@atlaskit/renderer": "^128.9.0",
114
114
  "@atlaskit/section-message": "^8.12.0",
115
115
  "@atlaskit/synchrony-test-helpers": "workspace:^",
116
- "@atlaskit/toggle": "^15.4.0",
116
+ "@atlaskit/toggle": "^15.5.0",
117
117
  "@atlaskit/util-data-test": "^18.5.0",
118
118
  "@atlassian/a11y-jest-testing": "^0.11.0",
119
119
  "@atlassian/adf-schema-json": "^1.33.0",
120
120
  "@atlassian/feature-flags-test-utils": "^1.0.0",
121
- "@atlassian/search-client": "^0.333.0",
121
+ "@atlassian/search-client": "^0.334.0",
122
122
  "@atlassian/search-provider": "^9.1.0",
123
123
  "@emotion/jest": "^11.8.0",
124
124
  "@testing-library/react": "^16.3.0",