@atlaskit/editor-core 177.0.0 → 178.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 (292) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/codemods/__tests__/next-remove-allow-more-text-colors-prop.ts +147 -0
  3. package/codemods/migrates/next-remove-allow-more-text-colors-prop.ts +58 -0
  4. package/dist/cjs/create-editor/ErrorBoundary.js +3 -1
  5. package/dist/cjs/create-editor/ReactEditorView.js +3 -2
  6. package/dist/cjs/create-editor/create-editor.js +3 -1
  7. package/dist/cjs/editor.js +7 -0
  8. package/dist/cjs/labs/next/full-page.js +2 -4
  9. package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -3
  10. package/dist/cjs/plugins/block-type/commands/delete-and-move-cursor.js +67 -0
  11. package/dist/cjs/plugins/block-type/commands/index.js +9 -1
  12. package/dist/cjs/plugins/block-type/pm-plugins/keymap.js +8 -3
  13. package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -4
  14. package/dist/cjs/plugins/breakout/ui/LayoutButton.js +1 -3
  15. package/dist/cjs/plugins/card/styles.js +1 -3
  16. package/dist/cjs/plugins/code-block/styles.js +2 -4
  17. package/dist/cjs/plugins/collab-edit/styles.js +2 -4
  18. package/dist/cjs/plugins/collab-edit/ui/styles.js +2 -4
  19. package/dist/cjs/plugins/date/styles.js +1 -3
  20. package/dist/cjs/plugins/date/ui/DatePicker/index.js +1 -3
  21. package/dist/cjs/plugins/expand/ui/styles.js +14 -16
  22. package/dist/cjs/plugins/extension/ui/Extension/Extension/styles.js +4 -6
  23. package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -3
  24. package/dist/cjs/plugins/extension/ui/Extension/styles.js +5 -7
  25. package/dist/cjs/plugins/extension/ui/SaveIndicator/SaveIndicator.js +2 -4
  26. package/dist/cjs/plugins/extension/ui/styles.js +1 -3
  27. package/dist/cjs/plugins/fake-text-cursor/styles.js +1 -3
  28. package/dist/cjs/plugins/feature-flags-context/feature-flags-from-props.js +12 -12
  29. package/dist/cjs/plugins/find-replace/ui/styles.js +2 -4
  30. package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +40 -14
  31. package/dist/cjs/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -3
  32. package/dist/cjs/plugins/floating-toolbar/ui/ScrollButtons.js +1 -3
  33. package/dist/cjs/plugins/floating-toolbar/ui/Separator.js +1 -3
  34. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +11 -20
  35. package/dist/cjs/plugins/floating-toolbar/ui/styles.js +10 -12
  36. package/dist/cjs/plugins/grid/styles.js +1 -3
  37. package/dist/cjs/plugins/help-dialog/ui/styles.js +9 -11
  38. package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +5 -5
  39. package/dist/cjs/plugins/jira-issue/nodeviews/jira-issue.js +2 -4
  40. package/dist/cjs/plugins/layout/styles.js +1 -3
  41. package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +3 -5
  42. package/dist/cjs/plugins/media/styles.js +1 -3
  43. package/dist/cjs/plugins/media/ui/CaptionPlaceholder/index.js +1 -3
  44. package/dist/cjs/plugins/media/ui/Media/DropPlaceholder.js +2 -4
  45. package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +1 -3
  46. package/dist/cjs/plugins/mentions/styles.js +1 -3
  47. package/dist/cjs/plugins/mentions/ui/InviteItem/index.js +1 -3
  48. package/dist/cjs/plugins/mentions/ui/InviteItem/styles.js +2 -4
  49. package/dist/cjs/plugins/panel/styles.js +1 -3
  50. package/dist/cjs/plugins/placeholder/styles.js +1 -3
  51. package/dist/cjs/plugins/placeholder-text/styles.js +1 -3
  52. package/dist/cjs/plugins/rule/styles.js +1 -3
  53. package/dist/cjs/plugins/status/ui/statusPicker.js +1 -3
  54. package/dist/cjs/plugins/tasks-and-decisions/styles.js +1 -3
  55. package/dist/cjs/plugins/text-color/commands/change-color.js +1 -2
  56. package/dist/cjs/plugins/text-color/pm-plugins/main.js +1 -1
  57. package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +2 -10
  58. package/dist/cjs/plugins/type-ahead/pm-plugins/decorations.js +1 -3
  59. package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +1 -3
  60. package/dist/cjs/plugins/type-ahead/ui/TypeAheadListItem.js +7 -9
  61. package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +1 -3
  62. package/dist/cjs/plugins/unsupported-content/styles.js +1 -3
  63. package/dist/cjs/ui/Addon/Dropdown/styles.js +1 -3
  64. package/dist/cjs/ui/Addon/DropdownItem/styles.js +1 -3
  65. package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -3
  66. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +2 -4
  67. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +19 -1
  68. package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +2 -4
  69. package/dist/cjs/ui/ChromeCollapsed/styles.js +1 -3
  70. package/dist/cjs/ui/ColorPalette/Palettes/textColorPalette.js +0 -6
  71. package/dist/cjs/ui/ColorPickerButton/index.js +3 -8
  72. package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -3
  73. package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +1 -3
  74. package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +1 -3
  75. package/dist/cjs/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -3
  76. package/dist/cjs/ui/ConfigPanel/Header.js +2 -4
  77. package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +1 -3
  78. package/dist/cjs/ui/ContentStyles/index.js +1 -3
  79. package/dist/cjs/ui/ContextPanel/index.js +1 -3
  80. package/dist/cjs/ui/ElementBrowser/InsertMenu.js +3 -5
  81. package/dist/cjs/ui/ElementBrowser/ModalElementBrowser.js +2 -4
  82. package/dist/cjs/ui/ElementBrowser/components/CategoryList.js +2 -4
  83. package/dist/cjs/ui/ElementBrowser/components/ElementList/ElementList.js +2 -4
  84. package/dist/cjs/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -3
  85. package/dist/cjs/ui/ElementBrowser/components/ElementSearch.js +1 -3
  86. package/dist/cjs/ui/FloatingToolbar/styles.js +1 -3
  87. package/dist/cjs/ui/LinkSearch/LinkSearchListItem.js +3 -5
  88. package/dist/cjs/ui/PanelTextInput/styles.js +1 -3
  89. package/dist/cjs/ui/ToolbarArrowKeyNavigationProvider/index.js +27 -2
  90. package/dist/cjs/ui/ToolbarFeedback/styles.js +3 -5
  91. package/dist/cjs/ui/WithFlash/index.js +2 -4
  92. package/dist/cjs/ui/styles.js +2 -4
  93. package/dist/cjs/utils/performance/instrumented-plugin.js +6 -3
  94. package/dist/cjs/utils/performance/safer-transactions.js +8 -2
  95. package/dist/cjs/version-wrapper.js +1 -1
  96. package/dist/cjs/version.json +1 -1
  97. package/dist/es2019/create-editor/ErrorBoundary.js +3 -1
  98. package/dist/es2019/create-editor/ReactEditorView.js +3 -2
  99. package/dist/es2019/create-editor/create-editor.js +3 -1
  100. package/dist/es2019/editor.js +7 -0
  101. package/dist/es2019/labs/next/full-page.js +2 -3
  102. package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -2
  103. package/dist/es2019/plugins/block-type/commands/delete-and-move-cursor.js +63 -0
  104. package/dist/es2019/plugins/block-type/commands/index.js +2 -1
  105. package/dist/es2019/plugins/block-type/pm-plugins/keymap.js +7 -4
  106. package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -3
  107. package/dist/es2019/plugins/breakout/ui/LayoutButton.js +4 -5
  108. package/dist/es2019/plugins/card/styles.js +6 -7
  109. package/dist/es2019/plugins/code-block/styles.js +8 -9
  110. package/dist/es2019/plugins/collab-edit/styles.js +2 -3
  111. package/dist/es2019/plugins/collab-edit/ui/styles.js +3 -4
  112. package/dist/es2019/plugins/date/styles.js +1 -2
  113. package/dist/es2019/plugins/date/ui/DatePicker/index.js +2 -3
  114. package/dist/es2019/plugins/expand/ui/styles.js +14 -15
  115. package/dist/es2019/plugins/extension/ui/Extension/Extension/styles.js +4 -5
  116. package/dist/es2019/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -2
  117. package/dist/es2019/plugins/extension/ui/Extension/styles.js +6 -7
  118. package/dist/es2019/plugins/extension/ui/SaveIndicator/SaveIndicator.js +3 -4
  119. package/dist/es2019/plugins/extension/ui/styles.js +2 -3
  120. package/dist/es2019/plugins/fake-text-cursor/styles.js +2 -3
  121. package/dist/es2019/plugins/feature-flags-context/feature-flags-from-props.js +12 -12
  122. package/dist/es2019/plugins/find-replace/ui/styles.js +2 -3
  123. package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +43 -13
  124. package/dist/es2019/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -2
  125. package/dist/es2019/plugins/floating-toolbar/ui/ScrollButtons.js +1 -2
  126. package/dist/es2019/plugins/floating-toolbar/ui/Separator.js +1 -2
  127. package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +12 -21
  128. package/dist/es2019/plugins/floating-toolbar/ui/styles.js +10 -11
  129. package/dist/es2019/plugins/grid/styles.js +2 -3
  130. package/dist/es2019/plugins/help-dialog/ui/styles.js +11 -12
  131. package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +6 -5
  132. package/dist/es2019/plugins/jira-issue/nodeviews/jira-issue.js +5 -6
  133. package/dist/es2019/plugins/layout/styles.js +4 -5
  134. package/dist/es2019/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +4 -5
  135. package/dist/es2019/plugins/media/styles.js +10 -11
  136. package/dist/es2019/plugins/media/ui/CaptionPlaceholder/index.js +1 -2
  137. package/dist/es2019/plugins/media/ui/Media/DropPlaceholder.js +3 -4
  138. package/dist/es2019/plugins/media/ui/MediaLinkingToolbar.js +1 -2
  139. package/dist/es2019/plugins/mentions/styles.js +4 -5
  140. package/dist/es2019/plugins/mentions/ui/InviteItem/index.js +1 -2
  141. package/dist/es2019/plugins/mentions/ui/InviteItem/styles.js +2 -3
  142. package/dist/es2019/plugins/panel/styles.js +4 -5
  143. package/dist/es2019/plugins/placeholder/styles.js +1 -2
  144. package/dist/es2019/plugins/placeholder-text/styles.js +4 -5
  145. package/dist/es2019/plugins/rule/styles.js +1 -2
  146. package/dist/es2019/plugins/status/ui/statusPicker.js +2 -3
  147. package/dist/es2019/plugins/tasks-and-decisions/styles.js +2 -3
  148. package/dist/es2019/plugins/text-color/commands/change-color.js +1 -2
  149. package/dist/es2019/plugins/text-color/pm-plugins/main.js +2 -2
  150. package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/index.js +2 -6
  151. package/dist/es2019/plugins/type-ahead/pm-plugins/decorations.js +1 -2
  152. package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +1 -2
  153. package/dist/es2019/plugins/type-ahead/ui/TypeAheadListItem.js +8 -9
  154. package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +2 -3
  155. package/dist/es2019/plugins/unsupported-content/styles.js +2 -3
  156. package/dist/es2019/ui/Addon/Dropdown/styles.js +2 -3
  157. package/dist/es2019/ui/Addon/DropdownItem/styles.js +2 -3
  158. package/dist/es2019/ui/Appearance/Comment/Comment.js +2 -3
  159. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +2 -3
  160. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +19 -1
  161. package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +2 -3
  162. package/dist/es2019/ui/ChromeCollapsed/styles.js +5 -6
  163. package/dist/es2019/ui/ColorPalette/Palettes/textColorPalette.js +1 -1
  164. package/dist/es2019/ui/ColorPickerButton/index.js +20 -9
  165. package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -2
  166. package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +1 -2
  167. package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +1 -2
  168. package/dist/es2019/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -2
  169. package/dist/es2019/ui/ConfigPanel/Header.js +2 -3
  170. package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +2 -3
  171. package/dist/es2019/ui/ContentStyles/index.js +1 -2
  172. package/dist/es2019/ui/ContextPanel/index.js +1 -2
  173. package/dist/es2019/ui/ElementBrowser/InsertMenu.js +4 -5
  174. package/dist/es2019/ui/ElementBrowser/ModalElementBrowser.js +2 -3
  175. package/dist/es2019/ui/ElementBrowser/components/CategoryList.js +2 -3
  176. package/dist/es2019/ui/ElementBrowser/components/ElementList/ElementList.js +2 -3
  177. package/dist/es2019/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -2
  178. package/dist/es2019/ui/ElementBrowser/components/ElementSearch.js +1 -2
  179. package/dist/es2019/ui/FloatingToolbar/styles.js +2 -3
  180. package/dist/es2019/ui/LinkSearch/LinkSearchListItem.js +3 -4
  181. package/dist/es2019/ui/PanelTextInput/styles.js +3 -4
  182. package/dist/es2019/ui/ToolbarArrowKeyNavigationProvider/index.js +27 -2
  183. package/dist/es2019/ui/ToolbarFeedback/styles.js +4 -5
  184. package/dist/es2019/ui/WithFlash/index.js +3 -4
  185. package/dist/es2019/ui/styles.js +3 -4
  186. package/dist/es2019/utils/performance/instrumented-plugin.js +5 -3
  187. package/dist/es2019/utils/performance/safer-transactions.js +8 -2
  188. package/dist/es2019/version-wrapper.js +1 -1
  189. package/dist/es2019/version.json +1 -1
  190. package/dist/esm/create-editor/ErrorBoundary.js +3 -1
  191. package/dist/esm/create-editor/ReactEditorView.js +3 -2
  192. package/dist/esm/create-editor/create-editor.js +3 -1
  193. package/dist/esm/editor.js +7 -0
  194. package/dist/esm/labs/next/full-page.js +2 -3
  195. package/dist/esm/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -2
  196. package/dist/esm/plugins/block-type/commands/delete-and-move-cursor.js +58 -0
  197. package/dist/esm/plugins/block-type/commands/index.js +2 -1
  198. package/dist/esm/plugins/block-type/pm-plugins/keymap.js +7 -4
  199. package/dist/esm/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -3
  200. package/dist/esm/plugins/breakout/ui/LayoutButton.js +1 -2
  201. package/dist/esm/plugins/card/styles.js +1 -2
  202. package/dist/esm/plugins/code-block/styles.js +2 -3
  203. package/dist/esm/plugins/collab-edit/styles.js +2 -3
  204. package/dist/esm/plugins/collab-edit/ui/styles.js +2 -3
  205. package/dist/esm/plugins/date/styles.js +1 -2
  206. package/dist/esm/plugins/date/ui/DatePicker/index.js +1 -2
  207. package/dist/esm/plugins/expand/ui/styles.js +14 -15
  208. package/dist/esm/plugins/extension/ui/Extension/Extension/styles.js +4 -5
  209. package/dist/esm/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -2
  210. package/dist/esm/plugins/extension/ui/Extension/styles.js +5 -6
  211. package/dist/esm/plugins/extension/ui/SaveIndicator/SaveIndicator.js +2 -3
  212. package/dist/esm/plugins/extension/ui/styles.js +1 -2
  213. package/dist/esm/plugins/fake-text-cursor/styles.js +1 -2
  214. package/dist/esm/plugins/feature-flags-context/feature-flags-from-props.js +12 -12
  215. package/dist/esm/plugins/find-replace/ui/styles.js +2 -3
  216. package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +41 -14
  217. package/dist/esm/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -2
  218. package/dist/esm/plugins/floating-toolbar/ui/ScrollButtons.js +1 -2
  219. package/dist/esm/plugins/floating-toolbar/ui/Separator.js +1 -2
  220. package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +12 -21
  221. package/dist/esm/plugins/floating-toolbar/ui/styles.js +10 -11
  222. package/dist/esm/plugins/grid/styles.js +1 -2
  223. package/dist/esm/plugins/help-dialog/ui/styles.js +9 -10
  224. package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +5 -4
  225. package/dist/esm/plugins/jira-issue/nodeviews/jira-issue.js +2 -3
  226. package/dist/esm/plugins/layout/styles.js +1 -2
  227. package/dist/esm/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +3 -4
  228. package/dist/esm/plugins/media/styles.js +1 -2
  229. package/dist/esm/plugins/media/ui/CaptionPlaceholder/index.js +1 -2
  230. package/dist/esm/plugins/media/ui/Media/DropPlaceholder.js +2 -3
  231. package/dist/esm/plugins/media/ui/MediaLinkingToolbar.js +1 -2
  232. package/dist/esm/plugins/mentions/styles.js +1 -2
  233. package/dist/esm/plugins/mentions/ui/InviteItem/index.js +1 -2
  234. package/dist/esm/plugins/mentions/ui/InviteItem/styles.js +2 -3
  235. package/dist/esm/plugins/panel/styles.js +1 -2
  236. package/dist/esm/plugins/placeholder/styles.js +1 -2
  237. package/dist/esm/plugins/placeholder-text/styles.js +1 -2
  238. package/dist/esm/plugins/rule/styles.js +1 -2
  239. package/dist/esm/plugins/status/ui/statusPicker.js +1 -2
  240. package/dist/esm/plugins/tasks-and-decisions/styles.js +1 -2
  241. package/dist/esm/plugins/text-color/commands/change-color.js +1 -2
  242. package/dist/esm/plugins/text-color/pm-plugins/main.js +2 -2
  243. package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +2 -9
  244. package/dist/esm/plugins/type-ahead/pm-plugins/decorations.js +1 -2
  245. package/dist/esm/plugins/type-ahead/ui/InputQuery.js +1 -2
  246. package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +7 -8
  247. package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +1 -2
  248. package/dist/esm/plugins/unsupported-content/styles.js +1 -2
  249. package/dist/esm/ui/Addon/Dropdown/styles.js +1 -2
  250. package/dist/esm/ui/Addon/DropdownItem/styles.js +1 -2
  251. package/dist/esm/ui/Appearance/Comment/Comment.js +1 -2
  252. package/dist/esm/ui/Appearance/Comment/Toolbar.js +2 -3
  253. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +19 -1
  254. package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +2 -3
  255. package/dist/esm/ui/ChromeCollapsed/styles.js +1 -2
  256. package/dist/esm/ui/ColorPalette/Palettes/textColorPalette.js +1 -1
  257. package/dist/esm/ui/ColorPickerButton/index.js +5 -10
  258. package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -2
  259. package/dist/esm/ui/ConfigPanel/Fields/Expand.js +1 -2
  260. package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +1 -2
  261. package/dist/esm/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -2
  262. package/dist/esm/ui/ConfigPanel/Header.js +2 -3
  263. package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +1 -2
  264. package/dist/esm/ui/ContentStyles/index.js +1 -2
  265. package/dist/esm/ui/ContextPanel/index.js +1 -2
  266. package/dist/esm/ui/ElementBrowser/InsertMenu.js +3 -4
  267. package/dist/esm/ui/ElementBrowser/ModalElementBrowser.js +2 -3
  268. package/dist/esm/ui/ElementBrowser/components/CategoryList.js +2 -3
  269. package/dist/esm/ui/ElementBrowser/components/ElementList/ElementList.js +2 -3
  270. package/dist/esm/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -2
  271. package/dist/esm/ui/ElementBrowser/components/ElementSearch.js +1 -2
  272. package/dist/esm/ui/FloatingToolbar/styles.js +1 -2
  273. package/dist/esm/ui/LinkSearch/LinkSearchListItem.js +3 -4
  274. package/dist/esm/ui/PanelTextInput/styles.js +2 -3
  275. package/dist/esm/ui/ToolbarArrowKeyNavigationProvider/index.js +27 -2
  276. package/dist/esm/ui/ToolbarFeedback/styles.js +3 -4
  277. package/dist/esm/ui/WithFlash/index.js +2 -3
  278. package/dist/esm/ui/styles.js +2 -3
  279. package/dist/esm/utils/performance/instrumented-plugin.js +6 -3
  280. package/dist/esm/utils/performance/safer-transactions.js +8 -2
  281. package/dist/esm/version-wrapper.js +1 -1
  282. package/dist/esm/version.json +1 -1
  283. package/dist/types/plugins/block-type/commands/delete-and-move-cursor.d.ts +12 -0
  284. package/dist/types/plugins/block-type/commands/index.d.ts +1 -0
  285. package/dist/types/plugins/floating-toolbar/ui/DropdownMenu.d.ts +1 -0
  286. package/dist/types/plugins/text-color/pm-plugins/main.d.ts +1 -1
  287. package/dist/types/ui/ColorPalette/Palettes/textColorPalette.d.ts +1 -1
  288. package/dist/types/ui/ToolbarArrowKeyNavigationProvider/index.d.ts +2 -1
  289. package/dist/types/utils/performance/instrumented-plugin.d.ts +1 -0
  290. package/dist/types/utils/performance/safer-transactions.d.ts +2 -1
  291. package/package.json +10 -11
  292. package/report.api.md +18 -2
