@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,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"])));
@@ -158,7 +158,7 @@ var mainDynamicStyles = function mainDynamicStyles(panelType) {
158
158
  return "\n background-color: ".concat(getPanelTypeBackground(panelType), ";\n color: inherit;\n ");
159
159
  };
160
160
  export var panelSharedStylesWithoutPrefix = function panelSharedStylesWithoutPrefix() {
161
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-radius: ", ";\n margin: ", " 0 0;\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n min-width: ", "px;\n display: flex;\n position: relative;\n align-items: normal;\n word-break: break-word;\n\n ", "\n\n .", " {\n flex-shrink: 0;\n height: ", ";\n width: ", ";\n box-sizing: content-box;\n padding-right: ", ";\n text-align: center;\n user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n margin-top: 0.1em;\n ", "\n\n > span {\n vertical-align: middle;\n display: inline-flex;\n }\n\n .", " {\n vertical-align: ", "px;\n }\n\n .", " {\n vertical-align: ", "px;\n\n // Vertical align only works for inline-block elements in Firefox\n @-moz-document url-prefix() {\n img {\n display: inline-block;\n }\n }\n }\n }\n\n .ak-editor-panel__content {\n margin: 1px 0 1px;\n flex: 1 0 0;\n /*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n min-width: 0;\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n"])), "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, "var(--ds-space-100, 8px)", "var(--ds-space-200, 16px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", akEditorTableCellMinWidth, mainDynamicStyles(PanelType.INFO), PanelSharedCssClassName.icon, "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", iconDynamicStyles(PanelType.INFO), emojiSprite, panelEmojiSpriteVerticalAlignment, emojiImage, panelEmojiImageVerticalAlignment, PanelType.NOTE, mainDynamicStyles(PanelType.NOTE), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.NOTE), PanelType.TIP, mainDynamicStyles(PanelType.TIP), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.TIP), PanelType.WARNING, mainDynamicStyles(PanelType.WARNING), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.WARNING), PanelType.ERROR, mainDynamicStyles(PanelType.ERROR), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.ERROR), PanelType.SUCCESS, mainDynamicStyles(PanelType.SUCCESS), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.SUCCESS));
161
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-radius: ", ";\n margin: ", " 0 0;\n padding-top: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n min-width: ", "px;\n display: flex;\n position: relative;\n align-items: normal;\n word-break: break-word;\n\n ", "\n\n .", " {\n flex-shrink: 0;\n height: ", ";\n width: ", ";\n box-sizing: content-box;\n padding-right: ", ";\n text-align: center;\n user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n margin-top: 0.1em;\n ", "\n\n > span {\n vertical-align: middle;\n display: inline-flex;\n }\n\n .", " {\n vertical-align: ", "px;\n }\n\n .", " {\n vertical-align: ", "px;\n\n // Vertical align only works for inline-block elements in Firefox\n @-moz-document url-prefix() {\n img {\n display: inline-block;\n }\n }\n }\n }\n\n .ak-editor-panel__content {\n margin: ", " 0 ", ";\n flex: 1 0 0;\n /*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n min-width: 0;\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n"])), "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, "var(--ds-space-100, 8px)", "var(--ds-space-200, 16px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", akEditorTableCellMinWidth, mainDynamicStyles(PanelType.INFO), PanelSharedCssClassName.icon, "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", iconDynamicStyles(PanelType.INFO), emojiSprite, panelEmojiSpriteVerticalAlignment, emojiImage, panelEmojiImageVerticalAlignment, "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", PanelType.NOTE, mainDynamicStyles(PanelType.NOTE), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.NOTE), PanelType.TIP, mainDynamicStyles(PanelType.TIP), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.TIP), PanelType.WARNING, mainDynamicStyles(PanelType.WARNING), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.WARNING), PanelType.ERROR, mainDynamicStyles(PanelType.ERROR), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.ERROR), PanelType.SUCCESS, mainDynamicStyles(PanelType.SUCCESS), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.SUCCESS));
162
162
  };
163
163
  export var panelSharedStyles = function panelSharedStyles() {
164
164
  return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .", " {\n ", "\n }\n"])), PanelSharedCssClassName.prefix, panelSharedStylesWithoutPrefix());
@@ -7,9 +7,9 @@ import { B200, B50, N60 } from '@atlaskit/theme/colors';
7
7
  Styles in this file are based on
8
8
  packages/editor/editor-core/src/plugins/media/styles.ts
9
9
  */
10
-
11
10
  export var resizerItemClassName = 'resizer-item';
12
11
  export var resizerHoverZoneClassName = 'resizer-hover-zone';
12
+ export var resizerExtendedZone = 'resizer-is-extended';
13
13
  export var resizerHandleClassName = 'resizer-handle';
14
14
  export var resizerHandleTrackClassName = "".concat(resizerHandleClassName, "-track");
15
15
  export var resizerHandleThumbClassName = "".concat(resizerHandleClassName, "-thumb");
@@ -19,4 +19,4 @@ export var resizerDangerClassName = "".concat(resizerHandleClassName, "-danger")
19
19
  var akEditorSelectedNodeClassName = 'ak-editor-selected-node';
20
20
  export var handleWrapperClass = 'resizer-handle-wrapper';
21
21
  export var resizerHandleZIndex = 1;
22
- export var resizerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n will-change: width;\n\n &:hover,\n &.display-handle {\n & > .", " > .", " {\n visibility: visible;\n opacity: 1;\n }\n }\n\n &.is-resizing {\n & .", " {\n background: ", ";\n }\n }\n\n &.", " {\n & .", " {\n transition: none;\n background: ", ";\n }\n }\n }\n\n .", " {\n display: flex;\n visibility: hidden;\n opacity: 0;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 7px;\n transition: visibility 0.2s, opacity 0.2s;\n\n /*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n & div[role='presentation'] {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n margin-top: ", ";\n white-space: normal;\n }\n\n /*\n Handle Positions\n */\n &.left {\n align-items: flex-start;\n }\n &.right {\n align-items: flex-end;\n }\n\n /*\n Handle Sizing\n */\n &.small {\n & .", " {\n height: 43px;\n }\n }\n &.medium {\n & .", " {\n height: 64px;\n }\n }\n &.large {\n & .", " {\n height: 96px;\n }\n }\n\n /*\n Handle Alignment\n */\n &.sticky {\n & .", " {\n position: sticky;\n top: ", ";\n bottom: ", ";\n }\n }\n\n &:hover {\n & .", " {\n background: ", ";\n }\n\n & .", " {\n visibility: visible;\n opacity: 0.5;\n }\n }\n }\n\n .", " {\n content: ' ';\n display: flex;\n width: 3px;\n margin: 0 ", ";\n height: 64px;\n transition: background-color 0.2s;\n border-radius: 6px;\n border: 0;\n padding: 0;\n z-index: 2;\n outline: none;\n min-height: 24px;\n background: ", ";\n\n &:hover {\n cursor: col-resize;\n }\n\n &:focus {\n background: ", ";\n\n &::after {\n content: '';\n position: absolute;\n top: ", ";\n right: ", ";\n bottom: ", ";\n left: ", ";\n border: 2px solid ", ";\n border-radius: inherit;\n z-index: -1;\n }\n }\n }\n\n .", " {\n visibility: hidden;\n position: absolute;\n width: 7px;\n height: calc(100% - 40px);\n border-radius: 4px;\n opacity: 0;\n transition: background-color 0.2s, visibility 0.2s, opacity 0.2s;\n\n &.none {\n background: none;\n }\n\n &.shadow {\n background: ", ";\n }\n\n &.full-height {\n background: ", ";\n height: 100%;\n min-height: 36px;\n }\n }\n\n .", " {\n & .", " {\n background: ", ";\n }\n }\n\n .", " {\n position: relative;\n display: inline-block;\n width: 100%;\n\n &.is-extended {\n padding: 0 ", ";\n left: ", ";\n }\n }\n\n // This below style is here to make sure the image width is correct when nested in a table\n table .", " {\n padding: unset;\n left: unset;\n }\n"])), resizerItemClassName, handleWrapperClass, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), resizerHandleClassName, "var(--ds-space-negative-200, -16px)", resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, ".concat(N60, ")"), "var(--ds-border-selected, #0C66E4)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-border-focused, #388BFF)", resizerHandleTrackClassName, "var(--ds-background-selected, ".concat(B50, ")"), "var(--ds-background-selected, ".concat(B50, ")"), akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHoverZoneClassName, "var(--ds-space-150, 12px)", "var(--ds-space-negative-150, -12px)", resizerHoverZoneClassName);
22
+ export var resizerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n will-change: width;\n\n &:hover,\n &.display-handle {\n & > .", " > .", " {\n visibility: visible;\n opacity: 1;\n }\n }\n\n &.is-resizing {\n & .", " {\n background: ", ";\n }\n }\n\n &.", " {\n & .", " {\n transition: none;\n background: ", ";\n }\n }\n }\n\n .", " {\n display: flex;\n visibility: hidden;\n opacity: 0;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 7px;\n transition: visibility 0.2s, opacity 0.2s;\n\n /*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n & div[role='presentation'] {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n margin-top: ", ";\n white-space: normal;\n }\n\n /*\n Handle Positions\n */\n &.left {\n align-items: flex-start;\n }\n &.right {\n align-items: flex-end;\n }\n\n /*\n Handle Sizing\n */\n &.small {\n & .", " {\n height: 43px;\n }\n }\n &.medium {\n & .", " {\n height: 64px;\n }\n }\n &.large {\n & .", " {\n height: 96px;\n }\n }\n\n /*\n Handle Alignment\n */\n &.sticky {\n & .", " {\n position: sticky;\n top: ", ";\n bottom: ", ";\n }\n }\n\n &:hover {\n & .", " {\n background: ", ";\n }\n\n & .", " {\n visibility: visible;\n opacity: 0.5;\n }\n }\n }\n\n .", " {\n content: ' ';\n display: flex;\n width: 3px;\n margin: 0 ", ";\n height: 64px;\n transition: background-color 0.2s;\n border-radius: 6px;\n border: 0;\n padding: 0;\n z-index: 2;\n outline: none;\n min-height: 24px;\n background: ", ";\n\n &:hover {\n cursor: col-resize;\n }\n\n &:focus {\n background: ", ";\n\n &::after {\n content: '';\n position: absolute;\n top: ", ";\n right: ", ";\n bottom: ", ";\n left: ", ";\n border: 2px solid ", ";\n border-radius: inherit;\n z-index: -1;\n }\n }\n }\n\n .", " {\n visibility: hidden;\n position: absolute;\n width: 7px;\n height: calc(100% - 40px);\n border-radius: 4px;\n opacity: 0;\n transition: background-color 0.2s, visibility 0.2s, opacity 0.2s;\n\n &.none {\n background: none;\n }\n\n &.shadow {\n background: ", ";\n }\n\n &.full-height {\n background: ", ";\n height: 100%;\n min-height: 36px;\n }\n }\n\n .", " {\n & .", " {\n background: ", ";\n }\n }\n\n .", " {\n position: relative;\n display: inline-block;\n width: 100%;\n\n &.", " {\n padding: 0 ", ";\n left: ", ";\n }\n }\n\n // This below style is here to make sure the image width is correct when nested in a table\n table\n .", ",\n table\n .", ".", " {\n padding: unset;\n left: unset;\n }\n"])), resizerItemClassName, handleWrapperClass, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), resizerHandleClassName, "var(--ds-space-negative-200, -16px)", resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, ".concat(N60, ")"), "var(--ds-border-selected, #0C66E4)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-border-focused, #388BFF)", resizerHandleTrackClassName, "var(--ds-background-selected, ".concat(B50, ")"), "var(--ds-background-selected, ".concat(B50, ")"), akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHoverZoneClassName, resizerExtendedZone, "var(--ds-space-150, 12px)", "var(--ds-space-negative-150, -12px)", resizerHoverZoneClassName, resizerHoverZoneClassName, resizerExtendedZone);
@@ -1,5 +1,5 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject;
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ var _css;
3
3
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
4
4
 
5
5
  import { css } from '@emotion/react';
@@ -24,5 +24,34 @@ var shadowWidth = 8;
24
24
  * background-attachment: local, local, scroll, scroll;
25
25
  */
26
26
 
27
- var shadowSharedStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &\n .", "::before,\n .", "::after,\n .", "::before,\n .", "::after {\n display: none;\n position: absolute;\n pointer-events: none;\n z-index: ", ";\n width: ", "px;\n content: '';\n /* Scrollbar is outside the content in IE, inset in other browsers. */\n height: calc(100%);\n }\n\n & .", ", .", " {\n position: relative;\n }\n\n & .", "::before {\n background: linear-gradient(\n to left,\n transparent 0,\n ", "\n ", "%\n ),\n linear-gradient(\n to right,\n ", " 0px,\n transparent 1px\n );\n top: 0px;\n left: 0;\n display: block;\n }\n\n & .", "::after {\n background: linear-gradient(\n to right,\n transparent 0,\n ", "\n ", "%\n ),\n linear-gradient(\n to left,\n ", " 0px,\n transparent 1px\n );\n left: calc(100% - ", "px);\n top: 0px;\n display: block;\n }\n\n & .", " {\n height: 100%;\n width: 0px;\n min-width: 0px;\n }\n\n & .", " {\n height: 100%;\n width: 0px;\n min-width: 0px;\n }\n"])), shadowClassNames.RIGHT_SHADOW, shadowClassNames.RIGHT_SHADOW, shadowClassNames.LEFT_SHADOW, shadowClassNames.LEFT_SHADOW, akEditorShadowZIndex, shadowWidth, shadowClassNames.RIGHT_SHADOW, shadowClassNames.LEFT_SHADOW, shadowClassNames.LEFT_SHADOW, "var(--ds-shadow-overflow-spread, ".concat(N40A, ")"), getBooleanFF('platform.editor.table.increase-shadow-visibility_lh89r') ? 140 : 100, "var(--ds-shadow-overflow-perimeter, transparent)", shadowClassNames.RIGHT_SHADOW, "var(--ds-shadow-overflow-spread, ".concat(N40A, ")"), getBooleanFF('platform.editor.table.increase-shadow-visibility_lh89r') ? 140 : 100, "var(--ds-shadow-overflow-perimeter, transparent)", shadowWidth, shadowObserverClassNames.SENTINEL_LEFT, shadowObserverClassNames.SENTINEL_RIGHT);
27
+ var shadowSharedStyle = css((_css = {}, _defineProperty(_css, "& .".concat(shadowClassNames.RIGHT_SHADOW, "::before, .").concat(shadowClassNames.RIGHT_SHADOW, "::after, .").concat(shadowClassNames.LEFT_SHADOW, "::before, .").concat(shadowClassNames.LEFT_SHADOW, "::after"), {
28
+ display: 'none',
29
+ position: 'absolute',
30
+ pointerEvents: 'none',
31
+ zIndex: akEditorShadowZIndex,
32
+ width: "".concat(shadowWidth, "px"),
33
+ content: "''",
34
+ height: 'calc(100%)'
35
+ }), _defineProperty(_css, "& .".concat(shadowClassNames.RIGHT_SHADOW, ", .").concat(shadowClassNames.LEFT_SHADOW), {
36
+ position: 'relative'
37
+ }), _defineProperty(_css, "& .".concat(shadowClassNames.LEFT_SHADOW, "::before"), {
38
+ background: "linear-gradient( to left, transparent 0, ".concat("var(--ds-shadow-overflow-spread, ".concat(N40A, ")"), " ", getBooleanFF('platform.editor.table.increase-shadow-visibility_lh89r') ? 140 : 100, "% ), linear-gradient( to right, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px )"),
39
+ top: '0px',
40
+ left: 0,
41
+ display: 'block'
42
+ }), _defineProperty(_css, "& .".concat(shadowClassNames.RIGHT_SHADOW, "::after"), {
43
+ background: "linear-gradient( to right, transparent 0, ".concat("var(--ds-shadow-overflow-spread, ".concat(N40A, ")"), " ", getBooleanFF('platform.editor.table.increase-shadow-visibility_lh89r') ? 140 : 100, "% ), linear-gradient( to left, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px )"),
44
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
45
+ left: "calc(100% - ".concat(shadowWidth, "px)"),
46
+ top: '0px',
47
+ display: 'block'
48
+ }), _defineProperty(_css, "& .".concat(shadowObserverClassNames.SENTINEL_LEFT), {
49
+ height: '100%',
50
+ width: '0px',
51
+ minWidth: '0px'
52
+ }), _defineProperty(_css, "& .".concat(shadowObserverClassNames.SENTINEL_RIGHT), {
53
+ height: '100%',
54
+ width: '0px',
55
+ minWidth: '0px'
56
+ }), _css));
28
57
  export { shadowSharedStyle };
@@ -10,8 +10,10 @@ import React, { forwardRef, memo, useEffect, useState } from 'react';
10
10
 
11
11
  // Note: Text won't be announced if the text message doesn't change after the render.
12
12
  // For using a forced announcement in this case, set the 'key' attribute - key={Date.now()}
13
+
13
14
  // Note: Flag 'contentRendered' resolves bug with duplicates messages (NVDA + Firefox)
14
15
  // https://github.com/nvaccess/nvda/labels/bug%2Fdouble-speaking
16
+
15
17
  var timer;
16
18
  var Announcer = /*#__PURE__*/forwardRef(function (_ref, ref) {
17
19
  var _ref$ariaAtomic = _ref.ariaAtomic,
@@ -7,7 +7,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
8
8
  var _templateObject, _templateObject2;
9
9
  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); }; }
10
- 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; } }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  /** @jsx jsx */
12
12
  import React from 'react';
