@atlaskit/editor-common 63.0.1 → 66.0.0

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 (295) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/dist/cjs/i18n/cs.js +3 -3
  3. package/dist/cjs/i18n/da.js +3 -3
  4. package/dist/cjs/i18n/de.js +3 -3
  5. package/dist/cjs/i18n/en_ZZ.js +27 -0
  6. package/dist/cjs/i18n/es.js +3 -3
  7. package/dist/cjs/i18n/fi.js +3 -3
  8. package/dist/cjs/i18n/fr.js +3 -3
  9. package/dist/cjs/i18n/hu.js +3 -3
  10. package/dist/cjs/i18n/it.js +3 -3
  11. package/dist/cjs/i18n/ja.js +3 -3
  12. package/dist/cjs/i18n/ko.js +3 -3
  13. package/dist/cjs/i18n/nb.js +3 -3
  14. package/dist/cjs/i18n/nl.js +3 -3
  15. package/dist/cjs/i18n/pl.js +3 -3
  16. package/dist/cjs/i18n/pt_BR.js +3 -3
  17. package/dist/cjs/i18n/ru.js +3 -3
  18. package/dist/cjs/i18n/sv.js +3 -3
  19. package/dist/cjs/i18n/th.js +3 -3
  20. package/dist/cjs/i18n/tr.js +3 -3
  21. package/dist/cjs/i18n/uk.js +3 -3
  22. package/dist/cjs/i18n/vi.js +3 -3
  23. package/dist/cjs/i18n/zh.js +3 -2
  24. package/dist/cjs/i18n/zh_TW.js +3 -3
  25. package/dist/cjs/index.js +1 -29
  26. package/dist/cjs/normalize-feature-flags.js +40 -4
  27. package/dist/cjs/{ui/IntlLegacyFallbackProvider → safe-plugin}/index.js +17 -35
  28. package/dist/cjs/styles/index.js +0 -8
  29. package/dist/cjs/styles/shared/annotation.js +25 -17
  30. package/dist/cjs/styles/shared/block-marks.js +2 -2
  31. package/dist/cjs/styles/shared/blockquote.js +2 -2
  32. package/dist/cjs/styles/shared/code-mark.js +9 -5
  33. package/dist/cjs/styles/shared/column-layout.js +2 -2
  34. package/dist/cjs/styles/shared/date.js +2 -2
  35. package/dist/cjs/styles/shared/headings.js +5 -2
  36. package/dist/cjs/styles/shared/indentation.js +2 -2
  37. package/dist/cjs/styles/shared/link.js +2 -2
  38. package/dist/cjs/styles/shared/lists.js +4 -2
  39. package/dist/cjs/styles/shared/media-single.js +2 -2
  40. package/dist/cjs/styles/shared/panel.js +7 -4
  41. package/dist/cjs/styles/shared/paragraph.js +2 -2
  42. package/dist/cjs/styles/shared/rule.js +5 -2
  43. package/dist/cjs/styles/shared/shadow.js +2 -2
  44. package/dist/cjs/styles/shared/table.js +37 -33
  45. package/dist/cjs/styles/shared/task-decision.js +2 -2
  46. package/dist/cjs/styles/shared/text-color.js +2 -2
  47. package/dist/cjs/styles/shared/whitespace.js +2 -2
  48. package/dist/cjs/types/collab.js +5 -0
  49. package/dist/cjs/ui/BaseTheme/index.js +27 -11
  50. package/dist/cjs/ui/Caption/index.js +10 -7
  51. package/dist/cjs/ui/Expand/index.js +84 -46
  52. package/dist/cjs/ui/{IntlNextErrorBoundary → IntlErrorBoundary}/index.js +9 -9
  53. package/dist/cjs/ui/MediaSingle/index.js +15 -8
  54. package/dist/cjs/ui/MediaSingle/link.js +4 -6
  55. package/dist/cjs/ui/MediaSingle/styled.js +23 -20
  56. package/dist/cjs/ui/Mention/index.js +1 -3
  57. package/dist/cjs/ui/Mention/mention-with-profilecard.js +33 -194
  58. package/dist/cjs/ui/Mention/mention-with-providers.js +1 -5
  59. package/dist/cjs/ui/Messages/index.js +25 -22
  60. package/dist/cjs/ui/Popup/index.js +15 -1
  61. package/dist/cjs/ui/UnsupportedBlock/index.js +9 -6
  62. package/dist/cjs/ui/UnsupportedInline/index.js +8 -6
  63. package/dist/cjs/ui/WidthProvider/index.js +8 -9
  64. package/dist/cjs/ui/clear-next-sibling-margin-top.js +4 -5
  65. package/dist/cjs/ui/index.js +24 -34
  66. package/dist/cjs/utils/compare-props.js +136 -0
  67. package/dist/cjs/utils/index.js +23 -1
  68. package/dist/cjs/utils/performance/hooks/use-component-render-tracking/index.js +47 -0
  69. package/dist/cjs/utils/validator.js +1 -1
  70. package/dist/cjs/version.json +1 -1
  71. package/dist/es2019/i18n/cs.js +3 -3
  72. package/dist/es2019/i18n/da.js +3 -3
  73. package/dist/es2019/i18n/de.js +3 -3
  74. package/dist/es2019/i18n/en_ZZ.js +19 -0
  75. package/dist/es2019/i18n/es.js +3 -3
  76. package/dist/es2019/i18n/fi.js +3 -3
  77. package/dist/es2019/i18n/fr.js +3 -3
  78. package/dist/es2019/i18n/hu.js +3 -3
  79. package/dist/es2019/i18n/it.js +3 -3
  80. package/dist/es2019/i18n/ja.js +3 -3
  81. package/dist/es2019/i18n/ko.js +3 -3
  82. package/dist/es2019/i18n/nb.js +3 -3
  83. package/dist/es2019/i18n/nl.js +3 -3
  84. package/dist/es2019/i18n/pl.js +3 -3
  85. package/dist/es2019/i18n/pt_BR.js +3 -3
  86. package/dist/es2019/i18n/ru.js +3 -3
  87. package/dist/es2019/i18n/sv.js +3 -3
  88. package/dist/es2019/i18n/th.js +3 -3
  89. package/dist/es2019/i18n/tr.js +3 -3
  90. package/dist/es2019/i18n/uk.js +3 -3
  91. package/dist/es2019/i18n/vi.js +3 -3
  92. package/dist/es2019/i18n/zh.js +3 -2
  93. package/dist/es2019/i18n/zh_TW.js +3 -3
  94. package/dist/es2019/index.js +2 -7
  95. package/dist/es2019/normalize-feature-flags.js +40 -4
  96. package/dist/es2019/safe-plugin/index.js +10 -0
  97. package/dist/es2019/styles/index.js +0 -1
  98. package/dist/es2019/styles/shared/annotation.js +11 -11
  99. package/dist/es2019/styles/shared/block-marks.js +3 -2
  100. package/dist/es2019/styles/shared/blockquote.js +1 -1
  101. package/dist/es2019/styles/shared/code-mark.js +14 -11
  102. package/dist/es2019/styles/shared/column-layout.js +1 -1
  103. package/dist/es2019/styles/shared/date.js +1 -1
  104. package/dist/es2019/styles/shared/headings.js +8 -8
  105. package/dist/es2019/styles/shared/indentation.js +1 -1
  106. package/dist/es2019/styles/shared/link.js +1 -1
  107. package/dist/es2019/styles/shared/lists.js +19 -1
  108. package/dist/es2019/styles/shared/media-single.js +1 -1
  109. package/dist/es2019/styles/shared/panel.js +15 -15
  110. package/dist/es2019/styles/shared/paragraph.js +1 -1
  111. package/dist/es2019/styles/shared/rule.js +3 -3
  112. package/dist/es2019/styles/shared/shadow.js +1 -1
  113. package/dist/es2019/styles/shared/table.js +23 -13
  114. package/dist/es2019/styles/shared/task-decision.js +1 -1
  115. package/dist/es2019/styles/shared/text-color.js +1 -1
  116. package/dist/es2019/styles/shared/whitespace.js +1 -1
  117. package/dist/es2019/types/collab.js +1 -0
  118. package/dist/es2019/ui/BaseTheme/index.js +16 -5
  119. package/dist/es2019/ui/Caption/index.js +11 -5
  120. package/dist/es2019/ui/Expand/index.js +97 -67
  121. package/dist/es2019/ui/{IntlNextErrorBoundary → IntlErrorBoundary}/index.js +1 -1
  122. package/dist/es2019/ui/MediaSingle/index.js +15 -9
  123. package/dist/es2019/ui/MediaSingle/link.js +3 -4
  124. package/dist/es2019/ui/MediaSingle/styled.js +13 -12
  125. package/dist/es2019/ui/Mention/index.js +1 -3
  126. package/dist/es2019/ui/Mention/mention-with-profilecard.js +33 -146
  127. package/dist/es2019/ui/Mention/mention-with-providers.js +1 -5
  128. package/dist/es2019/ui/Messages/index.js +30 -22
  129. package/dist/es2019/ui/Popup/index.js +16 -1
  130. package/dist/es2019/ui/UnsupportedBlock/index.js +9 -6
  131. package/dist/es2019/ui/UnsupportedInline/index.js +8 -5
  132. package/dist/es2019/ui/WidthProvider/index.js +10 -8
  133. package/dist/es2019/ui/clear-next-sibling-margin-top.js +2 -2
  134. package/dist/es2019/ui/index.js +4 -6
  135. package/dist/es2019/utils/compare-props.js +99 -0
  136. package/dist/es2019/utils/index.js +3 -1
  137. package/dist/es2019/utils/performance/hooks/use-component-render-tracking/index.js +36 -0
  138. package/dist/es2019/utils/validator.js +1 -1
  139. package/dist/es2019/version.json +1 -1
  140. package/dist/esm/i18n/cs.js +3 -3
  141. package/dist/esm/i18n/da.js +3 -3
  142. package/dist/esm/i18n/de.js +3 -3
  143. package/dist/esm/i18n/en_ZZ.js +19 -0
  144. package/dist/esm/i18n/es.js +3 -3
  145. package/dist/esm/i18n/fi.js +3 -3
  146. package/dist/esm/i18n/fr.js +3 -3
  147. package/dist/esm/i18n/hu.js +3 -3
  148. package/dist/esm/i18n/it.js +3 -3
  149. package/dist/esm/i18n/ja.js +3 -3
  150. package/dist/esm/i18n/ko.js +3 -3
  151. package/dist/esm/i18n/nb.js +3 -3
  152. package/dist/esm/i18n/nl.js +3 -3
  153. package/dist/esm/i18n/pl.js +3 -3
  154. package/dist/esm/i18n/pt_BR.js +3 -3
  155. package/dist/esm/i18n/ru.js +3 -3
  156. package/dist/esm/i18n/sv.js +3 -3
  157. package/dist/esm/i18n/th.js +3 -3
  158. package/dist/esm/i18n/tr.js +3 -3
  159. package/dist/esm/i18n/uk.js +3 -3
  160. package/dist/esm/i18n/vi.js +3 -3
  161. package/dist/esm/i18n/zh.js +3 -2
  162. package/dist/esm/i18n/zh_TW.js +3 -3
  163. package/dist/esm/index.js +2 -7
  164. package/dist/esm/normalize-feature-flags.js +39 -4
  165. package/dist/esm/{ui/IntlLegacyFallbackProvider → safe-plugin}/index.js +13 -31
  166. package/dist/esm/styles/index.js +0 -1
  167. package/dist/esm/styles/shared/annotation.js +21 -17
  168. package/dist/esm/styles/shared/block-marks.js +2 -2
  169. package/dist/esm/styles/shared/blockquote.js +1 -1
  170. package/dist/esm/styles/shared/code-mark.js +9 -6
  171. package/dist/esm/styles/shared/column-layout.js +1 -1
  172. package/dist/esm/styles/shared/date.js +1 -1
  173. package/dist/esm/styles/shared/headings.js +4 -2
  174. package/dist/esm/styles/shared/indentation.js +1 -1
  175. package/dist/esm/styles/shared/link.js +1 -1
  176. package/dist/esm/styles/shared/lists.js +3 -2
  177. package/dist/esm/styles/shared/media-single.js +1 -1
  178. package/dist/esm/styles/shared/panel.js +6 -4
  179. package/dist/esm/styles/shared/paragraph.js +1 -1
  180. package/dist/esm/styles/shared/rule.js +4 -2
  181. package/dist/esm/styles/shared/shadow.js +1 -1
  182. package/dist/esm/styles/shared/table.js +37 -33
  183. package/dist/esm/styles/shared/task-decision.js +1 -1
  184. package/dist/esm/styles/shared/text-color.js +1 -1
  185. package/dist/esm/styles/shared/whitespace.js +1 -1
  186. package/dist/esm/types/collab.js +1 -0
  187. package/dist/esm/ui/BaseTheme/index.js +23 -12
  188. package/dist/esm/ui/Caption/index.js +10 -5
  189. package/dist/esm/ui/Expand/index.js +79 -42
  190. package/dist/esm/ui/{IntlNextErrorBoundary → IntlErrorBoundary}/index.js +7 -7
  191. package/dist/esm/ui/MediaSingle/index.js +16 -9
  192. package/dist/esm/ui/MediaSingle/link.js +2 -3
  193. package/dist/esm/ui/MediaSingle/styled.js +17 -10
  194. package/dist/esm/ui/Mention/index.js +1 -3
  195. package/dist/esm/ui/Mention/mention-with-profilecard.js +33 -189
  196. package/dist/esm/ui/Mention/mention-with-providers.js +1 -5
  197. package/dist/esm/ui/Messages/index.js +26 -20
  198. package/dist/esm/ui/Popup/index.js +16 -1
  199. package/dist/esm/ui/UnsupportedBlock/index.js +9 -5
  200. package/dist/esm/ui/UnsupportedInline/index.js +8 -5
  201. package/dist/esm/ui/WidthProvider/index.js +7 -6
  202. package/dist/esm/ui/clear-next-sibling-margin-top.js +2 -2
  203. package/dist/esm/ui/index.js +4 -6
  204. package/dist/esm/utils/compare-props.js +115 -0
  205. package/dist/esm/utils/index.js +3 -1
  206. package/dist/esm/utils/performance/hooks/use-component-render-tracking/index.js +37 -0
  207. package/dist/esm/utils/validator.js +1 -1
  208. package/dist/esm/version.json +1 -1
  209. package/dist/types/__tests_external__/page-objects/Editor.d.ts +0 -1
  210. package/dist/types/__tests_external__/page-objects/EditorMedia.d.ts +0 -1
  211. package/dist/types/__tests_external__/page-objects/EditorSmartLink.d.ts +0 -1
  212. package/dist/types/__tests_external__/page-objects/Renderer.d.ts +0 -1
  213. package/dist/types/collab/types.d.ts +14 -2
  214. package/dist/types/collab.d.ts +1 -1
  215. package/dist/types/extensions/types/field-definitions.d.ts +1 -1
  216. package/dist/types/i18n/cs.d.ts +2 -2
  217. package/dist/types/i18n/da.d.ts +2 -2
  218. package/dist/types/i18n/de.d.ts +2 -2
  219. package/dist/types/i18n/en_ZZ.d.ts +19 -0
  220. package/dist/types/i18n/es.d.ts +2 -2
  221. package/dist/types/i18n/fi.d.ts +2 -2
  222. package/dist/types/i18n/fr.d.ts +2 -2
  223. package/dist/types/i18n/hu.d.ts +2 -2
  224. package/dist/types/i18n/it.d.ts +2 -2
  225. package/dist/types/i18n/ja.d.ts +2 -2
  226. package/dist/types/i18n/ko.d.ts +2 -2
  227. package/dist/types/i18n/nb.d.ts +2 -2
  228. package/dist/types/i18n/nl.d.ts +2 -2
  229. package/dist/types/i18n/pl.d.ts +2 -2
  230. package/dist/types/i18n/pt_BR.d.ts +2 -2
  231. package/dist/types/i18n/ru.d.ts +2 -2
  232. package/dist/types/i18n/sv.d.ts +2 -2
  233. package/dist/types/i18n/th.d.ts +2 -2
  234. package/dist/types/i18n/tr.d.ts +2 -2
  235. package/dist/types/i18n/uk.d.ts +2 -2
  236. package/dist/types/i18n/vi.d.ts +2 -2
  237. package/dist/types/i18n/zh.d.ts +2 -2
  238. package/dist/types/i18n/zh_TW.d.ts +2 -2
  239. package/dist/types/index.d.ts +1 -14
  240. package/dist/types/normalize-feature-flags.d.ts +6 -3
  241. package/dist/types/safe-plugin/index.d.ts +6 -0
  242. package/dist/types/styles/index.d.ts +0 -1
  243. package/dist/types/styles/shared/annotation.d.ts +5 -4
  244. package/dist/types/styles/shared/block-marks.d.ts +1 -1
  245. package/dist/types/styles/shared/blockquote.d.ts +1 -1
  246. package/dist/types/styles/shared/code-mark.d.ts +2 -1
  247. package/dist/types/styles/shared/column-layout.d.ts +1 -1
  248. package/dist/types/styles/shared/date.d.ts +1 -1
  249. package/dist/types/styles/shared/headings.d.ts +2 -1
  250. package/dist/types/styles/shared/indentation.d.ts +1 -1
  251. package/dist/types/styles/shared/link.d.ts +1 -1
  252. package/dist/types/styles/shared/lists.d.ts +1 -1
  253. package/dist/types/styles/shared/media-single.d.ts +1 -1
  254. package/dist/types/styles/shared/panel.d.ts +1 -1
  255. package/dist/types/styles/shared/paragraph.d.ts +1 -1
  256. package/dist/types/styles/shared/rule.d.ts +2 -1
  257. package/dist/types/styles/shared/shadow.d.ts +1 -1
  258. package/dist/types/styles/shared/table.d.ts +2 -1
  259. package/dist/types/styles/shared/task-decision.d.ts +1 -1
  260. package/dist/types/styles/shared/text-color.d.ts +1 -1
  261. package/dist/types/styles/shared/whitespace.d.ts +1 -1
  262. package/dist/types/types/collab.d.ts +8 -0
  263. package/dist/types/types/index.d.ts +1 -0
  264. package/dist/types/ui/Caption/index.d.ts +3 -1
  265. package/dist/types/ui/Expand/index.d.ts +12 -10
  266. package/dist/types/ui/{IntlNextErrorBoundary → IntlErrorBoundary}/index.d.ts +1 -1
  267. package/dist/types/ui/MediaSingle/index.d.ts +4 -1
  268. package/dist/types/ui/MediaSingle/link.d.ts +1 -2
  269. package/dist/types/ui/MediaSingle/styled.d.ts +10 -5
  270. package/dist/types/ui/Mention/index.d.ts +0 -3
  271. package/dist/types/ui/Mention/mention-with-profilecard.d.ts +2 -25
  272. package/dist/types/ui/Mention/mention-with-providers.d.ts +0 -3
  273. package/dist/types/ui/Messages/index.d.ts +5 -3
  274. package/dist/types/ui/Popup/index.d.ts +3 -0
  275. package/dist/types/ui/UnsupportedBlock/index.d.ts +1 -0
  276. package/dist/types/ui/UnsupportedInline/index.d.ts +1 -0
  277. package/dist/types/ui/WidthProvider/index.d.ts +3 -1
  278. package/dist/types/ui/clear-next-sibling-margin-top.d.ts +1 -2
  279. package/dist/types/ui/index.d.ts +5 -7
  280. package/dist/types/utils/compare-props.d.ts +32 -0
  281. package/dist/types/utils/getModeFromTheme.d.ts +1 -1
  282. package/dist/types/utils/index.d.ts +4 -0
  283. package/dist/types/utils/performance/hooks/use-component-render-tracking/index.d.ts +19 -0
  284. package/package.json +20 -19
  285. package/safe-plugin/package.json +7 -0
  286. package/dist/cjs/styles/shared/inline-nodes.js +0 -17
  287. package/dist/cjs/ui/LegacyToNextIntlProvider/index.js +0 -67
  288. package/dist/es2019/styles/shared/inline-nodes.js +0 -7
  289. package/dist/es2019/ui/IntlLegacyFallbackProvider/index.js +0 -21
  290. package/dist/es2019/ui/LegacyToNextIntlProvider/index.js +0 -24
  291. package/dist/esm/styles/shared/inline-nodes.js +0 -7
  292. package/dist/esm/ui/LegacyToNextIntlProvider/index.js +0 -51
  293. package/dist/types/styles/shared/inline-nodes.d.ts +0 -2
  294. package/dist/types/ui/IntlLegacyFallbackProvider/index.d.ts +0 -8
  295. package/dist/types/ui/LegacyToNextIntlProvider/index.d.ts +0 -8
