@atlaskit/editor-common 78.11.5 → 78.11.6

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 (180) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/cjs/collab/index.js +38 -11
  3. package/dist/cjs/keymaps/index.js +9 -6
  4. package/dist/cjs/media-inline/styles.js +2 -0
  5. package/dist/cjs/monitoring/error.js +1 -1
  6. package/dist/cjs/selection/gap-cursor/styles.js +12 -3
  7. package/dist/cjs/styles/shared/annotation.js +18 -4
  8. package/dist/cjs/styles/shared/block-marks.js +1 -0
  9. package/dist/cjs/styles/shared/blockquote.js +29 -4
  10. package/dist/cjs/styles/shared/code-block.js +1 -0
  11. package/dist/cjs/styles/shared/code-mark.js +8 -3
  12. package/dist/cjs/styles/shared/column-layout.js +17 -3
  13. package/dist/cjs/styles/shared/date.js +4 -3
  14. package/dist/cjs/styles/shared/expand.js +3 -5
  15. package/dist/cjs/styles/shared/headings.js +34 -3
  16. package/dist/cjs/styles/shared/indentation.js +28 -5
  17. package/dist/cjs/styles/shared/link.js +5 -4
  18. package/dist/cjs/styles/shared/lists.js +2 -0
  19. package/dist/cjs/styles/shared/media-single.js +39 -3
  20. package/dist/cjs/styles/shared/panel.js +5 -2
  21. package/dist/cjs/styles/shared/paragraph.js +11 -4
  22. package/dist/cjs/styles/shared/plugins.js +30 -7
  23. package/dist/cjs/styles/shared/resizer.js +2 -0
  24. package/dist/cjs/styles/shared/rule.js +10 -4
  25. package/dist/cjs/styles/shared/shadow.js +1 -2
  26. package/dist/cjs/styles/shared/smartCard.js +2 -0
  27. package/dist/cjs/styles/shared/table.js +2 -0
  28. package/dist/cjs/styles/shared/tableCell.js +2 -4
  29. package/dist/cjs/styles/shared/text-color.js +8 -4
  30. package/dist/cjs/styles/shared/unsupported-content.js +2 -0
  31. package/dist/cjs/styles/shared/whitespace.js +4 -4
  32. package/dist/cjs/ui/DropList/index.js +1 -1
  33. package/dist/cjs/ui/MediaSingle/styled.js +16 -8
  34. package/dist/cjs/ui/ResizerLegacy/styled.js +1 -0
  35. package/dist/cjs/ui/clear-next-sibling-margin-top.js +12 -5
  36. package/dist/es2019/collab/index.js +34 -41
  37. package/dist/es2019/keymaps/index.js +7 -11
  38. package/dist/es2019/media-inline/media-inline-image-card.js +0 -1
  39. package/dist/es2019/media-inline/styles.js +2 -0
  40. package/dist/es2019/media-inline/views/icon-wrapper.js +0 -1
  41. package/dist/es2019/monitoring/error.js +1 -1
  42. package/dist/es2019/selection/gap-cursor/styles.js +9 -7
  43. package/dist/es2019/styles/shared/annotation.js +13 -12
  44. package/dist/es2019/styles/shared/block-marks.js +1 -0
  45. package/dist/es2019/styles/shared/blockquote.js +27 -34
  46. package/dist/es2019/styles/shared/code-block.js +1 -0
  47. package/dist/es2019/styles/shared/code-mark.js +5 -5
  48. package/dist/es2019/styles/shared/column-layout.js +15 -17
  49. package/dist/es2019/styles/shared/date.js +4 -4
  50. package/dist/es2019/styles/shared/expand.js +3 -4
  51. package/dist/es2019/styles/shared/headings.js +36 -35
  52. package/dist/es2019/styles/shared/indentation.js +26 -22
  53. package/dist/es2019/styles/shared/link.js +4 -4
  54. package/dist/es2019/styles/shared/lists.js +2 -0
  55. package/dist/es2019/styles/shared/media-single.js +42 -65
  56. package/dist/es2019/styles/shared/panel.js +5 -5
  57. package/dist/es2019/styles/shared/paragraph.js +10 -9
  58. package/dist/es2019/styles/shared/plugins.js +29 -34
  59. package/dist/es2019/styles/shared/resizer.js +2 -0
  60. package/dist/es2019/styles/shared/rule.js +9 -8
  61. package/dist/es2019/styles/shared/shadow.js +1 -2
  62. package/dist/es2019/styles/shared/smartCard.js +2 -0
  63. package/dist/es2019/styles/shared/table.js +2 -0
  64. package/dist/es2019/styles/shared/tableCell.js +1 -3
  65. package/dist/es2019/styles/shared/text-color.js +7 -8
  66. package/dist/es2019/styles/shared/unsupported-content.js +2 -0
  67. package/dist/es2019/styles/shared/whitespace.js +4 -4
  68. package/dist/es2019/ui/DropList/index.js +1 -1
  69. package/dist/es2019/ui/MediaSingle/styled.js +37 -31
  70. package/dist/es2019/ui/ResizerLegacy/styled.js +2 -0
  71. package/dist/es2019/ui/clear-next-sibling-margin-top.js +11 -9
  72. package/dist/esm/collab/index.js +38 -11
  73. package/dist/esm/keymaps/index.js +7 -5
  74. package/dist/esm/media-inline/media-inline-image-card.js +0 -1
  75. package/dist/esm/media-inline/styles.js +2 -0
  76. package/dist/esm/media-inline/views/icon-wrapper.js +0 -1
  77. package/dist/esm/monitoring/error.js +1 -1
  78. package/dist/esm/selection/gap-cursor/styles.js +12 -3
  79. package/dist/esm/styles/shared/annotation.js +18 -4
  80. package/dist/esm/styles/shared/block-marks.js +1 -0
  81. package/dist/esm/styles/shared/blockquote.js +29 -3
  82. package/dist/esm/styles/shared/code-block.js +1 -0
  83. package/dist/esm/styles/shared/code-mark.js +8 -3
  84. package/dist/esm/styles/shared/column-layout.js +17 -3
  85. package/dist/esm/styles/shared/date.js +4 -3
  86. package/dist/esm/styles/shared/expand.js +3 -4
  87. package/dist/esm/styles/shared/headings.js +34 -3
  88. package/dist/esm/styles/shared/indentation.js +28 -5
  89. package/dist/esm/styles/shared/link.js +5 -3
  90. package/dist/esm/styles/shared/lists.js +2 -0
  91. package/dist/esm/styles/shared/media-single.js +39 -3
  92. package/dist/esm/styles/shared/panel.js +5 -2
  93. package/dist/esm/styles/shared/paragraph.js +11 -3
  94. package/dist/esm/styles/shared/plugins.js +30 -6
  95. package/dist/esm/styles/shared/resizer.js +2 -0
  96. package/dist/esm/styles/shared/rule.js +10 -3
  97. package/dist/esm/styles/shared/shadow.js +1 -2
  98. package/dist/esm/styles/shared/smartCard.js +2 -0
  99. package/dist/esm/styles/shared/table.js +2 -0
  100. package/dist/esm/styles/shared/tableCell.js +1 -3
  101. package/dist/esm/styles/shared/text-color.js +8 -3
  102. package/dist/esm/styles/shared/unsupported-content.js +2 -0
  103. package/dist/esm/styles/shared/whitespace.js +4 -3
  104. package/dist/esm/ui/DropList/index.js +1 -1
  105. package/dist/esm/ui/MediaSingle/styled.js +16 -8
  106. package/dist/esm/ui/ResizerLegacy/styled.js +2 -0
  107. package/dist/esm/ui/clear-next-sibling-margin-top.js +12 -5
  108. package/dist/types/collab/index.d.ts +1 -1
  109. package/dist/types/element-browser/components/ElementBrowserLoader.d.ts +1 -1
  110. package/dist/types/extensions/types/extension-manifest-common.d.ts +1 -1
  111. package/dist/types/extensions/types/extension-manifest.d.ts +1 -1
  112. package/dist/types/icons/index.d.ts +1 -1
  113. package/dist/types/link/LinkSearch/withActivityProvider.d.ts +1 -1
  114. package/dist/types/media-inline/inline-image-wrapper.d.ts +3 -2
  115. package/dist/types/media-inline/media-inline-image-card.d.ts +4 -4
  116. package/dist/types/media-inline/views/error-view.d.ts +3 -2
  117. package/dist/types/media-inline/views/frame.d.ts +3 -2
  118. package/dist/types/media-inline/views/icon-wrapper.d.ts +3 -2
  119. package/dist/types/media-inline/views/loading-view.d.ts +2 -2
  120. package/dist/types/quick-insert/assets/index.d.ts +24 -24
  121. package/dist/types/react-node-view/getInlineNodeViewProducer.d.ts +1 -1
  122. package/dist/types/react-node-view/index.d.ts +2 -2
  123. package/dist/types/selection-based-node-view/SelectionBasedNodeView.d.ts +1 -1
  124. package/dist/types/types/annotation/index.d.ts +2 -2
  125. package/dist/types/types/floating-toolbar.d.ts +3 -3
  126. package/dist/types/ui/Announcer/announcer.d.ts +1 -1
  127. package/dist/types/ui/DropList/index.d.ts +1 -2
  128. package/dist/types/ui/ErrorBoundary/index.d.ts +1 -0
  129. package/dist/types/ui/IntlErrorBoundary/index.d.ts +1 -0
  130. package/dist/types/ui/Layer/index.d.ts +2 -1
  131. package/dist/types/ui/MediaSingle/styled.d.ts +1 -1
  132. package/dist/types/ui/OverflowShadow/index.d.ts +1 -1
  133. package/dist/types/ui/Popup/index.d.ts +1 -0
  134. package/dist/types/ui/with-outer-listeners.d.ts +3 -2
  135. package/dist/types/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.d.ts +1 -1
  136. package/dist/types/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts +1 -1
  137. package/dist/types/ui-menu/ArrowKeyNavigationProvider/index.d.ts +1 -1
  138. package/dist/types/ui-menu/ColorPickerButton/index.d.ts +1 -1
  139. package/dist/types/ui-menu/Dropdown/index.d.ts +1 -1
  140. package/dist/types/ui-menu/DropdownMenu/index.d.ts +1 -1
  141. package/dist/types/ui-menu/DropdownMenu/types.d.ts +1 -0
  142. package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +1 -2
  143. package/dist/types/utils/imageLoader.d.ts +1 -1
  144. package/dist/types-ts4.5/collab/index.d.ts +1 -1
  145. package/dist/types-ts4.5/element-browser/components/ElementBrowserLoader.d.ts +1 -1
  146. package/dist/types-ts4.5/extensions/types/extension-manifest-common.d.ts +1 -1
  147. package/dist/types-ts4.5/extensions/types/extension-manifest.d.ts +1 -1
  148. package/dist/types-ts4.5/icons/index.d.ts +1 -1
  149. package/dist/types-ts4.5/link/LinkSearch/withActivityProvider.d.ts +1 -1
  150. package/dist/types-ts4.5/media-inline/inline-image-wrapper.d.ts +3 -2
  151. package/dist/types-ts4.5/media-inline/media-inline-image-card.d.ts +4 -4
  152. package/dist/types-ts4.5/media-inline/views/error-view.d.ts +3 -2
  153. package/dist/types-ts4.5/media-inline/views/frame.d.ts +3 -2
  154. package/dist/types-ts4.5/media-inline/views/icon-wrapper.d.ts +3 -2
  155. package/dist/types-ts4.5/media-inline/views/loading-view.d.ts +2 -2
  156. package/dist/types-ts4.5/quick-insert/assets/index.d.ts +24 -24
  157. package/dist/types-ts4.5/react-node-view/getInlineNodeViewProducer.d.ts +1 -1
  158. package/dist/types-ts4.5/react-node-view/index.d.ts +2 -2
  159. package/dist/types-ts4.5/selection-based-node-view/SelectionBasedNodeView.d.ts +1 -1
  160. package/dist/types-ts4.5/types/annotation/index.d.ts +2 -2
  161. package/dist/types-ts4.5/types/floating-toolbar.d.ts +3 -3
  162. package/dist/types-ts4.5/ui/Announcer/announcer.d.ts +1 -1
  163. package/dist/types-ts4.5/ui/DropList/index.d.ts +1 -2
  164. package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +1 -0
  165. package/dist/types-ts4.5/ui/IntlErrorBoundary/index.d.ts +1 -0
  166. package/dist/types-ts4.5/ui/Layer/index.d.ts +2 -1
  167. package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +1 -1
  168. package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +1 -1
  169. package/dist/types-ts4.5/ui/Popup/index.d.ts +1 -0
  170. package/dist/types-ts4.5/ui/with-outer-listeners.d.ts +3 -2
  171. package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.d.ts +1 -1
  172. package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts +1 -1
  173. package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/index.d.ts +1 -1
  174. package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +1 -1
  175. package/dist/types-ts4.5/ui-menu/Dropdown/index.d.ts +1 -1
  176. package/dist/types-ts4.5/ui-menu/DropdownMenu/index.d.ts +1 -1
  177. package/dist/types-ts4.5/ui-menu/DropdownMenu/types.d.ts +1 -0
  178. package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +1 -2
  179. package/dist/types-ts4.5/utils/imageLoader.d.ts +1 -1
  180. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 78.11.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#80427](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80427) [`cc0e2b5dba10`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cc0e2b5dba10) - React 18 Types for @atlaskit/editor-common
