@atlaskit/editor-common 74.19.2 → 74.20.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 (297) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +86 -0
  3. package/dist/cjs/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.js +32 -0
  4. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +939 -0
  5. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/index.js +79 -0
  6. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/messages.js +40 -0
  7. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/utils.js +84 -0
  8. package/dist/cjs/link/LinkSearch/LinkSearchList.js +83 -0
  9. package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +146 -0
  10. package/dist/cjs/link/LinkSearch/ToolbarComponents.js +17 -0
  11. package/dist/cjs/link/LinkSearch/index.js +328 -0
  12. package/dist/cjs/link/LinkSearch/listItemAlts.js +70 -0
  13. package/dist/cjs/link/LinkSearch/transformTimeStamp.js +42 -0
  14. package/dist/cjs/link/LinkSearch/types.js +5 -0
  15. package/dist/cjs/link/LinkSearch/withActivityProvider.js +59 -0
  16. package/dist/cjs/link/index.js +122 -0
  17. package/dist/cjs/link/types.js +22 -0
  18. package/dist/cjs/link/utils.js +19 -0
  19. package/dist/cjs/monitoring/error.js +1 -1
  20. package/dist/cjs/quick-insert/assets/action.js +43 -0
  21. package/dist/cjs/quick-insert/assets/code.js +115 -0
  22. package/dist/cjs/quick-insert/assets/custom-panel.js +55 -0
  23. package/dist/cjs/quick-insert/assets/date.js +93 -0
  24. package/dist/cjs/quick-insert/assets/decision.js +34 -0
  25. package/dist/cjs/quick-insert/assets/divider.js +74 -0
  26. package/dist/cjs/quick-insert/assets/emoji.js +37 -0
  27. package/dist/cjs/quick-insert/assets/expand.js +47 -0
  28. package/dist/cjs/quick-insert/assets/fallback.js +55 -0
  29. package/dist/cjs/quick-insert/assets/feedback.js +70 -0
  30. package/dist/cjs/quick-insert/assets/heading1.js +50 -0
  31. package/dist/cjs/quick-insert/assets/heading2.js +50 -0
  32. package/dist/cjs/quick-insert/assets/heading3.js +50 -0
  33. package/dist/cjs/quick-insert/assets/heading4.js +50 -0
  34. package/dist/cjs/quick-insert/assets/heading5.js +50 -0
  35. package/dist/cjs/quick-insert/assets/heading6.js +50 -0
  36. package/dist/cjs/quick-insert/assets/images.js +92 -0
  37. package/dist/cjs/quick-insert/assets/index.js +372 -0
  38. package/dist/cjs/quick-insert/assets/layout.js +71 -0
  39. package/dist/cjs/quick-insert/assets/link.js +35 -0
  40. package/dist/cjs/quick-insert/assets/list-number.js +51 -0
  41. package/dist/cjs/quick-insert/assets/list.js +65 -0
  42. package/dist/cjs/quick-insert/assets/mention.js +56 -0
  43. package/dist/cjs/quick-insert/assets/panel-error.js +35 -0
  44. package/dist/cjs/quick-insert/assets/panel-note.js +35 -0
  45. package/dist/cjs/quick-insert/assets/panel-success.js +35 -0
  46. package/dist/cjs/quick-insert/assets/panel-warning.js +35 -0
  47. package/dist/cjs/quick-insert/assets/panel.js +50 -0
  48. package/dist/cjs/quick-insert/assets/quote.js +35 -0
  49. package/dist/cjs/quick-insert/assets/status.js +109 -0
  50. package/dist/cjs/quick-insert/index.js +150 -0
  51. package/dist/cjs/types/block-type.js +5 -0
  52. package/dist/cjs/ui/Announcer/announcer.js +62 -0
  53. package/dist/cjs/ui/DropList/index.js +1 -1
  54. package/dist/cjs/ui/PanelTextInput/index.js +174 -0
  55. package/dist/cjs/ui/PanelTextInput/styles.js +19 -0
  56. package/dist/cjs/ui/index.js +21 -0
  57. package/dist/cjs/utils/commands.js +20 -0
  58. package/dist/cjs/utils/hyperlink.js +25 -2
  59. package/dist/cjs/utils/index.js +24 -1
  60. package/dist/cjs/version.json +1 -1
  61. package/dist/es2019/link/LinkPicker/EditorLinkPicker/index.js +74 -0
  62. package/dist/es2019/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.js +25 -0
  63. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +789 -0
  64. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/index.js +74 -0
  65. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/messages.js +33 -0
  66. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/utils.js +83 -0
  67. package/dist/es2019/link/LinkSearch/LinkSearchList.js +63 -0
  68. package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +141 -0
  69. package/dist/es2019/link/LinkSearch/ToolbarComponents.js +20 -0
  70. package/dist/es2019/link/LinkSearch/index.js +213 -0
  71. package/dist/es2019/link/LinkSearch/listItemAlts.js +63 -0
  72. package/dist/es2019/link/LinkSearch/transformTimeStamp.js +34 -0
  73. package/dist/es2019/link/LinkSearch/types.js +1 -0
  74. package/dist/es2019/link/LinkSearch/withActivityProvider.js +35 -0
  75. package/dist/es2019/link/index.js +11 -0
  76. package/dist/es2019/link/types.js +14 -0
  77. package/dist/es2019/link/utils.js +12 -0
  78. package/dist/es2019/monitoring/error.js +1 -1
  79. package/dist/es2019/quick-insert/assets/action.js +35 -0
  80. package/dist/es2019/quick-insert/assets/code.js +107 -0
  81. package/dist/es2019/quick-insert/assets/custom-panel.js +47 -0
  82. package/dist/es2019/quick-insert/assets/date.js +85 -0
  83. package/dist/es2019/quick-insert/assets/decision.js +26 -0
  84. package/dist/es2019/quick-insert/assets/divider.js +66 -0
  85. package/dist/es2019/quick-insert/assets/emoji.js +29 -0
  86. package/dist/es2019/quick-insert/assets/expand.js +39 -0
  87. package/dist/es2019/quick-insert/assets/fallback.js +47 -0
  88. package/dist/es2019/quick-insert/assets/feedback.js +62 -0
  89. package/dist/es2019/quick-insert/assets/heading1.js +42 -0
  90. package/dist/es2019/quick-insert/assets/heading2.js +42 -0
  91. package/dist/es2019/quick-insert/assets/heading3.js +42 -0
  92. package/dist/es2019/quick-insert/assets/heading4.js +42 -0
  93. package/dist/es2019/quick-insert/assets/heading5.js +42 -0
  94. package/dist/es2019/quick-insert/assets/heading6.js +42 -0
  95. package/dist/es2019/quick-insert/assets/images.js +84 -0
  96. package/dist/es2019/quick-insert/assets/index.js +115 -0
  97. package/dist/es2019/quick-insert/assets/layout.js +63 -0
  98. package/dist/es2019/quick-insert/assets/link.js +27 -0
  99. package/dist/es2019/quick-insert/assets/list-number.js +43 -0
  100. package/dist/es2019/quick-insert/assets/list.js +57 -0
  101. package/dist/es2019/quick-insert/assets/mention.js +48 -0
  102. package/dist/es2019/quick-insert/assets/panel-error.js +27 -0
  103. package/dist/es2019/quick-insert/assets/panel-note.js +27 -0
  104. package/dist/es2019/quick-insert/assets/panel-success.js +27 -0
  105. package/dist/es2019/quick-insert/assets/panel-warning.js +27 -0
  106. package/dist/es2019/quick-insert/assets/panel.js +42 -0
  107. package/dist/es2019/quick-insert/assets/quote.js +27 -0
  108. package/dist/es2019/quick-insert/assets/status.js +101 -0
  109. package/dist/es2019/quick-insert/index.js +1 -0
  110. package/dist/es2019/types/block-type.js +1 -0
  111. package/dist/es2019/ui/Announcer/announcer.js +41 -0
  112. package/dist/es2019/ui/DropList/index.js +1 -1
  113. package/dist/es2019/ui/PanelTextInput/index.js +149 -0
  114. package/dist/es2019/ui/PanelTextInput/styles.js +36 -0
  115. package/dist/es2019/ui/index.js +4 -1
  116. package/dist/es2019/utils/commands.js +11 -0
  117. package/dist/es2019/utils/hyperlink.js +19 -1
  118. package/dist/es2019/utils/index.js +8 -2
  119. package/dist/es2019/version.json +1 -1
  120. package/dist/esm/link/LinkPicker/EditorLinkPicker/index.js +76 -0
  121. package/dist/esm/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.js +25 -0
  122. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +924 -0
  123. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/index.js +72 -0
  124. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/messages.js +33 -0
  125. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/utils.js +73 -0
  126. package/dist/esm/link/LinkSearch/LinkSearchList.js +75 -0
  127. package/dist/esm/link/LinkSearch/LinkSearchListItem.js +131 -0
  128. package/dist/esm/link/LinkSearch/ToolbarComponents.js +7 -0
  129. package/dist/esm/link/LinkSearch/index.js +320 -0
  130. package/dist/esm/link/LinkSearch/listItemAlts.js +63 -0
  131. package/dist/esm/link/LinkSearch/transformTimeStamp.js +34 -0
  132. package/dist/esm/link/LinkSearch/types.js +1 -0
  133. package/dist/esm/link/LinkSearch/withActivityProvider.js +52 -0
  134. package/dist/esm/link/index.js +11 -0
  135. package/dist/esm/link/types.js +14 -0
  136. package/dist/esm/link/utils.js +12 -0
  137. package/dist/esm/monitoring/error.js +1 -1
  138. package/dist/esm/quick-insert/assets/action.js +35 -0
  139. package/dist/esm/quick-insert/assets/code.js +107 -0
  140. package/dist/esm/quick-insert/assets/custom-panel.js +47 -0
  141. package/dist/esm/quick-insert/assets/date.js +85 -0
  142. package/dist/esm/quick-insert/assets/decision.js +26 -0
  143. package/dist/esm/quick-insert/assets/divider.js +66 -0
  144. package/dist/esm/quick-insert/assets/emoji.js +29 -0
  145. package/dist/esm/quick-insert/assets/expand.js +39 -0
  146. package/dist/esm/quick-insert/assets/fallback.js +47 -0
  147. package/dist/esm/quick-insert/assets/feedback.js +62 -0
  148. package/dist/esm/quick-insert/assets/heading1.js +42 -0
  149. package/dist/esm/quick-insert/assets/heading2.js +42 -0
  150. package/dist/esm/quick-insert/assets/heading3.js +42 -0
  151. package/dist/esm/quick-insert/assets/heading4.js +42 -0
  152. package/dist/esm/quick-insert/assets/heading5.js +42 -0
  153. package/dist/esm/quick-insert/assets/heading6.js +42 -0
  154. package/dist/esm/quick-insert/assets/images.js +84 -0
  155. package/dist/esm/quick-insert/assets/index.js +248 -0
  156. package/dist/esm/quick-insert/assets/layout.js +63 -0
  157. package/dist/esm/quick-insert/assets/link.js +27 -0
  158. package/dist/esm/quick-insert/assets/list-number.js +43 -0
  159. package/dist/esm/quick-insert/assets/list.js +57 -0
  160. package/dist/esm/quick-insert/assets/mention.js +48 -0
  161. package/dist/esm/quick-insert/assets/panel-error.js +27 -0
  162. package/dist/esm/quick-insert/assets/panel-note.js +27 -0
  163. package/dist/esm/quick-insert/assets/panel-success.js +27 -0
  164. package/dist/esm/quick-insert/assets/panel-warning.js +27 -0
  165. package/dist/esm/quick-insert/assets/panel.js +42 -0
  166. package/dist/esm/quick-insert/assets/quote.js +27 -0
  167. package/dist/esm/quick-insert/assets/status.js +101 -0
  168. package/dist/esm/quick-insert/index.js +1 -0
  169. package/dist/esm/types/block-type.js +1 -0
  170. package/dist/esm/ui/Announcer/announcer.js +52 -0
  171. package/dist/esm/ui/DropList/index.js +1 -1
  172. package/dist/esm/ui/PanelTextInput/index.js +168 -0
  173. package/dist/esm/ui/PanelTextInput/styles.js +10 -0
  174. package/dist/esm/ui/index.js +4 -1
  175. package/dist/esm/utils/commands.js +13 -0
  176. package/dist/esm/utils/hyperlink.js +23 -1
  177. package/dist/esm/utils/index.js +12 -2
  178. package/dist/esm/version.json +1 -1
  179. package/dist/types/link/LinkPicker/EditorLinkPicker/index.d.ts +23 -0
  180. package/dist/types/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.d.ts +2 -0
  181. package/dist/types/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +115 -0
  182. package/dist/types/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +21 -0
  183. package/dist/types/link/LinkPicker/HyperlinkAddToolbar/messages.d.ts +32 -0
  184. package/dist/types/link/LinkPicker/HyperlinkAddToolbar/utils.d.ts +8 -0
  185. package/dist/types/link/LinkSearch/LinkSearchList.d.ts +20 -0
  186. package/dist/types/link/LinkSearch/LinkSearchListItem.d.ts +22 -0
  187. package/dist/types/link/LinkSearch/ToolbarComponents.d.ts +3 -0
  188. package/dist/types/link/LinkSearch/index.d.ts +59 -0
  189. package/dist/types/link/LinkSearch/listItemAlts.d.ts +2 -0
  190. package/dist/types/link/LinkSearch/transformTimeStamp.d.ts +10 -0
  191. package/dist/types/link/LinkSearch/types.d.ts +49 -0
  192. package/dist/types/link/LinkSearch/withActivityProvider.d.ts +66 -0
  193. package/dist/types/link/index.d.ts +16 -0
  194. package/dist/types/link/types.d.ts +40 -0
  195. package/dist/types/link/utils.d.ts +3 -0
  196. package/dist/types/quick-insert/assets/action.d.ts +2 -0
  197. package/dist/types/quick-insert/assets/code.d.ts +2 -0
  198. package/dist/types/quick-insert/assets/custom-panel.d.ts +2 -0
  199. package/dist/types/quick-insert/assets/date.d.ts +2 -0
  200. package/dist/types/quick-insert/assets/decision.d.ts +2 -0
  201. package/dist/types/quick-insert/assets/divider.d.ts +2 -0
  202. package/dist/types/quick-insert/assets/emoji.d.ts +2 -0
  203. package/dist/types/quick-insert/assets/expand.d.ts +2 -0
  204. package/dist/types/quick-insert/assets/fallback.d.ts +2 -0
  205. package/dist/types/quick-insert/assets/feedback.d.ts +2 -0
  206. package/dist/types/quick-insert/assets/heading1.d.ts +2 -0
  207. package/dist/types/quick-insert/assets/heading2.d.ts +2 -0
  208. package/dist/types/quick-insert/assets/heading3.d.ts +2 -0
  209. package/dist/types/quick-insert/assets/heading4.d.ts +2 -0
  210. package/dist/types/quick-insert/assets/heading5.d.ts +2 -0
  211. package/dist/types/quick-insert/assets/heading6.d.ts +2 -0
  212. package/dist/types/quick-insert/assets/images.d.ts +2 -0
  213. package/dist/types/quick-insert/assets/index.d.ts +30 -0
  214. package/dist/types/quick-insert/assets/layout.d.ts +2 -0
  215. package/dist/types/quick-insert/assets/link.d.ts +2 -0
  216. package/dist/types/quick-insert/assets/list-number.d.ts +2 -0
  217. package/dist/types/quick-insert/assets/list.d.ts +2 -0
  218. package/dist/types/quick-insert/assets/mention.d.ts +2 -0
  219. package/dist/types/quick-insert/assets/panel-error.d.ts +2 -0
  220. package/dist/types/quick-insert/assets/panel-note.d.ts +2 -0
  221. package/dist/types/quick-insert/assets/panel-success.d.ts +2 -0
  222. package/dist/types/quick-insert/assets/panel-warning.d.ts +2 -0
  223. package/dist/types/quick-insert/assets/panel.d.ts +2 -0
  224. package/dist/types/quick-insert/assets/quote.d.ts +2 -0
  225. package/dist/types/quick-insert/assets/status.d.ts +2 -0
  226. package/dist/types/quick-insert/index.d.ts +1 -0
  227. package/dist/types/types/block-type.d.ts +3 -0
  228. package/dist/types/types/command.d.ts +1 -0
  229. package/dist/types/types/index.d.ts +2 -1
  230. package/dist/types/ui/Announcer/announcer.d.ts +22 -0
  231. package/dist/types/ui/PanelTextInput/index.d.ts +45 -0
  232. package/dist/types/ui/PanelTextInput/styles.d.ts +2 -0
  233. package/dist/types/ui/index.d.ts +3 -0
  234. package/dist/types/utils/commands.d.ts +2 -0
  235. package/dist/types/utils/hyperlink.d.ts +2 -0
  236. package/dist/types/utils/index.d.ts +3 -1
  237. package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/index.d.ts +23 -0
  238. package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.d.ts +2 -0
  239. package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +115 -0
  240. package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +21 -0
  241. package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/messages.d.ts +32 -0
  242. package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/utils.d.ts +8 -0
  243. package/dist/types-ts4.5/link/LinkSearch/LinkSearchList.d.ts +20 -0
  244. package/dist/types-ts4.5/link/LinkSearch/LinkSearchListItem.d.ts +22 -0
  245. package/dist/types-ts4.5/link/LinkSearch/ToolbarComponents.d.ts +3 -0
  246. package/dist/types-ts4.5/link/LinkSearch/index.d.ts +59 -0
  247. package/dist/types-ts4.5/link/LinkSearch/listItemAlts.d.ts +2 -0
  248. package/dist/types-ts4.5/link/LinkSearch/transformTimeStamp.d.ts +10 -0
  249. package/dist/types-ts4.5/link/LinkSearch/types.d.ts +49 -0
  250. package/dist/types-ts4.5/link/LinkSearch/withActivityProvider.d.ts +66 -0
  251. package/dist/types-ts4.5/link/index.d.ts +16 -0
  252. package/dist/types-ts4.5/link/types.d.ts +40 -0
  253. package/dist/types-ts4.5/link/utils.d.ts +3 -0
  254. package/dist/types-ts4.5/quick-insert/assets/action.d.ts +2 -0
  255. package/dist/types-ts4.5/quick-insert/assets/code.d.ts +2 -0
  256. package/dist/types-ts4.5/quick-insert/assets/custom-panel.d.ts +2 -0
  257. package/dist/types-ts4.5/quick-insert/assets/date.d.ts +2 -0
  258. package/dist/types-ts4.5/quick-insert/assets/decision.d.ts +2 -0
  259. package/dist/types-ts4.5/quick-insert/assets/divider.d.ts +2 -0
  260. package/dist/types-ts4.5/quick-insert/assets/emoji.d.ts +2 -0
  261. package/dist/types-ts4.5/quick-insert/assets/expand.d.ts +2 -0
  262. package/dist/types-ts4.5/quick-insert/assets/fallback.d.ts +2 -0
  263. package/dist/types-ts4.5/quick-insert/assets/feedback.d.ts +2 -0
  264. package/dist/types-ts4.5/quick-insert/assets/heading1.d.ts +2 -0
  265. package/dist/types-ts4.5/quick-insert/assets/heading2.d.ts +2 -0
  266. package/dist/types-ts4.5/quick-insert/assets/heading3.d.ts +2 -0
  267. package/dist/types-ts4.5/quick-insert/assets/heading4.d.ts +2 -0
  268. package/dist/types-ts4.5/quick-insert/assets/heading5.d.ts +2 -0
  269. package/dist/types-ts4.5/quick-insert/assets/heading6.d.ts +2 -0
  270. package/dist/types-ts4.5/quick-insert/assets/images.d.ts +2 -0
  271. package/dist/types-ts4.5/quick-insert/assets/index.d.ts +30 -0
  272. package/dist/types-ts4.5/quick-insert/assets/layout.d.ts +2 -0
  273. package/dist/types-ts4.5/quick-insert/assets/link.d.ts +2 -0
  274. package/dist/types-ts4.5/quick-insert/assets/list-number.d.ts +2 -0
  275. package/dist/types-ts4.5/quick-insert/assets/list.d.ts +2 -0
  276. package/dist/types-ts4.5/quick-insert/assets/mention.d.ts +2 -0
  277. package/dist/types-ts4.5/quick-insert/assets/panel-error.d.ts +2 -0
  278. package/dist/types-ts4.5/quick-insert/assets/panel-note.d.ts +2 -0
  279. package/dist/types-ts4.5/quick-insert/assets/panel-success.d.ts +2 -0
  280. package/dist/types-ts4.5/quick-insert/assets/panel-warning.d.ts +2 -0
  281. package/dist/types-ts4.5/quick-insert/assets/panel.d.ts +2 -0
  282. package/dist/types-ts4.5/quick-insert/assets/quote.d.ts +2 -0
  283. package/dist/types-ts4.5/quick-insert/assets/status.d.ts +2 -0
  284. package/dist/types-ts4.5/quick-insert/index.d.ts +1 -0
  285. package/dist/types-ts4.5/types/block-type.d.ts +3 -0
  286. package/dist/types-ts4.5/types/command.d.ts +1 -0
  287. package/dist/types-ts4.5/types/index.d.ts +2 -1
  288. package/dist/types-ts4.5/ui/Announcer/announcer.d.ts +22 -0
  289. package/dist/types-ts4.5/ui/PanelTextInput/index.d.ts +45 -0
  290. package/dist/types-ts4.5/ui/PanelTextInput/styles.d.ts +2 -0
  291. package/dist/types-ts4.5/ui/index.d.ts +3 -0
  292. package/dist/types-ts4.5/utils/commands.d.ts +2 -0
  293. package/dist/types-ts4.5/utils/hyperlink.d.ts +2 -0
  294. package/dist/types-ts4.5/utils/index.d.ts +3 -1
  295. package/link/package.json +15 -0
  296. package/package.json +11 -3
  297. package/quick-insert/package.json +15 -0
