@atlaskit/editor-common 78.11.4 → 78.11.5

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 (214) hide show
  1. package/.eslintrc.js +8 -0
  2. package/CHANGELOG.md +8 -0
  3. package/afm-cc/tsconfig.json +3 -0
  4. package/dist/cjs/__tests_external__/page-objects/Editor.js +1 -1
  5. package/dist/cjs/__tests_external__/page-objects/EditorSmartLink.js +1 -1
  6. package/dist/cjs/__tests_external__/page-objects/Renderer.js +1 -1
  7. package/dist/cjs/analytics/types/enums.js +1 -0
  8. package/dist/cjs/analytics/types/table-events.js +1 -0
  9. package/dist/cjs/annotation/index.js +1 -1
  10. package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +2 -2
  11. package/dist/cjs/card/index.js +2 -2
  12. package/dist/cjs/clipboard/index.js +2 -2
  13. package/dist/cjs/collab/index.js +6 -3
  14. package/dist/cjs/element-browser/ElementBrowser.js +3 -3
  15. package/dist/cjs/element-browser/components/CategoryList.js +2 -2
  16. package/dist/cjs/element-browser/components/ElementBrowserLoader.js +2 -2
  17. package/dist/cjs/element-browser/components/ElementList/ElementList.js +92 -15
  18. package/dist/cjs/element-browser/components/ElementList/EmptyState.js +6 -5
  19. package/dist/cjs/element-browser/components/ElementSearch.js +5 -6
  20. package/dist/cjs/element-browser/components/StatelessElementBrowser.js +2 -2
  21. package/dist/cjs/element-browser/hooks/use-container-width.js +2 -2
  22. package/dist/cjs/extensibility/Extension/Extension/index.js +2 -2
  23. package/dist/cjs/extensibility/Extension/Extension/styles.js +3 -3
  24. package/dist/cjs/extensibility/Extension/Lozenge.js +1 -1
  25. package/dist/cjs/extensibility/Extension/styles.js +1 -1
  26. package/dist/cjs/extensibility/Extension.js +3 -3
  27. package/dist/cjs/extensibility/ExtensionComponent.js +3 -4
  28. package/dist/cjs/extensibility/MultiBodiedExtension/index.js +2 -2
  29. package/dist/cjs/extensibility/extensionNodeView.js +1 -1
  30. package/dist/cjs/extensibility/index.js +2 -2
  31. package/dist/cjs/icons/index.js +2 -2
  32. package/dist/cjs/keymaps/index.js +2 -2
  33. package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +2 -2
  34. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +4 -4
  35. package/dist/cjs/link/LinkSearch/LinkSearchList.js +15 -7
  36. package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +4 -4
  37. package/dist/cjs/link/LinkSearch/ToolbarComponents.js +17 -6
  38. package/dist/cjs/link/LinkSearch/index.js +1 -2
  39. package/dist/cjs/link/LinkSearch/withActivityProvider.js +1 -1
  40. package/dist/cjs/link/index.js +2 -2
  41. package/dist/cjs/monitoring/error.js +3 -3
  42. package/dist/cjs/preset/editor-commands.js +1 -1
  43. package/dist/cjs/provider-factory/with-providers.js +1 -1
  44. package/dist/cjs/quick-insert/assets/index.js +2 -2
  45. package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +1 -0
  46. package/dist/cjs/resizer/Resizer.js +8 -11
  47. package/dist/cjs/safe-plugin/index.js +1 -1
  48. package/dist/cjs/selection/gap-cursor/selection.js +1 -1
  49. package/dist/cjs/selection/gap-cursor/styles.js +1 -1
  50. package/dist/cjs/selection-based-node-view/SelectionBasedNodeView.js +1 -1
  51. package/dist/cjs/styles/shared/embedCard.js +19 -5
  52. package/dist/cjs/styles/shared/grid.js +28 -4
  53. package/dist/cjs/styles/shared/indentation.js +1 -0
  54. package/dist/cjs/styles/shared/panel.js +1 -1
  55. package/dist/cjs/styles/shared/resizer.js +3 -3
  56. package/dist/cjs/styles/shared/shadow.js +32 -3
  57. package/dist/cjs/ui/Announcer/announcer.js +4 -2
  58. package/dist/cjs/ui/BaseTheme/index.js +2 -2
  59. package/dist/cjs/ui/Caption/index.js +1 -1
  60. package/dist/cjs/ui/ContextPanel/context.js +1 -1
  61. package/dist/cjs/ui/DropList/index.js +2 -2
  62. package/dist/cjs/ui/Emoji/index.js +3 -3
  63. package/dist/cjs/ui/ErrorBoundary/index.js +1 -1
  64. package/dist/cjs/ui/Expand/index.js +3 -3
  65. package/dist/cjs/ui/IntlErrorBoundary/index.js +1 -1
  66. package/dist/cjs/ui/IntlProviderIfMissingWrapper/index.js +2 -2
  67. package/dist/cjs/ui/Layer/index.js +3 -4
  68. package/dist/cjs/ui/Mention/index.js +3 -3
  69. package/dist/cjs/ui/Mention/mention-with-profilecard.js +2 -2
  70. package/dist/cjs/ui/Mention/mention-with-providers.js +3 -3
  71. package/dist/cjs/ui/MultiBodiedExtension/index.js +1 -2
  72. package/dist/cjs/ui/OverflowShadow/index.js +1 -1
  73. package/dist/cjs/ui/PanelTextInput/index.js +1 -1
  74. package/dist/cjs/ui/Popup/index.js +1 -1
  75. package/dist/cjs/ui/PortalProvider/index.js +1 -1
  76. package/dist/cjs/ui/ResizerLegacy/index.js +1 -1
  77. package/dist/cjs/ui/UnsupportedBlock/index.js +3 -3
  78. package/dist/cjs/ui/UnsupportedInline/index.js +18 -5
  79. package/dist/cjs/ui/WidthProvider/index.js +2 -2
  80. package/dist/cjs/ui/WithCreateAnalyticsEvent/index.js +1 -1
  81. package/dist/cjs/ui/index.js +2 -2
  82. package/dist/cjs/ui/with-outer-listeners.js +3 -3
  83. package/dist/cjs/ui-color/ColorPalette/Color/index.js +3 -3
  84. package/dist/cjs/ui-color/ColorPalette/Color/styles.js +21 -5
  85. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +2 -2
  86. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +2 -2
  87. package/dist/cjs/ui-menu/ColorPickerButton/index.js +35 -7
  88. package/dist/cjs/ui-menu/Dropdown/index.js +3 -3
  89. package/dist/cjs/ui-menu/DropdownContainer/index.js +2 -2
  90. package/dist/cjs/ui-menu/DropdownMenu/index.js +3 -4
  91. package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +2 -2
  92. package/dist/cjs/ui-menu/ToolbarButton/index.js +2 -2
  93. package/dist/cjs/ui-menu/index.js +2 -2
  94. package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +3 -3
  95. package/dist/cjs/utils/imageLoader.js +3 -3
  96. package/dist/cjs/with-plugin-state/index.js +1 -1
  97. package/dist/es2019/analytics/types/enums.js +1 -0
  98. package/dist/es2019/analytics/types/table-events.js +1 -0
  99. package/dist/es2019/card/MediaAndEmbedsToolbar/index.js +1 -0
  100. package/dist/es2019/collab/index.js +6 -1
  101. package/dist/es2019/element-browser/components/ElementList/ElementList.js +83 -94
  102. package/dist/es2019/element-browser/components/ElementList/EmptyState.js +6 -5
  103. package/dist/es2019/element-browser/components/ElementSearch.js +3 -4
  104. package/dist/es2019/extensibility/Extension/Extension/styles.js +4 -4
  105. package/dist/es2019/extensibility/Extension/styles.js +1 -1
  106. package/dist/es2019/extensibility/ExtensionComponent.js +0 -1
  107. package/dist/es2019/extensions/types/field-definitions.js +1 -0
  108. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  109. package/dist/es2019/link/LinkSearch/LinkSearchList.js +14 -14
  110. package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +2 -1
  111. package/dist/es2019/link/LinkSearch/ToolbarComponents.js +17 -18
  112. package/dist/es2019/link/LinkSearch/index.js +0 -1
  113. package/dist/es2019/monitoring/error.js +1 -1
  114. package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +1 -0
  115. package/dist/es2019/resizer/Resizer.js +2 -3
  116. package/dist/es2019/selection/gap-cursor/styles.js +2 -2
  117. package/dist/es2019/styles/shared/embedCard.js +17 -21
  118. package/dist/es2019/styles/shared/grid.js +27 -31
  119. package/dist/es2019/styles/shared/indentation.js +2 -0
  120. package/dist/es2019/styles/shared/panel.js +1 -1
  121. package/dist/es2019/styles/shared/resizer.js +6 -3
  122. package/dist/es2019/styles/shared/shadow.js +36 -65
  123. package/dist/es2019/ui/Announcer/announcer.js +2 -0
  124. package/dist/es2019/ui/ContextPanel/context.js +1 -0
  125. package/dist/es2019/ui/DropList/index.js +1 -1
  126. package/dist/es2019/ui/Expand/index.js +3 -4
  127. package/dist/es2019/ui/Layer/index.js +0 -1
  128. package/dist/es2019/ui/MultiBodiedExtension/index.js +1 -3
  129. package/dist/es2019/ui/UnsupportedBlock/index.js +2 -2
  130. package/dist/es2019/ui/UnsupportedInline/index.js +15 -15
  131. package/dist/es2019/ui-color/ColorPalette/Color/styles.js +20 -24
  132. package/dist/es2019/ui-menu/ColorPickerButton/index.js +34 -35
  133. package/dist/es2019/ui-menu/DropdownMenu/index.js +0 -1
  134. package/dist/es2019/utils/dom.js +1 -0
  135. package/dist/es2019/with-plugin-state/index.js +1 -0
  136. package/dist/esm/__tests_external__/page-objects/Editor.js +1 -1
  137. package/dist/esm/__tests_external__/page-objects/EditorSmartLink.js +1 -1
  138. package/dist/esm/__tests_external__/page-objects/Renderer.js +1 -1
  139. package/dist/esm/analytics/types/enums.js +1 -0
  140. package/dist/esm/analytics/types/table-events.js +1 -0
  141. package/dist/esm/annotation/index.js +1 -1
  142. package/dist/esm/card/MediaAndEmbedsToolbar/index.js +1 -0
  143. package/dist/esm/collab/index.js +6 -1
  144. package/dist/esm/element-browser/ElementBrowser.js +1 -1
  145. package/dist/esm/element-browser/components/ElementList/ElementList.js +90 -13
  146. package/dist/esm/element-browser/components/ElementList/EmptyState.js +6 -5
  147. package/dist/esm/element-browser/components/ElementSearch.js +3 -4
  148. package/dist/esm/extensibility/Extension/Extension/styles.js +4 -4
  149. package/dist/esm/extensibility/Extension/Lozenge.js +1 -1
  150. package/dist/esm/extensibility/Extension/styles.js +1 -1
  151. package/dist/esm/extensibility/Extension.js +1 -1
  152. package/dist/esm/extensibility/ExtensionComponent.js +1 -2
  153. package/dist/esm/extensibility/extensionNodeView.js +1 -1
  154. package/dist/esm/extensions/types/field-definitions.js +1 -0
  155. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -2
  156. package/dist/esm/link/LinkSearch/LinkSearchList.js +15 -6
  157. package/dist/esm/link/LinkSearch/LinkSearchListItem.js +3 -2
  158. package/dist/esm/link/LinkSearch/ToolbarComponents.js +17 -5
  159. package/dist/esm/link/LinkSearch/index.js +1 -2
  160. package/dist/esm/link/LinkSearch/withActivityProvider.js +1 -1
  161. package/dist/esm/monitoring/error.js +1 -1
  162. package/dist/esm/preset/editor-commands.js +1 -1
  163. package/dist/esm/provider-factory/with-providers.js +1 -1
  164. package/dist/esm/react-node-view/getInlineNodeViewProducer.js +1 -0
  165. package/dist/esm/resizer/Resizer.js +2 -5
  166. package/dist/esm/safe-plugin/index.js +1 -1
  167. package/dist/esm/selection/gap-cursor/selection.js +1 -1
  168. package/dist/esm/selection/gap-cursor/styles.js +1 -1
  169. package/dist/esm/selection-based-node-view/SelectionBasedNodeView.js +1 -1
  170. package/dist/esm/styles/shared/embedCard.js +19 -4
  171. package/dist/esm/styles/shared/grid.js +28 -3
  172. package/dist/esm/styles/shared/indentation.js +2 -0
  173. package/dist/esm/styles/shared/panel.js +1 -1
  174. package/dist/esm/styles/shared/resizer.js +2 -2
  175. package/dist/esm/styles/shared/shadow.js +32 -3
  176. package/dist/esm/ui/Announcer/announcer.js +2 -0
  177. package/dist/esm/ui/Caption/index.js +1 -1
  178. package/dist/esm/ui/ContextPanel/context.js +2 -1
  179. package/dist/esm/ui/DropList/index.js +2 -2
  180. package/dist/esm/ui/Emoji/index.js +1 -1
  181. package/dist/esm/ui/ErrorBoundary/index.js +1 -1
  182. package/dist/esm/ui/Expand/index.js +2 -2
  183. package/dist/esm/ui/IntlErrorBoundary/index.js +1 -1
  184. package/dist/esm/ui/Layer/index.js +1 -2
  185. package/dist/esm/ui/Mention/index.js +1 -1
  186. package/dist/esm/ui/Mention/mention-with-providers.js +1 -1
  187. package/dist/esm/ui/MultiBodiedExtension/index.js +1 -3
  188. package/dist/esm/ui/OverflowShadow/index.js +1 -1
  189. package/dist/esm/ui/PanelTextInput/index.js +1 -1
  190. package/dist/esm/ui/Popup/index.js +1 -1
  191. package/dist/esm/ui/PortalProvider/index.js +1 -1
  192. package/dist/esm/ui/ResizerLegacy/index.js +1 -1
  193. package/dist/esm/ui/UnsupportedBlock/index.js +1 -1
  194. package/dist/esm/ui/UnsupportedInline/index.js +15 -3
  195. package/dist/esm/ui/WithCreateAnalyticsEvent/index.js +1 -1
  196. package/dist/esm/ui/with-outer-listeners.js +1 -1
  197. package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -1
  198. package/dist/esm/ui-color/ColorPalette/Color/styles.js +21 -5
  199. package/dist/esm/ui-menu/ColorPickerButton/index.js +34 -7
  200. package/dist/esm/ui-menu/Dropdown/index.js +1 -1
  201. package/dist/esm/ui-menu/DropdownMenu/index.js +1 -2
  202. package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +1 -1
  203. package/dist/esm/utils/dom.js +1 -0
  204. package/dist/esm/utils/imageLoader.js +1 -1
  205. package/dist/esm/with-plugin-state/index.js +1 -1
  206. package/dist/types/analytics/types/enums.d.ts +2 -1
  207. package/dist/types/analytics/types/table-events.d.ts +10 -1
  208. package/dist/types/styles/shared/resizer.d.ts +1 -0
  209. package/dist/types/ui/UnsupportedInline/index.d.ts +3 -3
  210. package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
  211. package/dist/types-ts4.5/analytics/types/table-events.d.ts +10 -1
  212. package/dist/types-ts4.5/styles/shared/resizer.d.ts +1 -0
  213. package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +3 -3
  214. package/package.json +2 -1