8
+ - [#80391](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80391) [`bf741c7ef44c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bf741c7ef44c) - Make @atlaskit/editor-plugin-table, @atlaskit/date, @atlaskit/editor-plugin-date React 18 compatible.
9
+ - [#80518](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80518) [`e0d5e8fd9495`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e0d5e8fd9495) - Migrates some style calls to a slightly different object syntax and other minor cleanup around eslint rules.
10
+ - [#80170](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80170) [`25cea639817f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/25cea639817f) - [ux] Migrate to use tokens. The padding on the top of the editor in full-page has changed from 50px to 48px.
11
+ - Updated dependencies
12
+
3
13
  ## 78.11.5
4
14
 
5
15
  ### Patch Changes
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.tintDirtyTransaction = exports.telepointerStyle = exports.isDirtyTransaction = exports.colors = exports.TELEPOINTER_DIM_CLASS = exports.PROVIDER_ERROR_CODE = exports.DisconnectReason = void 0;
9
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
11
  var _react = require("@emotion/react");
11
12
  var _adfSchema = require("@atlaskit/adf-schema");
12
13
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
13
14
  var themeColors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
14
- var _templateObject;
15
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
16
  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 && Object.prototype.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; }
17
17
  // Format of the payload returned by the callback function passed to the collab provider
@@ -130,16 +130,43 @@ var colors = exports.colors = [themeColors.R100, themeColors.R300, themeColors.R
130
130
  selection: (0, _adfSchema.hexToRgba)(solid, 0.2)
131
131
  };
132
132
  });
