@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
@@ -10,8 +10,8 @@ import ColorPalette from '../ColorPalette';
10
10
  import { DEFAULT_BORDER_COLOR } from '../ColorPalette/Palettes/common';
11
11
  import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
12
12
  import { editorAnalyticsChannel } from '../../plugins/analytics/consts';
13
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../plugins/analytics/types'; // helps adjusts position of popup
14
-
13
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../plugins/analytics/types';
14
+ // helps adjusts position of popup
15
15
  const colorPickerButtonWrapper = css`
16
16
  position: relative;
17
17
  `; // Control the size of color picker buttons and preview
@@ -100,6 +100,23 @@ const ColorPickerButton = props => {
100
100
  };
101
101
 
102
102
  const title = props.title || '';
103
+ const buttonStyle = css`
104
+ padding: 6px;
105
+ background-color: ${"var(--ds-background-neutral, transparent)"};
106
+ &:before {
107
+ display: flex;
108
+ justify-content: center;
109
+ align-items: center;
110
+ align-self: center;
111
+ content: '';
112
+ border: 1px solid ${DEFAULT_BORDER_COLOR};
113
+ border-radius: ${borderRadius()}px;
114
+ background-color: ${props.currentColor || 'transparent'};
115
+ width: ${((_props$size = props.size) === null || _props$size === void 0 ? void 0 : _props$size.width) || 14}px;
116
+ height: ${((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.height) || 14}px;
117
+ padding: 0;
118
+ }
119
+ `;
103
120
  return jsx("div", {
104
121
  css: colorPickerButtonWrapper
105
122
  }, jsx(Tooltip, {
@@ -110,13 +127,7 @@ const ColorPickerButton = props => {
110
127
  "aria-label": title,
111
128
  spacing: "compact",
112
129
  onClick: togglePopup,
113
- style: {
114
- backgroundColor: props.currentColor || 'transparent',
115
- border: `1px solid ${DEFAULT_BORDER_COLOR}`,
116
- width: `${((_props$size = props.size) === null || _props$size === void 0 ? void 0 : _props$size.width) || 20}px`,
117
- height: `${((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.height) || 20}px`,
118
- padding: 0
119
- }
130
+ css: buttonStyle
120
131
  })), renderPopup());
121
132
  };
122
133
 
@@ -5,7 +5,6 @@ import { Fragment, useCallback } from 'react';
5
5
  import { css, jsx } from '@emotion/react';
6
6
  import { Checkbox as AKCheckbox } from '@atlaskit/checkbox';
7
7
  import { Field, Fieldset as AKFieldset } from '@atlaskit/form';
8
- import { token } from '@atlaskit/tokens';
9
8
  import { ValidationError } from '../types';
10
9
  import FieldMessages from '../FieldMessages';
11
10
 
@@ -16,7 +15,7 @@ function validate(value, isRequired) {
16
15
  }
17
16
 
18
17
  const requiredIndicator = css`
19
- color: ${token('color.text.danger', '#bf2600')};
18
+ color: ${"var(--ds-text-danger, #bf2600)"};
20
19
  `;
21
20
 
