@atlaskit/editor-core 189.5.0 → 189.5.3

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 (185) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/afm-cc/tsconfig.json +335 -0
  3. package/dist/cjs/composable-editor/editor-internal.js +11 -11
  4. package/dist/cjs/composable-editor/editor.js +8 -7
  5. package/dist/cjs/composable-editor/hooks/useEditorMeasuresConstructor.js +2 -0
  6. package/dist/cjs/composable-editor/hooks/useMeasureEditorMountTime.js +2 -0
  7. package/dist/cjs/editor.js +4 -3
  8. package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/index.js +11 -10
  9. package/dist/cjs/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +3 -2
  10. package/dist/cjs/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +2 -1
  11. package/dist/cjs/plugins/breakout/ui/LayoutButton.js +6 -5
  12. package/dist/cjs/plugins/collab-edit/ui/avatars.js +5 -2
  13. package/dist/cjs/plugins/collab-edit/ui/colored-avatar-item.js +4 -1
  14. package/dist/cjs/plugins/collab-edit/ui/invite-to-edit.js +7 -4
  15. package/dist/cjs/plugins/extension/ui/Extension/Extension/index.js +13 -11
  16. package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/index.js +5 -4
  17. package/dist/cjs/plugins/extension/ui/Extension/Lozenge.js +9 -8
  18. package/dist/cjs/plugins/extension/ui/Extension/MultiBodiedExtension/index.js +4 -4
  19. package/dist/cjs/plugins/extension/ui/SaveIndicator/SaveIndicator.js +7 -6
  20. package/dist/cjs/plugins/find-replace/ui/Find.js +14 -13
  21. package/dist/cjs/plugins/find-replace/ui/FindReplace.js +6 -5
  22. package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +8 -7
  23. package/dist/cjs/plugins/find-replace/ui/Replace.js +6 -5
  24. package/dist/cjs/plugins/find-replace/ui/styles.js +1 -0
  25. package/dist/cjs/plugins/jira-issue/nodeviews/jira-issue.js +5 -4
  26. package/dist/cjs/plugins/paste/edge-cases/index.js +26 -0
  27. package/dist/cjs/plugins/paste/handlers.js +18 -9
  28. package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +11 -8
  29. package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +2 -1
  30. package/dist/cjs/ui/Addon/ClickAreaInline/index.js +2 -1
  31. package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +2 -1
  32. package/dist/cjs/ui/Addon/Dropdown/index.js +3 -2
  33. package/dist/cjs/ui/Addon/DropdownItem/index.js +5 -2
  34. package/dist/cjs/ui/Alignment/index.js +7 -6
  35. package/dist/cjs/ui/Appearance/Chromeless.js +7 -6
  36. package/dist/cjs/ui/Appearance/Comment/Comment.js +17 -16
  37. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +5 -4
  38. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +6 -3
  39. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +12 -10
  40. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +15 -13
  41. package/dist/cjs/ui/AppearanceComponents/Mobile.js +6 -5
  42. package/dist/cjs/ui/ChromeCollapsed/index.js +3 -2
  43. package/dist/cjs/ui/ConfigPanel/ErrorMessage/ErrorImage.js +16 -15
  44. package/dist/cjs/ui/ConfigPanel/Fields/Boolean.js +12 -11
  45. package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +7 -6
  46. package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +8 -8
  47. package/dist/cjs/ui/ConfigPanel/Fields/DateRange.js +18 -17
  48. package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +9 -8
  49. package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +10 -9
  50. package/dist/cjs/ui/ConfigPanel/Fields/SelectItem.js +6 -5
  51. package/dist/cjs/ui/ConfigPanel/Fields/TabGroup.js +7 -6
  52. package/dist/cjs/ui/ConfigPanel/Header.js +14 -13
  53. package/dist/cjs/ui/ConfigPanel/LoadingState.js +3 -2
  54. package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +5 -4
  55. package/dist/cjs/ui/ContentStyles/index.js +2 -1
  56. package/dist/cjs/ui/ContextPanel/index.js +11 -10
  57. package/dist/cjs/ui/PluginSlot/index.js +4 -3
  58. package/dist/cjs/ui/Toolbar/ToolbarInner.js +2 -1
  59. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +5 -4
  60. package/dist/cjs/ui/ToolbarFeedback/index.js +16 -15
  61. package/dist/cjs/ui/WithFlash/index.js +2 -1
  62. package/dist/cjs/version-wrapper.js +1 -1
  63. package/dist/es2019/composable-editor/editor-internal.js +12 -11
  64. package/dist/es2019/composable-editor/editor.js +8 -6
  65. package/dist/es2019/composable-editor/hooks/useEditorMeasuresConstructor.js +2 -0
  66. package/dist/es2019/composable-editor/hooks/useMeasureEditorMountTime.js +1 -0
  67. package/dist/es2019/editor.js +4 -2
  68. package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/index.js +11 -9
  69. package/dist/es2019/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +4 -3
  70. package/dist/es2019/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +3 -2
  71. package/dist/es2019/plugins/breakout/ui/LayoutButton.js +7 -6
  72. package/dist/es2019/plugins/collab-edit/ui/avatars.js +4 -2
  73. package/dist/es2019/plugins/collab-edit/ui/colored-avatar-item.js +3 -1
  74. package/dist/es2019/plugins/collab-edit/ui/invite-to-edit.js +6 -4
  75. package/dist/es2019/plugins/extension/ui/Extension/Extension/index.js +14 -11
  76. package/dist/es2019/plugins/extension/ui/Extension/InlineExtension/index.js +5 -3
  77. package/dist/es2019/plugins/extension/ui/Extension/Lozenge.js +7 -5
  78. package/dist/es2019/plugins/extension/ui/Extension/MultiBodiedExtension/index.js +6 -4
  79. package/dist/es2019/plugins/extension/ui/SaveIndicator/SaveIndicator.js +8 -7
  80. package/dist/es2019/plugins/find-replace/ui/Find.js +14 -12
  81. package/dist/es2019/plugins/find-replace/ui/FindReplace.js +6 -4
  82. package/dist/es2019/plugins/find-replace/ui/FindReplaceToolbarButton.js +9 -8
  83. package/dist/es2019/plugins/find-replace/ui/Replace.js +6 -4
  84. package/dist/es2019/plugins/find-replace/ui/styles.js +1 -0
  85. package/dist/es2019/plugins/jira-issue/nodeviews/jira-issue.js +6 -5
  86. package/dist/es2019/plugins/paste/edge-cases/index.js +27 -1
  87. package/dist/es2019/plugins/paste/handlers.js +19 -10
  88. package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +10 -8
  89. package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +3 -2
  90. package/dist/es2019/ui/Addon/ClickAreaInline/index.js +3 -2
  91. package/dist/es2019/ui/Addon/ClickAreaMobile/index.js +3 -2
  92. package/dist/es2019/ui/Addon/Dropdown/index.js +3 -1
  93. package/dist/es2019/ui/Addon/DropdownItem/index.js +4 -2
  94. package/dist/es2019/ui/Alignment/index.js +5 -3
  95. package/dist/es2019/ui/Appearance/Chromeless.js +8 -7
  96. package/dist/es2019/ui/Appearance/Comment/Comment.js +18 -17
  97. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +7 -5
  98. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +5 -3
  99. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +12 -11
  100. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +15 -13
  101. package/dist/es2019/ui/AppearanceComponents/Mobile.js +7 -6
  102. package/dist/es2019/ui/ChromeCollapsed/index.js +3 -1
  103. package/dist/es2019/ui/ConfigPanel/ErrorMessage/ErrorImage.js +17 -17
  104. package/dist/es2019/ui/ConfigPanel/Fields/Boolean.js +13 -12
  105. package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +8 -7
  106. package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +9 -8
  107. package/dist/es2019/ui/ConfigPanel/Fields/DateRange.js +19 -18
  108. package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +10 -9
  109. package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +11 -10
  110. package/dist/es2019/ui/ConfigPanel/Fields/SelectItem.js +7 -6
  111. package/dist/es2019/ui/ConfigPanel/Fields/TabGroup.js +8 -7
  112. package/dist/es2019/ui/ConfigPanel/Header.js +15 -14
  113. package/dist/es2019/ui/ConfigPanel/LoadingState.js +4 -3
  114. package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +6 -5
  115. package/dist/es2019/ui/ContentStyles/index.js +3 -2
  116. package/dist/es2019/ui/ContextPanel/index.js +12 -11
  117. package/dist/es2019/ui/PluginSlot/index.js +5 -4
  118. package/dist/es2019/ui/Toolbar/ToolbarInner.js +3 -2
  119. package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +6 -5
  120. package/dist/es2019/ui/ToolbarFeedback/index.js +14 -12
  121. package/dist/es2019/ui/WithFlash/index.js +3 -2
  122. package/dist/es2019/version-wrapper.js +1 -1
  123. package/dist/esm/composable-editor/editor-internal.js +12 -11
  124. package/dist/esm/composable-editor/editor.js +8 -6
  125. package/dist/esm/composable-editor/hooks/useEditorMeasuresConstructor.js +2 -0
  126. package/dist/esm/composable-editor/hooks/useMeasureEditorMountTime.js +1 -0
  127. package/dist/esm/editor.js +4 -2
  128. package/dist/esm/plugins/alignment/ui/ToolbarAlignment/index.js +11 -9
  129. package/dist/esm/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +4 -3
  130. package/dist/esm/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +3 -2
  131. package/dist/esm/plugins/breakout/ui/LayoutButton.js +7 -6
  132. package/dist/esm/plugins/collab-edit/ui/avatars.js +4 -2
  133. package/dist/esm/plugins/collab-edit/ui/colored-avatar-item.js +3 -1
  134. package/dist/esm/plugins/collab-edit/ui/invite-to-edit.js +6 -4
  135. package/dist/esm/plugins/extension/ui/Extension/Extension/index.js +14 -11
  136. package/dist/esm/plugins/extension/ui/Extension/InlineExtension/index.js +5 -3
  137. package/dist/esm/plugins/extension/ui/Extension/Lozenge.js +7 -5
  138. package/dist/esm/plugins/extension/ui/Extension/MultiBodiedExtension/index.js +6 -4
  139. package/dist/esm/plugins/extension/ui/SaveIndicator/SaveIndicator.js +8 -7
  140. package/dist/esm/plugins/find-replace/ui/Find.js +14 -12
  141. package/dist/esm/plugins/find-replace/ui/FindReplace.js +6 -4
  142. package/dist/esm/plugins/find-replace/ui/FindReplaceToolbarButton.js +9 -8
  143. package/dist/esm/plugins/find-replace/ui/Replace.js +6 -4
  144. package/dist/esm/plugins/find-replace/ui/styles.js +1 -0
  145. package/dist/esm/plugins/jira-issue/nodeviews/jira-issue.js +6 -5
  146. package/dist/esm/plugins/paste/edge-cases/index.js +26 -1
  147. package/dist/esm/plugins/paste/handlers.js +19 -10
  148. package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +10 -8
  149. package/dist/esm/ui/Addon/ClickAreaBlock/index.js +3 -2
  150. package/dist/esm/ui/Addon/ClickAreaInline/index.js +3 -2
  151. package/dist/esm/ui/Addon/ClickAreaMobile/index.js +3 -2
  152. package/dist/esm/ui/Addon/Dropdown/index.js +3 -1
  153. package/dist/esm/ui/Addon/DropdownItem/index.js +4 -2
  154. package/dist/esm/ui/Alignment/index.js +5 -3
  155. package/dist/esm/ui/Appearance/Chromeless.js +8 -7
  156. package/dist/esm/ui/Appearance/Comment/Comment.js +18 -17
  157. package/dist/esm/ui/Appearance/Comment/Toolbar.js +7 -5
  158. package/dist/esm/ui/Appearance/FullPage/FullPage.js +5 -3
  159. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +12 -11
  160. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +15 -13
  161. package/dist/esm/ui/AppearanceComponents/Mobile.js +7 -6
  162. package/dist/esm/ui/ChromeCollapsed/index.js +3 -1
  163. package/dist/esm/ui/ConfigPanel/ErrorMessage/ErrorImage.js +17 -17
  164. package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +13 -12
  165. package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +8 -7
  166. package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +9 -8
  167. package/dist/esm/ui/ConfigPanel/Fields/DateRange.js +19 -18
  168. package/dist/esm/ui/ConfigPanel/Fields/Expand.js +10 -9
  169. package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +11 -10
  170. package/dist/esm/ui/ConfigPanel/Fields/SelectItem.js +7 -6
  171. package/dist/esm/ui/ConfigPanel/Fields/TabGroup.js +8 -7
  172. package/dist/esm/ui/ConfigPanel/Header.js +15 -14
  173. package/dist/esm/ui/ConfigPanel/LoadingState.js +4 -3
  174. package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +6 -5
  175. package/dist/esm/ui/ContentStyles/index.js +3 -2
  176. package/dist/esm/ui/ContextPanel/index.js +12 -11
  177. package/dist/esm/ui/PluginSlot/index.js +5 -4
  178. package/dist/esm/ui/Toolbar/ToolbarInner.js +3 -2
  179. package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +6 -5
  180. package/dist/esm/ui/ToolbarFeedback/index.js +14 -12
  181. package/dist/esm/ui/WithFlash/index.js +3 -2
  182. package/dist/esm/version-wrapper.js +1 -1
  183. package/dist/types/plugins/paste/edge-cases/index.d.ts +4 -0
  184. package/dist/types-ts4.5/plugins/paste/edge-cases/index.d.ts +4 -0
  185. package/package.json +8 -4