@@ -2,11 +2,14 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
 
3
3
  var _templateObject;
4
4
 
5
- import { css } from 'styled-components';
5
+ import { css } from '@emotion/react';
6
6
  import { getCodeStyles } from '@atlaskit/code/inline';
7
7
  import { DN70, N30A } from '@atlaskit/theme/colors';
8
- import { themed } from '@atlaskit/theme/components';
9
- export var codeMarkSharedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .code {\n --ds--code--bg-color: ", ";\n ", "\n }\n"])), themed({
10
- light: N30A,
11
- dark: DN70
12
- }), getCodeStyles);
8
+ import { getTheme, themed } from '@atlaskit/theme/components';
9
+ export var codeMarkSharedStyles = function codeMarkSharedStyles(props) {
10
+ var theme = getTheme(props);
11
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .code {\n --ds--code--bg-color: ", ";\n ", "\n }\n "])), themed({
12
+ light: N30A,
13
+ dark: DN70
14
+ })(props), getCodeStyles(theme));
15
+ };
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
 
3
3
  var _templateObject;
4
4
 
5
- import { css } from 'styled-components';
5
+ import { css } from '@emotion/react';
6
6
  import { gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
7
7
  var columnLayoutSharedStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n [data-layout-section] {\n display: flex;\n flex-direction: row;\n & > * {\n flex: 1;\n min-width: 0;\n }\n\n & > .unsupportedBlockView-content-wrap {\n min-width: initial;\n }\n\n @media screen and (max-width: ", "px) {\n flex-direction: column;\n }\n }\n"])), gridMediumMaxWidth);
8
8
  export { columnLayoutSharedStyle };
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
 
3
3
  var _templateObject;
4
4
 
5
- import { css } from 'styled-components';
5
+ import { css } from '@emotion/react';
6
6
  export var DateSharedCssClassName = {
7
7
  DATE_WRAPPER: "date-lozenger-container",
8
8
  DATE_CONTAINER: 'dateView-content-wrap'
@@ -2,8 +2,10 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
 
3
3
  var _templateObject;
4
4
 
5
- import { css } from 'styled-components';
5
+ import { css } from '@emotion/react';
6
6
  import { h100, h300, h400, h500, h600, h700 } from '@atlaskit/theme/typography'; // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
7
7
  // text sizing prototype: http://proto/fabricrender/
8
8
 
9
- export var headingsSharedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n & h1 {\n ", ";\n margin-bottom: 0;\n margin-top: 1.667em;\n }\n\n & h2 {\n ", ";\n margin-top: 1.8em;\n margin-bottom: 0;\n }\n\n & h3 {\n ", ";\n margin-top: 2em;\n margin-bottom: 0;\n }\n\n & h4 {\n ", ";\n margin-top: 1.357em;\n }\n\n & h5 {\n ", ";\n margin-top: 1.667em;\n text-transform: none;\n }\n\n & h6 {\n ", ";\n margin-top: 1.455em;\n text-transform: none;\n }\n"])), h700, h600, h500, h400, h300, h100);
9
+ export var headingsSharedStyles = function headingsSharedStyles(props) {
10
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n & h1 {\n ", ";\n margin-bottom: 0;\n margin-top: 1.667em;\n }\n\n & h2 {\n ", ";\n margin-top: 1.8em;\n margin-bottom: 0;\n }\n\n & h3 {\n ", ";\n margin-top: 2em;\n margin-bottom: 0;\n }\n\n & h4 {\n ", ";\n margin-top: 1.357em;\n }\n\n & h5 {\n ", ";\n margin-top: 1.667em;\n text-transform: none;\n }\n\n & h6 {\n ", ";\n margin-top: 1.455em;\n text-transform: none;\n }\n"])), h700(props), h600(props), h500(props), h400(props), h300(props), h100(props));
11
+ };
@@ -2,5 +2,5 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
 
3
3
  var _templateObject;
4
4
 
5
- import { css } from 'styled-components';
5
+ import { css } from '@emotion/react';
6
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"])));
@@ -2,6 +2,6 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
 
3
3
  var _templateObject;
4
4
 
5
- import { css } from 'styled-components';
5
+ import { css } from '@emotion/react';
6
6
  var linkSharedStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n a.blockLink {\n display: block;\n }\n"])));
7
7
  export { linkSharedStyle };
@@ -2,6 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
 
3
3
  var _templateObject;
4
4
 
5
- import { css } from 'styled-components';
5
+ import { css } from '@emotion/react';
6
6
  import { bulletListSelector, orderedListSelector } from '@atlaskit/adf-schema';
7
- export var listsSharedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* =============== INDENTATION SPACING ========= */\n\n ul,\n ol {\n box-sizing: border-box;\n padding-left: 24px;\n }\n\n ", ", ", " {\n /*\n Ensures list item content adheres to the list's margin instead\n of filling the entire block row. This is important to allow\n clicking interactive elements which are floated next to a list.\n\n For some history and context on this block, see PRs related to tickets.:\n @see ED-6551 - original issue.\n @see ED-7015 - follow up issue.\n @see ED-7447 - flow-root change.\n\n We use 'display: table' (old clear fix / new block formatting context hack)\n for older browsers and 'flow-root' for modern browsers.\n\n @see https://css-tricks.com/display-flow-root/\n */\n // For older browsers the do not support flow-root.\n display: table;\n display: flow-root;\n }\n\n /* =============== INDENTATION AESTHETICS ========= */\n\n /**\n We support nested lists up to six levels deep.\n **/\n\n /* LEGACY LISTS */\n\n ul,\n ul ul ul ul {\n list-style-type: disc;\n }\n\n ul ul,\n ul ul ul ul ul {\n list-style-type: circle;\n }\n\n ul ul ul,\n ul ul ul ul ul ul {\n list-style-type: square;\n }\n\n ol,\n ol ol ol ol {\n list-style-type: decimal;\n }\n ol ol,\n ol ol ol ol ol {\n list-style-type: lower-alpha;\n }\n ol ol ol,\n ol ol ol ol ol ol {\n list-style-type: lower-roman;\n }\n\n /* PREDICTABLE LISTS */\n\n ol[data-indent-level='1'],\n ol[data-indent-level='4'] {\n list-style-type: decimal;\n }\n\n ol[data-indent-level='2'],\n ol[data-indent-level='5'] {\n list-style-type: lower-alpha;\n }\n\n ol[data-indent-level='3'],\n ol[data-indent-level='6'] {\n list-style-type: lower-roman;\n }\n\n ul[data-indent-level='1'],\n ul[data-indent-level='4'] {\n list-style-type: disc;\n }\n\n ul[data-indent-level='2'],\n ul[data-indent-level='5'] {\n list-style-type: circle;\n }\n\n ul[data-indent-level='3'],\n ul[data-indent-level='6'] {\n list-style-type: square;\n }\n"])), orderedListSelector, bulletListSelector);
7
+ import browser from '../../utils/browser';
8
+ export var listsSharedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* =============== INDENTATION SPACING ========= */\n\n ul,\n ol {\n box-sizing: border-box;\n padding-left: 24px;\n\n /*\n Firefox does not handle empty block element inside li tag.\n If there is not block element inside li tag,\n then firefox sets inherited height to li\n However, if there is any block element and if it's empty\n (or has empty inline element) then\n firefox sets li tag height to zero.\n More details at\n https://product-fabric.atlassian.net/wiki/spaces/~455502413/pages/3149365890/ED-14110+Investigation\n */\n li p:empty,\n li p > span:empty {\n ", "\n }\n }\n\n ", ", ", " {\n /*\n Ensures list item content adheres to the list's margin instead\n of filling the entire block row. This is important to allow\n clicking interactive elements which are floated next to a list.\n\n For some history and context on this block, see PRs related to tickets.:\n @see ED-6551 - original issue.\n @see ED-7015 - follow up issue.\n @see ED-7447 - flow-root change.\n\n We use 'display: table' (old clear fix / new block formatting context hack)\n for older browsers and 'flow-root' for modern browsers.\n\n @see https://css-tricks.com/display-flow-root/\n */\n // For older browsers the do not support flow-root.\n /* stylelint-disable declaration-block-no-duplicate-properties */\n display: table;\n display: flow-root;\n /* stylelint-enable declaration-block-no-duplicate-properties */\n }\n\n /* =============== INDENTATION AESTHETICS ========= */\n\n /**\n We support nested lists up to six levels deep.\n **/\n\n /* LEGACY LISTS */\n\n ul,\n ul ul ul ul {\n list-style-type: disc;\n }\n\n ul ul,\n ul ul ul ul ul {\n list-style-type: circle;\n }\n\n ul ul ul,\n ul ul ul ul ul ul {\n list-style-type: square;\n }\n\n ol,\n ol ol ol ol {\n list-style-type: decimal;\n }\n ol ol,\n ol ol ol ol ol {\n list-style-type: lower-alpha;\n }\n ol ol ol,\n ol ol ol ol ol ol {\n list-style-type: lower-roman;\n }\n\n /* PREDICTABLE LISTS */\n\n ol[data-indent-level='1'],\n ol[data-indent-level='4'] {\n list-style-type: decimal;\n }\n\n ol[data-indent-level='2'],\n ol[data-indent-level='5'] {\n list-style-type: lower-alpha;\n }\n\n ol[data-indent-level='3'],\n ol[data-indent-level='6'] {\n list-style-type: lower-roman;\n }\n\n ul[data-indent-level='1'],\n ul[data-indent-level='4'] {\n list-style-type: disc;\n }\n\n ul[data-indent-level='2'],\n ul[data-indent-level='5'] {\n list-style-type: circle;\n }\n\n ul[data-indent-level='3'],\n ul[data-indent-level='6'] {\n list-style-type: square;\n }\n"])), browser.gecko ? 'display: inline-block;' : '', orderedListSelector, bulletListSelector);
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
 
3
3
  var _templateObject;
4
4
 
5
- import { css } from 'styled-components';
5
+ import { css } from '@emotion/react';
6
6
  var richMediaClassName = 'rich-media-item';
7
7
  var wrappedMediaBreakoutPoint = 410;
8
8
  var mediaSingleSharedStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n li .", " {\n margin: 0;\n }\n\n /* Hack for chrome to fix media single position\n inside a list when media is the first child */\n &.ua-chrome li > .mediaSingleView-content-wrap::before {\n content: '';\n display: block;\n height: 0;\n }\n\n &.ua-firefox {\n .mediaSingleView-content-wrap {\n user-select: none;\n }\n\n .captionView-content-wrap {\n user-select: text;\n }\n }\n\n .mediaSingleView-content-wrap[layout='center'] {\n clear: both;\n }\n\n table .", " {\n margin-top: 12px;\n margin-bottom: 12px;\n clear: both;\n }\n\n .", ".image-wrap-right\n + .", ".image-wrap-left {\n clear: both;\n }\n\n .", ".image-wrap-left\n + .", ".image-wrap-right,\n .", ".image-wrap-right\n + .", ".image-wrap-left,\n .", ".image-wrap-left\n + .", ".image-wrap-left,\n .", ".image-wrap-right\n + .", ".image-wrap-right {\n margin-right: 0;\n margin-left: 0;\n }\n\n @media all and (max-width: ", "px) {\n div.mediaSingleView-content-wrap[layout='wrap-left'],\n div.mediaSingleView-content-wrap[data-layout='wrap-left'],\n div.mediaSingleView-content-wrap[layout='wrap-right'],\n div.mediaSingleView-content-wrap[data-layout='wrap-right'] {\n float: none;\n overflow: auto;\n margin: 12px 0;\n }\n }\n"])), richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, wrappedMediaBreakoutPoint);
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
 
4
4
  var _templateObject;
5
5
 
6
- import { css } from 'styled-components';
6
+ import { css } from '@emotion/react';
7
7
  import { PanelType } from '@atlaskit/adf-schema';
8
8
  import { akEditorTableCellMinWidth, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
9
9
  import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
@@ -181,6 +181,8 @@ var mainDynamicStyles = function mainDynamicStyles(panelType) {
181
181
  };
182
182
  };
183
183
 
184
- export var panelSharedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n border-radius: ", "px;\n margin: ", " 0 0;\n padding: ", "px;\n min-width: ", "px;\n display: flex;\n position: relative;\n align-items: baseline;\n word-break: break-word;\n\n ", "\n\n .", " {\n flex-shrink: 0;\n height: ", "px;\n width: ", "px;\n box-sizing: content-box;\n padding-right: ", "px;\n text-align: center;\n user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\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\n &[data-panel-type='", "'] {\n ", ";\n }\n }\n"])), PanelSharedCssClassName.prefix, borderRadius(), blockNodesVerticalMargin, gridSize(), akEditorTableCellMinWidth, mainDynamicStyles(PanelType.INFO), PanelSharedCssClassName.icon, gridSize() * 3, gridSize() * 3, gridSize(), 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), PanelType.CUSTOM, themed({
185
- dark: getPanelBackgroundDarkModeColors
186
- }));
184
+ export var panelSharedStyles = function panelSharedStyles(props) {
185
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n border-radius: ", "px;\n margin: ", " 0 0;\n padding: ", "px;\n min-width: ", "px;\n display: flex;\n position: relative;\n align-items: baseline;\n word-break: break-word;\n\n ", "\n\n .", " {\n flex-shrink: 0;\n height: ", "px;\n width: ", "px;\n box-sizing: content-box;\n padding-right: ", "px;\n text-align: center;\n user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\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\n &[data-panel-type='", "'] {\n ", ";\n }\n }\n"])), PanelSharedCssClassName.prefix, borderRadius(), blockNodesVerticalMargin, gridSize(), akEditorTableCellMinWidth, mainDynamicStyles(PanelType.INFO)(props), PanelSharedCssClassName.icon, gridSize() * 3, gridSize() * 3, gridSize(), iconDynamicStyles(PanelType.INFO)(props), emojiSprite, panelEmojiSpriteVerticalAlignment, emojiImage, panelEmojiImageVerticalAlignment, PanelType.NOTE, mainDynamicStyles(PanelType.NOTE)(props), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.NOTE)(props), PanelType.TIP, mainDynamicStyles(PanelType.TIP)(props), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.TIP)(props), PanelType.WARNING, mainDynamicStyles(PanelType.WARNING)(props), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.WARNING)(props), PanelType.ERROR, mainDynamicStyles(PanelType.ERROR)(props), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.ERROR)(props), PanelType.SUCCESS, mainDynamicStyles(PanelType.SUCCESS)(props), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.SUCCESS)(props), PanelType.CUSTOM, themed({
186
+ dark: getPanelBackgroundDarkModeColors
187
+ })(props));
188
+ };
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
 