@@ -106,7 +106,8 @@ export function createPMPlugins(config) {
106
106
  _performanceTracking$2 = performanceTracking.transactionTracking,
107
107
  transactionTracking = _performanceTracking$2 === void 0 ? TRACKING_DEFAULT : _performanceTracking$2;
108
108
  var saferDispatchedTransactions = featureFlags.saferDispatchedTransactions;
109
- var useInstrumentedPlugin = uiTracking.enabled || transactionTracking.enabled || saferDispatchedTransactions;
109
+ var saferDispatchedTransactionsAnalyticsOnly = featureFlags.saferDispatchedTransactionsAnalyticsOnly;
110
+ var useInstrumentedPlugin = uiTracking.enabled || transactionTracking.enabled || saferDispatchedTransactions || saferDispatchedTransactionsAnalyticsOnly;
110
111
 
111
112
  if (process.env.NODE_ENV === 'development' && transactionTracking.enabled && !transactionTracker) {
112
113
  // eslint-disable-next-line no-console
@@ -118,6 +119,7 @@ export function createPMPlugins(config) {
118
119
  uiTracking: uiTracking,
119
120
  transactionTracking: transactionTracking,
120
121
  saferDispatchedTransactions: saferDispatchedTransactions,
122
+ saferDispatchedTransactionsAnalyticsOnly: saferDispatchedTransactionsAnalyticsOnly,
121
123
  dispatchAnalyticsEvent: dispatchAnalyticsEvent
122
124
  }, transactionTracker);
123
125
  } : function (plugin) {
@@ -401,6 +401,8 @@ var Editor = /*#__PURE__*/function (_React$Component) {
401
401
  }, {
402
402
  key: "deprecationWarnings",
403
403
  value: function deprecationWarnings(props) {
404
+ var _props$allowTextColor;
405
+
404
406
  if (process.env.NODE_ENV === 'production') {
405
407
  return;
406
408
  }
@@ -433,6 +435,11 @@ var Editor = /*#__PURE__*/function (_React$Component) {
433
435
  // eslint-disable-next-line no-console
434
436
  console.warn("Advanced table options are deprecated (except isHeaderRowRequired) to continue using advanced table features use - <Editor allowTables={{ advanced: true }} /> [Will be changed in editor-core@".concat(nextVersion, "]"));
435
437
  }
438
+
439
+ if (props.hasOwnProperty('allowTextColor') && typeof props.allowTextColor !== 'boolean' && (props === null || props === void 0 ? void 0 : (_props$allowTextColor = props.allowTextColor) === null || _props$allowTextColor === void 0 ? void 0 : _props$allowTextColor.allowMoreTextColors) !== undefined) {
440
+ // eslint-disable-next-line no-console
441
+ console.warn("\"allowMoreTextColors\" field of \"allowTextColor\" property is deprecated. It will be removedin editor-core@".concat(nextVersion, ". The color palette now shows more colors by default."));
442
+ }
436
443
  }
437
444
  }, {
438
445
  key: "onEditorDestroyed",
@@ -9,7 +9,6 @@ import rafSchedule from 'raf-schd';
9
9
  import React from 'react';
10
10
  import { css, jsx } from '@emotion/react';
11
11
  import { N30 } from '@atlaskit/theme/colors';
12
- import { token } from '@atlaskit/tokens';
13
12
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
14
13
  import { BaseTheme } from '@atlaskit/editor-common/ui';
15
14
  import { akEditorMenuZIndex, akEditorToolbarKeylineHeight } from '@atlaskit/editor-shared-styles';
@@ -36,8 +35,8 @@ var editorContentArea = function editorContentArea(theme) {
36
35
  return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n line-height: 24px;\n height: 100%;\n width: 100%;\n max-width: ", "px;\n padding-top: 50px;\n margin: 0 auto;\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n padding-bottom: 55px;\n\n & .ProseMirror {\n flex-grow: 1;\n box-sizing: border-box;\n }\n\n && .ProseMirror {\n & > * {\n clear: both;\n }\n > p,\n > ul,\n > ol,\n > h1,\n > h2,\n > h3,\n > h4,\n > h5,\n > h6 {\n clear: none;\n }\n }\n ", ";\n"])), theme.layoutMaxWidth + GUTTER_PADDING * 2, tableFullPageEditorStyles);
37
36
  };
38
37
 
39
- var mainToolbar = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n box-shadow: 'none';\n\n transition: box-shadow 200ms;\n z-index: ", ";\n display: flex;\n height: 80px;\n flex-shrink: 0;\n background-color: ", ";\n\n & object {\n height: 0 !important;\n }\n"])), akEditorMenuZIndex, token('elevation.surface', 'white'));
40
- var mainToolbarWithKeyline = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", "\n box-shadow: 0 ", "px 0 0 ", "\n"])), mainToolbar, akEditorToolbarKeylineHeight, token('color.border', N30));
38
+ var mainToolbar = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n box-shadow: 'none';\n\n transition: box-shadow 200ms;\n z-index: ", ";\n display: flex;\n height: 80px;\n flex-shrink: 0;\n background-color: ", ";\n\n & object {\n height: 0 !important;\n }\n"])), akEditorMenuZIndex, "var(--ds-surface, white)");
39
+ var mainToolbarWithKeyline = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", "\n box-shadow: 0 ", "px 0 0 ", "\n"])), mainToolbar, akEditorToolbarKeylineHeight, "var(--ds-border, ".concat(N30, ")"));
41
40
  var mainToolbarCustomComponentsSlot = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-end;\n flex-grow: 1;\n"])));
42
41
  var sidebarArea = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n height: 100%;\n box-sizing: border-box;\n"])));
43
42
 
@@ -4,8 +4,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
4
4
 
5
5
  import { css } from '@emotion/react';
6
6
  import { N30 } from '@atlaskit/theme/colors';
7
- import { token } from '@atlaskit/tokens';
8
7
  export var triggerWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n"])));
9
- export var separator = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: ", ";\n width: 1px;\n height: 24px;\n display: inline-block;\n margin: 0 8px;\n"])), token('color.border', N30));
8
+ export var separator = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: ", ";\n width: 1px;\n height: 24px;\n display: inline-block;\n margin: 0 8px;\n"])), "var(--ds-border, ".concat(N30, ")"));
10
9
  export var wrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n div {\n display: flex;\n }\n"])));
11
10
  export var expandIconWrapper = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-left: -8px;\n"])));
@@ -0,0 +1,58 @@
1
+ import { Selection, TextSelection } from 'prosemirror-state';
2
+
3
+ // We should override default behaviour when selection spans node depths or
4
+ // ends at a node junction
5
+ var shouldMoveCursorAfterDelete = function shouldMoveCursorAfterDelete(state) {
6
+ var _state$selection = state.selection,
7
+ $from = _state$selection.$from,
8
+ $to = _state$selection.$to;
9
+ var nodeRange = $from.blockRange($to);
10
+
11
+ if (!nodeRange) {
12
+ return false;
13
+ }
14
+
15
+ var hasSameAncestor = $from.depth === $to.depth && $from.depth - 1 === nodeRange.depth;
16
+ var toPositionHasNodeAfter = !!$to.nodeAfter;
17
+
18
+ if (hasSameAncestor || toPositionHasNodeAfter) {
19
+ return false;
20
+ }
21
+
22
+ return true;
23
+ };
24
+ /**
25
+ * Fixes cursor position after delete for list/task in panel and table
26
+ *
27
+ * ED-13873 fixes a bug where after deleting a list the cursor would move
28
+ * to the cell to the right. Uses setSelection to position the cursor as expected after deleting.
29
+ *
30
+ * @param state EditorState<any>
31
+ * @param dispatch CommandDispatch
32
+ * @returns boolean
33
+ */
34
+
35
+
36
+ export var deleteAndMoveCursor = function deleteAndMoveCursor(state, dispatch) {
37
+ if (state.selection.empty || !(state.selection instanceof TextSelection)) {
38
+ return false;
39
+ }
40
+
41
+ if (!shouldMoveCursorAfterDelete(state)) {
42
+ return false;
43
+ }
44
+
45
+ var tr = state.tr;
46
+ tr.deleteSelection(); // Make sure the next position is not out of boundaries
47
+
48
+ var previousPosition = Math.min(Math.max(state.selection.$from.pos, 0), tr.doc.content.size); // Override default delete behaviour that moves the cursor to first suitable position after selection (postive bias).
49
+ // See. selectionToInsertionEnd. We will override behavior with negative bias (search for suitable cursor position backwards).
50
+
51
+ tr.setSelection(Selection.near(tr.doc.resolve(previousPosition), -1));
52
+
53
+ if (dispatch) {
54
+ dispatch(tr.scrollIntoView());
55
+ }
56
+
57
+ return true;
58
+ };
@@ -1,3 +1,4 @@
1
1
  export { cleanUpAtTheStartOfDocument, insertBlockType, insertBlockTypesWithAnalytics, setBlockType, setBlockTypeWithAnalytics, setHeading, setHeadingWithAnalytics, setNormalText, setNormalTextWithAnalytics } from './block-type';
2
2
  export { insertBlock } from './insert-block';
3
- export { isConvertableToCodeBlock, transformToCodeBlockAction } from './transform-to-code-block';
3
+ export { isConvertableToCodeBlock, transformToCodeBlockAction } from './transform-to-code-block';
4
+ export { deleteAndMoveCursor } from './delete-and-move-cursor';
@@ -1,12 +1,15 @@
1
1
  import { redo, undo } from 'prosemirror-history';
2
+ import { chainCommands } from 'prosemirror-commands';
2
3
  import * as keymaps from '../../../keymaps';
3
4
  import * as commands from '../../../commands';
4
5
  import * as blockTypes from '../types';
5
6
  import { keymap } from '../../../utils/keymap';
6
- import { cleanUpAtTheStartOfDocument, insertBlockTypesWithAnalytics } from '../commands';
7
+ import { cleanUpAtTheStartOfDocument, deleteAndMoveCursor, insertBlockTypesWithAnalytics } from '../commands';
7
8
  import { deleteEmptyParagraphAndMoveBlockUp } from '../../../utils/commands';
8
9
  import { INPUT_METHOD } from '../../analytics';
9
10
  import { isNodeAWrappingBlockNode } from '../utils';
11
+ var backspace = chainCommands(cleanUpAtTheStartOfDocument, deleteAndMoveCursor);
12
+ var del = chainCommands(deleteEmptyParagraphAndMoveBlockUp(isNodeAWrappingBlockNode), deleteAndMoveCursor);
10
13
  export default function keymapPlugin(schema, featureFlags) {
11
14
  var list = {};
12
15
  keymaps.bindKeymapWithCommand(keymaps.insertNewLine.common, commands.insertNewLineWithAnalytics, list);
@@ -14,9 +17,9 @@ export default function keymapPlugin(schema, featureFlags) {
14
17
  keymaps.bindKeymapWithCommand(keymaps.moveDown.common, commands.createNewParagraphBelow, list);
15
18
  keymaps.bindKeymapWithCommand(keymaps.findKeyMapForBrowser(keymaps.redo), redo, list);
16
19
  keymaps.bindKeymapWithCommand(keymaps.undo.common, undo, list);
17
- keymaps.bindKeymapWithCommand(keymaps.backspace.common, cleanUpAtTheStartOfDocument, list);
18
- keymaps.bindKeymapWithCommand(keymaps.deleteKey.common, deleteEmptyParagraphAndMoveBlockUp(isNodeAWrappingBlockNode), list);
19
- keymaps.bindKeymapWithCommand(keymaps.forwardDelete.mac, deleteEmptyParagraphAndMoveBlockUp(isNodeAWrappingBlockNode), list);
20
+ keymaps.bindKeymapWithCommand(keymaps.backspace.common, backspace, list);
21
+ keymaps.bindKeymapWithCommand(keymaps.deleteKey.common, del, list);
22
+ keymaps.bindKeymapWithCommand(keymaps.forwardDelete.mac, del, list);
20
23
 
21
24
  if (schema.nodes[blockTypes.BLOCK_QUOTE.nodeName]) {
22
25
  keymaps.bindKeymapWithCommand(keymaps.findShortcutByKeymap(keymaps.toggleBlockQuote), insertBlockTypesWithAnalytics(blockTypes.BLOCK_QUOTE.name, INPUT_METHOD.KEYBOARD), list);
@@ -7,13 +7,12 @@ import { css } from '@emotion/react';
7
7
  import { N400 } from '@atlaskit/theme/colors';
8
8
  import { headingsSharedStyles } from '@atlaskit/editor-common/styles';
9
9
  import { shortcutStyle } from '../../../../ui/styles';
10
- import { token } from '@atlaskit/tokens';
11
10
  export var blockTypeMenuItemStyle = function blockTypeMenuItemStyle(tagName, selected) {
12
11
  // TEMP FIX: See https://product-fabric.atlassian.net/browse/ED-13878
13
- var selectedStyle = selected ? "".concat(tagName, " { color: ").concat(token('color.text', 'white'), " !important; }") : '';
12
+ var selectedStyle = selected ? "".concat(tagName, " { color: ", "var(--ds-text, white)", " !important; }") : '';
14
13
  return function (themeProps) {
15
14
  return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", ";\n > {\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin-top: 0;\n }\n }\n ", ";\n "])), headingsSharedStyles(themeProps), selectedStyle);
16
15
  };
17
16
  };
18
17
  export var keyboardShortcut = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n margin-left: 16px;\n"])), shortcutStyle);
19
- export var keyboardShortcutSelect = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n"])), token('color.icon', N400));
18
+ export var keyboardShortcutSelect = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n"])), "var(--ds-icon, ".concat(N400, ")"));
@@ -32,9 +32,8 @@ import { isBreakoutMarkAllowed } from '../utils/is-breakout-mark-allowed';
32
32
  import { getPluginState } from '../plugin-key';
33
33
  import { NodeSelection } from 'prosemirror-state';
34
34
  import { isSupportedNodeForBreakout } from '../utils/is-supported-node';
35
- import { token } from '@atlaskit/tokens';
36
35
  import { layers } from '@atlaskit/theme/constants';
37
- var toolbarButtonWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n && button {\n background: ", ";\n color: ", ";\n :hover {\n background: ", ";\n color: ", " !important;\n }\n }\n"])), token('color.background.neutral', N20A), token('color.icon', N300), token('color.background.neutral.hovered', B300), token('color.icon', 'white'));
36
+ var toolbarButtonWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n && button {\n background: ", ";\n color: ", ";\n :hover {\n background: ", ";\n color: ", " !important;\n }\n }\n"])), "var(--ds-background-neutral, ".concat(N20A, ")"), "var(--ds-icon, ".concat(N300, ")"), "var(--ds-background-neutral-hovered, ".concat(B300, ")"), "var(--ds-icon, white)");
38
37
  var BREAKOUT_MODE = {
39
38
  FULL_WIDTH: 'full-width',
40
39
  CENTER: 'center',
@@ -7,6 +7,5 @@ import { SelectionStyle, getSelectionStyles, akEditorDeleteBorder, akEditorDelet
7
7
  import { N20 } from '@atlaskit/theme/colors';
8
8
  import { SmartCardSharedCssClassName } from '@atlaskit/editor-common/styles';
9
9
  import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
10
- import { token } from '@atlaskit/tokens';
11
10
  export var FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
12
- export var smartCardStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n max-width: calc(100% - 20px);\n vertical-align: top;\n word-break: break-all;\n\n .card {\n padding-left: 2px;\n padding-right: 2px;\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n margin-bottom: -0.5em;\n\n .", " > a:focus {\n ", "\n }\n }\n\n &.", "\n .", "\n > a {\n ", "\n }\n .", " > a {\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 1;\n position: relative;\n /* EDM-1717: box-shadow Safari fix end */\n }\n\n &.danger {\n .", " > a {\n box-shadow: 0 0 0 1px\n ", ";\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 2;\n /* EDM-1717: box-shadow Safari fix end */\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n }\n\n &.", "\n .", "\n > div {\n ", "\n }\n\n &.danger {\n .", " > div {\n box-shadow: 0 0 0 1px\n ", " !important;\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &::after {\n transition: box-shadow 0s;\n }\n }\n &.", "\n .", "\n > div {\n ", "\n }\n\n &.", "\n .", "\n > div::after {\n ", "\n }\n\n &.danger {\n .media-card-frame::after {\n box-shadow: 0 0 0 1px\n ", " !important;\n background: ", " !important;\n }\n .richMedia-resize-handle-right::after,\n .richMedia-resize-handle-left::after {\n background: ", ";\n }\n }\n }\n\n .", " {\n padding: 0;\n }\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, SmartCardSharedCssClassName.LOADER_WRAPPER, token('color.border.danger', akEditorDeleteBorder), SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, token('color.background.neutral.subtle.hovered', N20), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, token('color.border.danger', akEditorDeleteBorder), SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), token('color.border.danger', akEditorDeleteBorder), token('color.background.danger', akEditorDeleteBackground), token('color.border.danger', akEditorDeleteBorder), FLOATING_TOOLBAR_LINKPICKER_CLASSNAME);
11
+ export var smartCardStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n max-width: calc(100% - 20px);\n vertical-align: top;\n word-break: break-all;\n\n .card {\n padding-left: 2px;\n padding-right: 2px;\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n margin-bottom: -0.5em;\n\n .", " > a:focus {\n ", "\n }\n }\n\n &.", "\n .", "\n > a {\n ", "\n }\n .", " > a {\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 1;\n position: relative;\n /* EDM-1717: box-shadow Safari fix end */\n }\n\n &.danger {\n .", " > a {\n box-shadow: 0 0 0 1px\n ", ";\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 2;\n /* EDM-1717: box-shadow Safari fix end */\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n }\n\n &.", "\n .", "\n > div {\n ", "\n }\n\n &.danger {\n .", " > div {\n box-shadow: 0 0 0 1px\n ", " !important;\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &::after {\n transition: box-shadow 0s;\n }\n }\n &.", "\n .", "\n > div {\n ", "\n }\n\n &.", "\n .", "\n > div::after {\n ", "\n }\n\n &.danger {\n .media-card-frame::after {\n box-shadow: 0 0 0 1px\n ", " !important;\n background: ", " !important;\n }\n .richMedia-resize-handle-right::after,\n .richMedia-resize-handle-left::after {\n background: ", ";\n }\n }\n }\n\n .", " {\n padding: 0;\n }\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-background-neutral-subtle-hovered, ".concat(N20, ")"), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), FLOATING_TOOLBAR_LINKPICKER_CLASSNAME);
@@ -5,14 +5,13 @@ var _templateObject, _templateObject2;
5
5
  import { css } from '@emotion/react';
6
6
  import { R75 } from '@atlaskit/theme/colors';
7
7
  import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorDeleteIconColor, SelectionStyle, getSelectionStyles, akEditorSelectedNodeClassName, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
8
- import { token } from '@atlaskit/tokens';
9
8
  import { codeBlockClassNames } from './ui/class-names';
10
9
  import { codeBlockSharedStyles } from '@atlaskit/editor-common/styles';
11
10
 
12
11
  var GutterDangerOverlay = function GutterDangerOverlay() {
13
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &::after {\n height: 100%;\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n width: 24px;\n background-color: ", ";\n }\n"])), token('color.blanket.danger', 'none'));
12
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &::after {\n height: 100%;\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n width: 24px;\n background-color: ", ";\n }\n"])), "var(--ds-blanket-danger, none)");
14
13
  };
15
14
 
16
15
  export var codeBlockStyles = function codeBlockStyles(props) {
17
- return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .ProseMirror {\n ", "\n }\n\n .ProseMirror li {\n /* if same list item has multiple code blocks we need top margin for all but first */\n > .code-block {\n margin: ", " 0 0 0;\n }\n > .code-block:first-child,\n > .ProseMirror-gapcursor:first-child + .code-block {\n margin-top: 0;\n }\n\n > div:last-of-type.code-block {\n margin-bottom: ", ";\n }\n }\n\n .ProseMirror .code-block.", ":not(.danger) {\n ", "\n }\n\n /* Danger when top level node */\n .ProseMirror .danger.code-block {\n box-shadow: 0 0 0 ", "px\n ", ";\n\n .", " {\n background-color: ", ";\n color: ", ";\n ", ";\n }\n\n .", " {\n background-color: ", ";\n }\n }\n\n /* Danger when nested node */\n .ProseMirror .danger .code-block {\n .", " {\n background-color: ", ";\n color: ", ";\n ", ";\n }\n\n .", " {\n background-color: ", ";\n }\n }\n"])), codeBlockSharedStyles(props), blockNodesVerticalMargin, blockNodesVerticalMargin, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]), akEditorSelectedBorderSize, token('color.border.danger', akEditorDeleteBorder), codeBlockClassNames.gutter, token('color.background.danger', R75), token('color.text.danger', akEditorDeleteIconColor), GutterDangerOverlay(), codeBlockClassNames.content, token('color.blanket.danger', akEditorDeleteBackground), codeBlockClassNames.gutter, token('color.background.danger', 'rgba(255, 143, 115, 0.5)'), token('color.text.danger', akEditorDeleteIconColor), GutterDangerOverlay(), codeBlockClassNames.content, token('color.blanket.danger', 'rgba(255, 189, 173, 0.5)'));
16
+ return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .ProseMirror {\n ", "\n }\n\n .ProseMirror li {\n /* if same list item has multiple code blocks we need top margin for all but first */\n > .code-block {\n margin: ", " 0 0 0;\n }\n > .code-block:first-child,\n > .ProseMirror-gapcursor:first-child + .code-block {\n margin-top: 0;\n }\n\n > div:last-of-type.code-block {\n margin-bottom: ", ";\n }\n }\n\n .ProseMirror .code-block.", ":not(.danger) {\n ", "\n }\n\n /* Danger when top level node */\n .ProseMirror .danger.code-block {\n box-shadow: 0 0 0 ", "px\n ", ";\n\n .", " {\n background-color: ", ";\n color: ", ";\n ", ";\n }\n\n .", " {\n background-color: ", ";\n }\n }\n\n /* Danger when nested node */\n .ProseMirror .danger .code-block {\n .", " {\n background-color: ", ";\n color: ", ";\n ", ";\n }\n\n .", " {\n background-color: ", ";\n }\n }\n"])), codeBlockSharedStyles(props), blockNodesVerticalMargin, blockNodesVerticalMargin, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]), akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), codeBlockClassNames.gutter, "var(--ds-background-danger, ".concat(R75, ")"), "var(--ds-text-danger, ".concat(akEditorDeleteIconColor, ")"), GutterDangerOverlay(), codeBlockClassNames.content, "var(--ds-blanket-danger, ".concat(akEditorDeleteBackground, ")"), codeBlockClassNames.gutter, "var(--ds-background-danger, rgba(255, 143, 115, 0.5))", "var(--ds-text-danger, ".concat(akEditorDeleteIconColor, ")"), GutterDangerOverlay(), codeBlockClassNames.content, "var(--ds-blanket-danger, rgba(255, 189, 173, 0.5))");
18
17
  };
@@ -6,12 +6,11 @@ import { css } from '@emotion/react';
6
6
  import { TELEPOINTER_DIM_CLASS } from './plugin-state';
7
7
  import { colors } from './utils';
8
8
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
9
- import { token } from '@atlaskit/tokens';
10
9
 
11
10
  var telepointerColorStyle = function telepointerColorStyle(color, index) {
12
- return "\n &.color-".concat(index, " {\n background-color: ").concat(color.selection, ";\n &::after {\n background-color: ").concat(color.solid, ";\n color: ").concat(token('color.text.inverse', '#fff'), ";\n border-color: ").concat(color.solid, ";\n }\n }\n");
11
+ return "\n &.color-".concat(index, " {\n background-color: ").concat(color.selection, ";\n &::after {\n background-color: ").concat(color.solid, ";\n color: ", "var(--ds-text-inverse, #fff)", ";\n border-color: ").concat(color.solid, ";\n }\n }\n");
13
12
  };
14
13
 
15
- export var telepointerStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror .telepointer {\n position: relative;\n transition: opacity 200ms;\n\n &.telepointer-selection {\n line-height: 1.2;\n pointer-events: none;\n user-select: none;\n }\n\n &.telepointer-selection-badge::after {\n content: attr(data-initial);\n position: absolute;\n display: block;\n top: -14px;\n font-size: ", ";\n padding: 2px;\n color: ", ";\n left: -1px;\n border-radius: 2px 2px 2px 0;\n line-height: initial;\n }\n\n &.", " {\n opacity: 0.2;\n }\n\n ", ";\n }\n"])), relativeFontSizeToBase16(9), token('color.text.inverse', 'white'), TELEPOINTER_DIM_CLASS, colors.map(function (color, index) {
14
+ export var telepointerStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror .telepointer {\n position: relative;\n transition: opacity 200ms;\n\n &.telepointer-selection {\n line-height: 1.2;\n pointer-events: none;\n user-select: none;\n }\n\n &.telepointer-selection-badge::after {\n content: attr(data-initial);\n position: absolute;\n display: block;\n top: -14px;\n font-size: ", ";\n padding: 2px;\n color: ", ";\n left: -1px;\n border-radius: 2px 2px 2px 0;\n line-height: initial;\n }\n\n &.", " {\n opacity: 0.2;\n }\n\n ", ";\n }\n"])), relativeFontSizeToBase16(9), "var(--ds-text-inverse, white)", TELEPOINTER_DIM_CLASS, colors.map(function (color, index) {
16
15
  return telepointerColorStyle(color, index);
17
16
  }));
@@ -6,9 +6,8 @@ import { css } from '@emotion/react';
6
6
  import { gridSize } from '@atlaskit/theme/constants';
7
7
  import { N20 } from '@atlaskit/theme/colors';
8
8
  import { akEditorSmallZIndex, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
9
- import { token } from '@atlaskit/tokens';
10
- export var inviteTeamWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: 50%;\n min-width: ", "px;\n margin-left: -", "px;\n"])), token('color.background.neutral', N20), gridSize() * 4, gridSize() / 2);
9
+ export var inviteTeamWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: 50%;\n min-width: ", "px;\n margin-left: -", "px;\n"])), "var(--ds-background-neutral, ".concat(N20, ")"), gridSize() * 4, gridSize() / 2);
11
10
  export var avatarContainer = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-right: ", "px;\n display: flex;\n align-items: center;\n\n // ED-13102: This is to override list styles that come from the\n // .wiki-content class in Confluence that should not apply within\n // the toolbar. Has to be extra specific to override.\n && > ul {\n list-style-type: none;\n }\n\n div:last-child button.invite-to-edit {\n border-radius: 50%;\n height: 32px;\n width: 32px;\n padding: 2px;\n }\n"])), gridSize());
12
11
  export var badge = function badge(color) {
13
- return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: block;\n position: absolute;\n right: 1px;\n bottom: 1px;\n width: 13px;\n height: 13px;\n z-index: ", ";\n border-radius: 3px;\n background: ", ";\n color: ", ";\n font-size: ", ";\n line-height: 0;\n padding-top: 7px;\n text-align: center;\n box-shadow: 0 0 1px ", ";\n box-sizing: border-box;\n"])), akEditorSmallZIndex, color, token('color.text.inverse', '#fff'), relativeFontSizeToBase16(9), token('color.border.inverse', '#fff'));
12
+ return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: block;\n position: absolute;\n right: 1px;\n bottom: 1px;\n width: 13px;\n height: 13px;\n z-index: ", ";\n border-radius: 3px;\n background: ", ";\n color: ", ";\n font-size: ", ";\n line-height: 0;\n padding-top: 7px;\n text-align: center;\n box-shadow: 0 0 1px ", ";\n box-sizing: border-box;\n"])), akEditorSmallZIndex, color, "var(--ds-text-inverse, #fff)", relativeFontSizeToBase16(9), "var(--ds-border-inverse, #fff)");
14
13
  };
@@ -4,6 +4,5 @@ var _templateObject;
4
4
 
5
5
  import { css } from '@emotion/react';
6
6
  import { DateSharedCssClassName } from '@atlaskit/editor-common/styles';
7
- import { token } from '@atlaskit/tokens';
8
7
  import { SelectionStyle, getSelectionStyles, akEditorSelectedBorderSize, akEditorDeleteBorder, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
9
- export var dateStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n .", " {\n line-height: initial;\n cursor: pointer;\n }\n\n &.", " {\n .", " > span {\n ", "\n }\n }\n }\n\n .danger {\n .", ".", "\n .", "\n > span {\n box-shadow: 0 0 0 ", "px\n ", ";\n }\n }\n"])), DateSharedCssClassName.DATE_CONTAINER, DateSharedCssClassName.DATE_WRAPPER, akEditorSelectedNodeClassName, DateSharedCssClassName.DATE_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), DateSharedCssClassName.DATE_CONTAINER, akEditorSelectedNodeClassName, DateSharedCssClassName.DATE_WRAPPER, akEditorSelectedBorderSize, token('color.border.danger', akEditorDeleteBorder));
8
+ export var dateStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n .", " {\n line-height: initial;\n cursor: pointer;\n }\n\n &.", " {\n .", " > span {\n ", "\n }\n }\n }\n\n .danger {\n .", ".", "\n .", "\n > span {\n box-shadow: 0 0 0 ", "px\n ", ";\n }\n }\n"])), DateSharedCssClassName.DATE_CONTAINER, DateSharedCssClassName.DATE_WRAPPER, akEditorSelectedNodeClassName, DateSharedCssClassName.DATE_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), DateSharedCssClassName.DATE_CONTAINER, akEditorSelectedNodeClassName, DateSharedCssClassName.DATE_WRAPPER, akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"));
@@ -23,13 +23,12 @@ import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
23
23
  import Calendar from '@atlaskit/calendar';
24
24
  import { borderRadius } from '@atlaskit/theme/constants';
25
25
  import { N60A, N0 } from '@atlaskit/theme/colors';
26
- import { token } from '@atlaskit/tokens';
27
26
  import withOuterListeners from '../../../../ui/with-outer-listeners';
28
27
  var PopupWithListeners = withOuterListeners(Popup);
29
28
  import { INPUT_METHOD } from '../../../analytics/types/enums';
30
29
  import { injectIntl } from 'react-intl-next';
31
30
  import DatePickerInput from './date-picker-input';
32
- var popupContentWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 2px;\n border-radius: ", "px;\n box-shadow: ", ";\n background-color: ", ";\n"])), borderRadius(), token('elevation.shadow.overlay', "0 4px 8px -2px ".concat(N60A, ", 0 0 1px ").concat(N60A)), token('elevation.surface.overlay', N0));
31
+ var popupContentWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 2px;\n border-radius: ", "px;\n box-shadow: ", ";\n background-color: ", ";\n"])), borderRadius(), "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N60A, ", 0 0 1px ").concat(N60A), ")"), "var(--ds-surface-overlay, ".concat(N0, ")"));
33
32
 