22
21
  function CheckboxGroupInner({
@@ -3,14 +3,13 @@ import React, { useState } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
4
  import { injectIntl } from 'react-intl-next';
5
5
  import { N40 } from '@atlaskit/theme/colors';
6
- import { token } from '@atlaskit/tokens';
7
6
  import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
8
7
  import ChevronRightIcon from '@atlaskit/icon/glyph/chevron-right';
9
8
  import Button from '@atlaskit/button';
10
9
  import { gridSize } from '@atlaskit/theme/constants';
11
10
  import { messages } from '../messages';
12
11
  export const expandContainer = css`
13
- border-bottom: 1px solid ${token('color.border', N40)};
12
+ border-bottom: 1px solid ${`var(--ds-border, ${N40})`};
14
13
  `;
15
14
  export const expandControl = css`
16
15
  display: flex;
@@ -12,9 +12,8 @@ import { messages } from '../messages';
12
12
  import { getNameFromDuplicateField, isDuplicateField } from '../utils';
13
13
  import { gridSize } from '@atlaskit/theme/constants';
14
14
  import { N40A } from '@atlaskit/theme/colors';
15
- import { token } from '@atlaskit/tokens';
16
15
  const actionsWrapper = css`
17
- border-top: 1px solid ${token('color.border', N40A)};
16
+ border-top: 1px solid ${`var(--ds-border, ${N40A})`};
18
17
  margin-top: ${gridSize() * 2}px;
19
18
  padding-top: ${gridSize() * 2}px;
20
19
  `;
@@ -1,6 +1,5 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { R500 } from '@atlaskit/theme/colors';
3
- import { token } from '@atlaskit/tokens';
4
3
  export const requiredIndicator = css`
5
- color: ${token('color.text.danger', R500)};
4
+ color: ${`var(--ds-text-danger, ${R500})`};
6
5
  `;
@@ -7,7 +7,6 @@ import Button from '@atlaskit/button/custom-theme-button';
7
7
  import CrossIcon from '@atlaskit/icon/glyph/cross';
8
8
  import { borderRadius } from '@atlaskit/theme/constants';
9
9
  import { N200 } from '@atlaskit/theme/colors';
10
- import { token } from '@atlaskit/tokens';
11
10
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
12
11
  import { messages } from './messages';
13
12
  const iconWidth = 40;
@@ -22,7 +21,7 @@ const itemIcon = css`
22
21
  width: ${iconWidth}px;
23
22
  height: ${iconWidth}px;
24
23
  overflow: hidden;
25
- border: 1px solid ${token('color.border', 'rgba(223, 225, 229, 0.5)')}; /* N60 at 50% */
24
+ border: 1px solid ${"var(--ds-border, rgba(223, 225, 229, 0.5))"}; /* N60 at 50% */
26
25
  border-radius: ${borderRadius()}px;
27
26
  box-sizing: border-box;
28
27
 
@@ -55,7 +54,7 @@ const itemText = css`
55
54
  white-space: initial;
56
55
  .item-summary {
57
56
  font-size: ${relativeFontSizeToBase16(11.67)};
58
- color: ${token('color.text.subtlest', N200)};
57
+ color: ${`var(--ds-text-subtlest, ${N200})`};
59
58
  margin-top: 4px;
60
59
 
61
60
  white-space: nowrap;
@@ -6,7 +6,6 @@ import { gridSize } from '@atlaskit/theme/constants';
6
6
  import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
7
7
  import Tooltip from '@atlaskit/tooltip';
8
8
  import { N80, R300 } from '@atlaskit/theme/colors';
9
- import { token } from '@atlaskit/tokens';
10
9
  import { messages } from '../messages';
11
10
  const removableFieldWrapper = css`
12
11
  position: relative;
@@ -21,10 +20,10 @@ const removeButtonWrapper = css`
21
20
  top: 0;
22
21
  cursor: pointer;
23
22
 
24
- color: ${token('color.icon.subtle', N80)};
23
+ color: ${`var(--ds-icon-subtle, ${N80})`};
25
24
 
26
25
  &:hover {
27
- color: ${token('color.icon.danger', R300)};
26
+ color: ${`var(--ds-icon-danger, ${R300})`};
28
27
  }
29
28
  `;
30
29
 
@@ -3,7 +3,6 @@ import React, { useMemo } from 'react';
3
3
  import { jsx, css, useTheme } from '@emotion/react';
4
4
  import { whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, shadowSharedStyle, dateSharedStyle, tasksAndDecisionsStyles, annotationSharedStyles, smartCardSharedStyles, textColorStyles } from '@atlaskit/editor-common/styles';
5
5
  import { editorFontSize } from '@atlaskit/editor-shared-styles';
6
- import { token } from '@atlaskit/tokens';
7
6
  import { unsupportedStyles } from '../../plugins/unsupported-content/styles';
8
7
  import { telepointerStyle } from '../../plugins/collab-edit/styles';
9
8
  import { gapCursorStyles } from '../../plugins/selection/gap-cursor/styles';
@@ -67,7 +66,7 @@ const contentStyles = props => css`
67
66
  }
68
67
 
69
68
  .ProseMirror-selectednode:empty {
70
- outline: 2px solid ${token('color.border.focused', '#8cf')};
69
+ outline: 2px solid ${"var(--ds-border-focused, #8cf)"};
71
70
  }
72
71
 
73
72
  ${placeholderTextStyles}
@@ -13,7 +13,6 @@ import { pluginKey as contextPanelPluginKey } from '../../plugins/context-panel'
13
13
  import { pluginKey as widthPluginKey } from '../../plugins/width';
14
14
  import WithEditorActions from '../WithEditorActions';
15
15
  import { getChildBreakoutModes } from '../../utils/document';
16
- import { token } from '@atlaskit/tokens';
17
16
  const ANIM_SPEED_MS = 500;
18
17
  const EDITOR_WIDTH = akEditorDefaultLayoutWidth + akEditorBreakoutPadding;
19
18
  const WIDE_EDITOR_WIDTH = akEditorWideLayoutWidth + akEditorBreakoutPadding;
@@ -43,7 +42,7 @@ export const panel = css`
43
42
  height: 100%;
44
43
  transition: width ${ANIM_SPEED_MS}ms ${akEditorSwoopCubicBezier};
45
44
  overflow: hidden;
46
- box-shadow: inset 2px 0 0 0 ${token('color.border', N30)};
45
+ box-shadow: inset 2px 0 0 0 ${`var(--ds-border, ${N30})`};
47
46
  `;
48
47
  export const content = css`
49
48
  transition: width 600ms ${akEditorSwoopCubicBezier};
@@ -17,7 +17,6 @@ import { getFeaturedQuickInsertItems, searchQuickInsertItems } from '../../plugi
17
17
  import { insertItem } from '../../plugins/quick-insert/commands';
18
18
  import ElementBrowser from './components/ElementBrowserLoader';
19
19
  import { ELEMENT_ITEM_HEIGHT } from './constants';
20
- import { token } from '@atlaskit/tokens';
21
20
 
22
21
  const InsertMenu = ({
23
22
  editorView,
@@ -148,13 +147,13 @@ const insertMenuWrapper = (theme, itemCount) => css`
148
147
  itemCount
149
148
  })}px;
150
149
  background-color: ${themed({
151
- light: token('elevation.surface.overlay', N0),
152
- dark: token('elevation.surface.overlay', DN50)
150
+ light: `var(--ds-surface-overlay, ${N0})`,
151
+ dark: `var(--ds-surface-overlay, ${DN50})`
153
152
  })(theme)};
154
153
  border-radius: ${borderRadius()}px;
155
- box-shadow: ${token('elevation.shadow.overlay', `0 0 0 1px ${N30A},
154
+ box-shadow: ${`var(--ds-shadow-overlay, ${`0 0 0 1px ${N30A},
156
155
  0 2px 1px ${N30A},
157
- 0 0 20px -6px ${N60A}`)};
156
+ 0 0 20px -6px ${N60A}`})`};
158
157
  `;
159
158
 
160
159
  const itemBefore = css`
@@ -12,7 +12,6 @@ import ElementBrowser from './components/ElementBrowserLoader';
12
12
  import { getCategories } from './categories';
13
13
  import { MODAL_WRAPPER_PADDING } from './constants';
14
14
  import { messages } from './messages';
15
- import { token } from '@atlaskit/tokens';
16
15
  const actions = css`
17
16
  display: inline-flex;
18
17
  margin: 0 -4px;
@@ -28,8 +27,8 @@ const wrapper = css`
28
27
  padding: ${MODAL_WRAPPER_PADDING}px ${MODAL_WRAPPER_PADDING}px 0 10px;
29
28
  overflow: hidden;
30
29
  background-color: ${themed({
31
- light: token('elevation.surface.overlay', N0),
32
- dark: token('elevation.surface.overlay', DN50)
30
+ light: `var(--ds-surface-overlay, ${N0})`,
31
+ dark: `var(--ds-surface-overlay, ${DN50})`
33
32
  })()};
34
33
  border-radius: ${borderRadius()}px;
35
34
  `;
@@ -9,7 +9,6 @@ import { withAnalyticsContext } from '@atlaskit/analytics-next';
9
9
  import { DEVICE_BREAKPOINT_NUMBERS, GRID_SIZE } from '../constants';
10
10
  import useFocus from '../hooks/use-focus';
11
11
  import { fireAnalyticsEvent, EVENT_TYPE, ACTION_SUBJECT, ACTION_SUBJECT_ID, ACTION } from '../../../plugins/analytics';
12
- import { token } from '@atlaskit/tokens';
13
12
 
14
13
  function CategoryList({
15
14
  categories = [],
@@ -72,9 +71,9 @@ function CategoryListItem({
72
71
  marginLeft: '2px',
73
72
  height: '100%',
74
73
  width: '100%',
75
- color: category.name !== selectedCategory ? token('color.text', N800) : token('color.text.selected', B400),
74
+ color: category.name !== selectedCategory ? `var(--ds-text, ${N800})` : `var(--ds-text-selected, ${B400})`,
76
75
  ...(category.name === selectedCategory && {
77
- background: token('color.background.selected', B50)
76
+ background: `var(--ds-background-selected, ${B50})`
78
77
  })
79
78
  },
80
79
  ...rest
@@ -9,7 +9,6 @@ import { ButtonItem } from '@atlaskit/menu';
9
9
  import { B100, N200 } from '@atlaskit/theme/colors';
10
10
  import Tooltip from '@atlaskit/tooltip';
11
11
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
12
- import { token } from '@atlaskit/tokens';
13
12
  import { withAnalyticsContext } from '@atlaskit/analytics-next';
14
13
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '../../../../plugins/analytics';
15
14
  import IconFallback from '../../../../plugins/quick-insert/assets/fallback';
@@ -238,7 +237,7 @@ const elementItemsWrapper = css`
238
237
 
239
238
  :focus {
240
239
  box-shadow: 0 0 0 ${ELEMENT_LIST_PADDING}px
241
- ${token('color.border.focused', B100)};
240
+ ${`var(--ds-border-focused, ${B100})`};
242
241
  }
243
242
  }
244
243
  .ReactVirtualized__Collection__innerScrollContainer {
@@ -281,7 +280,7 @@ const itemDescription = css`
281
280
 
282
281
  overflow: hidden;
283
282
  font-size: ${relativeFontSizeToBase16(11.67)};
284
- color: ${token('color.text.subtle', N200)};
283
+ color: ${`var(--ds-text-subtle, ${N200})`};
285
284
  margin-top: 2px;
286
285
  `;
287
286
  const itemText = css`
@@ -3,7 +3,6 @@ import { css, jsx } from '@emotion/react';
3
3
  import { FormattedMessage } from 'react-intl-next';
4
4
  import Button from '@atlaskit/button';
5
5
  import NotFoundIllustration from './NotFoundIllustration';
6
- import { token } from '@atlaskit/tokens';
7
6
  export default function EmptyState({
8
7
  onExternalLinkClick
9
8
  }) {
@@ -37,7 +36,7 @@ export default function EmptyState({
37
36
  const emptyStateHeading = css`
38
37
  font-size: 1.42857em;
39
38
  line-height: 1.2;
40
- color: ${token('color.text', 'rgb(23, 43, 77)')};
39
+ color: ${"var(--ds-text, rgb(23, 43, 77))"};
41
40
  font-weight: 500;
42
41
  letter-spacing: -0.008em;
43
42
  margin-top: 28px;
@@ -11,7 +11,6 @@ import { GRID_SIZE, SEARCH_ITEM_HEIGHT_WIDTH } from '../constants';
11
11
  import useFocus from '../hooks/use-focus';
12
12
  import { Modes } from '../types';
13
13
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
14
- import { token } from '@atlaskit/tokens';
15
14
 
16
15
  function ElementSearch({
17
16
  onSearch,
@@ -102,7 +101,7 @@ const wrapperInline = css`
102
101
  `;
103
102
  const elementBeforeInput = css`
104
103
  margin: 1px 6px 0 8px;
105
- color: ${token('color.icon', N200)};
104
+ color: ${`var(--ds-icon, ${N200})`};
106
105
 
107
106
  // Custom SearchIcon style
108
107
  span,
@@ -1,15 +1,14 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { borderRadius } from '@atlaskit/theme/constants';
3
3
  import { N0, N50A, N60A } from '@atlaskit/theme/colors';
4
- import { token } from '@atlaskit/tokens';
5
4
  export const container = height => css`
6
5
  border-radius: ${borderRadius()}px;
7
- box-shadow: ${token('elevation.shadow.overlay', `0 12px 24px -6px ${N50A}, 0 0 1px ${N60A}`)};
6
+ box-shadow: ${`var(--ds-shadow-overlay, ${`0 12px 24px -6px ${N50A}, 0 0 1px ${N60A}`})`};
8
7
  display: flex;
9
8
  align-items: center;
10
9
  box-sizing: border-box;
11
10
  padding: 4px 8px;
12
- background-color: ${token('color.background.input', N0)};
11
+ background-color: ${`var(--ds-background-input, ${N0})`};
13
12
  ${height ? css`
14
13
  height: ${height}px;
15
14
  ` : ''};
@@ -6,7 +6,6 @@ import { css, jsx } from '@emotion/react'; // AFP-2532 TODO: Fix automatic suppr
6
6
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
7
7
 
8
8
  import { fontSizeSmall } from '@atlaskit/theme';
9
- import { token } from '@atlaskit/tokens';
10
9
  import { N20, N300, N800 } from '@atlaskit/theme/colors';
11
10
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
12
11
  import { getCorrectAltByIconUrl } from './listItemAlts';
@@ -20,20 +19,20 @@ export const container = css`
20
19
  margin-top: 0;
21
20
  `;
22
21
  export const containerSelected = css`
23
- background-color: ${token('color.background.neutral.subtle.hovered', N20)};
22
+ background-color: ${`var(--ds-background-neutral-subtle-hovered, ${N20})`};
24
23
  `;
25
24
  const nameWrapper = css`
26
25
  overflow: hidden;
27
26
  `;
28
27
  export const nameStyle = css`
29
- color: ${token('color.text', N800)};
28
+ color: ${`var(--ds-text, ${N800})`};
30
29
  overflow: hidden;
31
30
  text-overflow: ellipsis;
32
31
  white-space: nowrap;
33
32
  line-height: 20px;
34
33
  `;
35
34
  export const containerName = css`
36
- color: ${token('color.text.subtlest', N300)};
35
+ color: ${`var(--ds-text-subtlest, ${N300})`};
37
36
  line-height: 14px;
38
37
  font-size: ${relativeFontSizeToBase16(fontSizeSmall())};
39
38
  `;
@@ -1,15 +1,14 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { N400, N100 } from '@atlaskit/theme/colors';
3
3
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
4
- import { token } from '@atlaskit/tokens'; // Normal .className gets overridden by input[type=text] hence this hack to produce input.className
5
-
4
+ // Normal .className gets overridden by input[type=text] hence this hack to produce input.className
6
5
  export const panelTextInput = css`
7
6
  input& {
8
7
  background: transparent;
9
8
  border: 0;
10
9
  border-radius: 0;
11
10
  box-sizing: content-box;
12
- color: ${token('color.text.subtle', N400)};
11
+ color: ${`var(--ds-text-subtle, ${N400})`};
13
12
  flex-grow: 1;
14
13
  font-size: ${relativeFontSizeToBase16(13)};
15
14
  line-height: 20px;
@@ -26,7 +25,7 @@ export const panelTextInput = css`
26
25
  }
27
26
 
28
27
  &::placeholder {
29
- color: ${token('color.text.subtlest', N100)};
28
+ color: ${`var(--ds-text-subtlest, ${N100})`};
30
29
  }
31
30
  }
32
31
  `;
@@ -23,7 +23,8 @@ export const ToolbarArrowKeyNavigationProvider = ({
23
23
  editorView,
24
24
  childComponentSelector,
25
25
  handleEscape,
26
- disableArrowKeyNavigation
26
+ disableArrowKeyNavigation,
27
+ isShortcutToFocusToolbar
27
28
  }) => {
28
29
  const wrapperRef = useRef(null);
29
30
  const selectedItemIndex = useRef(0);
@@ -142,11 +143,35 @@ export const ToolbarArrowKeyNavigationProvider = ({
142
143
  }
143
144
  };
144
145
 
146
+ const globalKeyDownHandler = event => {
147
+ //To focus the first element in the toolbar
148
+ if (isShortcutToFocusToolbar(event)) {
149
+ var _filteredFocusableEle4, _filteredFocusableEle5;
150
+
151
+ const filteredFocusableElements = getFilteredFocusableElements(wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current);
152
+ (_filteredFocusableEle4 = filteredFocusableElements[0]) === null || _filteredFocusableEle4 === void 0 ? void 0 : _filteredFocusableEle4.focus();
153
+ (_filteredFocusableEle5 = filteredFocusableElements[0]) === null || _filteredFocusableEle5 === void 0 ? void 0 : _filteredFocusableEle5.scrollIntoView({
154
+ behavior: 'smooth',
155
+ block: 'center',
156
+ inline: 'nearest'
157
+ });
158
+ }
159
+ };
160
+
145
161
  element === null || element === void 0 ? void 0 : element.addEventListener('keydown', handleKeyDown);
162
+
163
+ if (isShortcutToFocusToolbar) {
164
+ document.addEventListener('keydown', globalKeyDownHandler);
165
+ }
166
+
146
167
  return () => {
147
168
  element === null || element === void 0 ? void 0 : element.removeEventListener('keydown', handleKeyDown);
169
+
170
+ if (isShortcutToFocusToolbar) {
171
+ document.removeEventListener('keydown', globalKeyDownHandler);
172
+ }
148
173
  };
149
- }, [selectedItemIndex, wrapperRef, editorView, disableArrowKeyNavigation, handleEscape, childComponentSelector, incrementIndex, decrementIndex]);
174
+ }, [selectedItemIndex, wrapperRef, editorView, disableArrowKeyNavigation, handleEscape, childComponentSelector, incrementIndex, decrementIndex, isShortcutToFocusToolbar]);
150
175
  return /*#__PURE__*/React.createElement("div", {
151
176
  className: "custom-key-handler-wrapper",
152
177
  ref: wrapperRef
@@ -1,7 +1,6 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { borderRadius } from '@atlaskit/theme/constants';
3
3
  import { N60A, N400, P400 } from '@atlaskit/theme/colors';
4
- import { token } from '@atlaskit/tokens';
5
4
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
6
5
  export const buttonContent = css`
7
6
  display: flex;
@@ -14,9 +13,9 @@ export const wrapper = css`
14
13
  margin-right: 0;
15
14
  `;
16
15
  export const confirmationPopup = css`
17
- background: ${token('elevation.surface.overlay', '#fff')};
16
+ background: ${"var(--ds-surface-overlay, #fff)"};
18
17
  border-radius: ${borderRadius()}px;
19
- box-shadow: ${token('elevation.shadow.overlay', `0 4px 8px -2px ${N60A}, 0 0 1px ${N60A}`)};
18
+ box-shadow: ${`var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N60A}, 0 0 1px ${N60A}`})`};
20
19
  display: flex;
21
20
  flex-direction: column;
22
21
  box-sizing: border-box;
@@ -29,7 +28,7 @@ export const confirmationText = css`
29
28
  font-size: ${relativeFontSizeToBase16(14)};
30
29
  word-spacing: 4px;
31
30
  line-height: 22px;
32
- color: ${token('color.text.subtle', N400)};
31
+ color: ${`var(--ds-text-subtle, ${N400})`};
33
32
  margin-top: 30px;
34
33
  padding: 20px;
35
34
  & > div {
@@ -43,7 +42,7 @@ export const confirmationText = css`
43
42
  }
44
43
  `;
45
44
  export const confirmationHeader = css`
46
- background-color: ${token('color.background.discovery.bold', P400)};
45
+ background-color: ${`var(--ds-background-discovery-bold, ${P400})`};
47
46
  height: 100px;
48
47
  width: 100%;
49
48
  display: inline-block;
@@ -4,21 +4,20 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import React from 'react';
5
5
  import { css, jsx, keyframes } from '@emotion/react';
6
6
  import { R100 } from '@atlaskit/theme/colors';
7
- import { token } from '@atlaskit/tokens';
8
7
  const pulseBackground = keyframes`
9
8
  50% {
10
- background-color: ${token('color.blanket.danger', R100)};
9
+ background-color: ${`var(--ds-blanket-danger, ${R100})`};
11
10
  }
12
11
  `;
13
12
  const pulseBackgroundReverse = keyframes`
14
13
  0% {
15
- background-color: ${token('color.blanket.danger', R100)};
14
+ background-color: ${`var(--ds-blanket-danger, ${R100})`};
16
15
  }
17
16
  50% {
18
17
  background-color: auto;
19
18
  }
20
19
  100% {
21
- background-color: ${token('color.blanket.danger', R100)};
20
+ background-color: ${`var(--ds-blanket-danger, ${R100})`};
22
21
  }
23
22
  `;
24
23
  const flashWrapper = css`
@@ -1,6 +1,5 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { N30 } from '@atlaskit/theme/colors';
3
- import { token } from '@atlaskit/tokens';
4
3
  export { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
5
4
  export { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
6
5
  export const buttonGroupStyle = css`
@@ -12,7 +11,7 @@ export const buttonGroupStyle = css`
12
11
  }
13
12
  `;
14
13
  export const separatorStyles = css`
15
- background: ${token('color.border', N30)};
14
+ background: ${`var(--ds-border, ${N30})`};
16
15
  width: 1px;
17
16
  height: 24px;
18
17
  display: inline-block;
@@ -58,8 +57,8 @@ export const buttonContentReducedSpacingStyle = css`
58
57
  `; // Taken from the style of inline dialog components
59
58
 
60
59
  export const dropShadow = css`
61
- box-shadow: ${token('elevation.shadow.overlay', `0 0 1px rgba(9, 30, 66, 0.31),
62
- 0 4px 8px -2px rgba(9, 30, 66, 0.25)`)};
60
+ box-shadow: ${`var(--ds-shadow-overlay, ${`0 0 1px rgba(9, 30, 66, 0.31),
61
+ 0 4px 8px -2px rgba(9, 30, 66, 0.25)`})`};
63
62
  `;
64
63
  export const clickSelectWrapperStyle = css`
65
64
  user-select: all;
@@ -11,18 +11,20 @@ export class InstrumentedPlugin extends SafePlugin {
11
11
  enabled: false
12
12
  },
13
13
  saferDispatchedTransactions = false,
14
+ saferDispatchedTransactionsAnalyticsOnly = false,
14
15
  dispatchAnalyticsEvent
15
16
  } = options;
16
- const shouldOverrideApply = transactionTracking.enabled && transactionTracker || saferDispatchedTransactions;
17
+ const shouldOverrideApply = transactionTracking.enabled && transactionTracker || saferDispatchedTransactions || saferDispatchedTransactionsAnalyticsOnly;
17
18
 
18
19
  if (shouldOverrideApply && spec.state) {
19
20
  const originalApply = spec.state.apply.bind(spec.state);
20
21
 
21
22
  spec.state.apply = (aTr, value, oldState, newState) => {
22
23
  const self = this;
23
- const tr = saferDispatchedTransactions ? new Proxy(aTr, freezeUnsafeTransactionProperties({
24
+ const tr = saferDispatchedTransactions || saferDispatchedTransactionsAnalyticsOnly ? new Proxy(aTr, freezeUnsafeTransactionProperties({
24
25
  dispatchAnalyticsEvent,
25
- pluginKey: self.key
26
+ pluginKey: self.key,
27
+ analyticsOnly: saferDispatchedTransactionsAnalyticsOnly
26
28
  })) : aTr;
27
29
  const shouldTrackTransactions = transactionTracker === null || transactionTracker === void 0 ? void 0 : transactionTracker.shouldTrackTransaction(transactionTracking);
28
30
 
@@ -7,7 +7,8 @@ const isReadOnlyProperty = prop => ['doc', 'docs', 'steps', 'selection'].include
7
7
 
8
8
  export const freezeUnsafeTransactionProperties = ({
9
9
  dispatchAnalyticsEvent,
10
- pluginKey
10
+ pluginKey,
11
+ analyticsOnly
11
12
  }) => {
12
13
  const isUnsafe = () => {
13
14
  if (dispatchAnalyticsEvent) {
@@ -17,11 +18,16 @@ export const freezeUnsafeTransactionProperties = ({
17
18
  eventType: EVENT_TYPE.OPERATIONAL,
18
19
  attributes: {
19
20
  pluginKey: pluginKey || 'unknown'
21
+ },
22
+ nonPrivacySafeAttributes: {
23
+ stack: new Error().stack
20
24
  }
21
25
  });
22
26
  }
23
27
 
24
- throw new Error(UNSAFE_PROPERTY_SET_ERROR);
28
+ if (!analyticsOnly) {
29
+ throw new Error(UNSAFE_PROPERTY_SET_ERROR);
30
+ }
25
31
  };
26
32
 
27
33
  return {
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "177.0.0";
2
+ export const version = "178.0.0";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "177.0.0",
3
+ "version": "178.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -97,8 +97,10 @@ export var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component
97
97
  actionSubject: ACTION_SUBJECT.EDITOR,
98
98
  eventType: EVENT_TYPE.OPERATIONAL,
99
99
  attributes: {
100
- errorStack: errorStack,
101
100
  errorId: sharedId
101
+ },
102
+ nonPrivacySafeAttributes: {
103
+ errorStack: errorStack
102
104
  }
103
105
  });
104
106
 
@@ -354,9 +354,10 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
354
354
 
355
355
  var nodes = findChangedNodesFromTransaction(unsafeTransaction);
356
356
  var changedNodesValid = validateNodes(nodes);
357
- var transaction = _this.featureFlags.saferDispatchedTransactions ? new Proxy(unsafeTransaction, freezeUnsafeTransactionProperties({
357
+ var transaction = _this.featureFlags.saferDispatchedTransactions || _this.featureFlags.saferDispatchedTransactionsAnalyticsOnly ? new Proxy(unsafeTransaction, freezeUnsafeTransactionProperties({
358
358
  dispatchAnalyticsEvent: _this.dispatchAnalyticsEvent,
359
- pluginKey: 'unknown-reacteditorview'
359
+ pluginKey: 'unknown-reacteditorview',
360
+ analyticsOnly: _this.featureFlags.saferDispatchedTransactionsAnalyticsOnly
360
361
  })) : unsafeTransaction;
361
362
 
362
363
  if (changedNodesValid) {