@atlaskit/editor-common 110.8.0 → 110.9.1

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 (165) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/cjs/element-browser/components/StatelessElementBrowser.js +1 -1
  3. package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
  4. package/dist/cjs/media-inline/inline-image-wrapper.js +1 -1
  5. package/dist/cjs/monitoring/error.js +1 -1
  6. package/dist/cjs/panel.js +0 -12
  7. package/dist/cjs/styles/index.js +0 -204
  8. package/dist/cjs/styles/shared/annotation.js +1 -68
  9. package/dist/cjs/styles/shared/code-block.js +2 -17
  10. package/dist/cjs/styles/shared/date.js +2 -12
  11. package/dist/cjs/styles/shared/grid.js +2 -41
  12. package/dist/cjs/styles/shared/lists.js +2 -10
  13. package/dist/cjs/styles/shared/panel.js +1 -39
  14. package/dist/cjs/styles/shared/resizer.js +2 -202
  15. package/dist/cjs/styles/shared/smart-card.js +1 -6
  16. package/dist/cjs/styles/shared/smartCard.js +2 -16
  17. package/dist/cjs/styles/shared/task-decision.js +2 -12
  18. package/dist/cjs/styles/shared/unsupported-content.js +2 -12
  19. package/dist/cjs/transforms/index.js +8 -1
  20. package/dist/cjs/transforms/sync-block.js +25 -0
  21. package/dist/cjs/ui/DropList/index.js +1 -1
  22. package/dist/cjs/ui/Expand/sharedStyles.js +2 -97
  23. package/dist/cjs/ui/index.js +0 -7
  24. package/dist/cjs/utils/compareNodes.js +6 -0
  25. package/dist/es2019/element-browser/components/StatelessElementBrowser.js +1 -1
  26. package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
  27. package/dist/es2019/media-inline/inline-image-wrapper.js +1 -1
  28. package/dist/es2019/monitoring/error.js +1 -1
  29. package/dist/es2019/panel.js +1 -1
  30. package/dist/es2019/styles/index.js +11 -23
  31. package/dist/es2019/styles/shared/annotation.js +1 -106
  32. package/dist/es2019/styles/shared/code-block.js +1 -164
  33. package/dist/es2019/styles/shared/date.js +1 -11
  34. package/dist/es2019/styles/shared/grid.js +1 -39
  35. package/dist/es2019/styles/shared/lists.js +1 -121
  36. package/dist/es2019/styles/shared/panel.js +1 -138
  37. package/dist/es2019/styles/shared/resizer.js +2 -211
  38. package/dist/es2019/styles/shared/smart-card.js +1 -24
  39. package/dist/es2019/styles/shared/smartCard.js +1 -151
  40. package/dist/es2019/styles/shared/task-decision.js +1 -63
  41. package/dist/es2019/styles/shared/unsupported-content.js +1 -27
  42. package/dist/es2019/transforms/index.js +2 -1
  43. package/dist/es2019/transforms/sync-block.js +15 -0
  44. package/dist/es2019/ui/DropList/index.js +1 -1
  45. package/dist/es2019/ui/Expand/sharedStyles.js +1 -113
  46. package/dist/es2019/ui/index.js +0 -1
  47. package/dist/es2019/utils/compareNodes.js +6 -0
  48. package/dist/esm/element-browser/components/StatelessElementBrowser.js +1 -1
  49. package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
  50. package/dist/esm/media-inline/inline-image-wrapper.js +1 -1
  51. package/dist/esm/monitoring/error.js +1 -1
  52. package/dist/esm/panel.js +1 -1
  53. package/dist/esm/styles/index.js +11 -23
  54. package/dist/esm/styles/shared/annotation.js +0 -67
  55. package/dist/esm/styles/shared/code-block.js +1 -15
  56. package/dist/esm/styles/shared/date.js +1 -9
  57. package/dist/esm/styles/shared/grid.js +1 -39
  58. package/dist/esm/styles/shared/lists.js +1 -10
  59. package/dist/esm/styles/shared/panel.js +0 -37
  60. package/dist/esm/styles/shared/resizer.js +2 -202
  61. package/dist/esm/styles/shared/smart-card.js +0 -5
  62. package/dist/esm/styles/shared/smartCard.js +1 -15
  63. package/dist/esm/styles/shared/task-decision.js +1 -10
  64. package/dist/esm/styles/shared/unsupported-content.js +1 -11
  65. package/dist/esm/transforms/index.js +2 -1
  66. package/dist/esm/transforms/sync-block.js +18 -0
  67. package/dist/esm/ui/DropList/index.js +1 -1
  68. package/dist/esm/ui/Expand/sharedStyles.js +1 -96
  69. package/dist/esm/ui/index.js +0 -1
  70. package/dist/esm/utils/compareNodes.js +6 -0
  71. package/dist/types/panel.d.ts +1 -1
  72. package/dist/types/styles/index.d.ts +11 -23
  73. package/dist/types/styles/shared/annotation.d.ts +0 -30
  74. package/dist/types/styles/shared/code-block.d.ts +0 -3
  75. package/dist/types/styles/shared/date.d.ts +0 -2
  76. package/dist/types/styles/shared/grid.d.ts +0 -2
  77. package/dist/types/styles/shared/lists.d.ts +0 -2
  78. package/dist/types/styles/shared/panel.d.ts +0 -2
  79. package/dist/types/styles/shared/resizer.d.ts +0 -4
  80. package/dist/types/styles/shared/smart-card.d.ts +0 -2
  81. package/dist/types/styles/shared/smartCard.d.ts +0 -1
  82. package/dist/types/styles/shared/task-decision.d.ts +0 -2
  83. package/dist/types/styles/shared/unsupported-content.d.ts +0 -2
  84. package/dist/types/transforms/index.d.ts +1 -0
  85. package/dist/types/transforms/sync-block.d.ts +2 -0
  86. package/dist/types/ui/Expand/sharedStyles.d.ts +0 -6
  87. package/dist/types/ui/index.d.ts +0 -2
  88. package/dist/types-ts4.5/panel.d.ts +1 -1
  89. package/dist/types-ts4.5/styles/index.d.ts +11 -23
  90. package/dist/types-ts4.5/styles/shared/annotation.d.ts +0 -30
  91. package/dist/types-ts4.5/styles/shared/code-block.d.ts +0 -3
  92. package/dist/types-ts4.5/styles/shared/date.d.ts +0 -2
  93. package/dist/types-ts4.5/styles/shared/grid.d.ts +0 -2
  94. package/dist/types-ts4.5/styles/shared/lists.d.ts +0 -2
  95. package/dist/types-ts4.5/styles/shared/panel.d.ts +0 -2
  96. package/dist/types-ts4.5/styles/shared/resizer.d.ts +0 -4
  97. package/dist/types-ts4.5/styles/shared/smart-card.d.ts +0 -2
  98. package/dist/types-ts4.5/styles/shared/smartCard.d.ts +0 -1
  99. package/dist/types-ts4.5/styles/shared/task-decision.d.ts +0 -2
  100. package/dist/types-ts4.5/styles/shared/unsupported-content.d.ts +0 -2
  101. package/dist/types-ts4.5/transforms/index.d.ts +1 -0
  102. package/dist/types-ts4.5/transforms/sync-block.d.ts +2 -0
  103. package/dist/types-ts4.5/ui/Expand/sharedStyles.d.ts +0 -6
  104. package/dist/types-ts4.5/ui/index.d.ts +0 -2
  105. package/package.json +5 -2
  106. package/dist/cjs/styles/shared/background-color.js +0 -33
  107. package/dist/cjs/styles/shared/block-marks.js +0 -14
  108. package/dist/cjs/styles/shared/code-mark.js +0 -32
  109. package/dist/cjs/styles/shared/column-layout.js +0 -70
  110. package/dist/cjs/styles/shared/embedCard.js +0 -42
  111. package/dist/cjs/styles/shared/indentation.js +0 -40
  112. package/dist/cjs/styles/shared/link.js +0 -24
  113. package/dist/cjs/styles/shared/paragraph.js +0 -39
  114. package/dist/cjs/styles/shared/rule.js +0 -24
  115. package/dist/cjs/styles/shared/shadow.js +0 -64
  116. package/dist/cjs/styles/shared/text-color.js +0 -20
  117. package/dist/cjs/styles/shared/whitespace.js +0 -15
  118. package/dist/es2019/styles/shared/background-color.js +0 -26
  119. package/dist/es2019/styles/shared/block-marks.js +0 -37
  120. package/dist/es2019/styles/shared/code-mark.js +0 -25
  121. package/dist/es2019/styles/shared/column-layout.js +0 -66
  122. package/dist/es2019/styles/shared/embedCard.js +0 -33
  123. package/dist/es2019/styles/shared/indentation.js +0 -34
  124. package/dist/es2019/styles/shared/link.js +0 -18
  125. package/dist/es2019/styles/shared/paragraph.js +0 -32
  126. package/dist/es2019/styles/shared/rule.js +0 -15
  127. package/dist/es2019/styles/shared/shadow.js +0 -69
  128. package/dist/es2019/styles/shared/text-color.js +0 -14
  129. package/dist/es2019/styles/shared/whitespace.js +0 -9
  130. package/dist/esm/styles/shared/background-color.js +0 -26
  131. package/dist/esm/styles/shared/block-marks.js +0 -8
  132. package/dist/esm/styles/shared/code-mark.js +0 -25
  133. package/dist/esm/styles/shared/column-layout.js +0 -63
  134. package/dist/esm/styles/shared/embedCard.js +0 -35
  135. package/dist/esm/styles/shared/indentation.js +0 -34
  136. package/dist/esm/styles/shared/link.js +0 -18
  137. package/dist/esm/styles/shared/paragraph.js +0 -32
  138. package/dist/esm/styles/shared/rule.js +0 -17
  139. package/dist/esm/styles/shared/shadow.js +0 -57
  140. package/dist/esm/styles/shared/text-color.js +0 -14
  141. package/dist/esm/styles/shared/whitespace.js +0 -9
  142. package/dist/types/styles/shared/background-color.d.ts +0 -1
  143. package/dist/types/styles/shared/block-marks.d.ts +0 -2
  144. package/dist/types/styles/shared/code-mark.d.ts +0 -1
  145. package/dist/types/styles/shared/column-layout.d.ts +0 -4
  146. package/dist/types/styles/shared/embedCard.d.ts +0 -3
  147. package/dist/types/styles/shared/indentation.d.ts +0 -2
  148. package/dist/types/styles/shared/link.d.ts +0 -2
  149. package/dist/types/styles/shared/paragraph.d.ts +0 -1
  150. package/dist/types/styles/shared/rule.d.ts +0 -1
  151. package/dist/types/styles/shared/shadow.d.ts +0 -15
  152. package/dist/types/styles/shared/text-color.d.ts +0 -2
  153. package/dist/types/styles/shared/whitespace.d.ts +0 -2
  154. package/dist/types-ts4.5/styles/shared/background-color.d.ts +0 -1
  155. package/dist/types-ts4.5/styles/shared/block-marks.d.ts +0 -2
  156. package/dist/types-ts4.5/styles/shared/code-mark.d.ts +0 -1
  157. package/dist/types-ts4.5/styles/shared/column-layout.d.ts +0 -4
  158. package/dist/types-ts4.5/styles/shared/embedCard.d.ts +0 -3
  159. package/dist/types-ts4.5/styles/shared/indentation.d.ts +0 -2
  160. package/dist/types-ts4.5/styles/shared/link.d.ts +0 -2
  161. package/dist/types-ts4.5/styles/shared/paragraph.d.ts +0 -1
  162. package/dist/types-ts4.5/styles/shared/rule.d.ts +0 -1
  163. package/dist/types-ts4.5/styles/shared/shadow.d.ts +0 -15
  164. package/dist/types-ts4.5/styles/shared/text-color.d.ts +0 -2
  165. package/dist/types-ts4.5/styles/shared/whitespace.d.ts +0 -2
