@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
@@ -12,7 +12,6 @@ var _debounce = _interopRequireDefault(require("lodash/debounce"));
12
12
  var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
13
13
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
14
14
  var _comment = _interopRequireDefault(require("@atlaskit/icon/glyph/comment"));
15
- var _constants = require("@atlaskit/theme/constants");
16
15
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
17
16
  var _media = require("../media");
18
17
  /**
@@ -35,7 +34,7 @@ var commentBadgeEditorOverrides = function commentBadgeEditorOverrides(badgeOffs
35
34
  return (0, _react2.css)({
36
35
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
37
36
  right: badgeOffsetRight,
38
- zIndex: _constants.layers.card()
37
+ zIndex: 100
39
38
  });
40
39
  };
41
40
  var getBadgeSize = exports.getBadgeSize = function getBadgeSize(width, height) {
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "92.1.1";
20
+ var packageVersion = "93.0.0";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -6,12 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.layoutToWidth = exports.getTableWidthWithNumberColumn = exports.getTableContainerWidth = exports.getParentNodeWidth = void 0;
7
7
  var _utils = require("@atlaskit/editor-prosemirror/utils");
8
8
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
9
- var _constants = require("@atlaskit/theme/constants");
10
9
  var _extension = require("../styles/shared/extension");
11
10
  var _layout = require("../styles/shared/layout");
12
11
  var _breakout = require("../utils/breakout");
13
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
14
-
12
+ var GRID_SIZE = 8;
15
13
  var layoutToWidth = exports.layoutToWidth = {
16
14
  default: _editorSharedStyles.akEditorDefaultLayoutWidth,
17
15
  wide: _editorSharedStyles.akEditorWideLayoutWidth,
@@ -76,18 +74,15 @@ var getParentNodeWidth = exports.getParentNodeWidth = function getParentNodeWidt
76
74
  case schema.nodes.extensionFrame:
77
75
  parentWidth -= _extension.BODIED_EXT_PADDING * 2;
78
76
  break;
79
-
80
- // TODO: Migrate away from gridSize
81
- // Recommendation: Replace gridSize with 8
82
77
  case schema.nodes.expand:
83
78
  // padding
84
- parentWidth -= (0, _constants.gridSize)() * 2;
79
+ parentWidth -= GRID_SIZE * 2;
85
80
  // gutter offset
86
- parentWidth += (0, _constants.gridSize)() * 1.5 * 2;
81
+ parentWidth += GRID_SIZE * 1.5 * 2;
87
82
  // padding right
88
- parentWidth -= (0, _constants.gridSize)();
83
+ parentWidth -= GRID_SIZE;
89
84
  // padding left
90
- parentWidth -= (0, _constants.gridSize)() * 4 - (0, _constants.gridSize)() / 2;
85
+ parentWidth -= GRID_SIZE * 4 - GRID_SIZE / 2;
91
86
  break;
92
87
  }
93
88
  parentWidth -= 2; // border
package/dist/cjs/panel.js CHANGED
@@ -21,18 +21,6 @@ Object.defineProperty(exports, "darkPanelColors", {
21
21
  return _panel.darkPanelColors;
22
22
  }
23
23
  });
24
- Object.defineProperty(exports, "getPanelBackgroundDarkModeColors", {
25
- enumerable: true,
26
- get: function get() {
27
- return _panel.getPanelBackgroundDarkModeColors;
28
- }
29
- });
30
- Object.defineProperty(exports, "getPanelDarkColor", {
31
- enumerable: true,
32
- get: function get() {
33
- return _panel.getPanelDarkColor;
34
- }
35
- });
36
24
  Object.defineProperty(exports, "getPanelTypeBackground", {
37
25
  enumerable: true,
38
26
  get: function get() {
@@ -22,7 +22,6 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
22
22
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
23
23
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
24
24
  var _react = _interopRequireDefault(require("react"));
25
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
26
25
  var _analytics = require("../analytics");
27
26
  var _eventDispatcher = require("../event-dispatcher");
28
27
  var _ErrorBoundary = require("../ui/ErrorBoundary");
@@ -151,48 +150,44 @@ var ReactNodeView = exports.default = /*#__PURE__*/function () {
151
150
 
152
151
  // move the contentDOM node inside the inner reference after rendering
153
152
  if (node && contentDOM && !node.contains(contentDOM)) {
154
- if ((0, _platformFeatureFlags.fg)('platform_editor_react_18_prosemirror_sel_resync')) {
155
- var _this$view$state$sele;
156
- // @ts-ignore - ignoreMutation may not be declared
157
- oldIgnoreMutation = this.ignoreMutation; // store ref to previous ignoreMutation
153
+ var _this$view$state$sele;
154
+ // @ts-ignore - ignoreMutation may not be declared
155
+ oldIgnoreMutation = this.ignoreMutation; // store ref to previous ignoreMutation
158
156
 
159
- // ignore all mutations caused by ProseMirror's MutationObserver triggering
160
- // after DOM change, except selection changes
161
- // @ts-ignore ProseMirror adds selection type to MutationRecord
162
- this.ignoreMutation = function (m) {
163
- var isSelectionMutation = m.type === 'selection';
164
- if (!isSelectionMutation) {
165
- mutationsIgnored = true;
166
- }
167
- return !isSelectionMutation;
168
- };
169
-
170
- // capture document selection state before React DOM changes triggers ProseMirror selection change transaction
171
- if (this.view.state.selection.visible) {
172
- selectionBookmark = this.view.state.selection.getBookmark();
157
+ // ignore all mutations caused by ProseMirror's MutationObserver triggering
158
+ // after DOM change, except selection changes
159
+ // @ts-ignore ProseMirror adds selection type to MutationRecord
160
+ this.ignoreMutation = function (m) {
161
+ var isSelectionMutation = m.type === 'selection';
162
+ if (!isSelectionMutation) {
163
+ mutationsIgnored = true;
173
164
  }
165
+ return !isSelectionMutation;
166
+ };
174
167
 
175
- // ... and capture parent offset before DOM change
176
- 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) {
177
- var _this$view$state$sele2, _this$view$state$sele3;
178
- 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;
179
- }
168
+ // capture document selection state before React DOM changes triggers ProseMirror selection change transaction
169
+ if (this.view.state.selection.visible) {
170
+ selectionBookmark = this.view.state.selection.getBookmark();
180
171
  }
181
- node.appendChild(contentDOM);
182
- if ((0, _platformFeatureFlags.fg)('platform_editor_react_18_prosemirror_sel_resync')) {
183
- requestAnimationFrame(function () {
184
- // Reset ignoreMutation after frame ....
185
- // @ts-ignore - this may not have been declared by implementing class
186
- _this4.ignoreMutation = oldIgnoreMutation;
187
172
 
188
- // only trigger selection re-sync if the selection is not at the start of the
189
- // node, and DOM mutations were ignored
190
- if (selectionBookmark && mutationsIgnored && parentOffset > 0) {
191
- // ... and dispatch expected selection state
192
- _this4.view.dispatch(_this4.view.state.tr.setSelection(selectionBookmark.resolve(_this4.view.state.tr.doc)));
193
- }
194
- });
173
+ // ... and capture parent offset before DOM change
174
+ 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) {
175
+ var _this$view$state$sele2, _this$view$state$sele3;
176
+ 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;
195
177
  }
178
+ node.appendChild(contentDOM);
179
+ requestAnimationFrame(function () {
180
+ // Reset ignoreMutation after frame ....
181
+ // @ts-ignore - this may not have been declared by implementing class
182
+ _this4.ignoreMutation = oldIgnoreMutation;
183
+
184
+ // only trigger selection re-sync if the selection is not at the start of the
185
+ // node, and DOM mutations were ignored
186
+ if (selectionBookmark && mutationsIgnored && parentOffset > 0) {
187
+ // ... and dispatch expected selection state
188
+ _this4.view.dispatch(_this4.view.state.tr.setSelection(selectionBookmark.resolve(_this4.view.state.tr.doc)));
189
+ }
190
+ });
196
191
  }
197
192
  }
198
193
  }, {
@@ -8,7 +8,6 @@ exports.blockAnnotationPrefix = exports.annotationSharedStyles = exports.annotat
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
10
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
- var _colors = require("@atlaskit/theme/colors");
12
11
  var _templateObject, _templateObject2; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
12
  var annotationPrefix = exports.annotationPrefix = 'ak-editor-annotation';
14
13
  var AnnotationSharedClassNames = exports.AnnotationSharedClassNames = {
@@ -22,8 +21,6 @@ var BlockAnnotationSharedClassNames = exports.BlockAnnotationSharedClassNames =
22
21
  blur: "".concat(blockAnnotationPrefix, "-blur"),
23
22
  draft: "".concat(blockAnnotationPrefix, "-draft")
24
23
  };
25
- var Yellow100 = 'rgb(255, 247, 214)';
26
- var Y200a = 'rgba(255, 196, 0, 0.82)';
27
24
  var AnnotationSharedCSSByState = exports.AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
28
25
  if ((0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes')) {
29
26
  // NOTE: These styles are shared between renderer and editor. Sometimes they
@@ -41,20 +38,20 @@ var AnnotationSharedCSSByState = exports.AnnotationSharedCSSByState = function A
41
38
  } : {
42
39
  paddingTop: '4px',
43
40
  border: 'none',
44
- boxShadow: "0 2px 0 0 ".concat("var(--ds-border-accent-yellow, ".concat(Y200a, ")"))
41
+ boxShadow: "0 2px 0 0 ".concat("var(--ds-border-accent-yellow, #B38600)")
45
42
  },
46
43
  '&:has(.date-lozenger-container)': {
47
44
  paddingTop: '2px'
48
45
  }
49
46
  },
50
47
  focus: (0, _react.css)({
51
- background: "var(--ds-background-accent-yellow-subtler, ".concat(_colors.Y75, ")"),
52
- borderBottomColor: "var(--ds-border-accent-yellow, ".concat(_colors.Y300, ")"),
53
- boxShadow: "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(_colors.N60A, ", -1px 2px 3px ").concat(_colors.N60A), ")")
48
+ background: "var(--ds-background-accent-yellow-subtler, #F8E6A0)",
49
+ borderBottomColor: "var(--ds-border-accent-yellow, #B38600)",
50
+ boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)"
54
51
  }),
