@atlaskit/editor-core 176.0.2 → 177.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 (450) hide show
  1. package/.eslintrc.js +2 -2
  2. package/CHANGELOG.md +114 -0
  3. package/codemods/{173.0.0-rename-unsafe-allowUndoRedoButton-prop.ts → 175.0.0-rename-unsafe-allowUndoRedoButton-prop.ts} +0 -0
  4. package/dist/cjs/create-editor/ReactEditorView.js +3 -1
  5. package/dist/cjs/create-editor/create-plugins-list.js +9 -6
  6. package/dist/cjs/create-editor/messages.js +17 -0
  7. package/dist/cjs/i18n/en.js +2 -2
  8. package/dist/cjs/i18n/en_GB.js +2 -2
  9. package/dist/cjs/i18n/en_ZZ.js +2 -2
  10. package/dist/cjs/i18n/index.js +4 -4
  11. package/dist/cjs/i18n/languages.js +9 -4
  12. package/dist/cjs/labs/next/presets/mobile.js +2 -2
  13. package/dist/cjs/labs/next/presets/preset.js +38 -6
  14. package/dist/cjs/plugins/annotation/nodeviews/index.js +1 -0
  15. package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/index.js +6 -1
  16. package/dist/cjs/plugins/breakout/ui/LayoutButton.js +5 -1
  17. package/dist/cjs/plugins/card/pm-plugins/doc.js +18 -29
  18. package/dist/cjs/plugins/card/pm-plugins/main.js +7 -21
  19. package/dist/cjs/plugins/card/toolbar.js +24 -8
  20. package/dist/cjs/plugins/card/ui/EditLinkToolbar.js +9 -5
  21. package/dist/cjs/plugins/card/ui/LinkToolbarAppearance.js +19 -53
  22. package/dist/cjs/plugins/card/utils.js +17 -3
  23. package/dist/cjs/plugins/collab-edit/actions.js +3 -3
  24. package/dist/cjs/plugins/copy-button/toolbar.js +5 -3
  25. package/dist/cjs/plugins/date/index.js +1 -7
  26. package/dist/cjs/plugins/date/ui/DatePicker/index.js +1 -2
  27. package/dist/cjs/plugins/emoji/index.js +7 -14
  28. package/dist/cjs/plugins/expand/pm-plugins/main.js +4 -1
  29. package/dist/cjs/plugins/expand/toolbar.js +1 -0
  30. package/dist/cjs/plugins/extension/commands.js +17 -2
  31. package/dist/cjs/plugins/extension/pm-plugins/main.js +10 -0
  32. package/dist/cjs/plugins/extension/toolbar.js +49 -7
  33. package/dist/cjs/plugins/feature-flags-context/feature-flags-from-props.js +11 -11
  34. package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +7 -2
  35. package/dist/cjs/plugins/floating-toolbar/index.js +16 -4
  36. package/dist/cjs/plugins/floating-toolbar/ui/CheckboxModal.js +99 -0
  37. package/dist/cjs/plugins/floating-toolbar/ui/ConfirmationModal.js +10 -30
  38. package/dist/cjs/plugins/floating-toolbar/ui/Dropdown.js +16 -4
  39. package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +108 -55
  40. package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.js +1 -2
  41. package/dist/cjs/plugins/floating-toolbar/ui/ScrollButtons.js +29 -108
  42. package/dist/cjs/plugins/floating-toolbar/ui/SimpleModal.js +51 -0
  43. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +27 -47
  44. package/dist/cjs/plugins/floating-toolbar/ui/messages.js +13 -3
  45. package/dist/cjs/plugins/floating-toolbar/utils.js +4 -19
  46. package/dist/cjs/plugins/help-dialog/index.js +3 -2
  47. package/dist/cjs/plugins/hyperlink/Toolbar.js +20 -1
  48. package/dist/cjs/plugins/hyperlink/ui/EditorLinkPicker/index.js +6 -3
  49. package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +5 -10
  50. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -1
  51. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +2 -1
  52. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -1
  53. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +2 -1
  54. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +2 -0
  55. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/item.js +26 -12
  56. package/dist/cjs/plugins/layout/toolbar.js +1 -0
  57. package/dist/cjs/plugins/list/actions/outdent-list-items-selected.js +34 -4
  58. package/dist/cjs/plugins/list/commands/outdent-list.js +1 -1
  59. package/dist/cjs/plugins/list/index.js +6 -2
  60. package/dist/cjs/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +13 -2
  61. package/dist/cjs/plugins/list/pm-plugins/input-rules/index.js +5 -2
  62. package/dist/cjs/plugins/list/pm-plugins/main.js +32 -10
  63. package/dist/cjs/plugins/media/index.js +35 -0
  64. package/dist/cjs/plugins/media/nodeviews/mediaGroup.js +7 -6
  65. package/dist/cjs/plugins/media/nodeviews/mediaInline.js +3 -1
  66. package/dist/cjs/plugins/media/nodeviews/mediaNodeUpdater.js +70 -64
  67. package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +3 -1
  68. package/dist/cjs/plugins/media/pm-plugins/main.js +6 -0
  69. package/dist/cjs/plugins/media/toolbar/index.js +3 -0
  70. package/dist/cjs/plugins/media/utils/media-single.js +19 -3
  71. package/dist/cjs/plugins/panel/toolbar.js +1 -0
  72. package/dist/cjs/plugins/panel/utils.js +1 -1
  73. package/dist/cjs/plugins/paste/index.js +2 -1
  74. package/dist/cjs/plugins/paste/pm-plugins/analytics.js +19 -3
  75. package/dist/cjs/plugins/paste/pm-plugins/main.js +1 -1
  76. package/dist/cjs/plugins/paste/util/index.js +2 -2
  77. package/dist/cjs/plugins/placeholder/index.js +24 -47
  78. package/dist/cjs/plugins/placeholder/styles.js +2 -4
  79. package/dist/cjs/plugins/tasks-and-decisions/nodeviews/taskItem.js +7 -3
  80. package/dist/cjs/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +1 -0
  81. package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +10 -5
  82. package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +5 -1
  83. package/dist/cjs/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +5 -1
  84. package/dist/cjs/plugins/toolbar-lists-indentation/ui/Toolbar.js +16 -6
  85. package/dist/cjs/plugins/type-ahead/index.js +2 -8
  86. package/dist/cjs/plugins/type-ahead/messages.js +44 -4
  87. package/dist/cjs/plugins/type-ahead/pm-plugins/decorations.js +0 -1
  88. package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +17 -1
  89. package/dist/cjs/plugins/type-ahead/ui/TypeAheadList.js +9 -4
  90. package/dist/cjs/plugins/type-ahead/ui/TypeAheadListItem.js +8 -5
  91. package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +2 -1
  92. package/dist/cjs/plugins/type-ahead/utils.js +44 -2
  93. package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +6 -2
  94. package/dist/cjs/ui/Alignment/AlignmentButton/index.js +4 -1
  95. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +1 -1
  96. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -1
  97. package/dist/cjs/ui/CollapsedEditor/index.js +4 -2
  98. package/dist/cjs/ui/ColorPickerButton/index.js +2 -1
  99. package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +3 -4
  100. package/dist/cjs/ui/ConfigPanel/FormContent.js +2 -1
  101. package/dist/cjs/ui/ContentStyles/index.js +1 -1
  102. package/dist/cjs/ui/LinkSearch/ToolbarComponents.js +3 -1
  103. package/dist/cjs/ui/ToolbarArrowKeyNavigationProvider/index.js +55 -33
  104. package/dist/cjs/utils/commands.js +25 -13
  105. package/dist/cjs/utils/input-rules.js +26 -2
  106. package/dist/cjs/version-wrapper.js +1 -1
  107. package/dist/cjs/version.json +1 -1
  108. package/dist/es2019/create-editor/ReactEditorView.js +2 -1
  109. package/dist/es2019/create-editor/create-plugins-list.js +9 -6
  110. package/dist/es2019/create-editor/messages.js +8 -0
  111. package/dist/es2019/i18n/en.js +2 -2
  112. package/dist/es2019/i18n/en_GB.js +2 -2
  113. package/dist/es2019/i18n/en_ZZ.js +2 -2
  114. package/dist/es2019/i18n/index.js +4 -4
  115. package/dist/es2019/i18n/languages.js +9 -4
  116. package/dist/es2019/labs/next/presets/mobile.js +2 -2
  117. package/dist/es2019/labs/next/presets/preset.js +28 -7
  118. package/dist/es2019/plugins/annotation/nodeviews/index.js +1 -0
  119. package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/index.js +5 -1
  120. package/dist/es2019/plugins/breakout/ui/LayoutButton.js +4 -1
  121. package/dist/es2019/plugins/card/pm-plugins/doc.js +10 -19
  122. package/dist/es2019/plugins/card/pm-plugins/main.js +4 -19
  123. package/dist/es2019/plugins/card/toolbar.js +19 -2
  124. package/dist/es2019/plugins/card/ui/EditLinkToolbar.js +8 -6
  125. package/dist/es2019/plugins/card/ui/LinkToolbarAppearance.js +7 -36
  126. package/dist/es2019/plugins/card/utils.js +15 -2
  127. package/dist/es2019/plugins/collab-edit/actions.js +3 -3
  128. package/dist/es2019/plugins/copy-button/toolbar.js +5 -3
  129. package/dist/es2019/plugins/date/index.js +0 -7
  130. package/dist/es2019/plugins/date/ui/DatePicker/index.js +1 -2
  131. package/dist/es2019/plugins/emoji/index.js +7 -13
  132. package/dist/es2019/plugins/expand/pm-plugins/main.js +3 -3
  133. package/dist/es2019/plugins/expand/toolbar.js +1 -0
  134. package/dist/es2019/plugins/extension/commands.js +10 -1
  135. package/dist/es2019/plugins/extension/pm-plugins/main.js +10 -0
  136. package/dist/es2019/plugins/extension/toolbar.js +43 -8
  137. package/dist/es2019/plugins/feature-flags-context/feature-flags-from-props.js +11 -11
  138. package/dist/es2019/plugins/find-replace/ui/FindReplaceToolbarButton.js +7 -3
  139. package/dist/es2019/plugins/floating-toolbar/index.js +15 -5
  140. package/dist/es2019/plugins/floating-toolbar/ui/CheckboxModal.js +70 -0
  141. package/dist/es2019/plugins/floating-toolbar/ui/ConfirmationModal.js +8 -27
  142. package/dist/es2019/plugins/floating-toolbar/ui/Dropdown.js +17 -4
  143. package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +96 -50
  144. package/dist/es2019/plugins/floating-toolbar/ui/EmojiPickerButton.js +1 -1
  145. package/dist/es2019/plugins/floating-toolbar/ui/ScrollButtons.js +29 -76
  146. package/dist/es2019/plugins/floating-toolbar/ui/SimpleModal.js +32 -0
  147. package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +26 -46
  148. package/dist/es2019/plugins/floating-toolbar/ui/messages.js +14 -4
  149. package/dist/es2019/plugins/floating-toolbar/utils.js +4 -17
  150. package/dist/es2019/plugins/help-dialog/index.js +2 -2
  151. package/dist/es2019/plugins/hyperlink/Toolbar.js +18 -2
  152. package/dist/es2019/plugins/hyperlink/ui/EditorLinkPicker/index.js +9 -2
  153. package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +5 -9
  154. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -1
  155. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +2 -1
  156. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -1
  157. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +2 -1
  158. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +2 -0
  159. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/item.js +25 -12
  160. package/dist/es2019/plugins/layout/toolbar.js +1 -0
  161. package/dist/es2019/plugins/list/actions/outdent-list-items-selected.js +24 -4
  162. package/dist/es2019/plugins/list/commands/outdent-list.js +1 -1
  163. package/dist/es2019/plugins/list/index.js +7 -3
  164. package/dist/es2019/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +13 -2
  165. package/dist/es2019/plugins/list/pm-plugins/input-rules/index.js +5 -2
  166. package/dist/es2019/plugins/list/pm-plugins/main.js +31 -11
  167. package/dist/es2019/plugins/media/index.js +38 -0
  168. package/dist/es2019/plugins/media/nodeviews/mediaGroup.js +6 -5
  169. package/dist/es2019/plugins/media/nodeviews/mediaInline.js +3 -1
  170. package/dist/es2019/plugins/media/nodeviews/mediaNodeUpdater.js +2 -2
  171. package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +3 -1
  172. package/dist/es2019/plugins/media/pm-plugins/main.js +7 -0
  173. package/dist/es2019/plugins/media/toolbar/index.js +3 -0
  174. package/dist/es2019/plugins/media/utils/media-single.js +20 -3
  175. package/dist/es2019/plugins/panel/toolbar.js +1 -0
  176. package/dist/es2019/plugins/panel/utils.js +1 -1
  177. package/dist/es2019/plugins/paste/index.js +2 -1
  178. package/dist/es2019/plugins/paste/pm-plugins/analytics.js +15 -2
  179. package/dist/es2019/plugins/paste/pm-plugins/main.js +1 -1
  180. package/dist/es2019/plugins/paste/util/index.js +2 -2
  181. package/dist/es2019/plugins/placeholder/index.js +21 -47
  182. package/dist/es2019/plugins/placeholder/styles.js +1 -19
  183. package/dist/es2019/plugins/tasks-and-decisions/nodeviews/taskItem.js +6 -3
  184. package/dist/es2019/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +1 -0
  185. package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/index.js +8 -7
  186. package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +4 -1
  187. package/dist/es2019/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +18 -12
  188. package/dist/es2019/plugins/toolbar-lists-indentation/ui/Toolbar.js +16 -7
  189. package/dist/es2019/plugins/type-ahead/index.js +2 -2
  190. package/dist/es2019/plugins/type-ahead/messages.js +44 -4
  191. package/dist/es2019/plugins/type-ahead/pm-plugins/decorations.js +0 -1
  192. package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +17 -1
  193. package/dist/es2019/plugins/type-ahead/ui/TypeAheadList.js +10 -5
  194. package/dist/es2019/plugins/type-ahead/ui/TypeAheadListItem.js +8 -5
  195. package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +2 -1
  196. package/dist/es2019/plugins/type-ahead/utils.js +38 -0
  197. package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +6 -3
  198. package/dist/es2019/ui/Alignment/AlignmentButton/index.js +4 -2
  199. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +2 -2
  200. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +2 -1
  201. package/dist/es2019/ui/CollapsedEditor/index.js +3 -2
  202. package/dist/es2019/ui/ColorPickerButton/index.js +2 -1
  203. package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +4 -5
  204. package/dist/es2019/ui/ConfigPanel/FormContent.js +3 -3
  205. package/dist/es2019/ui/ContentStyles/index.js +7 -2
  206. package/dist/es2019/ui/LinkSearch/ToolbarComponents.js +1 -0
  207. package/dist/es2019/ui/ToolbarArrowKeyNavigationProvider/index.js +56 -34
  208. package/dist/es2019/utils/commands.js +26 -14
  209. package/dist/es2019/utils/input-rules.js +22 -1
  210. package/dist/es2019/version-wrapper.js +1 -1
  211. package/dist/es2019/version.json +1 -1
  212. package/dist/esm/create-editor/ReactEditorView.js +2 -1
  213. package/dist/esm/create-editor/create-plugins-list.js +9 -6
  214. package/dist/esm/create-editor/messages.js +8 -0
  215. package/dist/esm/i18n/en.js +2 -2
  216. package/dist/esm/i18n/en_GB.js +2 -2
  217. package/dist/esm/i18n/en_ZZ.js +2 -2
  218. package/dist/esm/i18n/index.js +4 -4
  219. package/dist/esm/i18n/languages.js +9 -4
  220. package/dist/esm/labs/next/presets/mobile.js +2 -2
  221. package/dist/esm/labs/next/presets/preset.js +36 -6
  222. package/dist/esm/plugins/annotation/nodeviews/index.js +1 -0
  223. package/dist/esm/plugins/block-type/ui/ToolbarBlockType/index.js +5 -1
  224. package/dist/esm/plugins/breakout/ui/LayoutButton.js +4 -1
  225. package/dist/esm/plugins/card/pm-plugins/doc.js +10 -20
  226. package/dist/esm/plugins/card/pm-plugins/main.js +4 -17
  227. package/dist/esm/plugins/card/toolbar.js +24 -8
  228. package/dist/esm/plugins/card/ui/EditLinkToolbar.js +8 -6
  229. package/dist/esm/plugins/card/ui/LinkToolbarAppearance.js +9 -39
  230. package/dist/esm/plugins/card/utils.js +15 -2
  231. package/dist/esm/plugins/collab-edit/actions.js +3 -3
  232. package/dist/esm/plugins/copy-button/toolbar.js +5 -3
  233. package/dist/esm/plugins/date/index.js +1 -6
  234. package/dist/esm/plugins/date/ui/DatePicker/index.js +1 -2
  235. package/dist/esm/plugins/emoji/index.js +7 -13
  236. package/dist/esm/plugins/expand/pm-plugins/main.js +3 -3
  237. package/dist/esm/plugins/expand/toolbar.js +1 -0
  238. package/dist/esm/plugins/extension/commands.js +12 -1
  239. package/dist/esm/plugins/extension/pm-plugins/main.js +10 -0
  240. package/dist/esm/plugins/extension/toolbar.js +50 -8
  241. package/dist/esm/plugins/feature-flags-context/feature-flags-from-props.js +11 -11
  242. package/dist/esm/plugins/find-replace/ui/FindReplaceToolbarButton.js +7 -3
  243. package/dist/esm/plugins/floating-toolbar/index.js +16 -4
  244. package/dist/esm/plugins/floating-toolbar/ui/CheckboxModal.js +75 -0
  245. package/dist/esm/plugins/floating-toolbar/ui/ConfirmationModal.js +11 -25
  246. package/dist/esm/plugins/floating-toolbar/ui/Dropdown.js +17 -4
  247. package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +100 -47
  248. package/dist/esm/plugins/floating-toolbar/ui/EmojiPickerButton.js +1 -1
  249. package/dist/esm/plugins/floating-toolbar/ui/ScrollButtons.js +29 -108
  250. package/dist/esm/plugins/floating-toolbar/ui/SimpleModal.js +30 -0
  251. package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +27 -47
  252. package/dist/esm/plugins/floating-toolbar/ui/messages.js +13 -3
  253. package/dist/esm/plugins/floating-toolbar/utils.js +4 -17
  254. package/dist/esm/plugins/help-dialog/index.js +3 -2
  255. package/dist/esm/plugins/hyperlink/Toolbar.js +20 -2
  256. package/dist/esm/plugins/hyperlink/ui/EditorLinkPicker/index.js +10 -3
  257. package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +5 -10
  258. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -1
  259. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +2 -1
  260. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -1
  261. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +2 -1
  262. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +2 -0
  263. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/item.js +25 -12
  264. package/dist/esm/plugins/layout/toolbar.js +1 -0
  265. package/dist/esm/plugins/list/actions/outdent-list-items-selected.js +30 -4
  266. package/dist/esm/plugins/list/commands/outdent-list.js +1 -1
  267. package/dist/esm/plugins/list/index.js +7 -3
  268. package/dist/esm/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +13 -2
  269. package/dist/esm/plugins/list/pm-plugins/input-rules/index.js +5 -2
  270. package/dist/esm/plugins/list/pm-plugins/main.js +31 -11
  271. package/dist/esm/plugins/media/index.js +33 -0
  272. package/dist/esm/plugins/media/nodeviews/mediaGroup.js +7 -6
  273. package/dist/esm/plugins/media/nodeviews/mediaInline.js +3 -1
  274. package/dist/esm/plugins/media/nodeviews/mediaNodeUpdater.js +70 -64
  275. package/dist/esm/plugins/media/nodeviews/mediaSingle.js +3 -1
  276. package/dist/esm/plugins/media/pm-plugins/main.js +7 -0
  277. package/dist/esm/plugins/media/toolbar/index.js +3 -0
  278. package/dist/esm/plugins/media/utils/media-single.js +18 -3
  279. package/dist/esm/plugins/panel/toolbar.js +1 -0
  280. package/dist/esm/plugins/panel/utils.js +1 -1
  281. package/dist/esm/plugins/paste/index.js +2 -1
  282. package/dist/esm/plugins/paste/pm-plugins/analytics.js +15 -2
  283. package/dist/esm/plugins/paste/pm-plugins/main.js +1 -1
  284. package/dist/esm/plugins/paste/util/index.js +2 -2
  285. package/dist/esm/plugins/placeholder/index.js +23 -45
  286. package/dist/esm/plugins/placeholder/styles.js +1 -2
  287. package/dist/esm/plugins/tasks-and-decisions/nodeviews/taskItem.js +6 -3
  288. package/dist/esm/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +1 -0
  289. package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +9 -5
  290. package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +4 -1
  291. package/dist/esm/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +5 -1
  292. package/dist/esm/plugins/toolbar-lists-indentation/ui/Toolbar.js +16 -7
  293. package/dist/esm/plugins/type-ahead/index.js +2 -2
  294. package/dist/esm/plugins/type-ahead/messages.js +44 -4
  295. package/dist/esm/plugins/type-ahead/pm-plugins/decorations.js +0 -1
  296. package/dist/esm/plugins/type-ahead/ui/InputQuery.js +17 -1
  297. package/dist/esm/plugins/type-ahead/ui/TypeAheadList.js +10 -5
  298. package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +8 -5
  299. package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +2 -1
  300. package/dist/esm/plugins/type-ahead/utils.js +38 -0
  301. package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +6 -3
  302. package/dist/esm/ui/Alignment/AlignmentButton/index.js +4 -2
  303. package/dist/esm/ui/Appearance/Comment/Toolbar.js +2 -2
  304. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +2 -1
  305. package/dist/esm/ui/CollapsedEditor/index.js +3 -2
  306. package/dist/esm/ui/ColorPickerButton/index.js +2 -1
  307. package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +4 -5
  308. package/dist/esm/ui/ConfigPanel/FormContent.js +3 -3
  309. package/dist/esm/ui/ContentStyles/index.js +1 -1
  310. package/dist/esm/ui/LinkSearch/ToolbarComponents.js +1 -0
  311. package/dist/esm/ui/ToolbarArrowKeyNavigationProvider/index.js +56 -34
  312. package/dist/esm/utils/commands.js +25 -13
  313. package/dist/esm/utils/input-rules.js +23 -1
  314. package/dist/esm/version-wrapper.js +1 -1
  315. package/dist/esm/version.json +1 -1
  316. package/dist/types/create-editor/messages.d.ts +7 -0
  317. package/dist/types/i18n/index.d.ts +4 -4
  318. package/dist/types/i18n/languages.d.ts +8 -3
  319. package/dist/types/labs/next/presets/cxhtml.d.ts +1 -1
  320. package/dist/types/labs/next/presets/default.d.ts +2 -2
  321. package/dist/types/labs/next/presets/mobile.d.ts +1 -1
  322. package/dist/types/labs/next/presets/preset.d.ts +10 -6
  323. package/dist/types/plugins/alignment/index.d.ts +2 -2
  324. package/dist/types/plugins/analytics/plugin.d.ts +2 -2
  325. package/dist/types/plugins/annotation/index.d.ts +2 -2
  326. package/dist/types/plugins/avatar-group/index.d.ts +4 -3
  327. package/dist/types/plugins/base/index.d.ts +2 -2
  328. package/dist/types/plugins/before-primaryToolbar/index.d.ts +4 -3
  329. package/dist/types/plugins/block-type/index.d.ts +2 -2
  330. package/dist/types/plugins/block-type/ui/ToolbarBlockType/index.d.ts +1 -1
  331. package/dist/types/plugins/breakout/index.d.ts +2 -2
  332. package/dist/types/plugins/caption/index.d.ts +2 -2
  333. package/dist/types/plugins/card/index.d.ts +2 -2
  334. package/dist/types/plugins/card/pm-plugins/doc.d.ts +4 -4
  335. package/dist/types/plugins/card/pm-plugins/main.d.ts +1 -1
  336. package/dist/types/plugins/card/ui/EditLinkToolbar.d.ts +1 -1
  337. package/dist/types/plugins/card/ui/LinkToolbarAppearance.d.ts +5 -5
  338. package/dist/types/plugins/card/utils.d.ts +2 -1
  339. package/dist/types/plugins/clear-marks-on-change-to-empty-document/index.d.ts +2 -2
  340. package/dist/types/plugins/clipboard/index.d.ts +2 -2
  341. package/dist/types/plugins/code-bidi-warning/index.d.ts +4 -3
  342. package/dist/types/plugins/code-block/index.d.ts +2 -2
  343. package/dist/types/plugins/collab-edit/actions.d.ts +1 -1
  344. package/dist/types/plugins/collab-edit/index.d.ts +2 -2
  345. package/dist/types/plugins/context-panel/index.d.ts +2 -2
  346. package/dist/types/plugins/copy-button/index.d.ts +2 -2
  347. package/dist/types/plugins/custom-autoformat/index.d.ts +2 -2
  348. package/dist/types/plugins/data-consumer/index.d.ts +2 -2
  349. package/dist/types/plugins/date/index.d.ts +2 -2
  350. package/dist/types/plugins/date/ui/DatePicker/index.d.ts +0 -1
  351. package/dist/types/plugins/editor-disabled/index.d.ts +2 -2
  352. package/dist/types/plugins/emoji/index.d.ts +2 -2
  353. package/dist/types/plugins/emoji/types.d.ts +2 -1
  354. package/dist/types/plugins/expand/index.d.ts +2 -2
  355. package/dist/types/plugins/expand/pm-plugins/main.d.ts +1 -0
  356. package/dist/types/plugins/extension/commands.d.ts +2 -0
  357. package/dist/types/plugins/extension/index.d.ts +2 -2
  358. package/dist/types/plugins/extension/toolbar.d.ts +10 -0
  359. package/dist/types/plugins/fake-text-cursor/index.d.ts +2 -2
  360. package/dist/types/plugins/feature-flags-context/index.d.ts +2 -2
  361. package/dist/types/plugins/feedback-dialog/index.d.ts +3 -2
  362. package/dist/types/plugins/find-replace/index.d.ts +4 -3
  363. package/dist/types/plugins/floating-toolbar/index.d.ts +2 -2
  364. package/dist/types/plugins/floating-toolbar/ui/CheckboxModal.d.ts +4 -0
  365. package/dist/types/plugins/floating-toolbar/ui/ConfirmationModal.d.ts +1 -8
  366. package/dist/types/plugins/floating-toolbar/ui/Dropdown.d.ts +3 -0
  367. package/dist/types/plugins/floating-toolbar/ui/DropdownMenu.d.ts +4 -0
  368. package/dist/types/plugins/floating-toolbar/ui/SimpleModal.d.ts +4 -0
  369. package/dist/types/plugins/floating-toolbar/ui/messages.d.ts +10 -0
  370. package/dist/types/plugins/floating-toolbar/ui/types.d.ts +1 -1
  371. package/dist/types/plugins/floating-toolbar/utils.d.ts +2 -3
  372. package/dist/types/plugins/fragment/index.d.ts +2 -2
  373. package/dist/types/plugins/grid/index.d.ts +2 -2
  374. package/dist/types/plugins/help-dialog/index.d.ts +2 -3
  375. package/dist/types/plugins/history/index.d.ts +2 -2
  376. package/dist/types/plugins/hyperlink/index.d.ts +2 -2
  377. package/dist/types/plugins/hyperlink/ui/EditorLinkPicker/index.d.ts +7 -2
  378. package/dist/types/plugins/hyperlink/ui/HyperlinkAddToolbar/index.d.ts +2 -1
  379. package/dist/types/plugins/image-upload/index.d.ts +2 -2
  380. package/dist/types/plugins/indentation/index.d.ts +2 -2
  381. package/dist/types/plugins/insert-block/index.d.ts +2 -2
  382. package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.d.ts +1 -0
  383. package/dist/types/plugins/jira-issue/index.d.ts +2 -2
  384. package/dist/types/plugins/layout/index.d.ts +2 -2
  385. package/dist/types/plugins/list/actions/outdent-list-items-selected.d.ts +2 -2
  386. package/dist/types/plugins/list/index.d.ts +3 -2
  387. package/dist/types/plugins/list/pm-plugins/input-rules/create-list-input-rule.d.ts +3 -1
  388. package/dist/types/plugins/list/pm-plugins/main.d.ts +2 -2
  389. package/dist/types/plugins/list/types.d.ts +2 -0
  390. package/dist/types/plugins/macro/index.d.ts +2 -2
  391. package/dist/types/plugins/max-content-size/index.d.ts +2 -2
  392. package/dist/types/plugins/media/index.d.ts +2 -2
  393. package/dist/types/plugins/media/nodeviews/mediaNodeUpdater.d.ts +2 -1
  394. package/dist/types/plugins/media/pm-plugins/main.d.ts +1 -0
  395. package/dist/types/plugins/media/pm-plugins/types.d.ts +1 -0
  396. package/dist/types/plugins/mentions/index.d.ts +2 -2
  397. package/dist/types/plugins/mobile-dimensions/index.d.ts +2 -2
  398. package/dist/types/plugins/mobile-selection/mobile-selection-plugin.d.ts +2 -2
  399. package/dist/types/plugins/panel/index.d.ts +2 -2
  400. package/dist/types/plugins/paste/index.d.ts +3 -2
  401. package/dist/types/plugins/paste/pm-plugins/analytics.d.ts +1 -0
  402. package/dist/types/plugins/placeholder/index.d.ts +4 -4
  403. package/dist/types/plugins/placeholder/styles.d.ts +0 -1
  404. package/dist/types/plugins/placeholder-text/index.d.ts +2 -2
  405. package/dist/types/plugins/quick-insert/index.d.ts +2 -2
  406. package/dist/types/plugins/rule/index.d.ts +2 -2
  407. package/dist/types/plugins/save-on-enter/index.d.ts +3 -2
  408. package/dist/types/plugins/scroll-into-view/index.d.ts +2 -2
  409. package/dist/types/plugins/selection/index.d.ts +2 -2
  410. package/dist/types/plugins/status/index.d.ts +2 -2
  411. package/dist/types/plugins/submit-editor/index.d.ts +4 -2
  412. package/dist/types/plugins/tasks-and-decisions/index.d.ts +2 -2
  413. package/dist/types/plugins/text-color/index.d.ts +3 -2
  414. package/dist/types/plugins/text-formatting/index.d.ts +2 -2
  415. package/dist/types/plugins/toolbar-lists-indentation/index.d.ts +4 -3
  416. package/dist/types/plugins/type-ahead/index.d.ts +2 -2
  417. package/dist/types/plugins/type-ahead/messages.d.ts +41 -1
  418. package/dist/types/plugins/type-ahead/ui/TypeAheadList.d.ts +3 -1
  419. package/dist/types/plugins/type-ahead/ui/TypeAheadListItem.d.ts +1 -0
  420. package/dist/types/plugins/type-ahead/utils.d.ts +7 -1
  421. package/dist/types/plugins/undo-redo/index.d.ts +2 -2
  422. package/dist/types/plugins/unsupported-content/index.d.ts +2 -2
  423. package/dist/types/plugins/view-update-subscription/index.d.ts +2 -2
  424. package/dist/types/plugins/width/index.d.ts +2 -2
  425. package/dist/types/test-utils.d.ts +2 -1
  426. package/dist/types/types/editor-plugin.d.ts +1 -1
  427. package/dist/types/types/editor-props.d.ts +0 -2
  428. package/dist/types/types/index.d.ts +1 -1
  429. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +3 -3
  430. package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
  431. package/dist/types/ui/ConfigPanel/Fields/Fieldset.d.ts +2 -1
  432. package/dist/types/ui/ConfigPanel/FormContent.d.ts +2 -23
  433. package/dist/types/ui/ConfigPanel/types.d.ts +22 -0
  434. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  435. package/dist/types/ui/LinkSearch/ToolbarComponents.d.ts +1 -0
  436. package/dist/types/ui/ToolbarArrowKeyNavigationProvider/index.d.ts +4 -1
  437. package/package.json +24 -24
  438. package/report.api.md +25 -16
  439. package/dist/cjs/plugins/card/ui/LinkToolbarIconDropdown.js +0 -181
  440. package/dist/cjs/plugins/card/ui/link-toolbar-icon-dropdown-options.js +0 -66
  441. package/dist/cjs/plugins/emoji/ui/EmojiContextProvider/index.js +0 -61
  442. package/dist/es2019/plugins/card/ui/LinkToolbarIconDropdown.js +0 -151
  443. package/dist/es2019/plugins/card/ui/link-toolbar-icon-dropdown-options.js +0 -51
  444. package/dist/es2019/plugins/emoji/ui/EmojiContextProvider/index.js +0 -21
  445. package/dist/esm/plugins/card/ui/LinkToolbarIconDropdown.js +0 -161
  446. package/dist/esm/plugins/card/ui/link-toolbar-icon-dropdown-options.js +0 -51
  447. package/dist/esm/plugins/emoji/ui/EmojiContextProvider/index.js +0 -46
  448. package/dist/types/plugins/card/ui/LinkToolbarIconDropdown.d.ts +0 -25
  449. package/dist/types/plugins/card/ui/link-toolbar-icon-dropdown-options.d.ts +0 -5
  450. package/dist/types/plugins/emoji/ui/EmojiContextProvider/index.d.ts +0 -13