@@ -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,4 +5,5 @@ export { transformSliceToJoinAdjacentCodeBlocks, transformSingleLineCodeBlockToC
5
5
  export { transformSliceToDecisionList } from './decision-list';
6
6
  export { transformListStructure, transformBetweenListTypes, transformListRecursively, transformToTaskList, transformTaskListToBlockNodes, getFormattedNode, } from './list-transforms';
7
7
  export { isBulletOrOrderedList, isTaskList, getSupportedListTypesSet, convertBlockToInlineContent, } from './list-utils';
8
+ export { transformToNewReferenceSyncBlock } from './sync-block';
8
9
  export type { TransformContext, TransformFunction } from './list-types';
@@ -0,0 +1,2 @@
1
+ import type { Schema, Slice } from '@atlaskit/editor-prosemirror/model';
2
+ export declare const transformToNewReferenceSyncBlock: (slice: Slice, schema: Schema) => Slice;
@@ -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';
@@ -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,4 +5,5 @@ export { transformSliceToJoinAdjacentCodeBlocks, transformSingleLineCodeBlockToC
5
5
  export { transformSliceToDecisionList } from './decision-list';
6
6
  export { transformListStructure, transformBetweenListTypes, transformListRecursively, transformToTaskList, transformTaskListToBlockNodes, getFormattedNode, } from './list-transforms';
7
7
  export { isBulletOrOrderedList, isTaskList, getSupportedListTypesSet, convertBlockToInlineContent, } from './list-utils';
8
+ export { transformToNewReferenceSyncBlock } from './sync-block';
8
9
  export type { TransformContext, TransformFunction } from './list-types';
@@ -0,0 +1,2 @@
1
+ import type { Schema, Slice } from '@atlaskit/editor-prosemirror/model';
2
+ export declare const transformToNewReferenceSyncBlock: (slice: Slice, schema: Schema) => Slice;
@@ -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.8.0",
3
+ "version": "110.9.1",
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/"
@@ -81,7 +81,7 @@
81
81
  "@atlaskit/task-decision": "^19.2.0",
82
82
  "@atlaskit/textfield": "^8.0.0",
83
83
  "@atlaskit/theme": "^21.0.0",
84
- "@atlaskit/tmp-editor-statsig": "^13.5.0",
84
+ "@atlaskit/tmp-editor-statsig": "^13.6.0",
85
85
  "@atlaskit/tokens": "^6.4.0",
86
86
  "@atlaskit/tooltip": "^20.5.0",
87
87
  "@atlaskit/width-detector": "^5.0.0",
@@ -291,6 +291,9 @@
291
291
  },
292
292
  "platform_editor_update_modal_close_button": {
293
293
  "type": "boolean"
294
+ },
295
+ "platform_editor_fix_mixed_types_column_sort": {
296
+ "type": "boolean"
294
297
  }
295
298
  }