55
52
  blur: (0, _react.css)({
56
- background: "var(--ds-background-accent-yellow-subtlest, ".concat(Yellow100, ")"),
57
- borderBottomColor: "var(--ds-border-accent-yellow, ".concat(Y200a, ")")
53
+ background: "var(--ds-background-accent-yellow-subtlest, #FFF7D6)",
54
+ borderBottomColor: "var(--ds-border-accent-yellow, #B38600)"
58
55
  })
59
56
  };
60
57
  } else {
@@ -62,15 +59,15 @@ var AnnotationSharedCSSByState = exports.AnnotationSharedCSSByState = function A
62
59
  focus: (0, _react.css)({
63
60
  // Background is not coming through in confluence, suspecting to be caused by some specific combination of
64
61
  // emotion and token look up
65
- background: "var(--ds-background-accent-yellow-subtler, ".concat(_colors.Y75, ")"),
66
- borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, ".concat(_colors.Y300, ")")),
62
+ background: "var(--ds-background-accent-yellow-subtler, #F8E6A0)",
63
+ borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, #B38600)"),
67
64
  // TODO: https://product-fabric.atlassian.net/browse/DSP-4147
68
- boxShadow: "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(_colors.N60A, ", -1px 2px 3px ").concat(_colors.N60A), ")"),
65
+ boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)",
69
66
  cursor: 'pointer'