@@ -1,4 +1,7 @@
1
+ /** @jsx jsx */
2
+
1
3
  import React, { useState, useEffect } from 'react';
4
+ import { jsx } from '@emotion/react';
2
5
  import { injectIntl } from 'react-intl-next';
3
6
  import AvatarsWithPluginState from '../../../plugins/collab-edit/ui';
4
7
  import FindReplaceToolbarButtonWithState from '../../../plugins/find-replace/FindReplaceToolbarButtonWithState';
@@ -16,11 +19,11 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
16
19
 
17
20
  // When primary toolbar components is undefined, do not show two line editor toolbar
18
21
  const twoLineEditorToolbar = !!props.customPrimaryToolbarComponents && !!((_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.twoLineEditorToolbar);
19
- const nonCustomToolbar = /*#__PURE__*/React.createElement("div", {
22
+ const nonCustomToolbar = jsx("div", {
20
23
  css: nonCustomToolbarWrapperStyle
21
- }, props.beforeIcon && /*#__PURE__*/React.createElement("div", {
24
+ }, props.beforeIcon && jsx("div", {
22
25
  css: mainToolbarIconBeforeStyle
23
- }, props.beforeIcon), /*#__PURE__*/React.createElement(Toolbar, {
26
+ }, props.beforeIcon), jsx(Toolbar, {
24
27
  editorView: props.editorView,
25
28
  editorActions: props.editorActions,
26
29
  eventDispatcher: props.eventDispatcher,
@@ -36,17 +39,16 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
36
39
  hasMinWidth: props.hasMinWidth,
37
40
  twoLineEditorToolbar: twoLineEditorToolbar
38
41
  }));
39
- const customToolbar = /*#__PURE__*/React.createElement("div", {
42
+ const customToolbar = jsx("div", {
40
43
  css: customToolbarWrapperStyle
41
- }, twoLineEditorToolbar && !!props.customPrimaryToolbarComponents && 'before' in props.customPrimaryToolbarComponents ? /*#__PURE__*/React.createElement(BeforePrimaryToolbarWrapper, {
44
+ }, twoLineEditorToolbar && !!props.customPrimaryToolbarComponents && 'before' in props.customPrimaryToolbarComponents ? jsx(BeforePrimaryToolbarWrapper, {
42
45
  beforePrimaryToolbarComponents: props.customPrimaryToolbarComponents.before
43
46
  }) : null, props.hideAvatarGroup || (props === null || props === void 0 ? void 0 : (_props$featureFlags2 = props.featureFlags) === null || _props$featureFlags2 === void 0 ? void 0 : _props$featureFlags2.showAvatarGroupAsPlugin) === true && !((_props$featureFlags3 = props.featureFlags) !== null && _props$featureFlags3 !== void 0 && _props$featureFlags3.twoLineEditorToolbar) ? null :
44
- /*#__PURE__*/
45
47
  // Avatars are moved to Confluence codebase for Edit in Context
46
48
  // When Edit in Context is enabled customPrimaryToolbarComponents is undefined
47
49
  // For more details please check
48
50
  // https://hello.atlassian.net/wiki/spaces/PCG/pages/2851572180/Editor+toolbar+for+live+pages+and+edit+in+context+projects
49
- React.createElement(AvatarsWithPluginState, {
51
+ jsx(AvatarsWithPluginState, {
50
52
  editorView: props.editorView,
51
53
  eventDispatcher: props.eventDispatcher,
52
54
  inviteToEditComponent: (_props$collabEdit = props.collabEdit) === null || _props$collabEdit === void 0 ? void 0 : _props$collabEdit.inviteToEditComponent,
@@ -54,7 +56,7 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
54
56
  isInviteToEditButtonSelected: (_props$collabEdit3 = props.collabEdit) === null || _props$collabEdit3 === void 0 ? void 0 : _props$collabEdit3.isInviteToEditButtonSelected,
55
57
  featureFlags: props.featureFlags || {},
56
58
  editorAnalyticsAPI: editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$analytics = editorAPI.analytics) === null || _editorAPI$analytics === void 0 ? void 0 : _editorAPI$analytics.actions
57
- }), editorAPI !== null && editorAPI !== void 0 && editorAPI.findReplace && twoLineEditorToolbar ? /*#__PURE__*/React.createElement(FindReplaceToolbarButtonWithState, {
59
+ }), editorAPI !== null && editorAPI !== void 0 && editorAPI.findReplace && twoLineEditorToolbar ? jsx(FindReplaceToolbarButtonWithState, {
58
60
  popupsBoundariesElement: props.popupsBoundariesElement,
59
61
  popupsMountPoint: props.popupsMountPoint,
60
62
  popupsScrollableElement: props.popupsScrollableElement,
@@ -91,22 +93,22 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
91
93
  event.preventDefault();
92
94
  event.stopPropagation();
93
95
  };
94
- return /*#__PURE__*/React.createElement(ContextPanelConsumer, null, ({
96
+ return jsx(ContextPanelConsumer, null, ({
95
97
  width: contextPanelWidth
96
- }) => /*#__PURE__*/React.createElement(ToolbarArrowKeyNavigationProvider, {
98
+ }) => jsx(ToolbarArrowKeyNavigationProvider, {
97
99
  editorView: props.editorView,
98
100
  childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
99
101
  isShortcutToFocusToolbar: isShortcutToFocusToolbar,
100
102
  handleEscape: handleEscape,
101
103
  intl: props.intl
102
- }, /*#__PURE__*/React.createElement("div", {
104
+ }, jsx("div", {
103
105
  css: mainToolbarStyle(props.showKeyline || contextPanelWidth > 0, twoLineEditorToolbar),
104
106
  "data-testid": "ak-editor-main-toolbar"
105
- }, /*#__PURE__*/React.createElement("div", {
107
+ }, jsx("div", {
106
108
  css: mainToolbarFirstChildStyle(twoLineEditorToolbar),
107
109
  role: "toolbar",
108
110
  "aria-label": props.intl.formatMessage(messages.toolbarLabel)
109
- }, shouldSplitToolbar ? customToolbar : nonCustomToolbar), /*#__PURE__*/React.createElement("div", {
111
+ }, shouldSplitToolbar ? customToolbar : nonCustomToolbar), jsx("div", {
110
112
  css: mainToolbarSecondChildStyle(twoLineEditorToolbar),
111
113
  "data-testid": 'avatar-group-outside-plugin',
112
114
  role: "region",
@@ -1,5 +1,6 @@
1
+ /** @jsx jsx */
1
2
  import React, { useCallback, forwardRef } from 'react';
2
- import { css } from '@emotion/react';
3
+ import { css, jsx } from '@emotion/react';
3
4
  import WithFlash from '../WithFlash';
4
5
  import { createEditorContentStyle } from '../ContentStyles';
5
6
  import { ClickAreaMobile as ClickArea } from '../Addon';
@@ -69,20 +70,20 @@ export const MobileAppearance = /*#__PURE__*/forwardRef(function MobileAppearanc
69
70
  currentIsExpanded = isExpanded;
70
71
  }
71
72
  }
72
- return /*#__PURE__*/React.createElement(WithFlash, {
73
+ return jsx(WithFlash, {
73
74
  animate: maxContentSizeReached
74
- }, /*#__PURE__*/React.createElement("div", {
75
+ }, jsx("div", {
75
76
  css: mobileEditor,
76
77
  ref: ref
77
- }, /*#__PURE__*/React.createElement(ClickArea, {
78
+ }, jsx(ClickArea, {
78
79
  editorView: editorView || undefined,
79
80
  minHeight: minHeight,
80
81
  persistScrollGutter: persistScrollGutter,
81
82
  isExpanded: currentIsExpanded,
82
83
  editorDisabled: editorDisabled
83
- }, /*#__PURE__*/React.createElement(ContentArea, {
84
+ }, jsx(ContentArea, {
84
85
  featureFlags: featureFlags
85
- }, /*#__PURE__*/React.createElement("div", {
86
+ }, jsx("div", {
86
87
  className: "ak-editor-content-area"
87
88
  }, children)))));
88
89
  }, [children, editorView, persistScrollGutter, editorDisabled, ref, featureFlags, api === null || api === void 0 ? void 0 : (_api$base2 = api.base) === null || _api$base2 === void 0 ? void 0 : _api$base2.sharedState]);
@@ -1,5 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ /** @jsx jsx */
2
3
  import React from 'react';
4
+ import { jsx } from '@emotion/react';
3
5
  import { PureComponent } from 'react';
4
6
  import { inputStyle } from './styles';
5
7
  import { injectIntl } from 'react-intl-next';
@@ -27,7 +29,7 @@ class ChromeCollapsed extends PureComponent {
27
29
  }
28
30
  render() {
29
31
  const placeholder = this.props.text || this.props.intl.formatMessage(messages.chromeCollapsedPlaceholder);
30
- return /*#__PURE__*/React.createElement("input", {
32
+ return jsx("input", {
31
33
  "data-testid": "chrome-collapsed",
32
34
  css: inputStyle,
33
35
  ref: this.handleInputRef,
@@ -1,65 +1,65 @@
1
1
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
2
2
  // Quality Ticket: https://product-fabric.atlassian.net/browse/DSP-4249
3
-
3
+ /** @jsx jsx */
4
4
  import React from 'react';
5
- import { css } from '@emotion/react';
5
+ import { css, jsx } from '@emotion/react';
6
6
  const imageContainer = css`
7
7
  margin: 0 auto ${"var(--ds-space-300, 24px)"};
8
8
  height: 80px;
9
9
  `;
10
- const ErrorImage = () => /*#__PURE__*/React.createElement("div", {
10
+ const ErrorImage = () => jsx("div", {
11
11
  css: imageContainer
12
- }, /*#__PURE__*/React.createElement("svg", {
12
+ }, jsx("svg", {
13
13
  xmlns: "http://www.w3.org/2000/svg",
14
14
  viewBox: "0 0 163.28 218",
15
15
  height: "80"
16
- }, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
16
+ }, jsx("defs", null, jsx("linearGradient", {
17
17
  id: "linear-gradient",
18
18
  x1: "133.86",
19
19
  x2: "-2.79",
20
20
  y1: "136.43",
21
21
  y2: "200.15",
22
22
  gradientUnits: "userSpaceOnUse"
23
- }, /*#__PURE__*/React.createElement("stop", {
23
+ }, jsx("stop", {
24
24
  offset: "0",
25
25
  stopColor: "#ffd740"
26
- }), /*#__PURE__*/React.createElement("stop", {
26
+ }), jsx("stop", {
27
27
  offset: "1",
28
28
  stopColor: "#ffab00"
29
- })), /*#__PURE__*/React.createElement("clipPath", {
29
+ })), jsx("clipPath", {
30
30
  id: "clip-path"
31
- }, /*#__PURE__*/React.createElement("path", {
31
+ }, jsx("path", {
32
32
  id: "_Polygon_",
33
33
  d: "M94.78 80.16l66.44 115.08A15.17 15.17 0 01148.08 218H15.2a15.17 15.17 0 01-13.14-22.76L68.5 80.16a15.17 15.17 0 0126.28 0z",
34
34
  className: "cls-1",
35
35
  "data-name": "<Polygon>"
36
- })), /*#__PURE__*/React.createElement("style", null, `.cls-1{fill:url(#linear-gradient)}.cls-2{fill:#253858}.cls-6{fill:none;stroke-linecap:round;stroke-miterlimit:10;stroke-width:2px;stroke:#5e6c84}`)), /*#__PURE__*/React.createElement("g", {
36
+ })), jsx("style", null, `.cls-1{fill:url(#linear-gradient)}.cls-2{fill:#253858}.cls-6{fill:none;stroke-linecap:round;stroke-miterlimit:10;stroke-width:2px;stroke:#5e6c84}`)), jsx("g", {
37
37
  id: "Layer_2",
38
38
  "data-name": "Layer 2"
39
- }, /*#__PURE__*/React.createElement("g", {
39
+ }, jsx("g", {
40
40
  id: "Software"
41
- }, /*#__PURE__*/React.createElement("path", {
41
+ }, jsx("path", {
42
42
  id: "_Polygon_2",
43
43
  d: "M94.78 80.16l66.44 115.08A15.17 15.17 0 01148.08 218H15.2a15.17 15.17 0 01-13.14-22.76L68.5 80.16a15.17 15.17 0 0126.28 0z",
44
44
  className: "cls-1",
45
45
  "data-name": "<Polygon>"
46
- }), /*#__PURE__*/React.createElement("path", {
46
+ }), jsx("path", {
47
47
  d: "M87.22 163.71l2.88-44.35a9.18 9.18 0 00-9.16-9.78 9.18 9.18 0 00-9.16 9.78l2.88 44.35a6.3 6.3 0 006.28 5.89 6.3 6.3 0 006.28-5.89zM71.38 187.25a9.53 9.53 0 0010.39 9.58 9.68 9.68 0 00-.9-19.32 9.64 9.64 0 00-9.49 9.74z",
48
48
  className: "cls-2"
49
- }), /*#__PURE__*/React.createElement("path", {
49
+ }), jsx("path", {
50
50
  fill: "#ffc400",
51
51
  d: "M91.7 27.17L84.29.45A.61.61 0 0083.1.5l-4.66 25.1-5.8-1.08a.61.61 0 00-.7.76L79.35 52a.61.61 0 001.19 0l4.66-25.1 5.8 1.03a.61.61 0 00.7-.76z"
52
- }), /*#__PURE__*/React.createElement("path", {
52
+ }), jsx("path", {
53
53
  fill: "#ffab00",
54
54
  d: "M65.12 41.81l-10.88-8.55a.27.27 0 00-.41.33L59.36 45l-2.66 1.31a.27.27 0 000 .45l10.87 8.55a.27.27 0 00.41-.33l-5.57-11.43 2.66-1.29a.27.27 0 00.05-.45z"
55
- }), /*#__PURE__*/React.createElement("path", {
55
+ }), jsx("path", {
56
56
  fill: "none",
57
57
  stroke: "#344563",
58
58
  strokeLinecap: "round",
59
59
  strokeMiterlimit: "10",
60
60
  strokeWidth: "2",
61
61
  d: "M115.15 36.6c-1.17 1.59-11-5.6-12.16-4s8.66 8.79 7.5 10.39-11-5.6-12.17-4 8.66 8.79 7.49 10.39-11-5.6-12.17-4 8.66 8.79 7.49 10.39"
62
- }), /*#__PURE__*/React.createElement("path", {
62
+ }), jsx("path", {
63
63
  d: "M119.92 64.19c-1.46 1.33-7.05-4.78-8.51-3.44s4.13 7.45 2.67 8.78-7.05-4.78-8.51-3.44c-.68.62.16 2.27 1.11 4M44.8 64c1.82.77 5-6.87 6.86-6.1s-1.39 8.4.43 9.17 5-6.87 6.86-6.1c.85.36.61 2.19.29 4.13",
64
64
  className: "cls-6"
65
65
  })))));
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /** @jsx jsx */
2
3
  import React, { Fragment } from 'react';
3
- import { css } from '@emotion/react';
4
+ import { css, jsx } from '@emotion/react';
4
5
  import { Checkbox as AKCheckbox } from '@atlaskit/checkbox';
5
6
  import { Field } from '@atlaskit/form';
6
7
  import AKToggle from '@atlaskit/toggle';
@@ -48,7 +49,7 @@ function Checkbox({
48
49
  isRequired = false,
49
50
  defaultValue = false
50
51
  } = field;
51
- return /*#__PURE__*/React.createElement(Field, {
52
+ return jsx(Field, {
52
53
  name: name,
53
54
  isRequired: isRequired,
54
55
  validate: value => validate(value, isRequired),
@@ -61,11 +62,11 @@ function Checkbox({
61
62
  value: isChecked,
62
63
  ...restFieldProps
63
64
  } = fieldProps;
64
- return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(AKCheckbox, _extends({}, restFieldProps, {
65
+ return jsx(Fragment, null, jsx(AKCheckbox, _extends({}, restFieldProps, {
65
66
  label: label,
66
67
  onChange: event => handleOnChange(fieldProps.onChange, onFieldChange, event),
67
68
  isChecked: parseBoolean(isChecked)
68
- })), /*#__PURE__*/React.createElement(FieldMessages, {
69
+ })), jsx(FieldMessages, {
69
70
  error: error,
70
71
  description: description
71
72
  }));
@@ -82,7 +83,7 @@ function Toggle({
82
83
  isRequired = false,
83
84
  defaultValue = false
84
85
  } = field;
85
- return /*#__PURE__*/React.createElement(Field, {
86
+ return jsx(Field, {
86
87
  name: name,
87
88
  isRequired: isRequired,
88
89
  validate: value => validate(value, isRequired),
@@ -96,19 +97,19 @@ function Toggle({
96
97
  value: isChecked,
97
98
  ...restFieldProps
98
99
  } = fieldProps;
99
- return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
100
+ return jsx(Fragment, null, jsx("div", {
100
101
  css: toggleFieldWrapper
101
- }, /*#__PURE__*/React.createElement("label", {
102
+ }, jsx("label", {
102
103
  css: toggleLabel,
103
104
  id: id,
104
105
  htmlFor: id
105
- }, label, isRequired ? /*#__PURE__*/React.createElement("span", {
106
+ }, label, isRequired ? jsx("span", {
106
107
  css: requiredIndicator,
107
108
  "aria-hidden": "true"
108
- }, "*") : null), /*#__PURE__*/React.createElement(AKToggle, _extends({}, restFieldProps, {
109
+ }, "*") : null), jsx(AKToggle, _extends({}, restFieldProps, {
109
110
  onChange: event => handleOnChange(fieldProps.onChange, onFieldChange, event),
110
111
  isChecked: parseBoolean(isChecked)
111
- }))), /*#__PURE__*/React.createElement(FieldMessages, {
112
+ }))), jsx(FieldMessages, {
112
113
  error: error,
113
114
  description: description
114
115
  }));
@@ -120,13 +121,13 @@ export default function Boolean({
120
121
  onFieldChange
121
122
  }) {
122
123
  if (field.style === 'toggle') {
123
- return /*#__PURE__*/React.createElement(Toggle, {
124
+ return jsx(Toggle, {
124
125
  name: name,
125
126
  field: field,
126
127
  onFieldChange: onFieldChange
127
128
  });
128
129
  }
129
- return /*#__PURE__*/React.createElement(Checkbox, {
130
+ return jsx(Checkbox, {
130
131
  name: name,
131
132
  field: field,
132
133
  onFieldChange: onFieldChange
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /** @jsx jsx */
2
3
  import { Fragment, useCallback } from 'react';
3
- import { css } from '@emotion/react';
4
+ import { css, jsx } from '@emotion/react';
4
5
  import { Checkbox as AKCheckbox } from '@atlaskit/checkbox';
5
6
  import { Field, Fieldset as AKFieldset } from '@atlaskit/form';
6
7
  import { ValidationError } from '../types';
@@ -36,7 +37,7 @@ function CheckboxGroupInner({
36
37
  onChange([...active]);
37
38
  onFieldChange();
38
39
  }
39
- return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(AKFieldset, {
40
+ return jsx(Fragment, null, jsx(AKFieldset, {
40
41
  legend: label
41
42
  }, options.map(({
42
43
  label: optionLabel,
@@ -46,7 +47,7 @@ function CheckboxGroupInner({
46
47
  const onOptionChange = event => {
47
48
  _onChange(optionValue, event.target.checked);
48
49
  };
49
- return /*#__PURE__*/React.createElement(AKCheckbox, _extends({
50
+ return jsx(AKCheckbox, _extends({
50
51
  key: i
51
52
  }, restFieldProps, {
52
53
  isRequired: false,
@@ -54,7 +55,7 @@ function CheckboxGroupInner({
54
55
  isChecked: isChecked,
55
56
  onChange: onOptionChange
56
57
  }));
57
- })), /*#__PURE__*/React.createElement(FieldMessages, {
58
+ })), jsx(FieldMessages, {
58
59
  error: error,
59
60
  description: description
60
61
  }));
@@ -71,20 +72,20 @@ export default function CheckboxGroup({
71
72
  isRequired = false,
72
73
  items: options
73
74
  } = field;
74
- const label = /*#__PURE__*/React.createElement(Fragment, null, labelBase, isRequired ? /*#__PURE__*/React.createElement("span", {
75
+ const label = jsx(Fragment, null, labelBase, isRequired ? jsx("span", {
75
76
  css: requiredIndicator,
76
77
  "aria-hidden": "true"
77
78
  }, ' ', "*") : null);
78
79
  const _onFieldChange = useCallback(() => {
79
80
  onFieldChange(name, true);
80
81
  }, [name, onFieldChange]);
81
- return /*#__PURE__*/React.createElement(Field, {
82
+ return jsx(Field, {
82
83
  name: name,
83
84
  isRequired: isRequired,
84
85
  defaultValue: defaultValue,
85
86
  validate: value => validate(value, isRequired)
86
87
  }, props => {
87
- return /*#__PURE__*/React.createElement(CheckboxGroupInner, _extends({
88
+ return jsx(CheckboxGroupInner, _extends({
88
89
  label: label,
89
90
  description: description,
90
91
  options: options,
@@ -1,4 +1,5 @@
1
- import { css } from '@emotion/react';
1
+ /** @jsx jsx */
2
+ import { jsx, css } from '@emotion/react';
2
3
  import { Fragment } from 'react';
3
4
  import { Field } from '@atlaskit/form';
4
5
  import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
@@ -339,7 +340,7 @@ const ColorPicker = props => {
339
340
  onChange(colorValue);
340
341
  onFieldChange(name, currentColor !== colorValue);
341
342
  };
342
- return /*#__PURE__*/React.createElement(ColorPickerButton, {
343
+ return jsx(ColorPickerButton, {
343
344
  title: title,
344
345
  currentColor: currentColor,
345
346
  onChange: onColorChange,
@@ -365,7 +366,7 @@ const ColorPickerField = ({
365
366
  defaultValue,
366
367
  isRequired
367
368
  } = field;
368
- return /*#__PURE__*/React.createElement(Field, {
369
+ return jsx(Field, {
369
370
  name: name,
370
371
  isRequired: isRequired,
371
372
  defaultValue: defaultValue,
@@ -373,21 +374,21 @@ const ColorPickerField = ({
373
374
  }, ({
374
375
  fieldProps,
375
376
  error
376
- }) => /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
377
+ }) => jsx(Fragment, null, jsx("div", {
377
378
  css: colorPickerWrapper
378
- }, /*#__PURE__*/React.createElement("label", {
379
+ }, jsx("label", {
379
380
  css: colorPickerLabel
380
- }, label, isRequired && /*#__PURE__*/React.createElement("span", {
381
+ }, label, isRequired && jsx("span", {
381
382
  css: requiredIndicator,
382
383
  "aria-hidden": "true"
383
- }, "*")), /*#__PURE__*/React.createElement(ColorPicker, {
384
+ }, "*")), jsx(ColorPicker, {
384
385
  name: name,
385
386
  title: label,
386
387
  currentColor: fieldProps.value,
387
388
  onChange: fieldProps.onChange,
388
389
  onFieldChange: onFieldChange,
389
390
  featureFlags: featureFlags
390
- })), error && /*#__PURE__*/React.createElement(FieldMessages, {
391
+ })), error && jsx(FieldMessages, {
391
392
  error: error,
392
393
  description: ""
393
394
  })));
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /** @jsx jsx */
2
3
  import { Fragment, useState, useEffect, useMemo } from 'react';
3
- import { css } from '@emotion/react';
4
+ import { css, jsx } from '@emotion/react';
4
5
  import { injectIntl } from 'react-intl-next';
5
6
  import { Field } from '@atlaskit/form';
6
7
  import { RadioGroup } from '@atlaskit/radio';
@@ -32,10 +33,10 @@ const DateField = ({
32
33
  onFieldChange,
33
34
  intl,
34
35
  isRequired
35
- }) => /*#__PURE__*/React.createElement("div", {
36
+ }) => jsx("div", {
36
37
  css: horizontalFieldWrapper,
37
38
  key: fieldName
38
- }, /*#__PURE__*/React.createElement(Field, {
39
+ }, jsx(Field, {
39
40
  name: `${scope}.${fieldName}`,
40
41
  label: intl.formatMessage(messages[fieldName]),
41
42
  defaultValue: getFromDefaultValue(parentField, fieldName),
@@ -48,13 +49,13 @@ const DateField = ({
48
49
  }, ({
49
50
  fieldProps,
50
51
  error
51
- }) => /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(DatePicker, _extends({}, fieldProps, {
52
+ }) => jsx(Fragment, null, jsx(DatePicker, _extends({}, fieldProps, {
52
53
  onChange: date => {
53
54
  fieldProps.onChange(date);
54
55
  onFieldChange(parentField.name, true);
55
56
  },
56
57
  locale: intl.locale
57
- })), /*#__PURE__*/React.createElement(FieldMessages, {
58
+ })), jsx(FieldMessages, {
58
59
  error: error
59
60
  }))));
60
61
  const DateRange = function ({
@@ -78,16 +79,16 @@ const DateRange = function ({
78
79
  // get the most up to date value after the form has been rendered
79
80
  onFieldChange(name, true);
80
81
  }, [currentValue, onFieldChange, name]);
81
- const element = /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
82
+ const element = jsx(Fragment, null, jsx("div", {
82
83
  css: hidden
83
- }, /*#__PURE__*/React.createElement(Field, {
84
+ }, jsx(Field, {
84
85
  name: `${name}.type`,
85
86
  defaultValue: 'date-range'
86
87
  }, ({
87
88
  fieldProps
88
- }) => /*#__PURE__*/React.createElement(TextField, _extends({}, fieldProps, {
89
+ }) => jsx(TextField, _extends({}, fieldProps, {
89
90
  type: "hidden"
90
- })))), /*#__PURE__*/React.createElement(Field, {
91
+ })))), jsx(Field, {
91
92
  name: `${name}.value`,
92
93
  label: field.label,
93
94
  defaultValue: currentValue,
@@ -96,40 +97,40 @@ const DateRange = function ({
96
97
  }, ({
97
98
  fieldProps,
98
99
  error
99
- }) => /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(RadioGroup, _extends({}, fieldProps, {
100
+ }) => jsx(Fragment, null, jsx(RadioGroup, _extends({}, fieldProps, {
100
101
  options: items,
101
102
  onChange: event => {
102
103
  fieldProps.onChange(event.target.value);
103
104
  setCurrentValue(event.target.value);
104
105
  }
105
- })), /*#__PURE__*/React.createElement(FieldMessages, {
106
+ })), jsx(FieldMessages, {
106
107
  error: error
107
- }))), currentValue !== 'custom' ? /*#__PURE__*/React.createElement("div", {
108
+ }))), currentValue !== 'custom' ? jsx("div", {
108
109
  css: hidden
109
- }, /*#__PURE__*/React.createElement(Field, {
110
+ }, jsx(Field, {
110
111
  name: `${name}.from`,
111
112
  defaultValue: currentValue
112
113
  }, ({
113
114
  fieldProps
114
- }) => /*#__PURE__*/React.createElement(TextField, _extends({}, fieldProps, {
115
+ }) => jsx(TextField, _extends({}, fieldProps, {
115
116
  type: "hidden"
116
- })))) : /*#__PURE__*/React.createElement("div", {
117
+ })))) : jsx("div", {
117
118
  css: horizontalFields
118
- }, /*#__PURE__*/React.createElement(DateField, {
119
+ }, jsx(DateField, {
119
120
  scope: name,
120
121
  parentField: field,
121
122
  fieldName: "from",
122
123
  onFieldChange: onFieldChange,
123
124
  intl: intl,
124
125
  isRequired: field.isRequired
125
- }), /*#__PURE__*/React.createElement(DateField, {
126
+ }), jsx(DateField, {
126
127
  scope: name,
127
128
  parentField: field,
128
129
  fieldName: "to",
129
130
  onFieldChange: onFieldChange,
130
131
  intl: intl,
131
132
  isRequired: field.isRequired
132
- })), /*#__PURE__*/React.createElement(FieldMessages, {
133
+ })), jsx(FieldMessages, {
133
134
  description: field.description
134
135
  }));
135
136
  return element;
@@ -1,5 +1,6 @@
1
+ /** @jsx jsx */
1
2
  import React, { useState } from 'react';
2
- import { css } from '@emotion/react';
3
+ import { css, jsx } from '@emotion/react';
3
4
  import { injectIntl } from 'react-intl-next';
4
5
  import { N40 } from '@atlaskit/theme/colors';
5
6
  import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
@@ -41,26 +42,26 @@ function Expand({
41
42
  intl
42
43
  }) {
43
44
  const [expanded, setExpanded] = useState(isExpanded);
44
- return /*#__PURE__*/React.createElement("div", {
45
+ return jsx("div", {
45
46
  "data-testid": "expand-config-field",
46
47
  css: expandContainer
47
- }, /*#__PURE__*/React.createElement("div", {
48
+ }, jsx("div", {
48
49
  css: expandControl
49
- }, /*#__PURE__*/React.createElement("div", {
50
+ }, jsx("div", {
50
51
  css: labelContainer
51
- }, field.label), /*#__PURE__*/React.createElement("div", {
52
+ }, field.label), jsx("div", {
52
53
  css: chevronContainer
53
- }, /*#__PURE__*/React.createElement(Button, {
54
+ }, jsx(Button, {
54
55
  onClick: () => {
55
56
  setExpanded(!expanded);
56
57
  },
57
58
  testId: "form-expand-toggle",
58
- iconBefore: expanded ? /*#__PURE__*/React.createElement(ChevronDownIcon, {
59
+ iconBefore: expanded ? jsx(ChevronDownIcon, {
59
60
  label: intl.formatMessage(messages.collapse)
60
- }) : /*#__PURE__*/React.createElement(ChevronRightIcon, {
61
+ }) : jsx(ChevronRightIcon, {
61
62
  label: intl.formatMessage(messages.expand)
62
63
  })
63
- }))), /*#__PURE__*/React.createElement("div", {
64
+ }))), jsx("div", {
64
65
  "data-testid": "expand-content-container",
65
66
  css: expandContentContainer(!expanded)
66
67
  }, children));
@@ -1,6 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ /** @jsx jsx */
2
3
  import React, { Fragment } from 'react';
3
- import { css } from '@emotion/react';
4
+ import { css, jsx } from '@emotion/react';
4
5
  import { injectIntl } from 'react-intl-next';
5
6
  import SectionMessage from '@atlaskit/section-message';
6
7
  import Button from '@atlaskit/button/custom-theme-button';
@@ -143,7 +144,7 @@ class FieldsetField extends React.Component {
143
144
  if (selectOptions.length === 0) {
144
145
  return null;
145
146
  }
146
- return /*#__PURE__*/React.createElement(React.Fragment, null, isAdding ? /*#__PURE__*/React.createElement(Select, {
147
+ return jsx(React.Fragment, null, isAdding ? jsx(Select, {
147
148
  testId: "field-picker",
148
149
  defaultMenuIsOpen: true,
149
150
  autoFocus: true,
@@ -154,10 +155,10 @@ class FieldsetField extends React.Component {
154
155
  this.onSelectItem(option);
155
156
  }
156
157
  }
157
- }) : /*#__PURE__*/React.createElement(Button, {
158
+ }) : jsx(Button, {
158
159
  testId: "add-more",
159
160
  appearance: "subtle",
160
- iconBefore: /*#__PURE__*/React.createElement(AddCircleIcon, {
161
+ iconBefore: jsx(AddCircleIcon, {
161
162
  size: "small",
162
163
  label: intl.formatMessage(messages.addField)
163
164
  }),
@@ -193,9 +194,9 @@ class FieldsetField extends React.Component {
193
194
  visibleFields
194
195
  } = this.state;
195
196
  const children = this.renderActions();
196
- return /*#__PURE__*/React.createElement(Fragment, null, error && /*#__PURE__*/React.createElement(FieldsetError, {
197
+ return jsx(Fragment, null, error && jsx(FieldsetError, {
197
198
  message: error
198
- }), /*#__PURE__*/React.createElement("div", null, options.showTitle && /*#__PURE__*/React.createElement("h5", null, label), /*#__PURE__*/React.createElement(FormComponent, {
199
+ }), jsx("div", null, options.showTitle && jsx("h5", null, label), jsx(FormComponent, {
199
200
  fields: selectedFields,
200
201
  parentName: name,
201
202
  extensionManifest: extensionManifest,
@@ -204,7 +205,7 @@ class FieldsetField extends React.Component {
204
205
  onClickRemove: this.onClickRemove,
205
206
  onFieldChange: onFieldChange,
206
207
  firstVisibleFieldName: firstVisibleFieldName
207
- }), children && /*#__PURE__*/React.createElement("div", {
208
+ }), children && jsx("div", {
208
209
  css: actionsWrapper,
209
210
  "data-testId": "fieldset-actions"
210
211
  }, children)));
@@ -213,11 +214,11 @@ class FieldsetField extends React.Component {
213
214
  function FieldsetError({
214
215
  message
215
216
  }) {
216
- return /*#__PURE__*/React.createElement("div", {
217
+ return jsx("div", {
217
218
  css: sectionMessageWrapper
218
- }, /*#__PURE__*/React.createElement(SectionMessage, {
219
+ }, jsx(SectionMessage, {
219
220
  appearance: "error"
220
- }, /*#__PURE__*/React.createElement("p", null, message)));
221
+ }, jsx("p", null, message)));
221
222
  }
222
223
  const sectionMessageWrapper = css`
223
224
  margin-bottom: 24px;
@@ -1,4 +1,5 @@
1
- import { css } from '@emotion/react';
1
+ /** @jsx jsx */
2
+ import { css, jsx } from '@emotion/react';
2
3
  import Avatar from '@atlaskit/avatar';
3
4
  const itemWrapper = css`
4
5
  display: flex;
@@ -30,17 +31,17 @@ export const formatOptionLabel = ({
30
31
  }, {
31
32
  context
32
33
  }) => {
33
- return /*#__PURE__*/React.createElement("div", {
34
+ return jsx("div", {
34
35
  css: itemWrapper
35
- }, /*#__PURE__*/React.createElement("span", {
36
+ }, jsx("span", {
36
37
  css: [iconWrapper, context === 'menu' && iconWrapperMenu]
37
- }, typeof icon === 'string' ? /*#__PURE__*/React.createElement(Avatar, {
38
+ }, typeof icon === 'string' ? jsx(Avatar, {
38
39
  src: icon,
39
40
  size: getIconSize(context, description),
40
41
  appearance: "square"
41
- }) : icon), /*#__PURE__*/React.createElement("div", {
42
+ }) : icon), jsx("div", {
42
43
  style: {
43
44
  paddingLeft: icon ? "var(--ds-space-100, 8px)" : 0
44
45
  }
45
- }, /*#__PURE__*/React.createElement("p", null, label, description && context !== 'value' && /*#__PURE__*/React.createElement("small", null, description))));
46
+ }, jsx("p", null, label, description && context !== 'value' && jsx("small", null, description))));
46
47
  };