@atlaskit/editor-common 110.9.0 → 110.9.2

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.
Files changed (148) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/messages/block-menu.js +5 -0
  3. package/dist/cjs/monitoring/error.js +1 -1
  4. package/dist/cjs/panel.js +0 -12
  5. package/dist/cjs/styles/index.js +0 -204
  6. package/dist/cjs/styles/shared/annotation.js +1 -68
  7. package/dist/cjs/styles/shared/code-block.js +2 -17
  8. package/dist/cjs/styles/shared/date.js +2 -12
  9. package/dist/cjs/styles/shared/grid.js +2 -41
  10. package/dist/cjs/styles/shared/lists.js +2 -10
  11. package/dist/cjs/styles/shared/panel.js +1 -39
  12. package/dist/cjs/styles/shared/resizer.js +2 -202
  13. package/dist/cjs/styles/shared/smart-card.js +1 -6
  14. package/dist/cjs/styles/shared/smartCard.js +2 -16
  15. package/dist/cjs/styles/shared/task-decision.js +2 -12
  16. package/dist/cjs/styles/shared/unsupported-content.js +2 -12
  17. package/dist/cjs/ui/DropList/index.js +1 -1
  18. package/dist/cjs/ui/Expand/sharedStyles.js +2 -97
  19. package/dist/cjs/ui/index.js +0 -7
  20. package/dist/es2019/messages/block-menu.js +5 -0
  21. package/dist/es2019/monitoring/error.js +1 -1
  22. package/dist/es2019/panel.js +1 -1
  23. package/dist/es2019/styles/index.js +11 -23
  24. package/dist/es2019/styles/shared/annotation.js +1 -106
  25. package/dist/es2019/styles/shared/code-block.js +1 -164
  26. package/dist/es2019/styles/shared/date.js +1 -11
  27. package/dist/es2019/styles/shared/grid.js +1 -39
  28. package/dist/es2019/styles/shared/lists.js +1 -121
  29. package/dist/es2019/styles/shared/panel.js +1 -138
  30. package/dist/es2019/styles/shared/resizer.js +2 -211
  31. package/dist/es2019/styles/shared/smart-card.js +1 -24
  32. package/dist/es2019/styles/shared/smartCard.js +1 -151
  33. package/dist/es2019/styles/shared/task-decision.js +1 -63
  34. package/dist/es2019/styles/shared/unsupported-content.js +1 -27
  35. package/dist/es2019/ui/DropList/index.js +1 -1
  36. package/dist/es2019/ui/Expand/sharedStyles.js +1 -113
  37. package/dist/es2019/ui/index.js +0 -1
  38. package/dist/esm/messages/block-menu.js +5 -0
  39. package/dist/esm/monitoring/error.js +1 -1
  40. package/dist/esm/panel.js +1 -1
  41. package/dist/esm/styles/index.js +11 -23
  42. package/dist/esm/styles/shared/annotation.js +0 -67
  43. package/dist/esm/styles/shared/code-block.js +1 -15
  44. package/dist/esm/styles/shared/date.js +1 -9
  45. package/dist/esm/styles/shared/grid.js +1 -39
  46. package/dist/esm/styles/shared/lists.js +1 -10
  47. package/dist/esm/styles/shared/panel.js +0 -37
  48. package/dist/esm/styles/shared/resizer.js +2 -202
  49. package/dist/esm/styles/shared/smart-card.js +0 -5
  50. package/dist/esm/styles/shared/smartCard.js +1 -15
  51. package/dist/esm/styles/shared/task-decision.js +1 -10
  52. package/dist/esm/styles/shared/unsupported-content.js +1 -11
  53. package/dist/esm/ui/DropList/index.js +1 -1
  54. package/dist/esm/ui/Expand/sharedStyles.js +1 -96
  55. package/dist/esm/ui/index.js +0 -1
  56. package/dist/types/messages/block-menu.d.ts +5 -0
  57. package/dist/types/panel.d.ts +1 -1
  58. package/dist/types/styles/index.d.ts +11 -23
  59. package/dist/types/styles/shared/annotation.d.ts +0 -30
  60. package/dist/types/styles/shared/code-block.d.ts +0 -3
  61. package/dist/types/styles/shared/date.d.ts +0 -2
  62. package/dist/types/styles/shared/grid.d.ts +0 -2
  63. package/dist/types/styles/shared/lists.d.ts +0 -2
  64. package/dist/types/styles/shared/panel.d.ts +0 -2
  65. package/dist/types/styles/shared/resizer.d.ts +0 -4
  66. package/dist/types/styles/shared/smart-card.d.ts +0 -2
  67. package/dist/types/styles/shared/smartCard.d.ts +0 -1
  68. package/dist/types/styles/shared/task-decision.d.ts +0 -2
  69. package/dist/types/styles/shared/unsupported-content.d.ts +0 -2
  70. package/dist/types/ui/Expand/sharedStyles.d.ts +0 -6
  71. package/dist/types/ui/index.d.ts +0 -2
  72. package/dist/types-ts4.5/messages/block-menu.d.ts +5 -0
  73. package/dist/types-ts4.5/panel.d.ts +1 -1
  74. package/dist/types-ts4.5/styles/index.d.ts +11 -23
  75. package/dist/types-ts4.5/styles/shared/annotation.d.ts +0 -30
  76. package/dist/types-ts4.5/styles/shared/code-block.d.ts +0 -3
  77. package/dist/types-ts4.5/styles/shared/date.d.ts +0 -2
  78. package/dist/types-ts4.5/styles/shared/grid.d.ts +0 -2
  79. package/dist/types-ts4.5/styles/shared/lists.d.ts +0 -2
  80. package/dist/types-ts4.5/styles/shared/panel.d.ts +0 -2
  81. package/dist/types-ts4.5/styles/shared/resizer.d.ts +0 -4
  82. package/dist/types-ts4.5/styles/shared/smart-card.d.ts +0 -2
  83. package/dist/types-ts4.5/styles/shared/smartCard.d.ts +0 -1
  84. package/dist/types-ts4.5/styles/shared/task-decision.d.ts +0 -2
  85. package/dist/types-ts4.5/styles/shared/unsupported-content.d.ts +0 -2
  86. package/dist/types-ts4.5/ui/Expand/sharedStyles.d.ts +0 -6
  87. package/dist/types-ts4.5/ui/index.d.ts +0 -2
  88. package/package.json +2 -2
  89. package/dist/cjs/styles/shared/background-color.js +0 -33
  90. package/dist/cjs/styles/shared/block-marks.js +0 -14
  91. package/dist/cjs/styles/shared/code-mark.js +0 -32
  92. package/dist/cjs/styles/shared/column-layout.js +0 -70
  93. package/dist/cjs/styles/shared/embedCard.js +0 -42
  94. package/dist/cjs/styles/shared/indentation.js +0 -40
  95. package/dist/cjs/styles/shared/link.js +0 -24
  96. package/dist/cjs/styles/shared/paragraph.js +0 -39
  97. package/dist/cjs/styles/shared/rule.js +0 -24
  98. package/dist/cjs/styles/shared/shadow.js +0 -64
  99. package/dist/cjs/styles/shared/text-color.js +0 -20
  100. package/dist/cjs/styles/shared/whitespace.js +0 -15
  101. package/dist/es2019/styles/shared/background-color.js +0 -26
  102. package/dist/es2019/styles/shared/block-marks.js +0 -37
  103. package/dist/es2019/styles/shared/code-mark.js +0 -25
  104. package/dist/es2019/styles/shared/column-layout.js +0 -66
  105. package/dist/es2019/styles/shared/embedCard.js +0 -33
  106. package/dist/es2019/styles/shared/indentation.js +0 -34
  107. package/dist/es2019/styles/shared/link.js +0 -18
  108. package/dist/es2019/styles/shared/paragraph.js +0 -32
  109. package/dist/es2019/styles/shared/rule.js +0 -15
  110. package/dist/es2019/styles/shared/shadow.js +0 -69
  111. package/dist/es2019/styles/shared/text-color.js +0 -14
  112. package/dist/es2019/styles/shared/whitespace.js +0 -9
  113. package/dist/esm/styles/shared/background-color.js +0 -26
  114. package/dist/esm/styles/shared/block-marks.js +0 -8
  115. package/dist/esm/styles/shared/code-mark.js +0 -25
  116. package/dist/esm/styles/shared/column-layout.js +0 -63
  117. package/dist/esm/styles/shared/embedCard.js +0 -35
  118. package/dist/esm/styles/shared/indentation.js +0 -34
  119. package/dist/esm/styles/shared/link.js +0 -18
  120. package/dist/esm/styles/shared/paragraph.js +0 -32
  121. package/dist/esm/styles/shared/rule.js +0 -17
  122. package/dist/esm/styles/shared/shadow.js +0 -57
  123. package/dist/esm/styles/shared/text-color.js +0 -14
  124. package/dist/esm/styles/shared/whitespace.js +0 -9
  125. package/dist/types/styles/shared/background-color.d.ts +0 -1
  126. package/dist/types/styles/shared/block-marks.d.ts +0 -2
  127. package/dist/types/styles/shared/code-mark.d.ts +0 -1
  128. package/dist/types/styles/shared/column-layout.d.ts +0 -4
  129. package/dist/types/styles/shared/embedCard.d.ts +0 -3
  130. package/dist/types/styles/shared/indentation.d.ts +0 -2
  131. package/dist/types/styles/shared/link.d.ts +0 -2
  132. package/dist/types/styles/shared/paragraph.d.ts +0 -1
  133. package/dist/types/styles/shared/rule.d.ts +0 -1
  134. package/dist/types/styles/shared/shadow.d.ts +0 -15
  135. package/dist/types/styles/shared/text-color.d.ts +0 -2
  136. package/dist/types/styles/shared/whitespace.d.ts +0 -2
  137. package/dist/types-ts4.5/styles/shared/background-color.d.ts +0 -1
  138. package/dist/types-ts4.5/styles/shared/block-marks.d.ts +0 -2
  139. package/dist/types-ts4.5/styles/shared/code-mark.d.ts +0 -1
  140. package/dist/types-ts4.5/styles/shared/column-layout.d.ts +0 -4
  141. package/dist/types-ts4.5/styles/shared/embedCard.d.ts +0 -3
  142. package/dist/types-ts4.5/styles/shared/indentation.d.ts +0 -2
  143. package/dist/types-ts4.5/styles/shared/link.d.ts +0 -2
  144. package/dist/types-ts4.5/styles/shared/paragraph.d.ts +0 -1
  145. package/dist/types-ts4.5/styles/shared/rule.d.ts +0 -1
  146. package/dist/types-ts4.5/styles/shared/shadow.d.ts +0 -15
  147. package/dist/types-ts4.5/styles/shared/text-color.d.ts +0 -2
  148. package/dist/types-ts4.5/styles/shared/whitespace.d.ts +0 -2