133
- var telepointerColorStyle = function telepointerColorStyle(color, index) {
134
- return "\n &.color-".concat(index, " {\n background-color: ").concat(color.selection, ";\n &::after {\n background-color: ").concat(color.solid, ";\n color: ", "var(--ds-text-inverse, #fff)", ";\n border-color: ").concat(color.solid, ";\n }\n }\n");
135
- };
136
133
  var TELEPOINTER_DIM_CLASS = exports.TELEPOINTER_DIM_CLASS = 'telepointer-dim';
137
-
138
- // Disable top: -14px since it is necessary to align to cursor
139
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
140
- var telepointerStyle = exports.telepointerStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror .telepointer {\n position: relative;\n transition: opacity 200ms;\n\n &.telepointer-selection {\n line-height: 1.2;\n pointer-events: none;\n user-select: none;\n }\n\n &.telepointer-selection-badge::after {\n content: attr(data-initial);\n position: absolute;\n display: block;\n top: -14px;\n font-size: ", ";\n padding: ", ";\n color: ", ";\n left: 0px;\n border-radius: 2px 2px 2px 0;\n line-height: initial;\n }\n\n &.", " {\n opacity: 0.2;\n }\n\n ", ";\n }\n"])), (0, _editorSharedStyles.relativeFontSizeToBase16)(9), "var(--ds-space-025, 2px)", "var(--ds-text-inverse, white)", TELEPOINTER_DIM_CLASS, colors.map(function (color, index) {
141
- return telepointerColorStyle(color, index);
142
- }));
134
+ var telepointerStyle = exports.telepointerStyle = _react.css.apply(void 0, [{
135
+ '.ProseMirror .telepointer': (0, _defineProperty2.default)({
136
+ position: 'relative',
137
+ transition: 'opacity 200ms',
138
+ '&.telepointer-selection': {
139
+ lineHeight: 1.2,
140
+ pointerEvents: 'none',
141
+ userSelect: 'none'
142
+ },
143
+ '&.telepointer-selection-badge::after': {
144
+ content: 'attr(data-initial)',
145
+ position: 'absolute',
146
+ display: 'block',
147
+ // Disable top: -14px since it is necessary to align to cursor
148
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
149
+ top: '-14px',
150
+ fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)(9),
151
+ padding: "var(--ds-space-025, 2px)",
152
+ color: "var(--ds-text-inverse, white)",
153
+ left: '0px',
154
+ borderRadius: '2px 2px 2px 0',
155
+ lineHeight: 'initial'
156
+ }
157
+ }, "&.".concat(TELEPOINTER_DIM_CLASS), {
158
+ opacity: 0.2
159
+ })
160
+ }].concat((0, _toConsumableArray2.default)(colors.map(function (color, index) {
161
+ return (0, _defineProperty2.default)({}, "&.color-".concat(index), {
162
+ backgroundColor: color.selection,
163
+ '&::after': {
164
+ backgroundColor: color.solid,
165
+ color: "var(--ds-text-inverse, #fff)",
166
+ borderColor: color.solid
167
+ }
168
+ });
169
+ }))));
143
170
  var tintKey = 'collab:isDirtyTransaction';