3
3
  var _templateObject;
4
4
 
5
- import { css } from 'styled-components';
5
+ import { css } from '@emotion/react';
6
6
  import { akEditorLineHeight, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles'; // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
7
7
 
8
8
  export var paragraphSharedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n & p {\n font-size: 1em;\n line-height: ", ";\n font-weight: normal;\n margin-top: ", ";\n margin-bottom: 0;\n letter-spacing: -0.005em;\n }\n"])), akEditorLineHeight, blockNodesVerticalMargin);
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
 
3
3
  var _templateObject;
4
4
 
5
- import { css } from 'styled-components';
5
+ import { css } from '@emotion/react';
6
6
  import { akEditorLineHeight } from '@atlaskit/editor-shared-styles';
7
7
  import { DN50, N30A } from '@atlaskit/theme/colors';
8
8
  import { themed } from '@atlaskit/theme/components';
@@ -11,4 +11,6 @@ var divider = themed({
11
11
  dark: DN50
12
12
  }); // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
13
13
 
14
- export var ruleSharedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n & hr {\n border: none;\n background-color: ", ";\n margin: ", "em 0;\n height: 2px;\n border-radius: 1px;\n }\n"])), divider, akEditorLineHeight);
14
+ export var ruleSharedStyles = function ruleSharedStyles(props) {
15
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n & hr {\n border: none;\n background-color: ", ";\n margin: ", "em 0;\n height: 2px;\n border-radius: 1px;\n }\n"])), divider(props), akEditorLineHeight);
16
+ };
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
 
3
3
  var _templateObject;
4
4
 
5
- import { css } from 'styled-components';
5
+ import { css } from '@emotion/react';
6
6
  import { akEditorShadowZIndex } from '@atlaskit/editor-shared-styles';
7
7
  import { N40A } from '@atlaskit/theme/colors';
8
8
  import { shadowClassNames } from '../../ui/OverflowShadow';
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
 
3
3
  var _templateObject;
4
4
 
5
- import { css } from 'styled-components';
5
+ import { css } from '@emotion/react';
6
6
  import { tableCellContentDomSelector, tableCellSelector, tableHeaderSelector, tablePrefixSelector } from '@atlaskit/adf-schema';
7
7
  import { akEditorBreakoutPadding, akEditorFullWidthLayoutWidth, akEditorTableBorder, akEditorTableBorderDark, akEditorTableNumberColumnWidth, akEditorTableToolbar, akEditorTableToolbarDark, akEditorWideLayoutWidth, getTableCellBackgroundDarkModeColors, overflowShadow } from '@atlaskit/editor-shared-styles';
8
8
  import { DN20 } from '@atlaskit/theme/colors';
@@ -30,42 +30,46 @@ export var TableSharedCssClassName = {
30
30
  TABLE_CELL_WRAPPER: tableCellSelector,
31
31
  TABLE_HEADER_CELL_WRAPPER: tableHeaderSelector
32
32
  };
33
- var tableSharedStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n position: relative;\n margin: 0 auto ", "px;\n box-sizing: border-box;\n\n /**\n * Fix block top alignment inside table cells.\n */\n .decisionItemView-content-wrap:first-child > div {\n margin-top: 0;\n }\n }\n .", "[data-number-column='true'] {\n padding-left: ", "px;\n clear: both;\n }\n /* avoid applying styles to nested tables (possible via extensions) */\n .", " > table,\n .", " > table,\n .", " > table {\n border-collapse: collapse;\n margin: ", "px ", "px 0 0;\n border: ", "px solid\n ", ";\n table-layout: fixed;\n font-size: 1em;\n width: 100%;\n\n &[data-autosize='true'] {\n table-layout: auto;\n }\n\n & {\n * {\n box-sizing: border-box;\n }\n hr {\n box-sizing: content-box;\n }\n\n tbody {\n border-bottom: none;\n }\n th td {\n background-color: white;\n }\n th,\n td {\n min-width: ", "px;\n font-weight: normal;\n vertical-align: top;\n border: 1px solid\n ", ";\n border-right-width: 0;\n border-bottom-width: 0;\n padding: ", "px;\n /* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n ", "\n\n ", ";\n\n > *:first-child {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor.-right:first-child + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + span + * {\n margin-top: 0;\n }\n\n th p:not(:first-of-type),\n td p:not(:first-of-type) {\n margin-top: 12px;\n }\n }\n th {\n background-color: ", ";\n text-align: left;\n\n /* only apply this styling to codeblocks in default background headercells */\n /* TODO this needs to be overhauled as it relies on unsafe selectors */\n &:not([style]) {\n .code-block {\n background-image: ", ";\n background-attachment: local, scroll, scroll;\n background-position: 100% 0, 100% 0, 0 0;\n background-color: ", ";\n\n .line-number-gutter {\n background-color: ", ";\n }\n\n /* this is only relevant to the element taken care of by renderer */\n > [data-ds--code--code-block] {\n background-image: ", "!important;\n\n background-color: ", "!important;\n\n // selector lives inside @atlaskit/code\n --ds--code--line-number-bg-color: ", ";\n }\n }\n }\n }\n }\n }\n"])), TableSharedCssClassName.TABLE_CONTAINER, tableMarginBottom, TableSharedCssClassName.TABLE_CONTAINER, akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableMarginTop, tableMarginSides, tableCellBorderWidth, themed({
34
- light: akEditorTableBorder,
35
- dark: akEditorTableBorderDark
36
- }), tableCellMinWidth, themed({
37
- light: akEditorTableBorder,
38
- dark: akEditorTableBorderDark
39
- }), tableCellPadding, browser.gecko || browser.ie || browser.mac && browser.chrome ? 'background-clip: padding-box;' : '', themed({
40
- dark: getTableCellBackgroundDarkModeColors
41
- }), themed({
42
- light: akEditorTableToolbar,
43
- dark: akEditorTableToolbarDark
44
- }), overflowShadow({
45
- background: themed({
33
+
34
+ var tableSharedStyle = function tableSharedStyle(props) {
35
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n position: relative;\n margin: 0 auto ", "px;\n box-sizing: border-box;\n\n /**\n * Fix block top alignment inside table cells.\n */\n .decisionItemView-content-wrap:first-child > div {\n margin-top: 0;\n }\n }\n .", "[data-number-column='true'] {\n padding-left: ", "px;\n clear: both;\n }\n .", " > table {\n margin: ", "px 0 0 0;\n }\n\n .", " > table,\n .", " > table {\n margin: ", "px ", "px 0 0;\n }\n\n /* avoid applying styles to nested tables (possible via extensions) */\n .", " > table,\n .", " > table,\n .", " > table {\n border-collapse: collapse;\n border: ", "px solid\n ", ";\n table-layout: fixed;\n font-size: 1em;\n width: 100%;\n\n &[data-autosize='true'] {\n table-layout: auto;\n }\n\n & {\n * {\n box-sizing: border-box;\n }\n hr {\n box-sizing: content-box;\n }\n\n tbody {\n border-bottom: none;\n }\n th td {\n background-color: white;\n }\n th,\n td {\n min-width: ", "px;\n font-weight: normal;\n vertical-align: top;\n border: 1px solid\n ", ";\n border-right-width: 0;\n border-bottom-width: 0;\n padding: ", "px;\n /* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n ", "\n\n ", ";\n\n > *:first-child {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor.-right:first-child + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + span + * {\n margin-top: 0;\n }\n\n th p:not(:first-of-type),\n td p:not(:first-of-type) {\n margin-top: 12px;\n }\n }\n th {\n background-color: ", ";\n text-align: left;\n\n /* only apply this styling to codeblocks in default background headercells */\n /* TODO this needs to be overhauled as it relies on unsafe selectors */\n &:not([style]) {\n .code-block {\n background-image: ", ";\n background-attachment: local, scroll, scroll;\n background-position: 100% 0, 100% 0, 0 0;\n background-color: ", ";\n\n .line-number-gutter {\n background-color: ", ";\n }\n\n /* this is only relevant to the element taken care of by renderer */\n > [data-ds--code--code-block] {\n background-image: ", "!important;\n\n background-color: ", "!important;\n\n // selector lives inside @atlaskit/code\n --ds--code--line-number-bg-color: ", ";\n }\n }\n }\n }\n }\n }\n"])), TableSharedCssClassName.TABLE_CONTAINER, tableMarginBottom, TableSharedCssClassName.TABLE_CONTAINER, akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_NODE_WRAPPER, tableMarginTop, TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableMarginTop, tableMarginSides, TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, themed({
36
+ light: akEditorTableBorder,
37
+ dark: akEditorTableBorderDark
38
+ })(props), tableCellMinWidth, themed({
39
+ light: akEditorTableBorder,
40
+ dark: akEditorTableBorderDark
41
+ })(props), tableCellPadding, browser.gecko || browser.ie || browser.mac && browser.chrome ? 'background-clip: padding-box;' : '', themed({
42
+ dark: getTableCellBackgroundDarkModeColors
43
+ })(props), themed({
44
+ light: akEditorTableToolbar,
45
+ dark: akEditorTableToolbarDark
46
+ })(props), overflowShadow({
47
+ background: themed({
48
+ light: 'rgb(235, 237, 240)',
49
+ dark: 'rgb(36, 47, 66)'
50
+ })(props),
51
+ width: "".concat(gridSize(), "px")
52
+ }), themed({
46
53
  light: 'rgb(235, 237, 240)',
47
54
  dark: 'rgb(36, 47, 66)'
48
- }),
49
- width: "".concat(gridSize(), "px")
50
- }), themed({
51
- light: 'rgb(235, 237, 240)',
52
- dark: 'rgb(36, 47, 66)'
53
- }), themed({
54
- light: 'rgb(226, 229, 233)',
55
- dark: DN20
56
- }), overflowShadow({
57
- background: themed({
55
+ })(props), themed({
56
+ light: 'rgb(226, 229, 233)',
57
+ dark: DN20
58
+ })(props), overflowShadow({
59
+ background: themed({
60
+ light: 'rgb(235, 237, 240)',
61
+ dark: 'rgb(36, 47, 66)'
62
+ })(props),
63
+ width: "".concat(gridSize(), "px")
64
+ }), themed({
58
65
  light: 'rgb(235, 237, 240)',
59
66
  dark: 'rgb(36, 47, 66)'
60
- }),
61
- width: "".concat(gridSize(), "px")
62
- }), themed({
63
- light: 'rgb(235, 237, 240)',
64
- dark: 'rgb(36, 47, 66)'
65
- }), themed({
66
- light: 'rgb(226, 229, 233)',
67
- dark: DN20
68
- }));
67
+ })(props), themed({
68
+ light: 'rgb(226, 229, 233)',
69
+ dark: DN20
70
+ })(props));
71
+ };
72
+
69
73
  export var calcTableWidth = function calcTableWidth(layout, containerWidth) {
70
74
  var addControllerPadding = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
71
75
 
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
 
3
3
  var _templateObject;
4
4
 
5
- import { css } from 'styled-components';
5
+ import { css } from '@emotion/react';
6
6
  import { akEditorTableCellMinWidth } from '@atlaskit/editor-shared-styles';
7
7
  export var TaskDecisionSharedCssClassName = {
8
8
  DECISION_CONTAINER: 'decisionItemView-content-wrap'
@@ -2,5 +2,5 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
 
3
3
  var _templateObject;
4
4
 
5
- import { css } from 'styled-components';
5
+ import { css } from '@emotion/react';
6
6
  export var textColorStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .fabric-text-color-mark {\n color: var(--custom-text-color, inherit);\n }\n\n a .fabric-text-color-mark {\n color: unset;\n }\n"])));
@@ -2,6 +2,6 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
 
3
3
  var _templateObject;
4
4
 
5
- import { css } from 'styled-components';
5
+ import { css } from '@emotion/react';
6
6
  var whitespaceSharedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n word-wrap: break-word;\n white-space: pre-wrap;\n"])));
7
7
  export { whitespaceSharedStyles };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,7 +1,10 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
1
2
  import React, { useMemo } from 'react';
2
- import { ThemeProvider } from 'styled-components';
3
+ import { ThemeProvider } from '@emotion/react';
4
+ import { ThemeProvider as DeprecatedThemeProvider } from 'styled-components';
3
5
  import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
4
- import { fontSize } from '@atlaskit/theme/constants';
6
+ import { useGlobalTheme } from '@atlaskit/theme/components';
7
+ import { CHANNEL, fontSize } from '@atlaskit/theme/constants';
5
8
  import { WidthConsumer } from '../WidthProvider';
6
9
 
7
10
  function mapBreakpointToFontSize(breakpoint) {
@@ -34,22 +37,30 @@ export function BaseThemeWrapper(_ref) {
34
37
  dynamicTextSizing = _ref.dynamicTextSizing,
35
38
  baseFontSize = _ref.baseFontSize,
36
39
  children = _ref.children;
40
+
41
+ var _useGlobalTheme = useGlobalTheme(),
42
+ mode = _useGlobalTheme.mode;
43
+
37
44
  var memoizedTheme = useMemo(function () {
38
- return {
45
+ return _defineProperty({
39
46
  baseFontSize: dynamicTextSizing ? mapBreakpointToFontSize(breakpoint) : baseFontSize || mapBreakpointToFontSize('S'),
40
47
  layoutMaxWidth: dynamicTextSizing ? mapBreakpointToLayoutMaxWidth(breakpoint) : akEditorDefaultLayoutWidth
41
- };
42
- }, [breakpoint, dynamicTextSizing, baseFontSize]);
48
+ }, CHANNEL, {
49
+ mode: mode
50
+ });
51
+ }, [breakpoint, dynamicTextSizing, baseFontSize, mode]);
43
52
  return /*#__PURE__*/React.createElement(ThemeProvider, {
44
53
  theme: memoizedTheme
45
- }, children);
54
+ }, /*#__PURE__*/React.createElement(DeprecatedThemeProvider, {
55
+ theme: memoizedTheme
56
+ }, children));
46
57
  }
47
- export function BaseTheme(_ref2) {
48
- var children = _ref2.children,
49
- dynamicTextSizing = _ref2.dynamicTextSizing,
50
- baseFontSize = _ref2.baseFontSize;
51
- return /*#__PURE__*/React.createElement(WidthConsumer, null, function (_ref3) {
52
- var breakpoint = _ref3.breakpoint;
58
+ export function BaseTheme(_ref3) {
59
+ var children = _ref3.children,
60
+ dynamicTextSizing = _ref3.dynamicTextSizing,
61
+ baseFontSize = _ref3.baseFontSize;
62
+ return /*#__PURE__*/React.createElement(WidthConsumer, null, function (_ref4) {
63
+ var breakpoint = _ref4.breakpoint;
53
64
  return /*#__PURE__*/React.createElement(BaseThemeWrapper, {
54
65
  dynamicTextSizing: dynamicTextSizing,
55
66
  breakpoint: breakpoint,
@@ -12,13 +12,14 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
12
12
 
13
13
  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; } }
14
14
 
15
+ /** @jsx jsx */
15
16
  import React from 'react';
17
+ import { css, jsx } from '@emotion/react';
16
18
  import { injectIntl } from 'react-intl-next';
17
- import styled from 'styled-components';
18
19
  import { N200, N400 } from '@atlaskit/theme/colors';
19
20
  import { messages } from './messages';
20
- var CaptionWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-top: 8px;\n text-align: center;\n position: relative;\n color: ", ";\n"])), N400);
21
- var Placeholder = styled.p(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n position: absolute;\n top: 0;\n width: 100%;\n"])), N200);
21
+ var captionWrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-top: 8px;\n text-align: center;\n position: relative;\n color: ", ";\n"])), N400);
22
+ var placeholderStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n position: absolute;\n top: 0;\n width: 100%;\n"])), N200);
22
23
  export var CaptionComponent = /*#__PURE__*/function (_React$Component) {
23
24
  _inherits(CaptionComponent, _React$Component);
24
25
 
@@ -40,10 +41,14 @@ export var CaptionComponent = /*#__PURE__*/function (_React$Component) {
40
41
  dataAttributes = _this$props.dataAttributes,
41
42
  formatMessage = _this$props.intl.formatMessage;
42
43
  var showPlaceholder = !selected && !hasContent;
43
- return /*#__PURE__*/React.createElement(CaptionWrapper, _extends({
44
+ return jsx("div", _extends({
44
45
  "data-media-caption": true,
45
46
  "data-testid": "media-caption"
46
- }, dataAttributes), showPlaceholder ? /*#__PURE__*/React.createElement(Placeholder, null, formatMessage(messages.placeholder)) : null, children);
47
+ }, dataAttributes, {
48
+ css: captionWrapperStyle
49
+ }), showPlaceholder ? jsx("p", {
50
+ css: placeholderStyle
51
+ }, formatMessage(messages.placeholder)) : null, children);
47
52
  }
48
53
  }]);
49
54
 
@@ -1,9 +1,14 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
1
3
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
4
+ var _excluded = ["children"];
2
5
 
3
6
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
4
7
 
8
+ /** @jsx jsx */
9
+ import React, { forwardRef } from 'react';
10
+ import { css, jsx } from '@emotion/react';
5
11
  import { defineMessages } from 'react-intl-next';
6
- import styled, { css } from 'styled-components';
7
12
  import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
8
13
  import * as colors from '@atlaskit/theme/colors';
9
14
  import { themed } from '@atlaskit/theme/components';
@@ -42,47 +47,79 @@ var EXPAND_EXPANDED_BORDER_COLOR = themed({
42
47
  light: colors.N40A,
43
48
  dark: colors.DN50
44
49
  });
45
- export var ExpandIconWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n display: flex;\n color: ", ";\n border-radius: ", "px;\n width: 24px;\n height: 24px;\n\n &:hover {\n background: ", ";\n }\n\n svg {\n ", "\n transition: transform 0.2s ", ";\n }\n"])), themed({
46
- light: colors.N90,
47
- dark: '#d9dde3'
48
- }), gridSize() / 2, colors.N30A, function (props) {
49
- return props.expanded ? 'transform: rotate(90deg);' : '';
50
- }, akEditorSwoopCubicBezier);
51
- export var ExpandLayoutWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", "px;\n height: ", "px;\n"])), gridSize() * 3, gridSize() * 3);
52
- var ContainerStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: ", "px;\n min-height: 25px;\n background: ", ";\n margin: ", ";\n\n transition: background 0.3s ", ",\n border-color 0.3s ", ";\n padding: ", "px;\n\n &:hover {\n border: 1px solid ", ";\n background: ", ";\n }\n\n td > &:first-child {\n margin-top: 0;\n }\n"])), function (_ref) {
53
- var expanded = _ref.expanded,
54
- focused = _ref.focused;
55
- var expandedBorderColor = expanded ? EXPAND_EXPANDED_BORDER_COLOR : EXPAND_COLLAPSED_BORDER_COLOR;
56
- return focused ? EXPAND_FOCUSED_BORDER_COLOR : expandedBorderColor;
57
- }, BORDER_RADIUS, function (_ref2) {
58
- var expanded = _ref2.expanded;
59
- return !expanded ? EXPAND_COLLAPSED_BACKGROUND : EXPAND_SELECTED_BACKGROUND;
60
- }, function (props) {
61
- return "".concat(gridSize() / 2 / fontSize(), "rem ").concat( // Only only these margins if the expand isn't editable
62
- // and is the root level expand.
63
- props['data-node-type'] === 'expand' ? "-".concat(akLayoutGutterOffset, "px") : "0", " 0");
64
- }, akEditorSwoopCubicBezier, akEditorSwoopCubicBezier, gridSize, themed({
65
- light: colors.N50A,
66
- dark: colors.DN50
67
- }), EXPAND_SELECTED_BACKGROUND);
68
- var ContentStyles = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", ";\n"])), function (_ref3) {
69
- var expanded = _ref3.expanded;
70
- return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding-top: ", "px;\n padding-right: ", "px;\n padding-left: ", "px;\n display: table;\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 "])), expanded ? gridSize() : 0, gridSize(), gridSize() * 4 - gridSize() / 2, !expanded ? "\n .expand-content-wrapper, .nestedExpand-content-wrapper {\n /* We visually hide the content here to preserve the content during copy+paste */\n width: 100%;\n display: block;\n height: 0;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n white-space: nowrap;\n user-select: none;\n }\n " : '');
50
+ export var ExpandIconWrapper = function ExpandIconWrapper(_ref) {
51
+ var children = _ref.children,
52
+ expanded = _ref.expanded;
53
+ return jsx("div", {
54
+ css: function css(props) {
55
+ return expanded ? [expandIconWrapperStyle(props), expandIconWrapperExpandedStyle] : expandIconWrapperStyle(props);
56
+ }
57
+ }, children);
58
+ };
59
+
60
+ var expandIconWrapperStyle = function expandIconWrapperStyle(props) {
61
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n display: flex;\n color: ", ";\n border-radius: ", "px;\n width: 24px;\n height: 24px;\n\n &:hover {\n background: ", ";\n }\n\n svg {\n transition: transform 0.2s ", ";\n }\n"])), themed({
62
+ light: colors.N90,
63
+ dark: '#d9dde3'
64
+ })(props), gridSize() / 2, colors.N30A, akEditorSwoopCubicBezier);
65
+ };
66
+
67
+ var expandIconWrapperExpandedStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n svg {\n transform: rotate(90deg);\n }\n"])));
68
+ export var expandLayoutWrapperStyle = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: ", "px;\n height: ", "px;\n"])), gridSize() * 3, gridSize() * 3);
69
+ export var ExpandLayoutWrapperWithRef = /*#__PURE__*/forwardRef(function (props, ref) {
70
+ var children = props.children,
71
+ rest = _objectWithoutProperties(props, _excluded);
72
+
73
+ return jsx("div", _extends({
74
+ css: expandLayoutWrapperStyle
75
+ }, rest, {
76
+ ref: ref
77
+ }), children);
71
78
  });
72
- var TitleInputStyles = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n outline: none;\n border: none;\n font-size: ", ";\n line-height: ", ";\n font-weight: normal;\n color: ", ";\n background: transparent;\n display: flex;\n flex: 1;\n padding: 0 0 0 ", "px;\n width: 100%;\n\n &::placeholder {\n opacity: 0.6;\n color: ", ";\n }\n"])), relativeFontSizeToBase16(fontSize()), akEditorLineHeight, themed({
73
- light: colors.N200A,
74
- dark: colors.DN600
75
- }), gridSize() / 2, themed({
76
- light: colors.N200A,
77
- dark: colors.DN600
78
- }));
79
- var TitleContainerStyles = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n padding: 0;\n display: flex;\n align-items: flex-start;\n background: none;\n border: none;\n font-size: ", ";\n width: 100%;\n color: ", ";\n overflow: hidden;\n cursor: pointer;\n // Prevent browser selection being inside the title container\n user-select: none;\n\n &:focus {\n outline: 0;\n }\n"])), relativeFontSizeToBase16(fontSize()), themed({
80
- light: colors.N300A,
81
- dark: colors.DN600
82
- }));
79
+
80
+ var containerStyles = function containerStyles(styleProps) {
81
+ var expanded = styleProps.expanded,
82
+ focused = styleProps.focused;
83
+ var marginTop = "".concat(gridSize() / 2 / fontSize(), "rem");
84
+ var marginBottom = 0; // Only only these margins if the expand isn't editable
85
+ // and is the root level expand.
86
+
87
+ var marginHorizontal = styleProps['data-node-type'] === 'expand' ? "-".concat(akLayoutGutterOffset, "px") : 0;
88
+ var margin = "".concat(marginTop, " ").concat(marginHorizontal, " ").concat(marginBottom);
89
+ return function (themeProps) {
90
+ return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: ", "px;\n min-height: 25px;\n background: ", ";\n margin: ", ";\n\n transition: background 0.3s ", ",\n border-color 0.3s ", ";\n padding: ", "px;\n\n &:hover {\n border: 1px solid\n ", ";\n background: ", ";\n }\n\n td > &:first-child {\n margin-top: 0;\n }\n "])), focused ? EXPAND_FOCUSED_BORDER_COLOR : expanded ? EXPAND_EXPANDED_BORDER_COLOR(themeProps) : EXPAND_COLLAPSED_BORDER_COLOR, BORDER_RADIUS, !expanded ? EXPAND_COLLAPSED_BACKGROUND : EXPAND_SELECTED_BACKGROUND(themeProps), margin, akEditorSwoopCubicBezier, akEditorSwoopCubicBezier, gridSize(), themed({
91
+ light: colors.N50A,
92
+ dark: colors.DN50
93
+ })(themeProps), EXPAND_SELECTED_BACKGROUND(themeProps));
94
+ };
95
+ };
96
+
97
+ var contentStyles = function contentStyles(styleProps) {
98
+ return function (themeProps) {
99
+ return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding-top: ", "px;\n padding-right: ", "px;\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 ? gridSize() : 0, gridSize(), 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 width: 100%;\n display: block;\n height: 0;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n white-space: nowrap;\n user-select: none;\n }\n " : '');
100
+ };
101
+ };
102
+
103
+ var titleInputStyles = function titleInputStyles(props) {
104
+ return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n outline: none;\n border: none;\n font-size: ", ";\n line-height: ", ";\n font-weight: normal;\n color: ", ";\n background: transparent;\n display: flex;\n flex: 1;\n padding: 0 0 0 ", "px;\n width: 100%;\n\n &::placeholder {\n opacity: 0.6;\n color: ", ";\n }\n"])), relativeFontSizeToBase16(fontSize()), akEditorLineHeight, themed({
105
+ light: colors.N200A,
106
+ dark: colors.DN600
107
+ })(props), gridSize() / 2, themed({
108
+ light: colors.N200A,
109
+ dark: colors.DN600
110
+ })(props));
111
+ };
112
+
113
+ var titleContainerStyles = function titleContainerStyles(props) {
114
+ return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n padding: 0;\n display: flex;\n align-items: flex-start;\n background: none;\n border: none;\n font-size: ", ";\n width: 100%;\n color: ", ";\n overflow: hidden;\n cursor: pointer;\n // Prevent browser selection being inside the title container\n user-select: none;\n\n &:focus {\n outline: 0;\n }\n"])), relativeFontSizeToBase16(fontSize()), themed({
115
+ light: colors.N300A,
116
+ dark: colors.DN600
117
+ })(props));
118
+ };
119
+
83
120
  export var sharedExpandStyles = {
84
- TitleInputStyles: TitleInputStyles,
85
- TitleContainerStyles: TitleContainerStyles,
86
- ContainerStyles: ContainerStyles,
87
- ContentStyles: ContentStyles
121
+ titleInputStyles: titleInputStyles,
122
+ titleContainerStyles: titleContainerStyles,
123
+ containerStyles: containerStyles,
124
+ contentStyles: contentStyles
88
125
  };