@@ -1,9 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
5
4
  var _excluded = ["items", "mode", "selectedItemIndex", "focusedItemIndex", "setColumnCount", "createAnalyticsEvent", "emptyStateHandler", "selectedCategory", "searchTerm"];
6
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
7
5
  /** @jsx jsx */
8
6
  import React, { Fragment, memo, useCallback, useEffect, useMemo, useState } from 'react';
9
7
  import { css, jsx } from '@emotion/react';
@@ -27,7 +25,21 @@ import EmptyState from './EmptyState';
27
25
  import { getColumnCount, getScrollbarWidth } from './utils';
28
26
  export var ICON_HEIGHT = 40;
29
27
  export var ICON_WIDTH = 40;
30
- export var itemIcon = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: ", "px;\n height: ", "px;\n overflow: hidden;\n border: 1px solid ", "; /* N60 at 50% */\n border-radius: ", "px;\n box-sizing: border-box;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n div {\n width: ", "px;\n height: ", "px;\n }\n"])), ICON_WIDTH, ICON_HEIGHT, "var(--ds-border, rgba(223, 225, 229, 0.5))", borderRadius(), ICON_WIDTH, ICON_HEIGHT);
28
+ export var itemIcon = css({
29
+ width: "".concat(ICON_WIDTH, "px"),
30
+ height: "".concat(ICON_HEIGHT, "px"),
31
+ overflow: 'hidden',
32
+ border: "1px solid ".concat("var(--ds-border, rgba(223, 225, 229, 0.5))"),
33
+ borderRadius: "".concat(borderRadius(), "px"),
34
+ boxSizing: 'border-box',
35
+ display: 'flex',
36
+ justifyContent: 'center',
37
+ alignItems: 'center',
38
+ div: {
39
+ width: "".concat(ICON_WIDTH, "px"),
40
+ height: "".concat(ICON_HEIGHT, "px")
41
+ }
42
+ });
31
43
  function ElementList(_ref) {
32
44
  var items = _ref.items,
33
45
  mode = _ref.mode,
@@ -221,21 +233,86 @@ var ItemContent = /*#__PURE__*/memo(function (_ref6) {
221
233
  css: itemDescription
222
234
  }, description)));