@@ -1,14 +1,4 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject;
3
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
- import { css } from '@emotion/react';
5
- import { akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
6
1
  export var UnsupportedSharedCssClassName = {
7
2
  BLOCK_CONTAINER: 'unsupportedBlockView-content-wrap',
8
3
  INLINE_CONTAINER: 'unsupportedInlineView-content-wrap'
9
- };
10
- var inlineUnsupportedSelector = ".".concat(UnsupportedSharedCssClassName.INLINE_CONTAINER, " > span:nth-of-type(2)");
11
- var blockUnsupportedSelector = ".".concat(UnsupportedSharedCssClassName.BLOCK_CONTAINER, " > div");
12
-
13
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
14
- export var unsupportedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t", ", ", " {\n\t\tcursor: pointer;\n\t}\n\n\t.", "", ",\n\t\t.", "", " {\n\t\t", "\n\t}\n\n\t.danger {\n\t\t.", "", ",\n\t\t\t.", "", " {\n\t\t\tborder: ", "px solid\n\t\t\t\t", ";\n\t\t\tbackground-color: ", ";\n\t\t}\n\t}\n"])), blockUnsupportedSelector, inlineUnsupportedSelector, akEditorSelectedNodeClassName, blockUnsupportedSelector, akEditorSelectedNodeClassName, inlineUnsupportedSelector, getSelectionStyles([SelectionStyle.Background, SelectionStyle.Border]), akEditorSelectedNodeClassName, blockUnsupportedSelector, akEditorSelectedNodeClassName, inlineUnsupportedSelector, akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-blanket-danger, ".concat(akEditorDeleteBackgroundWithOpacity, ")"));
4
+ };
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "110.8.0";
24
+ var packageVersion = "110.9.2";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -1,96 +1 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject;
3
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
- import { css } from '@emotion/react';
5
- import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
- var BORDER_RADIUS = "var(--ds-radius-small, 4px)";
8
- var EXPAND_COLLAPSED_BACKGROUND = "var(--ds-background-neutral-subtle, transparent)";
9
- var EXPAND_SELECTED_BACKGROUND = "var(--ds-surface, rgba(255, 255, 255, 0.6))";
10
- var EXPAND_FOCUSED_BORDER_COLOR = "var(--ds-border-focused, #388BFF)";
11
- var EXPAND_COLLAPSED_BORDER_COLOR = 'transparent';
12
- var EXPAND_EXPANDED_BORDER_COLOR = "var(--ds-border, #091E4224)";
13
- export var EXPAND_CONTAINER_PADDING = 8;
14
- var containerStyles = function containerStyles(styleProps) {
15
- var expanded = styleProps.expanded,
16
- focused = styleProps.focused;
17
- var marginTop = "var(--ds-space-050, 0.25rem)";
18
- var marginBottom = 0;
19
- // Only only these margins if the expand isn't editable
20
- // and is the root level expand.
21
- var marginHorizontal = styleProps['data-node-type'] === 'expand' ? "-".concat(akLayoutGutterOffset, "px") : 0;
22
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
23
- var margin = "".concat(marginTop, " ").concat(marginHorizontal, " ").concat(marginBottom);
24
- return function () {
25
- return css({
26
- borderWidth: "var(--ds-border-width, 1px)",
27
- borderStyle: 'solid',
28
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
29
- borderColor: focused ? EXPAND_FOCUSED_BORDER_COLOR : expanded ? EXPAND_EXPANDED_BORDER_COLOR : EXPAND_COLLAPSED_BORDER_COLOR,
30
- borderRadius: BORDER_RADIUS,
31
- minHeight: '25px',
32
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
33
- background: !expanded ? EXPAND_COLLAPSED_BACKGROUND : EXPAND_SELECTED_BACKGROUND,
34
- margin: margin,
35
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
36
- transition: "background 0.3s ".concat(akEditorSwoopCubicBezier, ", border-color 0.3s ").concat(akEditorSwoopCubicBezier),
37
- padding: "var(--ds-space-100, ".concat("".concat(EXPAND_CONTAINER_PADDING, "px"), ")"),
38
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
39
- 'td > :not(style):first-child, td > style:first-child + *': {
40
- marginTop: 0
41
- }
42
- });
43
- };
44
- };
45
- var contentStyles = function contentStyles(styleProps) {
46
- return function () {
47
- return (// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
48
- css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\tpadding-top: ", ";\n\t\tpadding-right: ", ";\n\t\tpadding-left: ", ";\n\t\tmargin-left: ", ";\n\t\tdisplay: flow-root;\n\n\t\t/* The follow rules inside @supports block are added as a part of ED-8893\n\t\tThe fix is targeting mobile bridge on iOS 12 or below,\n\t\tWe should consider remove this fix when we no longer support iOS 12 */\n\t\t@supports not (display: flow-root) {\n\t\t\twidth: 100%;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\n\t\t", "\n\t"])), styleProps.expanded ? "var(--ds-space-100, 8px)" : "var(--ds-space-0, 0px)", "var(--ds-space-100, 8px)", "var(--ds-space-300, 24px)", "var(--ds-space-050, 4px)", !styleProps.expanded ? "\n .expand-content-wrapper, .nestedExpand-content-wrapper {\n /* We visually hide the content here to preserve the content during copy+paste */\n /* Do not add text nowrap here because inline comment navigation depends on the location of the text */\n width: 100%;\n display: block;\n height: 0;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n user-select: none;\n }\n " : '')
49
- );
50
- };
51
- };
52
- var titleInputStyles = function titleInputStyles() {
53
- return css({
54
- outline: 'none',
55
- border: 'none',
56
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
57
- fontSize: relativeFontSizeToBase16(14),
58
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
59
- lineHeight: fg('platform-visual-refresh-icons') ? 1 : akEditorLineHeight,
60
- fontWeight: "var(--ds-font-weight-regular, 400)",
61
- color: "var(--ds-text-subtlest, #626F86)",
62
- background: 'transparent',
63
- display: 'flex',
64
- flex: 1,
65
- padding: "0 0 0 ".concat("var(--ds-space-050, 4px)"),
66
- width: '100%',
67
- '&::placeholder': {
68
- opacity: 1,
69
- color: "var(--ds-text-subtlest, #626F86)"
70
- }
71
- });
72
- };
73
- var titleContainerStyles = function titleContainerStyles() {
74
- return css({
75
- padding: 0,
76
- display: 'flex',
77
- alignItems: 'flex-start',
78
- background: 'none',
79
- border: 'none',
80
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
81
- fontSize: relativeFontSizeToBase16(14),
82
- width: '100%',
83
- color: "var(--ds-text-subtle, #44546F)",
84
- overflow: 'hidden',
85
- cursor: 'pointer',
86
- '&:focus': {
87
- outline: 0
88
- }
89
- });
90
- };
91
- export var sharedExpandStyles = {
92
- titleInputStyles: titleInputStyles,
93
- titleContainerStyles: titleContainerStyles,
94
- containerStyles: containerStyles,
95
- contentStyles: contentStyles
96
- };
1
+ export var EXPAND_CONTAINER_PADDING = 8;
@@ -18,7 +18,6 @@ export { default as overflowShadow, shadowClassNames } from './OverflowShadow';
18
18
  export { shadowObserverClassNames, ShadowObserver } from './OverflowShadow/shadowObserver';
19
19
  export { WithCreateAnalyticsEvent } from './WithCreateAnalyticsEvent';
20
20
  export { messages as expandMessages, ExpandIconWrapper, expandLayoutWrapperStyle, ExpandLayoutWrapperWithRef } from './Expand';
21
- export { sharedExpandStyles } from './Expand/sharedStyles';
22
21
  export { ErrorMessage, HelperMessage, ValidMessage } from './Messages';
23
22
  export { clearNextSiblingMarginTopStyle, clearNextSiblingBlockMarkMarginTopStyle } from './clear-next-sibling-margin-top';
24
23
  export { IntlErrorBoundary, REACT_INTL_ERROR_MESSAGE } from './IntlErrorBoundary';
@@ -59,4 +59,9 @@ export declare const messages: {
59
59
  defaultMessage: string;
60
60
  description: string;
61
61
  };
62
+ convertToSyncedBlock: {
63
+ id: string;
64
+ defaultMessage: string;
65
+ description: string;
66
+ };
62
67
  };