package/.eslintrc.js CHANGED
@@ -8,13 +8,13 @@ module.exports = {
8
8
  target: 'packages/editor/editor-core/src/**/*',
9
9
  from: `packages/editor/editor-core/src/plugins/*/!(types)*`,
10
10
  message:
11
- '[ELR101] Avoid importing dependencies from editor plugins. Move shared code to a common location. https://developer.atlassian.com/cloud/framework/atlassian-frontend/editor/lint#elr101',
11
+ '[ELR101] Avoid importing dependencies from editor plugins. Move shared code to a common location. go/elr101',
12
12
  },
13
13
  {
14
14
  target: 'packages/editor/editor-core/src/**/*',
15
15
  from: `packages/editor/editor-core/src/plugins/*/!(types)**/*`,
16
16
  message:
17
- '[ELR101] Avoid importing dependencies from editor plugins. Move shared code to a common location. https://developer.atlassian.com/cloud/framework/atlassian-frontend/editor/lint#elr101',
17
+ '[ELR101] Avoid importing dependencies from editor plugins. Move shared code to a common location. go/elr101',
18
18
  },
19
19
  ],
20
20
  },
package/CHANGELOG.md CHANGED
@@ -1,5 +1,119 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 177.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`ac1c880cf4c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ac1c880cf4c) - [ux] ED-12395 - Remove the keyboard accessible date picker feature flag, which has been 100% rolled out
8
+
9
+ ## **DEPRECATION WARNING:**
10
+
11
+ There's two deprecations in this change:
12
+
13
+ ### 1. Remove `keyboardAccessibleDatepicker` and the `allowKeyboardAccessibleDatepicker` feature flag
14
+
15
+ Now that this has been fully rolled out, this feature flag is no longer required. The if-statement that depends on this feature flag was also removed in point 2 below:
16
+
17
+ ### 2. Remove the `showTextField` prop on the DatePicker
18
+
19
+ This was exclusively used to conditionally render the `DatePickerInput`. Its usage was always set to `true` in code or through the feature flag that has now been rolled out. Thus, this deprecation simplifies the API.
20
+
21
+ Since no code related to this feature flag remains, there are no inline deprecation warnings.
22
+
23
+ - [`5d317ed8aa3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5d317ed8aa3) - [ux] ED-15882: Implement custom starting numbers for orderedList nodes in adf-schema, editor, renderer, transformers behind restartNumberedLists feature flag. Users will be able to set a custom starting number when typing to create a numbered list in the Editor and this will be persisted across Renderer and other format transformations.
24
+
25
+ Note: restartNumberedLists will be off by default. To enable it, consumers will need to set <Editor featureFlags={{ restartNumberedLists: true }}> or <Renderer featureFlags={{ restartNumberedLists: true }}>
26
+
27
+ ### Minor Changes
28
+
29
+ - [`5307b130e91`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5307b130e91) - Cleaned up placeholder lint feature as it was no longer being used
30
+ - [`fe0fa175ab6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fe0fa175ab6) - Add support to prevent Editor Popup overflowing top of the viewport.
31
+ To enable the behaviour use the feature flag `prevent-popup-overflow` as follows:
32
+
33
+ ```tsx
34
+ <Editor
35
+ featureFlags={{
36
+ 'prevent-popup-overflow': true,
37
+ }}
38
+ />
39
+ ```
40
+
41
+ - [`3ca38fe77c1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ca38fe77c1) - [ux] ED-16206 Fixed - Tooltip for “Sort column Z-A“ option isn’t displayed if you first hover over the “Sort column A-Z“ option
42
+ - [`c42a0344d32`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c42a0344d32) - The linking view changing experiment toolbar style will be removed, including the feature flag. All variants will be removed except for toolbarIcons which will be the only view of the toolbar of the linking view switcher.
43
+ - [`c253ecf5377`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c253ecf5377) - Use preventPopupOverflow ff to prevent the link picker going off the screen horizontally in the inline comment Editor
44
+ - [`8820442c2b2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8820442c2b2) - [ux] ED-15709: add feature for delete element if it is `isReferencedSource` is `true`
45
+
46
+ - add checkbox confirmation dialog when then config have `isReferentiality.`
47
+ - add referentiality helper functions.
48
+ - update confirmDialog config to a handler to reduce traverse times.
49
+ - user can now tick checkbox to delete descendent nodes or only selected node when user click the delete icon in floating toolbar.
50
+
51
+ - [`1d41bbc2965`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1d41bbc2965) - This changeset introduces non breaking changes to support ssr within the loader emoji component
52
+ - [`d2c62b69a6a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d2c62b69a6a) - [ux] Adds support to floating toolbar configuration to enable trapping focus within the Popup.
53
+ - [`92613b1f023`](https://bitbucket.org/atlassian/atlassian-frontend/commits/92613b1f023) - ED-15018 and ED-13913 - Remove all circular dependencies and ignored warnings in editor
54
+
55
+ ### Patch Changes
56
+
57
+ - [`2fd53283b55`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2fd53283b55) - Updated i18n language files
58
+ - [`dfb5f68a5c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dfb5f68a5c3) - [ux] ED-16187: prevent CollapsedEditor from crashing when IntlProvider isn't provided
59
+ - [`b03147b4b1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b03147b4b1e) - [ux] editor copy paste block cards as inline where allowBlockCards is false
60
+ - [`1ea235bf3f5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ea235bf3f5) - ED-15489 Changes to improve the assistive text for emoji and mention typeaheads
61
+ - [`4a79928bc16`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4a79928bc16) - Updated aria label for editor content area according to content design recommendations.
62
+ - [`4c80b42a754`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c80b42a754) - [ED-16245] Make sure the Media dom nodes are mounted before scroll into
63
+ - [`0d5dfdc07bc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0d5dfdc07bc) - Refactored Typeahead component to be compatible with VoiceOver in Safari.
64
+ - [`873ba4d6ae1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/873ba4d6ae1) - Fix task ticks updates not being reflected in the editor.
65
+ - [`aa3c130c43a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/aa3c130c43a) - Changes the annotation mark to inclusive in order to fix the annotation being deleted when doing composition
66
+ - [`9f142486837`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9f142486837) - ED-14867 updated zIndex for width toggle breakout btn to be below other popups
67
+ - [`b616ba20f04`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b616ba20f04) - [ux] The height of the panel stays the same when the emoji is removed
68
+ - [`c1eedb6a5e1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c1eedb6a5e1) - [ux] Removed extra span and it's related styles from Placeholder plugin to align height of flashing cursor with height of text line
69
+ - [`f608bc44cf2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f608bc44cf2) - [ux] ED-16177 Added new text color labels. These new labels are disabled by default and only present when useSomewhatSemanticTextColorNames feature flag is set to true.
70
+ - [`62789954243`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62789954243) - react-virutlaized has been replaced with @tanstack/react-virutal in @atlaskit/emoji
71
+ - [`224a2482244`](https://bitbucket.org/atlassian/atlassian-frontend/commits/224a2482244) - [ED-16166] Changes the renderer prop document type from any to DocNode
72
+
73
+ BREAKING for `@atlaskit/renderer`: Previously the `document` prop for the renderer component had the type of `any`. This has now been changed to `DocNode` which comes from `@atlaskit/adf-schema`.
74
+
75
+ Documents being passed into the renderer component will need to be updated to use this type.
76
+
77
+ Example Usage:
78
+
79
+ ```tsx
80
+ import { DocNode } from '@atlaskit/adf-schema';
81
+
82
+ const emptyDoc: DocNode = {
83
+ type: 'doc',
84
+ version: 1,
85
+ content: [],
86
+ };
87
+ ```
88
+
89
+ - [`41810bb081d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41810bb081d) - [ux] ED-15897 fixed unexpected behaviour when using scroll buttons
90
+ - [`76183098160`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76183098160) - [ux] ED-15285 - fix initial visibility of edit icon on extension floating toolbar when selecting an editable extension at the first node in the document
91
+ - [`bb9a5f9d77d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bb9a5f9d77d) - [ux] ED-16176 Added useSomewhatSemanticTextColorNames feature flag. This is part of COMMIT-5058 work to unblock dark mode for Jira. The intention of the flag is to show semantic names in tooltips when hovering over colors in the text color palette in token light/dark mode. Note that the flag is 'somewhat semantic' due to white/dark-gray not being semantic names.
92
+ - [`233e03b2d92`](https://bitbucket.org/atlassian/atlassian-frontend/commits/233e03b2d92) - ED-16007 To highlight the table rows and columns when the 'Delete Row' and 'Delete Column' options are highlighted in the 'cell options' menu of floating toolbar
93
+ - [`7fd5785d37d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7fd5785d37d) - [ESS-2752] Fix clientId type derived from prosemirror-collab
94
+ - [`651dee737d2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/651dee737d2) - ED-15301 Added initial preset builder types
95
+ - [`3a35da6c331`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3a35da6c331) - DTR-825 ED-9775: added jamfselfservice:// to whitelistedURLPatterns
96
+ - [`069fe0a9aa4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/069fe0a9aa4) - [ux] When trying to apply a mark and the selection contains a mix of the selected mark and other content it will apply the mark rather than removing the mark from the selection.
97
+ - [`3a236cfd8d3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3a236cfd8d3) - refactor typeahead emoji plugin by removing usage of legacy context provider
98
+ - [`129c07f042d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/129c07f042d) - ED-16271 To skip the scroll buttons when user uses arrow keys to navigate in floating toolbar as it is not keyboard user friendly (changes are not feature falgged)
99
+ - [`1267ffe2c42`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1267ffe2c42) - Add media traceId into copy/paste operations
100
+ - [`b2fa6d3e611`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b2fa6d3e611) - [ED-16106] Fix margin top when paragraph has alignment marks
101
+ - [`0745d7b54df`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0745d7b54df) - Updated containsClass method to be more robust, to prevent console errors
102
+ - [`97eb6fb59c8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/97eb6fb59c8) - [ux] Fixes focus being lost when closing the new link picker user interface when inserting via shortcut or toolbar. Focus instead now returns to the editor.
103
+ - [`f451c36becf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f451c36becf) - Fixed reconciliation issue causing emoji picker in floating-toolbar to re-mount on parent component update
104
+ - [`e4089f2c471`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e4089f2c471) - Modified toolbar buttons to read out keyboard shortcuts by screen readers.
105
+ - [`968ac659016`](https://bitbucket.org/atlassian/atlassian-frontend/commits/968ac659016) - [ux] ED-16274 fixed typeahead query line height issue
106
+ - [`53b8ef2ab95`](https://bitbucket.org/atlassian/atlassian-frontend/commits/53b8ef2ab95) - Updates link picker feature flag to be the only logic to determine if the new link picker UI should be used.
107
+ - [`e3c011d1c03`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e3c011d1c03) - [ux] Fixed issue where z-index of stickyToolbar was way to high, which meant popups were under the toolbar instead of over it
108
+ - [`60068f7fcbe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/60068f7fcbe) - [ED-16007] Changes made to improve the floating toolbar's keyboard accessibility
109
+ - Updated dependencies
110
+
111
+ ## 176.0.3
112
+
113
+ ### Patch Changes
114
+
115
+ - [`7f49aa601ae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7f49aa601ae) - ED-16445: Fix to set allowUndoRedoButtons prop codemod in editor-core to run against the correct editor version v175 rather than v173
116
+
3
117
  ## 176.0.2
4
118
 
5
119
  ### Patch Changes
@@ -36,6 +36,8 @@ var _prosemirrorView = require("prosemirror-view");
36
36
 
37
37
  var _reactIntlNext = require("react-intl-next");
38
38
 
39
+ var _messages = require("./messages");
40
+
39
41
  var _utils = require("@atlaskit/editor-common/utils");
40
42
 
41
43
  var _ufo = require("@atlaskit/editor-common/ufo");
@@ -664,7 +666,7 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
664
666
  className: getUAPrefix(),
665
667
  key: "ProseMirror",
666
668
  ref: _this.handleEditorViewRef,
667
- "aria-label": "Main content area",
669
+ "aria-label": _this.props.intl.formatMessage(_messages.editorMessages.editorAssistiveLabel),
668
670
  role: "textbox"
669
671
  }));
670
672
  _this.eventDispatcher = new _eventDispatcher.EventDispatcher();
@@ -98,7 +98,6 @@ function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEvent) {
98
98
  },
99
99
  placeholder: {
100
100
  placeholder: props.placeholder,
101
- placeholderHints: props.placeholderHints,
102
101
  placeholderBracketHint: props.placeholderBracketHint
103
102
  },
104
103
  textFormatting: _objectSpread(_objectSpread({}, props.textFormatting || {}), {}, {
@@ -176,7 +175,11 @@ function createPluginsList(props, prevProps, createAnalyticsEvent, insertNodeAPI
176
175
  } // Needs to be after allowTextColor as order of buttons in toolbar depends on it
177
176
 
178
177
 
179
- preset.add(_plugins.listPlugin);
178
+ preset.add([_plugins.listPlugin, {
179
+ restartNumberedLists: featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.restartNumberedLists,
180
+ restartNumberedListsToolbar: featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.restartNumberedListsToolbar,
181
+ listNumberContinuity: featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.listNumberContinuity
182
+ }]);
180
183
 
181
184
  if (props.allowRule) {
182
185
  preset.add(_plugins.rulePlugin);
@@ -263,10 +266,10 @@ function createPluginsList(props, prevProps, createAnalyticsEvent, insertNodeAPI
263
266
  }
264
267
 
265
268
  if (props.allowHelpDialog) {
266
- preset.add([_plugins.helpDialogPlugin, props.legacyImageUploadProvider]);
269
+ preset.add([_plugins.helpDialogPlugin, !!props.legacyImageUploadProvider]);
267
270
  }
268
271
 
269
- if (props.saveOnEnter) {
272
+ if (props.saveOnEnter && props.onSave) {
270
273
  preset.add([_plugins.saveOnEnterPlugin, props.onSave]);
271
274
  }
272
275
 
@@ -334,7 +337,7 @@ function createPluginsList(props, prevProps, createAnalyticsEvent, insertNodeAPI
334
337
 
335
338
 
336
339
  if (!props.annotationProviders && props.allowConfluenceInlineComment) {
337
- preset.add(_plugins.annotationPlugin);
340
+ preset.add([_plugins.annotationPlugin, undefined]);
338
341
  }
339
342
 
340
343
  if (props.allowDate) {
@@ -449,7 +452,7 @@ function createPluginsList(props, prevProps, createAnalyticsEvent, insertNodeAPI
449
452
  }
450
453
 
451
454
  if (featureFlags.enableViewUpdateSubscription) {
452
- preset.add([_plugins.viewUpdateSubscriptionPlugin]);
455
+ preset.add(_plugins.viewUpdateSubscriptionPlugin);
453
456
  }
454
457
 
455
458
  preset.add([_plugins.codeBidiWarningPlugin, {
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.editorMessages = void 0;
7
+
8
+ var _reactIntlNext = require("react-intl-next");
9
+
10
+ var editorMessages = (0, _reactIntlNext.defineMessages)({
11
+ editorAssistiveLabel: {
12
+ id: 'fabric.editor.editorAssistiveLabel',
13
+ defaultMessage: 'Main content area, start typing to enter text.',
14
+ description: 'Text that is read out by screen reader when the main editor is in focus'
15
+ }
16
+ });
17
+ exports.editorMessages = editorMessages;
@@ -107,8 +107,8 @@ var _default = {
107
107
  'fabric.editor.error': 'Error',
108
108
  'fabric.editor.errorPanel': 'Error panel',
109
109
  'fabric.editor.errorPanel.description': 'Call out errors in a colored panel',
110
- 'fabric.editor.extension.confirmDeleteLinkedModalMessage': 'Removing this extension will break anything connected to it.',
111
- 'fabric.editor.extension.confirmDeleteLinkedModalOKButton': 'Remove extension',
110
+ 'fabric.editor.extension.confirmDeleteLinkedModalMessage': 'Deleting {nodeName} will break anything connected to it.',
111
+ 'fabric.editor.extension.confirmDeleteLinkedModalOKButton': 'Delete',
112
112
  'fabric.editor.extensions.config-panel.save-indicator': 'All changes are always autosaved',
113
113
  'fabric.editor.find': 'Find',
114
114
  'fabric.editor.findNext': 'Find next',
@@ -107,8 +107,8 @@ var _default = {
107
107
  'fabric.editor.error': 'Error',
108
108
  'fabric.editor.errorPanel': 'Error panel',
109
109
  'fabric.editor.errorPanel.description': 'Call out errors in a coloured panel',
110
- 'fabric.editor.extension.confirmDeleteLinkedModalMessage': 'Removing this extension will break anything connected to it.',
111
- 'fabric.editor.extension.confirmDeleteLinkedModalOKButton': 'Remove extension',
110
+ 'fabric.editor.extension.confirmDeleteLinkedModalMessage': 'Deleting {nodeName} will break anything connected to it.',
111
+ 'fabric.editor.extension.confirmDeleteLinkedModalOKButton': 'Delete',
112
112
  'fabric.editor.extensions.config-panel.save-indicator': 'All changes are always autosaved',
113
113
  'fabric.editor.find': 'Find',
114
114
  'fabric.editor.findNext': 'Find next',
@@ -107,8 +107,8 @@ var _default = {
107
107
  'fabric.editor.error': '⁣⁢Error؜‌⁡‌؜⁡‌⁣⁤',
108
108
  'fabric.editor.errorPanel': '⁣⁢Error panel⁠‍؜⁠⁠؜‍⁠⁠⁡⁣⁤',
109
109
  'fabric.editor.errorPanel.description': '⁣⁢Call out errors in a colored panel⁡⁠؜⁡‍‌‍؜‍⁣⁤',
110
- 'fabric.editor.extension.confirmDeleteLinkedModalMessage': '⁣⁢Removing this extension will break anything connected to it.⁠؜⁡‌‌‍‌⁡⁠⁡⁡⁡⁡⁣⁤',
111
- 'fabric.editor.extension.confirmDeleteLinkedModalOKButton': '⁣⁢Remove extension⁡‍‌‍⁠‌‍‍⁠⁠⁣⁤',
110
+ 'fabric.editor.extension.confirmDeleteLinkedModalMessage': 'Deleting {nodeName} will break anything connected to it.⁠؜⁡‌‌‍‌⁡⁠⁡⁡⁡⁡⁣⁤',
111
+ 'fabric.editor.extension.confirmDeleteLinkedModalOKButton': '⁣Delete⁡⁤',
112
112
  'fabric.editor.extensions.config-panel.save-indicator': '⁣⁢All changes are always autosaved⁠‍؜‌‌‍‍⁡‌‌‍‌‌⁣⁤',
113
113
  'fabric.editor.find': '⁣⁢Find⁠‌⁠‌⁠‍؜⁣⁤',
114
114
  'fabric.editor.findNext': '⁣⁢Find next؜‌؜‌؜⁠⁣⁤',
@@ -188,6 +188,10 @@ var _cs = _interopRequireDefault(require("./cs"));
188
188
 
189
189
  var _da = _interopRequireDefault(require("./da"));
190
190
 
191
+ var _en = _interopRequireDefault(require("./en"));
192
+
193
+ var _en_GB = _interopRequireDefault(require("./en_GB"));
194
+
191
195
  var _nl = _interopRequireDefault(require("./nl"));
192
196
 
193
197
  var _et = _interopRequireDefault(require("./et"));
@@ -230,10 +234,6 @@ var _uk = _interopRequireDefault(require("./uk"));
230
234
 
231
235
  var _vi = _interopRequireDefault(require("./vi"));
232
236
 
233
- var _en = _interopRequireDefault(require("./en"));
234
-
235
- var _en_GB = _interopRequireDefault(require("./en_GB"));
236
-
237
237
  var _is = _interopRequireDefault(require("./is"));
238
238
 
239
239
  var _ro = _interopRequireDefault(require("./ro"));
@@ -8,14 +8,15 @@ exports.default = void 0;
8
8
  /**
9
9
  * NOTE:
10
10
  *
11
- * This file is automatically generated by i18n-tools.
12
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
11
+ * ED-16073:
12
+ * This was manually updated since the original `@atlaskit/i18n-tools` has been deprecated
13
13
  */
14
14
  var _default = {
15
15
  zh: 'Chinese',
16
+ zh_TW: 'Chinese (Traditional)',
16
17
  cs: 'Czech',
17
- da: 'Danish',
18
18
  nl: 'Dutch',
19
+ da: 'Danish',
19
20
  en: 'English',
20
21
  en_GB: 'English (United Kingdom)',
21
22
  et: 'Estonian',
@@ -35,6 +36,10 @@ var _default = {
35
36
  ru: 'Russian',
36
37
  sk: 'Slovak',
37
38
  es: 'Spanish',
38
- sv: 'Swedish'
39
+ sv: 'Swedish',
40
+ th: 'Thai',
41
+ tr: 'Turkish',
42
+ uk: 'Ukrainian',
43
+ vi: 'Vietnamese'
39
44
  };
40
45
  exports.default = _default;
@@ -122,8 +122,8 @@ function useMobilePreset(_ref) {
122
122
  allowBlockCards: true,
123
123
  platform: 'mobile'
124
124
  }]);
125
- preset.add([_mentions.default]);
126
- preset.add([_emoji.default]); // End
125
+ preset.add(_mentions.default);
126
+ preset.add(_emoji.default); // End
127
127
 
128
128
  if (maxContentSize) {
129
129
  preset.add([_maxContentSize.default, maxContentSize]);
@@ -9,6 +9,10 @@ exports.Preset = void 0;
9
9
 
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
11
 
12
+ var _construct2 = _interopRequireDefault(require("@babel/runtime/helpers/construct"));
13
+
14
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
15
+
12
16
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
17
 
14
18
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
@@ -16,19 +20,40 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
16
20
  var Preset = /*#__PURE__*/function () {
17
21
  function Preset() {
18
22
  (0, _classCallCheck2.default)(this, Preset);
19
- this.plugins = [];
23
+
24
+ for (var _len = arguments.length, more = new Array(_len), _key = 0; _key < _len; _key++) {
25
+ more[_key] = arguments[_key];
26
+ }
27
+
28
+ this.data = [].concat(more) || [];
20
29
  }
21
30
 
22
31
  (0, _createClass2.default)(Preset, [{
23
32
  key: "add",
24
- value: function add(plugin) {
25
- this.plugins.push(plugin);
26
- return this;
33
+ value: function add(nextOrTuple) {
34
+ var newPreset = (0, _construct2.default)(Preset, [nextOrTuple].concat((0, _toConsumableArray2.default)(this.data))); // TODO: remove this `this.data.push`,
35
+ // once refactoring `create-plugins-list` to address this complexity:
36
+
37
+ /**
38
+ * preset.add(x)
39
+ * preset.add(y)
40
+ * preset.add(z)
41
+ */
42
+ // to:
43
+
44
+ /**
45
+ * immutablePreset = preset.add(x).add(foo).add(bar)
46
+ * presetWithY = presetWithY.add(y)
47
+ * presetWithZ = preset.add(z)
48
+ */
49
+
50
+ this.data.push(nextOrTuple);
51
+ return newPreset;
27
52
  }
28
53
  }, {
29
54
  key: "has",
30
55
  value: function has(plugin) {
31
- return this.plugins.some(function (pluginPreset) {
56
+ return this.data.some(function (pluginPreset) {
32
57
  if (Array.isArray(pluginPreset)) {
33
58
  return pluginPreset[0] === plugin;
34
59
  }
@@ -46,7 +71,7 @@ var Preset = /*#__PURE__*/function () {
46
71
  key: "processEditorPlugins",
47
72
  value: function processEditorPlugins() {
48
73
  var cache = new Map();
49
- this.plugins.forEach(function (pluginEntry) {
74
+ this.data.forEach(function (pluginEntry) {
50
75
  if (Array.isArray(pluginEntry)) {
51
76
  var _pluginEntry = (0, _slicedToArray2.default)(pluginEntry, 2),
52
77
  fn = _pluginEntry[0],
@@ -73,6 +98,13 @@ var Preset = /*#__PURE__*/function () {
73
98
  cache.forEach(function (options, fn) {
74
99
  plugins.push(fn(options));
75
100
  });
101
+
102
+ if (plugins.some(function (plugin) {
103
+ return typeof plugin === 'function';
104
+ })) {
105
+ throw new Error("!!! NextEditorPluginWithDependencies detected in presets. That's an unsupported runtime use case right now.");
106
+ }
107
+
76
108
  return plugins;
77
109
  }
78
110
  }, {
@@ -58,6 +58,7 @@ var AnnotationNodeView = /*#__PURE__*/function (_ReactNodeView) {
58
58
  /*#__PURE__*/
59
59
  // all inline comment states are now set in decorations at ../pm-plugins/inline-comment.ts
60
60
  _react.default.createElement("span", {
61
+ "data-mark-type": "annotation",
61
62
  ref: forwardRef
62
63
  })
63
64
  );
@@ -43,6 +43,8 @@ var _keymaps = require("../../../../keymaps");
43
43
 
44
44
  var _blocktypeButton = require("./blocktype-button");
45
45
 
46
+ var _keymaps2 = require("@atlaskit/editor-common/keymaps");
47
+
46
48
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
47
49
 
48
50
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
@@ -84,16 +86,19 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
84
86
  var isActive = currentBlockType === blockType;
85
87
  var tagName = blockType.tagName || 'p';
86
88
  var Tag = tagName;
89
+ var keyMap = (0, _keymaps.findKeymapByDescription)(blockType.title.defaultMessage);
87
90
  return {
88
91
  content: (0, _react2.jsx)("div", {
89
92
  css: (0, _styled.blockTypeMenuItemStyle)(tagName, isActive)
90
93
  }, (0, _react2.jsx)(Tag, null, formatMessage(blockType.title))),
91
94
  value: blockType,
92
95
  label: formatMessage(blockType.title),
96
+ 'aria-label': (0, _keymaps.tooltip)(keyMap, formatMessage(blockType.title)),
97
+ keyShortcuts: (0, _keymaps2.getAriaKeyshortcuts)(keyMap),
93
98
  key: "".concat(blockType.name, "-").concat(index),
94
99
  elemAfter: (0, _react2.jsx)("div", {
95
100
  css: [_styled.keyboardShortcut, isActive && _styled.keyboardShortcutSelect]
96
- }, (0, _keymaps.tooltip)((0, _keymaps.findKeymapByDescription)(blockType.title.defaultMessage))),
101
+ }, (0, _keymaps.tooltip)(keyMap)),
97
102
  isActive: isActive
98
103
  };
99
104
  });
@@ -61,6 +61,8 @@ var _isSupportedNode = require("../utils/is-supported-node");
61
61
 
62
62
  var _tokens = require("@atlaskit/tokens");
63
63
 
64
+ var _constants2 = require("@atlaskit/theme/constants");
65
+
64
66
  var _templateObject;
65
67
 
66
68
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
@@ -156,6 +158,7 @@ var LayoutButton = /*#__PURE__*/function (_React$Component) {
156
158
  var titleMessage = getTitle(breakoutMode);
157
159
  var title = formatMessage(titleMessage);
158
160
  var nextBreakoutMode = getNextBreakoutMode(breakoutMode);
161
+ var belowOtherPopupsZIndex = _constants2.layers.layer() - 1;
159
162
  var pluginState = (0, _pluginKey.getPluginState)(state);
160
163
  var element = getBreakoutNodeElement(pluginState, state.selection, editorView);
161
164
 
@@ -179,7 +182,8 @@ var LayoutButton = /*#__PURE__*/function (_React$Component) {
179
182
  boundariesElement: boundariesElement,
180
183
  scrollableElement: scrollableElement,
181
184
  stick: true,
182
- forcePlacement: true
185
+ forcePlacement: true,
186
+ zIndex: belowOtherPopupsZIndex
183
187
  }, (0, _react2.jsx)("div", {
184
188
  css: toolbarButtonWrapper
185
189
  }, (0, _react2.jsx)(_ToolbarButton.default, {
@@ -11,33 +11,31 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
11
11
 
12
12
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
13
 
14
- var _prosemirrorState = require("prosemirror-state");
15
-
16
14
  var _prosemirrorHistory = require("prosemirror-history");
17
15
 
18
- var _pluginKey = require("./plugin-key");
16
+ var _prosemirrorState = require("prosemirror-state");
19
17
 
20
- var _actions = require("./actions");
18
+ var _adfSchema = require("@atlaskit/adf-schema");
21
19
 
22
- var _utils = require("../utils");
20
+ var _analytics = require("../../../plugins/analytics");
23
21
 
24
- var _utils2 = require("../../../utils");
22
+ var _nodeEvents = require("../../../plugins/analytics/types/node-events");
25
23
 
26
- var _analytics = require("../../../plugins/analytics");
24
+ var _analytics2 = require("../../../plugins/hyperlink/analytics");
27
25
 
28
- var _adfSchema = require("@atlaskit/adf-schema");
26
+ var _utils = require("../../../utils");
29
27
 
30
- var _utils3 = require("../../hyperlink/utils");
28
+ var _linkingUtils = require("../../../utils/linking-utils");
31
29
 
32
- var _shouldReplaceLink = require("./shouldReplaceLink");
30
+ var _utils2 = require("../../hyperlink/utils");
33
31
 
34
- var _nodeEvents = require("../../../plugins/analytics/types/node-events");
32
+ var _utils3 = require("../utils");
35
33
 
36
- var _analytics2 = require("../../../plugins/hyperlink/analytics");
34
+ var _actions = require("./actions");
37
35
 
38
- var _linkingUtils = require("../../../utils/linking-utils");
36
+ var _pluginKey = require("./plugin-key");
39
37
 
40
- var _featureFlagsContext = require("../../feature-flags-context");
38
+ var _shouldReplaceLink = require("./shouldReplaceLink");
41
39
 
42
40
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
43
41
 
@@ -94,7 +92,7 @@ var replaceQueuedUrlWithCard = function replaceQueuedUrlWithCard(url, cardData,
94
92
  }); // try to transform response to ADF
95
93
 
96
94
  var schema = editorState.schema;
97
- var cardAdf = (0, _utils2.processRawValue)(schema, cardData);
95
+ var cardAdf = (0, _utils.processRawValue)(schema, cardData);
98
96
  var tr = editorState.tr;
99
97
 
100
98
  if (cardAdf) {
@@ -136,7 +134,7 @@ var replaceQueuedUrlWithCard = function replaceQueuedUrlWithCard(url, cardData,
136
134
  nodeType: nodeType,
137
135
  nodeContext: nodeContext,
138
136
  domainName: domainName,
139
- fromCurrentDomain: (0, _utils3.isFromCurrentDomain)(url)
137
+ fromCurrentDomain: (0, _utils2.isFromCurrentDomain)(url)
140
138
  }
141
139
  });
142
140
  }
@@ -178,7 +176,7 @@ var queueCardsFromChangedTr = function queueCardsFromChangedTr(state, tr, source
178
176
  var schema = state.schema;
179
177
  var link = schema.marks.link;
180
178
  var requests = [];
181
- (0, _utils2.nodesBetweenChanged)(tr, function (node, pos) {
179
+ (0, _utils.nodesBetweenChanged)(tr, function (node, pos) {
182
180
  if (!node.isText) {
183
181
  return true;
184
182
  }
@@ -250,17 +248,13 @@ var changeSelectedCardToLink = function changeSelectedCardToLink(text, href, sen
250
248
 
251
249
  if (sendAnalytics) {
252
250
  if (selectedNode) {
253
- var _getFeatureFlags = (0, _featureFlagsContext.getFeatureFlags)(state),
254
- viewChangingExperimentToolbarStyle = _getFeatureFlags.viewChangingExperimentToolbarStyle;
255
-
256
251
  (0, _analytics.addAnalytics)(state, tr, {
257
252
  action: _analytics.ACTION.CHANGED_TYPE,
258
253
  actionSubject: _analytics.ACTION_SUBJECT.SMART_LINK,
259
254
  eventType: _analytics.EVENT_TYPE.TRACK,
260
255
  attributes: {
261
256
  newType: _nodeEvents.SMART_LINK_TYPE.URL,
262
- previousType: (0, _utils.appearanceForNodeType)(selectedNode.type),
263
- featureFlag: viewChangingExperimentToolbarStyle || 'noChange'
257
+ previousType: (0, _utils3.appearanceForNodeType)(selectedNode.type)
264
258
  }
265
259
  });
266
260
  }
@@ -387,7 +381,7 @@ var setSelectedCardAppearance = function setSelectedCardAppearance(appearance) {
387
381
  return false;
388
382
  }
389
383
 
390
- if ((0, _utils.appearanceForNodeType)(selectedNode.type) === appearance) {
384
+ if ((0, _utils3.appearanceForNodeType)(selectedNode.type) === appearance) {
391
385
  return false;
392
386
  }
393
387
 
@@ -398,18 +392,13 @@ var setSelectedCardAppearance = function setSelectedCardAppearance(appearance) {
398
392
  var from = state.selection.from;
399
393
  var nodeType = getLinkNodeType(appearance, state.schema.nodes);
400
394
  var tr = state.tr.setNodeMarkup(from, nodeType, attrs, selectedNode.marks);
401
-
402
- var _getFeatureFlags2 = (0, _featureFlagsContext.getFeatureFlags)(state),
403
- viewChangingExperimentToolbarStyle = _getFeatureFlags2.viewChangingExperimentToolbarStyle;
404
-
405
395
  (0, _analytics.addAnalytics)(state, tr, {
406
396
  action: _analytics.ACTION.CHANGED_TYPE,
407
397
  actionSubject: _analytics.ACTION_SUBJECT.SMART_LINK,
408
398
  eventType: _analytics.EVENT_TYPE.TRACK,
409
399
  attributes: {
410
400
  newType: appearance,
411
- previousType: (0, _utils.appearanceForNodeType)(selectedNode.type),
412
- featureFlag: viewChangingExperimentToolbarStyle || 'noChange'
401
+ previousType: (0, _utils3.appearanceForNodeType)(selectedNode.type)
413
402
  }
414
403
  });
415
404