223
235
  });
224
- var elementItemsWrapper = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n flex: 1;\n flex-flow: row wrap;\n align-items: flex-start;\n justify-content: flex-start;\n overflow: hidden;\n padding: ", "px; // For Focus outline\n\n .ReactVirtualized__Collection {\n border-radius: 3px; // Standard border-radius across other components like Search or Item.\n outline: none;\n\n :focus {\n box-shadow: 0 0 0 ", "px\n ", ";\n }\n }\n .ReactVirtualized__Collection__innerScrollContainer {\n div[class='element-item-wrapper']:last-child {\n padding-bottom: ", ";\n }\n }\n"])), ELEMENT_LIST_PADDING, ELEMENT_LIST_PADDING, "var(--ds-border-focused, ".concat(B100, ")"), "var(--ds-space-050, 4px)");
225
- var elementItemWrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n div {\n button {\n height: 75px;\n align-items: flex-start;\n padding: ", " ", " 11px;\n }\n }\n"])), "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)");
226
- var itemBody = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: space-between;\n line-height: 1.4;\n width: 100%;\n\n margin-top: ", "; // Fixes the Item Icon and text's alignment issue\n"])), "var(--ds-space-negative-025, -2px)");
236
+ var elementItemsWrapper = css({
237
+ flex: 1,
238
+ flexFlow: 'row wrap',
239
+ alignItems: 'flex-start',
240
+ justifyContent: 'flex-start',
241
+ overflow: 'hidden',
242
+ padding: "var(--ds-space-025, 2px)",
243
+ '.ReactVirtualized__Collection': {
244
+ borderRadius: '3px',
245
+ outline: 'none',
246
+ ':focus': {
247
+ boxShadow: "0 0 0 ".concat(ELEMENT_LIST_PADDING, "px ", "var(--ds-border-focused, ".concat(B100, ")"))
248
+ }
249
+ },
250
+ '.ReactVirtualized__Collection__innerScrollContainer': {
251
+ "div[class='element-item-wrapper']:last-child": {
252
+ paddingBottom: "var(--ds-space-050, 4px)"
253
+ }
254
+ }
255
+ });
256
+ var elementItemWrapper = css({
257
+ div: {
258
+ button: {
259
+ height: '75px',
260
+ alignItems: 'flex-start',
261
+ padding: "var(--ds-space-150, 12px)"
262
+ }
263
+ }
264
+ });
265
+ var itemBody = css({
266
+ display: 'flex',
267
+ flexDirection: 'row',
268
+ flexWrap: 'nowrap',
269
+ justifyContent: 'space-between',
270
+ lineHeight: 1.4,
271
+ width: '100%',
272
+ marginTop: "var(--ds-space-negative-025, -2px)"
273
+ });
227
274
 