@@ -1 +1 @@
1
- export { getPanelTypeBackground, getPanelTypeBackgroundNoTokens, darkPanelColors, panelSharedStyles, panelSharedStylesWithoutPrefix, PanelSharedCssClassName, PanelSharedSelectors, } from './styles/shared/panel';
1
+ export { getPanelTypeBackground, getPanelTypeBackgroundNoTokens, darkPanelColors, PanelSharedCssClassName, PanelSharedSelectors, } from './styles/shared/panel';
@@ -1,36 +1,24 @@
1
- export { textColorStyles } from './shared/text-color';
2
- export { backgroundColorStyles } from './shared/background-color';
3
1
  export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl, tableControlsSpacing, tablePadding, } from './shared/table';
4
- export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, } from './shared/annotation';
5
- export { columnLayoutSharedStyle, columnLayoutResponsiveSharedStyle, columnLayoutResponsiveRendererStyles, } from './shared/column-layout';
2
+ export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames } from './shared/annotation';
6
3
  export { mediaSingleSharedStyle, mediaSingleSharedStyleNew, richMediaClassName, } from './shared/media-single';
7
4
  export { blockquoteSharedStyles } from './shared/blockquote';
8
5
  export { headingsSharedStyles } from './shared/headings';
9
- export { ruleSharedStyles } from './shared/rule';
10
- export { whitespaceSharedStyles } from './shared/whitespace';
11
- export { paragraphSharedStyles } from './shared/paragraph';
12
- export { linkSharedStyle } from './shared/link';
13
- export { listsSharedStyles, listItemCounterPadding, getOrderedListInlineStyles, } from './shared/lists';
14
- export { indentationSharedStyles } from './shared/indentation';
15
- export { blockMarksSharedStyles } from './shared/block-marks';
16
- export { codeMarkSharedStyles } from './shared/code-mark';
17
- export { shadowSharedStyle } from './shared/shadow';
18
- export { dateSharedStyle, DateSharedCssClassName } from './shared/date';
19
- export { tasksAndDecisionsStyles, TaskDecisionSharedCssClassName } from './shared/task-decision';
6
+ export { listItemCounterPadding, getOrderedListInlineStyles } from './shared/lists';
7
+ export { DateSharedCssClassName } from './shared/date';
8
+ export { TaskDecisionSharedCssClassName } from './shared/task-decision';
20
9
  export { StatusSharedCssClassName } from './shared/status';