70
67
  }),
71
68
  blur: (0, _react.css)({
72
- background: "var(--ds-background-accent-yellow-subtlest, ".concat(Yellow100, ")"),
73
- borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, ".concat(Y200a, ")")),
69
+ background: "var(--ds-background-accent-yellow-subtlest, #FFF7D6)",
70
+ borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, #B38600)"),
74
71
  cursor: 'pointer'
75
72
  })
76
73
  };
@@ -8,8 +8,6 @@ exports.codeBlockSharedStyles = exports.codeBlockInListSafariFix = exports.CodeB
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
10
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
11
- var _colors = require("@atlaskit/theme/colors");
12
- var _constants = require("@atlaskit/theme/constants");
13
11
  var _templateObject, _templateObject2;
14
12
  /* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Should be safe to autofix, but ignoring for now */
15
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -29,9 +27,9 @@ var CodeBlockSharedCssClassName = exports.CodeBlockSharedCssClassName = {
29
27
  CODEBLOCK_LINE_NUMBER_GUTTER_FG: 'line-number-gutter--fg'
30
28
  };
31
29
  var codeBlockSharedStyles = exports.codeBlockSharedStyles = function codeBlockSharedStyles() {
32
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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)", _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.akEditorCodeFontFamily, _editorSharedStyles.akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, ".concat(_colors.N20, ")"), "var(--ds-border-radius, 3px)", (0, _editorSharedStyles.overflowShadow)({
30
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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)", _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.akEditorCodeFontFamily, _editorSharedStyles.akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, #091E420F)", "var(--ds-border-radius, 3px)", (0, _editorSharedStyles.overflowShadow)({
33
31
  leftCoverWidth: "var(--ds-space-300, 24px)"
34
- }), "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(_colors.N30, ")"), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, ".concat(_colors.N400, ")"), (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER_FG, "var(--ds-background-neutral, ".concat(_colors.N30, ")"), "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-text, ".concat(_colors.N800, ")"), "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, "var(--ds-text, ".concat(_colors.N800, ")"), "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET, (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, #505F79)");
32
+ }), "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)", (0, _editorSharedStyles.relativeFontSizeToBase16)(14), CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER_FG, "var(--ds-background-neutral, #091E420F)", "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-text, #172B4D)", "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, "var(--ds-text, #172B4D)", "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET, (0, _editorSharedStyles.relativeFontSizeToBase16)(14), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, #505F79)");
35
33
  };
