@atlaskit/editor-core 182.1.2 → 183.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 (403) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cjs/actions/index.js +90 -98
  3. package/dist/cjs/create-editor/ErrorBoundary.js +86 -93
  4. package/dist/cjs/create-editor/ReactEditorViewInternal.js +8 -6
  5. package/dist/cjs/editor-next/index.js +5 -6
  6. package/dist/cjs/editor-next/utils/sendDurationAnalytics.js +34 -37
  7. package/dist/cjs/editor-next/utils/trackEditorActions.js +48 -51
  8. package/dist/cjs/editor.js +29 -34
  9. package/dist/cjs/i18n/cs.js +34 -6
  10. package/dist/cjs/i18n/da.js +34 -6
  11. package/dist/cjs/i18n/de.js +34 -7
  12. package/dist/cjs/i18n/en.js +31 -4
  13. package/dist/cjs/i18n/en_GB.js +34 -7
  14. package/dist/cjs/i18n/en_ZZ.js +35 -8
  15. package/dist/cjs/i18n/es.js +33 -6
  16. package/dist/cjs/i18n/fi.js +33 -6
  17. package/dist/cjs/i18n/fr.js +34 -7
  18. package/dist/cjs/i18n/hu.js +33 -6
  19. package/dist/cjs/i18n/it.js +34 -7
  20. package/dist/cjs/i18n/ja.js +33 -6
  21. package/dist/cjs/i18n/ko.js +33 -6
  22. package/dist/cjs/i18n/nb.js +35 -8
  23. package/dist/cjs/i18n/nl.js +34 -7
  24. package/dist/cjs/i18n/pl.js +34 -7
  25. package/dist/cjs/i18n/pt_BR.js +34 -7
  26. package/dist/cjs/i18n/ru.js +34 -7
  27. package/dist/cjs/i18n/sv.js +33 -6
  28. package/dist/cjs/i18n/th.js +34 -7
  29. package/dist/cjs/i18n/tr.js +33 -6
  30. package/dist/cjs/i18n/uk.js +34 -7
  31. package/dist/cjs/i18n/vi.js +35 -8
  32. package/dist/cjs/i18n/zh.js +33 -4
  33. package/dist/cjs/i18n/zh_TW.js +33 -6
  34. package/dist/cjs/labs/CollapsedEditor/index.js +1 -1
  35. package/dist/cjs/plugins/analytics/plugin.js +1 -1
  36. package/dist/cjs/plugins/annotation/pm-plugins/inline-comment.js +39 -44
  37. package/dist/cjs/plugins/annotation/pm-plugins/types.js +4 -4
  38. package/dist/cjs/plugins/annotation/types.js +4 -4
  39. package/dist/cjs/plugins/base/pm-plugins/decoration.js +4 -4
  40. package/dist/cjs/plugins/block-type/commands/block-type.js +1 -1
  41. package/dist/cjs/plugins/card/nodeviews/embedCard.js +5 -6
  42. package/dist/cjs/plugins/card/ui/EditLinkToolbar.js +3 -4
  43. package/dist/cjs/plugins/card/ui/EditorSmartCardEventsNext.js +16 -1
  44. package/dist/cjs/plugins/collab-edit/index.js +29 -32
  45. package/dist/cjs/plugins/collab-edit/plugin-state.js +2 -4
  46. package/dist/cjs/plugins/custom-autoformat/doc.js +28 -31
  47. package/dist/cjs/plugins/custom-autoformat/index.js +20 -23
  48. package/dist/cjs/plugins/date/index.js +1 -1
  49. package/dist/cjs/plugins/date/ui/DatePicker/date-picker-input.js +7 -10
  50. package/dist/cjs/plugins/date/utils/internal.js +1 -1
  51. package/dist/cjs/plugins/emoji/pm-plugins/ascii-input-rules.js +27 -28
  52. package/dist/cjs/plugins/extension/actions.js +36 -39
  53. package/dist/cjs/plugins/extension/context-panel.js +123 -130
  54. package/dist/cjs/plugins/extension/pm-plugins/main.js +82 -89
  55. package/dist/cjs/plugins/extension/pm-plugins/utils.js +46 -51
  56. package/dist/cjs/plugins/extension/ui/Extension/ExtensionComponent.js +44 -48
  57. package/dist/cjs/plugins/feedback-dialog/index.js +52 -57
  58. package/dist/cjs/plugins/feedback-dialog/loadJiraCollectorDialogScript.js +44 -47
  59. package/dist/cjs/plugins/find-replace/actions.js +4 -4
  60. package/dist/cjs/plugins/find-replace/utils/batch-decorations.js +144 -153
  61. package/dist/cjs/plugins/find-replace/utils/index.js +2 -2
  62. package/dist/cjs/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +40 -46
  63. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +2 -1
  64. package/dist/cjs/plugins/floating-toolbar/ui/ToolbarLoader.js +2 -1
  65. package/dist/cjs/plugins/fragment/pm-plugins/fragment-consistency.js +86 -86
  66. package/dist/cjs/plugins/help-dialog/ui/HelpDialogLoader.js +2 -1
  67. package/dist/cjs/plugins/history/actions.js +4 -4
  68. package/dist/cjs/plugins/hyperlink/HyperlinkToolbarAppearance.js +76 -82
  69. package/dist/cjs/plugins/hyperlink/pm-plugins/input-rule.js +3 -0
  70. package/dist/cjs/plugins/hyperlink/pm-plugins/main.js +16 -16
  71. package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +339 -352
  72. package/dist/cjs/plugins/hyperlink/utils.js +3 -0
  73. package/dist/cjs/plugins/image-upload/pm-plugins/main.js +24 -27
  74. package/dist/cjs/plugins/list/utils/node.js +4 -4
  75. package/dist/cjs/plugins/macro/actions.js +107 -112
  76. package/dist/cjs/plugins/media/nodeviews/mediaGroup.js +43 -46
  77. package/dist/cjs/plugins/media/nodeviews/mediaInline.js +62 -66
  78. package/dist/cjs/plugins/media/nodeviews/mediaNodeUpdater.js +544 -575
  79. package/dist/cjs/plugins/media/nodeviews/mediaNodeView/media.js +38 -42
  80. package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +108 -113
  81. package/dist/cjs/plugins/media/picker-facade.js +22 -25
  82. package/dist/cjs/plugins/media/pm-plugins/linking/actions.js +4 -4
  83. package/dist/cjs/plugins/media/pm-plugins/main.js +159 -172
  84. package/dist/cjs/plugins/media/pm-plugins/mediaTaskManager.js +36 -39
  85. package/dist/cjs/plugins/media/toolbar/utils.js +30 -33
  86. package/dist/cjs/plugins/media/ui/MediaPicker/PickerFacadeProvider.js +71 -74
  87. package/dist/cjs/plugins/media/ui/ResizableMediaSingle/index.js +52 -57
  88. package/dist/cjs/plugins/media/utils/check-media-type.js +37 -40
  89. package/dist/cjs/plugins/mentions/nodeviews/mention.js +29 -31
  90. package/dist/cjs/plugins/mentions/type-ahead/index.js +1 -1
  91. package/dist/cjs/plugins/mobile-dimensions/actions.js +4 -4
  92. package/dist/cjs/plugins/paste/actions.js +4 -4
  93. package/dist/cjs/plugins/paste/handlers.js +23 -26
  94. package/dist/cjs/plugins/paste/linkify-md-plugin.js +3 -0
  95. package/dist/cjs/plugins/paste/md.js +3 -0
  96. package/dist/cjs/plugins/paste/newline-md-plugin.js +3 -0
  97. package/dist/cjs/plugins/paste/paragraph-md-plugin.js +3 -0
  98. package/dist/cjs/plugins/paste/pm-plugins/main.js +25 -27
  99. package/dist/cjs/plugins/quick-insert/assets/index.js +63 -39
  100. package/dist/cjs/plugins/quick-insert/index.js +30 -33
  101. package/dist/cjs/plugins/selection/actions.js +4 -4
  102. package/dist/cjs/plugins/selection/gap-cursor/direction.js +4 -4
  103. package/dist/cjs/plugins/selection/types.js +4 -4
  104. package/dist/cjs/plugins/status/ui/statusPicker.js +7 -8
  105. package/dist/cjs/plugins/tasks-and-decisions/nodeviews/taskItem.js +9 -10
  106. package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/commands.js +16 -6
  107. package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/keymaps.js +12 -20
  108. package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/main.js +3 -3
  109. package/dist/cjs/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.js +41 -42
  110. package/dist/cjs/plugins/tasks-and-decisions/utils.js +31 -2
  111. package/dist/cjs/plugins/text-color/pm-plugins/main.js +4 -4
  112. package/dist/cjs/plugins/text-formatting/pm-plugins/input-rule.js +3 -3
  113. package/dist/cjs/plugins/text-formatting/ui/Toolbar/types.js +4 -4
  114. package/dist/cjs/plugins/type-ahead/constants.js +4 -4
  115. package/dist/cjs/plugins/type-ahead/pm-plugins/actions.js +4 -4
  116. package/dist/cjs/plugins/undo-redo/enums.js +4 -4
  117. package/dist/cjs/ui/Appearance/Comment/Comment.js +3 -3
  118. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -2
  119. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -1
  120. package/dist/cjs/ui/ColorPickerButton/index.js +3 -2
  121. package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +68 -73
  122. package/dist/cjs/ui/ConfigPanel/ConfigPanelLoader.js +2 -1
  123. package/dist/cjs/ui/ConfigPanel/Fields/CustomSelect.js +54 -56
  124. package/dist/cjs/ui/ConfigPanel/Fields/UserSelect.js +51 -55
  125. package/dist/cjs/ui/ConfigPanel/FormErrorBoundary.js +24 -27
  126. package/dist/cjs/ui/ConfigPanel/transformers.js +344 -363
  127. package/dist/cjs/ui/ConfigPanel/types.js +8 -8
  128. package/dist/cjs/ui/Dropdown/index.js +2 -1
  129. package/dist/cjs/ui/DropdownMenu/index.js +2 -1
  130. package/dist/cjs/ui/ElementBrowser/components/ElementBrowserLoader.js +1 -1
  131. package/dist/cjs/ui/ElementBrowser/hooks/use-select-and-focus-on-arrow-navigation.js +4 -4
  132. package/dist/cjs/ui/ElementBrowser/types.js +4 -4
  133. package/dist/cjs/ui/LinkSearch/index.js +94 -101
  134. package/dist/cjs/ui/ToolbarArrowKeyNavigationProvider/index.js +19 -2
  135. package/dist/cjs/ui/ToolbarFeedback/index.js +27 -31
  136. package/dist/cjs/utils/action.js +31 -36
  137. package/dist/cjs/utils/clipboard.js +82 -86
  138. package/dist/cjs/utils/deprecation-warnings.js +1 -1
  139. package/dist/cjs/utils/extensions.js +62 -67
  140. package/dist/cjs/utils/insert.js +4 -4
  141. package/dist/cjs/utils/mark.js +2 -2
  142. package/dist/cjs/utils/performance/simple-measure-to-entries.js +1 -2
  143. package/dist/cjs/utils/performance/track-transactions.js +3 -2
  144. package/dist/cjs/version-wrapper.js +1 -1
  145. package/dist/cjs/version.json +1 -1
  146. package/dist/es2019/actions/index.js +8 -9
  147. package/dist/es2019/create-editor/ReactEditorViewInternal.js +5 -3
  148. package/dist/es2019/editor-next/index.js +5 -6
  149. package/dist/es2019/editor.js +29 -36
  150. package/dist/es2019/i18n/cs.js +34 -6
  151. package/dist/es2019/i18n/da.js +34 -6
  152. package/dist/es2019/i18n/de.js +34 -7
  153. package/dist/es2019/i18n/en.js +31 -4
  154. package/dist/es2019/i18n/en_GB.js +34 -7
  155. package/dist/es2019/i18n/en_ZZ.js +35 -8
  156. package/dist/es2019/i18n/es.js +33 -6
  157. package/dist/es2019/i18n/fi.js +33 -6
  158. package/dist/es2019/i18n/fr.js +34 -7
  159. package/dist/es2019/i18n/hu.js +33 -6
  160. package/dist/es2019/i18n/it.js +34 -7
  161. package/dist/es2019/i18n/ja.js +33 -6
  162. package/dist/es2019/i18n/ko.js +33 -6
  163. package/dist/es2019/i18n/nb.js +35 -8
  164. package/dist/es2019/i18n/nl.js +34 -7
  165. package/dist/es2019/i18n/pl.js +34 -7
  166. package/dist/es2019/i18n/pt_BR.js +34 -7
  167. package/dist/es2019/i18n/ru.js +34 -7
  168. package/dist/es2019/i18n/sv.js +33 -6
  169. package/dist/es2019/i18n/th.js +34 -7
  170. package/dist/es2019/i18n/tr.js +33 -6
  171. package/dist/es2019/i18n/uk.js +34 -7
  172. package/dist/es2019/i18n/vi.js +35 -8
  173. package/dist/es2019/i18n/zh.js +33 -4
  174. package/dist/es2019/i18n/zh_TW.js +33 -6
  175. package/dist/es2019/plugins/annotation/pm-plugins/types.js +3 -3
  176. package/dist/es2019/plugins/annotation/types.js +3 -3
  177. package/dist/es2019/plugins/base/pm-plugins/decoration.js +3 -3
  178. package/dist/es2019/plugins/card/nodeviews/embedCard.js +5 -7
  179. package/dist/es2019/plugins/card/ui/EditLinkToolbar.js +3 -5
  180. package/dist/es2019/plugins/card/ui/EditorSmartCardEventsNext.js +17 -2
  181. package/dist/es2019/plugins/collab-edit/plugin-state.js +1 -2
  182. package/dist/es2019/plugins/date/ui/DatePicker/date-picker-input.js +7 -11
  183. package/dist/es2019/plugins/emoji/pm-plugins/ascii-input-rules.js +27 -28
  184. package/dist/es2019/plugins/extension/ui/Extension/ExtensionComponent.js +8 -12
  185. package/dist/es2019/plugins/find-replace/actions.js +3 -3
  186. package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +2 -1
  187. package/dist/es2019/plugins/fragment/pm-plugins/fragment-consistency.js +56 -71
  188. package/dist/es2019/plugins/history/actions.js +3 -3
  189. package/dist/es2019/plugins/hyperlink/pm-plugins/input-rule.js +3 -0
  190. package/dist/es2019/plugins/hyperlink/pm-plugins/main.js +6 -6
  191. package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -2
  192. package/dist/es2019/plugins/hyperlink/utils.js +3 -0
  193. package/dist/es2019/plugins/list/utils/node.js +3 -3
  194. package/dist/es2019/plugins/media/nodeviews/mediaNodeUpdater.js +4 -8
  195. package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +2 -3
  196. package/dist/es2019/plugins/media/pm-plugins/linking/actions.js +3 -3
  197. package/dist/es2019/plugins/media/pm-plugins/main.js +22 -31
  198. package/dist/es2019/plugins/mobile-dimensions/actions.js +3 -3
  199. package/dist/es2019/plugins/paste/actions.js +3 -3
  200. package/dist/es2019/plugins/paste/linkify-md-plugin.js +3 -0
  201. package/dist/es2019/plugins/paste/md.js +3 -0
  202. package/dist/es2019/plugins/paste/newline-md-plugin.js +3 -0
  203. package/dist/es2019/plugins/paste/paragraph-md-plugin.js +3 -0
  204. package/dist/es2019/plugins/selection/actions.js +3 -3
  205. package/dist/es2019/plugins/selection/gap-cursor/direction.js +3 -3
  206. package/dist/es2019/plugins/selection/types.js +3 -3
  207. package/dist/es2019/plugins/status/ui/statusPicker.js +6 -7
  208. package/dist/es2019/plugins/tasks-and-decisions/nodeviews/taskItem.js +9 -11
  209. package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/commands.js +15 -3
  210. package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/keymaps.js +6 -16
  211. package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/main.js +3 -3
  212. package/dist/es2019/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.js +6 -5
  213. package/dist/es2019/plugins/tasks-and-decisions/utils.js +30 -0
  214. package/dist/es2019/plugins/text-color/pm-plugins/main.js +3 -3
  215. package/dist/es2019/plugins/text-formatting/pm-plugins/input-rule.js +3 -3
  216. package/dist/es2019/plugins/text-formatting/ui/Toolbar/types.js +3 -3
  217. package/dist/es2019/plugins/type-ahead/constants.js +3 -3
  218. package/dist/es2019/plugins/type-ahead/pm-plugins/actions.js +3 -3
  219. package/dist/es2019/plugins/undo-redo/enums.js +3 -3
  220. package/dist/es2019/ui/Appearance/Comment/Comment.js +3 -3
  221. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -2
  222. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +2 -1
  223. package/dist/es2019/ui/ColorPickerButton/index.js +5 -3
  224. package/dist/es2019/ui/ConfigPanel/ConfigPanel.js +3 -4
  225. package/dist/es2019/ui/ConfigPanel/types.js +6 -6
  226. package/dist/es2019/ui/ElementBrowser/hooks/use-select-and-focus-on-arrow-navigation.js +3 -3
  227. package/dist/es2019/ui/ElementBrowser/types.js +3 -3
  228. package/dist/es2019/ui/ToolbarArrowKeyNavigationProvider/index.js +18 -2
  229. package/dist/es2019/ui/ToolbarFeedback/index.js +1 -3
  230. package/dist/es2019/utils/insert.js +3 -3
  231. package/dist/es2019/utils/performance/simple-measure-to-entries.js +1 -1
  232. package/dist/es2019/utils/performance/track-transactions.js +3 -2
  233. package/dist/es2019/version-wrapper.js +1 -1
  234. package/dist/es2019/version.json +1 -1
  235. package/dist/esm/actions/index.js +90 -98
  236. package/dist/esm/create-editor/ErrorBoundary.js +86 -93
  237. package/dist/esm/create-editor/ReactEditorViewInternal.js +6 -5
  238. package/dist/esm/editor-next/index.js +5 -6
  239. package/dist/esm/editor-next/utils/sendDurationAnalytics.js +34 -37
  240. package/dist/esm/editor-next/utils/trackEditorActions.js +48 -51
  241. package/dist/esm/editor.js +29 -34
  242. package/dist/esm/i18n/cs.js +34 -6
  243. package/dist/esm/i18n/da.js +34 -6
  244. package/dist/esm/i18n/de.js +34 -7
  245. package/dist/esm/i18n/en.js +31 -4
  246. package/dist/esm/i18n/en_GB.js +34 -7
  247. package/dist/esm/i18n/en_ZZ.js +35 -8
  248. package/dist/esm/i18n/es.js +33 -6
  249. package/dist/esm/i18n/fi.js +33 -6
  250. package/dist/esm/i18n/fr.js +34 -7
  251. package/dist/esm/i18n/hu.js +33 -6
  252. package/dist/esm/i18n/it.js +34 -7
  253. package/dist/esm/i18n/ja.js +33 -6
  254. package/dist/esm/i18n/ko.js +33 -6
  255. package/dist/esm/i18n/nb.js +35 -8
  256. package/dist/esm/i18n/nl.js +34 -7
  257. package/dist/esm/i18n/pl.js +34 -7
  258. package/dist/esm/i18n/pt_BR.js +34 -7
  259. package/dist/esm/i18n/ru.js +34 -7
  260. package/dist/esm/i18n/sv.js +33 -6
  261. package/dist/esm/i18n/th.js +34 -7
  262. package/dist/esm/i18n/tr.js +33 -6
  263. package/dist/esm/i18n/uk.js +34 -7
  264. package/dist/esm/i18n/vi.js +35 -8
  265. package/dist/esm/i18n/zh.js +33 -4
  266. package/dist/esm/i18n/zh_TW.js +33 -6
  267. package/dist/esm/plugins/analytics/plugin.js +1 -1
  268. package/dist/esm/plugins/annotation/pm-plugins/inline-comment.js +39 -44
  269. package/dist/esm/plugins/annotation/pm-plugins/types.js +3 -3
  270. package/dist/esm/plugins/annotation/types.js +3 -3
  271. package/dist/esm/plugins/base/pm-plugins/decoration.js +3 -3
  272. package/dist/esm/plugins/block-type/commands/block-type.js +1 -1
  273. package/dist/esm/plugins/card/nodeviews/embedCard.js +5 -6
  274. package/dist/esm/plugins/card/ui/EditLinkToolbar.js +3 -4
  275. package/dist/esm/plugins/card/ui/EditorSmartCardEventsNext.js +17 -2
  276. package/dist/esm/plugins/collab-edit/index.js +29 -32
  277. package/dist/esm/plugins/collab-edit/plugin-state.js +2 -4
  278. package/dist/esm/plugins/custom-autoformat/doc.js +28 -31
  279. package/dist/esm/plugins/custom-autoformat/index.js +20 -23
  280. package/dist/esm/plugins/date/ui/DatePicker/date-picker-input.js +7 -10
  281. package/dist/esm/plugins/date/utils/internal.js +1 -1
  282. package/dist/esm/plugins/emoji/pm-plugins/ascii-input-rules.js +27 -28
  283. package/dist/esm/plugins/extension/actions.js +36 -39
  284. package/dist/esm/plugins/extension/context-panel.js +123 -129
  285. package/dist/esm/plugins/extension/pm-plugins/main.js +82 -88
  286. package/dist/esm/plugins/extension/pm-plugins/utils.js +46 -51
  287. package/dist/esm/plugins/extension/ui/Extension/ExtensionComponent.js +44 -49
  288. package/dist/esm/plugins/feedback-dialog/index.js +52 -57
  289. package/dist/esm/plugins/feedback-dialog/loadJiraCollectorDialogScript.js +44 -47
  290. package/dist/esm/plugins/find-replace/actions.js +3 -3
  291. package/dist/esm/plugins/find-replace/utils/batch-decorations.js +144 -153
  292. package/dist/esm/plugins/find-replace/utils/index.js +2 -2
  293. package/dist/esm/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +40 -47
  294. package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +2 -1
  295. package/dist/esm/plugins/fragment/pm-plugins/fragment-consistency.js +78 -76
  296. package/dist/esm/plugins/history/actions.js +3 -3
  297. package/dist/esm/plugins/hyperlink/HyperlinkToolbarAppearance.js +76 -83
  298. package/dist/esm/plugins/hyperlink/pm-plugins/input-rule.js +3 -0
  299. package/dist/esm/plugins/hyperlink/pm-plugins/main.js +14 -14
  300. package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +339 -353
  301. package/dist/esm/plugins/hyperlink/utils.js +3 -0
  302. package/dist/esm/plugins/image-upload/pm-plugins/main.js +24 -27
  303. package/dist/esm/plugins/list/utils/node.js +3 -3
  304. package/dist/esm/plugins/macro/actions.js +107 -112
  305. package/dist/esm/plugins/media/nodeviews/mediaGroup.js +43 -46
  306. package/dist/esm/plugins/media/nodeviews/mediaInline.js +62 -67
  307. package/dist/esm/plugins/media/nodeviews/mediaNodeUpdater.js +544 -575
  308. package/dist/esm/plugins/media/nodeviews/mediaNodeView/media.js +38 -43
  309. package/dist/esm/plugins/media/nodeviews/mediaSingle.js +108 -114
  310. package/dist/esm/plugins/media/picker-facade.js +22 -25
  311. package/dist/esm/plugins/media/pm-plugins/linking/actions.js +3 -3
  312. package/dist/esm/plugins/media/pm-plugins/main.js +159 -173
  313. package/dist/esm/plugins/media/pm-plugins/mediaTaskManager.js +36 -39
  314. package/dist/esm/plugins/media/toolbar/utils.js +30 -33
  315. package/dist/esm/plugins/media/ui/MediaPicker/PickerFacadeProvider.js +71 -74
  316. package/dist/esm/plugins/media/ui/ResizableMediaSingle/index.js +52 -57
  317. package/dist/esm/plugins/media/utils/check-media-type.js +37 -40
  318. package/dist/esm/plugins/mentions/nodeviews/mention.js +29 -32
  319. package/dist/esm/plugins/mentions/type-ahead/index.js +1 -1
  320. package/dist/esm/plugins/mobile-dimensions/actions.js +3 -3
  321. package/dist/esm/plugins/paste/actions.js +3 -3
  322. package/dist/esm/plugins/paste/handlers.js +23 -26
  323. package/dist/esm/plugins/paste/linkify-md-plugin.js +3 -0
  324. package/dist/esm/plugins/paste/md.js +3 -0
  325. package/dist/esm/plugins/paste/newline-md-plugin.js +3 -0
  326. package/dist/esm/plugins/paste/paragraph-md-plugin.js +3 -0
  327. package/dist/esm/plugins/paste/pm-plugins/main.js +25 -28
  328. package/dist/esm/plugins/quick-insert/index.js +30 -33
  329. package/dist/esm/plugins/selection/actions.js +3 -3
  330. package/dist/esm/plugins/selection/gap-cursor/direction.js +3 -3
  331. package/dist/esm/plugins/selection/types.js +3 -3
  332. package/dist/esm/plugins/status/ui/statusPicker.js +6 -7
  333. package/dist/esm/plugins/tasks-and-decisions/nodeviews/taskItem.js +9 -10
  334. package/dist/esm/plugins/tasks-and-decisions/pm-plugins/commands.js +17 -7
  335. package/dist/esm/plugins/tasks-and-decisions/pm-plugins/keymaps.js +13 -21
  336. package/dist/esm/plugins/tasks-and-decisions/pm-plugins/main.js +3 -3
  337. package/dist/esm/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.js +41 -43
  338. package/dist/esm/plugins/tasks-and-decisions/utils.js +28 -0
  339. package/dist/esm/plugins/text-color/pm-plugins/main.js +3 -3
  340. package/dist/esm/plugins/text-formatting/pm-plugins/input-rule.js +3 -3
  341. package/dist/esm/plugins/text-formatting/ui/Toolbar/types.js +3 -3
  342. package/dist/esm/plugins/type-ahead/constants.js +3 -3
  343. package/dist/esm/plugins/type-ahead/pm-plugins/actions.js +3 -3
  344. package/dist/esm/plugins/undo-redo/enums.js +3 -3
  345. package/dist/esm/ui/Appearance/Comment/Comment.js +3 -3
  346. package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -2
  347. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +2 -1
  348. package/dist/esm/ui/ColorPickerButton/index.js +3 -2
  349. package/dist/esm/ui/ConfigPanel/ConfigPanel.js +68 -74
  350. package/dist/esm/ui/ConfigPanel/Fields/CustomSelect.js +54 -57
  351. package/dist/esm/ui/ConfigPanel/Fields/UserSelect.js +51 -56
  352. package/dist/esm/ui/ConfigPanel/FormErrorBoundary.js +24 -27
  353. package/dist/esm/ui/ConfigPanel/transformers.js +344 -362
  354. package/dist/esm/ui/ConfigPanel/types.js +6 -6
  355. package/dist/esm/ui/Dropdown/index.js +2 -1
  356. package/dist/esm/ui/DropdownMenu/index.js +2 -1
  357. package/dist/esm/ui/ElementBrowser/hooks/use-select-and-focus-on-arrow-navigation.js +3 -3
  358. package/dist/esm/ui/ElementBrowser/types.js +3 -3
  359. package/dist/esm/ui/LinkSearch/index.js +94 -101
  360. package/dist/esm/ui/ToolbarArrowKeyNavigationProvider/index.js +18 -2
  361. package/dist/esm/ui/ToolbarFeedback/index.js +27 -31
  362. package/dist/esm/utils/action.js +31 -36
  363. package/dist/esm/utils/clipboard.js +82 -87
  364. package/dist/esm/utils/deprecation-warnings.js +1 -1
  365. package/dist/esm/utils/extensions.js +62 -67
  366. package/dist/esm/utils/insert.js +3 -3
  367. package/dist/esm/utils/mark.js +2 -2
  368. package/dist/esm/utils/performance/simple-measure-to-entries.js +1 -2
  369. package/dist/esm/utils/performance/track-transactions.js +3 -2
  370. package/dist/esm/version-wrapper.js +1 -1
  371. package/dist/esm/version.json +1 -1
  372. package/dist/types/create-editor/ReactEditorViewInternal.d.ts +1 -0
  373. package/dist/types/i18n/cs.d.ts +29 -2
  374. package/dist/types/i18n/da.d.ts +29 -2
  375. package/dist/types/i18n/de.d.ts +28 -2
  376. package/dist/types/i18n/en.d.ts +28 -2
  377. package/dist/types/i18n/en_GB.d.ts +31 -5
  378. package/dist/types/i18n/en_ZZ.d.ts +28 -2
  379. package/dist/types/i18n/es.d.ts +28 -2
  380. package/dist/types/i18n/fi.d.ts +28 -2
  381. package/dist/types/i18n/fr.d.ts +28 -2
  382. package/dist/types/i18n/hu.d.ts +28 -2
  383. package/dist/types/i18n/it.d.ts +28 -2
  384. package/dist/types/i18n/ja.d.ts +28 -2
  385. package/dist/types/i18n/ko.d.ts +28 -2
  386. package/dist/types/i18n/nb.d.ts +28 -2
  387. package/dist/types/i18n/nl.d.ts +28 -2
  388. package/dist/types/i18n/pl.d.ts +28 -2
  389. package/dist/types/i18n/pt_BR.d.ts +28 -2
  390. package/dist/types/i18n/ru.d.ts +28 -2
  391. package/dist/types/i18n/sv.d.ts +28 -2
  392. package/dist/types/i18n/th.d.ts +28 -2
  393. package/dist/types/i18n/tr.d.ts +28 -2
  394. package/dist/types/i18n/uk.d.ts +28 -2
  395. package/dist/types/i18n/vi.d.ts +28 -2
  396. package/dist/types/i18n/zh.d.ts +30 -2
  397. package/dist/types/i18n/zh_TW.d.ts +28 -2
  398. package/dist/types/plugins/code-block/language-list.d.ts +1 -1
  399. package/dist/types/plugins/tasks-and-decisions/utils.d.ts +2 -0
  400. package/dist/types/ui/ToolbarArrowKeyNavigationProvider/index.d.ts +3 -1
  401. package/dist/types/utils/document.d.ts +2 -2
  402. package/package.json +97 -97
  403. package/report.api.md +1 -1
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -7,13 +8,13 @@
7
8
  //Chinese (Simplified)