21
- export { getSmartCardSharedStyles, smartCardSharedStyles, SmartCardSharedCssClassName, } from './shared/smart-card';
10
+ export { SmartCardSharedCssClassName } from './shared/smart-card';
22
11
  export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
23
- export { CodeBlockSharedCssClassName, codeBlockSharedStyles, codeBlockInListSafariFix, } from './shared/code-block';
12
+ export { CodeBlockSharedCssClassName } from './shared/code-block';
24
13
  export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING, DEFAULT_TWO_COLUMN_LAYOUT_COLUMN_WIDTH, } from './shared/layout';
25
14
  export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
26
- export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, pragmaticResizerStyles, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip, pragmaticResizerStylesWithReducedEditorGutter, } from './shared/resizer';
27
- export { gridStyles, GRID_GUTTER } from './shared/grid';
28
- export { smartCardStyles, FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME, } from './shared/smartCard';
29
- export { embedCardStyles, embedSpacingStyles } from './shared/embedCard';
15
+ export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, } from './shared/resizer';
16
+ export { GRID_GUTTER } from './shared/grid';
17
+ export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME, } from './shared/smartCard';
30
18
  export { buttonGroupStyle, buttonGroupStyleBeforeVisualRefresh, disableBlueBorderStyles, separatorStyles, wrapperStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding, } from './shared/plugins';
31
- export { UnsupportedSharedCssClassName, unsupportedStyles } from './shared/unsupported-content';
19
+ export { UnsupportedSharedCssClassName } from './shared/unsupported-content';
32
20
  export { expandIconWrapperStyle, expandClassNames, expandIconContainerStyle, } from './shared/expand';