296
299
  }
@@ -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"])));
@@ -1,32 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.codeMarkSharedStyles = 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
- var codeMarkSharedStyles = exports.codeMarkSharedStyles = function codeMarkSharedStyles() {
11
- return (0, _react.css)({
12
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
13
- '.code': {
14
- '--ds--code--bg-color': "var(--ds-background-neutral, #091E420F)",
15
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
16
- display: 'inline',
17
- padding: '2px 0.5ch',
18
- backgroundColor: "var(--ds--code--bg-color,".concat("var(--ds-background-neutral, #091E420F)", ")"),
19
- borderRadius: "var(--ds-radius-small, 3px)",
20
- borderStyle: 'none',
21
- boxDecorationBreak: 'clone',
22
- color: "var(--ds-text, #172B4D)",
23
- fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
24
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
25
- fontSize: '0.875em',
26
- fontWeight: "var(--ds-font-weight-regular, 400)",
27
- overflow: 'auto',
28
- overflowWrap: 'break-word',
29
- whiteSpace: 'pre-wrap'
30
- }
31
- });
32
- };
@@ -1,70 +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.columnLayoutSharedStyle = exports.columnLayoutResponsiveSharedStyle = exports.columnLayoutResponsiveRendererStyles = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _react = require("@emotion/react");
10
- var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
11
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
-
13
- var columnLayoutSharedStyle = exports.columnLayoutSharedStyle = (0, _react.css)({
14
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
15
- '[data-layout-section]': (0, _defineProperty2.default)({
16
- position: 'relative',
17
- display: 'flex',
18
- flexDirection: 'row',
19
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
20
- '& > *': {
21
- flex: 1,
22
- minWidth: 0
23
- },
24
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
25
- '& > .unsupportedBlockView-content-wrap': {
26
- minWidth: 'initial'
27
- }
28
- }, "@media screen and (max-width: ".concat(_editorSharedStyles.gridMediumMaxWidth, "px)"), {
29
- flexDirection: 'column'
30
- })
31
- });
32
- var columnLayoutResponsiveSharedStyle = exports.columnLayoutResponsiveSharedStyle = (0, _react.css)({
33
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
34
- '[data-layout-section]': {
35
- display: 'flex',
36
- flexDirection: 'row',
37
- gap: "var(--ds-space-100, 8px)",
38
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
39
- '& > *': {
40
- flex: 1,
41
- minWidth: 0
42
- },
43
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
44
- '& > .unsupportedBlockView-content-wrap': {
45
- minWidth: 'initial'
46
- }
47
- },
48
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
49
- '.layout-section-container': {
50
- containerType: 'inline-size',
51
- containerName: 'layout-area'
52
- }
53
- });
54
- var LAYOUT_BREAKPOINT_RENDERER = 629;
55
-
56
- /* jest warning: JSDOM version (22) doesn't support the new @container CSS rule */
57
- var columnLayoutResponsiveRendererStyles = exports.columnLayoutResponsiveRendererStyles = (0, _react.css)({
58
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
59
- '.layout-section-container': {
60
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
61
- '[data-layout-section]': (0, _defineProperty2.default)({
62
- gap: "var(--ds-space-600, 48px)"
63
- }, "@container layout-area (max-width:".concat(LAYOUT_BREAKPOINT_RENDERER, "px)"), {
64
- flexDirection: 'column',
65
- gap: "var(--ds-space-400, 32px)"
66
- })
67
- }
68
- });
69
-
70
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -1,42 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.embedSpacingStyles = exports.embedCardStyles = void 0;
7
- var _react = require("@emotion/react");
8
- var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
-
11
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
12
- var embedCardStyles = exports.embedCardStyles = function embedCardStyles() {
13
- return (0, _react.css)({
14
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
15
- '.ProseMirror': {
16
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
17
- ".embedCardView-content-wrap[layout^='wrap-']": {
18
- maxWidth: '100%',
19
- position: 'relative',
20
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
21
- zIndex: _editorSharedStyles.akEditorWrappedNodeZIndex
22
- },
23
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
24
- ".embedCardView-content-wrap[layout='wrap-left']": {
25
- float: 'left'
26
- },
27
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
28
- ".embedCardView-content-wrap[layout='wrap-right']": {
29
- float: 'right'
30
- },
31
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
32
- ".embedCardView-content-wrap[layout='wrap-right'] + .embedCardView-content-wrap[layout='wrap-left']": {
33
- clear: 'both'
34
- }
35
- }
36
- });
37
- };
38
-
39
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
40
- var embedSpacingStyles = exports.embedSpacingStyles = (0, _react.css)({
41
- margin: "0 ".concat("var(--ds-space-150, 12px)")
42
- });
@@ -1,40 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.indentationSharedStyles = void 0;
7
- var _react = require("@emotion/react");
8
- /* eslint-disable @atlaskit/design-system/use-tokens-space */
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
-
11
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
12
- var indentationSharedStyles = exports.indentationSharedStyles = (0, _react.css)({
13
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
14
- '.fabric-editor-indentation-mark': {
15
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
16
- "&[data-level='1']": {
17
- marginLeft: '30px'
18
- },
19
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
20
- "&[data-level='2']": {
21
- marginLeft: '60px'
22
- },
23
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
24
- "&[data-level='3']": {
25
- marginLeft: '90px'
26
- },
27
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
28
- "&[data-level='4']": {
29
- marginLeft: '120px'
30
- },
31
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
32
- "&[data-level='5']": {
33
- marginLeft: '150px'
34
- },
35
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
36
- "&[data-level='6']": {
37
- marginLeft: '180px'
38
- }
39
- }
40
- });
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.linkSharedStyle = 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 linkSharedStyle = exports.linkSharedStyle = (0, _react.css)({
12
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
13
- 'a.blockLink': {
14
- display: 'block'
15
- },
16
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
17
- 'a[data-prosemirror-mark-name="link"]': {
18
- textDecoration: 'underline'
19
- },
20
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
21
- 'a[data-prosemirror-mark-name="link"]:hover': {
22
- textDecoration: 'none'
23
- }
24
- });
@@ -1,39 +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.paragraphSharedStyles = void 0;
8
- var _react = require("@emotion/react");
9
- var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
- var _getEditorUgcToken = _interopRequireDefault(require("../../ugc-tokens/get-editor-ugc-token"));
12
- /* eslint-disable @atlaskit/ui-styling-standard/no-exported-styles */
13
- /* eslint-disable @atlaskit/design-system/use-tokens-typography */
14
- /* eslint-disable @atlaskit/ui-styling-standard/no-unsafe-values */
15
- /* eslint-disable @atlaskit/ui-styling-standard/no-imported-style-values */
16
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
17
-
18
- // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
19
- var paragraphSharedStyles = exports.paragraphSharedStyles = function paragraphSharedStyles(typographyTheme) {
20
- return (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? (0, _react.css)({
21
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
22
- '& p': {
23
- font: (0, _getEditorUgcToken.default)('editor.font.body'),
24
- marginTop: _editorSharedStyles.blockNodesVerticalMargin,
25
- marginBottom: 0
26
- }
27
- }) : (0, _react.css)({
28
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
29
- '& p': {
30
- fontSize: '1em',
31
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
32
- lineHeight: _editorSharedStyles.akEditorLineHeight,
33
- fontWeight: "var(--ds-font-weight-regular, 400)",
34
- marginTop: _editorSharedStyles.blockNodesVerticalMargin,
35
- marginBottom: 0,
36
- letterSpacing: '-0.005em'
37
- }
38
- });
39
- };
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ruleSharedStyles = void 0;
7
- var _react = require("@emotion/react");
8
- var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
-
11
- // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
12
- var ruleSharedStyles = exports.ruleSharedStyles = function ruleSharedStyles() {
13
- return (0, _react.css)({
14
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
15
- '& hr': {
16
- border: 'none',
17
- backgroundColor: "var(--ds-border, #091E4224)",
18
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
19
- margin: "".concat(_editorSharedStyles.akEditorLineHeight, "em 0"),
20
- height: '2px',
21
- borderRadius: '1px'
22
- }
23
- });
24
- };