@atlaskit/editor-common 78.11.3 → 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 (229) hide show
  1. package/.eslintrc.js +8 -0
  2. package/CHANGELOG.md +15 -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 +7 -3
  23. package/dist/cjs/extensibility/Extension/Extension/styles.js +36 -7
  24. package/dist/cjs/extensibility/Extension/InlineExtension/index.js +3 -10
  25. package/dist/cjs/extensibility/Extension/Lozenge.js +1 -1
  26. package/dist/cjs/extensibility/Extension/styles.js +1 -1
  27. package/dist/cjs/extensibility/Extension.js +3 -3
  28. package/dist/cjs/extensibility/ExtensionComponent.js +3 -4
  29. package/dist/cjs/extensibility/ExtensionNodeWrapper.js +2 -19
  30. package/dist/cjs/extensibility/MultiBodiedExtension/index.js +11 -5
  31. package/dist/cjs/extensibility/extensionNodeView.js +2 -3
  32. package/dist/cjs/extensibility/index.js +2 -2
  33. package/dist/cjs/icons/index.js +2 -2
  34. package/dist/cjs/keymaps/index.js +2 -2
  35. package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +2 -2
  36. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +4 -4
  37. package/dist/cjs/link/LinkSearch/LinkSearchList.js +15 -7
  38. package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +4 -4
  39. package/dist/cjs/link/LinkSearch/ToolbarComponents.js +17 -6
  40. package/dist/cjs/link/LinkSearch/index.js +1 -2
  41. package/dist/cjs/link/LinkSearch/withActivityProvider.js +1 -1
  42. package/dist/cjs/link/index.js +2 -2
  43. package/dist/cjs/monitoring/error.js +3 -3
  44. package/dist/cjs/preset/editor-commands.js +1 -1
  45. package/dist/cjs/provider-factory/with-providers.js +1 -1
  46. package/dist/cjs/quick-insert/assets/index.js +2 -2
  47. package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +1 -0
  48. package/dist/cjs/resizer/Resizer.js +8 -11
  49. package/dist/cjs/safe-plugin/index.js +1 -1
  50. package/dist/cjs/selection/gap-cursor/selection.js +1 -1
  51. package/dist/cjs/selection/gap-cursor/styles.js +1 -1
  52. package/dist/cjs/selection-based-node-view/SelectionBasedNodeView.js +1 -1
  53. package/dist/cjs/styles/shared/embedCard.js +19 -5
  54. package/dist/cjs/styles/shared/grid.js +28 -4
  55. package/dist/cjs/styles/shared/indentation.js +1 -0
  56. package/dist/cjs/styles/shared/panel.js +1 -1
  57. package/dist/cjs/styles/shared/resizer.js +3 -3
  58. package/dist/cjs/styles/shared/shadow.js +32 -3
  59. package/dist/cjs/ui/Announcer/announcer.js +4 -2
  60. package/dist/cjs/ui/BaseTheme/index.js +2 -2
  61. package/dist/cjs/ui/Caption/index.js +1 -1
  62. package/dist/cjs/ui/ContextPanel/context.js +1 -1
  63. package/dist/cjs/ui/DropList/index.js +2 -2
  64. package/dist/cjs/ui/Emoji/index.js +3 -3
  65. package/dist/cjs/ui/ErrorBoundary/index.js +1 -1
  66. package/dist/cjs/ui/Expand/index.js +3 -3
  67. package/dist/cjs/ui/IntlErrorBoundary/index.js +1 -1
  68. package/dist/cjs/ui/IntlProviderIfMissingWrapper/index.js +2 -2
  69. package/dist/cjs/ui/Layer/index.js +3 -4
  70. package/dist/cjs/ui/Mention/index.js +3 -3
  71. package/dist/cjs/ui/Mention/mention-with-profilecard.js +2 -2
  72. package/dist/cjs/ui/Mention/mention-with-providers.js +3 -3
  73. package/dist/cjs/ui/MultiBodiedExtension/index.js +14 -4
  74. package/dist/cjs/ui/OverflowShadow/index.js +1 -1
  75. package/dist/cjs/ui/PanelTextInput/index.js +1 -1
  76. package/dist/cjs/ui/Popup/index.js +1 -1
  77. package/dist/cjs/ui/PortalProvider/index.js +1 -1
  78. package/dist/cjs/ui/ResizerLegacy/index.js +1 -1
  79. package/dist/cjs/ui/UnsupportedBlock/index.js +3 -3
  80. package/dist/cjs/ui/UnsupportedInline/index.js +18 -5
  81. package/dist/cjs/ui/WidthProvider/index.js +2 -2
  82. package/dist/cjs/ui/WithCreateAnalyticsEvent/index.js +1 -1
  83. package/dist/cjs/ui/index.js +2 -2
  84. package/dist/cjs/ui/with-outer-listeners.js +3 -3
  85. package/dist/cjs/ui-color/ColorPalette/Color/index.js +3 -3
  86. package/dist/cjs/ui-color/ColorPalette/Color/styles.js +21 -5
  87. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +2 -2
  88. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +2 -2
  89. package/dist/cjs/ui-menu/ColorPickerButton/index.js +35 -7
  90. package/dist/cjs/ui-menu/Dropdown/index.js +3 -3
  91. package/dist/cjs/ui-menu/DropdownContainer/index.js +2 -2
  92. package/dist/cjs/ui-menu/DropdownMenu/index.js +3 -4
  93. package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +2 -2
  94. package/dist/cjs/ui-menu/ToolbarButton/index.js +2 -2
  95. package/dist/cjs/ui-menu/index.js +2 -2
  96. package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +3 -3
  97. package/dist/cjs/utils/imageLoader.js +3 -3
  98. package/dist/cjs/with-plugin-state/index.js +1 -1
  99. package/dist/es2019/analytics/types/enums.js +1 -0
  100. package/dist/es2019/analytics/types/table-events.js +1 -0
  101. package/dist/es2019/card/MediaAndEmbedsToolbar/index.js +1 -0
  102. package/dist/es2019/collab/index.js +6 -1
  103. package/dist/es2019/element-browser/components/ElementList/ElementList.js +83 -94
  104. package/dist/es2019/element-browser/components/ElementList/EmptyState.js +6 -5
  105. package/dist/es2019/element-browser/components/ElementSearch.js +3 -4
  106. package/dist/es2019/extensibility/Extension/Extension/index.js +5 -1
  107. package/dist/es2019/extensibility/Extension/Extension/styles.js +34 -36
  108. package/dist/es2019/extensibility/Extension/InlineExtension/index.js +3 -7
  109. package/dist/es2019/extensibility/Extension/styles.js +1 -1
  110. package/dist/es2019/extensibility/ExtensionComponent.js +0 -1
  111. package/dist/es2019/extensibility/ExtensionNodeWrapper.js +2 -20
  112. package/dist/es2019/extensibility/MultiBodiedExtension/index.js +10 -4
  113. package/dist/es2019/extensibility/extensionNodeView.js +1 -2
  114. package/dist/es2019/extensions/types/field-definitions.js +1 -0
  115. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  116. package/dist/es2019/link/LinkSearch/LinkSearchList.js +14 -14
  117. package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +2 -1
  118. package/dist/es2019/link/LinkSearch/ToolbarComponents.js +17 -18
  119. package/dist/es2019/link/LinkSearch/index.js +0 -1
  120. package/dist/es2019/monitoring/error.js +1 -1
  121. package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +1 -0
  122. package/dist/es2019/resizer/Resizer.js +2 -3
  123. package/dist/es2019/selection/gap-cursor/styles.js +2 -2
  124. package/dist/es2019/styles/shared/embedCard.js +17 -21
  125. package/dist/es2019/styles/shared/grid.js +27 -31
  126. package/dist/es2019/styles/shared/indentation.js +2 -0
  127. package/dist/es2019/styles/shared/panel.js +1 -1
  128. package/dist/es2019/styles/shared/resizer.js +6 -3
  129. package/dist/es2019/styles/shared/shadow.js +36 -65
  130. package/dist/es2019/ui/Announcer/announcer.js +2 -0
  131. package/dist/es2019/ui/ContextPanel/context.js +1 -0
  132. package/dist/es2019/ui/DropList/index.js +1 -1
  133. package/dist/es2019/ui/Expand/index.js +3 -4
  134. package/dist/es2019/ui/Layer/index.js +0 -1
  135. package/dist/es2019/ui/MultiBodiedExtension/index.js +13 -4
  136. package/dist/es2019/ui/UnsupportedBlock/index.js +2 -2
  137. package/dist/es2019/ui/UnsupportedInline/index.js +15 -15
  138. package/dist/es2019/ui-color/ColorPalette/Color/styles.js +20 -24
  139. package/dist/es2019/ui-menu/ColorPickerButton/index.js +34 -35
  140. package/dist/es2019/ui-menu/DropdownMenu/index.js +0 -1
  141. package/dist/es2019/utils/dom.js +1 -0
  142. package/dist/es2019/with-plugin-state/index.js +1 -0
  143. package/dist/esm/__tests_external__/page-objects/Editor.js +1 -1
  144. package/dist/esm/__tests_external__/page-objects/EditorSmartLink.js +1 -1
  145. package/dist/esm/__tests_external__/page-objects/Renderer.js +1 -1
  146. package/dist/esm/analytics/types/enums.js +1 -0
  147. package/dist/esm/analytics/types/table-events.js +1 -0
  148. package/dist/esm/annotation/index.js +1 -1
  149. package/dist/esm/card/MediaAndEmbedsToolbar/index.js +1 -0
  150. package/dist/esm/collab/index.js +6 -1
  151. package/dist/esm/element-browser/ElementBrowser.js +1 -1
  152. package/dist/esm/element-browser/components/ElementList/ElementList.js +90 -13
  153. package/dist/esm/element-browser/components/ElementList/EmptyState.js +6 -5
  154. package/dist/esm/element-browser/components/ElementSearch.js +3 -4
  155. package/dist/esm/extensibility/Extension/Extension/index.js +5 -1
  156. package/dist/esm/extensibility/Extension/Extension/styles.js +37 -7
  157. package/dist/esm/extensibility/Extension/InlineExtension/index.js +3 -7
  158. package/dist/esm/extensibility/Extension/Lozenge.js +1 -1
  159. package/dist/esm/extensibility/Extension/styles.js +1 -1
  160. package/dist/esm/extensibility/Extension.js +1 -1
  161. package/dist/esm/extensibility/ExtensionComponent.js +1 -2
  162. package/dist/esm/extensibility/ExtensionNodeWrapper.js +2 -18
  163. package/dist/esm/extensibility/MultiBodiedExtension/index.js +10 -4
  164. package/dist/esm/extensibility/extensionNodeView.js +2 -3
  165. package/dist/esm/extensions/types/field-definitions.js +1 -0
  166. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -2
  167. package/dist/esm/link/LinkSearch/LinkSearchList.js +15 -6
  168. package/dist/esm/link/LinkSearch/LinkSearchListItem.js +3 -2
  169. package/dist/esm/link/LinkSearch/ToolbarComponents.js +17 -5
  170. package/dist/esm/link/LinkSearch/index.js +1 -2
  171. package/dist/esm/link/LinkSearch/withActivityProvider.js +1 -1
  172. package/dist/esm/monitoring/error.js +1 -1
  173. package/dist/esm/preset/editor-commands.js +1 -1
  174. package/dist/esm/provider-factory/with-providers.js +1 -1
  175. package/dist/esm/react-node-view/getInlineNodeViewProducer.js +1 -0
  176. package/dist/esm/resizer/Resizer.js +2 -5
  177. package/dist/esm/safe-plugin/index.js +1 -1
  178. package/dist/esm/selection/gap-cursor/selection.js +1 -1
  179. package/dist/esm/selection/gap-cursor/styles.js +1 -1
  180. package/dist/esm/selection-based-node-view/SelectionBasedNodeView.js +1 -1
  181. package/dist/esm/styles/shared/embedCard.js +19 -4
  182. package/dist/esm/styles/shared/grid.js +28 -3
  183. package/dist/esm/styles/shared/indentation.js +2 -0
  184. package/dist/esm/styles/shared/panel.js +1 -1
  185. package/dist/esm/styles/shared/resizer.js +2 -2
  186. package/dist/esm/styles/shared/shadow.js +32 -3
  187. package/dist/esm/ui/Announcer/announcer.js +2 -0
  188. package/dist/esm/ui/Caption/index.js +1 -1
  189. package/dist/esm/ui/ContextPanel/context.js +2 -1
  190. package/dist/esm/ui/DropList/index.js +2 -2
  191. package/dist/esm/ui/Emoji/index.js +1 -1
  192. package/dist/esm/ui/ErrorBoundary/index.js +1 -1
  193. package/dist/esm/ui/Expand/index.js +2 -2
  194. package/dist/esm/ui/IntlErrorBoundary/index.js +1 -1
  195. package/dist/esm/ui/Layer/index.js +1 -2
  196. package/dist/esm/ui/Mention/index.js +1 -1
  197. package/dist/esm/ui/Mention/mention-with-providers.js +1 -1
  198. package/dist/esm/ui/MultiBodiedExtension/index.js +13 -4
  199. package/dist/esm/ui/OverflowShadow/index.js +1 -1
  200. package/dist/esm/ui/PanelTextInput/index.js +1 -1
  201. package/dist/esm/ui/Popup/index.js +1 -1
  202. package/dist/esm/ui/PortalProvider/index.js +1 -1
  203. package/dist/esm/ui/ResizerLegacy/index.js +1 -1
  204. package/dist/esm/ui/UnsupportedBlock/index.js +1 -1
  205. package/dist/esm/ui/UnsupportedInline/index.js +15 -3
  206. package/dist/esm/ui/WithCreateAnalyticsEvent/index.js +1 -1
  207. package/dist/esm/ui/with-outer-listeners.js +1 -1
  208. package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -1
  209. package/dist/esm/ui-color/ColorPalette/Color/styles.js +21 -5
  210. package/dist/esm/ui-menu/ColorPickerButton/index.js +34 -7
  211. package/dist/esm/ui-menu/Dropdown/index.js +1 -1
  212. package/dist/esm/ui-menu/DropdownMenu/index.js +1 -2
  213. package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +1 -1
  214. package/dist/esm/utils/dom.js +1 -0
  215. package/dist/esm/utils/imageLoader.js +1 -1
  216. package/dist/esm/with-plugin-state/index.js +1 -1
  217. package/dist/types/analytics/types/enums.d.ts +2 -1
  218. package/dist/types/analytics/types/table-events.d.ts +10 -1
  219. package/dist/types/extensibility/ExtensionNodeWrapper.d.ts +1 -5
  220. package/dist/types/styles/shared/resizer.d.ts +1 -0
  221. package/dist/types/ui/MultiBodiedExtension/index.d.ts +1 -0
  222. package/dist/types/ui/UnsupportedInline/index.d.ts +3 -3
  223. package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
  224. package/dist/types-ts4.5/analytics/types/table-events.d.ts +10 -1
  225. package/dist/types-ts4.5/extensibility/ExtensionNodeWrapper.d.ts +1 -5
  226. package/dist/types-ts4.5/styles/shared/resizer.d.ts +1 -0
  227. package/dist/types-ts4.5/ui/MultiBodiedExtension/index.d.ts +1 -0
  228. package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +3 -3
  229. package/package.json +2 -1
