@atlaskit/editor-common 92.1.1 → 93.0.0

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 (198) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/afm-cc/tsconfig.json +0 -3
  3. package/afm-jira/tsconfig.json +0 -3
  4. package/afm-post-office/tsconfig.json +0 -3
  5. package/dist/cjs/element-browser/components/CategoryList.js +2 -3
  6. package/dist/cjs/element-browser/components/ElementList/ElementList.js +11 -13
  7. package/dist/cjs/element-browser/components/ElementSearch.js +1 -2
  8. package/dist/cjs/element-browser/constants.js +1 -6
  9. package/dist/cjs/extensibility/Extension/Extension/styles.js +3 -4
  10. package/dist/cjs/extensibility/Extension/InlineExtension/styles.js +1 -2
  11. package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +6 -7
  12. package/dist/cjs/extensibility/Extension/styles.js +3 -4
  13. package/dist/cjs/extensibility/MultiBodiedExtension/styles.js +2 -3
  14. package/dist/cjs/icons/shared/SteppedRainbowIconDecoration.js +2 -3
  15. package/dist/cjs/keymaps/index.js +1 -2
  16. package/dist/cjs/link/ConfigureLinkOverlay/StyledButton.js +4 -5
  17. package/dist/cjs/link/ConfigureLinkOverlay/index.js +2 -4
  18. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -2
  19. package/dist/cjs/link/LinkSearch/LinkSearchList.js +1 -2
  20. package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +4 -6
  21. package/dist/cjs/media-inline/constants.js +10 -8
  22. package/dist/cjs/media-inline/styles.js +1 -2
  23. package/dist/cjs/media-inline/views/error-view.js +1 -2
  24. package/dist/cjs/media-inline/views/wrapper.js +3 -4
  25. package/dist/cjs/media-single/CommentBadge.js +1 -2
  26. package/dist/cjs/monitoring/error.js +1 -1
  27. package/dist/cjs/node-width/index.js +5 -10
  28. package/dist/cjs/panel.js +0 -12
  29. package/dist/cjs/react-node-view/index.js +32 -37
  30. package/dist/cjs/styles/shared/annotation.js +11 -14
  31. package/dist/cjs/styles/shared/code-block.js +2 -4
  32. package/dist/cjs/styles/shared/code-mark.js +1 -2
  33. package/dist/cjs/styles/shared/grid.js +2 -3
  34. package/dist/cjs/styles/shared/headings.js +56 -17
  35. package/dist/cjs/styles/shared/panel.js +13 -34
  36. package/dist/cjs/styles/shared/plugins.js +1 -2
  37. package/dist/cjs/styles/shared/resizer.js +1 -2
  38. package/dist/cjs/styles/shared/rule.js +1 -2
  39. package/dist/cjs/styles/shared/shadow.js +2 -3
  40. package/dist/cjs/styles/shared/smartCard.js +2 -3
  41. package/dist/cjs/table/SortingIcon.js +1 -2
  42. package/dist/cjs/ui/BaseTheme/index.js +1 -2
  43. package/dist/cjs/ui/Caption/index.js +2 -3
  44. package/dist/cjs/ui/DropList/index.js +4 -5
  45. package/dist/cjs/ui/Expand/index.js +2 -3
  46. package/dist/cjs/ui/Expand/sharedStyles.js +7 -17
  47. package/dist/cjs/ui/FloatingToolbar/Separator.js +1 -2
  48. package/dist/cjs/ui/FloatingToolbar/styles.js +10 -12
  49. package/dist/cjs/ui/Messages/index.js +8 -6
  50. package/dist/cjs/ui/PanelTextInput/styles.js +4 -5
  51. package/dist/cjs/ui/UnsupportedBlock/index.js +4 -6
  52. package/dist/cjs/ui/UnsupportedInline/index.js +4 -6
  53. package/dist/cjs/ui/WidthProvider/index.js +5 -39
  54. package/dist/cjs/ui-color/ColorPalette/Color/index.js +1 -2
  55. package/dist/cjs/ui-color/ColorPalette/Color/styles.js +3 -4
  56. package/dist/cjs/ui-color/ColorPalette/Palettes/common.js +1 -2
  57. package/dist/cjs/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +22 -24
  58. package/dist/cjs/ui-color/ColorPalette/index.js +2 -3
  59. package/dist/cjs/ui-color/index.js +0 -13
  60. package/dist/cjs/ui-menu/ColorPickerButton/index.js +3 -4
  61. package/dist/cjs/ui-menu/DropdownMenu/index.js +2 -3
  62. package/dist/es2019/element-browser/components/CategoryList.js +2 -3
  63. package/dist/es2019/element-browser/components/ElementList/ElementList.js +3 -5
  64. package/dist/es2019/element-browser/components/ElementSearch.js +1 -2
  65. package/dist/es2019/element-browser/constants.js +1 -5
  66. package/dist/es2019/extensibility/Extension/Extension/styles.js +3 -4
  67. package/dist/es2019/extensibility/Extension/InlineExtension/styles.js +1 -2
  68. package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +6 -7
  69. package/dist/es2019/extensibility/Extension/styles.js +3 -4
  70. package/dist/es2019/extensibility/MultiBodiedExtension/styles.js +2 -3
  71. package/dist/es2019/icons/shared/SteppedRainbowIconDecoration.js +2 -3
  72. package/dist/es2019/keymaps/index.js +1 -2
  73. package/dist/es2019/link/ConfigureLinkOverlay/StyledButton.js +4 -5
  74. package/dist/es2019/link/ConfigureLinkOverlay/index.js +2 -4
  75. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -2
  76. package/dist/es2019/link/LinkSearch/LinkSearchList.js +1 -2
  77. package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +4 -6
  78. package/dist/es2019/media-inline/constants.js +10 -8
  79. package/dist/es2019/media-inline/styles.js +1 -2
  80. package/dist/es2019/media-inline/views/error-view.js +1 -2
  81. package/dist/es2019/media-inline/views/wrapper.js +3 -4
  82. package/dist/es2019/media-single/CommentBadge.js +1 -2
  83. package/dist/es2019/monitoring/error.js +1 -1
  84. package/dist/es2019/node-width/index.js +5 -9
  85. package/dist/es2019/panel.js +1 -1
  86. package/dist/es2019/react-node-view/index.js +32 -37
  87. package/dist/es2019/styles/shared/annotation.js +11 -14
  88. package/dist/es2019/styles/shared/code-block.js +12 -14
  89. package/dist/es2019/styles/shared/code-mark.js +1 -2
  90. package/dist/es2019/styles/shared/grid.js +2 -3
  91. package/dist/es2019/styles/shared/headings.js +35 -8
  92. package/dist/es2019/styles/shared/panel.js +12 -25
  93. package/dist/es2019/styles/shared/plugins.js +1 -2
  94. package/dist/es2019/styles/shared/resizer.js +6 -7
  95. package/dist/es2019/styles/shared/rule.js +1 -2
  96. package/dist/es2019/styles/shared/shadow.js +2 -3
  97. package/dist/es2019/styles/shared/smartCard.js +5 -7
  98. package/dist/es2019/table/SortingIcon.js +2 -3
  99. package/dist/es2019/ui/BaseTheme/index.js +1 -2
  100. package/dist/es2019/ui/Caption/index.js +2 -3
  101. package/dist/es2019/ui/DropList/index.js +4 -5
  102. package/dist/es2019/ui/Expand/index.js +2 -3
  103. package/dist/es2019/ui/Expand/sharedStyles.js +7 -17
  104. package/dist/es2019/ui/FloatingToolbar/Separator.js +1 -2
  105. package/dist/es2019/ui/FloatingToolbar/styles.js +10 -12
  106. package/dist/es2019/ui/Messages/index.js +8 -6
  107. package/dist/es2019/ui/PanelTextInput/styles.js +4 -5
  108. package/dist/es2019/ui/UnsupportedBlock/index.js +4 -6
  109. package/dist/es2019/ui/UnsupportedInline/index.js +4 -6
  110. package/dist/es2019/ui/WidthProvider/index.js +2 -33
  111. package/dist/es2019/ui-color/ColorPalette/Color/index.js +1 -4
  112. package/dist/es2019/ui-color/ColorPalette/Color/styles.js +3 -4
  113. package/dist/es2019/ui-color/ColorPalette/Palettes/common.js +1 -2
  114. package/dist/es2019/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +21 -24
  115. package/dist/es2019/ui-color/ColorPalette/index.js +2 -3
  116. package/dist/es2019/ui-color/index.js +0 -1
  117. package/dist/es2019/ui-menu/ColorPickerButton/index.js +3 -4
  118. package/dist/es2019/ui-menu/DropdownMenu/index.js +3 -4
  119. package/dist/esm/element-browser/components/CategoryList.js +2 -3
  120. package/dist/esm/element-browser/components/ElementList/ElementList.js +3 -5
  121. package/dist/esm/element-browser/components/ElementSearch.js +1 -2
  122. package/dist/esm/element-browser/constants.js +1 -5
  123. package/dist/esm/extensibility/Extension/Extension/styles.js +3 -4
  124. package/dist/esm/extensibility/Extension/InlineExtension/styles.js +1 -2
  125. package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +6 -7
  126. package/dist/esm/extensibility/Extension/styles.js +3 -4
  127. package/dist/esm/extensibility/MultiBodiedExtension/styles.js +2 -3
  128. package/dist/esm/icons/shared/SteppedRainbowIconDecoration.js +2 -3
  129. package/dist/esm/keymaps/index.js +1 -2
  130. package/dist/esm/link/ConfigureLinkOverlay/StyledButton.js +4 -5
  131. package/dist/esm/link/ConfigureLinkOverlay/index.js +2 -4
  132. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -2
  133. package/dist/esm/link/LinkSearch/LinkSearchList.js +1 -2
  134. package/dist/esm/link/LinkSearch/LinkSearchListItem.js +4 -6
  135. package/dist/esm/media-inline/constants.js +10 -8
  136. package/dist/esm/media-inline/styles.js +1 -2
  137. package/dist/esm/media-inline/views/error-view.js +1 -2
  138. package/dist/esm/media-inline/views/wrapper.js +3 -4
  139. package/dist/esm/media-single/CommentBadge.js +1 -2
  140. package/dist/esm/monitoring/error.js +1 -1
  141. package/dist/esm/node-width/index.js +5 -9
  142. package/dist/esm/panel.js +1 -1
  143. package/dist/esm/react-node-view/index.js +32 -37
  144. package/dist/esm/styles/shared/annotation.js +11 -14
  145. package/dist/esm/styles/shared/code-block.js +2 -4
  146. package/dist/esm/styles/shared/code-mark.js +1 -2
  147. package/dist/esm/styles/shared/grid.js +2 -3
  148. package/dist/esm/styles/shared/headings.js +53 -17
  149. package/dist/esm/styles/shared/panel.js +12 -33
  150. package/dist/esm/styles/shared/plugins.js +1 -2
  151. package/dist/esm/styles/shared/resizer.js +1 -2
  152. package/dist/esm/styles/shared/rule.js +1 -2
  153. package/dist/esm/styles/shared/shadow.js +2 -3
  154. package/dist/esm/styles/shared/smartCard.js +2 -4
  155. package/dist/esm/table/SortingIcon.js +1 -2
  156. package/dist/esm/ui/BaseTheme/index.js +1 -2
  157. package/dist/esm/ui/Caption/index.js +2 -3
  158. package/dist/esm/ui/DropList/index.js +4 -5
  159. package/dist/esm/ui/Expand/index.js +2 -3
  160. package/dist/esm/ui/Expand/sharedStyles.js +7 -17
  161. package/dist/esm/ui/FloatingToolbar/Separator.js +1 -2
  162. package/dist/esm/ui/FloatingToolbar/styles.js +10 -12
  163. package/dist/esm/ui/Messages/index.js +8 -6
  164. package/dist/esm/ui/PanelTextInput/styles.js +4 -5
  165. package/dist/esm/ui/UnsupportedBlock/index.js +4 -6
  166. package/dist/esm/ui/UnsupportedInline/index.js +4 -6
  167. package/dist/esm/ui/WidthProvider/index.js +5 -39
  168. package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -2
  169. package/dist/esm/ui-color/ColorPalette/Color/styles.js +3 -4
  170. package/dist/esm/ui-color/ColorPalette/Palettes/common.js +1 -2
  171. package/dist/esm/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +21 -24
  172. package/dist/esm/ui-color/ColorPalette/index.js +2 -3
  173. package/dist/esm/ui-color/index.js +0 -1
  174. package/dist/esm/ui-menu/ColorPickerButton/index.js +3 -4
  175. package/dist/esm/ui-menu/DropdownMenu/index.js +2 -3
  176. package/dist/types/element-browser/constants.d.ts +3 -3
  177. package/dist/types/media-inline/constants.d.ts +3 -0
  178. package/dist/types/panel.d.ts +1 -1
  179. package/dist/types/styles/shared/panel.d.ts +0 -2
  180. package/dist/types/ui/WidthProvider/index.d.ts +0 -5
  181. package/dist/types/ui-color/index.d.ts +0 -1
  182. package/dist/types-ts4.5/element-browser/constants.d.ts +3 -3
  183. package/dist/types-ts4.5/media-inline/constants.d.ts +3 -0
  184. package/dist/types-ts4.5/panel.d.ts +1 -1
  185. package/dist/types-ts4.5/styles/shared/panel.d.ts +0 -2
  186. package/dist/types-ts4.5/ui/WidthProvider/index.d.ts +0 -5
  187. package/dist/types-ts4.5/ui-color/index.d.ts +0 -1
  188. package/package.json +4 -11
  189. package/dist/cjs/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.js +0 -11
  190. package/dist/cjs/ui-color/ColorPalette/Palettes/statusColorPalette.js +0 -60
  191. package/dist/es2019/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.js +0 -6
  192. package/dist/es2019/ui-color/ColorPalette/Palettes/statusColorPalette.js +0 -54
  193. package/dist/esm/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.js +0 -6
  194. package/dist/esm/ui-color/ColorPalette/Palettes/statusColorPalette.js +0 -54
  195. package/dist/types/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.d.ts +0 -1
  196. package/dist/types/ui-color/ColorPalette/Palettes/statusColorPalette.d.ts +0 -4
  197. package/dist/types-ts4.5/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.d.ts +0 -1
  198. package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/statusColorPalette.d.ts +0 -4