13
13
  import { css, jsx } from '@emotion/react';
@@ -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 from 'react';
11
11
 
12
12
  // React context to communicate the active context panel width up and down the tree.
@@ -23,6 +23,7 @@ import React from 'react';
23
23
  // positionedOverEditor is used to determine whether the context panel is positioned over the Editor so we are
24
24
  // able to position and add margins to handle certain elements like inline comment dialogues overlapping the context
25
25
  // panel
26
+
26
27
  export var ContextPanel = /*#__PURE__*/React.createContext({
27
28
  width: 0,
28
29
  positionedOverEditor: false,
@@ -8,7 +8,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  var _templateObject, _templateObject2, _templateObject3;
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
  /** @jsx jsx */
13
13
 
14
14
  import { Component } from 'react';
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
17
17
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
18
18
  import Layer from '../Layer';
19
19
  var packageName = "@atlaskit/editor-common";
20
- var packageVersion = "78.11.4";
20
+ var packageVersion = "78.11.5";
21
21
  var halfFocusRing = 1;
22
22
  var dropOffset = '0, 8';
23
23
  var DropList = /*#__PURE__*/function (_Component) {
@@ -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, { PureComponent } from 'react';
11
11
  import { ResourcedEmoji } from '@atlaskit/emoji/element';
12
12
  import { ProviderFactory, WithProviders } from '../../provider-factory';
@@ -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 from 'react';
11
11
  import { ACTION, EVENT_TYPE } from '../../analytics';
12
12
  import { logException } from '../../monitoring/error';
@@ -11,7 +11,7 @@ import { defineMessages } from 'react-intl-next';
11
11
  import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
12
12
  import { B300, N200, N200A, N300A, N30A, N40A, N50A, N90 } from '@atlaskit/theme/colors';
13
13
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
14
- import { fontSize, gridSize } from '@atlaskit/theme/constants';
14
+ import { fontSize } from '@atlaskit/theme/constants';
15
15
  export var messages = defineMessages({
16
16
  collapseNode: {
17
17
  id: 'fabric.editor.collapseNode',
@@ -78,7 +78,7 @@ var containerStyles = function containerStyles(styleProps) {
78
78
  };
79
79
  var contentStyles = function contentStyles(styleProps) {
80
80
  return function () {
81
- return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding-top: ", ";\n padding-right: ", ";\n // TODO: Migrate away from gridSize\n // Recommendation: Replace gridSize with 8 if important to highlight 8*4 - 8/2, or directly replace with 28px\n padding-left: ", "px;\n display: flow-root;\n\n // The follow rules inside @supports block are added as a part of ED-8893\n // The fix is targeting mobile bridge on iOS 12 or below,\n // We should consider remove this fix when we no longer support iOS 12\n @supports not (display: flow-root) {\n width: 100%;\n box-sizing: border-box;\n }\n\n ", "\n "])), styleProps.expanded ? "var(--ds-space-100, 8px)" : "var(--ds-space-0, 0px)", "var(--ds-space-100, 8px)", gridSize() * 4 - gridSize() / 2, !styleProps.expanded ? "\n .expand-content-wrapper, .nestedExpand-content-wrapper {\n /* We visually hide the content here to preserve the content during copy+paste */\n /* Do not add text nowrap here because inline comment navigation depends on the location of the text */\n width: 100%;\n display: block;\n height: 0;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n user-select: none;\n }\n " : '');
81
+ return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding-top: ", ";\n padding-right: ", ";\n padding-left: ", ";\n margin-left: ", ";\n display: flow-root;\n\n // The follow rules inside @supports block are added as a part of ED-8893\n // The fix is targeting mobile bridge on iOS 12 or below,\n // We should consider remove this fix when we no longer support iOS 12\n @supports not (display: flow-root) {\n width: 100%;\n box-sizing: border-box;\n }\n\n ", "\n "])), styleProps.expanded ? "var(--ds-space-100, 8px)" : "var(--ds-space-0, 0px)", "var(--ds-space-100, 8px)", "var(--ds-space-300, 24px)", "var(--ds-space-050, 4px)", !styleProps.expanded ? "\n .expand-content-wrapper, .nestedExpand-content-wrapper {\n /* We visually hide the content here to preserve the content during copy+paste */\n /* Do not add text nowrap here because inline comment navigation depends on the location of the text */\n width: 100%;\n display: block;\n height: 0;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n user-select: none;\n }\n " : '');
82
82
  };
83
83
  };
84
84
  var titleInputStyles = function titleInputStyles() {
@@ -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 from 'react';
11
11
  import { IntlProvider } from 'react-intl-next';
12
12
  export var REACT_INTL_ERROR_MESSAGE = '<IntlProvider> needs to exist in the component ancestry';
@@ -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 React, { Component } from 'react';
13
13
  import Popper from 'popper.js'; // eslint-disable-line import/extensions
14
14
  import rafSchedule from 'raf-schd';
@@ -151,7 +151,6 @@ var Layer = /*#__PURE__*/function (_Component) {
151
151
  boundariesElement: 'viewport',
152
152
  padding: 0 // leave 0 pixels between popper and the boundariesElement
153
153
  },
154
-
155
154
  preventOverflow: {
156
155
  enabled: false,
157
156
  escapeWithReference: true
@@ -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, { PureComponent } from 'react';
11
11
  import { ProviderFactory, WithProviders } from '../../provider-factory';
12
12
  import MentionWithProviders from './mention-with-providers';
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  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); }; }
10
- 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; } }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  import React, { PureComponent } from 'react';
12
12
  import { ResourcedMention } from '@atlaskit/mention/element';
13
13
  import ResourcedMentionWithProfilecard from './mention-with-profilecard';
@@ -2,8 +2,6 @@
2
2
 
3
3
  import { css } from '@emotion/react';
4
4
  import { N30, N40 } from '@atlaskit/theme/colors';
5
- import { BODIED_EXT_MBE_MARGIN_TOP } from '../../styles';
6
-
7
5
  // Wraps the navigation bar and extensionFrames
8
6
  var mbeExtensionContainer = css({
9
7
  background: 'transparent !important',
@@ -62,7 +60,7 @@ var extensionFrameContent = css({
62
60
  paddingRight: "var(--ds-space-150, 12px)".concat(" !important")
63
61
  },
64
62
  '.bodiedExtensionView-content-wrap': {
65
- marginTop: "".concat(BODIED_EXT_MBE_MARGIN_TOP, "px !important")
63
+ marginTop: "var(--ds-space-150, 12px)".concat(" !important")
66
64
  },
67
65
  '.extensionView-content-wrap': {
68
66
  marginTop: "var(--ds-space-100, 8px)".concat(" !important")
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  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); }; }
10
- 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; } }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  import React from 'react';
12
12
  import { ShadowObserver, shadowObserverClassNames } from './shadowObserver';
13
13
  export var shadowClassNames = {
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  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); }; }
10
- 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; } }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  /** @jsx jsx */
12
12
 