@@ -1,10 +1,40 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
3
1
  import { css } from '@emotion/react';
4
2
  import { N30 } from '@atlaskit/theme/colors';
5
- import { padding, wrapperDefault } from '../styles';
3
+ import { wrapperDefault } from '../styles';
6
4
  export var widerLayoutClassName = 'wider-layout';
7
- export var wrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n &.without-frame {\n background: transparent;\n }\n cursor: pointer;\n width: 100%;\n\n .extension-overflow-wrapper:not(.with-body) {\n overflow-x: auto;\n }\n"])), wrapperDefault);
8
- export var header = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: ", "px ", "px 0px;\n vertical-align: middle;\n\n &.with-children:not(.without-frame) {\n padding: ", " ", "\n ", ";\n }\n &.without-frame {\n padding: 0;\n }\n"])), padding / 2, padding / 2, "var(--ds-space-050, 4px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)");
9
- export var content = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: ", "px;\n background: ", ";\n border: 1px solid ", ";\n border-radius: ", ";\n cursor: initial;\n width: 100%;\n"])), padding, "var(--ds-surface, white)", "var(--ds-border, ".concat(N30, ")"), "var(--ds-border-radius, 3px)");
10
- export var contentWrapper = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding: 0 ", "px ", "px;\n display: flex;\n justify-content: center;\n"])), padding, padding);
5
+ export var wrapperStyle = css(wrapperDefault, {
6
+ '&.without-frame': {
7
+ background: 'transparent'
8
+ },
9
+ cursor: 'pointer',
10
+ width: '100%',
11
+ '.extension-overflow-wrapper:not(.with-body)': {
12
+ overflowX: 'auto'
13
+ }
14
+ });
15
+ export var header = css({
16
+ padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)", " 0px"),
17
+ verticalAlign: 'middle',
18
+ '&.with-children:not(.without-frame)': {
19
+ padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)")
20
+ },
21
+ '&.without-frame': {
22
+ padding: 0
23
+ }
24
+ });
25
+ export var content = css({
26
+ padding: "var(--ds-space-100, 8px)",
27
+ background: "var(--ds-surface, white)",
28
+ border: "1px solid ".concat("var(--ds-border, ".concat(N30, ")")),
29
+ borderRadius: "var(--ds-border-radius, 3px)",
30
+ cursor: 'initial',
31
+ width: '100%'
32
+ });
33
+ export var contentWrapper = css({
34
+ padding: "0 ".concat("var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)"),
35
+ display: 'flex',
36
+ justifyContent: 'center',
37
+ '&.remove-padding': {
38
+ padding: 0
39
+ }
40
+ });
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import React, { Fragment } from 'react';
2
+ import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  import { akEditorGutterPadding } from '@atlaskit/editor-shared-styles';
5
5
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
@@ -20,11 +20,7 @@ var InlineExtension = function InlineExtension(props) {
20
20
  var className = hasChildren ? 'with-overlay with-children' : 'with-overlay';
21
21
  var rendererContainerWidth = widthState ? widthState.width - akEditorGutterPadding * 2 : 0;
22
22
  var extendedInlineExtension = getBooleanFF('platform.editor.inline_extension.extended_lcqdn') || false;
23
- var inlineExtensionInternal = jsx(Fragment, null, showMacroInteractionDesignUpdates && jsx(ExtensionLozenge, {
24
- node: node,
25
- isNodeSelected: isNodeSelected,
26
- showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
27
- }), jsx("div", {
23
+ var inlineExtensionInternal = jsx("div", {
28
24
  css: [wrapperStyle, extendedInlineExtension && inlineWrapperStyels],
29
25
  className: "extension-container inline ".concat(className)
30
26
  }, jsx("div", {
@@ -34,7 +30,7 @@ var InlineExtension = function InlineExtension(props) {
34
30
  node: node,
35
31
  isNodeSelected: isNodeSelected,
36
32
  showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
37
- })));
33
+ }));
38
34
  if (extendedInlineExtension) {
39
35
  return jsx(WidthContext.Provider, {
40
36
  value: createWidthContext(rendererContainerWidth)
@@ -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
  }]);
@@ -1,16 +1,7 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
- import { css, jsx } from '@emotion/react';
4
- import classnames from 'classnames';
5
2
  import { ZERO_WIDTH_SPACE } from '../utils';
6
- var styles = css({
7
- '&.inline-extension': {
8
- display: 'inline-block'
9
- }
10
- });
11
3
  /**
12
4
  * If inlineExtension, add zero width space to the end of the nodes and wrap with span;
13
- * Also if showMacroInteractionDesignUpdates is true, then add the inline-block style to account for the lozenge.
14
5
  * else wrap with a div (for multi bodied extensions)
15
6
  *
16
7
  * @param param0
@@ -18,13 +9,6 @@ var styles = css({
18
9
  */
19
10
  export var ExtensionNodeWrapper = function ExtensionNodeWrapper(_ref) {
20
11
  var children = _ref.children,
21
- nodeType = _ref.nodeType,
22
- showMacroInteractionDesignUpdates = _ref.showMacroInteractionDesignUpdates;
23
- var wrapperClassNames = classnames({
24
- 'inline-extension': nodeType === 'inlineExtension' && showMacroInteractionDesignUpdates
25
- });
26
- return jsx("span", {
27
- className: wrapperClassNames,
28
- css: styles
29
- }, children, nodeType === 'inlineExtension' && ZERO_WIDTH_SPACE);
12
+ nodeType = _ref.nodeType;
13
+ return /*#__PURE__*/React.createElement("span", null, children, nodeType === 'inlineExtension' && ZERO_WIDTH_SPACE);
30
14
  };
@@ -12,7 +12,7 @@ import { css, jsx } from '@emotion/react';
12
12
  import classnames from 'classnames';
13
13
  import EditorFileIcon from '@atlaskit/icon/glyph/editor/file';
14
14
  import { useSharedPluginState } from '../../hooks';
15
- import { sharedMultiBodiedExtensionStyles } from '../../ui/MultiBodiedExtension';
15
+ import { removeMargins, sharedMultiBodiedExtensionStyles } from '../../ui/MultiBodiedExtension';
16
16
  import { calculateBreakoutStyles, getExtensionLozengeData } from '../../utils';
17
17
  import { WithPluginState } from '../../with-plugin-state';
18
18
  import ExtensionLozenge from '../Extension/Lozenge';
@@ -90,7 +90,7 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
90
90
  var articleRef = React.useCallback(function (node) {
91
91
  return handleContentDOMRef(node);
92
92
  }, [handleContentDOMRef]);
93
- var containerCssExtended = css(sharedMultiBodiedExtensionStyles.mbeExtensionContainer, _defineProperty({}, ".multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(".concat(activeChildIndex + 1, ")"), sharedMultiBodiedExtensionStyles.extensionFrameContent));
93
+ var containerCssExtended = css(sharedMultiBodiedExtensionStyles.mbeExtensionContainer, _defineProperty({}, ".multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(".concat(activeChildIndex + 1, ")"), css(sharedMultiBodiedExtensionStyles.extensionFrameContent, showMacroInteractionDesignUpdates && removeMargins)));
94
94
  var shouldBreakout =
95
95
  // Extension should breakout when the layout is set to 'full-width' or 'wide'.
96
96
  ['full-width', 'wide'].includes(node.attrs.layout) &&
@@ -109,6 +109,12 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
109
109
  var wrapperClassNames = classnames('multiBodiedExtension--wrapper', 'extension-container', 'block', {
110
110
  'remove-margin-top': showMacroInteractionDesignUpdates
111
111
  });
112
+ var containerClassNames = classnames('multiBodiedExtension--container', {
113
+ 'remove-padding': showMacroInteractionDesignUpdates
114
+ });
115
+ var navigationClassNames = classnames('multiBodiedExtension--navigation', {
116
+ 'remove-margins': showMacroInteractionDesignUpdates
117
+ });
112
118
  return jsx(Fragment, null, showMacroInteractionDesignUpdates && jsx(ExtensionLozenge, {
113
119
  isNodeSelected: isNodeSelected,
114
120
  node: node,
@@ -120,12 +126,12 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
120
126
  "data-testid": "multiBodiedExtension--wrapper",
121
127
  style: mbeWrapperStyles
122
128
  }, getWrapperTitleContent(imageData, title, showMacroInteractionDesignUpdates), jsx("div", {
123
- className: "multiBodiedExtension--container",
129
+ className: containerClassNames,
124
130
  css: containerCssExtended,
125
131
  "data-testid": "multiBodiedExtension--container",
126
132
  "data-active-child-index": activeChildIndex
127
133
  }, jsx("nav", {
128
- className: "multiBodiedExtension-navigation",
134
+ className: navigationClassNames,
129
135
  css: sharedMultiBodiedExtensionStyles.mbeNavigation,
130
136
  "data-testid": "multiBodiedExtension-navigation"
131
137
  }, extensionHandlerResult), jsx("article", {
@@ -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';
@@ -47,8 +47,7 @@ export var ExtensionNode = /*#__PURE__*/function (_ReactNodeView) {
47
47
  value: function render(props, forwardRef) {
48
48
  var _props$extensionNodeV;
49
49
  return /*#__PURE__*/React.createElement(ExtensionNodeWrapper, {
50
- nodeType: this.node.type.name,
51
- showMacroInteractionDesignUpdates: props.showMacroInteractionDesignUpdates
50
+ nodeType: this.node.type.name
52
51
  }, /*#__PURE__*/React.createElement(Extension, {
53
52
  editorView: this.view,
54
53
  node: this.node,
@@ -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.3";
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
+ });
@@ -1,7 +1,32 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  import { css } from '@emotion/react';
4
2
  import { akEditorGridLineZIndex } from '@atlaskit/editor-shared-styles';
5
3
  import { B200, N30A } from '@atlaskit/theme/colors';
6
4
  export var GRID_GUTTER = 12;
7
- export var gridStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .gridParent {\n width: calc(100% + ", "px);\n margin-left: ", "; // Negative GRID_GUTTER\n margin-right: ", "; // Negative GRID_GUTTER\n transform: scale(1);\n z-index: ", ";\n }\n\n .gridContainer {\n position: fixed;\n height: 100vh;\n width: 100%;\n pointer-events: none;\n }\n\n // TODO: https://product-fabric.atlassian.net/browse/DSP-4352\n .gridLine {\n border-left: 1px solid ", ";\n display: inline-block;\n box-sizing: border-box;\n height: 100%;\n margin-left: -1px;\n\n transition: border-color 0.15s linear;\n z-index: 0;\n }\n\n .highlight {\n border-left: 1px solid ", ";\n }\n"])), GRID_GUTTER * 2, "var(--ds-space-negative-150, -12px)", "var(--ds-space-negative-150, -12px)", akEditorGridLineZIndex, "var(--ds-border, ".concat(N30A, ")"), "var(--ds-border-focused, ".concat(B200, ")"));
5
+ export var gridStyles = css({
6
+ '.gridParent': {
7
+ width: "calc(100% + ".concat(GRID_GUTTER * 2, "px)"),
8
+ marginLeft: "var(--ds-space-negative-150, -12px)",
9
+ marginRight: "var(--ds-space-negative-150, -12px)",
10
+ transform: 'scale(1)',
11
+ zIndex: akEditorGridLineZIndex
12
+ },
13
+ '.gridContainer': {
14
+ position: 'fixed',
15
+ height: '100vh',
16
+ width: '100%',
17
+ pointerEvents: 'none'
18
+ },
19
+ '.gridLine': {
20
+ borderLeft: "1px solid ".concat("var(--ds-border, ".concat(N30A, ")")),
21
+ display: 'inline-block',
22
+ boxSizing: 'border-box',
23
+ height: '100%',
24
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
25
+ marginLeft: '-1px',
26
+ transition: 'border-color 0.15s linear',
27
+ zIndex: 0
28
+ },
29
+ '.highlight': {
30
+ borderLeft: "1px solid ".concat("var(--ds-border-focused, ".concat(B200, ")"))
31
+ }
32
+ });
@@ -1,4 +1,6 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
2
  var _templateObject;
3
3
  import { css } from '@emotion/react';
4
+
5
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
4
6
  export var indentationSharedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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"])));