@@ -20,15 +20,15 @@ var isMissingIntlProviderInAncestryError = function isMissingIntlProviderInAnces
20
20
  return err === null || err === void 0 ? void 0 : (_err$toString = err.toString()) === null || _err$toString === void 0 ? void 0 : _err$toString.includes('<IntlProvider> needs to exist in the component ancestry');
21
21
  };
22
22
 
23
- export var IntlNextErrorBoundary = /*#__PURE__*/function (_React$Component) {
24
- _inherits(IntlNextErrorBoundary, _React$Component);
23
+ export var IntlErrorBoundary = /*#__PURE__*/function (_React$Component) {
24
+ _inherits(IntlErrorBoundary, _React$Component);
25
25
 
26
- var _super = _createSuper(IntlNextErrorBoundary);
26
+ var _super = _createSuper(IntlErrorBoundary);
27
27
 
28
- function IntlNextErrorBoundary() {
28
+ function IntlErrorBoundary() {
29
29
  var _this;
30
30
 
31
- _classCallCheck(this, IntlNextErrorBoundary);
31
+ _classCallCheck(this, IntlErrorBoundary);
32
32
 
33
33
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
34
34
  args[_key] = arguments[_key];
@@ -43,7 +43,7 @@ export var IntlNextErrorBoundary = /*#__PURE__*/function (_React$Component) {
43
43
  return _this;
44
44
  }
45
45
 
46
- _createClass(IntlNextErrorBoundary, [{
46
+ _createClass(IntlErrorBoundary, [{
47
47
  key: "componentDidCatch",
48
48
  value: function componentDidCatch(error, errorInfo) {
49
49
  // if missing IntlProvider in ancestry, we setup a fallback IntlProvider ourselves
@@ -69,5 +69,5 @@ export var IntlNextErrorBoundary = /*#__PURE__*/function (_React$Component) {
69
69
  }
70
70
  }]);
71
71
 
72
- return IntlNextErrorBoundary;
72
+ return IntlErrorBoundary;
73
73
  }(React.Component);