144
171
  var isDirtyTransaction = exports.isDirtyTransaction = function isDirtyTransaction(tr) {
145
172
  return Boolean(tr.getMeta(tintKey));
@@ -105,7 +105,6 @@ exports.toggleUnderline = exports.toggleTaskItemCheckbox = exports.toggleTable =
105
105
  exports.tooltip = tooltip;
106
106
  exports.undo = void 0;
107
107
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
108
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
109
108
  var _react = _interopRequireWildcard(require("react"));
110
109
  var _react2 = require("@emotion/react");
111
110
  var _w3cKeyname = require("w3c-keyname");
@@ -114,10 +113,10 @@ var _editorCommands = require("../preset/editor-commands");
114
113
  var _utils = require("../utils");
115
114
  var _consts = require("./consts");
116
115
  var _keymap = require("./keymap");
117
- var _templateObject;
118
- /** @jsx jsx */
119
116
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
120
117
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof3(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 && Object.prototype.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; }
118
+ /** @jsx jsx */
119
+
121
120
  var addAltText = exports.addAltText = makeKeyMapWithCommon('Add Alt Text', 'Mod-Alt-y');
122
121
  var navToEditorToolbar = exports.navToEditorToolbar = makeKeyMapWithCommon('Navigate to editor toolbar', 'Alt-F9');
123
122
  var navToFloatingToolbar = exports.navToFloatingToolbar = makeKeyMapWithCommon('Navigate to floating toolbar', 'Alt-F10');
@@ -203,9 +202,13 @@ var arrowKeysMap = {
203
202
  ARROWUP: "\u2191",
204
203
  ARROWDOWN: "\u2193"
205
204
  };
206
- var tooltipShortcutStyle = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-radius: 2px;\n background-color: ", ";\n padding: 0 ", ";\n\n /* TODO: fix in develop: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E */\n /* stylelint-disable-next-line */\n label: tooltip-shortcut;\n"])), "var(--ds-background-inverse-subtle, ".concat(_colors.N400, ")"), "var(--ds-space-025, 2px)");
207
- /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
208
-
205
+ var tooltipShortcutStyle = (0, _react2.css)({
206
+ borderRadius: '2px',
207
+ backgroundColor: "var(--ds-background-inverse-subtle, ".concat(_colors.N400, ")"),
208
+ padding: "0 ".concat("var(--ds-space-025, 2px)"),
209
+ // NOTE: This might not actually do anything: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E
210
+ label: 'tooltip-shortcut'
211
+ });
209
212
  function formatShortcut(keymap) {
210
213
  var shortcut;
211
214
  if (_utils.browser.mac) {
@@ -16,6 +16,7 @@ var INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY = exports.INLINE_IMAGE_BORDER_SIZE_CSS_
16
16
  var INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY = exports.INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY = '--editor-media-inline-image-border-color';
17
17
 
18
18
  // We implemented such selectors to ensure specificity:
19
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Nested and dynamic css calls are violations, needs manual remediation
19
20
  var inlineImageHeight = function inlineImageHeight(height) {
20
21
  var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
21
22
  return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n /* Editor style */\n > .mediaInlineView-content-wrap > .", ",\n > :is(a, span[data-mark-type='border']) .mediaInlineView-content-wrap > .", ",\n /* Renderer style */\n > .", ",\n > :is(a, span[data-mark-type='border']) .", " {\n height: ", "px;\n transform: translateY(", "px);\n }\n"])), INLINE_IMAGE_WRAPPER_CLASS_NAME, INLINE_IMAGE_WRAPPER_CLASS_NAME, INLINE_IMAGE_WRAPPER_CLASS_NAME, INLINE_IMAGE_WRAPPER_CLASS_NAME, height, margin);
@@ -27,6 +28,7 @@ var inlineImageHeight = function inlineImageHeight(height) {
27
28
  * shift in top and bottom and size adjustments to make up for lack of 1to1 size
28
29
  * mapping
29
30
  */
31
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Nested and dynamic css calls are violations, needs manual remediation
30
32
  var mediaInlineImageStyles = exports.mediaInlineImageStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n // p, h3, and action items\n .", " {\n height: ", "px;\n transform: translateY(-2px);\n }\n\n h1 {\n ", "\n }\n\n h2 {\n ", "\n }\n\n h3 {\n ", "\n }\n\n h4 {\n ", "\n }\n\n h5 {\n ", "\n }\n\n h6 {\n ", "\n }\n"])), INLINE_IMAGE_WRAPPER_CLASS_NAME, _constants.referenceHeights['p'], inlineImageHeight(_constants.referenceHeights['h1'], -3), inlineImageHeight(_constants.referenceHeights['h2'], -3), inlineImageHeight(_constants.referenceHeights['h3'], -2), inlineImageHeight(_constants.referenceHeights['h4'], -2), inlineImageHeight(_constants.referenceHeights['h5'], -2), inlineImageHeight(_constants.referenceHeights['h6'], -2));
31
33
  var wrapperStyle = exports.wrapperStyle = (0, _react.css)({
32
34
  display: 'inline-flex',
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
16
16
  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 && Object.prototype.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; }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "78.11.5";
19
+ var packageVersion = "78.11.6";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // TODO: Sanitise the URL instead of just removing it
@@ -7,11 +7,20 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.hideCaretModifier = exports.gapCursorStyles = void 0;
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
- var _templateObject, _templateObject2;
11
- var gapCursorBlink = (0, _react.keyframes)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n from, to {\n opacity: 0;\n }\n 50% {\n opacity: 1;\n }\n"])));
10
+ var _templateObject;
11
+ var gapCursorBlink = (0, _react.keyframes)({
12
+ 'from, to': {
13
+ opacity: 0
14
+ },
15
+ '50%': {
16
+ opacity: 1
17
+ }
18
+ });
12
19
  var hideCaretModifier = exports.hideCaretModifier = 'ProseMirror-hide-gapcursor';
13
20
  var gapCursor = '.ProseMirror-gapcursor';
14
21
  var prosemirrorwidget = '.ProseMirror-widget';
15
22
  var wrapLeft = '[layout="wrap-left"]';
16
23
  var wrapRight = '[layout="wrap-right"]';
17
- var gapCursorStyles = exports.gapCursorStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n /* =============== GAP CURSOR ================== */\n .ProseMirror {\n &.", " {\n caret-color: transparent;\n }\n\n ", " {\n display: none;\n pointer-events: none;\n position: relative;\n\n & span {\n caret-color: transparent;\n position: absolute;\n height: 100%;\n width: 100%;\n display: block;\n }\n\n & span::after {\n animation: 1s ", " step-end infinite;\n border-left: 1px solid;\n content: '';\n display: block;\n position: absolute;\n top: 0;\n height: 100%;\n }\n &.-left span::after {\n left: ", ";\n }\n &.-right span::after {\n right: ", ";\n }\n & span[layout='full-width'],\n & span[layout='wide'],\n & span[layout='fixed-width'] {\n margin-left: 50%;\n transform: translateX(-50%);\n }\n &", " {\n float: right;\n }\n\n /* fix vertical alignment of gap cursor */\n &:first-of-type + ul,\n &:first-of-type + span + ul,\n &:first-of-type + ol,\n &:first-of-type + span + ol,\n &:first-of-type + pre,\n &:first-of-type + span + pre,\n &:first-of-type + blockquote,\n &:first-of-type + span + blockquote {\n margin-top: 0;\n }\n }\n &.ProseMirror-focused ", " {\n display: block;\n border-color: transparent;\n }\n }\n\n /* This hack below is for two images aligned side by side */\n ", "", " + span + ", ",\n ", "", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " {\n clear: none;\n }\n\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div {\n margin-right: 0;\n margin-left: 0;\n margin-bottom: 0;\n }\n\n ", " + ", ",\n ", " + ", " {\n float: left;\n }\n\n ", " + ", " + span + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after {\n visibility: hidden;\n display: block;\n font-size: 0;\n content: ' ';\n clear: both;\n height: 0;\n }\n\n ", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + *,\n ", " + ", " + span + * {\n margin-top: 0;\n }\n"])), hideCaretModifier, gapCursor, gapCursorBlink, "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", wrapRight, gapCursor, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, wrapLeft, gapCursor, wrapRight, gapCursor, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, prosemirrorwidget, gapCursor, prosemirrorwidget, gapCursor);
24
+
25
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- This needs manual remediation, it autofixes seemingly safely, but the code style and readability is destroyed.
26
+ var gapCursorStyles = exports.gapCursorStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n /* =============== GAP CURSOR ================== */\n .ProseMirror {\n &.", " {\n caret-color: transparent;\n }\n\n ", " {\n display: none;\n pointer-events: none;\n position: relative;\n\n & span {\n caret-color: transparent;\n position: absolute;\n height: 100%;\n width: 100%;\n display: block;\n }\n\n & span::after {\n animation: 1s ", " step-end infinite;\n border-left: 1px solid;\n content: '';\n display: block;\n position: absolute;\n top: 0;\n height: 100%;\n }\n &.-left span::after {\n left: ", ";\n }\n &.-right span::after {\n right: ", ";\n }\n & span[layout='full-width'],\n & span[layout='wide'],\n & span[layout='fixed-width'] {\n margin-left: 50%;\n transform: translateX(-50%);\n }\n &", " {\n float: right;\n }\n\n /* fix vertical alignment of gap cursor */\n &:first-of-type + ul,\n &:first-of-type + span + ul,\n &:first-of-type + ol,\n &:first-of-type + span + ol,\n &:first-of-type + pre,\n &:first-of-type + span + pre,\n &:first-of-type + blockquote,\n &:first-of-type + span + blockquote {\n margin-top: 0;\n }\n }\n &.ProseMirror-focused ", " {\n display: block;\n border-color: transparent;\n }\n }\n\n /* This hack below is for two images aligned side by side */\n ", "", " + span + ", ",\n ", "", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " {\n clear: none;\n }\n\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div {\n margin-right: 0;\n margin-left: 0;\n margin-bottom: 0;\n }\n\n ", " + ", ",\n ", " + ", " {\n float: left;\n }\n\n ", " + ", " + span + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after {\n visibility: hidden;\n display: block;\n font-size: 0;\n content: ' ';\n clear: both;\n height: 0;\n }\n\n ", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + *,\n ", " + ", " + span + * {\n margin-top: 0;\n }\n"])), hideCaretModifier, gapCursor, gapCursorBlink, "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", wrapRight, gapCursor, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, wrapLeft, gapCursor, wrapRight, gapCursor, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, prosemirrorwidget, gapCursor, prosemirrorwidget, gapCursor);
@@ -8,7 +8,7 @@ exports.annotationSharedStyles = exports.annotationPrefix = exports.AnnotationSh
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
10
  var _colors = require("@atlaskit/theme/colors");