33
- export { sharedExpandStyles, EXPAND_CONTAINER_PADDING } from '../ui/Expand/sharedStyles';
21
+ export { EXPAND_CONTAINER_PADDING } from '../ui/Expand/sharedStyles';
34
22
  export { ClassNames as MediaSharedClassNames } from './shared/media';
35
23
  export { BreakoutCssClassName } from './shared/breakout';
36
24
  export { BODIED_EXT_MBE_MARGIN_TOP } from './shared/extension';
@@ -11,33 +11,3 @@ export declare const BlockAnnotationSharedClassNames: {
11
11
  blur: string;
12
12
  draft: string;
13
13
  };
14
- export declare const AnnotationSharedCSSByState: () => {
15
- common: {
16
- borderBottom: string;
17
- cursor: string;
18
- padding: string;
19
- '&:has(.card), &:has([data-inline-card])': {
20
- padding: string;
21
- paddingTop?: undefined;
22
- border?: undefined;
23
- boxShadow?: undefined;
24
- } | {
25
- paddingTop: string;
26
- border: string;
27
- boxShadow: string;
28
- padding?: undefined;
29
- };
30
- '&:has(.date-lozenger-container)': {
31
- paddingTop: string;
32
- };
33
- };
34
- focus: import("@emotion/react").SerializedStyles;
35
- blur: import("@emotion/react").SerializedStyles;
36
- hover: import("@emotion/react").SerializedStyles;
37
- } | {
38
- focus: import("@emotion/react").SerializedStyles;
39
- blur: import("@emotion/react").SerializedStyles;
40
- common?: undefined;
41
- hover?: undefined;
42
- };
43
- export declare const annotationSharedStyles: () => import("@emotion/react").SerializedStyles;
@@ -1,4 +1,3 @@
1
- import { type SerializedStyles } from '@emotion/react';
2
1
  export declare const CodeBlockSharedCssClassName: {
3
2
  CODEBLOCK_CONTAINER: string;
4
3
  CODEBLOCK_START: string;
@@ -10,5 +9,3 @@ export declare const CodeBlockSharedCssClassName: {
10
9
  CODEBLOCK_CONTENT_WRAPPED: string;
11
10
  CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET: string;
12
11
  };
13
- export declare const codeBlockSharedStyles: () => SerializedStyles;
14
- export declare const codeBlockInListSafariFix: SerializedStyles;
@@ -1,6 +1,4 @@
1
- import { type SerializedStyles } from '@emotion/react';
2
1
  export declare const DateSharedCssClassName: {
3
2
  DATE_WRAPPER: string;
4
3
  DATE_CONTAINER: string;
5
4
  };
6
- export declare const dateSharedStyle: SerializedStyles;
@@ -1,3 +1 @@
1
- import { type SerializedStyles } from '@emotion/react';
2
1
  export declare const GRID_GUTTER = 12;
3
- export declare const gridStyles: SerializedStyles;
@@ -1,5 +1,3 @@
1
- import { type SerializedStyles } from '@emotion/react';
2
1
  export declare const listItemCounterPadding = 24;
3
2
  export declare function getOrderedListInlineStyles(itemCounterDigitsSize: number, styleFormat: 'string'): string;
4
3
  export declare function getOrderedListInlineStyles(itemCounterDigitsSize: number, styleFormat: 'object'): Record<string, any>;
5
- export declare const listsSharedStyles: SerializedStyles;
@@ -79,5 +79,3 @@ export declare const PanelSharedSelectors: {
79
79
  };
80
80
  export declare const getPanelTypeBackgroundNoTokens: (panelType: Exclude<PanelType, PanelType.CUSTOM>) => string;
81
81
  export declare const getPanelTypeBackground: (panelType: Exclude<PanelType, PanelType.CUSTOM>) => string;
82
- export declare const panelSharedStylesWithoutPrefix: () => import("@emotion/react").SerializedStyles;
83
- export declare const panelSharedStyles: () => import("@emotion/react").SerializedStyles;
@@ -10,7 +10,3 @@ export declare const handleWrapperClass = "resizer-handle-wrapper";
10
10
  export declare const resizerHandleThumbWidth = 3;
11
11
  export declare const resizerHandleZIndex = 1;
12
12
  export declare const resizerStyles: SerializedStyles;
13
- export declare const pragmaticResizerStylesForTooltip: () => SerializedStyles | undefined;
14
- export declare const pragmaticStylesLayoutFirstNodeResizeHandleFix: () => SerializedStyles | undefined;
15
- export declare const pragmaticResizerStyles: () => SerializedStyles | undefined;
16
- export declare const pragmaticResizerStylesWithReducedEditorGutter: () => SerializedStyles | undefined;
@@ -5,5 +5,3 @@ export declare const SmartCardSharedCssClassName: {
5
5
  DATASOURCE_CONTAINER: string;
6
6
  LOADER_WRAPPER: string;
7
7
  };
8
- export declare const smartCardSharedStyles: string;
9
- export declare const getSmartCardSharedStyles: () => string;
@@ -1,3 +1,2 @@
1
1
  export declare const DATASOURCE_INNER_CONTAINER_CLASSNAME = "datasourceView-content-inner-wrap";
2
2
  export declare const FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = "card-floating-toolbar--link-picker";
3
- export declare const smartCardStyles: () => import("@emotion/react").SerializedStyles;
@@ -1,8 +1,6 @@
1
- import { type SerializedStyles } from '@emotion/react';
2
1
  export declare const TaskDecisionSharedCssClassName: {
3
2
  DECISION_CONTAINER: string;
4
3
  TASK_CONTAINER: string;
5
4
  TASK_ITEM: string;
6
5
  TASK_CHECKBOX_CONTAINER: string;
7
6
  };
8
- export declare const tasksAndDecisionsStyles: SerializedStyles;
@@ -1,6 +1,4 @@
1
- import { type SerializedStyles } from '@emotion/react';
2
1
  export declare const UnsupportedSharedCssClassName: {
3
2
  BLOCK_CONTAINER: string;
4
3
  INLINE_CONTAINER: string;
5
4
  };
6
- export declare const unsupportedStyles: SerializedStyles;
@@ -5,9 +5,3 @@ export interface StyleProps {
5
5
  expanded?: boolean;
6
6
  focused?: boolean;
7
7
  }
8
- export declare const sharedExpandStyles: {
9
- titleInputStyles: () => import("@emotion/react").SerializedStyles;
10
- titleContainerStyles: () => import("@emotion/react").SerializedStyles;
11
- containerStyles: (styleProps: StyleProps) => () => import("@emotion/react").SerializedStyles;
12
- contentStyles: (styleProps: StyleProps) => () => import("@emotion/react").SerializedStyles;
13
- };
@@ -24,8 +24,6 @@ export type { OverflowShadowOptions, OverflowShadowProps, OverflowShadowState, }
24
24
  export { shadowObserverClassNames, ShadowObserver } from './OverflowShadow/shadowObserver';
25
25
  export { WithCreateAnalyticsEvent } from './WithCreateAnalyticsEvent';
26
26
  export { messages as expandMessages, ExpandIconWrapper, expandLayoutWrapperStyle, ExpandLayoutWrapperWithRef, } from './Expand';
27
- export { sharedExpandStyles } from './Expand/sharedStyles';
28
- export type { StyleProps as ExpandStyleProps } from './Expand/sharedStyles';
29
27
  export { ErrorMessage, HelperMessage, ValidMessage } from './Messages';
30
28
  export { clearNextSiblingMarginTopStyle, clearNextSiblingBlockMarkMarginTopStyle, } from './clear-next-sibling-margin-top';
31
29
  export { IntlErrorBoundary, REACT_INTL_ERROR_MESSAGE } from './IntlErrorBoundary';
@@ -59,4 +59,9 @@ export declare const messages: {
59
59
  defaultMessage: string;
60
60
  description: string;
61
61
  };
62
+ convertToSyncedBlock: {
63
+ id: string;
64
+ defaultMessage: string;
65
+ description: string;
66
+ };
62
67
  };
