@atlaskit/editor-common 76.24.3 → 76.24.4

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 (116) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/card/LinkToolbarButtonGroup.js +5 -6
  3. package/dist/cjs/element-browser/ViewMore.js +3 -4
  4. package/dist/cjs/element-browser/components/CategoryList.js +4 -5
  5. package/dist/cjs/element-browser/components/ElementBrowserLoader.js +2 -3
  6. package/dist/cjs/element-browser/components/ElementList/ElementList.js +20 -21
  7. package/dist/cjs/element-browser/components/ElementList/EmptyState.js +8 -9
  8. package/dist/cjs/element-browser/components/ElementList/NotFoundIllustration.js +15 -16
  9. package/dist/cjs/element-browser/components/ElementSearch.js +6 -7
  10. package/dist/cjs/element-browser/components/StatelessElementBrowser.js +21 -22
  11. package/dist/cjs/element-browser/hooks/use-container-width.js +2 -3
  12. package/dist/cjs/keymaps/index.js +1 -2
  13. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +21 -22
  14. package/dist/cjs/link/LinkSearch/LinkSearchList.js +5 -6
  15. package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +9 -11
  16. package/dist/cjs/media-inline/inline-image-wrapper.js +1 -3
  17. package/dist/cjs/media-inline/media-inline-image-card.js +0 -2
  18. package/dist/cjs/monitoring/error.js +1 -1
  19. package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +5 -8
  20. package/dist/cjs/ui/Caption/index.js +2 -3
  21. package/dist/cjs/ui/DropList/index.js +6 -6
  22. package/dist/cjs/ui/Expand/index.js +3 -5
  23. package/dist/cjs/ui/FloatingToolbar/Separator.js +1 -2
  24. package/dist/cjs/ui/FloatingToolbar/SmallerEditIcon.js +2 -3
  25. package/dist/cjs/ui/MediaSingle/index.js +2 -5
  26. package/dist/cjs/ui/MediaSingle/styled.js +2 -3
  27. package/dist/cjs/ui/Messages/index.js +7 -8
  28. package/dist/cjs/ui/PanelTextInput/index.js +2 -3
  29. package/dist/cjs/ui/UnsupportedBlock/index.js +4 -5
  30. package/dist/cjs/ui/UnsupportedInline/index.js +4 -5
  31. package/dist/cjs/ui/WidthProvider/index.js +4 -4
  32. package/dist/cjs/ui-color/ColorPalette/Color/index.js +5 -6
  33. package/dist/cjs/ui-color/ColorPalette/index.js +3 -6
  34. package/dist/cjs/ui-menu/ColorPickerButton/index.js +9 -10
  35. package/dist/cjs/ui-menu/DropdownContainer/index.js +3 -3
  36. package/dist/cjs/ui-menu/DropdownMenu/index.js +18 -19
  37. package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +2 -3
  38. package/dist/cjs/ui-menu/ToolbarButton/index.js +3 -4
  39. package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +11 -1
  40. package/dist/es2019/card/LinkToolbarButtonGroup.js +6 -7
  41. package/dist/es2019/element-browser/ViewMore.js +4 -5
  42. package/dist/es2019/element-browser/components/CategoryList.js +4 -6
  43. package/dist/es2019/element-browser/components/ElementBrowserLoader.js +3 -4
  44. package/dist/es2019/element-browser/components/ElementList/ElementList.js +21 -22
  45. package/dist/es2019/element-browser/components/ElementList/EmptyState.js +9 -10
  46. package/dist/es2019/element-browser/components/ElementList/NotFoundIllustration.js +16 -17
  47. package/dist/es2019/element-browser/components/ElementSearch.js +7 -8
  48. package/dist/es2019/element-browser/components/StatelessElementBrowser.js +22 -23
  49. package/dist/es2019/element-browser/hooks/use-container-width.js +3 -4
  50. package/dist/es2019/keymaps/index.js +2 -3
  51. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +22 -24
  52. package/dist/es2019/link/LinkSearch/LinkSearchList.js +6 -7
  53. package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +9 -10
  54. package/dist/es2019/media-inline/inline-image-wrapper.js +2 -4
  55. package/dist/es2019/media-inline/media-inline-image-card.js +0 -2
  56. package/dist/es2019/monitoring/error.js +1 -1
  57. package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +5 -7
  58. package/dist/es2019/ui/Caption/index.js +3 -4
  59. package/dist/es2019/ui/DropList/index.js +6 -8
  60. package/dist/es2019/ui/Expand/index.js +3 -5
  61. package/dist/es2019/ui/FloatingToolbar/Separator.js +2 -3
  62. package/dist/es2019/ui/FloatingToolbar/SmallerEditIcon.js +3 -4
  63. package/dist/es2019/ui/MediaSingle/index.js +2 -4
  64. package/dist/es2019/ui/MediaSingle/styled.js +3 -5
  65. package/dist/es2019/ui/Messages/index.js +8 -10
  66. package/dist/es2019/ui/PanelTextInput/index.js +1 -4
  67. package/dist/es2019/ui/UnsupportedBlock/index.js +5 -6
  68. package/dist/es2019/ui/UnsupportedInline/index.js +5 -6
  69. package/dist/es2019/ui/WidthProvider/index.js +4 -5
  70. package/dist/es2019/ui-color/ColorPalette/Color/index.js +4 -6
  71. package/dist/es2019/ui-color/ColorPalette/index.js +2 -4
  72. package/dist/es2019/ui-menu/ColorPickerButton/index.js +10 -11
  73. package/dist/es2019/ui-menu/DropdownContainer/index.js +2 -3
  74. package/dist/es2019/ui-menu/DropdownMenu/index.js +19 -21
  75. package/dist/es2019/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +3 -4
  76. package/dist/es2019/ui-menu/ToolbarButton/index.js +5 -5
  77. package/dist/es2019/ui-react/with-react-editor-view-outer-listeners.js +8 -2
  78. package/dist/esm/card/LinkToolbarButtonGroup.js +6 -7
  79. package/dist/esm/element-browser/ViewMore.js +4 -5
  80. package/dist/esm/element-browser/components/CategoryList.js +5 -7
  81. package/dist/esm/element-browser/components/ElementBrowserLoader.js +3 -4
  82. package/dist/esm/element-browser/components/ElementList/ElementList.js +21 -22
  83. package/dist/esm/element-browser/components/ElementList/EmptyState.js +9 -10
  84. package/dist/esm/element-browser/components/ElementList/NotFoundIllustration.js +16 -17
  85. package/dist/esm/element-browser/components/ElementSearch.js +7 -8
  86. package/dist/esm/element-browser/components/StatelessElementBrowser.js +22 -23
  87. package/dist/esm/element-browser/hooks/use-container-width.js +3 -4
  88. package/dist/esm/keymaps/index.js +2 -3
  89. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +22 -24
  90. package/dist/esm/link/LinkSearch/LinkSearchList.js +6 -7
  91. package/dist/esm/link/LinkSearch/LinkSearchListItem.js +9 -10
  92. package/dist/esm/media-inline/inline-image-wrapper.js +2 -4
  93. package/dist/esm/media-inline/media-inline-image-card.js +0 -2
  94. package/dist/esm/monitoring/error.js +1 -1
  95. package/dist/esm/react-node-view/getInlineNodeViewProducer.js +5 -7
  96. package/dist/esm/ui/Caption/index.js +3 -4
  97. package/dist/esm/ui/DropList/index.js +6 -8
  98. package/dist/esm/ui/Expand/index.js +3 -5
  99. package/dist/esm/ui/FloatingToolbar/Separator.js +2 -3
  100. package/dist/esm/ui/FloatingToolbar/SmallerEditIcon.js +3 -4
  101. package/dist/esm/ui/MediaSingle/index.js +2 -4
  102. package/dist/esm/ui/MediaSingle/styled.js +3 -5
  103. package/dist/esm/ui/Messages/index.js +8 -10
  104. package/dist/esm/ui/PanelTextInput/index.js +1 -4
  105. package/dist/esm/ui/UnsupportedBlock/index.js +5 -6
  106. package/dist/esm/ui/UnsupportedInline/index.js +5 -6
  107. package/dist/esm/ui/WidthProvider/index.js +4 -5
  108. package/dist/esm/ui-color/ColorPalette/Color/index.js +4 -6
  109. package/dist/esm/ui-color/ColorPalette/index.js +3 -5
  110. package/dist/esm/ui-menu/ColorPickerButton/index.js +10 -11
  111. package/dist/esm/ui-menu/DropdownContainer/index.js +2 -3
  112. package/dist/esm/ui-menu/DropdownMenu/index.js +19 -21
  113. package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +3 -4
  114. package/dist/esm/ui-menu/ToolbarButton/index.js +5 -5
  115. package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +12 -2
  116. package/package.json +1 -1