@@ -0,0 +1,48 @@
1
+ // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
2
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
+ import React from 'react';
4
+ export default function IconMention() {
5
+ return /*#__PURE__*/React.createElement("svg", {
6
+ focusable: "false",
7
+ "aria-hidden": true,
8
+ width: 40,
9
+ height: 40
10
+ }, /*#__PURE__*/React.createElement("g", {
11
+ fill: "none",
12
+ fillRule: "evenodd"
13
+ }, /*#__PURE__*/React.createElement("path", {
14
+ fill: "#FFF",
15
+ d: "M0 0h40v40H0z"
16
+ }), /*#__PURE__*/React.createElement("g", {
17
+ transform: "translate(6 12)"
18
+ }, /*#__PURE__*/React.createElement("circle", {
19
+ fill: "#2684FF",
20
+ cx: 8,
21
+ cy: 8,
22
+ r: 8
23
+ }), /*#__PURE__*/React.createElement("path", {
24
+ d: "M12.875 12.767A6.891 6.891 0 018.02 14.75a6.889 6.889 0 01-4.895-2.026V11.9c0-1.049.873-1.9 1.95-1.9h5.85c1.077 0 1.95.851 1.95 1.9v.867zM8 3a2.874 2.874 0 10-.001 5.748 2.874 2.874 0 000-5.748",
25
+ fill: "#B3D4FF"
26
+ }), /*#__PURE__*/React.createElement("rect", {
27
+ fill: "#A5ADBA",
28
+ x: 19,
29
+ y: 3,
30
+ width: 12,
31
+ height: 1,
32
+ rx: 0.5
33
+ }), /*#__PURE__*/React.createElement("rect", {
34
+ fill: "#A5ADBA",
35
+ x: 19,
36
+ y: 7,
37
+ width: 6,
38
+ height: 1,
39
+ rx: 0.5
40
+ }), /*#__PURE__*/React.createElement("rect", {
41
+ fill: "#A5ADBA",
42
+ x: 19,
43
+ y: 11,
44
+ width: 8,
45
+ height: 1,
46
+ rx: 0.5
47
+ }))));
48
+ }
@@ -0,0 +1,27 @@
1
+ // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
2
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
+ import React from 'react';
4
+ export default function IconPanelError() {
5
+ return /*#__PURE__*/React.createElement("svg", {
6
+ focusable: "false",
7
+ "aria-hidden": true,
8
+ width: 40,
9
+ height: 40
10
+ }, /*#__PURE__*/React.createElement("g", {
11
+ fill: "none",
12
+ fillRule: "evenodd"
13
+ }, /*#__PURE__*/React.createElement("path", {
14
+ fill: "#FFF",
15
+ d: "M0 0h40v40H0z"
16
+ }), /*#__PURE__*/React.createElement("rect", {
17
+ fill: "#FFEBE6",
18
+ x: 8,
19
+ y: 12,
20
+ width: 32,
21
+ height: 16,
22
+ rx: 1
23
+ }), /*#__PURE__*/React.createElement("path", {
24
+ d: "M16.743 19.964l1.06-1.06a.5.5 0 00-.707-.707l-1.06 1.06-1.061-1.06a.5.5 0 00-.707.707l1.06 1.06-1.06 1.061a.5.5 0 10.707.707l1.06-1.06 1.061 1.06a.5.5 0 10.707-.707l-1.06-1.06zM16 24a4 4 0 110-8 4 4 0 010 8z",
25
+ fill: "#DE350B"
26
+ })));
27
+ }
@@ -0,0 +1,27 @@
1
+ // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
2
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
+ import React from 'react';
4
+ export default function IconPanelNote() {
5
+ return /*#__PURE__*/React.createElement("svg", {
6
+ focusable: "false",
7
+ "aria-hidden": true,
8
+ width: 40,
9
+ height: 40
10
+ }, /*#__PURE__*/React.createElement("g", {
11
+ fill: "none",
12
+ fillRule: "evenodd"
13
+ }, /*#__PURE__*/React.createElement("path", {
14
+ fill: "#FFF",
15
+ d: "M0 0h40v40H0z"
16
+ }), /*#__PURE__*/React.createElement("rect", {
17
+ fill: "#EAE6FF",
18
+ x: 8,
19
+ y: 12,
20
+ width: 32,
21
+ height: 16,
22
+ rx: 1
23
+ }), /*#__PURE__*/React.createElement("path", {
24
+ d: "M13 16h4a1 1 0 011 1v6a1 1 0 01-1 1h-4a1 1 0 01-1-1v-6a1 1 0 011-1zm1 2a.5.5 0 100 1h2a.5.5 0 100-1h-2zm0 2a.5.5 0 100 1h1a.5.5 0 100-1h-1z",
25
+ fill: "#403294"
26
+ })));
27
+ }
@@ -0,0 +1,27 @@
1
+ // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
2
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
+ import React from 'react';
4
+ export default function IconPanelSuccess() {
5
+ return /*#__PURE__*/React.createElement("svg", {
6
+ focusable: "false",
7
+ "aria-hidden": true,
8
+ width: 40,
9
+ height: 40
10
+ }, /*#__PURE__*/React.createElement("g", {
11
+ fill: "none",
12
+ fillRule: "evenodd"
13
+ }, /*#__PURE__*/React.createElement("path", {
14
+ fill: "#FFF",
15
+ d: "M0 0h40v40H0z"
16
+ }), /*#__PURE__*/React.createElement("rect", {
17
+ fill: "#C3F8DF",
18
+ x: 8,
19
+ y: 12,
20
+ width: 32,
21
+ height: 16,
22
+ rx: 1
23
+ }), /*#__PURE__*/React.createElement("path", {
24
+ d: "M15 24a4 4 0 110-8 4 4 0 010 8zm.682-5.482l-1.076 2.055-.772-.695a.5.5 0 00-.668.744l1.25 1.125a.5.5 0 00.777-.14l1.375-2.625a.5.5 0 00-.886-.464z",
25
+ fill: "#00875A"
26
+ })));
27
+ }
@@ -0,0 +1,27 @@
1
+ // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
2
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
+ import React from 'react';
4
+ export default function IconPanelWarning() {
5
+ return /*#__PURE__*/React.createElement("svg", {
6
+ focusable: "false",
7
+ "aria-hidden": true,
8
+ width: 40,
9
+ height: 40
10
+ }, /*#__PURE__*/React.createElement("g", {
11
+ fill: "none",
12
+ fillRule: "evenodd"
13
+ }, /*#__PURE__*/React.createElement("path", {
14
+ fill: "#FFF",
15
+ d: "M0 0h40v40H0z"
16
+ }), /*#__PURE__*/React.createElement("rect", {
17
+ fill: "#FFF0B3",
18
+ x: 8,
19
+ y: 12,
20
+ width: 32,
21
+ height: 16,
22
+ rx: 1
23
+ }), /*#__PURE__*/React.createElement("path", {
24
+ d: "M16.847 16.83l2.808 5.73a1 1 0 01-.898 1.44h-6.514a1 1 0 01-.898-1.44l2.808-5.73a1.5 1.5 0 012.694 0zm-1.347.46a.568.568 0 00-.564.635l.278 2.32a.288.288 0 00.572 0l.278-2.32a.568.568 0 00-.564-.635zm0 5.035c.318 0 .576-.293.576-.656 0-.362-.258-.656-.576-.656-.318 0-.576.294-.576.656 0 .363.258.656.576.656z",
25
+ fill: "#FF8B00"
26
+ })));
27
+ }
@@ -0,0 +1,42 @@
1
+ // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
2
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
+ import React from 'react';
4
+ export default function IconPanel() {
5
+ return /*#__PURE__*/React.createElement("svg", {
6
+ focusable: "false",
7
+ "aria-hidden": true,
8
+ width: 40,
9
+ height: 40
10
+ }, /*#__PURE__*/React.createElement("g", {
11
+ fill: "none",
12
+ fillRule: "evenodd"
13
+ }, /*#__PURE__*/React.createElement("path", {
14
+ fill: "#FFF",
15
+ d: "M0 0h40v40H0z"
16
+ }), /*#__PURE__*/React.createElement("rect", {
17
+ fill: "#DEEBFF",
18
+ x: 8,
19
+ y: 12,
20
+ width: 32,
21
+ height: 16,
22
+ rx: 1
23
+ }), /*#__PURE__*/React.createElement("path", {
24
+ d: "M12 20a4 4 0 108 0 4 4 0 00-8 0z",
25
+ fill: "#0052CC",
26
+ fillRule: "nonzero"
27
+ }), /*#__PURE__*/React.createElement("rect", {
28
+ fill: "#FFF",
29
+ fillRule: "nonzero",
30
+ x: 15.556,
31
+ y: 19.722,
32
+ width: 1,
33
+ height: 2.2,
34
+ rx: 0.5
35
+ }), /*#__PURE__*/React.createElement("circle", {
36
+ fill: "#FFF",
37
+ fillRule: "nonzero",
38
+ cx: 16,
39
+ cy: 18.444,
40
+ r: 1
41
+ })));
42
+ }
@@ -0,0 +1,27 @@
1
+ // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
2
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
+ import React from 'react';
4
+ export default function IconQuote() {
5
+ return /*#__PURE__*/React.createElement("svg", {
6
+ focusable: "false",
7
+ "aria-hidden": true,
8
+ width: 40,
9
+ height: 40
10
+ }, /*#__PURE__*/React.createElement("g", {
11
+ fill: "none",
12
+ fillRule: "evenodd"
13
+ }, /*#__PURE__*/React.createElement("path", {
14
+ fill: "#FFF",
15
+ d: "M0 0h40v40H0z"
16
+ }), /*#__PURE__*/React.createElement("rect", {
17
+ fill: "#C1C7D0",
18
+ x: 6,
19
+ y: 8,
20
+ width: 2,
21
+ height: 24,
22
+ rx: 1
23
+ }), /*#__PURE__*/React.createElement("path", {
24
+ d: "M27.284 12c-1.888 0-3.422 1.577-3.422 3.522 0 1.944 1.534 3.521 3.422 3.521 3.245 0 1.365 6.118-2.727 6.755a.818.818 0 00-.695.806c0 .5.447.896.942.82C32.242 26.296 34.886 12 27.284 12m-9.86 0C15.533 12 14 13.577 14 15.522c0 1.944 1.533 3.521 3.424 3.521 3.243 0 1.363 6.118-2.73 6.755a.818.818 0 00-.694.806c0 .5.447.896.941.82C22.381 26.296 25.026 12 17.424 12",
25
+ fill: "#6C798F"
26
+ })));
27
+ }
@@ -0,0 +1,101 @@
1
+ // TODO: https://product-fabric.atlassian.net/browse/DSP-4138
2
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
+ import React from 'react';
4
+ export default function IconStatus() {
5
+ return /*#__PURE__*/React.createElement("svg", {
6
+ focusable: "false",
7
+ "aria-hidden": true,
8
+ width: 40,
9
+ height: 40
10
+ }, /*#__PURE__*/React.createElement("g", {
11
+ fill: "none",
12
+ fillRule: "evenodd"
13
+ }, /*#__PURE__*/React.createElement("path", {
14
+ fill: "#FFF",
15
+ d: "M0 0h40v40H0z"
16
+ }), /*#__PURE__*/React.createElement("g", {
17
+ transform: "translate(5 11)"
18
+ }, /*#__PURE__*/React.createElement("rect", {
19
+ fill: "#B3D4FF",
20
+ width: 14,
21
+ height: 5,
22
+ rx: 1
23
+ }), /*#__PURE__*/React.createElement("rect", {
24
+ fill: "#0065FF",
25
+ x: 2,
26
+ y: 2,
27
+ width: 10,
28
+ height: 1,
29
+ rx: 0.5
30
+ })), /*#__PURE__*/React.createElement("g", {
31
+ transform: "translate(5 18)"
32
+ }, /*#__PURE__*/React.createElement("rect", {
33
+ fill: "#C3F8DF",
34
+ width: 14,
35
+ height: 5,
36
+ rx: 1
37
+ }), /*#__PURE__*/React.createElement("rect", {
38
+ fill: "#36B37E",
39
+ x: 2,
40
+ y: 2,
41
+ width: 10,
42
+ height: 1,
43
+ rx: 0.5
44
+ })), /*#__PURE__*/React.createElement("g", {
45
+ transform: "translate(5 25)"
46
+ }, /*#__PURE__*/React.createElement("rect", {
47
+ fill: "#DFE1E6",
48
+ width: 14,
49
+ height: 5,
50
+ rx: 1
51
+ }), /*#__PURE__*/React.createElement("rect", {
52
+ fill: "#8993A4",
53
+ x: 2,
54
+ y: 2,
55
+ width: 10,
56
+ height: 1,
57
+ rx: 0.5
58
+ })), /*#__PURE__*/React.createElement("g", {
59
+ transform: "translate(21 25)"
60
+ }, /*#__PURE__*/React.createElement("rect", {
61
+ fill: "#FFD3C8",
62
+ width: 14,
63
+ height: 5,
64
+ rx: 1
65
+ }), /*#__PURE__*/React.createElement("rect", {
66
+ fill: "#FF5230",
67
+ x: 2,
68
+ y: 2,
69
+ width: 10,
70
+ height: 1,
71
+ rx: 0.5
72
+ })), /*#__PURE__*/React.createElement("g", {
73
+ transform: "translate(21 11)"
74
+ }, /*#__PURE__*/React.createElement("rect", {
75
+ fill: "#EAE6FF",
76
+ width: 14,
77
+ height: 5,
78
+ rx: 1
79
+ }), /*#__PURE__*/React.createElement("rect", {
80
+ fill: "#8777D9",
81
+ x: 2,
82
+ y: 2,
83
+ width: 10,
84
+ height: 1,
85
+ rx: 0.5
86
+ })), /*#__PURE__*/React.createElement("g", {
87
+ transform: "translate(21 18)"
88
+ }, /*#__PURE__*/React.createElement("rect", {
89
+ fill: "#FFF0B3",
90
+ width: 14,
91
+ height: 5,
92
+ rx: 1
93
+ }), /*#__PURE__*/React.createElement("rect", {
94
+ fill: "#FF991F",
95
+ x: 2,
96
+ y: 2,
97
+ width: 10,
98
+ height: 1,
99
+ rx: 0.5
100
+ }))));
101
+ }
@@ -0,0 +1 @@
1
+ export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback } from './assets';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,41 @@
1
+ import React, { forwardRef, memo, useEffect, useState } from 'react';
2
+
3
+ // How to use:
4
+ // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions#Preferring_specialized_live_region_roles
5
+ // Demo: https://dequeuniversity.com/library/aria/liveregion-playground
6
+
7
+ // Important: Strongly recommend test your solution in all supported screen readers
8
+ // if you use non default value of properties: ariaAtomic, ariaLive, ariaRelevant, role
9
+
10
+ // Note: Text won't be announced if the text message doesn't change after the render.
11
+ // For using a forced announcement in this case, set the 'key' attribute - key={Date.now()}
12
+ // Note: Flag 'contentRendered' resolves bug with duplicates messages (NVDA + Firefox)
13
+ // https://github.com/nvaccess/nvda/labels/bug%2Fdouble-speaking
14
+ let timer;
15
+ const Announcer = /*#__PURE__*/forwardRef(({
16
+ ariaAtomic = 'true',
17
+ ariaLive = 'polite',
18
+ ariaRelevant = 'all',
19
+ role = 'status',
20
+ text = '',
21
+ delay = 0
22
+ }, ref) => {
23
+ const [contentRendered, setContentRendered] = useState(false);
24
+ useEffect(() => {
25
+ clearTimeout(timer);
26
+ setContentRendered(false);
27
+ timer = setTimeout(() => {
28
+ setContentRendered(true);
29
+ }, delay);
30
+ return () => clearTimeout(timer);
31
+ }, [text, delay]);
32
+ return /*#__PURE__*/React.createElement("div", {
33
+ className: "assistive",
34
+ ref: ref,
35
+ role: role,
36
+ "aria-atomic": ariaAtomic,
37
+ "aria-relevant": ariaRelevant,
38
+ "aria-live": ariaLive
39
+ }, contentRendered && /*#__PURE__*/React.createElement("span", null, text));
40
+ });
41
+ export default /*#__PURE__*/memo(Announcer);
@@ -8,7 +8,7 @@ import { themed } from '@atlaskit/theme/components';
8
8
  import { borderRadius } from '@atlaskit/theme/constants';