8
9
  export default {
9
10
  'fabric.editor.addAltText': '替代文本',
11
+ 'fabric.editor.addImageBorder': '添加边框',
10
12
  'fabric.editor.alignCenter': '居中对齐',
11
13
  'fabric.editor.alignLeft': '左对齐',
12
14
  'fabric.editor.alignRight': '右对齐',
13
15
  'fabric.editor.alignment': '文本对齐',
14
16
  'fabric.editor.altText': '替代文本',
15
17
  'fabric.editor.alttext.validation': '请删除替换文字中的所有特殊字符。',
16
- 'fabric.editor.annotate': '标注',
17
18
  'fabric.editor.annotationToolbar': '标注工具栏',
18
19
  'fabric.editor.backLink': '返回',
19
20
  'fabric.editor.blockCardUnavailable': '内嵌链接位于 {node} 内部,无法更改其视图',
@@ -60,6 +61,7 @@ export default {
60
61
  'fabric.editor.customPanel.description': '使用表情和彩色背景来添加注释',
61
62
  'fabric.editor.decisionPlaceholder': '添加决定...',
62
63
  'fabric.editor.defaultAltText': '列出项目',
64
+ 'fabric.editor.description': '描述',
63
65
  'fabric.editor.displayBlock': '显示卡片',
64
66
  'fabric.editor.displayEmbed': '显示嵌入',
65
67
  'fabric.editor.displayInline': '显示内嵌',
@@ -75,6 +77,7 @@ export default {
75
77
  'fabric.editor.editStatusColor': '编辑状态颜色',
76
78
  'fabric.editor.editStatusText': '编辑状态',
77
79
  'fabric.editor.editableContentLabel': '可编辑内容',
80
+ 'fabric.editor.editorAssistiveLabel': '主内容区域,开始键入以输入文本。',
78
81
  'fabric.editor.editorHelp': '编辑器帮助',
79
82
  'fabric.editor.editors': '编辑者',
80
83
  'fabric.editor.elementBrowser.help': '帮助',
@@ -99,16 +102,22 @@ export default {
99
102
  'fabric.editor.error': '错误',
100
103
  'fabric.editor.errorPanel': '错误面板',
101
104
  'fabric.editor.errorPanel.description': '在彩色面板调出错误',
105
+ 'fabric.editor.extension.confirmDeleteLinkedModalMessage': '删除 {nodeName} 将断开与其连接的所有内容。',
106
+ 'fabric.editor.extension.confirmDeleteLinkedModalOKButton': '删除',
107
+ 'fabric.editor.extension.deleteElementTitle': '删除元素',
102
108
  'fabric.editor.extensions.config-panel.save-indicator': '始终自动保存所有更改',
103
109
  'fabric.editor.find': '查找',
104
110
  'fabric.editor.findNext': '查找下一个',
105
111
  'fabric.editor.findPrevious': '查找上一个',
106
112
  'fabric.editor.findReplaceToolbarButton': '查找和替换',
107
113
  'fabric.editor.floatingToolbar.confirmModalCancel': '取消',
114
+ 'fabric.editor.floatingToolbar.confirmModalCheckboxLabel': '同时删除已连接的元素',
108
115
  'fabric.editor.floatingToolbar.confirmModalHeading': '您确定吗?',
109
116
  'fabric.editor.floatingToolbar.confirmModalOK': '确定',
110
117
  'fabric.editor.floatingToolbar.floatingToolbarAnnouncer': '浮动工具栏控件已打开',
111
118
  'fabric.editor.floatingToolbar.floatingToolbarAriaLabel': '浮动工具栏',
119
+ 'fabric.editor.floatingToolbar.scrollLeft': '向左滚动',
120
+ 'fabric.editor.floatingToolbar.scrollRight': '向右滚动',
112
121
  'fabric.editor.heading1': '标题 1',
113
122
  'fabric.editor.heading1Description': '用于顶级标题',
114
123
  'fabric.editor.heading2': '标题 2',
@@ -133,6 +142,12 @@ export default {
133
142
  'fabric.editor.hyperlink.searchLinkAriaDescription': '在字段中输入内容时,下方会显示建议内容',
134
143
  'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {未找到结果} other {找到 {count,number} 个结果}}',
135
144
  'fabric.editor.hyperlinkToolbarPlaceholder': '粘贴或搜索链接',
145
+ 'fabric.editor.imageBorderBold': '粗体',
146
+ 'fabric.editor.imageBorderColor': '颜色',
147
+ 'fabric.editor.imageBorderMedium': '中等',
148
+ 'fabric.editor.imageBorderOptions': '边框选项',
149
+ 'fabric.editor.imageBorderSize': '大小',
150
+ 'fabric.editor.imageBorderSubtle': '细微',
136
151
  'fabric.editor.improvement': '改进',
137
152
  'fabric.editor.indent': '增大缩进',
138
153
  'fabric.editor.info': '信息',
@@ -154,9 +169,12 @@ export default {
154
169
  'fabric.editor.matchCase': '匹配大小写',
155
170
  'fabric.editor.mediaAddLink': '添加链接',
156
171
  'fabric.editor.mediaGroupDeleteLabel': '删除',
172
+ 'fabric.editor.mentionNode.label': '已标记用户',
157
173
  'fabric.editor.mentionsAddLabel': '“添加”图标',
158
174
  'fabric.editor.mentionsIconLabel': '提及',
159
175
  'fabric.editor.moreFormatting': '更多格式',
176
+ 'fabric.editor.navigate.toolbar.editor': '导航到编辑器工具栏',
177
+ 'fabric.editor.navigate.toolbar.floating': '导航到浮动工具栏',
160
178
  'fabric.editor.noResultsFound': '无结果',
161
179
  'fabric.editor.noSearchResults': '无搜索结果',
162
180
  'fabric.editor.normal': '普通文本',
@@ -177,6 +195,7 @@ export default {
177
195
  'fabric.editor.placeholderTextPlaceholder': '添加占位文本',
178
196
  'fabric.editor.quickInsert': '快速插入',
179
197
  'fabric.editor.redo': '重试',
198
+ 'fabric.editor.removeImageBorder': '移除边框',
180
199
  'fabric.editor.replace': '替换',
181
200
  'fabric.editor.replaceAll': '全部替换',
182
201
  'fabric.editor.replaceWith': '替换为',
@@ -185,6 +204,7 @@ export default {
185
204
  'fabric.editor.searchResults': '{itemsLength, plural, other {{itemsLength,number} 个搜索结果可用}}',
186
205
  'fabric.editor.selectLanguage': '选择语言',
187
206
  'fabric.editor.settingsLinks': '转到“链接首选项”',
207
+ 'fabric.editor.shortcut': '文本快捷方式',
188
208
  'fabric.editor.single': '单列',
189
209
  'fabric.editor.statusPlaceholder': '设置状态',
190
210
  'fabric.editor.story': '故事',
@@ -206,9 +226,17 @@ export default {
206
226
  'fabric.editor.threeColumns': '三栏',
207
227
  'fabric.editor.threeColumnsWithSidebars': '具有侧边栏的三列',
208
228
  'fabric.editor.toolbarLabel': '编辑器工具栏',
209
- 'fabric.editor.toolbarMediaTitle': '文件和图像',
229
+ 'fabric.editor.toolbarMediaTitle': '添加图像、视频或文件',
210
230
  'fabric.editor.twoColumns': '两栏',
211
- 'fabric.editor.typeAheadResultLabel': '输入提示结果',
231
+ 'fabric.editor.typeAhead.popupLabel': '输入提示结果',
232
+ 'fabric.editor.typeAhead.quickInsertInputLabel': '开始输入以搜索或筛选快捷方式选项',
233
+ 'fabric.editor.typeAhead.quickInsertPopupLabel': '插入操作和格式设置操作的快捷方式',
234
+ 'fabric.editor.typeahead.emojiInputLabel': '开始输入以搜索或筛选表情选项',
235
+ 'fabric.editor.typeahead.emojiListItemLabel': '表情 {name} 文本快捷方式 {shortcut}',
236
+ 'fabric.editor.typeahead.emojiPopupLabel': '表情快捷方式',
237
+ 'fabric.editor.typeahead.mentionInputLabel': '开始输入以搜索要标记的用户',
238
+ 'fabric.editor.typeahead.mentionPopupLabel': '您可以标记的用户',
239
+ 'fabric.editor.typeahead.metionListItemLabel': '用户 {name} @{shortName}',
212
240
  'fabric.editor.unableToOpenLink': '无法打开此链接',
213
241
  'fabric.editor.underline': '下划线',
214
242
  'fabric.editor.undo': '撤销',
@@ -222,5 +250,6 @@ export default {
222
250
  'fabric.editor.warningPanel': '警告面板',
223
251
  'fabric.editor.warningPanel.description': '在彩色面板添加提醒注释',
224
252
  'fabric.editor.wrapLeft': '隐藏左边',
225
- 'fabric.editor.wrapRight': '隐藏右边'
253
+ 'fabric.editor.wrapRight': '隐藏右边',
254
+ 'fabric.emoji.label': '表情'
226
255
  };
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -7,13 +8,13 @@
7
8
  //Chinese (Traditional)
8
9
  export default {
9
10
  'fabric.editor.addAltText': '替代文字',
11
+ 'fabric.editor.addImageBorder': '新增邊框',
10
12
  'fabric.editor.alignCenter': '置中對齊',
11
13
  'fabric.editor.alignLeft': '靠左對齊',
12
14
  'fabric.editor.alignRight': '靠右對齊',
13
15
  'fabric.editor.alignment': '文字對齊',
14
16
  'fabric.editor.altText': '替代文字',
15
17
  'fabric.editor.alttext.validation': '請移除替代文字中的所有特殊字元。',
16
- 'fabric.editor.annotate': '標註',
17
18
  'fabric.editor.annotationToolbar': '註解工具列',
18
19
  'fabric.editor.backLink': '返回',
19
20
  'fabric.editor.blockCardUnavailable': '內嵌連結位於 {node} 內,無法變更其檢視',
@@ -60,6 +61,7 @@ export default {
60
61
  'fabric.editor.customPanel.description': '新增一個帶有表情符號和彩色背景的附註',
61
62
  'fabric.editor.decisionPlaceholder': '新增決定…',
62
63
  'fabric.editor.defaultAltText': '清單項目',
64
+ 'fabric.editor.description': '描述',
63
65
  'fabric.editor.displayBlock': '顯示卡片',
64
66
  'fabric.editor.displayEmbed': '顯示嵌入',
65
67
  'fabric.editor.displayInline': '顯示內嵌',
@@ -75,6 +77,7 @@ export default {
75
77
  'fabric.editor.editStatusColor': '編輯狀態顏色',
76
78
  'fabric.editor.editStatusText': '編輯狀態',
77
79
  'fabric.editor.editableContentLabel': '可編輯內容',
80
+ 'fabric.editor.editorAssistiveLabel': '主要內容區域,打字即可輸入文字。',
78
81
  'fabric.editor.editorHelp': '編輯器說明',
79
82
  'fabric.editor.editors': '編輯者',
80
83
  'fabric.editor.elementBrowser.help': '說明',
@@ -99,18 +102,22 @@ export default {
99
102
  'fabric.editor.error': '錯誤',
100
103
  'fabric.editor.errorPanel': '錯誤面板',
101
104
  'fabric.editor.errorPanel.description': '以彩色面板呼叫錯誤',
102
- 'fabric.editor.extension.confirmDeleteLinkedModalMessage': '移除此擴充功能會中斷所有與之連結的項目。',
103
- 'fabric.editor.extension.confirmDeleteLinkedModalOKButton': '移除擴充功能',
105
+ 'fabric.editor.extension.confirmDeleteLinkedModalMessage': '刪除 {nodeName} 將中斷與其連結的任何內容。',
106
+ 'fabric.editor.extension.confirmDeleteLinkedModalOKButton': '刪除',
107
+ 'fabric.editor.extension.deleteElementTitle': '刪除元素',
104
108
  'fabric.editor.extensions.config-panel.save-indicator': '系統會隨時自動儲存所有變更',
105
109
  'fabric.editor.find': '尋找',
106
110
  'fabric.editor.findNext': '尋找下一個',
107
111
  'fabric.editor.findPrevious': '尋找上一個',
108
112
  'fabric.editor.findReplaceToolbarButton': '尋找與取代',
109
113
  'fabric.editor.floatingToolbar.confirmModalCancel': '取消',
114
+ 'fabric.editor.floatingToolbar.confirmModalCheckboxLabel': '同時刪除已連結的元素',
110
115
  'fabric.editor.floatingToolbar.confirmModalHeading': '您確定嗎?',
111
116
  'fabric.editor.floatingToolbar.confirmModalOK': '確定',
112
117
  'fabric.editor.floatingToolbar.floatingToolbarAnnouncer': '已開啟浮動工具列控制項',
113
118
  'fabric.editor.floatingToolbar.floatingToolbarAriaLabel': '浮動工具列',
119
+ 'fabric.editor.floatingToolbar.scrollLeft': '向左捲動',
120
+ 'fabric.editor.floatingToolbar.scrollRight': '向右捲動',
114
121
  'fabric.editor.heading1': '標題 1',
115
122
  'fabric.editor.heading1Description': '用於最高層級的標題',
116
123
  'fabric.editor.heading2': '標題 2',
@@ -135,6 +142,12 @@ export default {
135
142
  'fabric.editor.hyperlink.searchLinkAriaDescription': '當您在欄位中輸入內容時,建議會顯示在下方',
136
143
  'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {沒有找到任何結果} other {找到 {count,number} 個結果}}',
137
144
  'fabric.editor.hyperlinkToolbarPlaceholder': '貼上或搜尋連結',
145
+ 'fabric.editor.imageBorderBold': '粗體',
146
+ 'fabric.editor.imageBorderColor': '顏色',
147
+ 'fabric.editor.imageBorderMedium': '普通',
148
+ 'fabric.editor.imageBorderOptions': '邊框選項',
149
+ 'fabric.editor.imageBorderSize': '大小',
150
+ 'fabric.editor.imageBorderSubtle': '不明顯的',
138
151
  'fabric.editor.improvement': '改善',
139
152
  'fabric.editor.indent': '增加縮排',
140
153
  'fabric.editor.info': '資訊',
@@ -156,9 +169,12 @@ export default {
156
169
  'fabric.editor.matchCase': '大小寫須相符',
157
170
  'fabric.editor.mediaAddLink': '新增連結',
158
171
  'fabric.editor.mediaGroupDeleteLabel': '刪除',
172
+ 'fabric.editor.mentionNode.label': '已標記使用者',
159
173
  'fabric.editor.mentionsAddLabel': '新增圖示',
160
174
  'fabric.editor.mentionsIconLabel': '提及',
161
175
  'fabric.editor.moreFormatting': '更多格式設定',
176
+ 'fabric.editor.navigate.toolbar.editor': '導覽至編輯器工具列',
177
+ 'fabric.editor.navigate.toolbar.floating': '導覽至浮動工具列',
162
178
  'fabric.editor.noResultsFound': '沒有結果',
163
179
  'fabric.editor.noSearchResults': '沒有搜尋結果',
164
180
  'fabric.editor.normal': '一般文字',
@@ -179,6 +195,7 @@ export default {
179
195
  'fabric.editor.placeholderTextPlaceholder': '新增預留位置文字',
180
196
  'fabric.editor.quickInsert': '快速插入',
181
197
  'fabric.editor.redo': '重做',
198
+ 'fabric.editor.removeImageBorder': '移除邊框',
182
199
  'fabric.editor.replace': '取代',
183
200
  'fabric.editor.replaceAll': '全部取代',
184
201
  'fabric.editor.replaceWith': '取代為',
@@ -187,6 +204,7 @@ export default {
187
204
  'fabric.editor.searchResults': '{itemsLength, plural, other {{itemsLength,number} 個搜尋結果}}',
188
205
  'fabric.editor.selectLanguage': '選取語言',
189
206
  'fabric.editor.settingsLinks': '前往連結偏好設定',
207
+ 'fabric.editor.shortcut': '文字快顯',
190
208
  'fabric.editor.single': '單欄',
191
209
  'fabric.editor.statusPlaceholder': '設定狀態',
192
210
  'fabric.editor.story': '故事',
@@ -208,9 +226,17 @@ export default {
208
226
  'fabric.editor.threeColumns': '三欄',
209
227
  'fabric.editor.threeColumnsWithSidebars': '三個包含資訊看板的直欄',
210
228
  'fabric.editor.toolbarLabel': '編輯器工具列',
211
- 'fabric.editor.toolbarMediaTitle': '檔案與影像',
229
+ 'fabric.editor.toolbarMediaTitle': '新增圖片、影片或檔案',
212
230
  'fabric.editor.twoColumns': '兩欄',
213
- 'fabric.editor.typeAheadResultLabel': '自動提示結果',
231
+ 'fabric.editor.typeAhead.popupLabel': '自動提示結果',
232
+ 'fabric.editor.typeAhead.quickInsertInputLabel': '開始輸入以搜尋或篩選快速鍵選項',
233
+ 'fabric.editor.typeAhead.quickInsertPopupLabel': '插入和格式化的快速鍵',
234
+ 'fabric.editor.typeahead.emojiInputLabel': '開始輸入以搜尋或篩選表情符號選項',
235
+ 'fabric.editor.typeahead.emojiListItemLabel': '表情符號 {name} 文字快速鍵 {shortcut}',
236
+ 'fabric.editor.typeahead.emojiPopupLabel': '表情符號快速鍵',
237
+ 'fabric.editor.typeahead.mentionInputLabel': '開始輸入以搜尋要標記的使用者',
238
+ 'fabric.editor.typeahead.mentionPopupLabel': '您可以標記的使用者',
239
+ 'fabric.editor.typeahead.metionListItemLabel': '使用者 {name} @{shortName}',
214
240
  'fabric.editor.unableToOpenLink': '無法開啟此連結',
215
241
  'fabric.editor.underline': '底線',
216
242
  'fabric.editor.undo': '復原',
@@ -224,5 +250,6 @@ export default {
224
250
  'fabric.editor.warningPanel': '警告面板',
225
251
  'fabric.editor.warningPanel.description': '以彩色面板新增注意附註',
226
252
  'fabric.editor.wrapLeft': '靠左圍繞',
227
- 'fabric.editor.wrapRight': '靠右圍繞'
253
+ 'fabric.editor.wrapRight': '靠右圍繞',
254
+ 'fabric.emoji.label': '表情符號'
228
255
  };
@@ -1,5 +1,4 @@
1
- export let ACTIONS;
2
- (function (ACTIONS) {
1
+ export let ACTIONS = /*#__PURE__*/function (ACTIONS) {
3
2
  ACTIONS[ACTIONS["UPDATE_INLINE_COMMENT_STATE"] = 0] = "UPDATE_INLINE_COMMENT_STATE";
4
3
  ACTIONS[ACTIONS["SET_INLINE_COMMENT_DRAFT_STATE"] = 1] = "SET_INLINE_COMMENT_DRAFT_STATE";
5
4
  ACTIONS[ACTIONS["INLINE_COMMENT_UPDATE_MOUSE_STATE"] = 2] = "INLINE_COMMENT_UPDATE_MOUSE_STATE";
@@ -7,4 +6,5 @@ export let ACTIONS;
7
6
  ACTIONS[ACTIONS["ADD_INLINE_COMMENT"] = 4] = "ADD_INLINE_COMMENT";
8
7
  ACTIONS[ACTIONS["INLINE_COMMENT_SET_VISIBLE"] = 5] = "INLINE_COMMENT_SET_VISIBLE";
9
8
  ACTIONS[ACTIONS["CLOSE_COMPONENT"] = 6] = "CLOSE_COMPONENT";
10
- })(ACTIONS || (ACTIONS = {}));
9
+ return ACTIONS;
10
+ }({});
@@ -1,9 +1,9 @@
1
- export let AnnotationSelectionType; // Annotation can be created
2
- (function (AnnotationSelectionType) {
1
+ export let AnnotationSelectionType = /*#__PURE__*/function (AnnotationSelectionType) {
3
2
  AnnotationSelectionType["INVALID"] = "invalid";
4
3
  AnnotationSelectionType["DISABLED"] = "disabled";
5
4
  AnnotationSelectionType["VALID"] = "valid";
6
- })(AnnotationSelectionType || (AnnotationSelectionType = {}));
5
+ return AnnotationSelectionType;
6
+ }({}); // Annotation can be created
7
7
  const prefix = 'ak-editor-annotation';
8
8
  export const AnnotationTestIds = {
9
9
  prefix,
@@ -3,11 +3,11 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import { PluginKey, NodeSelection } from 'prosemirror-state';
4
4
  import { findParentNodeOfType } from 'prosemirror-utils';
5
5
  export const decorationStateKey = new PluginKey('decorationPlugin');
6
- export let ACTIONS;
7
- (function (ACTIONS) {
6
+ export let ACTIONS = /*#__PURE__*/function (ACTIONS) {
8
7
  ACTIONS[ACTIONS["DECORATION_ADD"] = 0] = "DECORATION_ADD";
9
8
  ACTIONS[ACTIONS["DECORATION_REMOVE"] = 1] = "DECORATION_REMOVE";
10
- })(ACTIONS || (ACTIONS = {}));
9
+ return ACTIONS;
10
+ }({});
11
11
  export const hoverDecoration = (nodeType, add, className = 'danger') => (state, dispatch) => {
12
12
  let from;
13
13
  let parentNode;
@@ -114,6 +114,11 @@ export class EmbedCardComponent extends React.PureComponent {
114
114
  }
115
115
  return originalLineLength;
116
116
  });
117
+ /**
118
+ * Even though render is capable of listening and reacting to iframely wrapper iframe sent `resize` events
119
+ * it's good idea to store latest actual height in ADF, so that when renderer (well, editor as well) is loading
120
+ * we will show embed window of appropriate size and avoid unnecessary content jumping.
121
+ */
117
122
  _defineProperty(this, "saveOriginalDimensionsAttributes", (height, width) => {
118
123
  const {
119
124
  view
@@ -164,13 +169,6 @@ export class EmbedCardComponent extends React.PureComponent {
164
169
  const scrollContainer = findOverflowScrollParent(view.dom);
165
170
  this.scrollContainer = scrollContainer || undefined;
166
171
  }
167
-
168
- /**
169
- * Even though render is capable of listening and reacting to iframely wrapper iframe sent `resize` events
170
- * it's good idea to store latest actual height in ADF, so that when renderer (well, editor as well) is loading
171
- * we will show embed window of appropriate size and avoid unnecessary content jumping.
172
- */
173
-
174
172
  render() {
175
173
  const {
176
174
  node,
@@ -16,6 +16,9 @@ const HyperLinkToolbarWithListeners = withOuterListeners(HyperlinkToolbar);
16
16
  export class EditLinkToolbar extends React.Component {
17
17
  constructor(...args) {
18
18
  super(...args);
19
+ /** Focus should move to the 'Edit link' button when the toolbar closes
20
+ * and not close the floating toolbar.
21
+ */
19
22
  _defineProperty(this, "handleEsc", e => {
20
23
  forceFocusSelector(`[aria-label="${linkToolbarMessages.editLink.defaultMessage}"]`, this.props.view);
21
24
  });
@@ -28,11 +31,6 @@ export class EditLinkToolbar extends React.Component {
28
31
  componentWillUnmount() {
29
32
  this.hideLinkToolbar();
30
33
  }
31
-
32
- /** Focus should move to the 'Edit link' button when the toolbar closes
33
- * and not close the floating toolbar.
34
- */
35
-
36
34
  hideLinkToolbar() {
37
35
  const {
38
36
  view
@@ -4,8 +4,10 @@ import { useEffect, useMemo } from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import { useSmartLinkLifecycleAnalytics } from '@atlaskit/link-analytics';
6
6
  import { INPUT_METHOD, ACTION } from '@atlaskit/editor-common/analytics';
7
- import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
7
+ import { AnalyticsContext, UIAnalyticsEvent } from '@atlaskit/analytics-next';
8
8
  import { registerSmartCardEventsNext } from '../pm-plugins/actions';
9
+ import { getAnalyticsEditorAppearance } from '@atlaskit/editor-common/utils';
10
+ import { getPluginState } from '../pm-plugins/util/state';
9
11
  /**
10
12
  * If the metadata is for a history event,
11
13
  * returns undo/redo instead of instead of what fn(metadata) would have otherwise
@@ -42,6 +44,7 @@ const getMethod = withHistoryMethod(({
42
44
  case INPUT_METHOD.FLOATING_TB:
43
45
  return 'editor_floatingToolbar';
44
46
  case INPUT_METHOD.AUTO_DETECT:
47
+ case INPUT_METHOD.FORMATTING:
45
48
  return 'editor_type';
46
49
  default:
47
50
  return 'unknown';
@@ -160,6 +163,7 @@ export const EventsBinding = ({
160
163
  };
161
164
  export class EditorSmartCardEventsNext extends React.PureComponent {
162
165
  render() {
166
+ var _getPluginState;
163
167
  const cardContext = this.context.contextAdapter.card;
164
168
 
165
169
  /**
@@ -170,9 +174,20 @@ export class EditorSmartCardEventsNext extends React.PureComponent {
170
174
  if (!cardContext) {
171
175
  return null;
172
176
  }
177
+ const editorAppearance = (_getPluginState = getPluginState(this.props.editorView.state)) === null || _getPluginState === void 0 ? void 0 : _getPluginState.editorAppearance;
178
+ const analyticsEditorAppearance = getAnalyticsEditorAppearance(editorAppearance);
179
+ const analyticsData = {
180
+ attributes: {
181
+ location: analyticsEditorAppearance
182
+ },
183
+ // Below is added for the future implementation of Linking Platform namespaced analytic context
184
+ location: analyticsEditorAppearance
185
+ };
173
186
  return /*#__PURE__*/React.createElement(cardContext.Provider, {
174
187
  value: cardContext.value
175
- }, /*#__PURE__*/React.createElement(EventsBinding, this.props));
188
+ }, /*#__PURE__*/React.createElement(AnalyticsContext, {
189
+ data: analyticsData
190
+ }, /*#__PURE__*/React.createElement(EventsBinding, this.props)));
176
191
  }
177
192
  }
178
193
  _defineProperty(EditorSmartCardEventsNext, "contextTypes", {
@@ -23,8 +23,6 @@ export const getValidPos = (tr, pos) => {
23
23
  return endOfDocPos;
24
24
  };
25
25
  export class PluginState {
26
- // eslint-disable-next-line no-console
27
-
28
26
  get decorations() {
29
27
  return this.decorationSet;
30
28
  }
@@ -35,6 +33,7 @@ export class PluginState {
35
33
  return this.sid;
36
34
  }
37
35
  constructor(decorations, participants, sessionId, collabInitalised = false, onError) {
36
+ // eslint-disable-next-line no-console
38
37
  _defineProperty(this, "onError", error => console.error(error));
39
38
  this.decorationSet = decorations;
40
39
  this.participants = participants;
@@ -22,6 +22,9 @@ const messages = defineMessages({
22
22
  class DatePickerInput extends React.Component {
23
23
  constructor(props) {
24
24
  super(props);
25
+ /**
26
+ * Focus the input textfield
27
+ */
25
28
  _defineProperty(this, "focusInput", () => {
26
29
  if (!this.inputRef) {
27
30
  return;
@@ -31,6 +34,9 @@ class DatePickerInput extends React.Component {
31
34
  this.inputRef.focus();
32
35
  });
33
36
  });
37
+ /**
38
+ * Select all the input text
39
+ */
34
40
  _defineProperty(this, "selectInput", () => {
35
41
  if (!this.inputRef) {
36
42
  return;
@@ -106,6 +112,7 @@ class DatePickerInput extends React.Component {
106
112
  const newDate = parseDateType(textFieldValue, locale);
107
113
  this.props.onSubmitDate(newDate);
108
114
  });
115
+ // arrow keys are only triggered by onKeyDown, not onKeyPress
109
116
  _defineProperty(this, "handleKeyDown", event => {
110
117
  const dateString = event.target.value;
111
118
  const {
@@ -213,14 +220,6 @@ class DatePickerInput extends React.Component {
213
220
  // Don't select all text here - would seleect text on each keystroke
214
221
  }
215
222
 
216
- /**
217
- * Focus the input textfield
218
- */
219
-
220
- /**
221
- * Select all the input text
222
- */
223
-
224
223
  componentWillUnmount() {
225
224
  if (this.autofocusTimeout !== undefined) {
226
225
  clearTimeout(this.autofocusTimeout);
@@ -229,8 +228,5 @@ class DatePickerInput extends React.Component {
229
228
  clearTimeout(this.autoSelectAllTimeout);
230
229
  }
231
230
  }
232
-
233
- // arrow keys are only triggered by onKeyDown, not onKeyPress
234
231
  }
235
-
236
232
  export default injectIntl(DatePickerInput);
@@ -46,34 +46,6 @@ const getAscii = (match, withParentheses = false) => (withParentheses ? match[RE
46
46
  const getAsciiWithParentheses = matchParts => getAscii(matchParts, true);
47
47
  const getTrailingString = match => match[REGEX_TRAILING_CAPTURE_INDEX] || '';
48
48
  class AsciiEmojiMatcher {
49
- /**
50
- * This regex matches 2 scenarios:
51
- * 1. an emoticon starting with a colon character (e.g. :D => 😃)
52
- * 2. an emoticon not starting with a colon character (e.g. 8-D => 😎)
53
- *
54
- * Explanation (${leafNodeReplacementCharacter} is replaced with character \ufffc)
55
- *
56
- * 1st Capturing Group ((?:^|[\s\ufffc])(?:\(*?))
57
- * Non-capturing group (?:^|[\s\ufffc])
58
- * 1st Alternative ^
59
- * ^ asserts position at start of the string
60
- * 2nd Alternative [\s\ufffc]
61
- * matches a single character present in [\s\ufffc]
62
- * Non-capturing group (?:\(*?)
63
- * matches the character ( literally between zero and unlimited times, as few times as possible, expanding as needed (lazy)
64
- * 2nd Capturing Group (\(?)
65
- * matches a single ( if present
66
- * 3rd Capturing Group ([^:\s\ufffc\(]\S{1,3}|:\S{1,3}( ))
67
- * 1st Alternative [^:\s\ufffc\(]\S{1,3}
68
- * matches a single character not present in [^:\s\ufffc\(] between 1 and 3 times, as many times as possible, giving back as needed (greedy)
69
- * 2nd Alternative :\S{1,3}( )
70
- * : matches the character : literally
71
- * \S{1,3} matches any non-whitespace character between 1 and 3 times, as many times as possible, giving back as needed (greedy)
72
- * 4th Capturing Group ( )
73
- *
74
- * See https://regex101.com/r/HRS9O2/4
75
- */
76
-
77
49
  constructor(asciiToEmojiMap) {
78
50
  this.asciiToEmojiMap = asciiToEmojiMap;
79
51
  }
@@ -93,6 +65,33 @@ class AsciiEmojiMatcher {
93
65
  /**
94
66
  * A matcher that will record ascii matches as usages of the matched emoji.
95
67
  */
68
+ /**
69
+ * This regex matches 2 scenarios:
70
+ * 1. an emoticon starting with a colon character (e.g. :D => 😃)
71
+ * 2. an emoticon not starting with a colon character (e.g. 8-D => 😎)
72
+ *
73
+ * Explanation (${leafNodeReplacementCharacter} is replaced with character \ufffc)
74
+ *
75
+ * 1st Capturing Group ((?:^|[\s\ufffc])(?:\(*?))
76
+ * Non-capturing group (?:^|[\s\ufffc])
77
+ * 1st Alternative ^
78
+ * ^ asserts position at start of the string
79
+ * 2nd Alternative [\s\ufffc]
80
+ * matches a single character present in [\s\ufffc]
81
+ * Non-capturing group (?:\(*?)
82
+ * matches the character ( literally between zero and unlimited times, as few times as possible, expanding as needed (lazy)
83
+ * 2nd Capturing Group (\(?)
84
+ * matches a single ( if present
85
+ * 3rd Capturing Group ([^:\s\ufffc\(]\S{1,3}|:\S{1,3}( ))
86
+ * 1st Alternative [^:\s\ufffc\(]\S{1,3}
87
+ * matches a single character not present in [^:\s\ufffc\(] between 1 and 3 times, as many times as possible, giving back as needed (greedy)
88
+ * 2nd Alternative :\S{1,3}( )
89
+ * : matches the character : literally
90
+ * \S{1,3} matches any non-whitespace character between 1 and 3 times, as many times as possible, giving back as needed (greedy)
91
+ * 4th Capturing Group ( )
92
+ *
93
+ * See https://regex101.com/r/HRS9O2/4
94
+ */
96
95
  _defineProperty(AsciiEmojiMatcher, "REGEX", new RegExp(`((?:^|[\\s${leafNodeReplacementCharacter}])(?:\\(*?))(\\(?)([^:\\s${leafNodeReplacementCharacter}\\(]\\S{1,3}|:\\S{1,3}( ))$`));
97
96
  class RecordingAsciiEmojiMatcher extends AsciiEmojiMatcher {
98
97
  constructor(emojiProvider, asciiToEmojiMap) {
@@ -12,6 +12,7 @@ export default class ExtensionComponent extends Component {
12
12
  _defineProperty(this, "privatePropsParsed", false);
13
13
  _defineProperty(this, "state", {});
14
14
  _defineProperty(this, "mounted", false);
15
+ // memoized to avoid rerender on extension state changes
15
16
  _defineProperty(this, "getNodeRenderer", memoizeOne(getNodeRenderer));
16
17
  _defineProperty(this, "getExtensionModuleNodePrivateProps", memoizeOne(getExtensionModuleNodePrivateProps));
17
18
  _defineProperty(this, "setStateFromPromise", (stateKey, promise) => {
@@ -24,6 +25,13 @@ export default class ExtensionComponent extends Component {
24
25
  });
25
26
  });
26
27
  });
28
+ /**
29
+ * Parses any private nodes once an extension provider is available.
30
+ *
31
+ * We do this separately from resolving a node renderer component since the
32
+ * private props come from extension provider, rather than an extension
33
+ * handler which only handles `render`/component concerns.
34
+ */
27
35
  _defineProperty(this, "parsePrivateNodePropsIfNeeded", async () => {
28
36
  if (this.privatePropsParsed || !this.state.extensionProvider) {
29
37
  return;
@@ -119,9 +127,6 @@ export default class ExtensionComponent extends Component {
119
127
  this.setStateFromPromise('extensionProvider', extensionProvider);
120
128
  }
121
129
  }
122
-
123
- // memoized to avoid rerender on extension state changes
124
-
125
130
  render() {
126
131
  var _this$state$_privateP;
127
132
  const {
@@ -153,15 +158,6 @@ export default class ExtensionComponent extends Component {
153
158
  return null;
154
159
  }
155
160
  }
156
-
157
- /**
158
- * Parses any private nodes once an extension provider is available.
159
- *
160
- * We do this separately from resolving a node renderer component since the
161
- * private props come from extension provider, rather than an extension
162
- * handler which only handles `render`/component concerns.
163
- */
164
-
165
161
  tryExtensionHandler() {
166
162
  const {
167
163
  node
@@ -1,5 +1,4 @@
1
- export let FindReplaceActionTypes;
2
- (function (FindReplaceActionTypes) {
1
+ export let FindReplaceActionTypes = /*#__PURE__*/function (FindReplaceActionTypes) {
3
2
  FindReplaceActionTypes["ACTIVATE"] = "ACTIVATE";
4
3
  FindReplaceActionTypes["FIND"] = "FIND";
5
4
  FindReplaceActionTypes["UPDATE_DECORATIONS"] = "UPDATE_DECORATIONS";
@@ -10,4 +9,5 @@ export let FindReplaceActionTypes;
10
9
  FindReplaceActionTypes["CANCEL"] = "CANCEL";
11
10
  FindReplaceActionTypes["BLUR"] = "BLUR";
12
11
  FindReplaceActionTypes["TOGGLE_MATCH_CASE"] = "TOGGLE_MATCH_CASE";
13
- })(FindReplaceActionTypes || (FindReplaceActionTypes = {}));
12
+ return FindReplaceActionTypes;
13
+ }({});
@@ -431,7 +431,8 @@ class Toolbar extends Component {
431
431
  handleEscape: this.handleEscape,
432
432
  disableArrowKeyNavigation: !this.shouldHandleArrowKeys(),
433
433
  childComponentSelector: "[data-testid='editor-floating-toolbar']",
434
- isShortcutToFocusToolbar: isShortcutToFocusToolbar
434
+ isShortcutToFocusToolbar: isShortcutToFocusToolbar,
435
+ intl: intl
435
436
  }, jsx("div", {
436
437
  ref: this.toolbarContainerRef,
437
438
  css: theme => [toolbarContainer({