228
275
  /*
229
276
  * -webkit-line-clamp is also supported by firefox 🎉
230
277
  * https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/68#CSS
231
278
  */
232
- var multilineStyle = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n"])));
233
- var itemDescription = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", ";\n\n overflow: hidden;\n font-size: ", ";\n color: ", ";\n margin-top: ", ";\n"])), multilineStyle, relativeFontSizeToBase16(11.67), "var(--ds-text-subtle, ".concat(N200, ")"), "var(--ds-space-025, 2px)");
234
- var itemText = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n width: inherit;\n white-space: initial;\n"])));
235
- var itemTitleWrapper = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between; // Title and keyboardshortcut are rendered in the same block\n"])));
236
- var itemTitle = css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n width: 100%;\n overflow: hidden;\n\n white-space: nowrap;\n text-overflow: ellipsis;\n"])));
237
- var itemAfter = css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n flex: 0 0 auto;\n\n // Prevents item from being cut off due to negative margin\n padding-top: ", ";\n margin-bottom: ", ";\n"])), "var(--ds-space-025, 2px)", "var(--ds-space-negative-025, -2px)");
238
- var itemIconStyle = css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n img {\n height: 40px;\n width: 40px;\n object-fit: cover;\n }\n"])));
279
+ var multilineStyle = css({
280
+ display: '-webkit-box',
281
+ WebkitLineClamp: 2,
282
+ WebkitBoxOrient: 'vertical'
283
+ });
284
+ var itemDescription = css(multilineStyle, {
285
+ overflow: 'hidden',
286
+ fontSize: relativeFontSizeToBase16(11.67),
287
+ color: "var(--ds-text-subtle, ".concat(N200, ")"),
288
+ marginTop: "var(--ds-space-025, 2px)"
289
+ });
290
+ var itemText = css({
291
+ width: 'inherit',
292
+ whiteSpace: 'initial'
293
+ });
294
+ var itemTitleWrapper = css({
295
+ display: 'flex',
296
+ justifyContent: 'space-between'
297
+ });
298
+ var itemTitle = css({
299
+ width: '100%',
300
+ overflow: 'hidden',
301
+ whiteSpace: 'nowrap',
302
+ textOverflow: 'ellipsis'
303
+ });
304
+ var itemAfter = css({
305
+ flex: '0 0 auto',
306
+ paddingTop: "var(--ds-space-025, 2px)",
307
+ marginBottom: "var(--ds-space-negative-025, -2px)"
308
+ });
309
+ var itemIconStyle = css({
310
+ img: {
311
+ height: '40px',
312
+ width: '40px',
313
+ objectFit: 'cover'
314
+ }
315
+ });
239
316
  var MemoizedElementListWithAnalytics = /*#__PURE__*/memo(withAnalyticsContext({
240
317
  component: 'ElementList'
241
318
  })(ElementList));