34
33
  var DatePicker = /*#__PURE__*/function (_React$Component) {
35
34
  _inherits(DatePicker, _React$Component);
@@ -6,41 +6,40 @@ import { css } from '@emotion/react';
6
6
  import { themed } from '@atlaskit/theme/components';
7
7
  import { gridSize } from '@atlaskit/theme/constants';
8
8
  import { R50, R300, N40A, N50A, N80A, DN50, R200 } from '@atlaskit/theme/colors';
9
- import { token } from '@atlaskit/tokens';
10
9
  import { sharedExpandStyles } from '@atlaskit/editor-common/ui';
11
10
  import { SelectionStyle, getSelectionStyles, akLayoutGutterOffset, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
12
11
  import { BreakoutCssClassName } from '../../breakout/constants';
13
12
  import { expandClassNames } from './class-names';
14
13
  var EXPAND_SELECTED_BACKGROUND = themed({
15
- light: token('color.background.neutral.subtle', 'rgba(255, 255, 255, 0.6)'),
16
- dark: token('color.background.neutral.subtle', 'rgba(9, 10, 11, 0.29)')
14
+ light: "var(--ds-background-neutral-subtle, rgba(255, 255, 255, 0.6))",
15
+ dark: "var(--ds-background-neutral-subtle, rgba(9, 10, 11, 0.29))"
17
16
  });
18
17
 
19
18
  var EXPAND_ICON_COLOR = function EXPAND_ICON_COLOR(props) {
20
19
  return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: ", ";\n"])), themed({
21
- light: token('color.icon.subtle', N80A),
22
- dark: token('color.icon.subtle', '#d9dde3')
20
+ light: "var(--ds-icon-subtle, ".concat(N80A, ")"),
21
+ dark: "var(--ds-icon-subtle, #d9dde3)"
23
22
  })(props));