11
- var _templateObject, _templateObject2, _templateObject3;
11
+ var _templateObject;
12
12
  var annotationPrefix = exports.annotationPrefix = 'ak-editor-annotation';
13
13
  var AnnotationSharedClassNames = exports.AnnotationSharedClassNames = {
14
14
  focus: "".concat(annotationPrefix, "-focus"),
@@ -19,10 +19,24 @@ var Y75a = 'rgba(255, 240, 179, 0.5)';
19
19
  var Y200a = 'rgba(255, 196, 0, 0.82)';
20
20
  var AnnotationSharedCSSByState = exports.AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
21
21
  return {
22
- focus: (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n // Background is not coming through in confluence, suspecting to be caused by some specific combination of\n // emotion and token look up\n\n background: ", ";\n border-bottom: 2px solid ", ";\n // TODO: https://product-fabric.atlassian.net/browse/DSP-4147\n box-shadow: ", ";\n cursor: pointer;\n "])), "var(--ds-background-accent-yellow-subtler, ".concat(_colors.Y75, ")"), "var(--ds-border-accent-yellow, ".concat(_colors.Y300, ")"), "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(_colors.N60A, ", -1px 2px 3px ").concat(_colors.N60A), ")")),
23
- blur: (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n border-bottom: 2px solid ", ";\n cursor: pointer;\n "])), "var(--ds-background-accent-yellow-subtlest, ".concat(Y75a, ")"), "var(--ds-border-accent-yellow, ".concat(Y200a, ")"))
22
+ focus: (0, _react.css)({
23
+ // Background is not coming through in confluence, suspecting to be caused by some specific combination of
24
+ // emotion and token look up
25
+ background: "var(--ds-background-accent-yellow-subtler, ".concat(_colors.Y75, ")"),
26
+ borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, ".concat(_colors.Y300, ")")),
27
+ // TODO: https://product-fabric.atlassian.net/browse/DSP-4147
28
+ boxShadow: "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(_colors.N60A, ", -1px 2px 3px ").concat(_colors.N60A), ")"),
29
+ cursor: 'pointer'
30
+ }),
31
+ blur: (0, _react.css)({
32
+ background: "var(--ds-background-accent-yellow-subtlest, ".concat(Y75a, ")"),
33
+ borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, ".concat(Y200a, ")")),
34
+ cursor: 'pointer'
35
+ })
24
36
  };
25
37
  };
38
+
39
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
26
40
  var annotationSharedStyles = exports.annotationSharedStyles = function annotationSharedStyles() {
27
- return (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n .", " {\n ", ";\n }\n\n .", " {\n ", ";\n cursor: initial;\n }\n\n .", " {\n ", ";\n }\n }\n"])), AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur);
41
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n .", " {\n ", ";\n }\n\n .", " {\n ", ";\n cursor: initial;\n }\n\n .", " {\n ", ";\n }\n }\n"])), AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur);
28
42
  };
@@ -8,4 +8,5 @@ exports.blockMarksSharedStyles = void 0;
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
10
  var _templateObject;