@@ -2,6 +2,7 @@
2
2
  import { css, jsx } from '@emotion/react';
3
3
  import { FormattedMessage } from 'react-intl-next';
4
4
  import Button from '@atlaskit/button';
5
+ import { Box, xcss } from '@atlaskit/primitives';
5
6
  import NotFoundIllustration from './NotFoundIllustration';
6
7
  export default function EmptyState(_ref) {
7
8
  var onExternalLinkClick = _ref.onExternalLinkClick;
@@ -20,8 +21,8 @@ export default function EmptyState(_ref) {
20
21
  id: "fabric.editor.elementbrowser.search.empty-state.sub-heading",
21
22
  defaultMessage: "Try searching with a different term or discover new apps for Atlassian products.",
22
23
  description: "Empty state sub-heading"
23
- })), jsx("div", {
24
- css: externalLinkWrapper
24
+ })), jsx(Box, {
25
+ xcss: externalLinkWrapper
25
26
  }, jsx(Button, {
26
27
  appearance: "primary",
27
28
  target: "_blank",
@@ -39,7 +40,7 @@ var emptyStateHeading = css({
39
40
  color: "var(--ds-text, rgb(23, 43, 77))",
40
41
  fontWeight: 500,
41
42
  letterSpacing: '-0.008em',
42
- marginTop: '28px'
43
+ marginTop: "var(--ds-space-300, 24px)"
43
44
  });
44
45
  var emptyStateSubHeading = css({
45
46
  marginTop: "var(--ds-space-200, 16px)",
@@ -53,6 +54,6 @@ var emptyStateWrapper = css({
53
54
  alignItems: 'center',
54
55
  width: '100%'
55
56
  });
56
- var externalLinkWrapper = css({
57
- marginTop: '14px'
57
+ var externalLinkWrapper = xcss({
58
+ marginTop: "var(--ds-space-150, 12px)"
58
59
  });
@@ -112,8 +112,8 @@ function ElementSearch(_ref) {
112
112
  }, assistiveMessage));
113
113
  }
114
114
  var styledShortcut = css(shortcutStyle, {
115
- padding: "".concat(GRID_SIZE / 2, "px ").concat(GRID_SIZE, "px"),
116
- width: "".concat(GRID_SIZE * 6, "px")
115
+ padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)"),
116
+ width: "var(--ds-space-600, 48px)"
117
117
  });
118
118
  var wrapper = css({
119
119
  '& > [data-ds--text-field--container]': {
@@ -122,9 +122,8 @@ var wrapper = css({
122
122
  flex: '1 1 100%',
123
123
  overflow: 'visible',
124
124
  '& > [data-ds--text-field--input]': {
125
- marginBottom: '3px',
126
125
  fontSize: relativeFontSizeToBase16(14),
127
- padding: "".concat(GRID_SIZE, "px ", "var(--ds-space-075, 6px)", " ").concat(GRID_SIZE, "px 0")
126
+ padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-075, 6px)", " ", "var(--ds-space-100, 8px)", " 0")
128
127
  }
129
128
  }
130
129
  });
@@ -1,6 +1,6 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { N30 } from '@atlaskit/theme/colors';
3
- import { padding, wrapperDefault } from '../styles';
3
+ import { wrapperDefault } from '../styles';
4
4
  export var widerLayoutClassName = 'wider-layout';
5
5
  export var wrapperStyle = css(wrapperDefault, {
6
6
  '&.without-frame': {
@@ -13,7 +13,7 @@ export var wrapperStyle = css(wrapperDefault, {
13
13
  }
14
14
  });
15
15
  export var header = css({
16
- padding: "".concat(padding / 2, "px ").concat(padding / 2, "px 0px"),
16
+ padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)", " 0px"),
17
17
  verticalAlign: 'middle',
18
18
  '&.with-children:not(.without-frame)': {
19
19
  padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)")
@@ -23,7 +23,7 @@ export var header = css({
23
23
  }
24
24
  });
25
25
  export var content = css({
26
- padding: "".concat(padding, "px"),
26
+ padding: "var(--ds-space-100, 8px)",
27
27
  background: "var(--ds-surface, white)",
28
28
  border: "1px solid ".concat("var(--ds-border, ".concat(N30, ")")),
29
29
  borderRadius: "var(--ds-border-radius, 3px)",
@@ -31,7 +31,7 @@ export var content = css({
31
31
  width: '100%'
32
32
  });
33
33
  export var contentWrapper = css({
34
- padding: "0 ".concat(padding, "px ").concat(padding, "px"),
34
+ padding: "0 ".concat("var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)"),
35
35
  display: 'flex',
36
36
  justifyContent: 'center',
37
37
  '&.remove-padding': {
@@ -9,7 +9,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
9
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
10
  var _excluded = ["url"];
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
12
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
13
  /** @jsx jsx */
14
14
  import { Component } from 'react';
15
15
  import { jsx } from '@emotion/react';
@@ -43,7 +43,7 @@ export var placeholderFallback = css({
43
43
  export var placeholderFallbackParams = css({
44
44
  display: 'inline-block',
45
45
  maxWidth: '200px',
46
- marginLeft: '5px',
46
+ marginLeft: "var(--ds-space-050, 4px)",
47
47
  color: "var(--ds-text-subtlest, ".concat(N70, ")"),
48
48
  textOverflow: 'ellipsis',
49
49
  whiteSpace: 'nowrap',
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import React, { Component } from 'react';
11
11
  import { ProviderFactory, WithProviders } from '../provider-factory';
12
12
  import { ExtensionComponent } from './ExtensionComponent';
@@ -8,7 +8,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
12
  import React, { Component } from 'react';
13
13
  import memoizeOne from 'memoize-one';
14
14
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
@@ -245,7 +245,6 @@ export var ExtensionComponent = /*#__PURE__*/function (_Component) {
245
245
  /** We don't want this error to block renderer */
246
246
  /** We keep rendering the default content */
247
247
  }
248
-
249
248
  return null;
250
249
  }
251
250
  }]);
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import React from 'react';
9
9
  import ReactNodeView from '../react-node-view';
10
10
  import { Extension } from './Extension';
@@ -2,6 +2,7 @@
2
2
  // Thereby they _always_ need a value for submission
3
3
  //
4
4
  // You can do that through `defaultValue`, or `isRequired: true`
5
+
5
6
  export var isFieldset = function isFieldset(field) {
6
7
  return field.type === 'fieldset';
7
8
  };
@@ -12,7 +12,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
12
12
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
13
13
  import _regeneratorRuntime from "@babel/runtime/regenerator";
14
14
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
15
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
15
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
16
16
  /** @jsx jsx */
17
17
 
18
18
  import React, { PureComponent } from 'react';
@@ -39,7 +39,7 @@ import { filterUniqueItems, mapContentTypeToIcon, sha1, wordCount } from './util
39
39
  * Visible only to screenreaders. Use when there is a need
40
40
  * to provide more context to a non-sighted user.
41
41
  */
42
- export var visuallyHiddenStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n clip: rect(1px, 1px, 1px, 1px);\n clip-path: inset(50%);\n height: 1px;\n width: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n"])));
42
+ export var visuallyHiddenStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n clip: rect(1px, 1px, 1px, 1px);\n clip-path: inset(50%);\n height: 1px;\n width: 1px;\n margin: ", ";\n overflow: hidden;\n padding: 0;\n position: absolute;\n"])), "var(--ds-space-negative-025, -2px)");
43
43
  export var RECENT_SEARCH_LIST_SIZE = 5;
44
44
  var clearText = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n cursor: pointer;\n padding: 0;\n margin-right: ", ";\n color: ", ";\n background: transparent;\n border: none;\n"])), "var(--ds-space-100, 8px)", "var(--ds-icon-subtle, ".concat(N90, ")"));
45
45
  var clearTextWrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n right: 0;\n"])));
@@ -3,19 +3,28 @@ import _createClass from "@babel/runtime/helpers/createClass";
3
3
  import _inherits from "@babel/runtime/helpers/inherits";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
7
- var _templateObject, _templateObject2, _templateObject3;
8
6
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
8
  /** @jsx jsx */
11
9
  import { PureComponent } from 'react';
12
10
  import { css, jsx } from '@emotion/react';
13
11
  import Spinner from '@atlaskit/spinner';
14
12
  import { N30 } from '@atlaskit/theme/colors';
15
13
  import LinkSearchListItem from './LinkSearchListItem';
16
- var listContainer = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding-top: 0;\n margin-top: ", ";\n border-top: 1px solid ", ";\n"])), "var(--ds-space-150, 12px)", "var(--ds-border, ".concat(N30, ")"));
17
- var spinnerContainer = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n text-align: center;\n min-height: 80px;\n margin-top: 30px;\n"])));
18
- export var linkSearchList = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: 0;\n list-style: none;\n"])));
14
+ var listContainer = css({
15
+ paddingTop: 0,
16
+ marginTop: "var(--ds-space-150, 12px)",
17
+ borderTop: "1px solid ".concat("var(--ds-border, ".concat(N30, ")"))
18
+ });
19
+ var spinnerContainer = css({
20
+ textAlign: 'center',
21
+ minHeight: '80px',
22
+ marginTop: "var(--ds-space-400, 32px)"
23
+ });
24
+ export var linkSearchList = css({
25
+ padding: 0,
26
+ listStyle: 'none'
27
+ });
19
28
  var LinkSearchList = /*#__PURE__*/function (_PureComponent) {
20
29
  _inherits(LinkSearchList, _PureComponent);
21
30
  var _super = _createSuper(LinkSearchList);
@@ -6,12 +6,13 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  /** @jsx jsx */
11
11
  import React, { Fragment } from 'react';
12
12
  import { css, jsx } from '@emotion/react';
13
13
  // AFP-2532 TODO: Fix automatic suppressions below
14
14
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
15
+
15
16
  import { injectIntl } from 'react-intl-next';
16
17
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
17
18
  import { N20, N300, N800 } from '@atlaskit/theme/colors';
@@ -45,7 +46,7 @@ export var containerName = css({
45
46
  });
46
47
  var iconStyle = css({
47
48
  minWidth: '16px',
48
- marginTop: '3px',
49
+ marginTop: "var(--ds-space-050, 4px)",
49
50
  marginRight: "var(--ds-space-150, 12px)",
50
51
  img: {
51
52
  maxWidth: '16px'
@@ -1,7 +1,19 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2, _templateObject3;
3
1
  import { css } from '@emotion/react';
4
2
  import { RECENT_SEARCH_WIDTH_IN_PX, RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX } from '../../ui';
5
- export var inputWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n line-height: 0;\n padding: 5px 0;\n align-items: center;\n"])));
6
- export var container = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n overflow: auto;\n padding: 0;\n\n width: ", "px;\n line-height: initial;\n"])), RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX);
7
- export var containerWithProvider = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: ", "px;\n"])), RECENT_SEARCH_WIDTH_IN_PX);
3
+ export var inputWrapper = css({
4
+ display: 'flex',
5
+ lineHeight: 0,
6
+ padding: "var(--ds-space-075, 6px)".concat(" 0"),
7
+ alignItems: 'center'
8
+ });
9
+ export var container = css({
10
+ display: 'flex',
11
+ flexDirection: 'column',
12
+ overflow: 'auto',
13
+ padding: 0,
14
+ width: "".concat(RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX, "px"),
15
+ lineHeight: 'initial'
16
+ });
17
+ export var containerWithProvider = css({
18
+ width: "".concat(RECENT_SEARCH_WIDTH_IN_PX, "px")
19
+ });
@@ -8,7 +8,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
12
  import React from 'react';
13
13
  import { injectIntl } from 'react-intl-next';
14
14
  import { INPUT_METHOD } from '../../analytics';
@@ -35,7 +35,6 @@ var RecentLink = /*#__PURE__*/function (_React$Component) {
35
35
  if (!inputMethod) {
36
36
  return; // No call submit, if there is nothing to submit
37
37
  }
38
-
39
38
  switch (inputMethod) {
40
39
  case INPUT_METHOD.MANUAL:
41
40
  {
@@ -9,7 +9,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
9
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
10
  var _excluded = ["providerFactory"];
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
12
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
13
  import React from 'react';
14
14
  import { WithProviders } from '../../provider-factory';
15
15
  // eslint-disable-next-line no-duplicate-imports
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "78.11.4";
9
+ var packageVersion = "78.11.5";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import { Transaction } from '@atlaskit/editor-prosemirror/state';
9
9
  /**
10
10
  * Convert a EditorCommand to a standard Prosemirror Command.
@@ -8,7 +8,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  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; }
9
9
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
12
  import { PureComponent } from 'react';
13
13
  export var WithProviders = /*#__PURE__*/function (_PureComponent) {
14
14
  _inherits(WithProviders, _PureComponent);
@@ -196,6 +196,7 @@ function getPortalChildren(_ref2) {
196
196
  // nodeViews: {
197
197
  // [nodeViewName: string]: NodeViewProducer
198
198
  // }
199
+
199
200
  // This return of this function is intended to be the value of a key
200
201
  // in a ProseMirror nodeViews object.
201
202
  export function getInlineNodeViewProducer(_ref3) {
@@ -9,7 +9,7 @@ import React, { forwardRef, useCallback, useImperativeHandle, useMemo, useRef, u
9
9
  import classnames from 'classnames';
10
10
  import { Resizable } from 're-resizable';
11
11
  import Tooltip from '@atlaskit/tooltip';
12
- import { handleWrapperClass, resizerDangerClassName, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
12
+ import { handleWrapperClass, resizerDangerClassName, resizerExtendedZone, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
13
13
  var SUPPORTED_HANDLES = ['left', 'right'];
14
14
  var ResizerNext = function ResizerNext(props, ref) {
15
15
  var _useState = useState(false),
@@ -103,9 +103,7 @@ var ResizerNext = function ResizerNext(props, ref) {
103
103
  'is-resizing': isResizing,
104
104
  'display-handle': isHandleVisible
105
105
  }, resizerDangerClassName, appearance === 'danger'));
106
- var resizerZoneClassName = classnames(resizerHoverZoneClassName, {
107
- 'is-extended': needExtendedResizeZone
108
- });
106
+ var resizerZoneClassName = classnames(resizerHoverZoneClassName, _defineProperty({}, resizerExtendedZone, needExtendedResizeZone));
109
107
  var handleComponent = useMemo(function () {
110
108
  return SUPPORTED_HANDLES.reduce(function (result, position) {
111
109
  var thumb = /*#__PURE__*/React.createElement("button", {
@@ -116,7 +114,6 @@ var ResizerNext = function ResizerNext(props, ref) {
116
114
  type: "button",
117
115
  tabIndex: -1 //We want to control focus on this button ourselves
118
116
  });
119
-
120
117
  if ((!handleHighlight || handleHighlight === 'none') && !handleTooltipContent) {
121
118
  return _objectSpread(_objectSpread({}, result), {}, _defineProperty({}, position, thumb));
122
119
  }
@@ -6,7 +6,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
7
7
  import _toArray from "@babel/runtime/helpers/toArray";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import { Plugin } from '@atlaskit/editor-prosemirror/state';
11
11
  // Wraper to avoid any exception during the get pos operation
12
12
  // See this https://hello.atlassian.net/wiki/spaces/EDITOR/pages/2849713193/ED-19672+Extensions+Regression
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import { Slice } from '@atlaskit/editor-prosemirror/model';
11
11
  import { Selection } from '@atlaskit/editor-prosemirror/state';
12
12
  import { isValidTargetNode } from './utils/is-valid-target-node';
@@ -7,4 +7,4 @@ var gapCursor = '.ProseMirror-gapcursor';
7
7
  var prosemirrorwidget = '.ProseMirror-widget';
8
8
  var wrapLeft = '[layout="wrap-left"]';
9
9
  var wrapRight = '[layout="wrap-right"]';
10
- export var gapCursorStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\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: -3px;\n }\n &.-right span::after {\n right: -3px;\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, 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);
10
+ export var gapCursorStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\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);
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import ReactNodeView from '../react-node-view';
11
11
  /**
12
12
  * A ReactNodeView that handles React components sensitive
@@ -1,5 +1,20 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2;
3
1
  import { css } from '@emotion/react';
4
- export var embedCardStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n .embedCardView-content-wrap[layout^='wrap-'] {\n max-width: 100%;\n }\n\n .embedCardView-content-wrap[layout='wrap-left'] {\n float: left;\n }\n\n .embedCardView-content-wrap[layout='wrap-right'] {\n float: right;\n }\n\n .embedCardView-content-wrap[layout='wrap-right']\n + .embedCardView-content-wrap[layout='wrap-left'] {\n clear: both;\n }\n }\n"])));
5
- export var embedSpacingStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: 0 10px;\n"])));
2
+ export var embedCardStyles = css({
3
+ '.ProseMirror': {
4
+ ".embedCardView-content-wrap[layout^='wrap-']": {
5
+ maxWidth: '100%'
6
+ },
7
+ ".embedCardView-content-wrap[layout='wrap-left']": {
8
+ float: 'left'
9
+ },
10
+ ".embedCardView-content-wrap[layout='wrap-right']": {
11
+ float: 'right'
12
+ },
13
+ ".embedCardView-content-wrap[layout='wrap-right'] + .embedCardView-content-wrap[layout='wrap-left']": {
14
+ clear: 'both'
15
+ }
16
+ }
17
+ });
18
+ export var embedSpacingStyles = css({
19
+ margin: "0 ".concat("var(--ds-space-150, 12px)")
20
+ });