@@ -1,7 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- /** @jsx jsx */
3
2
  import React, { Fragment } from 'react';
4
- import { css, jsx } from '@emotion/react';
3
+ import { css } from '@emotion/react';
5
4
  // AFP-2532 TODO: Fix automatic suppressions below
6
5
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
7
6
  import { injectIntl } from 'react-intl-next';
@@ -86,14 +85,14 @@ class LinkSearchListItem extends React.PureComponent {
86
85
  intl
87
86
  } = this.props;
88
87
  if (icon) {
89
- return jsx("span", {
88
+ return /*#__PURE__*/React.createElement("span", {
90
89
  css: iconStyle
91
90
  }, icon);
92
91
  }
93
92
  if (iconUrl) {
94
- return jsx("span", {
93
+ return /*#__PURE__*/React.createElement("span", {
95
94
  css: iconStyle
96
- }, jsx("img", {
95
+ }, /*#__PURE__*/React.createElement("img", {
97
96
  src: iconUrl,
98
97
  alt: getCorrectAltByIconUrl(iconUrl, intl)
99
98
  }));
@@ -106,7 +105,7 @@ class LinkSearchListItem extends React.PureComponent {
106
105
  intl
107
106
  } = this.props;
108
107
  const date = transformTimeStamp(intl, item.lastViewedDate, item.lastUpdatedDate);
109
- return date && jsx(Fragment, null, "\xA0 \u2022", jsx("span", {
108
+ return date && /*#__PURE__*/React.createElement(Fragment, null, "\xA0 \u2022", /*#__PURE__*/React.createElement("span", {
110
109
  className: "link-search-timestamp",
111
110
  "data-test-id": "link-search-timestamp"
112
111
  }, "\xA0 ", date.pageAction, " ", date.dateString, " ", date.timeSince || ''));
@@ -118,7 +117,7 @@ class LinkSearchListItem extends React.PureComponent {
118
117
  id,
119
118
  role
120
119
  } = this.props;
121
- return jsx("li", {
120
+ return /*#__PURE__*/React.createElement("li", {
122
121
  css: [container, selected && containerSelected],
123
122
  role: role,
124
123
  id: id,
@@ -128,11 +127,11 @@ class LinkSearchListItem extends React.PureComponent {
128
127
  onMouseEnter: this.handleMouseEnter,
129
128
  onMouseLeave: this.handleMouseLeave,
130
129
  onClick: this.handleSelect
131
- }, this.renderIcon(), jsx("span", {
130
+ }, this.renderIcon(), /*#__PURE__*/React.createElement("span", {
132
131
  css: nameWrapper
133
- }, jsx("div", {
132
+ }, /*#__PURE__*/React.createElement("div", {
134
133
  css: nameStyle
135
- }, item.name), jsx("div", {
134
+ }, item.name), /*#__PURE__*/React.createElement("div", {
136
135
  "data-testid": "link-search-list-item-container",
137
136
  css: containerName
138
137
  }, item.container, this.renderTimeStamp())));
@@ -1,13 +1,11 @@
1
- /** @jsx jsx */
2
-
3
- import { css, jsx } from '@emotion/react';
1
+ import { css } from '@emotion/react';
4
2
  const wrapperStyle = css({
5
3
  display: 'inline-block'
6
4
  });
7
5
  export const InlineImageWrapper = ({
8
6
  children
9
7
  }) => {
10
- return jsx("div", {
8
+ return /*#__PURE__*/React.createElement("div", {
11
9
  css: wrapperStyle
12
10
  }, children);
13
11
  };
@@ -1,5 +1,3 @@
1
- /** @jsx jsx */
2
-
3
1
  import { useEffect, useState } from 'react';
4
2
  export const MediaInlineImageCard = ({
5
3
  mediaClient,
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "76.24.3";
3
+ const packageVersion = "76.24.4";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -1,7 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
3
2
  import React from 'react';
4
- import { jsx } from '@emotion/react';
5
3
  import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
6
4
  import { ErrorBoundary } from '../ui/ErrorBoundary';
7
5
  import { analyticsEventKey, getPerformanceOptions, startMeasureReactNodeViewRendered, stopMeasureReactNodeViewRendered, ZERO_WIDTH_SPACE } from '../utils';
@@ -160,21 +158,21 @@ function getPortalChildren({
160
158
  // refactor. A test suite to catch any instances of this is ideal however
161
159
  // the refactor required is currently out of scope for https://product-fabric.atlassian.net/browse/ED-14176
162
160
 
163
- return jsx(ErrorBoundary, {
161
+ return /*#__PURE__*/React.createElement(ErrorBoundary, {
164
162
  component: ACTION_SUBJECT.REACT_NODE_VIEW,
165
163
  componentId: (_currentNode$type$nam = currentNode === null || currentNode === void 0 ? void 0 : (_currentNode$type = currentNode.type) === null || _currentNode$type === void 0 ? void 0 : _currentNode$type.name) !== null && _currentNode$type$nam !== void 0 ? _currentNode$type$nam : ACTION_SUBJECT_ID.UNKNOWN_NODE,
166
164
  dispatchAnalyticsEvent: dispatchAnalyticsEvent
167
- }, jsx("span", {
165
+ }, /*#__PURE__*/React.createElement("span", {
168
166
  className: `zeroWidthSpaceContainer`
169
- }, jsx("span", {
167
+ }, /*#__PURE__*/React.createElement("span", {
170
168
  className: `${inlineNodeViewClassname}AddZeroWidthSpace`
171
- }), ZERO_WIDTH_SPACE), jsx(Component, _extends({
169
+ }), ZERO_WIDTH_SPACE), /*#__PURE__*/React.createElement(Component, _extends({
172
170
  view: nodeViewParams.view
173
171
  // TODO: ED-13910 - Remove the boolean to fix the prosemirror view type
174
172
  ,
175
173
  getPos: nodeViewParams.getPos,
176
174
  node: currentNode
177
- }, extraComponentProps)), jsx("span", {
175
+ }, extraComponentProps)), /*#__PURE__*/React.createElement("span", {
178
176
  className: `${inlineNodeViewClassname}AddZeroWidthSpace`
179
177
  }));
180
178
  };
@@ -1,7 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
3
2
  import React from 'react';
4
- import { css, jsx } from '@emotion/react';
3
+ import { css } from '@emotion/react';
5
4
  import { injectIntl } from 'react-intl-next';
6
5
  import { N200, N400 } from '@atlaskit/theme/colors';
7
6
  import { messages } from './messages';
@@ -29,12 +28,12 @@ export class CaptionComponent extends React.Component {
29
28
  }
30
29
  } = this.props;
31
30
  const showPlaceholder = !selected && !hasContent;
32
- return jsx("div", _extends({
31
+ return /*#__PURE__*/React.createElement("div", _extends({
33
32
  "data-media-caption": true,
34
33
  "data-testid": "media-caption"
35
34
  }, dataAttributes, {
36
35
  css: captionWrapperStyle
37
- }), showPlaceholder ? jsx("p", {
36
+ }), showPlaceholder ? /*#__PURE__*/React.createElement("p", {
38
37
  css: placeholderStyle
39
38
  }, formatMessage(messages.placeholder)) : null, children);
40
39
  }
@@ -1,15 +1,13 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- /** @jsx jsx */
3
-
4
2
  import { Component } from 'react';
5
- import { css, jsx } from '@emotion/react';
3
+ import { css } from '@emotion/react';
6
4
  import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
7
5
  import { DN50, DN600, N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
8
6
  import { themed } from '@atlaskit/theme/components';
9
7
  import { borderRadius } from '@atlaskit/theme/constants';
10
8
  import Layer from '../Layer';
11
9
  const packageName = "@atlaskit/editor-common";
12
- const packageVersion = "76.24.3";
10
+ const packageVersion = "76.24.4";
13
11
  const halfFocusRing = 1;
14
12
  const dropOffset = '0, 8';
15
13
  class DropList extends Component {
@@ -127,7 +125,7 @@ class DropList extends Component {
127
125
  testId,
128
126
  id
129
127
  } = this.props;
130
- let layerContent = isOpen ? jsx("div", {
128
+ let layerContent = isOpen ? /*#__PURE__*/React.createElement("div", {
131
129
  css: theme => this.menuWrapper({
132
130
  theme: theme
133
131
  }),
@@ -137,14 +135,14 @@ class DropList extends Component {
137
135
  id: id,
138
136
  role: "presentation"
139
137
  }, children) : null;
140
- return jsx("div", {
138
+ return /*#__PURE__*/React.createElement("div", {
141
139
  css: this.wrapperStyles
142
- }, jsx(Layer, {
140
+ }, /*#__PURE__*/React.createElement(Layer, {
143
141
  content: layerContent,
144
142
  offset: dropOffset,
145
143
  position: position,
146
144
  onPositioned: onPositioned
147
- }, jsx("div", {
145
+ }, /*#__PURE__*/React.createElement("div", {
148
146
  css: this.triggerStyles,
149
147
  ref: this.handleTriggerRef
150
148
  }, trigger)));
@@ -1,8 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
3
-
4
2
  import React, { forwardRef } from 'react';
5
- import { css, jsx } from '@emotion/react';
3
+ import { css } from '@emotion/react';
6
4
  import { defineMessages } from 'react-intl-next';
7
5
  import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
8
6
  import { B300, DN50, DN600, N200, N200A, N300A, N30A, N40A, N50A, N90 } from '@atlaskit/theme/colors';
@@ -47,7 +45,7 @@ export const ExpandIconWrapper = ({
47
45
  children,
48
46
  expanded
49
47
  }) => {
50
- return jsx("div", {
48
+ return /*#__PURE__*/React.createElement("div", {
51
49
  css: props => expanded ? [expandIconWrapperStyle(props), expandIconWrapperExpandedStyle] : expandIconWrapperStyle(props)
52
50
  }, children);
53
51
  };
@@ -84,7 +82,7 @@ export const ExpandLayoutWrapperWithRef = /*#__PURE__*/forwardRef((props, ref) =
84
82
  children,
85
83
  ...rest
86
84
  } = props;
87
- return jsx("div", _extends({
85
+ return /*#__PURE__*/React.createElement("div", _extends({
88
86
  css: expandLayoutWrapperStyle
89
87
  }, rest, {
90
88
  ref: ref
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import { css, jsx } from '@emotion/react';
1
+ import { css } from '@emotion/react';
3
2
  import { N30 } from '@atlaskit/theme/colors';
4
3
  const separator = css`
5
4
  background: ${`var(--ds-border, ${N30})`};
@@ -8,7 +7,7 @@ const separator = css`
8
7
  margin: 0 ${"var(--ds-space-050, 4px)"};
9
8
  align-self: center;
10
9
  `;
11
- export default (() => jsx("div", {
10
+ export default (() => /*#__PURE__*/React.createElement("div", {
12
11
  css: separator,
13
12
  className: "separator"
14
13
  }));
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import { css, jsx } from '@emotion/react';
1
+ import { css } from '@emotion/react';
3
2
  import EditIcon from '@atlaskit/icon/glyph/edit';
4
3
  const editIconStyles = css`
5
4
  width: 20px;
@@ -7,9 +6,9 @@ const editIconStyles = css`
7
6
 
8
7
  /* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
9
8
  export const SmallerEditIcon = () => {
10
- return jsx("div", {
9
+ return /*#__PURE__*/React.createElement("div", {
11
10
  css: editIconStyles
12
- }, jsx(EditIcon, {
11
+ }, /*#__PURE__*/React.createElement(EditIcon, {
13
12
  label: "edit"
14
13
  }));
15
14
  };
@@ -1,6 +1,4 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
- import { jsx } from '@emotion/react';
4
2
  import classnames from 'classnames';
5
3
  import { akEditorMediaResizeHandlerPaddingWide, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
6
4
  import { MEDIA_SINGLE_GUTTER_SIZE } from '../../media-single/constants';
@@ -71,7 +69,7 @@ export default function MediaSingle({
71
69
  }
72
70
  }
73
71
  const [media, caption] = children;
74
- return jsx("div", {
72
+ return /*#__PURE__*/React.createElement("div", {
75
73
  ref: handleMediaSingleRef,
76
74
  css: MediaSingleDimensionHelper({
77
75
  width,
@@ -89,7 +87,7 @@ export default function MediaSingle({
89
87
  'is-loading': isLoading,
90
88
  'rich-media-wrapped': layout === 'wrap-left' || layout === 'wrap-right'
91
89
  })
92
- }, jsx(MediaWrapper, {
90
+ }, /*#__PURE__*/React.createElement(MediaWrapper, {
93
91
  hasFallbackContainer: hasFallbackContainer,
94
92
  height: mediaWrapperHeight,
95
93
  paddingBottom: paddingBottom
@@ -1,7 +1,5 @@
1
- /** @jsx jsx */
2
-
3
1
  import React from 'react';
4
- import { css, jsx } from '@emotion/react';
2
+ import { css } from '@emotion/react';
5
3
  import { akEditorFullPageMaxWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
6
4
  import { nonWrappedLayouts } from '../../utils';
7
5
  import { calcBreakoutWidth, calcWideWidth } from '../../utils/breakout';
@@ -200,7 +198,7 @@ export const mediaWrapperStyle = props => css`
200
198
  export const MediaWrapper = ({
201
199
  children,
202
200
  ...rest
203
- }) => jsx("div", {
201
+ }) => /*#__PURE__*/React.createElement("div", {
204
202
  css: mediaWrapperStyle(rest)
205
203
  }, children);
206
204
  MediaWrapper.displayName = 'WrapperMediaSingle';
@@ -215,7 +213,7 @@ MediaWrapper.displayName = 'WrapperMediaSingle';
215
213
  export const MediaBorderGapFiller = ({
216
214
  borderColor
217
215
  }) => {
218
- return jsx("div", {
216
+ return /*#__PURE__*/React.createElement("div", {
219
217
  style: {
220
218
  position: 'absolute',
221
219
  inset: '0px',
@@ -1,6 +1,4 @@
1
- /** @jsx jsx */
2
-
3
- import { css, jsx } from '@emotion/react';
1
+ import { css } from '@emotion/react';
4
2
  import SuccessIcon from '@atlaskit/icon/glyph/editor/success';
5
3
  import ErrorIcon from '@atlaskit/icon/glyph/error';
6
4
  import { G400, N200, R400 } from '@atlaskit/theme/colors';
@@ -24,31 +22,31 @@ const iconWrapperStyle = css`
24
22
  `;
25
23
  export const HelperMessage = ({
26
24
  children
27
- }) => jsx("div", {
25
+ }) => /*#__PURE__*/React.createElement("div", {
28
26
  css: messageStyle
29
27
  }, children);
30
28
  export const ErrorMessage = ({
31
29
  children
32
- }) => jsx("div", {
30
+ }) => /*#__PURE__*/React.createElement("div", {
33
31
  css: theme => {
34
32
  return [messageStyle(theme), errorColor];
35
33
  }
36
- }, jsx("span", {
34
+ }, /*#__PURE__*/React.createElement("span", {
37
35
  css: iconWrapperStyle
38
- }, jsx(ErrorIcon, {
36
+ }, /*#__PURE__*/React.createElement(ErrorIcon, {
39
37
  size: "small",
40
38
  label: "error",
41
39
  "aria-label": "error"
42
40
  })), children);
43
41
  export const ValidMessage = ({
44
42
  children
45
- }) => jsx("div", {
43
+ }) => /*#__PURE__*/React.createElement("div", {
46
44
  css: theme => {
47
45
  return [messageStyle(theme), validColor];
48
46
  }
49
- }, jsx("span", {
47
+ }, /*#__PURE__*/React.createElement("span", {
50
48
  css: iconWrapperStyle
51
- }, jsx(SuccessIcon, {
49
+ }, /*#__PURE__*/React.createElement(SuccessIcon, {
52
50
  size: "small",
53
51
  label: "success"
54
52
  })), children);
@@ -1,8 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- /** @jsx jsx */
3
-
4
2
  import { PureComponent } from 'react';
5
- import { jsx } from '@emotion/react';
6
3
  import { browser } from '../../utils';
7
4
  import { panelTextInput, panelTextInputWithCustomWidth } from './styles';
8
5
  const KeyZCode = 90;
@@ -106,7 +103,7 @@ export default class PanelTextInput extends PureComponent {
106
103
  const {
107
104
  value
108
105
  } = this.state;
109
- return jsx("input", {
106
+ return /*#__PURE__*/React.createElement("input", {
110
107
  css: [panelTextInput, width !== undefined && panelTextInputWithCustomWidth(width)],
111
108
  role: role,
112
109
  "aria-autocomplete": ariaAutoComplete ? 'list' : undefined,
@@ -1,6 +1,5 @@
1
- /** @jsx jsx */
2
1
  import React, { useCallback, useRef } from 'react';
3
- import { css, jsx } from '@emotion/react';
2
+ import { css } from '@emotion/react';
4
3
  import { injectIntl } from 'react-intl-next';
5
4
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
6
5
  import QuestionsIcon from '@atlaskit/icon/glyph/question-circle';
@@ -42,18 +41,18 @@ const UnsupportedBlockNode = ({
42
41
  });
43
42
  const originalNodeType = node === null || node === void 0 ? void 0 : node.attrs.originalValue.type;
44
43
  const tooltipOnShowHandler = useCallback(() => dispatchAnalyticsEvent && trackUnsupportedContentTooltipDisplayedFor(dispatchAnalyticsEvent, ACTION_SUBJECT_ID.ON_UNSUPPORTED_BLOCK, originalNodeType), [dispatchAnalyticsEvent, originalNodeType]);
45
- return jsx("div", {
44
+ return /*#__PURE__*/React.createElement("div", {
46
45
  css: blockNodeStyle,
47
46
  className: "unsupported"
48
- }, message, jsx(Tooltip, {
47
+ }, message, /*#__PURE__*/React.createElement(Tooltip, {
49
48
  content: tooltipContent,
50
49
  hideTooltipOnClick: false,
51
50
  position: "bottom",
52
51
  onShow: tooltipOnShowHandler,
53
52
  strategy: "absolute"
54
- }, jsx("span", {
53
+ }, /*#__PURE__*/React.createElement("span", {
55
54
  style: style
56
- }, jsx(QuestionsIcon, {
55
+ }, /*#__PURE__*/React.createElement(QuestionsIcon, {
57
56
  label: "?",
58
57
  size: "small"
59
58
  }))));
@@ -1,6 +1,5 @@
1
- /** @jsx jsx */
2
1
  import React, { useCallback, useRef } from 'react';
3
- import { css, jsx } from '@emotion/react';
2
+ import { css } from '@emotion/react';
4
3
  import { injectIntl } from 'react-intl-next';
5
4
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
6
5
  import QuestionsIcon from '@atlaskit/icon/glyph/question-circle';
@@ -40,17 +39,17 @@ const UnsupportedInlineNode = ({
40
39
  });
41
40
  const originalNodeType = node === null || node === void 0 ? void 0 : node.attrs.originalValue.type;
42
41
  const tooltipOnShowHandler = useCallback(() => dispatchAnalyticsEvent && trackUnsupportedContentTooltipDisplayedFor(dispatchAnalyticsEvent, ACTION_SUBJECT_ID.ON_UNSUPPORTED_INLINE, originalNodeType), [dispatchAnalyticsEvent, originalNodeType]);
43
- return jsx("span", {
42
+ return /*#__PURE__*/React.createElement("span", {
44
43
  css: inlineNodeStyle
45
- }, message, jsx(Tooltip, {
44
+ }, message, /*#__PURE__*/React.createElement(Tooltip, {
46
45
  content: tooltipContent,
47
46
  hideTooltipOnClick: false,
48
47
  position: "bottom",
49
48
  onShow: tooltipOnShowHandler,
50
49
  strategy: "absolute"
51
- }, jsx("span", {
50
+ }, /*#__PURE__*/React.createElement("span", {
52
51
  style: style
53
- }, jsx(QuestionsIcon, {
52
+ }, /*#__PURE__*/React.createElement(QuestionsIcon, {
54
53
  label: "?",
55
54
  size: "small"
56
55
  }))));
@@ -1,7 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- /** @jsx jsx */
3
2
  import React from 'react';
4
- import { css, jsx } from '@emotion/react';
3
+ import { css } from '@emotion/react';
5
4
  import rafSchedule from 'raf-schd';
6
5
  import { WidthObserver } from '@atlaskit/width-detector';
7
6
  const SCROLLBAR_WIDTH = 30;
@@ -46,16 +45,16 @@ export class WidthProvider extends React.Component {
46
45
  }
47
46
  }
48
47
  render() {
49
- return jsx("div", {
48
+ return /*#__PURE__*/React.createElement("div", {
50
49
  css: css`
51
50
  position: relative;
52
51
  width: 100%;
53
52
  `,
54
53
  className: this.props.className
55
- }, jsx(WidthObserver, {
54
+ }, /*#__PURE__*/React.createElement(WidthObserver, {
56
55
  setWidth: this.setWidth,
57
56
  offscreen: true
58
- }), jsx(Provider, {
57
+ }), /*#__PURE__*/React.createElement(Provider, {
59
58
  value: createWidthContext(this.state.width)
60
59
  }, this.props.children));
61
60
  }
@@ -1,7 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- /** @jsx jsx */
3
2
  import React, { PureComponent } from 'react';
4
- import { jsx } from '@emotion/react';
5
3
  import EditorDoneIcon from '@atlaskit/icon/glyph/editor/done';
6
4
  import { N0 } from '@atlaskit/theme/colors';
7
5
  import Tooltip from '@atlaskit/tooltip';
@@ -41,11 +39,11 @@ class Color extends PureComponent {
41
39
  hexToPaletteColor
42
40
  } = this.props;
43
41
  const colorStyle = hexToPaletteColor ? hexToPaletteColor(value) : value;
44
- return jsx(Tooltip, {
42
+ return /*#__PURE__*/React.createElement(Tooltip, {
45
43
  content: label
46
- }, jsx("span", {
44
+ }, /*#__PURE__*/React.createElement("span", {
47
45
  css: buttonWrapperStyle
48
- }, jsx("button", {
46
+ }, /*#__PURE__*/React.createElement("button", {
49
47
  css: buttonStyle,
50
48
  "aria-label": label,
51
49
  role: "radio",
@@ -59,7 +57,7 @@ class Color extends PureComponent {
59
57
  border: `1px solid ${borderColor}`
60
58
  },
61
59
  autoFocus: autoFocus
62
- }, isSelected && jsx(EditorDoneIcon, {
60
+ }, isSelected && /*#__PURE__*/React.createElement(EditorDoneIcon, {
63
61
  primaryColor: checkMarkColor,
64
62
  label: ""
65
63
  }))));
@@ -1,6 +1,4 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
- import { jsx } from '@emotion/react';
4
2
  import chromatism from 'chromatism';
5
3
  import { injectIntl } from 'react-intl-next';
6
4
  import { N0, N500 } from '@atlaskit/theme/colors';
@@ -56,7 +54,7 @@ const ColorPalette = props => {
56
54
  const colorsPerRow = React.useMemo(() => {
57
55
  return getColorsPerRowFromPalette(palette, cols);
58
56
  }, [palette, cols]);
59
- return jsx(React.Fragment, null, colorsPerRow.map(row => jsx("div", {
57
+ return /*#__PURE__*/React.createElement(React.Fragment, null, colorsPerRow.map(row => /*#__PURE__*/React.createElement("div", {
60
58
  css: colorPaletteWrapper,
61
59
  className: className,
62
60
  key: `row-first-color-${row[0].value}`,
@@ -75,7 +73,7 @@ const ColorPalette = props => {
75
73
  message = getColorMessage(paletteColorTooltipMessages.light, value.toUpperCase());
76
74
  }
77
75
  }
78
- return jsx(Color, {
76
+ return /*#__PURE__*/React.createElement(Color, {
79
77
  key: value,
80
78
  value: value,
81
79
  borderColor: border,
@@ -1,6 +1,5 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
- import { css, jsx } from '@emotion/react';
2
+ import { css } from '@emotion/react';
4
3
  import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
5
4
  import Button from '@atlaskit/button';
6
5
  import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
@@ -113,7 +112,7 @@ const ColorPickerButton = props => {
113
112
  selectedRowIndex,
114
113
  selectedColumnIndex
115
114
  } = getSelectedRowAndColumnFromPalette(props.colorPalette, selectedColor, props.cols);
116
- return jsx(Popup, {
115
+ return /*#__PURE__*/React.createElement(Popup, {
117
116
  target: buttonRef.current,
118
117
  fitHeight: 350,
119
118
  fitWidth: 350,
@@ -127,10 +126,10 @@ const ColorPickerButton = props => {
127
126
  zIndex: props.setDisableParentScroll ? 600 : undefined,
128
127
  ariaLabel: "Color picker popup",
129
128
  onPositionCalculated: onPositionCalculated
130
- }, jsx("div", {
129
+ }, /*#__PURE__*/React.createElement("div", {
131
130
  css: colorPickerWrapper,
132
131
  "data-test-id": "color-picker-menu"
133
- }, jsx(ArrowKeyNavigationProvider, {
132
+ }, /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
134
133
  type: ArrowKeyNavigationType.COLOR,
135
134
  selectedRowIndex: selectedRowIndex,
136
135
  selectedColumnIndex: selectedColumnIndex,
@@ -138,7 +137,7 @@ const ColorPickerButton = props => {
138
137
  handleClose: () => setIsPopupOpen(false),
139
138
  isOpenedByKeyboard: isOpenedByKeyboard,
140
139
  isPopupPositioned: isPopupPositioned
141
- }, jsx(ColorPaletteWithListeners, {
140
+ }, /*#__PURE__*/React.createElement(ColorPaletteWithListeners, {
142
141
  cols: props.cols,
143
142
  selectedColor: selectedColor,
144
143
  onClick: onColorSelected,
@@ -182,12 +181,12 @@ const ColorPickerButton = props => {
182
181
  }
183
182
  `;
184
183
  };
185
- return jsx("div", {
184
+ return /*#__PURE__*/React.createElement("div", {
186
185
  css: colorPickerButtonWrapper
187
- }, jsx(Tooltip, {
186
+ }, /*#__PURE__*/React.createElement(Tooltip, {
188
187
  content: title,
189
188
  position: "top"
190
- }, jsx(Button, {
189
+ }, /*#__PURE__*/React.createElement(Button, {
191
190
  ref: buttonRef,
192
191
  "aria-label": title,
193
192
  spacing: "compact",
@@ -200,9 +199,9 @@ const ColorPickerButton = props => {
200
199
  }
201
200
  },
202
201
  css: buttonStyle,
203
- iconAfter: jsx("span", {
202
+ iconAfter: /*#__PURE__*/React.createElement("span", {
204
203
  css: colorPickerExpandContainer
205
- }, jsx(ExpandIcon, {
204
+ }, /*#__PURE__*/React.createElement(ExpandIcon, {
206
205
  label: ""
207
206
  }))
208
207
  })), renderPopup());
@@ -1,7 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
3
2
  import React, { useContext } from 'react';
4
- import { jsx } from '@emotion/react';
5
3
  import { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
6
4
  import DropdownComponent from '../Dropdown';
7
5
  import { KeyDownHandlerContext } from '../ToolbarArrowKeyNavigationProvider';
@@ -16,9 +14,10 @@ export const DropdownContainer = /*#__PURE__*/React.memo(function DropdownContai
16
14
  };
17
15
  }
18
16
  return (
17
+ /*#__PURE__*/
19
18
  //This context is to handle the tab, Arrow Right/Left key events for dropdown.
20
19
  //Default context has the void callbacks for above key events
21
- jsx(DropdownComponent, _extends({}, props, {
20
+ React.createElement(DropdownComponent, _extends({}, props, {
22
21
  arrowKeyNavigationProviderOptions: newArrowKeyNavigationProviderOptions
23
22
  }))
24
23
  );