24
23
  };
25
24
 
26
25
  var ACTIVE_STATE_BACKGROUND_COLOR = themed({
27
- dark: token('color.blanket.selected', "#0C294F4B")
26
+ dark: "var(--ds-blanket-selected, ".concat("#0C294F4B", ")")
28
27
  });
29
28
  var ACTIVE_STATE_BORDER = themed({
30
- dark: "1px solid ".concat(token('color.border.selected', "#4794ff4B"))
29
+ dark: "1px solid ".concat("var(--ds-border-selected, ".concat("#4794ff4B", ")"))
31
30
  });
32
31
  var ACTIVE_STATE_BORDER_RADIUS = themed({
33
32
  dark: '3px'
34
33
  });
35
34
  var DANGER_STATE_BACKGROUND_COLOR = themed({
36
- light: token('color.background.danger', R50),
37
- dark: token('color.background.danger', '#441C13')
35
+ light: "var(--ds-background-danger, ".concat(R50, ")"),
36
+ dark: "var(--ds-background-danger, #441C13)"
38
37
  });
39
38
  var DANGER_STATE_BORDER = themed({
40
- dark: "1px solid ".concat(token('color.border.danger', R200))
39
+ dark: "1px solid ".concat("var(--ds-border-danger, ".concat(R200, ")"))
41
40
  });