11
+ /* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Perfectly safe to auto-fix, but leaving it up to the team to remediate as the readability only gets worse with autofixing */
11
12
  var blockMarksSharedStyles = exports.blockMarksSharedStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n /**\n * We need to remove margin-top from first item\n * inside doc, tableCell, tableHeader, blockquote, etc.\n */\n *:not(.fabric-editor-block-mark) >,\n /* For nested block marks apart from those with indentation mark */\n *:not(.fabric-editor-block-mark) >\n div.fabric-editor-block-mark:first-of-type\n /* Do not remove the margin top for nodes inside indentation marks */\n :not(.fabric-editor-indentation-mark)\n /* Do not remove the margin top for nodes inside alignment marks */\n :not(.fabric-editor-alignment),\n // If first element inside a block node has alignment mark, then remove the margin-top\n .fabric-editor-alignment:first-of-type:first-child,\n // If first document element has indentation mark remove margin-top\n .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child {\n p,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n .heading-wrapper {\n :first-child:not(style),\n style:first-child + * {\n margin-top: 0;\n }\n }\n }\n"])));
@@ -1,12 +1,37 @@
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.blockquoteSharedStyles = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
7
  var _react = require("@emotion/react");
10
8
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
11
- var _templateObject;
12
- var blockquoteSharedStyles = exports.blockquoteSharedStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n & blockquote {\n box-sizing: border-box;\n padding-left: ", ";\n border-left: 2px solid\n ", ";\n margin: ", " 0 0 0;\n margin-right: 0;\n\n [dir='rtl'] & {\n padding-left: 0;\n padding-right: ", ";\n }\n\n &:first-child {\n margin-top: 0;\n }\n\n &::before {\n content: '';\n }\n\n &::after {\n content: none;\n }\n\n & p {\n display: block;\n }\n\n & table,\n & table:last-child {\n display: inline-table;\n }\n }\n"])), "var(--ds-space-200, 16px)", "var(--ds-border, ".concat(_editorSharedStyles.akEditorBlockquoteBorderColor, ")"), _editorSharedStyles.blockNodesVerticalMargin, "var(--ds-space-200, 16px)");
9
+ var blockquoteSharedStyles = exports.blockquoteSharedStyles = (0, _react.css)({
10
+ '& blockquote': {
11
+ boxSizing: 'border-box',
12
+ paddingLeft: "var(--ds-space-200, 16px)",
13
+ borderLeft: "2px solid ".concat("var(--ds-border, ".concat(_editorSharedStyles.akEditorBlockquoteBorderColor, ")")),
14
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
15
+ margin: "".concat(_editorSharedStyles.blockNodesVerticalMargin, " 0 0 0"),
16
+ marginRight: 0,
17
+ "[dir='rtl'] &": {
18
+ paddingLeft: 0,
19
+ paddingRight: "var(--ds-space-200, 16px)"
20
+ },
21
+ '&:first-child': {
22
+ marginTop: 0
23
+ },
24
+ '&::before': {
25
+ content: "''"
26
+ },
27
+ '&::after': {
28
+ content: 'none'
29
+ },
30
+ '& p': {
31
+ display: 'block'
32
+ },
33
+ '& table, & table:last-child': {
34
+ display: 'inline-table'
35
+ }
36
+ }
37
+ });
@@ -11,6 +11,7 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
11
11
  var _colors = require("@atlaskit/theme/colors");
12
12
  var _constants = require("@atlaskit/theme/constants");
13
13
  var _templateObject, _templateObject2;
14
+ /* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Should be safe to autofix, but ignoring for now */
14
15
  var CodeBlockSharedCssClassName = exports.CodeBlockSharedCssClassName = {
15
16
  CODEBLOCK_CONTAINER: 'code-block',
16
17
  CODEBLOCK_START: 'code-block--start',
@@ -5,11 +5,16 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.codeMarkSharedStyles = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
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
11
  var _colors = require("@atlaskit/theme/colors");
12
- var _templateObject;
12
+ 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
+ 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; }
13
14
  var codeMarkSharedStyles = exports.codeMarkSharedStyles = function codeMarkSharedStyles() {
14
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .code {\n --ds--code--bg-color: ", ";\n ", "\n }\n "])), "var(--ds-background-neutral, ".concat(_colors.N30A, ")"), (0, _inline.getCodeStyles)());
15
+ return (0, _react.css)({
16
+ '.code': _objectSpread({
17
+ '--ds--code--bg-color': "var(--ds-background-neutral, ".concat(_colors.N30A, ")")
18
+ }, (0, _inline.getCodeStyles)())
19
+ });
15
20
  };
@@ -5,8 +5,22 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.columnLayoutSharedStyle = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
10
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
11
- var _templateObject;
12
- var columnLayoutSharedStyle = exports.columnLayoutSharedStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n [data-layout-section] {\n position: relative;\n display: flex;\n flex-direction: row;\n & > * {\n flex: 1;\n min-width: 0;\n }\n\n & > .unsupportedBlockView-content-wrap {\n min-width: initial;\n }\n\n @media screen and (max-width: ", "px) {\n flex-direction: column;\n }\n }\n"])), _editorSharedStyles.gridMediumMaxWidth);
11
+ var columnLayoutSharedStyle = exports.columnLayoutSharedStyle = (0, _react.css)({
12
+ '[data-layout-section]': (0, _defineProperty2.default)({
13
+ position: 'relative',
14
+ display: 'flex',
15
+ flexDirection: 'row',
16
+ '& > *': {
17
+ flex: 1,
18
+ minWidth: 0
19
+ },
20
+ '& > .unsupportedBlockView-content-wrap': {
21
+ minWidth: 'initial'
22
+ }
23
+ }, "@media screen and (max-width: ".concat(_editorSharedStyles.gridMediumMaxWidth, "px)"), {
24
+ flexDirection: 'column'
25
+ })
26
+ });
@@ -5,11 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.dateSharedStyle = exports.DateSharedCssClassName = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
- var _templateObject;
11
10
  var DateSharedCssClassName = exports.DateSharedCssClassName = {
12
11
  DATE_WRAPPER: "date-lozenger-container",
13
12
  DATE_CONTAINER: 'dateView-content-wrap'
14
13
  };
15
- var dateSharedStyle = exports.dateSharedStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .", " span {\n white-space: unset;\n }\n"])), DateSharedCssClassName.DATE_WRAPPER);
14
+ var dateSharedStyle = exports.dateSharedStyle = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(DateSharedCssClassName.DATE_WRAPPER, " span"), {
15
+ whiteSpace: 'unset'
16
+ }));
@@ -1,15 +1,13 @@
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.expandIconWrapperStyle = exports.expandClassNames = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
7
  var _react = require("@emotion/react");
