@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
  //Vietnamese (Vietnam)
8
9
  export default {
9
10
  'fabric.editor.addAltText': 'Văn bản thay thế',
11
+ 'fabric.editor.addImageBorder': 'Thêm viền',
10
12
  'fabric.editor.alignCenter': 'Căn giữa',
11
13
  'fabric.editor.alignLeft': 'Căn trái',
12
14
  'fabric.editor.alignRight': 'Căn phải',
13
15
  'fabric.editor.alignment': 'Căn chỉnh văn bản',
14
16
  'fabric.editor.altText': 'Văn bản thay thế',
15
17
  'fabric.editor.alttext.validation': 'Vui lòng xóa tất cả các ký tự đặc biệt trong văn bản thay thế.',
16
- 'fabric.editor.annotate': 'Chú thích',
17
18
  'fabric.editor.annotationToolbar': 'Thanh công cụ chú thích',
18
19
  'fabric.editor.backLink': 'Quay lại',
19
20
  'fabric.editor.blockCardUnavailable': 'Liên kết nội tuyến nằm trong {node} và không thể thay đổi chế độ xem liên kết',
@@ -60,6 +61,7 @@ export default {
60
61
  'fabric.editor.customPanel.description': 'Thêm ghi chú với biểu tượng cảm xúc và nền màu',
61
62
  'fabric.editor.decisionPlaceholder': 'Thêm quyết định…',
62
63
  'fabric.editor.defaultAltText': 'Mục danh sách',
64
+ 'fabric.editor.description': 'Mô tả',
63
65
  'fabric.editor.displayBlock': 'Hiển thị thẻ',
64
66
  'fabric.editor.displayEmbed': 'Hiển thị đối tượng nhúng',
65
67
  'fabric.editor.displayInline': 'Hiển thị nội tuyến',
@@ -75,6 +77,7 @@ export default {
75
77
  'fabric.editor.editStatusColor': 'Sửa màu trạng thái',
76
78
  'fabric.editor.editStatusText': 'Sửa trạng thái',
77
79
  'fabric.editor.editableContentLabel': 'Nội dung có thể chỉnh sửa',
80
+ 'fabric.editor.editorAssistiveLabel': 'Vùng nội dung chính, bắt đầu gõ để nhập văn bản.',
78
81
  'fabric.editor.editorHelp': 'Hỗ trợ chỉnh sửa',
79
82
  'fabric.editor.editors': 'Người chỉnh sửa',
80
83
  'fabric.editor.elementBrowser.help': 'Trợ giúp',
@@ -99,18 +102,22 @@ export default {
99
102
  'fabric.editor.error': 'Lỗi',
100
103
  'fabric.editor.errorPanel': 'Ô lỗi',
101
104
  'fabric.editor.errorPanel.description': 'Chỉ ra lỗi bằng ô màu',
102
- 'fabric.editor.extension.confirmDeleteLinkedModalMessage': 'Việc xóa phần mở rộng này sẽ loại bỏ mọi nội dung được kết nối với phần mở rộng.',
103
- 'fabric.editor.extension.confirmDeleteLinkedModalOKButton': 'Xóa phần mở rộng',
105
+ 'fabric.editor.extension.confirmDeleteLinkedModalMessage': 'Việc xóa {nodeName} sẽ ngắt mọi nội dung được kết nối.',
106
+ 'fabric.editor.extension.confirmDeleteLinkedModalOKButton': 'Xóa',
107
+ 'fabric.editor.extension.deleteElementTitle': 'Xóa thành phần',
104
108
  'fabric.editor.extensions.config-panel.save-indicator': 'Mọi thay đổi luôn được lưu tự động',
105
109
  'fabric.editor.find': 'Tìm kiếm',
106
110
  'fabric.editor.findNext': 'Tìm tiếp theo',
107
111
  'fabric.editor.findPrevious': 'Tìm trước đó',
108
112
  'fabric.editor.findReplaceToolbarButton': 'Tìm kiếm và thay thế',
109
113
  'fabric.editor.floatingToolbar.confirmModalCancel': 'Hủy',
114
+ 'fabric.editor.floatingToolbar.confirmModalCheckboxLabel': 'Đồng thời xóa các thành phần được kết nối',
110
115
  'fabric.editor.floatingToolbar.confirmModalHeading': 'Bạn có chắc chắn không?',
111
116
  'fabric.editor.floatingToolbar.confirmModalOK': 'OK',
112
117
  'fabric.editor.floatingToolbar.floatingToolbarAnnouncer': 'Đã mở bộ điều khiển thanh công cụ nổi',
113
118
  'fabric.editor.floatingToolbar.floatingToolbarAriaLabel': 'Thanh công cụ nổi',
119
+ 'fabric.editor.floatingToolbar.scrollLeft': 'Cuộn sang trái',
120
+ 'fabric.editor.floatingToolbar.scrollRight': 'Cuộn sang phải',
114
121
  'fabric.editor.heading1': 'Heading 1',
115
122
  'fabric.editor.heading1Description': 'Sử dụng kiểu chữ này cho tiêu đề chính',
116
123
  'fabric.editor.heading2': 'Heading 2',
@@ -133,8 +140,14 @@ export default {
133
140
  'fabric.editor.helpDialogTips': 'Nhấn {keyMap} để mở nhanh hộp thoại này bất kỳ lúc nào',
134
141
  'fabric.editor.hyperlink.linkAriaLabel': 'Nhãn liên kết',
135
142
  'fabric.editor.hyperlink.searchLinkAriaDescription': 'Các đề xuất sẽ xuất hiện bên dưới khi bạn nhập thông tin vào trường',
136
- 'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {không tìm thấy kết quả} other {Đã tìm thấy {count,number} kết quả}}',
143
+ 'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {không tìm thấy kết quả nào} other {Đã tìm thấy {count,number} kết quả}}',
137
144
  'fabric.editor.hyperlinkToolbarPlaceholder': 'Dán hoặc tìm kiếm liên kết',
145
+ 'fabric.editor.imageBorderBold': 'In đậm',
146
+ 'fabric.editor.imageBorderColor': 'Màu sắc',
147
+ 'fabric.editor.imageBorderMedium': 'Trung bình',
148
+ 'fabric.editor.imageBorderOptions': 'Tùy chọn viền',
149
+ 'fabric.editor.imageBorderSize': 'Kích cỡ',
150
+ 'fabric.editor.imageBorderSubtle': 'Nhạt',
138
151
  'fabric.editor.improvement': 'Cải tiến',
139
152
  'fabric.editor.indent': 'Thụt lề',
140
153
  'fabric.editor.info': 'Thông tin',
@@ -145,7 +158,7 @@ export default {
145
158
  'fabric.editor.inputQueryAssistiveTxt': 'Khi có sẵn kết quả tự hoàn tất, hãy dùng các mũi tên lên và xuống để xem lại và enter để chọn. Người dùng thiết bị cảm ứng, khám phá bằng thao tác chạm hoặc bằng các cử chỉ vuốt.',
146
159
  'fabric.editor.invalidDateError': 'Nhập ngày hợp lệ',
147
160
  'fabric.editor.invalidLink': 'Vui lòng nhập một liên kết hợp lệ.',
148
- 'fabric.editor.inviteItem.title': '{userRole, select, admin {Mời thành viên cùng nhóm vào {productName}} trusted {Mời thành viên cùng nhóm vào {productName}} other {Thêm thành viên cùng nhóm vào {productName}}}',
161
+ 'fabric.editor.inviteItem.title': '{userRole, select, admin {Mời đồng nghiệp cùng nhóm vào {productName}} trusted {Mời đồng nghiệp cùng nhóm vào {productName}} other {Thêm đồng nghiệp cùng nhóm vào {productName}}}',
149
162
  'fabric.editor.italic': 'In nghiêng',
150
163
  'fabric.editor.keyboardShortcuts': 'Phím tắt bàn phím',
151
164
  'fabric.editor.leftSidebar': 'Thanh bên trái',
@@ -156,9 +169,12 @@ export default {
156
169
  'fabric.editor.matchCase': 'Khớp cách viết hoa',
157
170
  'fabric.editor.mediaAddLink': 'Thêm liên kết',
158
171
  'fabric.editor.mediaGroupDeleteLabel': 'xóa',
172
+ 'fabric.editor.mentionNode.label': 'Người dùng được gắn thẻ',
159
173
  'fabric.editor.mentionsAddLabel': 'biểu tượng thêm',
160
174
  'fabric.editor.mentionsIconLabel': 'Đề cập',
161
175
  'fabric.editor.moreFormatting': 'Thêm định dạng',
176
+ 'fabric.editor.navigate.toolbar.editor': 'Điều hướng đến thanh công cụ trình biên tập',
177
+ 'fabric.editor.navigate.toolbar.floating': 'Điều hướng đến thanh công cụ nổi',
162
178
  'fabric.editor.noResultsFound': 'Không có kết quả',
163
179
  'fabric.editor.noSearchResults': 'Không có kết quả tìm kiếm',
164
180
  'fabric.editor.normal': 'Văn bản bình thường',
@@ -179,6 +195,7 @@ export default {
179
195
  'fabric.editor.placeholderTextPlaceholder': 'Thêm văn bản giữ chỗ',
180
196
  'fabric.editor.quickInsert': 'Chèn nhanh',
181
197
  'fabric.editor.redo': 'Làm lại',
198
+ 'fabric.editor.removeImageBorder': 'Xóa viền',
182
199
  'fabric.editor.replace': 'Thay thế',
183
200
  'fabric.editor.replaceAll': 'Thay thế tất cả',
184
201
  'fabric.editor.replaceWith': 'Thay thế bằng',
@@ -187,6 +204,7 @@ export default {
187
204
  'fabric.editor.searchResults': '{itemsLength, plural, other {Có {itemsLength,number} kết quả tìm kiếm}}',
188
205
  'fabric.editor.selectLanguage': 'Chọn ngôn ngữ',
189
206
  'fabric.editor.settingsLinks': 'Vào phần Tùy chọn liên kết',
207
+ 'fabric.editor.shortcut': 'Phím tắt văn bản',
190
208
  'fabric.editor.single': 'Cột đơn',
191
209
  'fabric.editor.statusPlaceholder': 'Đặt trạng thái',
192
210
  'fabric.editor.story': 'Câu chuyện',
@@ -208,9 +226,17 @@ export default {
208
226
  'fabric.editor.threeColumns': 'Ba cột',
209
227
  'fabric.editor.threeColumnsWithSidebars': 'Ba cột có các thanh bên',
210
228
  'fabric.editor.toolbarLabel': 'Thanh công cụ trình biên tập',
211
- 'fabric.editor.toolbarMediaTitle': 'Tập tin & hình ảnh',
229
+ 'fabric.editor.toolbarMediaTitle': 'Thêm ảnh, video hoặc tệp',
212
230
  'fabric.editor.twoColumns': 'Hai cột',
213
- 'fabric.editor.typeAheadResultLabel': 'Kết quả tự động điền',
231
+ 'fabric.editor.typeAhead.popupLabel': 'Kết quả tự động điền',
232
+ 'fabric.editor.typeAhead.quickInsertInputLabel': 'Bắt đầu nhập để tìm kiếm hoặc lọc các tùy chọn lối tắt',
233
+ 'fabric.editor.typeAhead.quickInsertPopupLabel': 'Lối tắt để chèn và định dạng',
234
+ 'fabric.editor.typeahead.emojiInputLabel': 'Bắt đầu nhập để tìm kiếm hoặc lọc các tùy chọn biểu tượng cảm xúc',
235
+ 'fabric.editor.typeahead.emojiListItemLabel': 'Biểu tượng cảm xúc {name} Lối tắt văn bản {shortcut}',
236
+ 'fabric.editor.typeahead.emojiPopupLabel': 'Lối tắt biểu tượng cảm xúc',
237
+ 'fabric.editor.typeahead.mentionInputLabel': 'Bắt đầu nhập để tìm kiếm người dùng để gắn thẻ',
238
+ 'fabric.editor.typeahead.mentionPopupLabel': 'Người dùng bạn có thể gắn thẻ',
239
+ 'fabric.editor.typeahead.metionListItemLabel': 'Người dùng {name} @{shortName}',
214
240
  'fabric.editor.unableToOpenLink': 'Không thể mở liên kết này',
215
241
  'fabric.editor.underline': 'Gạch dưới',
216
242
  'fabric.editor.undo': 'Hoàn tác',
@@ -224,5 +250,6 @@ export default {
224
250
  'fabric.editor.warningPanel': 'Ô cảnh báo',
225
251
  'fabric.editor.warningPanel.description': 'Thêm ghi chú thận trọng bằng ô màu',
226
252
  'fabric.editor.wrapLeft': 'Cuộn sang trái',
227
- 'fabric.editor.wrapRight': 'Cuộn sang phải'
253
+ 'fabric.editor.wrapRight': 'Cuộn sang phải',
254
+ 'fabric.emoji.label': 'Biểu tượng cảm xúc'
228
255
  };
@@ -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
  };
@@ -2,7 +2,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
4
4
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
5
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
6
6
  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; }
7
7
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
8
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
@@ -1,7 +1,6 @@
1
- import _typeof from "@babel/runtime/helpers/typeof";
2
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
3
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
5
4
  import { RESOLVE_METHOD } from './../../analytics/types/inline-comment-events';
6
5
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
7
6
  import { Decoration, DecorationSet } from 'prosemirror-view';
@@ -11,27 +10,25 @@ import { updateInlineCommentResolvedState, updateMouseState, clearDirtyMark, set
11
10
  import { getAllAnnotations, inlineCommentPluginKey, getPluginState } from '../utils';
12
11
  import { createPluginState } from './plugin-factory';
13
12
  var fetchProviderStates = /*#__PURE__*/function () {
14
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(provider, annotationIds) {
13
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(provider, annotationIds) {
15
14
  var data, result;
16
- return _regeneratorRuntime().wrap(function _callee$(_context) {
17
- while (1) {
18
- switch (_context.prev = _context.next) {
19
- case 0:
20
- _context.next = 2;
21
- return provider.getState(annotationIds);
22
- case 2:
23
- data = _context.sent;
24
- result = {};
25
- data.forEach(function (annotation) {
26
- if (annotation.annotationType === AnnotationTypes.INLINE_COMMENT) {
27
- result[annotation.id] = annotation.state.resolved;
28
- }
29
- });
30
- return _context.abrupt("return", result);
31
- case 6:
32
- case "end":
33
- return _context.stop();
34
- }
15
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
16
+ while (1) switch (_context.prev = _context.next) {
17
+ case 0:
18
+ _context.next = 2;
19
+ return provider.getState(annotationIds);
20
+ case 2:
21
+ data = _context.sent;
22
+ result = {};
23
+ data.forEach(function (annotation) {
24
+ if (annotation.annotationType === AnnotationTypes.INLINE_COMMENT) {
25
+ result[annotation.id] = annotation.state.resolved;
26
+ }
27
+ });
28
+ return _context.abrupt("return", result);
29
+ case 6:
30
+ case "end":
31
+ return _context.stop();
35
32
  }
36
33
  }, _callee);
37
34
  }));
@@ -43,29 +40,27 @@ var fetchProviderStates = /*#__PURE__*/function () {
43
40
  // fetchState is unable to return a command as it's runs async and may dispatch at a later time
44
41
  // Requires `editorView` instead of the decomposition as the async means state may end up stale
45
42
  var fetchState = /*#__PURE__*/function () {
46
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(provider, annotationIds, editorView) {
43
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(provider, annotationIds, editorView) {
47
44
  var inlineCommentStates;
48
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
49
- while (1) {
50
- switch (_context2.prev = _context2.next) {
51
- case 0:
52
- if (!(!annotationIds || !annotationIds.length)) {
53
- _context2.next = 2;
54
- break;
55
- }
56
- return _context2.abrupt("return");
57
- case 2:
58
- _context2.next = 4;
59
- return fetchProviderStates(provider, annotationIds);
60
- case 4:
61
- inlineCommentStates = _context2.sent;
62
- if (editorView.dispatch) {
63
- updateInlineCommentResolvedState(inlineCommentStates)(editorView.state, editorView.dispatch);
64
- }
65
- case 6:
66
- case "end":
67
- return _context2.stop();
68
- }
45
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
46
+ while (1) switch (_context2.prev = _context2.next) {
47
+ case 0:
48
+ if (!(!annotationIds || !annotationIds.length)) {
49
+ _context2.next = 2;
50
+ break;
51
+ }
52
+ return _context2.abrupt("return");
53
+ case 2:
54
+ _context2.next = 4;
55
+ return fetchProviderStates(provider, annotationIds);
56
+ case 4:
57
+ inlineCommentStates = _context2.sent;
58
+ if (editorView.dispatch) {
59
+ updateInlineCommentResolvedState(inlineCommentStates)(editorView.state, editorView.dispatch);
60
+ }
61
+ case 6:
62
+ case "end":
63
+ return _context2.stop();
69
64
  }
70
65
  }, _callee2);
71
66
  }));
@@ -1,5 +1,4 @@
1
- export var ACTIONS;
2
- (function (ACTIONS) {
1
+ export var 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 var 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 var AnnotationSelectionType; // Annotation can be created
2
- (function (AnnotationSelectionType) {
1
+ export var 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
  var prefix = 'ak-editor-annotation';
8
8
  export var AnnotationTestIds = {
9
9
  prefix: 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 var decorationStateKey = new PluginKey('decorationPlugin');
6
- export var ACTIONS;
7
- (function (ACTIONS) {
6
+ export var 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 var hoverDecoration = function hoverDecoration(nodeType, add) {
12
12
  var className = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'danger';
13
13
  return function (state, dispatch) {
@@ -1,6 +1,6 @@
1
1
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
2
2
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
3
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
3
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
4
4
  import { findWrapping } from 'prosemirror-transform';
5
5
  import { safeInsert } from 'prosemirror-utils';
6
6
  import { CODE_BLOCK, BLOCK_QUOTE, PANEL, HEADINGS_BY_NAME, NORMAL_TEXT } from '../types';
@@ -123,6 +123,11 @@ export var EmbedCardComponent = /*#__PURE__*/function (_React$PureComponent) {
123
123
  }
124
124
  return originalLineLength;
125
125
  });
126
+ /**
127
+ * Even though render is capable of listening and reacting to iframely wrapper iframe sent `resize` events
128
+ * it's good idea to store latest actual height in ADF, so that when renderer (well, editor as well) is loading
129
+ * we will show embed window of appropriate size and avoid unnecessary content jumping.
130
+ */
126
131
  _defineProperty(_assertThisInitialized(_this), "saveOriginalDimensionsAttributes", function (height, width) {
127
132
  var view = _this.props.view;
128
133
 
@@ -172,12 +177,6 @@ export var EmbedCardComponent = /*#__PURE__*/function (_React$PureComponent) {
172
177
  var scrollContainer = findOverflowScrollParent(view.dom);
173
178
  this.scrollContainer = scrollContainer || undefined;
174
179
  }
175
-
176
- /**
177
- * Even though render is capable of listening and reacting to iframely wrapper iframe sent `resize` events
178
- * it's good idea to store latest actual height in ADF, so that when renderer (well, editor as well) is loading
179
- * we will show embed window of appropriate size and avoid unnecessary content jumping.
180
- */
181
180
  }, {
182
181
  key: "render",
183
182
  value: function render() {