42
41
  var DANGER_STATE_BORDER_COLOR = themed({
43
- light: token('color.border.danger', R300)
42
+ light: "var(--ds-border-danger, ".concat(R300, ")")
44
43
  });
45
44
  var DANGER_STATE_BORDER_RADIUS = themed({
46
45
  dark: '3px'
@@ -53,10 +52,10 @@ export var expandStyles = function expandStyles(props) {
53
52
  expanded: false,
54
53
  focused: false
55
54
  })(props), expandClassNames.titleInput, sharedExpandStyles.titleInputStyles(props), expandClassNames.titleContainer, sharedExpandStyles.titleContainerStyles(props), expandClassNames.expanded, EXPAND_SELECTED_BACKGROUND(props), themed({
56
- light: token('color.border', N40A),
57
- dark: token('color.border', DN50)
55
+ light: "var(--ds-border, ".concat(N40A, ")"),
56
+ dark: "var(--ds-border, ".concat(DN50, ")")
58
57
  })(props), expandClassNames.content, gridSize(), expandClassNames.inputContainer, expandClassNames.prefix, expandClassNames.expanded, expandClassNames.prefix, expandClassNames.expanded, expandClassNames.iconContainer, EXPAND_ICON_COLOR(props), akEditorSelectedNodeClassName, themed({
59
- light: token('color.border', N50A),
60
- dark: token('color.border', DN50)
58
+ light: "var(--ds-border, ".concat(N50A, ")"),
59
+ dark: "var(--ds-border, ".concat(DN50, ")")
61
60
  })(props), EXPAND_SELECTED_BACKGROUND(props));