10
- var _templateObject;
11
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
12
- var expandIconWrapperStyle = exports.expandIconWrapperStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n margin-left: ", ";\n"])), "var(--ds-space-negative-100, -8px)");
8
+ var expandIconWrapperStyle = exports.expandIconWrapperStyle = (0, _react.css)({
9
+ marginLeft: "var(--ds-space-negative-100, -8px)"
10
+ });
13
11
  var prefix = 'ak-editor-expand';
14
12
  var expandClassNames = exports.expandClassNames = {
15
13
  prefix: prefix,
@@ -5,12 +5,43 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.headingsSharedStyles = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
10
  var _typography = require("@atlaskit/theme/typography");
11
- var _templateObject;
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; }
12
13
  // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
13
14
  // text sizing prototype: http://proto/fabricrender/
14
15
  var headingsSharedStyles = exports.headingsSharedStyles = function headingsSharedStyles() {
15
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n & h1 {\n ", ";\n margin-bottom: 0;\n margin-top: 1.667em;\n }\n\n & h2 {\n ", ";\n margin-top: 1.8em;\n margin-bottom: 0;\n }\n\n & h3 {\n ", ";\n margin-top: 2em;\n margin-bottom: 0;\n }\n\n & h4 {\n ", ";\n margin-top: 1.357em;\n }\n\n & h5 {\n ", ";\n margin-top: 1.667em;\n text-transform: none;\n }\n\n & h6 {\n ", ";\n margin-top: 1.455em;\n text-transform: none;\n }\n"])), (0, _typography.h700)(), (0, _typography.h600)(), (0, _typography.h500)(), (0, _typography.h400)(), (0, _typography.h300)(), (0, _typography.h100)());
16
+ return (0, _react.css)({
17
+ '& h1': _objectSpread(_objectSpread({}, (0, _typography.h700)()), {}, {
18
+ marginBottom: 0,
19
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
20
+ marginTop: '1.667em'
21
+ }),
22
+ '& h2': _objectSpread(_objectSpread({}, (0, _typography.h600)()), {}, {
23
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
24
+ marginTop: '1.8em',
25
+ marginBottom: 0
26
+ }),
27
+ '& h3': _objectSpread(_objectSpread({}, (0, _typography.h500)()), {}, {
28
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
29
+ marginTop: '2em',
30
+ marginBottom: 0
31
+ }),
32
+ '& h4': _objectSpread(_objectSpread({}, (0, _typography.h400)()), {}, {
33
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
34
+ marginTop: '1.357em'
35
+ }),
36
+ '& h5': _objectSpread(_objectSpread({}, (0, _typography.h300)()), {}, {
37
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
38
+ marginTop: '1.667em',
39
+ textTransform: 'none'
40
+ }),
41
+ '& h6': _objectSpread(_objectSpread({}, (0, _typography.h100)()), {}, {
42
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
43
+ marginTop: '1.455em',
44
+ textTransform: 'none'
45
+ })
46
+ });
16
47
  };
@@ -1,12 +1,35 @@
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.indentationSharedStyles = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
7
  var _react = require("@emotion/react");
10
- var _templateObject;
11
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
12
- var indentationSharedStyles = exports.indentationSharedStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .fabric-editor-indentation-mark {\n &[data-level='1'] {\n margin-left: 30px;\n }\n &[data-level='2'] {\n margin-left: 60px;\n }\n &[data-level='3'] {\n margin-left: 90px;\n }\n &[data-level='4'] {\n margin-left: 120px;\n }\n &[data-level='5'] {\n margin-left: 150px;\n }\n &[data-level='6'] {\n margin-left: 180px;\n }\n }\n"])));
8
+ var indentationSharedStyles = exports.indentationSharedStyles = (0, _react.css)({
9
+ '.fabric-editor-indentation-mark': {
10
+ "&[data-level='1']": {
11
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
12
+ marginLeft: '30px'
13
+ },
14
+ "&[data-level='2']": {
15
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
16
+ marginLeft: '60px'
17
+ },
18
+ "&[data-level='3']": {
19
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
20
+ marginLeft: '90px'
21
+ },
22
+ "&[data-level='4']": {
23
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
24
+ marginLeft: '120px'
25
+ },
26
+ "&[data-level='5']": {
27
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
28
+ marginLeft: '150px'
29
+ },
30
+ "&[data-level='6']": {
31
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
32
+ marginLeft: '180px'
33
+ }
34
+ }
35
+ });
@@ -1,11 +1,12 @@
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.linkSharedStyle = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
7
  var _react = require("@emotion/react");
10
- var _templateObject;
11
- var linkSharedStyle = exports.linkSharedStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n a.blockLink {\n display: block;\n }\n"])));
8
+ var linkSharedStyle = exports.linkSharedStyle = (0, _react.css)({
9
+ 'a.blockLink': {
10
+ display: 'block'
11
+ }
12
+ });
@@ -50,4 +50,6 @@ function getOrderedListInlineStyles(itemCounterDigitsSize, styleFormat) {
50
50
  }
51
51
  return style;
52
52
  }