9
9
  import Layer from '../Layer';
10
10
  const packageName = "@atlaskit/editor-common";
11
- const packageVersion = "74.19.2";
11
+ const packageVersion = "74.20.0";
12
12
  const halfFocusRing = 1;
13
13
  const dropOffset = '0, 8';
14
14
  class DropList extends Component {
@@ -0,0 +1,149 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ /** @jsx jsx */
3
+ import { PureComponent } from 'react';
4
+ import { jsx } from '@emotion/react';
5
+ import { browser } from '../../utils';
6
+ import { panelTextInput, panelTextInputWithCustomWidth } from './styles';
7
+ const KeyZCode = 90;
8
+ const KeyYCode = 89;
9
+ export default class PanelTextInput extends PureComponent {
10
+ constructor(props) {
11
+ super(props);
12
+ _defineProperty(this, "onMouseDown", () => {
13
+ const {
14
+ onMouseDown
15
+ } = this.props;
16
+ if (onMouseDown) {
17
+ onMouseDown();
18
+ }
19
+ });
20
+ _defineProperty(this, "onBlur", e => {
21
+ const {
22
+ onBlur
23
+ } = this.props;
24
+ if (onBlur) {
25
+ onBlur(e);
26
+ }
27
+ });
28
+ _defineProperty(this, "handleChange", () => {
29
+ const {
30
+ onChange
31
+ } = this.props;
32
+ if (this.input) {
33
+ this.setState({
34
+ value: this.input.value
35
+ });
36
+ }
37
+ if (onChange && this.input) {
38
+ onChange(this.input.value);
39
+ }
40
+ });
41
+ _defineProperty(this, "handleKeydown", e => {
42
+ const {
43
+ onUndo,
44
+ onRedo,
45
+ onSubmit,
46
+ onCancel
47
+ } = this.props;
48
+ if (e.keyCode === 13 && onSubmit) {
49
+ e.preventDefault(); // Prevent from submitting if an editor is inside a form.
50
+ onSubmit(this.input.value);
51
+ } else if (e.keyCode === 27 && onCancel) {
52
+ onCancel(e);
53
+ } else if (typeof onUndo === 'function' && this.isUndoEvent(e)) {
54
+ e.preventDefault();
55
+ onUndo();
56
+ } else if (typeof onRedo === 'function' && this.isRedoEvent(e)) {
57
+ e.preventDefault();
58
+ onRedo();
59
+ }
60
+ if (this.props.onKeyDown) {
61
+ this.props.onKeyDown(e);
62
+ }
63
+ });
64
+ _defineProperty(this, "handleRef", input => {
65
+ if (input instanceof HTMLInputElement) {
66
+ this.input = input;
67
+ if (this.props.autoFocus) {
68
+ // Need this to prevent jumping when we render TextInput inside Portal @see ED-2992
69
+ this.focusTimeoutId = window.setTimeout(() => this.focus());
70
+ }
71
+ } else {
72
+ this.input = undefined;
73
+ }
74
+ });
75
+ this.state = {
76
+ value: props.defaultValue || ''
77
+ };
78
+ }
79
+ componentDidUpdate(prevProps) {
80
+ if (prevProps.defaultValue !== this.props.defaultValue) {
81
+ this.setState({
82
+ value: this.props.defaultValue
83
+ });
84
+ }
85
+ }
86
+ componentWillUnmount() {
87
+ window.clearTimeout(this.focusTimeoutId);
88
+ }
89
+ render() {
90
+ const {
91
+ placeholder,
92
+ width,
93
+ maxLength,
94
+ testId,
95
+ ariaLabel,
96
+ describedById,
97
+ ariaActiveDescendant,
98
+ ariaControls,
99
+ ariaExpanded,
100
+ ariaAutoComplete,
101
+ role
102
+ } = this.props;
103
+ const {
104
+ value
105
+ } = this.state;
106
+ return jsx("input", {
107
+ css: [panelTextInput, width !== undefined && panelTextInputWithCustomWidth(width)],
108
+ role: role,
109
+ "aria-autocomplete": ariaAutoComplete ? 'list' : undefined,
110
+ "aria-expanded": ariaExpanded,
111
+ "aria-controls": ariaControls,
112
+ "aria-activedescendant": ariaActiveDescendant,
113
+ "aria-describedby": describedById,
114
+ "data-testid": testId || '',
115
+ type: "text",
116
+ placeholder: placeholder,
117
+ value: value,
118
+ onChange: this.handleChange,
119
+ onKeyDown: this.handleKeydown,
120
+ onMouseDown: this.onMouseDown,
121
+ onBlur: this.onBlur,
122
+ ref: this.handleRef,
123
+ maxLength: maxLength,
124
+ "aria-label": ariaLabel
125
+ });
126
+ }
127
+ focus() {
128
+ const {
129
+ input
130
+ } = this;
131
+ if (input) {
132
+ const focusOpts = typeof this.props.autoFocus === 'object' ? this.props.autoFocus : {};
133
+ input.focus(focusOpts);
134
+ }
135
+ }
136
+ isUndoEvent(event) {
137
+ return event.keyCode === KeyZCode && (
138
+ // cmd + z for mac
139
+ browser.mac && event.metaKey && !event.shiftKey ||
140
+ // ctrl + z for non-mac
141
+ !browser.mac && event.ctrlKey);
142
+ }
143
+ isRedoEvent(event) {
144
+ return (
145
+ // ctrl + y for non-mac
146
+ !browser.mac && event.ctrlKey && event.keyCode === KeyYCode || browser.mac && event.metaKey && event.shiftKey && event.keyCode === KeyZCode || event.ctrlKey && event.shiftKey && event.keyCode === KeyZCode
147
+ );
148
+ }
149
+ }
@@ -0,0 +1,36 @@
1
+ import { css } from '@emotion/react';
2
+ import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
3
+ import { N100, N400 } from '@atlaskit/theme/colors';
4
+ // Normal .className gets overridden by input[type=text] hence this hack to produce input.className
5
+ export const panelTextInput = css`
6
+ input& {
7
+ background: transparent;
8
+ border: 0;
9
+ border-radius: 0;
10
+ box-sizing: content-box;
11
+ color: ${`var(--ds-text-subtle, ${N400})`};
12
+ flex-grow: 1;
13
+ font-size: ${relativeFontSizeToBase16(13)};
14
+ line-height: 20px;
15
+ padding: 0;
16
+ min-width: 145px;
17
+
18
+ /* Hides IE10+ built-in [x] clear input button */
19
+ &::-ms-clear {
20
+ display: none;
21
+ }
22
+
23
+ &:focus {
24
+ outline: none;
25
+ }
26
+
27
+ &::placeholder {
28
+ color: ${`var(--ds-text-subtlest, ${N100})`};
29
+ }
30
+ }
31
+ `;
32
+ export const panelTextInputWithCustomWidth = width => css`
33
+ input& {
34
+ width: ${width}px;
35
+ }
36
+ `;
@@ -22,4 +22,7 @@ export { RECENT_SEARCH_WIDTH_IN_PX, RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX, REC
22
22
  export { ContextPanelProvider, ContextPanelWidthProvider, ContextPanelConsumer, ContextPanel } from './ContextPanel/context';
23
23
  export { default as Resizer } from './ResizerLegacy';
24
24
  export { snapTo, handleSides, imageAlignmentMap } from './ResizerLegacy/utils';
25
- export { wrapperStyle } from './ResizerLegacy/styled';
25
+ export { wrapperStyle } from './ResizerLegacy/styled';
26
+ export { panelTextInput } from './PanelTextInput/styles';
27
+ export { default as PanelTextInput } from './PanelTextInput';
28
+ export { default as Announcer } from './Announcer/announcer';
@@ -0,0 +1,11 @@
1
+ export const filter = (predicates, cmd) => {
2
+ return function (state, dispatch, view) {
3
+ if (!Array.isArray(predicates)) {
4
+ predicates = [predicates];
5
+ }
6
+ if (predicates.some(pred => !pred(state, view))) {
7
+ return false;
8
+ }
9
+ return cmd(state, dispatch, view) || false;
10
+ };
11
+ };
@@ -162,4 +162,22 @@ export function getLinkCreationAnalyticsEvent(inputMethod, url) {
162
162
  linkDomain: getLinkDomain(url)
163
163
  }
164
164
  };
165
- }
165
+ }
166
+ export const canLinkBeCreatedInRange = (from, to) => state => {
167
+ if (!state.doc.rangeHasMark(from, to, state.schema.marks.link)) {
168
+ const $from = state.doc.resolve(from);
169
+ const $to = state.doc.resolve(to);
170
+ const link = state.schema.marks.link;
171
+ if ($from.parent === $to.parent && $from.parent.isTextblock) {
172
+ if ($from.parent.type.allowsMarkType(link)) {
173
+ let allowed = true;
174
+ state.doc.nodesBetween(from, to, node => {
175
+ allowed = allowed && !node.marks.some(m => m.type.excludes(link));
176
+ return allowed;
177
+ });
178
+ return allowed;
179
+ }
180
+ }
181
+ }
182
+ return false;
183
+ };
@@ -35,7 +35,7 @@ export { useComponentRenderTracking } from './performance/hooks/use-component-re
35
35
  export { isOutdatedBrowser } from './outdated-browsers';