62
61
  };
@@ -7,7 +7,6 @@ import { themed } from '@atlaskit/theme/components';
7
7
  import { borderRadius } from '@atlaskit/theme/constants';
8
8
  import { DN30, DN900, N30 } from '@atlaskit/theme/colors';
9
9
  import { wrapperDefault, padding } from '../styles';
10
- import { token } from '@atlaskit/tokens';
11
10
  export var widerLayoutClassName = 'wider-layout';
12
11
  export var wrapperStyle = function wrapperStyle(theme) {
13
12
  return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n &.without-frame {\n background: transparent;\n }\n cursor: pointer;\n width: 100%;\n\n .extension-overflow-wrapper:not(.with-body) {\n overflow-x: auto;\n }\n"])), wrapperDefault(theme));
@@ -15,10 +14,10 @@ export var wrapperStyle = function wrapperStyle(theme) {
15
14
  export var header = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: ", "px ", "px 0px;\n vertical-align: middle;\n\n &.with-children:not(.without-frame) {\n padding: 4px 8px 8px;\n }\n &.without-frame {\n padding: 0;\n }\n"])), padding / 2, padding / 2);
16
15
  export var content = function content(theme) {
17
16
  return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: ", "px;\n background: ", ";\n color: ", ";\n border: 1px solid ", ";\n border-radius: ", "px;\n cursor: initial;\n"])), padding, themed({
18
- light: token('elevation.surface', 'white'),
19
- dark: token('elevation.surface', DN30)
17
+ light: "var(--ds-surface, white)",
18
+ dark: "var(--ds-surface, ".concat(DN30, ")")
20
19
  })(theme), themed({
21
- dark: token('color.text', DN900)
22
- })(theme), token('color.border', N30), borderRadius());
20
+ dark: "var(--ds-text, ".concat(DN900, ")")
21
+ })(theme), "var(--ds-border, ".concat(N30, ")"), borderRadius());
23
22
  };
24
23
  export var contentWrapper = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding: 0 ", "px ", "px;\n"])), padding, padding);
@@ -5,7 +5,6 @@ var _templateObject;
5
5
  import { css } from '@emotion/react';
6
6
  import { borderRadius } from '@atlaskit/theme/constants';
7
7
  import { wrapperDefault } from '../styles';
8
- import { token } from '@atlaskit/tokens';
9
8
  export var wrapperStyle = function wrapperStyle(theme) {
10
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n cursor: pointer;\n display: inline-flex;\n margin: 1px 1px 4px;\n\n > img {\n border-radius: ", "px;\n }\n\n &::after,\n &::before {\n vertical-align: text-top;\n display: inline-block;\n width: 1px;\n content: '';\n }\n\n &.with-children {\n padding: 0;\n background: ", ";\n }\n"])), wrapperDefault(theme), borderRadius(), token('color.background.neutral.subtle', 'white'));
9
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n cursor: pointer;\n display: inline-flex;\n margin: 1px 1px 4px;\n\n > img {\n border-radius: ", "px;\n }\n\n &::after,\n &::before {\n vertical-align: text-top;\n display: inline-block;\n width: 1px;\n content: '';\n }\n\n &.with-children {\n padding: 0;\n background: ", ";\n }\n"])), wrapperDefault(theme), borderRadius(), "var(--ds-background-neutral-subtle, white)");
11
10
  };
@@ -6,18 +6,17 @@ import { css } from '@emotion/react';
6
6
  import { themed } from '@atlaskit/theme/components';
7
7
  import { borderRadius } from '@atlaskit/theme/constants';
8
8
  import { N20, DN50, DN700, B200, N20A, N70 } from '@atlaskit/theme/colors';
9
- import { token } from '@atlaskit/tokens';
10
9
  import { EXTENSION_PADDING, BODIED_EXT_PADDING } from '@atlaskit/editor-common/styles';
11
10
  export { EXTENSION_PADDING as padding, BODIED_EXT_PADDING };
12
11
  export var wrapperDefault = function wrapperDefault(theme) {
13
12
  return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: ", "px;\n color: ", ";\n position: relative;\n vertical-align: middle;\n\n .ProseMirror-selectednode > span > & > .extension-overlay {\n box-shadow: inset 0px 0px 0px 2px ", ";\n opacity: 1;\n }\n\n &.with-overlay {\n .extension-overlay {\n background: ", ";\n color: transparent;\n }\n\n &:hover .extension-overlay {\n opacity: 1;\n }\n }\n"])), themed({
14
- light: token('color.background.neutral', N20),
15
- dark: token('color.background.neutral', DN50)
13
+ light: "var(--ds-background-neutral, ".concat(N20, ")"),
14
+ dark: "var(--ds-background-neutral, ".concat(DN50, ")")
16
15
  })(theme), borderRadius(), themed({
17
- dark: token('color.text', DN700)
18
- })(theme), token('color.border.selected', B200), token('color.background.neutral.hovered', N20A));
16
+ dark: "var(--ds-text, ".concat(DN700, ")")
17
+ })(theme), "var(--ds-border-selected, ".concat(B200, ")"), "var(--ds-background-neutral-hovered, ".concat(N20A, ")"));
19
18
  };
20
19
  export var overlay = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border-radius: ", "px;\n position: absolute;\n width: 100%;\n height: 100%;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.3s;\n"])), borderRadius());
21
20
  export var placeholderFallback = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: inline-flex;\n align-items: center;\n\n & > img {\n margin: 0 4px;\n }\n /* TODO: fix in develop: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E */\n /* stylelint-disable-next-line */\n label: placeholder-fallback;\n"])));
22
- export var placeholderFallbackParams = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: inline-block;\n max-width: 200px;\n margin-left: 5px;\n color: ", ";\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n"])), token('color.text.subtlest', N70));
21
+ export var placeholderFallbackParams = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: inline-block;\n max-width: 200px;\n margin-left: 5px;\n color: ", ";\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n"])), "var(--ds-text-subtlest, ".concat(N70, ")"));
23
22
  export var styledImage = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n max-height: 16px;\n max-width: 16px;\n /* TODO: fix in develop: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E */\n /* stylelint-disable-next-line */\n label: lozenge-image;\n"])));
@@ -10,12 +10,11 @@ import { G300, N0 } from '@atlaskit/theme/colors';
10
10
  import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
11
11
  import { FormattedMessage } from 'react-intl-next';
12
12
  import { messages } from './messages';
13
- import { token } from '@atlaskit/tokens';
14
13
 
15
14
  var noop = function noop() {};
16
15
 