36
34
 
37
35
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -8,14 +8,13 @@ exports.codeMarkSharedStyles = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
10
  var _inline = require("@atlaskit/code/inline");
11
- var _colors = require("@atlaskit/theme/colors");
12
11
  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; }
13
12
  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) { (0, _defineProperty2.default)(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; } // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
13
  var codeMarkSharedStyles = exports.codeMarkSharedStyles = function codeMarkSharedStyles() {
15
14
  return (0, _react.css)({
16
15
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
17
16
  '.code': _objectSpread({
18
- '--ds--code--bg-color': "var(--ds-background-neutral, ".concat(_colors.N30A, ")")
17
+ '--ds--code--bg-color': "var(--ds-background-neutral, #091E420F)"
19
18
  }, (0, _inline.getCodeStyles)())
20
19
  });
21
20
  };
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.gridStyles = exports.GRID_GUTTER = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
9
- var _colors = require("@atlaskit/theme/colors");
10
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
10
 
12
11
  var GRID_GUTTER = exports.GRID_GUTTER = 12;
@@ -31,7 +30,7 @@ var gridStyles = exports.gridStyles = (0, _react.css)({
31
30
  },
32
31
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
33
32
  '.gridLine': {
34
- borderLeft: "1px solid ".concat("var(--ds-border, ".concat(_colors.N30A, ")")),
33
+ borderLeft: "1px solid ".concat("var(--ds-border, #091E4224)"),
35
34
  display: 'inline-block',
36
35
  boxSizing: 'border-box',
37
36
  height: '100%',
@@ -42,6 +41,6 @@ var gridStyles = exports.gridStyles = (0, _react.css)({
42
41
  },
43
42
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
44
43
  '.highlight': {
45
- borderLeft: "1px solid ".concat("var(--ds-border-focused, ".concat(_colors.B200, ")"))
44
+ borderLeft: "1px solid ".concat("var(--ds-border-focused, #388BFF)")
46
45
  }
47
46
  });
@@ -1,47 +1,86 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.headingsSharedStyles = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
7
  var _react = require("@emotion/react");
10
- var _typography = require("@atlaskit/theme/typography");
11
- 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; }
12
- 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) { (0, _defineProperty2.default)(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; } /* eslint-disable @atlaskit/design-system/use-tokens-space */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ /* eslint-disable @atlaskit/design-system/use-tokens-space */
9
+ /* eslint-disable @atlaskit/design-system/use-tokens-typography */
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
+
13
12
  // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
14
13
  // text sizing prototype: http://proto/fabricrender/
15
14
  var headingsSharedStyles = exports.headingsSharedStyles = function headingsSharedStyles() {
16
15
  return (0, _react.css)({
17
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
18
- '& h1': _objectSpread(_objectSpread({}, (0, _typography.h700)()), {}, {
17
+ '& h1': {
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
19
+ fontSize: "".concat(24 / 14, "em"),
20
+ fontStyle: 'inherit',
21
+ lineHeight: 28 / 24,
22
+ color: "var(--ds-text, #172B4D)",
23
+ fontWeight: "var(--ds-font-weight-medium, 500)",
24
+ letterSpacing: "-0.01em",
19
25
  marginBottom: 0,
20
26
  marginTop: '1.667em'
21
- }),
27
+ },
22
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
23
- '& h2': _objectSpread(_objectSpread({}, (0, _typography.h600)()), {}, {
29
+ '& h2': {
30
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
31
+ fontSize: "".concat(20 / 14, "em"),
32
+ fontStyle: 'inherit',
33
+ lineHeight: 24 / 20,
34
+ color: "var(--ds-text, #172B4D)",
35
+ fontWeight: "var(--ds-font-weight-medium, 500)",
36
+ letterSpacing: "-0.008em",
24
37
  marginTop: '1.8em',
25
38
  marginBottom: 0
26
- }),
39
+ },
27
40
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
28
- '& h3': _objectSpread(_objectSpread({}, (0, _typography.h500)()), {}, {
41
+ '& h3': {
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
43
+ fontSize: "".concat(16 / 14, "em"),
44
+ fontStyle: 'inherit',
45
+ lineHeight: 20 / 16,
46
+ color: "var(--ds-text, #172B4D)",
47
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
48
+ letterSpacing: "-0.006em",
29
49
  marginTop: '2em',
30
50
  marginBottom: 0
31
- }),
51
+ },
32
52
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
33
- '& h4': _objectSpread(_objectSpread({}, (0, _typography.h400)()), {}, {
53
+ '& h4': {
54
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
55
+ fontSize: "".concat(14 / 14, "em"),
56
+ fontStyle: 'inherit',
57
+ lineHeight: 16 / 14,
58
+ color: "var(--ds-text, #172B4D)",
59
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
60
+ letterSpacing: "-0.003em",
34
61
  marginTop: '1.357em'
35
- }),
62
+ },
36
63
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
37
- '& h5': _objectSpread(_objectSpread({}, (0, _typography.h300)()), {}, {
64
+ '& h5': {
65
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
66
+ fontSize: "".concat(12 / 14, "em"),
67
+ fontStyle: 'inherit',
68
+ lineHeight: 16 / 12,
69
+ color: "var(--ds-text, #172B4D)",
70
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
38
71
  marginTop: '1.667em',
39
72
  textTransform: 'none'
40
- }),
73
+ },
41
74
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
42
- '& h6': _objectSpread(_objectSpread({}, (0, _typography.h100)()), {}, {
75
+ '& h6': {
76
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
77
+ fontSize: "".concat(11 / 14, "em"),
78
+ fontStyle: 'inherit',
79
+ lineHeight: 16 / 11,
80
+ color: "var(--ds-text-subtlest, #626F86)",
81
+ fontWeight: "var(--ds-font-weight-bold, 700)",
43
82
  marginTop: '1.455em',
44
83
  textTransform: 'none'
45
- })
84
+ }
46
85
  });
47
86
  };
@@ -4,30 +4,28 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.getPanelDarkColor = exports.getPanelBackgroundDarkModeColors = exports.darkPanelColors = exports.PanelSharedSelectors = exports.PanelSharedCssClassName = void 0;
7
+ exports.darkPanelColors = exports.PanelSharedSelectors = exports.PanelSharedCssClassName = void 0;
8
8
  exports.getPanelDarkModeCSS = getPanelDarkModeCSS;
9
9
  exports.panelSharedStylesWithoutPrefix = exports.panelSharedStyles = exports.getPanelTypeBackgroundNoTokens = exports.getPanelTypeBackground = void 0;
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
12
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
12
  var _react = require("@emotion/react");
14
13
  var _adfSchema = require("@atlaskit/adf-schema");
15
14
  var _editorPalette = require("@atlaskit/editor-palette");
16
15
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
17
16
  var _consts = require("@atlaskit/editor-shared-styles/consts");
18
17
  var _emoji = require("@atlaskit/emoji");
19
- var _colors = require("@atlaskit/theme/colors");
20
18
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
21
19
  var _templateObject;
22
20
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
23
21
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
24
22
  var lightPanelColors = {
25
- info: _colors.B50,
26
- note: _colors.P50,
27
- tip: _colors.G50,
28
- success: _colors.G50,
29
- warning: _colors.Y50,
30
- error: _colors.R50
23
+ info: '#DEEBFF',
24
+ note: '#EAE6FF',
25
+ tip: '#E3FCEF',
26
+ success: '#E3FCEF',
27
+ warning: '#FFFAE6',
28
+ error: '#FFEBE6'
31
29
  };
32
30
  var darkPanelColors = exports.darkPanelColors = {
33
31
  // standard panels
@@ -92,37 +90,18 @@ var darkPanelColors = exports.darkPanelColors = {
92
90
  TextColor: '#D9DDE3'
93
91
  };
94
92
  var lightIconColor = {
95
- info: "var(--ds-icon-information, ".concat(_colors.B400, ")"),
96
- note: "var(--ds-icon-discovery, ".concat(_colors.P400, ")"),
97
- tip: "var(--ds-icon-success, ".concat(_colors.G400, ")"),
98
- success: "var(--ds-icon-success, ".concat(_colors.G400, ")"),
99
- warning: "var(--ds-icon-warning, ".concat(_colors.Y400, ")"),
100
- error: "var(--ds-icon-danger, ".concat(_colors.R400, ")")
93
+ info: "var(--ds-icon-information, #1D7AFC)",
94
+ note: "var(--ds-icon-discovery, #8270DB)",
95
+ tip: "var(--ds-icon-success, #22A06B)",
96
+ success: "var(--ds-icon-success, #22A06B)",
97
+ warning: "var(--ds-icon-warning, #E56910)",
98
+ error: "var(--ds-icon-danger, #C9372C)"
101
99
  };
102
100
 
103
101
  // New custom icons are a little smaller than predefined icons.
104
102
  // To fix alignment issues with custom icons, vertical alignment is updated.
105
103
  var panelEmojiSpriteVerticalAlignment = -(8 * 3 - _consts.akEditorCustomIconSize) / 2;
106
104
  var panelEmojiImageVerticalAlignment = panelEmojiSpriteVerticalAlignment - 1;
107
-
108
- // TODO: https://product-fabric.atlassian.net/browse/DSP-4066
109
- var panelDarkModeColors = [[_colors.B50, darkPanelColors.B1200S], [_colors.B75, darkPanelColors.B900], [_colors.B100, darkPanelColors.B800S], [_colors.N0, darkPanelColors.LightGray], [_colors.N20, darkPanelColors.Gray], [_colors.N60, darkPanelColors.DarkGray], [_colors.T50, darkPanelColors.T1200S], [_colors.T75, darkPanelColors.T900], [_colors.T100, darkPanelColors.T900S], [_colors.G50, darkPanelColors.G1200S], [_colors.G75, darkPanelColors.G900], [_colors.G200, darkPanelColors.G900S], [_colors.Y50, darkPanelColors.Y1200S], [_colors.Y75, darkPanelColors.Y900], [_colors.Y200, darkPanelColors.Y800S], [_colors.R50, darkPanelColors.R1200S], [_colors.R75, darkPanelColors.R900], [_colors.R100, darkPanelColors.R800S], [_colors.P50, darkPanelColors.P1200S], [_colors.P75, darkPanelColors.P900], [_colors.P100, darkPanelColors.P800S]];
110
-
111
- // used for custom panels
112
- var getPanelDarkColor = exports.getPanelDarkColor = function getPanelDarkColor(panelColor) {
113
- var colorObject = panelDarkModeColors.find(function (color) {
114
- return color[0] === panelColor || color[1] === panelColor;
115
- });
116
- return colorObject ? colorObject[1] : darkPanelColors.B1200S;
117
- };
118
-
119
- // used for custom panels
120
- var getPanelBackgroundDarkModeColors = exports.getPanelBackgroundDarkModeColors = panelDarkModeColors.map(function (_ref) {
121
- var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
122
- colorName = _ref2[0],
123
- colorValue = _ref2[1];
124
- return getPanelDarkModeCSS(colorName, colorValue);
125
- }).join('\n');
126
105
  function getPanelDarkModeCSS(colorName, colorValue) {
127
106
  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 ");
128
107
  }
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.wrapperStyle = exports.triggerWrapperStylesWithPadding = exports.triggerWrapperStyles = exports.separatorStyles = exports.buttonGroupStyle = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _colors = require("@atlaskit/theme/colors");
9
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
9
 
11
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -21,7 +20,7 @@ var buttonGroupStyle = exports.buttonGroupStyle = (0, _react.css)({
21
20
  // If you make change here, change in above file as well.
22
21
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
23
22
  var separatorStyles = exports.separatorStyles = (0, _react.css)({
24
- background: "var(--ds-border, ".concat(_colors.N30, ")"),
23
+ background: "var(--ds-border, #091E4224)",
25
24
  width: '1px',
26
25
  height: '24px',
27
26
  display: 'inline-block',
@@ -8,7 +8,6 @@ exports.resizerStyles = exports.resizerItemClassName = exports.resizerHoverZoneC
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
10
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
11
- var _colors = require("@atlaskit/theme/colors");
12
11
  var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
12
  /*
14
13
  Styles in this file are based on
@@ -28,4 +27,4 @@ var handleWrapperClass = exports.handleWrapperClass = 'resizer-handle-wrapper';
28
27
  var resizerHandleZIndex = exports.resizerHandleZIndex = 1;
29
28
 
30
29
  // 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…
31
- var resizerStyles = exports.resizerStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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(_colors.B200, ")"), resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(_editorSharedStyles.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(_colors.B200, ")"), resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, ".concat(_colors.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(_colors.B50, ")"), "var(--ds-background-selected, ".concat(_colors.B50, ")"), akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(_colors.B200, ")"), resizerHoverZoneClassName, resizerExtendedZone, "var(--ds-space-150, 12px)", "var(--ds-space-negative-150, -12px)", resizerHoverZoneClassName, resizerHoverZoneClassName, resizerExtendedZone);
30
+ var resizerStyles = exports.resizerStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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(_editorSharedStyles.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);
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.ruleSharedStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
9
- var _colors = require("@atlaskit/theme/colors");
10
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
10
 
12
11
  // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
@@ -15,7 +14,7 @@ var ruleSharedStyles = exports.ruleSharedStyles = function ruleSharedStyles() {
15
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
16
15
  '& hr': {
17
16
  border: 'none',
18
- backgroundColor: "var(--ds-border, ".concat(_colors.N30A, ")"),
17
+ backgroundColor: "var(--ds-border, #091E4224)",
19
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
20
19
  margin: "".concat(_editorSharedStyles.akEditorLineHeight, "em 0"),
21
20
  height: '2px',