@@ -1 +1 @@
1
- export { getPanelTypeBackground, getPanelTypeBackgroundNoTokens, darkPanelColors, panelSharedStyles, panelSharedStylesWithoutPrefix, PanelSharedCssClassName, PanelSharedSelectors, } from './styles/shared/panel';
1
+ export { getPanelTypeBackground, getPanelTypeBackgroundNoTokens, darkPanelColors, PanelSharedCssClassName, PanelSharedSelectors, } from './styles/shared/panel';
@@ -1,36 +1,24 @@
1
- export { textColorStyles } from './shared/text-color';
2
- export { backgroundColorStyles } from './shared/background-color';
3
1
  export { tableSharedStyle, tableMarginTop, tableMarginBottom, tableMarginSides, tableCellMinWidth, tableNewColumnMinWidth, tableCellBorderWidth, calcTableWidth, TableSharedCssClassName, tableResizeHandleWidth, tableCellPadding, tableMarginTopWithControl, tableControlsSpacing, tablePadding, } from './shared/table';
4
- export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames, AnnotationSharedCSSByState, annotationSharedStyles, } from './shared/annotation';
5
- export { columnLayoutSharedStyle, columnLayoutResponsiveSharedStyle, columnLayoutResponsiveRendererStyles, } from './shared/column-layout';
2
+ export { AnnotationSharedClassNames, BlockAnnotationSharedClassNames } from './shared/annotation';
6
3
  export { mediaSingleSharedStyle, mediaSingleSharedStyleNew, richMediaClassName, } from './shared/media-single';
7
4
  export { blockquoteSharedStyles } from './shared/blockquote';
8
5
  export { headingsSharedStyles } from './shared/headings';
9
- export { ruleSharedStyles } from './shared/rule';
10
- export { whitespaceSharedStyles } from './shared/whitespace';
11
- export { paragraphSharedStyles } from './shared/paragraph';
12
- export { linkSharedStyle } from './shared/link';
13
- export { listsSharedStyles, listItemCounterPadding, getOrderedListInlineStyles, } from './shared/lists';
14
- export { indentationSharedStyles } from './shared/indentation';
15
- export { blockMarksSharedStyles } from './shared/block-marks';
16
- export { codeMarkSharedStyles } from './shared/code-mark';
17
- export { shadowSharedStyle } from './shared/shadow';
18
- export { dateSharedStyle, DateSharedCssClassName } from './shared/date';
19
- export { tasksAndDecisionsStyles, TaskDecisionSharedCssClassName } from './shared/task-decision';
6
+ export { listItemCounterPadding, getOrderedListInlineStyles } from './shared/lists';
7
+ export { DateSharedCssClassName } from './shared/date';
8
+ export { TaskDecisionSharedCssClassName } from './shared/task-decision';
20
9
  export { StatusSharedCssClassName } from './shared/status';
21
- export { getSmartCardSharedStyles, smartCardSharedStyles, SmartCardSharedCssClassName, } from './shared/smart-card';
10
+ export { SmartCardSharedCssClassName } from './shared/smart-card';
22
11
  export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
23
- export { CodeBlockSharedCssClassName, codeBlockSharedStyles, codeBlockInListSafariFix, } from './shared/code-block';
12
+ export { CodeBlockSharedCssClassName } from './shared/code-block';
24
13
  export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING, DEFAULT_TWO_COLUMN_LAYOUT_COLUMN_WIDTH, } from './shared/layout';
25
14
  export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