17
16
  var saveIndicatorWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n"])));
18
- var saveIndicatorContent = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: fixed;\n width: 256px;\n bottom: 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 6px 12px;\n\n background: ", ";\n\n /* E300 */\n box-shadow: ", ";\n border-radius: 16px;\n"])), token('elevation.surface.overlay', N0), token('elevation.shadow.overlay', "0px 8px 12px rgba(9, 30, 66, 0.15), 0px 0px 1px rgba(9, 30, 66, 0.31)"));
17
+ var saveIndicatorContent = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: fixed;\n width: 256px;\n bottom: 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 6px 12px;\n\n background: ", ";\n\n /* E300 */\n box-shadow: ", ";\n border-radius: 16px;\n"])), "var(--ds-surface-overlay, ".concat(N0, ")"), "var(--ds-shadow-overlay, ".concat("0px 8px 12px rgba(9, 30, 66, 0.15), 0px 0px 1px rgba(9, 30, 66, 0.31)", ")"));
19
18
  var saveIndicatorText = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding-left: 6px;\n"])));
20
19
  export var SaveIndicator = function SaveIndicator(_ref) {
21
20
  var children = _ref.children,
@@ -55,7 +54,7 @@ export var SaveIndicator = function SaveIndicator(_ref) {
55
54
  "data-testid": "save-indicator-content"
56
55
  }, jsx(CheckCircleIcon, {
57
56
  label: "Saving",
58
- primaryColor: token('color.icon.success', G300),
57
+ primaryColor: "var(--ds-icon-success, ".concat(G300, ")"),
59
58
  size: "small"
60
59
  }), jsx("span", {
61
60
  css: saveIndicatorText
@@ -4,5 +4,4 @@ var _templateObject;
4
4
 
5
5
  import { css } from '@emotion/react';
6
6
  import { blockNodesVerticalMargin, akEditorSelectedBorderSize, akEditorDeleteBorder, akEditorDeleteBackground, SelectionStyle, getSelectionStyles, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
7
- import { token } from '@atlaskit/tokens';
8
- export var extensionStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .extensionView-content-wrap,\n .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n\n &:first-of-type {\n margin-top: 0;\n }\n\n &:last-of-type {\n margin-bottom: 0;\n }\n\n &:not(.danger).", " {\n & > span > .extension-container {\n ", "\n }\n }\n\n &.danger > span > .extension-container {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n }\n\n &.inline {\n word-wrap: break-all;\n }\n }\n\n .extensionView-content-wrap .extension-container {\n overflow: hidden;\n }\n\n .bodiedExtensionView-content-wrap\n .extensionView-content-wrap\n .extension-container {\n width: 100%;\n max-width: 100%; // ensure width can't go over 100%;\n }\n\n [data-mark-type='fragment'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n }\n }\n\n &:first-child {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-top: 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-top: 0;\n }\n }\n }\n\n &:nth-last-of-type(-n + 2):not(:first-of-type) {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-bottom: 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-bottom: 0;\n }\n }\n }\n }\n"])), blockNodesVerticalMargin, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedBorderSize, token('color.border.danger', akEditorDeleteBorder), token('color.background.danger', akEditorDeleteBackground), blockNodesVerticalMargin, blockNodesVerticalMargin);
7
+ export var extensionStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .extensionView-content-wrap,\n .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n\n &:first-of-type {\n margin-top: 0;\n }\n\n &:last-of-type {\n margin-bottom: 0;\n }\n\n &:not(.danger).", " {\n & > span > .extension-container {\n ", "\n }\n }\n\n &.danger > span > .extension-container {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n }\n\n &.inline {\n word-wrap: break-all;\n }\n }\n\n .extensionView-content-wrap .extension-container {\n overflow: hidden;\n }\n\n .bodiedExtensionView-content-wrap\n .extensionView-content-wrap\n .extension-container {\n width: 100%;\n max-width: 100%; // ensure width can't go over 100%;\n }\n\n [data-mark-type='fragment'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n }\n }\n\n &:first-child {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-top: 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-top: 0;\n }\n }\n }\n\n &:nth-last-of-type(-n + 2):not(:first-of-type) {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-bottom: 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-bottom: 0;\n }\n }\n }\n }\n"])), blockNodesVerticalMargin, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), blockNodesVerticalMargin, blockNodesVerticalMargin);
@@ -4,5 +4,4 @@ var _templateObject;
4
4
 
5
5
  import { css } from '@emotion/react';
6
6
  import { B75 } from '@atlaskit/theme/colors';
7
- import { token } from '@atlaskit/tokens';
8
- export var fakeCursorStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n .ProseMirror-fake-text-cursor {\n display: inline;\n pointer-events: none;\n position: relative;\n }\n\n .ProseMirror-fake-text-cursor::after {\n content: '';\n display: inline;\n top: 0;\n position: absolute;\n border-right: 1px solid ", ";\n }\n\n .ProseMirror-fake-text-selection {\n display: inline;\n pointer-events: none;\n position: relative;\n background-color: ", ";\n }\n }\n"])), token('color.border', 'rgba(0, 0, 0, 0.4)'), token('color.background.selected', B75));
7
+ export var fakeCursorStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n .ProseMirror-fake-text-cursor {\n display: inline;\n pointer-events: none;\n position: relative;\n }\n\n .ProseMirror-fake-text-cursor::after {\n content: '';\n display: inline;\n top: 0;\n position: absolute;\n border-right: 1px solid ", ";\n }\n\n .ProseMirror-fake-text-selection {\n display: inline;\n pointer-events: none;\n position: relative;\n background-color: ", ";\n }\n }\n"])), "var(--ds-border, rgba(0, 0, 0, 0.4))", "var(--ds-background-selected, ".concat(B75, ")"));
@@ -33,7 +33,7 @@ function getSpellCheck(featureFlags) {
33
33
 
34
34
 
35
35
  export function createFeatureFlagsFromProps(props) {
36
- var _props$featureFlags, _props$allowTextColor, _props$allowLayouts, _props$performanceTra, _props$performanceTra2, _props$featureFlags2, _props$featureFlags3, _props$allowTables, _props$featureFlags4, _props$featureFlags5, _props$allowTables2, _props$featureFlags6, _props$featureFlags7, _props$allowTables3, _props$featureFlags8, _props$featureFlags9, _props$allowTables4, _props$allowTables5, _props$featureFlags10, _props$featureFlags11, _props$allowTables6, _props$allowExtension, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$featureFlags15, _props$featureFlags16, _props$featureFlags17, _props$featureFlags18, _props$featureFlags19, _props$featureFlags20, _props$featureFlags21, _props$featureFlags22, _props$featureFlags23, _props$featureFlags24, _props$featureFlags25, _props$featureFlags26, _props$featureFlags27, _props$collabEdit, _props$collabEdit2, _props$featureFlags28, _props$featureFlags29, _props$featureFlags30, _props$featureFlags31, _props$featureFlags32, _props$featureFlags33, _props$featureFlags34, _props$featureFlags35, _props$featureFlags36, _props$featureFlags37, _props$featureFlags38, _props$featureFlags39, _props$featureFlags40, _props$featureFlags41, _props$featureFlags42;
36
+ var _props$featureFlags, _props$allowLayouts, _props$performanceTra, _props$performanceTra2, _props$featureFlags2, _props$featureFlags3, _props$allowTables, _props$featureFlags4, _props$featureFlags5, _props$allowTables2, _props$featureFlags6, _props$featureFlags7, _props$allowTables3, _props$featureFlags8, _props$featureFlags9, _props$allowTables4, _props$allowTables5, _props$featureFlags10, _props$featureFlags11, _props$allowTables6, _props$allowExtension, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$featureFlags15, _props$featureFlags16, _props$featureFlags17, _props$featureFlags18, _props$featureFlags19, _props$featureFlags20, _props$featureFlags21, _props$featureFlags22, _props$featureFlags23, _props$featureFlags24, _props$featureFlags25, _props$featureFlags26, _props$featureFlags27, _props$featureFlags28, _props$featureFlags29, _props$collabEdit, _props$collabEdit2, _props$featureFlags30, _props$featureFlags31, _props$featureFlags32, _props$featureFlags33, _props$featureFlags34, _props$featureFlags35, _props$featureFlags36, _props$featureFlags37, _props$featureFlags38, _props$featureFlags39, _props$featureFlags40, _props$featureFlags41, _props$featureFlags42, _props$featureFlags43, _props$featureFlags44;
37
37
 
38
38
  var normalizedFeatureFlags = normalizeFeatureFlags(props.featureFlags);
39
39
  var tableCellOptionsInFloatingToolbar = normalizedFeatureFlags.tableCellOptionsInFloatingToolbar || ((_props$featureFlags = props.featureFlags) === null || _props$featureFlags === void 0 ? void 0 : _props$featureFlags.tableCellOptionsInFloatingToolbar) || undefined;
@@ -41,7 +41,6 @@ export function createFeatureFlagsFromProps(props) {
41
41
  newInsertionBehaviour: props.allowNewInsertionBehaviour,
42
42
  interactiveExpand: typeof props.allowExpand === 'boolean' ? props.allowExpand : Boolean(props.allowExpand && props.allowExpand.allowInteractiveExpand !== false),
43
43
  placeholderBracketHint: !!props.placeholderBracketHint,
44
- moreTextColors: typeof props.allowTextColor === 'boolean' ? false : Boolean(((_props$allowTextColor = props.allowTextColor) === null || _props$allowTextColor === void 0 ? void 0 : _props$allowTextColor.allowMoreTextColors) === true),
45
44
  findReplace: !!props.allowFindReplace,
46
45
  findReplaceMatchCase: _typeof(props.allowFindReplace) === 'object' && Boolean(props.allowFindReplace.allowMatchCase),
47
46
  addColumnWithCustomStep: !props.allowTables || typeof props.allowTables === 'boolean' ? false : Boolean(props.allowTables.allowAddColumnWithCustomStep),
@@ -62,21 +61,22 @@ export function createFeatureFlagsFromProps(props) {
62
61
  ufo: Boolean(typeof ((_props$featureFlags22 = props.featureFlags) === null || _props$featureFlags22 === void 0 ? void 0 : _props$featureFlags22.ufo) === 'boolean' ? !!((_props$featureFlags23 = props.featureFlags) !== null && _props$featureFlags23 !== void 0 && _props$featureFlags23.ufo) : false),
63
62
  twoLineEditorToolbar: Boolean(typeof ((_props$featureFlags24 = props.featureFlags) === null || _props$featureFlags24 === void 0 ? void 0 : _props$featureFlags24.twoLineEditorToolbar) === 'boolean' ? !!((_props$featureFlags25 = props.featureFlags) !== null && _props$featureFlags25 !== void 0 && _props$featureFlags25.twoLineEditorToolbar) : false),
64
63
  saferDispatchedTransactions: Boolean(typeof normalizedFeatureFlags.saferDispatchedTransactions === 'boolean' && !!normalizedFeatureFlags.saferDispatchedTransactions || (typeof ((_props$featureFlags26 = props.featureFlags) === null || _props$featureFlags26 === void 0 ? void 0 : _props$featureFlags26.saferDispatchedTransactions) === 'boolean' ? !!((_props$featureFlags27 = props.featureFlags) !== null && _props$featureFlags27 !== void 0 && _props$featureFlags27.saferDispatchedTransactions) : false)),
64
+ saferDispatchedTransactionsAnalyticsOnly: Boolean(typeof normalizedFeatureFlags.saferDispatchedTransactionsAnalyticsOnly === 'boolean' && !!normalizedFeatureFlags.saferDispatchedTransactionsAnalyticsOnly || (typeof ((_props$featureFlags28 = props.featureFlags) === null || _props$featureFlags28 === void 0 ? void 0 : _props$featureFlags28.saferDispatchedTransactionsAnalyticsOnly) === 'boolean' ? !!((_props$featureFlags29 = props.featureFlags) !== null && _props$featureFlags29 !== void 0 && _props$featureFlags29.saferDispatchedTransactionsAnalyticsOnly) : false)),
65
65
  useNativeCollabPlugin: Boolean(typeof ((_props$collabEdit = props.collabEdit) === null || _props$collabEdit === void 0 ? void 0 : _props$collabEdit.useNativePlugin) === 'boolean' ? !!((_props$collabEdit2 = props.collabEdit) !== null && _props$collabEdit2 !== void 0 && _props$collabEdit2.useNativePlugin) : false),
66
- chromeCursorHandlerFixedVersion: typeof ((_props$featureFlags28 = props.featureFlags) === null || _props$featureFlags28 === void 0 ? void 0 : _props$featureFlags28.chromeCursorHandlerFixedVersion) === 'string' ? Number(props.featureFlags.chromeCursorHandlerFixedVersion) || undefined : undefined,
66
+ chromeCursorHandlerFixedVersion: typeof ((_props$featureFlags30 = props.featureFlags) === null || _props$featureFlags30 === void 0 ? void 0 : _props$featureFlags30.chromeCursorHandlerFixedVersion) === 'string' ? Number(props.featureFlags.chromeCursorHandlerFixedVersion) || undefined : undefined,
67
67
  tableCellOptionsInFloatingToolbar: typeof tableCellOptionsInFloatingToolbar === 'boolean' ? tableCellOptionsInFloatingToolbar : false,
68
- showHoverPreview: Boolean(typeof ((_props$featureFlags29 = props.featureFlags) === null || _props$featureFlags29 === void 0 ? void 0 : _props$featureFlags29.showHoverPreview) === 'boolean' ? !!((_props$featureFlags30 = props.featureFlags) !== null && _props$featureFlags30 !== void 0 && _props$featureFlags30.showHoverPreview) : false),
69
- indentationButtonsInTheToolbar: Boolean(typeof normalizedFeatureFlags.indentationButtonsInTheToolbar === 'boolean' && !!normalizedFeatureFlags.indentationButtonsInTheToolbar || (typeof ((_props$featureFlags31 = props.featureFlags) === null || _props$featureFlags31 === void 0 ? void 0 : _props$featureFlags31.indentationButtonsInTheToolbar) === 'boolean' ? !!((_props$featureFlags32 = props.featureFlags) !== null && _props$featureFlags32 !== void 0 && _props$featureFlags32.indentationButtonsInTheToolbar) : false)),
70
- floatingToolbarCopyButton: Boolean(typeof normalizedFeatureFlags.floatingToolbarCopyButton === 'boolean' && !!normalizedFeatureFlags.floatingToolbarCopyButton || (typeof ((_props$featureFlags33 = props.featureFlags) === null || _props$featureFlags33 === void 0 ? void 0 : _props$featureFlags33.floatingToolbarCopyButton) === 'boolean' ? !!((_props$featureFlags34 = props.featureFlags) !== null && _props$featureFlags34 !== void 0 && _props$featureFlags34.floatingToolbarCopyButton) : false)),
71
- floatingToolbarLinkSettingsButton: typeof ((_props$featureFlags35 = props.featureFlags) === null || _props$featureFlags35 === void 0 ? void 0 : _props$featureFlags35['floating-toolbar-link-settings-button']) === 'string' ? props.featureFlags['floating-toolbar-link-settings-button'] || undefined : undefined,
68
+ showHoverPreview: Boolean(typeof ((_props$featureFlags31 = props.featureFlags) === null || _props$featureFlags31 === void 0 ? void 0 : _props$featureFlags31.showHoverPreview) === 'boolean' ? !!((_props$featureFlags32 = props.featureFlags) !== null && _props$featureFlags32 !== void 0 && _props$featureFlags32.showHoverPreview) : false),
69
+ indentationButtonsInTheToolbar: Boolean(typeof normalizedFeatureFlags.indentationButtonsInTheToolbar === 'boolean' && !!normalizedFeatureFlags.indentationButtonsInTheToolbar || (typeof ((_props$featureFlags33 = props.featureFlags) === null || _props$featureFlags33 === void 0 ? void 0 : _props$featureFlags33.indentationButtonsInTheToolbar) === 'boolean' ? !!((_props$featureFlags34 = props.featureFlags) !== null && _props$featureFlags34 !== void 0 && _props$featureFlags34.indentationButtonsInTheToolbar) : false)),
70
+ floatingToolbarCopyButton: Boolean(typeof normalizedFeatureFlags.floatingToolbarCopyButton === 'boolean' && !!normalizedFeatureFlags.floatingToolbarCopyButton || (typeof ((_props$featureFlags35 = props.featureFlags) === null || _props$featureFlags35 === void 0 ? void 0 : _props$featureFlags35.floatingToolbarCopyButton) === 'boolean' ? !!((_props$featureFlags36 = props.featureFlags) !== null && _props$featureFlags36 !== void 0 && _props$featureFlags36.floatingToolbarCopyButton) : false)),
71
+ floatingToolbarLinkSettingsButton: typeof ((_props$featureFlags37 = props.featureFlags) === null || _props$featureFlags37 === void 0 ? void 0 : _props$featureFlags37['floating-toolbar-link-settings-button']) === 'string' ? props.featureFlags['floating-toolbar-link-settings-button'] || undefined : undefined,
72
72
  disableSpellcheckByBrowser: getSpellCheck(props.featureFlags),
73
73
  // Including fallback to props.featureFlags so that mobile feature flags
74
74
  // are included (they are not kebab cased)
75
- restartNumberedLists: normalizedFeatureFlags.restartNumberedLists === true || ((_props$featureFlags36 = props.featureFlags) === null || _props$featureFlags36 === void 0 ? void 0 : _props$featureFlags36.restartNumberedLists) === true,
76
- listNumberContinuity: normalizedFeatureFlags.listNumberContinuity === true || ((_props$featureFlags37 = props.featureFlags) === null || _props$featureFlags37 === void 0 ? void 0 : _props$featureFlags37.listNumberContinuity) === true,
77
- restartNumberedListsToolbar: normalizedFeatureFlags.restartNumberedListsToolbar === true || ((_props$featureFlags38 = props.featureFlags) === null || _props$featureFlags38 === void 0 ? void 0 : _props$featureFlags38.restartNumberedListsToolbar) === true,
78
- useSomewhatSemanticTextColorNames: Boolean(typeof normalizedFeatureFlags.useSomewhatSemanticTextColorNames === 'boolean' && !!normalizedFeatureFlags.useSomewhatSemanticTextColorNames || (typeof ((_props$featureFlags39 = props.featureFlags) === null || _props$featureFlags39 === void 0 ? void 0 : _props$featureFlags39.useSomewhatSemanticTextColorNames) === 'boolean' ? !!((_props$featureFlags40 = props.featureFlags) !== null && _props$featureFlags40 !== void 0 && _props$featureFlags40.useSomewhatSemanticTextColorNames) : false)),
75
+ restartNumberedLists: normalizedFeatureFlags.restartNumberedLists === true || ((_props$featureFlags38 = props.featureFlags) === null || _props$featureFlags38 === void 0 ? void 0 : _props$featureFlags38.restartNumberedLists) === true,
76
+ listNumberContinuity: normalizedFeatureFlags.listNumberContinuity === true || ((_props$featureFlags39 = props.featureFlags) === null || _props$featureFlags39 === void 0 ? void 0 : _props$featureFlags39.listNumberContinuity) === true,
77
+ restartNumberedListsToolbar: normalizedFeatureFlags.restartNumberedListsToolbar === true || ((_props$featureFlags40 = props.featureFlags) === null || _props$featureFlags40 === void 0 ? void 0 : _props$featureFlags40.restartNumberedListsToolbar) === true,
78
+ useSomewhatSemanticTextColorNames: Boolean(typeof normalizedFeatureFlags.useSomewhatSemanticTextColorNames === 'boolean' && !!normalizedFeatureFlags.useSomewhatSemanticTextColorNames || (typeof ((_props$featureFlags41 = props.featureFlags) === null || _props$featureFlags41 === void 0 ? void 0 : _props$featureFlags41.useSomewhatSemanticTextColorNames) === 'boolean' ? !!((_props$featureFlags42 = props.featureFlags) !== null && _props$featureFlags42 !== void 0 && _props$featureFlags42.useSomewhatSemanticTextColorNames) : false)),
79
79
  lpLinkPickerFocusTrap: Boolean(normalizedFeatureFlags.lpLinkPickerFocusTrap),
80
- preventPopupOverflow: Boolean(typeof ((_props$featureFlags41 = props.featureFlags) === null || _props$featureFlags41 === void 0 ? void 0 : _props$featureFlags41['prevent-popup-overflow']) === 'boolean' ? !!((_props$featureFlags42 = props.featureFlags) !== null && _props$featureFlags42 !== void 0 && _props$featureFlags42['prevent-popup-overflow']) : false)
80
+ preventPopupOverflow: Boolean(typeof ((_props$featureFlags43 = props.featureFlags) === null || _props$featureFlags43 === void 0 ? void 0 : _props$featureFlags43['prevent-popup-overflow']) === 'boolean' ? !!((_props$featureFlags44 = props.featureFlags) !== null && _props$featureFlags44 !== void 0 && _props$featureFlags44['prevent-popup-overflow']) : false)
81
81
  });
82
82
  }