36
36
  export { isReferencedSource, removeConnectedNodes, getChildrenInfo, getNodeName } from './referentiality';
37
37
  export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList } from './list';
38
- export { isFromCurrentDomain, LinkMatcher, normalizeUrl, linkifyContent, getLinkDomain, findFilepaths, isLinkInMatches, FILEPATH_REGEXP, DONTLINKIFY_REGEXP, getLinkCreationAnalyticsEvent } from './hyperlink';
38
+ export { isFromCurrentDomain, LinkMatcher, normalizeUrl, linkifyContent, getLinkDomain, findFilepaths, isLinkInMatches, FILEPATH_REGEXP, DONTLINKIFY_REGEXP, getLinkCreationAnalyticsEvent, canLinkBeCreatedInRange } from './hyperlink';
39
39
 
40
40
  // prosemirror-history does not export its plugin key
41
41
  export const pmHistoryPluginKey = 'history$';
@@ -43,4 +43,10 @@ export { gridTypeForLayout } from './grid';
43
43
  export { nodesBetweenChanged, getStepRange, isEmptyDocument, processRawValue, hasDocAsParent, bracketTyped } from './document';
44
44
  export { floatingLayouts, isRichMediaInsideOfBlockNode, calculateSnapPoints, alignAttributes } from './rich-media-utils';
45
45
  export { sanitizeNodeForPrivacy } from './filter/privacy-filter';
46
- export { canRenderDatasource } from './datasource';
46
+ export { canRenderDatasource } from './datasource';
47
+ export { filter as filterCommands } from './commands';
48
+ export function shallowEqual(obj1 = {}, obj2 = {}) {
49
+ const keys1 = Object.keys(obj1);
50
+ const keys2 = Object.keys(obj2);
51
+ return keys1.length === keys2.length && keys1.reduce((acc, key) => acc && obj1[key] === obj2[key], true);
52
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.19.2",
3
+ "version": "74.20.0",
4
4
  "sideEffects": false
5
5
  }