26
- export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, pragmaticResizerStyles, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip, pragmaticResizerStylesWithReducedEditorGutter, } from './shared/resizer';
27
- export { gridStyles, GRID_GUTTER } from './shared/grid';
28
- export { smartCardStyles, FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME, } from './shared/smartCard';
29
- export { embedCardStyles, embedSpacingStyles } from './shared/embedCard';
15
+ export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, } from './shared/resizer';
16
+ export { GRID_GUTTER } from './shared/grid';
17
+ export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME, } from './shared/smartCard';
30
18
  export { buttonGroupStyle, buttonGroupStyleBeforeVisualRefresh, disableBlueBorderStyles, separatorStyles, wrapperStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding, } from './shared/plugins';
31
- export { UnsupportedSharedCssClassName, unsupportedStyles } from './shared/unsupported-content';
19
+ export { UnsupportedSharedCssClassName } from './shared/unsupported-content';
32
20
  export { expandIconWrapperStyle, expandClassNames, expandIconContainerStyle, } from './shared/expand';
33
- export { sharedExpandStyles, EXPAND_CONTAINER_PADDING } from '../ui/Expand/sharedStyles';
21
+ export { EXPAND_CONTAINER_PADDING } from '../ui/Expand/sharedStyles';
34
22
  export { ClassNames as MediaSharedClassNames } from './shared/media';
35
23
  export { BreakoutCssClassName } from './shared/breakout';
36
24
  export { BODIED_EXT_MBE_MARGIN_TOP } from './shared/extension';
@@ -11,33 +11,3 @@ export declare const BlockAnnotationSharedClassNames: {
11
11
  blur: string;
12
12
  draft: string;
13
13
  };