@@ -6,7 +6,6 @@
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { jsx } from '@emotion/react';
8
8
  import WarningIcon from '@atlaskit/icon/glyph/warning';
9
- import { R300 } from '@atlaskit/theme/colors';
10
9
  import Tooltip from '@atlaskit/tooltip';
11
10
  import { ICON_SIZE_THRESOLD } from './constants';
12
11
  import { Frame } from './frame';
@@ -28,6 +27,6 @@ export var InlineImageCardErrorView = function InlineImageCardErrorView(_ref) {
28
27
  }, jsx(IconWrapper, null, icon || jsx(WarningIcon, {
29
28
  label: "error",
30
29
  size: height > ICON_SIZE_THRESOLD ? 'medium' : 'small',
31
- primaryColor: "var(--ds-icon-danger, ".concat(R300, ")")
30
+ primaryColor: "var(--ds-icon-danger, #C9372C)"
32
31
  }))));
33
32
  };
@@ -1,6 +1,5 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
- import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
4
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
5
4
  export var wrapperStyle = css({
6
5
  display: 'inline-flex',
@@ -10,11 +9,11 @@ export var wrapperStyle = css({
10
9
  justifyContent: 'center',
11
10
  boxDecorationBreak: 'clone',
12
11
  borderRadius: "var(--ds-border-radius, 3px)",
13
- color: "".concat("var(--ds-text, ".concat(N900, ")")),
14
- backgroundColor: "".concat("var(--ds-background-neutral, ".concat(N30A, ")")),
12
+ color: "var(--ds-text, #172B4D)",
13
+ backgroundColor: "var(--ds-background-neutral, #091E420F)",
15
14
  transition: '0.1s all ease-in-out',
16
15
  cursor: 'pointer',
17
16
  '&:hover': {
18
- backgroundColor: "".concat("var(--ds-background-neutral-hovered, ".concat(N40A, ")"))
17
+ backgroundColor: "var(--ds-background-neutral-hovered, #091E4224)"
19
18
  }
20
19
  });
@@ -11,7 +11,6 @@ import debounce from 'lodash/debounce';
11
11
  import CustomThemeButton from '@atlaskit/button/custom-theme-button';
12
12
  import { akEditorUnitZIndex } from '@atlaskit/editor-shared-styles';
13
13
  import CommentIcon from '@atlaskit/icon/glyph/comment';
14
- import { layers } from '@atlaskit/theme/constants';
15
14
  import Tooltip from '@atlaskit/tooltip';
16
15
  import { commentMessages as messages } from '../media';
17
16
  var commentBadgeWrapper = css({
@@ -27,7 +26,7 @@ var commentBadgeEditorOverrides = function commentBadgeEditorOverrides(badgeOffs
27
26
  return css({
28
27
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
29
28
  right: badgeOffsetRight,
30
- zIndex: layers.card()
29
+ zIndex: 100
31
30
  });
32
31
  };
33
32
  export var getBadgeSize = function getBadgeSize(width, height) {
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "92.1.1";
10
+ var packageVersion = "93.0.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -1,10 +1,9 @@
1
1
  import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
2
2
  import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorWideLayoutWidth, akLayoutGutterOffset, gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
3
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
4
- import { gridSize } from '@atlaskit/theme/constants';
5
3
  import { BODIED_EXT_PADDING } from '../styles/shared/extension';
6
4
  import { LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN } from '../styles/shared/layout';
7
5
  import { absoluteBreakoutWidth } from '../utils/breakout';
6
+ var GRID_SIZE = 8;
8
7
  export var layoutToWidth = {
9
8
  default: akEditorDefaultLayoutWidth,
10
9
  wide: akEditorWideLayoutWidth,
@@ -69,18 +68,15 @@ export var getParentNodeWidth = function getParentNodeWidth(pos, state, containe
69
68
  case schema.nodes.extensionFrame:
70
69
  parentWidth -= BODIED_EXT_PADDING * 2;
71
70
  break;
72
-
73
- // TODO: Migrate away from gridSize
74
- // Recommendation: Replace gridSize with 8
75
71
  case schema.nodes.expand:
76
72
  // padding
77
- parentWidth -= gridSize() * 2;
73
+ parentWidth -= GRID_SIZE * 2;
78
74
  // gutter offset
79
- parentWidth += gridSize() * 1.5 * 2;
75
+ parentWidth += GRID_SIZE * 1.5 * 2;
80
76
  // padding right
81
- parentWidth -= gridSize();
77
+ parentWidth -= GRID_SIZE;
82
78
  // padding left
83
- parentWidth -= gridSize() * 4 - gridSize() / 2;
79
+ parentWidth -= GRID_SIZE * 4 - GRID_SIZE / 2;
84
80
  break;
85
81
  }
86
82
  parentWidth -= 2; // border
package/dist/esm/panel.js CHANGED
@@ -1 +1 @@
1
- export { getPanelTypeBackground, getPanelTypeBackgroundNoTokens, darkPanelColors, getPanelDarkColor, panelSharedStyles, panelSharedStylesWithoutPrefix, PanelSharedCssClassName, PanelSharedSelectors, getPanelBackgroundDarkModeColors } from './styles/shared/panel';
1
+ export { getPanelTypeBackground, getPanelTypeBackgroundNoTokens, darkPanelColors, panelSharedStyles, panelSharedStylesWithoutPrefix, PanelSharedCssClassName, PanelSharedSelectors } from './styles/shared/panel';
@@ -3,7 +3,6 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
4
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
5
  import React from 'react';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
8
7
  import { createDispatch } from '../event-dispatcher';
9
8
  import { ErrorBoundary } from '../ui/ErrorBoundary';
@@ -132,48 +131,44 @@ var ReactNodeView = /*#__PURE__*/function () {
132
131
 
133
132
  // move the contentDOM node inside the inner reference after rendering
134
133
  if (node && contentDOM && !node.contains(contentDOM)) {
135
- if (fg('platform_editor_react_18_prosemirror_sel_resync')) {
136
- var _this$view$state$sele;
137
- // @ts-ignore - ignoreMutation may not be declared
138
- oldIgnoreMutation = this.ignoreMutation; // store ref to previous ignoreMutation
134
+ var _this$view$state$sele;
135
+ // @ts-ignore - ignoreMutation may not be declared
136
+ oldIgnoreMutation = this.ignoreMutation; // store ref to previous ignoreMutation
139
137
 
140
- // ignore all mutations caused by ProseMirror's MutationObserver triggering
141
- // after DOM change, except selection changes
142
- // @ts-ignore ProseMirror adds selection type to MutationRecord
143
- this.ignoreMutation = function (m) {
144
- var isSelectionMutation = m.type === 'selection';
145
- if (!isSelectionMutation) {
146
- mutationsIgnored = true;
147
- }
148
- return !isSelectionMutation;
149
- };
150
-
151
- // capture document selection state before React DOM changes triggers ProseMirror selection change transaction
152
- if (this.view.state.selection.visible) {
153
- selectionBookmark = this.view.state.selection.getBookmark();
138
+ // ignore all mutations caused by ProseMirror's MutationObserver triggering
139
+ // after DOM change, except selection changes
140
+ // @ts-ignore ProseMirror adds selection type to MutationRecord
141
+ this.ignoreMutation = function (m) {
142
+ var isSelectionMutation = m.type === 'selection';
143
+ if (!isSelectionMutation) {
144
+ mutationsIgnored = true;
154
145
  }
146
+ return !isSelectionMutation;
147
+ };
155
148
 
156
- // ... and capture parent offset before DOM change
157
- if (((_this$view$state$sele = this.view.state.selection) === null || _this$view$state$sele === void 0 ? void 0 : _this$view$state$sele.ranges.length) > 0) {
158
- var _this$view$state$sele2, _this$view$state$sele3;
159
- parentOffset = (_this$view$state$sele2 = (_this$view$state$sele3 = this.view.state.selection) === null || _this$view$state$sele3 === void 0 || (_this$view$state$sele3 = _this$view$state$sele3.ranges[0].$from) === null || _this$view$state$sele3 === void 0 ? void 0 : _this$view$state$sele3.parentOffset) !== null && _this$view$state$sele2 !== void 0 ? _this$view$state$sele2 : 0;
160
- }
149
+ // capture document selection state before React DOM changes triggers ProseMirror selection change transaction
150
+ if (this.view.state.selection.visible) {
151
+ selectionBookmark = this.view.state.selection.getBookmark();
161
152
  }
162
- node.appendChild(contentDOM);
163
- if (fg('platform_editor_react_18_prosemirror_sel_resync')) {
164
- requestAnimationFrame(function () {
165
- // Reset ignoreMutation after frame ....
166
- // @ts-ignore - this may not have been declared by implementing class
167
- _this4.ignoreMutation = oldIgnoreMutation;
168
153
 
169
- // only trigger selection re-sync if the selection is not at the start of the
170
- // node, and DOM mutations were ignored
171
- if (selectionBookmark && mutationsIgnored && parentOffset > 0) {
172
- // ... and dispatch expected selection state
173
- _this4.view.dispatch(_this4.view.state.tr.setSelection(selectionBookmark.resolve(_this4.view.state.tr.doc)));
174
- }
175
- });
154
+ // ... and capture parent offset before DOM change
155
+ if (((_this$view$state$sele = this.view.state.selection) === null || _this$view$state$sele === void 0 ? void 0 : _this$view$state$sele.ranges.length) > 0) {
156
+ var _this$view$state$sele2, _this$view$state$sele3;
157
+ parentOffset = (_this$view$state$sele2 = (_this$view$state$sele3 = this.view.state.selection) === null || _this$view$state$sele3 === void 0 || (_this$view$state$sele3 = _this$view$state$sele3.ranges[0].$from) === null || _this$view$state$sele3 === void 0 ? void 0 : _this$view$state$sele3.parentOffset) !== null && _this$view$state$sele2 !== void 0 ? _this$view$state$sele2 : 0;
176
158
  }
159
+ node.appendChild(contentDOM);
160
+ requestAnimationFrame(function () {
161
+ // Reset ignoreMutation after frame ....
162
+ // @ts-ignore - this may not have been declared by implementing class
163
+ _this4.ignoreMutation = oldIgnoreMutation;
164
+
165
+ // only trigger selection re-sync if the selection is not at the start of the
166
+ // node, and DOM mutations were ignored
167
+ if (selectionBookmark && mutationsIgnored && parentOffset > 0) {
168
+ // ... and dispatch expected selection state
169
+ _this4.view.dispatch(_this4.view.state.tr.setSelection(selectionBookmark.resolve(_this4.view.state.tr.doc)));
170
+ }
171
+ });
177
172
  }
178
173
  }
179
174
  }, {
@@ -3,7 +3,6 @@ var _templateObject, _templateObject2;
3
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
4
  import { css } from '@emotion/react';
5
5
  import { fg } from '@atlaskit/platform-feature-flags';
6
- import { N60A, Y300, Y75 } from '@atlaskit/theme/colors';
7
6
  export var annotationPrefix = 'ak-editor-annotation';
8
7
  export var AnnotationSharedClassNames = {
9
8
  focus: "".concat(annotationPrefix, "-focus"),
@@ -16,8 +15,6 @@ export var BlockAnnotationSharedClassNames = {
16
15
  blur: "".concat(blockAnnotationPrefix, "-blur"),
17
16
  draft: "".concat(blockAnnotationPrefix, "-draft")
18
17
  };
19
- var Yellow100 = 'rgb(255, 247, 214)';
20
- var Y200a = 'rgba(255, 196, 0, 0.82)';
21
18
  export var AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
22
19
  if (fg('editor_inline_comments_on_inline_nodes')) {
23
20
  // NOTE: These styles are shared between renderer and editor. Sometimes they
@@ -35,20 +32,20 @@ export var AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
35
32
  } : {
36
33
  paddingTop: '4px',
37
34
  border: 'none',
38
- boxShadow: "0 2px 0 0 ".concat("var(--ds-border-accent-yellow, ".concat(Y200a, ")"))
35
+ boxShadow: "0 2px 0 0 ".concat("var(--ds-border-accent-yellow, #B38600)")
39
36
  },
40
37
  '&:has(.date-lozenger-container)': {
41
38
  paddingTop: '2px'
42
39
  }
43
40
  },
44
41
  focus: css({
45
- background: "var(--ds-background-accent-yellow-subtler, ".concat(Y75, ")"),
46
- borderBottomColor: "var(--ds-border-accent-yellow, ".concat(Y300, ")"),
47
- boxShadow: "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(N60A, ", -1px 2px 3px ").concat(N60A), ")")
42
+ background: "var(--ds-background-accent-yellow-subtler, #F8E6A0)",
43
+ borderBottomColor: "var(--ds-border-accent-yellow, #B38600)",
44
+ boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)"
48
45
  }),
49
46
  blur: css({
50
- background: "var(--ds-background-accent-yellow-subtlest, ".concat(Yellow100, ")"),
51
- borderBottomColor: "var(--ds-border-accent-yellow, ".concat(Y200a, ")")
47
+ background: "var(--ds-background-accent-yellow-subtlest, #FFF7D6)",
48
+ borderBottomColor: "var(--ds-border-accent-yellow, #B38600)"
52
49
  })
53
50
  };
54
51
  } else {
@@ -56,15 +53,15 @@ export var AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
56
53
  focus: css({
57
54
  // Background is not coming through in confluence, suspecting to be caused by some specific combination of
58
55
  // emotion and token look up
59
- background: "var(--ds-background-accent-yellow-subtler, ".concat(Y75, ")"),
60
- borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, ".concat(Y300, ")")),
56
+ background: "var(--ds-background-accent-yellow-subtler, #F8E6A0)",
57
+ borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, #B38600)"),
61
58
  // TODO: https://product-fabric.atlassian.net/browse/DSP-4147
62
- boxShadow: "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(N60A, ", -1px 2px 3px ").concat(N60A), ")"),
59
+ boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)",
63
60
  cursor: 'pointer'
64
61
  }),
65
62
  blur: css({
66
- background: "var(--ds-background-accent-yellow-subtlest, ".concat(Yellow100, ")"),
67
- borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, ".concat(Y200a, ")")),
63
+ background: "var(--ds-background-accent-yellow-subtlest, #FFF7D6)",
64
+ borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, #B38600)"),
68
65
  cursor: 'pointer'
69
66
  })
70
67
  };
@@ -4,8 +4,6 @@ var _templateObject, _templateObject2;
4
4
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
5
  import { css } from '@emotion/react';
6
6
  import { akEditorCodeFontFamily, akEditorLineHeight, akEditorTableCellMinWidth, blockNodesVerticalMargin, overflowShadow, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
7
- import { N20, N30, N400, N800 } from '@atlaskit/theme/colors';
8
- import { fontSize } from '@atlaskit/theme/constants';
9
7
  export var CodeBlockSharedCssClassName = {
10
8
  CODEBLOCK_CONTAINER: 'code-block',
11
9
  CODEBLOCK_START: 'code-block--start',
@@ -22,9 +20,9 @@ export var CodeBlockSharedCssClassName = {
22
20
  CODEBLOCK_LINE_NUMBER_GUTTER_FG: 'line-number-gutter--fg'
23
21
  };
24
22
  export var codeBlockSharedStyles = function codeBlockSharedStyles() {
25
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", "\n\t\t> .", "\n\t\t> .", " {\n\t\tmargin-right: ", ";\n\n\t\tcode {\n\t\t\tdisplay: block;\n\t\t\tword-break: break-word;\n\t\t\twhite-space: pre-wrap;\n\t\t}\n\t}\n\n\t.", "\n\t\t> .", " {\n\t\tdisplay: flex;\n\t\tflex: 1;\n\n\t\tcode {\n\t\t\tflex-grow: 1;\n\n\t\t\twhite-space: pre;\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\t\tclear: both;\n\n\t\t--ds--code--bg-color: transparent;\n\n\t\t/* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n\t\twhite-space: normal;\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\ttop: 0px;\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\tbottom: 0px;\n\t\t\tright: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tdisplay: flex;\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 100%;\n\t\t\tcounter-reset: line;\n\t\t\toverflow-x: auto;\n\n\t\t\tbackground-image: ", ";\n\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\t\tbackground-size:\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%;\n\t\t\tbackground-position:\n\t\t\t\t0 0,\n\t\t\t\t0 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t0 0,\n\t\t\t\t0 0;\n\n\t\t\t/* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n\t\t\toverflow-y: hidden;\n\t\t}\n\n\t\t.", " {\n\t\t\t// relative position set so number gutter remains absolute on horizontal scroll.\n\t\t\tposition: relative;\n\t\t}\n\n\t\t.", " {\n\t\t\tflex-shrink: 0;\n\t\t\ttext-align: right;\n\t\t\tbackground-color: ", ";\n\t\t\tpadding: ", ";\n\t\t\tposition: relative;\n\n\t\t\tspan {\n\t\t\t\tdisplay: block;\n\t\t\t\tline-height: 0;\n\t\t\t\tfont-size: 0;\n\n\t\t\t\t::before {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tcontent: counter(line);\n\t\t\t\t\tcounter-increment: line;\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tfont-size: ", ";\n\t\t\t\t\tline-height: 1.5rem;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tposition: relative;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tpadding: 0px ", ";\n\t\t\tflex-shrink: 0;\n\t\t\tfont-size: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\n\t\t.", " {\n\t\t\tdisplay: flex;\n\t\t\tflex: 1;\n\n\t\t\tcode {\n\t\t\t\tflex-grow: 1;\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\twhite-space: pre;\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tcode {\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tleft: 0;\n\t\t\tposition: absolute;\n\t\t\tfont-size: ", ";\n\t\t\tpadding: 0px ", ";\n\t\t\tline-height: 1.5rem;\n\t\t\ttext-align: right;\n\t\t\tcolor: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\t}\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, transparent)", "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, akEditorCodeFontFamily, akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, ".concat(N20, ")"), "var(--ds-border-radius, 3px)", overflowShadow({
23
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", "\n\t\t> .", "\n\t\t> .", " {\n\t\tmargin-right: ", ";\n\n\t\tcode {\n\t\t\tdisplay: block;\n\t\t\tword-break: break-word;\n\t\t\twhite-space: pre-wrap;\n\t\t}\n\t}\n\n\t.", "\n\t\t> .", " {\n\t\tdisplay: flex;\n\t\tflex: 1;\n\n\t\tcode {\n\t\t\tflex-grow: 1;\n\n\t\t\twhite-space: pre;\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\t\tclear: both;\n\n\t\t--ds--code--bg-color: transparent;\n\n\t\t/* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n\t\twhite-space: normal;\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\ttop: 0px;\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\tbottom: 0px;\n\t\t\tright: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tdisplay: flex;\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 100%;\n\t\t\tcounter-reset: line;\n\t\t\toverflow-x: auto;\n\n\t\t\tbackground-image: ", ";\n\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\t\tbackground-size:\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%;\n\t\t\tbackground-position:\n\t\t\t\t0 0,\n\t\t\t\t0 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t0 0,\n\t\t\t\t0 0;\n\n\t\t\t/* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n\t\t\toverflow-y: hidden;\n\t\t}\n\n\t\t.", " {\n\t\t\t// relative position set so number gutter remains absolute on horizontal scroll.\n\t\t\tposition: relative;\n\t\t}\n\n\t\t.", " {\n\t\t\tflex-shrink: 0;\n\t\t\ttext-align: right;\n\t\t\tbackground-color: ", ";\n\t\t\tpadding: ", ";\n\t\t\tposition: relative;\n\n\t\t\tspan {\n\t\t\t\tdisplay: block;\n\t\t\t\tline-height: 0;\n\t\t\t\tfont-size: 0;\n\n\t\t\t\t::before {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tcontent: counter(line);\n\t\t\t\t\tcounter-increment: line;\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tfont-size: ", ";\n\t\t\t\t\tline-height: 1.5rem;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tposition: relative;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tpadding: 0px ", ";\n\t\t\tflex-shrink: 0;\n\t\t\tfont-size: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\n\t\t.", " {\n\t\t\tdisplay: flex;\n\t\t\tflex: 1;\n\n\t\t\tcode {\n\t\t\t\tflex-grow: 1;\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\twhite-space: pre;\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tcode {\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tleft: 0;\n\t\t\tposition: absolute;\n\t\t\tfont-size: ", ";\n\t\t\tpadding: 0px ", ";\n\t\t\tline-height: 1.5rem;\n\t\t\ttext-align: right;\n\t\t\tcolor: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\t}\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, #FFFFFF)", "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, akEditorCodeFontFamily, akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, #091E420F)", "var(--ds-border-radius, 3px)", overflowShadow({
26
24
  leftCoverWidth: "var(--ds-space-300, 24px)"
27
- }), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, ".concat(N30, ")"), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, ".concat(N400, ")"), relativeFontSizeToBase16(fontSize()), CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER_FG, "var(--ds-background-neutral, ".concat(N30, ")"), "var(--ds-space-100, 8px)", relativeFontSizeToBase16(fontSize()), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-text, ".concat(N800, ")"), "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(fontSize()), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, "var(--ds-text, ".concat(N800, ")"), "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(fontSize()), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET, relativeFontSizeToBase16(fontSize()), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, #505F79)");
25
+ }), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, #091E420F)", "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, #626F86)", relativeFontSizeToBase16(14), CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER_FG, "var(--ds-background-neutral, #091E420F)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-text, #172B4D)", "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, "var(--ds-text, #172B4D)", "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET, relativeFontSizeToBase16(14), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, #505F79)");
28
26
  };
29
27
 
30
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -4,12 +4,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
5
  import { css } from '@emotion/react';
6
6
  import { getCodeStyles } from '@atlaskit/code/inline';
7
- import { N30A } from '@atlaskit/theme/colors';
8
7
  export var codeMarkSharedStyles = function codeMarkSharedStyles() {
9
8
  return css({
10
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
11
10
  '.code': _objectSpread({
12
- '--ds--code--bg-color': "var(--ds-background-neutral, ".concat(N30A, ")")
11
+ '--ds--code--bg-color': "var(--ds-background-neutral, #091E420F)"
13
12
  }, getCodeStyles())
14
13
  });
15
14
  };
@@ -1,7 +1,6 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
3
  import { akEditorGridLineZIndex } from '@atlaskit/editor-shared-styles';
4
- import { B200, N30A } from '@atlaskit/theme/colors';
5
4
  export var GRID_GUTTER = 12;
6
5
 
7
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -24,7 +23,7 @@ export var gridStyles = css({
24
23
  },
25
24
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
26
25
  '.gridLine': {
27
- borderLeft: "1px solid ".concat("var(--ds-border, ".concat(N30A, ")")),
26
+ borderLeft: "1px solid ".concat("var(--ds-border, #091E4224)"),
28
27
  display: 'inline-block',
29
28
  boxSizing: 'border-box',
30
29
  height: '100%',
@@ -35,6 +34,6 @@ export var gridStyles = css({
35
34
  },
36
35
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
37
36
  '.highlight': {
38
- borderLeft: "1px solid ".concat("var(--ds-border-focused, ".concat(B200, ")"))
37
+ borderLeft: "1px solid ".concat("var(--ds-border-focused, #388BFF)")
39
38
  }
40
39
  });
@@ -1,43 +1,79 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
1
  /* eslint-disable @atlaskit/design-system/use-tokens-space */
2
+ /* eslint-disable @atlaskit/design-system/use-tokens-typography */
5
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
4
  import { css } from '@emotion/react';
7
- import { h100, h300, h400, h500, h600, h700 } from '@atlaskit/theme/typography';
8
-
9
5
  // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
10
6
  // text sizing prototype: http://proto/fabricrender/
11
7
  export var headingsSharedStyles = function headingsSharedStyles() {
12
8
  return css({
13
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
14
- '& h1': _objectSpread(_objectSpread({}, h700()), {}, {
10
+ '& h1': {
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
12
+ fontSize: "".concat(24 / 14, "em"),
13
+ fontStyle: 'inherit',
14
+ lineHeight: 28 / 24,
15
+ color: "var(--ds-text, #172B4D)",
16
+ fontWeight: "var(--ds-font-weight-medium, 500)",
17
+ letterSpacing: "-0.01em",
15
18
  marginBottom: 0,
16
19
  marginTop: '1.667em'
17
- }),
20
+ },
18
21
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
19
- '& h2': _objectSpread(_objectSpread({}, h600()), {}, {
22
+ '& h2': {
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
24
+ fontSize: "".concat(20 / 14, "em"),
25
+ fontStyle: 'inherit',
26
+ lineHeight: 24 / 20,
27
+ color: "var(--ds-text, #172B4D)",
28
+ fontWeight: "var(--ds-font-weight-medium, 500)",
29
+ letterSpacing: "-0.008em",
20
30
  marginTop: '1.8em',
21
31
  marginBottom: 0
22
- }),
32
+ },
23
33
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
24
- '& h3': _objectSpread(_objectSpread({}, h500()), {}, {
34
+ '& h3': {
35
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
36
+ fontSize: "".concat(16 / 14, "em"),
37
+ fontStyle: 'inherit',
38
+ lineHeight: 20 / 16,
39
+ color: "var(--ds-text, #172B4D)",
40
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
41
+ letterSpacing: "-0.006em",
25
42
  marginTop: '2em',
26
43
  marginBottom: 0
27
- }),
44
+ },
28
45
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
29
- '& h4': _objectSpread(_objectSpread({}, h400()), {}, {
46
+ '& h4': {
47
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
48
+ fontSize: "".concat(14 / 14, "em"),
49
+ fontStyle: 'inherit',
50
+ lineHeight: 16 / 14,
51
+ color: "var(--ds-text, #172B4D)",
52
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
53
+ letterSpacing: "-0.003em",
30
54
  marginTop: '1.357em'
31
- }),
55
+ },
32
56
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
33
- '& h5': _objectSpread(_objectSpread({}, h300()), {}, {
57
+ '& h5': {
58
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
59
+ fontSize: "".concat(12 / 14, "em"),
60
+ fontStyle: 'inherit',
61
+ lineHeight: 16 / 12,
62
+ color: "var(--ds-text, #172B4D)",
63
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
34
64
  marginTop: '1.667em',
35
65
  textTransform: 'none'
36
- }),
66
+ },
37
67
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
38
- '& h6': _objectSpread(_objectSpread({}, h100()), {}, {
68
+ '& h6': {
69
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
70
+ fontSize: "".concat(11 / 14, "em"),
71
+ fontStyle: 'inherit',
72
+ lineHeight: 16 / 11,
73
+ color: "var(--ds-text-subtlest, #626F86)",
74
+ fontWeight: "var(--ds-font-weight-bold, 700)",
39
75
  marginTop: '1.455em',
40
76
  textTransform: 'none'
41
- })
77
+ }
42
78
  });
43
79
  };
@@ -1,6 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
- import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
3
  var _templateObject;
5
4
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
6
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -10,15 +9,14 @@ import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
10
9
  import { akEditorTableCellMinWidth, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
11
10
  import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
12
11
  import { emojiImage, emojiSprite } from '@atlaskit/emoji';
13
- import { B100, B400, B50, B75, G200, G400, G50, G75, N0, N20, N60, P100, P400, P50, P75, R100, R400, R50, R75, T100, T50, T75, Y200, Y400, Y50, Y75 } from '@atlaskit/theme/colors';
14
12
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
15
13
  var lightPanelColors = {
16
- info: B50,
17
- note: P50,
18
- tip: G50,
19
- success: G50,
20
- warning: Y50,
21
- error: R50
14
+ info: '#DEEBFF',
15
+ note: '#EAE6FF',
16
+ tip: '#E3FCEF',
17
+ success: '#E3FCEF',
18
+ warning: '#FFFAE6',
19
+ error: '#FFEBE6'
22
20
  };
23
21
  export var darkPanelColors = {
24
22
  // standard panels
@@ -83,37 +81,18 @@ export var darkPanelColors = {
83
81
  TextColor: '#D9DDE3'
84
82
  };
85
83
  var lightIconColor = {
86
- info: "var(--ds-icon-information, ".concat(B400, ")"),
87
- note: "var(--ds-icon-discovery, ".concat(P400, ")"),
88
- tip: "var(--ds-icon-success, ".concat(G400, ")"),
89
- success: "var(--ds-icon-success, ".concat(G400, ")"),
90
- warning: "var(--ds-icon-warning, ".concat(Y400, ")"),
91
- error: "var(--ds-icon-danger, ".concat(R400, ")")
84
+ info: "var(--ds-icon-information, #1D7AFC)",
85
+ note: "var(--ds-icon-discovery, #8270DB)",
86
+ tip: "var(--ds-icon-success, #22A06B)",
87
+ success: "var(--ds-icon-success, #22A06B)",
88
+ warning: "var(--ds-icon-warning, #E56910)",
89
+ error: "var(--ds-icon-danger, #C9372C)"
92
90
  };
93
91
 
94
92
  // New custom icons are a little smaller than predefined icons.
95
93
  // To fix alignment issues with custom icons, vertical alignment is updated.
96
94
  var panelEmojiSpriteVerticalAlignment = -(8 * 3 - akEditorCustomIconSize) / 2;
97
95
  var panelEmojiImageVerticalAlignment = panelEmojiSpriteVerticalAlignment - 1;
98
-
99
- // TODO: https://product-fabric.atlassian.net/browse/DSP-4066
100
- var panelDarkModeColors = [[B50, darkPanelColors.B1200S], [B75, darkPanelColors.B900], [B100, darkPanelColors.B800S], [N0, darkPanelColors.LightGray], [N20, darkPanelColors.Gray], [N60, darkPanelColors.DarkGray], [T50, darkPanelColors.T1200S], [T75, darkPanelColors.T900], [T100, darkPanelColors.T900S], [G50, darkPanelColors.G1200S], [G75, darkPanelColors.G900], [G200, darkPanelColors.G900S], [Y50, darkPanelColors.Y1200S], [Y75, darkPanelColors.Y900], [Y200, darkPanelColors.Y800S], [R50, darkPanelColors.R1200S], [R75, darkPanelColors.R900], [R100, darkPanelColors.R800S], [P50, darkPanelColors.P1200S], [P75, darkPanelColors.P900], [P100, darkPanelColors.P800S]];
101
-
102
- // used for custom panels
103
- export var getPanelDarkColor = function getPanelDarkColor(panelColor) {
104
- var colorObject = panelDarkModeColors.find(function (color) {
105
- return color[0] === panelColor || color[1] === panelColor;
106
- });
107
- return colorObject ? colorObject[1] : darkPanelColors.B1200S;
108
- };
109
-
110
- // used for custom panels
111
- export var getPanelBackgroundDarkModeColors = panelDarkModeColors.map(function (_ref) {
112
- var _ref2 = _slicedToArray(_ref, 2),
113
- colorName = _ref2[0],
114
- colorValue = _ref2[1];
115
- return getPanelDarkModeCSS(colorName, colorValue);
116
- }).join('\n');
117
96
  export function getPanelDarkModeCSS(colorName, colorValue) {
118
97
  return "\n &[data-panel-color=\"".concat(colorName, "\"] {\n background-color: ").concat(colorValue, " !important; // !important to override default style color\n color: ").concat(darkPanelColors.TextColor, ";\n }\n ");
119
98
  }
@@ -1,6 +1,5 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
- import { N30 } from '@atlaskit/theme/colors';
4
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
5
4
  export var buttonGroupStyle = css({
6
5
  display: 'inline-flex',
@@ -14,7 +13,7 @@ export var buttonGroupStyle = css({
14
13
  // If you make change here, change in above file as well.
15
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
16
15
  export var separatorStyles = css({
17
- background: "var(--ds-border, ".concat(N30, ")"),
16
+ background: "var(--ds-border, #091E4224)",
18
17
  width: '1px',
19
18
  height: '24px',
20
19
  display: 'inline-block',
@@ -3,7 +3,6 @@ var _templateObject;
3
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
4
  import { css } from '@emotion/react';
5
5
  import { akEditorDeleteIconColor } from '@atlaskit/editor-shared-styles';
6
- import { B200, B50, N60 } from '@atlaskit/theme/colors';
7
6
  /*
8
7
  Styles in this file are based on
9
8
  packages/editor/editor-core/src/plugins/media/styles.ts
@@ -22,4 +21,4 @@ export var handleWrapperClass = 'resizer-handle-wrapper';
22
21
  export var resizerHandleZIndex = 1;
23
22
 
24
23
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766, Seems perfectly safe to autofix, but comments would be lost…
25
- export var resizerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\twill-change: width;\n\n\t\t&:hover,\n\t\t&.display-handle {\n\t\t\t& > .", " > .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\n\t\t&.is-resizing {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t& .", " {\n\t\t\t\ttransition: none;\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tdisplay: flex;\n\t\tvisibility: hidden;\n\t\topacity: 0;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 7px;\n\t\ttransition:\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t/*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n\t\t& div[role='presentation'] {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\tmargin-top: ", ";\n\t\t\twhite-space: normal;\n\t\t}\n\n\t\t/*\n Handle Positions\n */\n\t\t&.left {\n\t\t\talign-items: flex-start;\n\t\t}\n\t\t&.right {\n\t\t\talign-items: flex-end;\n\t\t}\n\n\t\t/*\n Handle Sizing\n */\n\t\t&.small {\n\t\t\t& .", " {\n\t\t\t\theight: 43px;\n\t\t\t}\n\t\t}\n\t\t&.medium {\n\t\t\t& .", " {\n\t\t\t\theight: 64px;\n\t\t\t}\n\t\t}\n\t\t&.large {\n\t\t\t& .", " {\n\t\t\t\theight: 96px;\n\t\t\t}\n\t\t}\n\n\t\t/*\n Handle Alignment\n */\n\t\t&.sticky {\n\t\t\t& .", " {\n\t\t\t\tposition: sticky;\n\t\t\t\ttop: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\n\t\t\t& .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 0.5;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tcontent: ' ';\n\t\tdisplay: flex;\n\t\twidth: 3px;\n\t\tmargin: 0 ", ";\n\t\theight: 64px;\n\t\ttransition: background-color 0.2s;\n\t\tborder-radius: 6px;\n\t\tborder: 0;\n\t\tpadding: 0;\n\t\tz-index: 2;\n\t\toutline: none;\n\t\tmin-height: 24px;\n\t\tbackground: ", ";\n\n\t\t&:hover {\n\t\t\tcursor: col-resize;\n\t\t}\n\n\t\t&:focus {\n\t\t\tbackground: ", ";\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: ", ";\n\t\t\t\tright: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t\tleft: ", ";\n\t\t\t\tborder: 2px solid ", ";\n\t\t\t\tborder-radius: inherit;\n\t\t\t\tz-index: -1;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tvisibility: hidden;\n\t\tposition: absolute;\n\t\twidth: 7px;\n\t\theight: calc(100% - 40px);\n\t\tborder-radius: 4px;\n\t\topacity: 0;\n\t\ttransition:\n\t\t\tbackground-color 0.2s,\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t&.none {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&.shadow {\n\t\t\tbackground: ", ";\n\t\t}\n\n\t\t&.full-height {\n\t\t\tbackground: ", ";\n\t\t\theight: 100%;\n\t\t\tmin-height: 36px;\n\t\t}\n\t}\n\n\t.", " {\n\t\t& .", " {\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tdisplay: inline-block;\n\t\twidth: 100%;\n\n\t\t&.", " {\n\t\t\tpadding: 0 ", ";\n\t\t\tleft: ", ";\n\t\t}\n\t}\n\n\t// This below style is here to make sure the image width is correct when nested in a table\n\ttable .", ", table .", ".", " {\n\t\tpadding: unset;\n\t\tleft: unset;\n\t}\n"])), resizerItemClassName, handleWrapperClass, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), resizerHandleClassName, "var(--ds-space-negative-200, -16px)", resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, ".concat(N60, ")"), "var(--ds-border-selected, #0C66E4)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-border-focused, #388BFF)", resizerHandleTrackClassName, "var(--ds-background-selected, ".concat(B50, ")"), "var(--ds-background-selected, ".concat(B50, ")"), akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHoverZoneClassName, resizerExtendedZone, "var(--ds-space-150, 12px)", "var(--ds-space-negative-150, -12px)", resizerHoverZoneClassName, resizerHoverZoneClassName, resizerExtendedZone);
24
+ export var resizerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\twill-change: width;\n\n\t\t&:hover,\n\t\t&.display-handle {\n\t\t\t& > .", " > .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\n\t\t&.is-resizing {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t& .", " {\n\t\t\t\ttransition: none;\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tdisplay: flex;\n\t\tvisibility: hidden;\n\t\topacity: 0;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 7px;\n\t\ttransition:\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t/*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n\t\t& div[role='presentation'] {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\tmargin-top: ", ";\n\t\t\twhite-space: normal;\n\t\t}\n\n\t\t/*\n Handle Positions\n */\n\t\t&.left {\n\t\t\talign-items: flex-start;\n\t\t}\n\t\t&.right {\n\t\t\talign-items: flex-end;\n\t\t}\n\n\t\t/*\n Handle Sizing\n */\n\t\t&.small {\n\t\t\t& .", " {\n\t\t\t\theight: 43px;\n\t\t\t}\n\t\t}\n\t\t&.medium {\n\t\t\t& .", " {\n\t\t\t\theight: 64px;\n\t\t\t}\n\t\t}\n\t\t&.large {\n\t\t\t& .", " {\n\t\t\t\theight: 96px;\n\t\t\t}\n\t\t}\n\n\t\t/*\n Handle Alignment\n */\n\t\t&.sticky {\n\t\t\t& .", " {\n\t\t\t\tposition: sticky;\n\t\t\t\ttop: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\n\t\t\t& .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 0.5;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tcontent: ' ';\n\t\tdisplay: flex;\n\t\twidth: 3px;\n\t\tmargin: 0 ", ";\n\t\theight: 64px;\n\t\ttransition: background-color 0.2s;\n\t\tborder-radius: 6px;\n\t\tborder: 0;\n\t\tpadding: 0;\n\t\tz-index: 2;\n\t\toutline: none;\n\t\tmin-height: 24px;\n\t\tbackground: ", ";\n\n\t\t&:hover {\n\t\t\tcursor: col-resize;\n\t\t}\n\n\t\t&:focus {\n\t\t\tbackground: ", ";\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: ", ";\n\t\t\t\tright: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t\tleft: ", ";\n\t\t\t\tborder: 2px solid ", ";\n\t\t\t\tborder-radius: inherit;\n\t\t\t\tz-index: -1;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tvisibility: hidden;\n\t\tposition: absolute;\n\t\twidth: 7px;\n\t\theight: calc(100% - 40px);\n\t\tborder-radius: 4px;\n\t\topacity: 0;\n\t\ttransition:\n\t\t\tbackground-color 0.2s,\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t&.none {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&.shadow {\n\t\t\tbackground: ", ";\n\t\t}\n\n\t\t&.full-height {\n\t\t\tbackground: ", ";\n\t\t\theight: 100%;\n\t\t\tmin-height: 36px;\n\t\t}\n\t}\n\n\t.", " {\n\t\t& .", " {\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tdisplay: inline-block;\n\t\twidth: 100%;\n\n\t\t&.", " {\n\t\t\tpadding: 0 ", ";\n\t\t\tleft: ", ";\n\t\t}\n\t}\n\n\t// This below style is here to make sure the image width is correct when nested in a table\n\ttable .", ", table .", ".", " {\n\t\tpadding: unset;\n\t\tleft: unset;\n\t}\n"])), resizerItemClassName, handleWrapperClass, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused, #388BFF)", resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), resizerHandleClassName, "var(--ds-space-negative-200, -16px)", resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", resizerHandleThumbClassName, "var(--ds-border-focused, #388BFF)", resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, #091E4224)", "var(--ds-border-selected, #0C66E4)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-border-focused, #388BFF)", resizerHandleTrackClassName, "var(--ds-background-selected, #E9F2FF)", "var(--ds-background-selected, #E9F2FF)", akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, #388BFF)", resizerHoverZoneClassName, resizerExtendedZone, "var(--ds-space-150, 12px)", "var(--ds-space-negative-150, -12px)", resizerHoverZoneClassName, resizerHoverZoneClassName, resizerExtendedZone);
@@ -1,14 +1,13 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
3
  import { akEditorLineHeight } from '@atlaskit/editor-shared-styles';
4
- import { N30A } from '@atlaskit/theme/colors';
5
4
  // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
6
5
  export var ruleSharedStyles = function ruleSharedStyles() {
7
6
  return css({
8
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
9
8
  '& hr': {
10
9
  border: 'none',
11
- backgroundColor: "var(--ds-border, ".concat(N30A, ")"),
10
+ backgroundColor: "var(--ds-border, #091E4224)",
12
11
  // 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
13
12
  margin: "".concat(akEditorLineHeight, "em 0"),
14
13
  height: '2px',
@@ -5,7 +5,6 @@ var _css;
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { css } from '@emotion/react';
7
7
  import { akEditorShadowZIndex } from '@atlaskit/editor-shared-styles';
8
- import { N40A } from '@atlaskit/theme/colors';
9
8
  import { shadowClassNames } from '../../ui/OverflowShadow';
10
9
  import { shadowObserverClassNames } from '../../ui/OverflowShadow/shadowObserver';
11
10
  var shadowWidth = 8;
@@ -36,12 +35,12 @@ var shadowSharedStyle = css((_css = {}, _defineProperty(_css, "& .".concat(shado
36
35
  }), _defineProperty(_css, "& .".concat(shadowClassNames.RIGHT_SHADOW, ", .").concat(shadowClassNames.LEFT_SHADOW), {
37
36
  position: 'relative'
38
37
  }), _defineProperty(_css, "& .".concat(shadowClassNames.LEFT_SHADOW, "::before"), {
39
- background: "linear-gradient( to left, transparent 0, ".concat("var(--ds-shadow-overflow-spread, ".concat(N40A, ")"), " 140% ), linear-gradient( to right, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px )"),
38
+ background: "linear-gradient( to left, transparent 0, ".concat("var(--ds-shadow-overflow-spread, #091e4229)", " 140% ), linear-gradient( to right, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px )"),
40
39
  top: '0px',
41
40
  left: 0,
42
41
  display: 'block'
43
42
  }), _defineProperty(_css, "& .".concat(shadowClassNames.RIGHT_SHADOW, "::after"), {
44
- background: "linear-gradient( to right, transparent 0, ".concat("var(--ds-shadow-overflow-spread, ".concat(N40A, ")"), " 140% ), linear-gradient( to left, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px )"),
43
+ background: "linear-gradient( to right, transparent 0, ".concat("var(--ds-shadow-overflow-spread, #091e4229)", " 140% ), linear-gradient( to left, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px )"),
45
44
  right: '0px',
46
45
  top: '0px',
47
46
  display: 'block'