53
+
54
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- There is some "flow-root" hack that is not actually valid css. Do note, this might not even work in Compiled (or Emotion) due to the way tagged template expressions are parsed…
53
55
  var listsSharedStyles = exports.listsSharedStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n /* =============== INDENTATION SPACING ========= */\n\n ul,\n ol {\n box-sizing: border-box;\n padding-left: var(\n ", ",\n ", "px\n );\n\n /*\n Firefox does not handle empty block element inside li tag.\n If there is not block element inside li tag,\n then firefox sets inherited height to li\n However, if there is any block element and if it's empty\n (or has empty inline element) then\n firefox sets li tag height to zero.\n More details at\n https://product-fabric.atlassian.net/wiki/spaces/~455502413/pages/3149365890/ED-14110+Investigation\n */\n li p:empty,\n li p > span:empty {\n ", "\n }\n }\n\n ", ", ", " {\n /*\n Ensures list item content adheres to the list's margin instead\n of filling the entire block row. This is important to allow\n clicking interactive elements which are floated next to a list.\n\n For some history and context on this block, see PRs related to tickets.:\n @see ED-6551 - original issue.\n @see ED-7015 - follow up issue.\n @see ED-7447 - flow-root change.\n\n We use 'display: table' (old clear fix / new block formatting context hack)\n for older browsers and 'flow-root' for modern browsers.\n\n @see https://css-tricks.com/display-flow-root/\n */\n // For older browsers the do not support flow-root.\n /* stylelint-disable declaration-block-no-duplicate-properties */\n display: table;\n display: flow-root;\n /* stylelint-enable declaration-block-no-duplicate-properties */\n }\n\n /* =============== INDENTATION AESTHETICS ========= */\n\n /**\n We support nested lists up to six levels deep.\n **/\n\n /* LEGACY LISTS */\n\n ul,\n ul ul ul ul {\n list-style-type: disc;\n }\n\n ul ul,\n ul ul ul ul ul {\n list-style-type: circle;\n }\n\n ul ul ul,\n ul ul ul ul ul ul {\n list-style-type: square;\n }\n\n ol,\n ol ol ol ol {\n list-style-type: decimal;\n }\n ol ol,\n ol ol ol ol ol {\n list-style-type: lower-alpha;\n }\n ol ol ol,\n ol ol ol ol ol ol {\n list-style-type: lower-roman;\n }\n\n /* PREDICTABLE LISTS */\n\n ol[data-indent-level='1'],\n ol[data-indent-level='4'] {\n list-style-type: decimal;\n }\n\n ol[data-indent-level='2'],\n ol[data-indent-level='5'] {\n list-style-type: lower-alpha;\n }\n\n ol[data-indent-level='3'],\n ol[data-indent-level='6'] {\n list-style-type: lower-roman;\n }\n\n ul[data-indent-level='1'],\n ul[data-indent-level='4'] {\n list-style-type: disc;\n }\n\n ul[data-indent-level='2'],\n ul[data-indent-level='5'] {\n list-style-type: circle;\n }\n\n ul[data-indent-level='3'],\n ul[data-indent-level='6'] {\n list-style-type: square;\n }\n"])), CSS_VAR_NAMES.ITEM_COUNTER_PADDING, listItemCounterPadding, _browser.default.gecko ? 'display: inline-block;' : '', _adfSchema.orderedListSelector, _adfSchema.bulletListSelector);
@@ -5,9 +5,45 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.richMediaClassName = exports.mediaSingleSharedStyle = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
- var _templateObject;
10
+ var _css;
11
11
  var richMediaClassName = exports.richMediaClassName = 'rich-media-item';
12
12
  var wrappedMediaBreakoutPoint = 410;
13
- var mediaSingleSharedStyle = exports.mediaSingleSharedStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n li .", " {\n margin: 0;\n }\n\n /* Hack for chrome to fix media single position\n inside a list when media is the first child */\n &.ua-chrome li > .mediaSingleView-content-wrap::before {\n content: '';\n display: block;\n height: 0;\n }\n\n &.ua-firefox {\n .mediaSingleView-content-wrap {\n user-select: none;\n }\n\n .captionView-content-wrap {\n user-select: text;\n }\n }\n\n .mediaSingleView-content-wrap[layout='center'] {\n clear: both;\n }\n\n table .", " {\n margin-top: ", ";\n margin-bottom: ", ";\n clear: both;\n\n &.image-wrap-left,\n &.image-wrap-right {\n clear: none;\n\n &:first-child {\n margin-top: ", ";\n }\n }\n }\n\n .", ".image-wrap-right\n + .", ".image-wrap-left {\n clear: both;\n }\n\n .", ".image-wrap-left\n + .", ".image-wrap-right,\n .", ".image-wrap-right\n + .", ".image-wrap-left,\n .", ".image-wrap-left\n + .", ".image-wrap-left,\n .", ".image-wrap-right\n + .", ".image-wrap-right {\n margin-right: 0;\n margin-left: 0;\n }\n\n @media all and (max-width: ", "px) {\n div.mediaSingleView-content-wrap[layout='wrap-left'],\n div.mediaSingleView-content-wrap[data-layout='wrap-left'],\n div.mediaSingleView-content-wrap[layout='wrap-right'],\n div.mediaSingleView-content-wrap[data-layout='wrap-right'] {\n float: none;\n overflow: auto;\n margin: ", " 0;\n }\n }\n"])), richMediaClassName, richMediaClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, wrappedMediaBreakoutPoint, "var(--ds-space-150, 12px)");
13
+ var mediaSingleSharedStyle = exports.mediaSingleSharedStyle = (0, _react.css)((_css = {}, (0, _defineProperty2.default)(_css, "li .".concat(richMediaClassName), {
14
+ margin: 0
15
+ }), (0, _defineProperty2.default)(_css, '&.ua-chrome li > .mediaSingleView-content-wrap::before', {
16
+ content: "''",
17
+ display: 'block',
18
+ height: 0
19
+ }), (0, _defineProperty2.default)(_css, '&.ua-firefox', {
20
+ '.mediaSingleView-content-wrap': {
21
+ userSelect: 'none'
22
+ },
23
+ '.captionView-content-wrap': {
24
+ userSelect: 'text'
25
+ }
26
+ }), (0, _defineProperty2.default)(_css, ".mediaSingleView-content-wrap[layout='center']", {
27
+ clear: 'both'
28
+ }), (0, _defineProperty2.default)(_css, "table .".concat(richMediaClassName), {
29
+ marginTop: "var(--ds-space-150, 12px)",
30
+ marginBottom: "var(--ds-space-150, 12px)",
31
+ clear: 'both',
32
+ '&.image-wrap-left, &.image-wrap-right': {
33
+ clear: 'none',
34
+ '&:first-child': {
35
+ marginTop: "var(--ds-space-150, 12px)"
36
+ }
37
+ }
38
+ }), (0, _defineProperty2.default)(_css, ".".concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left"), {
39
+ clear: 'both'
40
+ }), (0, _defineProperty2.default)(_css, ".".concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-right, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-right"), {
41
+ marginRight: 0,
42
+ marginLeft: 0
43
+ }), (0, _defineProperty2.default)(_css, "@media all and (max-width: ".concat(wrappedMediaBreakoutPoint, "px)"), {
44
+ "div.mediaSingleView-content-wrap[layout='wrap-left'], div.mediaSingleView-content-wrap[data-layout='wrap-left'], div.mediaSingleView-content-wrap[layout='wrap-right'], div.mediaSingleView-content-wrap[data-layout='wrap-right']": {
45
+ float: 'none',
46
+ overflow: 'auto',
47
+ margin: "var(--ds-space-150, 12px)".concat(" 0")
48
+ }
49
+ }), _css));