13
13
  import { PureComponent } from 'react';
@@ -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 React from 'react';
13
13
  import createFocusTrap from 'focus-trap';
14
14
  import rafSchedule from 'raf-schd';
@@ -8,7 +8,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  var _class4;
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 PropTypes from 'prop-types';
14
14
  import { createPortal, unmountComponentAtNode, unstable_renderSubtreeIntoContainer } from 'react-dom';
@@ -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 React from 'react';
13
13
  import classnames from 'classnames';
14
14
  import { Resizable } from 're-resizable';
@@ -13,7 +13,7 @@ import { ACTION_SUBJECT_ID } from '../../analytics';
13
13
  import { unsupportedContentMessages } from '../../messages/unsupportedContent';
14
14
  import { trackUnsupportedContentTooltipDisplayedFor } from '../../utils/track-unsupported-content';
15
15
  import { getUnsupportedContent } from '../unsupported-content-helper';
16
- var blockNodeStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border: 1px dashed ", ";\n border-radius: ", "px;\n box-sizing: border-box;\n cursor: default;\n display: flex;\n font-size: ", ";\n margin: 10px 0;\n min-height: 24px;\n padding: 10px;\n text-align: center;\n vertical-align: text-bottom;\n min-width: 120px;\n align-items: center;\n justify-content: center;\n"])), "var(--ds-background-disabled, ".concat(N30, ")"), "var(--ds-border-disabled, ".concat(N50, ")"), borderRadius(), relativeFontSizeToBase16(fontSize()));
16
+ var blockNodeStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border: 1px dashed ", ";\n border-radius: ", "px;\n box-sizing: border-box;\n cursor: default;\n display: flex;\n font-size: ", ";\n margin: ", " 0;\n min-height: 24px;\n padding: ", ";\n text-align: center;\n vertical-align: text-bottom;\n min-width: 120px;\n align-items: center;\n justify-content: center;\n"])), "var(--ds-background-disabled, ".concat(N30, ")"), "var(--ds-border-disabled, ".concat(N50, ")"), borderRadius(), relativeFontSizeToBase16(fontSize()), "var(--ds-space-100, 8px)", "var(--ds-space-150, 12px)");
17
17
  var UnsupportedBlockNode = function UnsupportedBlockNode(_ref) {
18
18
  var node = _ref.node,
19
19
  intl = _ref.intl,
@@ -1,5 +1,3 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  /** @jsx jsx */
4
2
  import React, { useCallback, useRef } from 'react';
5
3
  import { css, jsx } from '@emotion/react';
@@ -13,7 +11,21 @@ import { ACTION_SUBJECT_ID } from '../../analytics';
13
11
  import { unsupportedContentMessages } from '../../messages/unsupportedContent';
14
12
  import { trackUnsupportedContentTooltipDisplayedFor } from '../../utils/track-unsupported-content';
15
13
  import { getUnsupportedContent } from '../unsupported-content-helper';
16
- var inlineNodeStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n align-items: center;\n background: ", ";\n border: 1px dashed ", ";\n border-radius: ", "px;\n box-sizing: border-box;\n cursor: default;\n display: inline-flex;\n font-size: ", ";\n margin: 0 ", ";\n min-height: 24px;\n padding: 0 10px;\n vertical-align: middle;\n white-space: nowrap;\n"])), "var(--ds-background-disabled, ".concat(N30, ")"), "var(--ds-border-disabled, ".concat(N50, ")"), borderRadius(), relativeFontSizeToBase16(fontSize()), "var(--ds-space-025, 2px)");
14
+ var inlineNodeStyle = css({
15
+ alignItems: 'center',
16
+ background: "var(--ds-background-disabled, ".concat(N30, ")"),
17
+ border: "1px dashed ".concat("var(--ds-border-disabled, ".concat(N50, ")")),
18
+ borderRadius: "".concat(borderRadius(), "px"),
19
+ boxSizing: 'border-box',
20
+ cursor: 'default',
21
+ display: 'inline-flex',
22
+ fontSize: relativeFontSizeToBase16(fontSize()),
23
+ margin: "0 ".concat("var(--ds-space-025, 2px)"),
24
+ minHeight: '24px',
25
+ padding: "0 ".concat("var(--ds-space-100, 8px)"),
26
+ verticalAlign: 'middle',
27
+ whiteSpace: 'nowrap'
28
+ });
17
29
  var UnsupportedInlineNode = function UnsupportedInlineNode(_ref) {
18
30
  var node = _ref.node,
19
31
  intl = _ref.intl,
@@ -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 { withAnalyticsEvents } from '@atlaskit/analytics-next';
10
10
  export var WithCreateAnalyticsEvent = withAnalyticsEvents()( /*#__PURE__*/function (_React$Component) {
@@ -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, { PureComponent } from 'react';
11
11
  import ReactDOM from 'react-dom';
12
12
  export default function withOuterListeners(Component) {
@@ -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
  /** @jsx jsx */
11
11
  import React, { PureComponent } from 'react';
12
12
  import { jsx } from '@emotion/react';
@@ -1,14 +1,30 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2;
3
1
  import { css } from '@emotion/react';
4
2
  import { N0, N50, N900 } from '@atlaskit/theme/colors';
5
-
6
3
  /** this is not new usage - old code extracted from editor-core */
7
4
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
8
- export var buttonStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 26px;\n width: 26px;\n background: ", ";\n padding: 0;\n border-radius: 4px;\n border: 1px solid ", ";\n cursor: pointer;\n display: block;\n"])), N900, N0);
5
+ export var buttonStyle = css({
6
+ height: '26px',
7
+ width: '26px',
8
+ background: "var(--ds-background-neutral, ".concat(N900, ")"),
9
+ padding: 0,
10
+ borderRadius: '4px',
11
+ border: "1px solid ".concat("var(--ds-border-inverse, ".concat(N0, ")")),
12
+ cursor: 'pointer',
13
+ display: 'block'
14
+ });
9
15
  /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
10
16
 
11
17
  /** this is not new usage - old code extracted from editor-core */
12
18
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
13
- export var buttonWrapperStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border: 1px solid transparent;\n margin: 1px;\n font-size: 0;\n display: flex;\n align-items: center;\n padding: 1px;\n border-radius: 6px;\n &:focus-within,\n &:focus,\n &:hover {\n border-color: ", " !important;\n }\n"])), N50);
19
+ export var buttonWrapperStyle = css({
20
+ border: '1px solid transparent',
21
+ fontSize: 0,
22
+ display: 'flex',
23
+ alignItems: 'center',
24
+ padding: "var(--ds-space-025, 2px)",
25
+ borderRadius: '6px',
26
+ '&:focus-within, &:focus, &:hover': {
27
+ borderColor: "".concat("var(--ds-border, ".concat(N50, ")"), " !important")
28
+ }
29
+ });
14
30
  /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
@@ -1,6 +1,4 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
4
2
  /** @jsx jsx */
5
3
  import React from 'react';
6
4
  import { css, jsx } from '@emotion/react';
@@ -17,14 +15,23 @@ import { ArrowKeyNavigationProvider } from '../ArrowKeyNavigationProvider';
17
15
  import { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
18
16
 
19
17
  // helps adjusts position of popup
20
- var colorPickerButtonWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n"])));
21
- var colorPickerExpandContainer = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: 0px ", ";\n"])), "var(--ds-space-negative-050, -4px)");
18
+ var colorPickerButtonWrapper = css({
19
+ position: 'relative'
20
+ });
21
+ var colorPickerExpandContainer = css({
22
+ margin: "0px ".concat("var(--ds-space-negative-050, -4px)")
23
+ });
22
24
 
23
25
  // Control the size of color picker buttons and preview
24
26
  // TODO: https://product-fabric.atlassian.net/browse/DSP-4134
25
27
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
26
28
  var colorPickerWrapper = function colorPickerWrapper() {
27
- return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n border-radius: ", ";\n background-color: ", ";\n box-shadow: 0 4px 8px -2px ", ", 0 0 1px ", ";\n padding: ", " 0px;\n"])), "var(--ds-border-radius, 3px)", "var(--ds-surface-overlay, ".concat(N0, ")"), N60A, N60A, "var(--ds-space-100, 8px)");
29
+ return css({
30
+ borderRadius: "var(--ds-border-radius, 3px)",
31
+ backgroundColor: "var(--ds-surface-overlay, ".concat(N0, ")"),
32
+ boxShadow: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N60A, ", 0 0 1px ").concat(N60A), ")"),
33
+ padding: "var(--ds-space-100, 8px)".concat(" 0px")
34
+ });
28
35
  };
29
36
  /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
30
37
 
@@ -157,8 +164,28 @@ var ColorPickerButton = function ColorPickerButton(props) {
157
164
  var currentColor = props.currentColor && props.hexToPaletteColor ? props.hexToPaletteColor(props.currentColor) : props.currentColor;
158
165
  var buttonStyle = function buttonStyle() {
159
166
  var _props$size, _props$size2, _props$size3;
160
- return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding: ", " 10px;\n background-color: ", ";\n ", "\n &:before {\n display: flex;\n justify-content: center;\n align-items: center;\n align-self: center;\n content: '';\n border: 1px solid ", ";\n border-radius: ", ";\n background-color: ", ";\n width: ", ";\n height: ", ";\n padding: 0;\n margin: 0px ", ";\n }\n &:hover {\n background: ", ";\n }\n "])), "var(--ds-space-075, 6px)", "var(--ds-background-neutral-subtle, transparent)", /* If custom props size height, override the button base height property */
161
- !!((_props$size = props.size) !== null && _props$size !== void 0 && _props$size.height) && "height: inherit;", DEFAULT_BORDER_COLOR, "var(--ds-border-radius, 3px)", currentColor || 'transparent', ((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.width) || '14px', ((_props$size3 = props.size) === null || _props$size3 === void 0 ? void 0 : _props$size3.height) || '14px', "var(--ds-space-025, 2px)", "var(--ds-background-neutral-subtle-hovered, ".concat(N30A, ")"));
167
+ return css({
168
+ padding: "var(--ds-space-075, 6px)".concat(" 10px"),
169
+ backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
170
+ height: "".concat(!!((_props$size = props.size) !== null && _props$size !== void 0 && _props$size.height) ? 'inherit' : ''),
171
+ '&:before': {
172
+ display: 'flex',
173
+ justifyContent: 'center',
174
+ alignItems: 'center',
175
+ alignSelf: 'center',
176
+ content: "''",
177
+ border: "1px solid ".concat(DEFAULT_BORDER_COLOR),
178
+ borderRadius: "var(--ds-border-radius, 3px)",
179
+ backgroundColor: currentColor || 'transparent',
180
+ width: ((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.width) || '14px',
181
+ height: ((_props$size3 = props.size) === null || _props$size3 === void 0 ? void 0 : _props$size3.height) || '14px',
182
+ padding: 0,
183
+ margin: "0px ".concat("var(--ds-space-025, 2px)")
184
+ },
185
+ '&:hover': {
186
+ background: "var(--ds-background-neutral-subtle-hovered, ".concat(N30A, ")")
187
+ }
188
+ });
162
189
  };
163
190
  return jsx("div", {
164
191
  css: colorPickerButtonWrapper