14
- export declare const AnnotationSharedCSSByState: () => {
15
- common: {
16
- borderBottom: string;
17
- cursor: string;
18
- padding: string;
19
- '&:has(.card), &:has([data-inline-card])': {
20
- padding: string;
21
- paddingTop?: undefined;
22
- border?: undefined;
23
- boxShadow?: undefined;
24
- } | {
25
- paddingTop: string;
26
- border: string;
27
- boxShadow: string;
28
- padding?: undefined;
29
- };
30
- '&:has(.date-lozenger-container)': {
31
- paddingTop: string;
32
- };
33
- };
34
- focus: import("@emotion/react").SerializedStyles;
35
- blur: import("@emotion/react").SerializedStyles;
36
- hover: import("@emotion/react").SerializedStyles;
37
- } | {
38
- focus: import("@emotion/react").SerializedStyles;
39
- blur: import("@emotion/react").SerializedStyles;
40
- common?: undefined;
41
- hover?: undefined;
42
- };
43
- export declare const annotationSharedStyles: () => import("@emotion/react").SerializedStyles;
@@ -1,4 +1,3 @@
1
- import { type SerializedStyles } from '@emotion/react';
2
1
  export declare const CodeBlockSharedCssClassName: {
3
2
  CODEBLOCK_CONTAINER: string;
4
3
  CODEBLOCK_START: string;
@@ -10,5 +9,3 @@ export declare const CodeBlockSharedCssClassName: {
10
9
  CODEBLOCK_CONTENT_WRAPPED: string;
11
10
  CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET: string;
12
11
  };
13
- export declare const codeBlockSharedStyles: () => SerializedStyles;
14
- export declare const codeBlockInListSafariFix: SerializedStyles;
@@ -1,6 +1,4 @@
1
- import { type SerializedStyles } from '@emotion/react';
2
1
  export declare const DateSharedCssClassName: {
3
2
  DATE_WRAPPER: string;
4
3
  DATE_CONTAINER: string;
5
4
  };
6
- export declare const dateSharedStyle: SerializedStyles;
@@ -1,3 +1 @@
1
- import { type SerializedStyles } from '@emotion/react';
2
1
  export declare const GRID_GUTTER = 12;
3
- export declare const gridStyles: SerializedStyles;
@@ -1,5 +1,3 @@
1
- import { type SerializedStyles } from '@emotion/react';
2
1
  export declare const listItemCounterPadding = 24;
3
2
  export declare function getOrderedListInlineStyles(itemCounterDigitsSize: number, styleFormat: 'string'): string;
4
3
  export declare function getOrderedListInlineStyles(itemCounterDigitsSize: number, styleFormat: 'object'): Record<string, any>;
5
- export declare const listsSharedStyles: SerializedStyles;
@@ -79,5 +79,3 @@ export declare const PanelSharedSelectors: {
79
79
  };
80
80
  export declare const getPanelTypeBackgroundNoTokens: (panelType: Exclude<PanelType, PanelType.CUSTOM>) => string;
81
81
  export declare const getPanelTypeBackground: (panelType: Exclude<PanelType, PanelType.CUSTOM>) => string;
82
- export declare const panelSharedStylesWithoutPrefix: () => import("@emotion/react").SerializedStyles;
83
- export declare const panelSharedStyles: () => import("@emotion/react").SerializedStyles;
@@ -10,7 +10,3 @@ export declare const handleWrapperClass = "resizer-handle-wrapper";
10
10
  export declare const resizerHandleThumbWidth = 3;
11
11
  export declare const resizerHandleZIndex = 1;
12
12
  export declare const resizerStyles: SerializedStyles;
13
- export declare const pragmaticResizerStylesForTooltip: () => SerializedStyles | undefined;
14
- export declare const pragmaticStylesLayoutFirstNodeResizeHandleFix: () => SerializedStyles | undefined;
15
- export declare const pragmaticResizerStyles: () => SerializedStyles | undefined;
16
- export declare const pragmaticResizerStylesWithReducedEditorGutter: () => SerializedStyles | undefined;
@@ -5,5 +5,3 @@ export declare const SmartCardSharedCssClassName: {
5
5
  DATASOURCE_CONTAINER: string;
6
6
  LOADER_WRAPPER: string;
7
7
  };
8
- export declare const smartCardSharedStyles: string;
9
- export declare const getSmartCardSharedStyles: () => string;
@@ -1,3 +1,2 @@
1
1
  export declare const DATASOURCE_INNER_CONTAINER_CLASSNAME = "datasourceView-content-inner-wrap";
2
2
  export declare const FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = "card-floating-toolbar--link-picker";
3
- export declare const smartCardStyles: () => import("@emotion/react").SerializedStyles;
@@ -1,8 +1,6 @@
1
- import { type SerializedStyles } from '@emotion/react';
2
1
  export declare const TaskDecisionSharedCssClassName: {
3
2
  DECISION_CONTAINER: string;
4
3
  TASK_CONTAINER: string;
5
4
  TASK_ITEM: string;
6
5
  TASK_CHECKBOX_CONTAINER: string;
7
6
  };
8
- export declare const tasksAndDecisionsStyles: SerializedStyles;
@@ -1,6 +1,4 @@
1
- import { type SerializedStyles } from '@emotion/react';
2
1
  export declare const UnsupportedSharedCssClassName: {
3
2
  BLOCK_CONTAINER: string;
4
3
  INLINE_CONTAINER: string;
5
4
  };
6
- export declare const unsupportedStyles: SerializedStyles;
@@ -5,9 +5,3 @@ export interface StyleProps {
5
5
  expanded?: boolean;
6
6
  focused?: boolean;
7
7
  }
8
- export declare const sharedExpandStyles: {
9
- titleInputStyles: () => import("@emotion/react").SerializedStyles;
10
- titleContainerStyles: () => import("@emotion/react").SerializedStyles;
11
- containerStyles: (styleProps: StyleProps) => () => import("@emotion/react").SerializedStyles;
12
- contentStyles: (styleProps: StyleProps) => () => import("@emotion/react").SerializedStyles;
13
- };
@@ -24,8 +24,6 @@ export type { OverflowShadowOptions, OverflowShadowProps, OverflowShadowState, }
24
24
  export { shadowObserverClassNames, ShadowObserver } from './OverflowShadow/shadowObserver';
25
25
  export { WithCreateAnalyticsEvent } from './WithCreateAnalyticsEvent';
26
26
  export { messages as expandMessages, ExpandIconWrapper, expandLayoutWrapperStyle, ExpandLayoutWrapperWithRef, } from './Expand';
27
- export { sharedExpandStyles } from './Expand/sharedStyles';
28
- export type { StyleProps as ExpandStyleProps } from './Expand/sharedStyles';
29
27
  export { ErrorMessage, HelperMessage, ValidMessage } from './Messages';
30
28
  export { clearNextSiblingMarginTopStyle, clearNextSiblingBlockMarkMarginTopStyle, } from './clear-next-sibling-margin-top';
31
29
  export { IntlErrorBoundary, REACT_INTL_ERROR_MESSAGE } from './IntlErrorBoundary';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "110.9.0",
3
+ "version": "110.9.2",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -74,7 +74,7 @@
74
74
  "@atlaskit/profilecard": "^24.18.0",
75
75
  "@atlaskit/react-ufo": "^4.11.0",
76
76
  "@atlaskit/section-message": "^8.7.0",
77
- "@atlaskit/smart-card": "^43.0.0",
77
+ "@atlaskit/smart-card": "^43.1.0",
78
78
  "@atlaskit/smart-user-picker": "^8.3.0",
79
79
  "@atlaskit/spinner": "^19.0.0",
80
80
  "@atlaskit/status": "^3.0.0",
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.backgroundColorStyles = void 0;
7
- var _react = require("@emotion/react");
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
-
10
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
11
- var backgroundColorStyles = exports.backgroundColorStyles = function backgroundColorStyles() {
12
- return (0, _react.css)({
13
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
14
- '.fabric-background-color-mark': {
15
- backgroundColor: 'var(--custom-palette-color, inherit)',
16
- borderRadius: "var(--ds-radius-xsmall, 2px)",
17
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
18
- paddingTop: '1px',
19
- paddingBottom: "var(--ds-space-025, 2px)",
20
- boxDecorationBreak: 'clone'
21
- },
22
- // Don't show text highlight styling when there is a hyperlink
23
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
24
- 'a .fabric-background-color-mark': {
25
- backgroundColor: 'unset'
26
- },
27
- // Don't show text highlight styling when there is an inline comment
28
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
29
- '.fabric-background-color-mark .ak-editor-annotation': {
30
- backgroundColor: 'unset'
31
- }
32
- });
33
- };
@@ -1,14 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.blockMarksSharedStyles = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
- var _react = require("@emotion/react");
10
- var _templateObject;
11
- /* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Perfectly safe to auto-fix, but leaving it up to the team to remediate as the readability only gets worse with autofixing */
12
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
14
- var blockMarksSharedStyles = exports.blockMarksSharedStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t/**\n * We need to remove margin-top from first item\n * inside doc, tableCell, tableHeader, blockquote, etc.\n */\n\t*:not(.fabric-editor-block-mark) >,\n /* For nested block marks apart from those with indentation mark */\n *:not(.fabric-editor-block-mark) >\n div.fabric-editor-block-mark:first-of-type\n /* Do not remove the margin top for nodes inside indentation marks */\n :not(.fabric-editor-indentation-mark)\n /* Do not remove the margin top for nodes inside alignment marks */\n :not(.fabric-editor-alignment),\n /* If first element inside a block node has alignment mark, then remove the margin-top */\n .fabric-editor-alignment:first-of-type:first-child,\n /* If first document element has indentation mark remove margin-top */\n .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child {\n\t\tp,\n\t\th1,\n\t\th2,\n\t\th3,\n\t\th4,\n\t\th5,\n\t\th6,\n\t\t.heading-wrapper {\n\t\t\t:first-child:not(style),\n\t\t\tstyle:first-child + * {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\t}\n"])));