@atlaskit/editor-common 72.8.0 → 73.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 (234) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/analytics/types/enums.js +32 -32
  3. package/dist/cjs/analytics/types/extension-events.js +8 -8
  4. package/dist/cjs/analytics/types/format-events.js +8 -8
  5. package/dist/cjs/analytics/types/general-events.js +16 -16
  6. package/dist/cjs/analytics/types/inline-comment-events.js +4 -4
  7. package/dist/cjs/analytics/types/insert-events.js +16 -16
  8. package/dist/cjs/analytics/types/list-events.js +16 -16
  9. package/dist/cjs/analytics/types/node-events.js +8 -8
  10. package/dist/cjs/analytics/types/substitute-events.js +8 -8
  11. package/dist/cjs/analytics/types/table-events.js +11 -10
  12. package/dist/cjs/analytics/types/toolbar-button.js +4 -4
  13. package/dist/cjs/analytics/types/utils.js +8 -8
  14. package/dist/cjs/extensions/default-extension-provider.js +55 -62
  15. package/dist/cjs/extensions/extension-fields-helpers.js +83 -94
  16. package/dist/cjs/extensions/extension-handlers.js +50 -55
  17. package/dist/cjs/extensions/manifest-helpers.js +13 -16
  18. package/dist/cjs/extensions/module-helpers.js +50 -57
  19. package/dist/cjs/i18n/cs.js +36 -2
  20. package/dist/cjs/i18n/da.js +36 -2
  21. package/dist/cjs/i18n/de.js +37 -3
  22. package/dist/cjs/i18n/en.js +36 -2
  23. package/dist/cjs/i18n/en_GB.js +36 -2
  24. package/dist/cjs/i18n/en_ZZ.js +18 -2
  25. package/dist/cjs/i18n/es.js +36 -2
  26. package/dist/cjs/i18n/fi.js +36 -2
  27. package/dist/cjs/i18n/fr.js +36 -2
  28. package/dist/cjs/i18n/hu.js +36 -2
  29. package/dist/cjs/i18n/it.js +36 -2
  30. package/dist/cjs/i18n/ja.js +36 -2
  31. package/dist/cjs/i18n/ko.js +36 -2
  32. package/dist/cjs/i18n/nb.js +36 -2
  33. package/dist/cjs/i18n/nl.js +36 -2
  34. package/dist/cjs/i18n/pl.js +36 -2
  35. package/dist/cjs/i18n/pt_BR.js +36 -2
  36. package/dist/cjs/i18n/ru.js +36 -2
  37. package/dist/cjs/i18n/sv.js +36 -2
  38. package/dist/cjs/i18n/th.js +36 -2
  39. package/dist/cjs/i18n/tr.js +36 -2
  40. package/dist/cjs/i18n/uk.js +36 -2
  41. package/dist/cjs/i18n/vi.js +36 -2
  42. package/dist/cjs/i18n/zh.js +36 -2
  43. package/dist/cjs/i18n/zh_TW.js +36 -2
  44. package/dist/cjs/icons/index.js +1 -1
  45. package/dist/cjs/preset/plugin-injection-api.js +1 -1
  46. package/dist/cjs/provider-helpers/combine-providers.js +63 -72
  47. package/dist/cjs/provider-helpers/promise-helpers.js +4 -4
  48. package/dist/cjs/selection/gap-cursor/selection.js +4 -4
  49. package/dist/cjs/selection/types.js +4 -4
  50. package/dist/cjs/styles/shared/lists.js +3 -3
  51. package/dist/cjs/type-ahead/index.js +8 -8
  52. package/dist/cjs/types/annotation/emitter.js +4 -4
  53. package/dist/cjs/types/index.js +4 -4
  54. package/dist/cjs/types/toolbar.js +12 -12
  55. package/dist/cjs/ufo/experience-store.js +4 -4
  56. package/dist/cjs/ui/DropList/index.js +2 -2
  57. package/dist/cjs/ui/Layer/index.js +1 -2
  58. package/dist/cjs/ui/OverflowShadow/shadowObserver.js +4 -4
  59. package/dist/cjs/ui/Popup/index.js +3 -4
  60. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +10 -4
  61. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +8 -4
  62. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/index.js +19 -7
  63. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/types.js +4 -4
  64. package/dist/cjs/utils/analytics.js +4 -4
  65. package/dist/cjs/utils/browser-extensions.js +1 -1
  66. package/dist/cjs/utils/compareNodes.js +6 -6
  67. package/dist/cjs/utils/date.js +3 -3
  68. package/dist/cjs/utils/list.js +3 -0
  69. package/dist/cjs/utils/nodes.js +15 -14
  70. package/dist/cjs/utils/referentiality.js +1 -1
  71. package/dist/cjs/utils/unsupportedContent/get-unsupported-content-level-data.js +4 -4
  72. package/dist/cjs/version.json +1 -1
  73. package/dist/cjs/with-plugin-state/index.js +3 -4
  74. package/dist/es2019/analytics/types/enums.js +24 -24
  75. package/dist/es2019/analytics/types/extension-events.js +8 -8
  76. package/dist/es2019/analytics/types/format-events.js +6 -6
  77. package/dist/es2019/analytics/types/general-events.js +14 -12
  78. package/dist/es2019/analytics/types/inline-comment-events.js +3 -3
  79. package/dist/es2019/analytics/types/insert-events.js +12 -12
  80. package/dist/es2019/analytics/types/list-events.js +12 -12
  81. package/dist/es2019/analytics/types/node-events.js +6 -6
  82. package/dist/es2019/analytics/types/substitute-events.js +6 -6
  83. package/dist/es2019/analytics/types/table-events.js +10 -9
  84. package/dist/es2019/analytics/types/toolbar-button.js +3 -3
  85. package/dist/es2019/analytics/types/utils.js +6 -6
  86. package/dist/es2019/i18n/cs.js +36 -2
  87. package/dist/es2019/i18n/da.js +36 -2
  88. package/dist/es2019/i18n/de.js +37 -3
  89. package/dist/es2019/i18n/en.js +36 -2
  90. package/dist/es2019/i18n/en_GB.js +36 -2
  91. package/dist/es2019/i18n/en_ZZ.js +18 -2
  92. package/dist/es2019/i18n/es.js +36 -2
  93. package/dist/es2019/i18n/fi.js +36 -2
  94. package/dist/es2019/i18n/fr.js +36 -2
  95. package/dist/es2019/i18n/hu.js +36 -2
  96. package/dist/es2019/i18n/it.js +36 -2
  97. package/dist/es2019/i18n/ja.js +36 -2
  98. package/dist/es2019/i18n/ko.js +36 -2
  99. package/dist/es2019/i18n/nb.js +36 -2
  100. package/dist/es2019/i18n/nl.js +36 -2
  101. package/dist/es2019/i18n/pl.js +36 -2
  102. package/dist/es2019/i18n/pt_BR.js +36 -2
  103. package/dist/es2019/i18n/ru.js +36 -2
  104. package/dist/es2019/i18n/sv.js +36 -2
  105. package/dist/es2019/i18n/th.js +36 -2
  106. package/dist/es2019/i18n/tr.js +36 -2
  107. package/dist/es2019/i18n/uk.js +36 -2
  108. package/dist/es2019/i18n/vi.js +36 -2
  109. package/dist/es2019/i18n/zh.js +36 -2
  110. package/dist/es2019/i18n/zh_TW.js +36 -2
  111. package/dist/es2019/provider-helpers/promise-helpers.js +3 -3
  112. package/dist/es2019/selection/gap-cursor/selection.js +3 -3
  113. package/dist/es2019/selection/types.js +3 -3
  114. package/dist/es2019/styles/shared/lists.js +3 -3
  115. package/dist/es2019/type-ahead/index.js +6 -6
  116. package/dist/es2019/types/annotation/emitter.js +3 -3
  117. package/dist/es2019/types/index.js +3 -3
  118. package/dist/es2019/types/toolbar.js +9 -9
  119. package/dist/es2019/ufo/experience-store.js +3 -3
  120. package/dist/es2019/ui/DropList/index.js +2 -2
  121. package/dist/es2019/ui/Layer/index.js +1 -2
  122. package/dist/es2019/ui/OverflowShadow/shadowObserver.js +3 -3
  123. package/dist/es2019/ui/Popup/index.js +3 -5
  124. package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +7 -5
  125. package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +6 -4
  126. package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/index.js +14 -4
  127. package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/types.js +3 -3
  128. package/dist/es2019/utils/analytics.js +3 -3
  129. package/dist/es2019/utils/compareNodes.js +3 -3
  130. package/dist/es2019/utils/date.js +3 -3
  131. package/dist/es2019/utils/list.js +3 -0
  132. package/dist/es2019/utils/nodes.js +5 -5
  133. package/dist/es2019/utils/unsupportedContent/get-unsupported-content-level-data.js +3 -3
  134. package/dist/es2019/version.json +1 -1
  135. package/dist/es2019/with-plugin-state/index.js +3 -5
  136. package/dist/esm/analytics/types/enums.js +24 -24
  137. package/dist/esm/analytics/types/extension-events.js +8 -8
  138. package/dist/esm/analytics/types/format-events.js +6 -6
  139. package/dist/esm/analytics/types/general-events.js +14 -12
  140. package/dist/esm/analytics/types/inline-comment-events.js +3 -3
  141. package/dist/esm/analytics/types/insert-events.js +12 -12
  142. package/dist/esm/analytics/types/list-events.js +12 -12
  143. package/dist/esm/analytics/types/node-events.js +6 -6
  144. package/dist/esm/analytics/types/substitute-events.js +6 -6
  145. package/dist/esm/analytics/types/table-events.js +10 -9
  146. package/dist/esm/analytics/types/toolbar-button.js +3 -3
  147. package/dist/esm/analytics/types/utils.js +6 -6
  148. package/dist/esm/extensions/default-extension-provider.js +55 -62
  149. package/dist/esm/extensions/extension-fields-helpers.js +83 -94
  150. package/dist/esm/extensions/extension-handlers.js +50 -55
  151. package/dist/esm/extensions/manifest-helpers.js +13 -16
  152. package/dist/esm/extensions/module-helpers.js +50 -57
  153. package/dist/esm/i18n/cs.js +36 -2
  154. package/dist/esm/i18n/da.js +36 -2
  155. package/dist/esm/i18n/de.js +37 -3
  156. package/dist/esm/i18n/en.js +36 -2
  157. package/dist/esm/i18n/en_GB.js +36 -2
  158. package/dist/esm/i18n/en_ZZ.js +18 -2
  159. package/dist/esm/i18n/es.js +36 -2
  160. package/dist/esm/i18n/fi.js +36 -2
  161. package/dist/esm/i18n/fr.js +36 -2
  162. package/dist/esm/i18n/hu.js +36 -2
  163. package/dist/esm/i18n/it.js +36 -2
  164. package/dist/esm/i18n/ja.js +36 -2
  165. package/dist/esm/i18n/ko.js +36 -2
  166. package/dist/esm/i18n/nb.js +36 -2
  167. package/dist/esm/i18n/nl.js +36 -2
  168. package/dist/esm/i18n/pl.js +36 -2
  169. package/dist/esm/i18n/pt_BR.js +36 -2
  170. package/dist/esm/i18n/ru.js +36 -2
  171. package/dist/esm/i18n/sv.js +36 -2
  172. package/dist/esm/i18n/th.js +36 -2
  173. package/dist/esm/i18n/tr.js +36 -2
  174. package/dist/esm/i18n/uk.js +36 -2
  175. package/dist/esm/i18n/vi.js +36 -2
  176. package/dist/esm/i18n/zh.js +36 -2
  177. package/dist/esm/i18n/zh_TW.js +36 -2
  178. package/dist/esm/preset/plugin-injection-api.js +1 -1
  179. package/dist/esm/provider-helpers/combine-providers.js +63 -72
  180. package/dist/esm/provider-helpers/promise-helpers.js +3 -3
  181. package/dist/esm/selection/gap-cursor/selection.js +3 -3
  182. package/dist/esm/selection/types.js +3 -3
  183. package/dist/esm/styles/shared/lists.js +3 -3
  184. package/dist/esm/type-ahead/index.js +6 -6
  185. package/dist/esm/types/annotation/emitter.js +3 -3
  186. package/dist/esm/types/index.js +3 -3
  187. package/dist/esm/types/toolbar.js +9 -9
  188. package/dist/esm/ufo/experience-store.js +3 -3
  189. package/dist/esm/ui/DropList/index.js +2 -2
  190. package/dist/esm/ui/Layer/index.js +1 -2
  191. package/dist/esm/ui/OverflowShadow/shadowObserver.js +3 -3
  192. package/dist/esm/ui/Popup/index.js +3 -4
  193. package/dist/esm/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +10 -5
  194. package/dist/esm/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +8 -4
  195. package/dist/esm/ui-menu/ArrowKeyNavigationProvider/index.js +19 -7
  196. package/dist/esm/ui-menu/ArrowKeyNavigationProvider/types.js +3 -3
  197. package/dist/esm/utils/analytics.js +3 -3
  198. package/dist/esm/utils/browser-extensions.js +1 -1
  199. package/dist/esm/utils/compareNodes.js +5 -5
  200. package/dist/esm/utils/date.js +3 -3
  201. package/dist/esm/utils/list.js +3 -0
  202. package/dist/esm/utils/nodes.js +15 -14
  203. package/dist/esm/utils/referentiality.js +1 -1
  204. package/dist/esm/utils/unsupportedContent/get-unsupported-content-level-data.js +3 -3
  205. package/dist/esm/version.json +1 -1
  206. package/dist/esm/with-plugin-state/index.js +3 -4
  207. package/dist/types/collab/types.d.ts +0 -1
  208. package/dist/types/i18n/cs.d.ts +35 -2
  209. package/dist/types/i18n/da.d.ts +35 -2
  210. package/dist/types/i18n/de.d.ts +35 -2
  211. package/dist/types/i18n/en.d.ts +35 -2
  212. package/dist/types/i18n/en_GB.d.ts +35 -2
  213. package/dist/types/i18n/en_ZZ.d.ts +17 -2
  214. package/dist/types/i18n/es.d.ts +35 -2
  215. package/dist/types/i18n/fi.d.ts +35 -2
  216. package/dist/types/i18n/fr.d.ts +35 -2
  217. package/dist/types/i18n/hu.d.ts +35 -2
  218. package/dist/types/i18n/it.d.ts +35 -2
  219. package/dist/types/i18n/ja.d.ts +35 -2
  220. package/dist/types/i18n/ko.d.ts +35 -2
  221. package/dist/types/i18n/nb.d.ts +35 -2
  222. package/dist/types/i18n/nl.d.ts +35 -2
  223. package/dist/types/i18n/pl.d.ts +35 -2
  224. package/dist/types/i18n/pt_BR.d.ts +35 -2
  225. package/dist/types/i18n/ru.d.ts +35 -2
  226. package/dist/types/i18n/sv.d.ts +35 -2
  227. package/dist/types/i18n/th.d.ts +35 -2
  228. package/dist/types/i18n/tr.d.ts +35 -2
  229. package/dist/types/i18n/uk.d.ts +35 -2
  230. package/dist/types/i18n/vi.d.ts +35 -2
  231. package/dist/types/i18n/zh.d.ts +35 -2
  232. package/dist/types/i18n/zh_TW.d.ts +35 -2
  233. package/dist/types/ui-menu/ArrowKeyNavigationProvider/types.d.ts +4 -1
  234. package/package.json +6 -6
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -8,6 +9,7 @@
8
9
  export default {
9
10
  'fabric.editor.action': '動作項目',
10
11
  'fabric.editor.action.description': '建立並指派動作項目',
12
+ 'fabric.editor.addMediaFiles': '新增圖片、影片或檔案',
11
13
  'fabric.editor.alignImageCenter': '置中對齊',
12
14
  'fabric.editor.alignImageLeft': '靠左對齊',
13
15
  'fabric.editor.alignImageRight': '靠右對齊',
@@ -17,6 +19,8 @@ export default {
17
19
  'fabric.editor.codeBidiWarningLabel': '雙向字元會變更文字呈現的順序。這可用來將惡意程式碼模糊化。',
18
20
  'fabric.editor.codeBlockCopyButton.copiedToClipboard': '已複製!',
19
21
  'fabric.editor.codeBlockCopyButton.copyToClipboard': '複製文字',
22
+ 'fabric.editor.codeBlockWrapButton.unwrapCodeBlock': '關閉圍繞',
23
+ 'fabric.editor.codeBlockWrapButton.wrapCodeBlock': '開啟圍繞',
20
24
  'fabric.editor.collapseNode': '摺疊內容',
21
25
  'fabric.editor.columns': '版面配置',
22
26
  'fabric.editor.columns.description': '使用區段建立頁面的結構',
@@ -36,8 +40,6 @@ export default {
36
40
  'fabric.editor.expandPlaceholder': '為此展開設定標題...',
37
41
  'fabric.editor.feedbackDialog': '提供意見回饋',
38
42
  'fabric.editor.feedbackDialog.description': '請說明您對於新編輯器的使用體驗',
39
- 'fabric.editor.filesAndImages': '檔案與影像',
40
- 'fabric.editor.filesAndImages.description': '將影像和其他檔案新增至頁面',
41
43
  'fabric.editor.help': '說明',
42
44
  'fabric.editor.help.description': '瀏覽所有鍵盤快速鍵和 Markdown 選項',
43
45
  'fabric.editor.horizontalRule': '分隔線',
@@ -49,6 +51,8 @@ export default {
49
51
  'fabric.editor.layoutWide': '採用寬版',
50
52
  'fabric.editor.link': '連結',
51
53
  'fabric.editor.link.description': '插入連結',
54
+ 'fabric.editor.mediaFiles': '圖片、影片或檔案',
55
+ 'fabric.editor.mediaFiles.description': '將影像和其他檔案新增至頁面',
52
56
  'fabric.editor.mention': '提及',
53
57
  'fabric.editor.mention.description': '提及他人以傳送通知',
54
58
  'fabric.editor.openLink': '在新的索引標籤中開啟連結',
@@ -76,12 +80,32 @@ export default {
76
80
  'fabric.editor.viewMore': '檢視更多',
77
81
  'fabric.editor.visit': '在新視窗中開啟連結',
78
82
  'fabric.theme.blue': '藍色',
83
+ 'fabric.theme.bold-blue': '個性藍',
84
+ 'fabric.theme.bold-gray': '個性灰',
85
+ 'fabric.theme.bold-green': '個性綠',
86
+ 'fabric.theme.bold-magenta': '個性洋紅',
87
+ 'fabric.theme.bold-orange': '個性橘',
88
+ 'fabric.theme.bold-purple': '個性紫',
89
+ 'fabric.theme.bold-red': '個性紅',
90
+ 'fabric.theme.bold-teal': '個性藍綠',
91
+ 'fabric.theme.bold-yellow': '個性黃',
92
+ 'fabric.theme.bolder-blue': '酷炫藍',
93
+ 'fabric.theme.bolder-gray': '酷炫灰',
94
+ 'fabric.theme.bolder-green': '酷炫綠',
95
+ 'fabric.theme.bolder-magenta': '酷炫洋紅',
96
+ 'fabric.theme.bolder-orange': '酷炫橘',
97
+ 'fabric.theme.bolder-purple': '酷炫紫',
98
+ 'fabric.theme.bolder-red': '酷炫紅',
99
+ 'fabric.theme.bolder-teal': '酷炫藍綠',
100
+ 'fabric.theme.bolder-yellow': '酷炫黃',
79
101
  'fabric.theme.dark-blue': '深藍色',
102
+ 'fabric.theme.dark-gray': '深灰色',
80
103
  'fabric.theme.dark-green': '深綠色',
81
104
  'fabric.theme.dark-purple': '深紫色',
82
105
  'fabric.theme.dark-red': '深紅色',
83
106
  'fabric.theme.dark-teal': '深藍綠色',
84
107
  'fabric.theme.dark-yellow': '深黃色',
108
+ 'fabric.theme.default': '預設',
85
109
  'fabric.theme.gray': '灰色',
86
110
  'fabric.theme.green': '綠色',
87
111
  'fabric.theme.light-blue': '淺藍色',
@@ -91,9 +115,19 @@ export default {
91
115
  'fabric.theme.light-red': '淺紅色',
92
116
  'fabric.theme.light-teal': '淺藍綠色',
93
117
  'fabric.theme.light-yellow': '淺黃色',
118
+ 'fabric.theme.magenta': '洋紅色',
94
119
  'fabric.theme.orange': '橘色',
95
120
  'fabric.theme.purple': '紫色',
96
121
  'fabric.theme.red': '紅色',
122
+ 'fabric.theme.subtle-blue': '內斂藍',
123
+ 'fabric.theme.subtle-gray': '內斂灰',
124
+ 'fabric.theme.subtle-green': '內斂綠',
125
+ 'fabric.theme.subtle-magenta': '內斂洋紅',
126
+ 'fabric.theme.subtle-orange': '內斂橘',
127
+ 'fabric.theme.subtle-purple': '內斂紫',
128
+ 'fabric.theme.subtle-red': '內斂紅',
129
+ 'fabric.theme.subtle-teal': '內斂藍綠',
130
+ 'fabric.theme.subtle-yellow': '內斂黃',
97
131
  'fabric.theme.teal': '藍綠色',
98
132
  'fabric.theme.white': '白色',
99
133
  'fabric.theme.yellow': '黃色'
@@ -1,8 +1,8 @@
1
- export let ResultStatus;
2
- (function (ResultStatus) {
1
+ export let ResultStatus = /*#__PURE__*/function (ResultStatus) {
3
2
  ResultStatus["FULFILLED"] = "fulfilled";
4
3
  ResultStatus["FAILED"] = "failed";
5
- })(ResultStatus || (ResultStatus = {}));
4
+ return ResultStatus;
5
+ }({});
6
6
  const isFullfilled = result => result.status === ResultStatus.FULFILLED;
7
7
  const markFullfilled = value => ({
8
8
  status: ResultStatus.FULFILLED,
@@ -2,11 +2,11 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import { Slice } from 'prosemirror-model';
3
3
  import { Selection } from 'prosemirror-state';
4
4
  import { isValidTargetNode } from './utils/is-valid-target-node';
5
- export let Side;
6
- (function (Side) {
5
+ export let Side = /*#__PURE__*/function (Side) {
7
6
  Side["LEFT"] = "left";
8
7
  Side["RIGHT"] = "right";
9
- })(Side || (Side = {}));
8
+ return Side;
9
+ }({});
10
10
  export const JSON_ID = 'gapcursor';
11
11
  export class GapCursorSelection extends Selection {
12
12
  /**
@@ -1,7 +1,7 @@
1
- export let RelativeSelectionPos;
2
- (function (RelativeSelectionPos) {
1
+ export let RelativeSelectionPos = /*#__PURE__*/function (RelativeSelectionPos) {
3
2
  RelativeSelectionPos["Before"] = "Before";
4
3
  RelativeSelectionPos["Start"] = "Start";
5
4
  RelativeSelectionPos["Inside"] = "Inside";
6
5
  RelativeSelectionPos["End"] = "End";
7
- })(RelativeSelectionPos || (RelativeSelectionPos = {}));
6
+ return RelativeSelectionPos;
7
+ }({});
@@ -2,10 +2,10 @@ import { css } from '@emotion/react';
2
2
  import { bulletListSelector, orderedListSelector } from '@atlaskit/adf-schema';
3
3
  import browser from '../../utils/browser';
4
4
  export const listItemCounterPadding = 24;
5
- var CSS_VAR_NAMES;
6
- (function (CSS_VAR_NAMES) {
5
+ var CSS_VAR_NAMES = /*#__PURE__*/function (CSS_VAR_NAMES) {
7
6
  CSS_VAR_NAMES["ITEM_COUNTER_PADDING"] = "--ed--list--item-counter--padding";
8
- })(CSS_VAR_NAMES || (CSS_VAR_NAMES = {}));
7
+ return CSS_VAR_NAMES;
8
+ }(CSS_VAR_NAMES || {});
9
9
  const getItemCounterLeftPadding = itemCounterDigitsSize => {
10
10
  // Previous padding-left was approximately 24px. We approximate that
11
11
  // same value using "ch" units (which represent the width of a "0" digit
@@ -1,14 +1,14 @@
1
- export let TypeAheadAvailableNodes;
2
- (function (TypeAheadAvailableNodes) {
1
+ export let TypeAheadAvailableNodes = /*#__PURE__*/function (TypeAheadAvailableNodes) {
3
2
  TypeAheadAvailableNodes["EMOJI"] = "emojiTypeAhead";
4
3
  TypeAheadAvailableNodes["MENTION"] = "mentionTypeAhead";
5
4
  TypeAheadAvailableNodes["QUICK_INSERT"] = "quickInsertTypeAhead";
6
- })(TypeAheadAvailableNodes || (TypeAheadAvailableNodes = {}));
7
- export let SelectItemMode;
8
- (function (SelectItemMode) {
5
+ return TypeAheadAvailableNodes;
6
+ }({});
7
+ export let SelectItemMode = /*#__PURE__*/function (SelectItemMode) {
9
8
  SelectItemMode["SHIFT_ENTER"] = "shift-enter";
10
9
  SelectItemMode["ENTER"] = "enter";
11
10
  SelectItemMode["SPACE"] = "space";
12
11
  SelectItemMode["SELECTED"] = "selected";
13
12
  SelectItemMode["TAB"] = "tab";
14
- })(SelectItemMode || (SelectItemMode = {}));
13
+ return SelectItemMode;
14
+ }({});
@@ -1,12 +1,12 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import EventEmitter from 'events';
3
- export let AnnotationUpdateEvent;
4
- (function (AnnotationUpdateEvent) {
3
+ export let AnnotationUpdateEvent = /*#__PURE__*/function (AnnotationUpdateEvent) {
5
4
  AnnotationUpdateEvent["SET_ANNOTATION_FOCUS"] = "SET_ANNOTATION_FOCUS";
6
5
  AnnotationUpdateEvent["SET_ANNOTATION_STATE"] = "SET_ANNOTATION_STATE";
7
6
  AnnotationUpdateEvent["REMOVE_ANNOTATION_FOCUS"] = "REMOVE_ANNOTATION_FOCUS";
8
7
  AnnotationUpdateEvent["ON_ANNOTATION_CLICK"] = "ON_ANNOTATION_CLICK";
9
- })(AnnotationUpdateEvent || (AnnotationUpdateEvent = {}));
8
+ return AnnotationUpdateEvent;
9
+ }({});
10
10
  export class AnnotationUpdateEmitter {
11
11
  constructor() {
12
12
  _defineProperty(this, "emitter", new EventEmitter());
@@ -1,8 +1,8 @@
1
- export let SortOrder;
2
- (function (SortOrder) {
1
+ export let SortOrder = /*#__PURE__*/function (SortOrder) {
3
2
  SortOrder["ASC"] = "asc";
4
3
  SortOrder["DESC"] = "desc";
5
4
  SortOrder["NO_ORDER"] = "no_order";
6
- })(SortOrder || (SortOrder = {}));
5
+ return SortOrder;
6
+ }({});
7
7
  export { AnnotationUpdateEmitter, AnnotationUpdateEvent } from './annotation';
8
8
  export { ToolbarSize, ToolbarWidths, ToolbarWidthsFullPage } from './toolbar';
@@ -1,25 +1,25 @@
1
- export let ToolbarSize;
2
- (function (ToolbarSize) {
1
+ export let ToolbarSize = /*#__PURE__*/function (ToolbarSize) {
3
2
  ToolbarSize[ToolbarSize["XXL"] = 6] = "XXL";
4
3
  ToolbarSize[ToolbarSize["XL"] = 5] = "XL";
5
4
  ToolbarSize[ToolbarSize["L"] = 4] = "L";
6
5
  ToolbarSize[ToolbarSize["M"] = 3] = "M";
7
6
  ToolbarSize[ToolbarSize["S"] = 2] = "S";
8
7
  ToolbarSize[ToolbarSize["XXXS"] = 1] = "XXXS";
9
- })(ToolbarSize || (ToolbarSize = {}));
10
- export let ToolbarWidths;
11
- (function (ToolbarWidths) {
8
+ return ToolbarSize;
9
+ }({});
10
+ export let ToolbarWidths = /*#__PURE__*/function (ToolbarWidths) {
12
11
  ToolbarWidths[ToolbarWidths["XXL"] = 610] = "XXL";
13
12
  ToolbarWidths[ToolbarWidths["XL"] = 540] = "XL";
14
13
  ToolbarWidths[ToolbarWidths["L"] = 460] = "L";
15
14
  ToolbarWidths[ToolbarWidths["M"] = 450] = "M";
16
15
  ToolbarWidths[ToolbarWidths["S"] = 370] = "S";
17
- })(ToolbarWidths || (ToolbarWidths = {}));
18
- export let ToolbarWidthsFullPage;
19
- (function (ToolbarWidthsFullPage) {
16
+ return ToolbarWidths;
17
+ }({});
18
+ export let ToolbarWidthsFullPage = /*#__PURE__*/function (ToolbarWidthsFullPage) {
20
19
  ToolbarWidthsFullPage[ToolbarWidthsFullPage["XXL"] = 650] = "XXL";
21
20
  ToolbarWidthsFullPage[ToolbarWidthsFullPage["XL"] = 580] = "XL";
22
21
  ToolbarWidthsFullPage[ToolbarWidthsFullPage["L"] = 540] = "L";
23
22
  ToolbarWidthsFullPage[ToolbarWidthsFullPage["M"] = 490] = "M";
24
23
  ToolbarWidthsFullPage[ToolbarWidthsFullPage["S"] = 410] = "S";
25
- })(ToolbarWidthsFullPage || (ToolbarWidthsFullPage = {}));
24
+ return ToolbarWidthsFullPage;
25
+ }({});
@@ -7,13 +7,13 @@ export const experienceConfig = {
7
7
  component: 'editor'
8
8
  }
9
9
  };
10
- export let EditorExperience;
11
- (function (EditorExperience) {
10
+ export let EditorExperience = /*#__PURE__*/function (EditorExperience) {
12
11
  EditorExperience["loadEditor"] = "load";
13
12
  EditorExperience["typing"] = "type";
14
13
  EditorExperience["interaction"] = "interact";
15
14
  EditorExperience["editSession"] = "editSession";
16
- })(EditorExperience || (EditorExperience = {}));
15
+ return EditorExperience;
16
+ }({});
17
17
  export const RELIABILITY_INTERVAL = 30000;
18
18
  export class ExperienceStore {
19
19
  constructor() {
@@ -8,7 +8,7 @@ import { themed } from '@atlaskit/theme/components';
8
8
  import { borderRadius, gridSize } from '@atlaskit/theme/constants';
9
9
  import Layer from '../Layer';
10
10
  const packageName = "@atlaskit/editor-common";
11
- const packageVersion = "72.8.0";
11
+ const packageVersion = "73.0.0";
12
12
  const halfFocusRing = 1;
13
13
  const dropOffset = `0, ${gridSize()}px`;
14
14
  class DropList extends Component {
@@ -24,6 +24,7 @@ class DropList extends Component {
24
24
  transition: box-shadow 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38);
25
25
  ${this.props.shouldFitContainer ? 'display: block; box-sizing: border-box;' : 'display: inline-flex;'}
26
26
  `);
27
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
27
28
  _defineProperty(this, "menuWrapper", theme => {
28
29
  return css`
29
30
  color: ${themed({
@@ -115,7 +116,6 @@ class DropList extends Component {
115
116
  this.triggerRef = ref;
116
117
  });
117
118
  }
118
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
119
119
  /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
120
120
 
121
121
  getChildContext() {
@@ -20,8 +20,6 @@ const defaultState = {
20
20
  maxHeight: null
21
21
  };
22
22
  export default class Layer extends Component {
23
- // working with extract-react-types
24
-
25
23
  constructor(props) {
26
24
  super(props);
27
25
  _defineProperty(this, "targetRef", /*#__PURE__*/React.createRef());
@@ -166,6 +164,7 @@ export default class Layer extends Component {
166
164
  }, this.props.content));
167
165
  }
168
166
  }
167
+ // working with extract-react-types
169
168
  _defineProperty(Layer, "defaultProps", {
170
169
  boundariesElement: 'viewport',
171
170
  children: null,
@@ -1,9 +1,9 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- export let ShadowKeys;
3
- (function (ShadowKeys) {
2
+ export let ShadowKeys = /*#__PURE__*/function (ShadowKeys) {
4
3
  ShadowKeys["SHOW_LEFT_SHADOW"] = "showLeftShadow";
5
4
  ShadowKeys["SHOW_RIGHT_SHADOW"] = "showRightShadow";
6
- })(ShadowKeys || (ShadowKeys = {}));
5
+ return ShadowKeys;
6
+ }({});
7
7
  export const shadowObserverClassNames = {
8
8
  SENTINEL_LEFT: 'sentinel-left',
9
9
  SENTINEL_RIGHT: 'sentinel-right',
@@ -28,6 +28,9 @@ export default class Popup extends React.Component {
28
28
  _defineProperty(this, "resizeObserver", (_window = window) !== null && _window !== void 0 && _window.ResizeObserver ? new ResizeObserver(() => {
29
29
  this.scheduledUpdatePosition(this.props);
30
30
  }) : undefined);
31
+ /**
32
+ * Raf scheduled so that it also occurs after the initial update position
33
+ */
31
34
  _defineProperty(this, "initFocusTrap", rafSchedule(() => {
32
35
  const popup = this.popupRef.current;
33
36
  if (!popup) {
@@ -151,11 +154,6 @@ export default class Popup extends React.Component {
151
154
  // get rendered and we end up with a wrong position
152
155
  this.scheduledUpdatePosition(newProps);
153
156
  }
154
-
155
- /**
156
- * Raf scheduled so that it also occurs after the initial update position
157
- */
158
-
159
157
  /**
160
158
  * Cancels the initialisation of the focus trap if it has not yet occured
161
159
  * Deactivates the focus trap if it exists
@@ -1,4 +1,4 @@
1
- import React, { useLayoutEffect, useRef } from 'react';
1
+ import React, { useLayoutEffect, useRef, useState } from 'react';
2
2
  /**
3
3
  * This component is a wrapper for color picker which listens to keydown events of children
4
4
  * and handles arrow key navigation
@@ -10,11 +10,13 @@ export const ColorPaletteArrowKeyNavigationProvider = ({
10
10
  isOpenedByKeyboard,
11
11
  isPopupPositioned,
12
12
  handleClose,
13
- closeOnTab
13
+ closeOnTab,
14
+ editorRef
14
15
  }) => {
15
16
  const wrapperRef = useRef(null);
16
17
  const currentSelectedColumnIndex = useRef(selectedColumnIndex === -1 ? 0 : selectedColumnIndex);
17
18
  const currentSelectedRowIndex = useRef(selectedRowIndex === -1 ? 0 : selectedRowIndex);
19
+ const [listenerTargetElement] = useState(editorRef.current);
18
20
  const incrementRowIndex = (rowElements, columnElements) => {
19
21
  if (currentSelectedRowIndex.current === rowElements.length - 1) {
20
22
  currentSelectedRowIndex.current = 0;
@@ -97,7 +99,7 @@ export const ColorPaletteArrowKeyNavigationProvider = ({
97
99
  return;
98
100
  }
99
101
  };
100
- document.addEventListener('keydown', handleKeyDown);
102
+ listenerTargetElement && listenerTargetElement.addEventListener('keydown', handleKeyDown);
101
103
  // set focus to current selected color swatch if only opened by keyboard
102
104
  if (isOpenedByKeyboard && isPopupPositioned) {
103
105
  // Using timeout because, we need to wait till color palette is rendered
@@ -108,9 +110,9 @@ export const ColorPaletteArrowKeyNavigationProvider = ({
108
110
  });
109
111
  }
110
112
  return () => {
111
- document.removeEventListener('keydown', handleKeyDown);
113
+ listenerTargetElement && listenerTargetElement.removeEventListener('keydown', handleKeyDown);
112
114
  };
113
- }, [currentSelectedColumnIndex, isOpenedByKeyboard, isPopupPositioned, wrapperRef, handleClose, closeOnTab]);
115
+ }, [currentSelectedColumnIndex, isOpenedByKeyboard, isPopupPositioned, wrapperRef, handleClose, closeOnTab, listenerTargetElement]);
114
116
  return /*#__PURE__*/React.createElement("div", {
115
117
  className: "custom-key-handler-wrapper",
116
118
  ref: wrapperRef
@@ -9,10 +9,12 @@ export const MenuArrowKeyNavigationProvider = ({
9
9
  disableArrowKeyNavigation,
10
10
  keyDownHandlerContext,
11
11
  closeOnTab,
12
- onSelection
12
+ onSelection,
13
+ editorRef
13
14
  }) => {
14
15
  const wrapperRef = useRef(null);
15
16
  const [currentSelectedItemIndex, setCurrentSelectedItemIndex] = useState(-1);
17
+ const [listenerTargetElement] = useState(editorRef.current);
16
18
  const incrementIndex = useCallback(list => {
17
19
  const currentIndex = currentSelectedItemIndex;
18
20
  let nextIndex = (currentIndex + 1) % list.length;
@@ -128,11 +130,11 @@ export const MenuArrowKeyNavigationProvider = ({
128
130
  return;
129
131
  }
130
132
  };
131
- document.addEventListener('keydown', handleKeyDown);
133
+ listenerTargetElement && listenerTargetElement.addEventListener('keydown', handleKeyDown);
132
134
  return () => {
133
- document.removeEventListener('keydown', handleKeyDown);
135
+ listenerTargetElement && listenerTargetElement.removeEventListener('keydown', handleKeyDown);
134
136
  };
135
- }, [currentSelectedItemIndex, wrapperRef, handleClose, disableArrowKeyNavigation, keyDownHandlerContext, closeOnTab, onSelection, incrementIndex, decrementIndex]);
137
+ }, [currentSelectedItemIndex, wrapperRef, handleClose, disableArrowKeyNavigation, keyDownHandlerContext, closeOnTab, onSelection, incrementIndex, decrementIndex, listenerTargetElement]);
136
138
  return /*#__PURE__*/React.createElement("div", {
137
139
  className: "menu-key-handler-wrapper custom-key-handler-wrapper",
138
140
  ref: wrapperRef
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
+ import { ReactEditorViewContext } from '../../ui-react';
3
4
  import { ColorPaletteArrowKeyNavigationProvider } from './ColorPaletteArrowKeyNavigationProvider';
4
5
  import { MenuArrowKeyNavigationProvider } from './MenuArrowKeyNavigationProvider';
5
6
  import { ArrowKeyNavigationType } from './types';
@@ -10,12 +11,21 @@ export const ArrowKeyNavigationProvider = props => {
10
11
  ...restProps
11
12
  } = props;
12
13
  if (type === ArrowKeyNavigationType.COLOR) {
13
- return /*#__PURE__*/React.createElement(ColorPaletteArrowKeyNavigationProvider, _extends({
14
+ return /*#__PURE__*/React.createElement(ReactEditorViewContext.Consumer, null, ({
15
+ editorView,
16
+ editorRef
17
+ }) => editorRef && /*#__PURE__*/React.createElement(ColorPaletteArrowKeyNavigationProvider, _extends({
14
18
  selectedRowIndex: props.selectedRowIndex,
15
19
  selectedColumnIndex: props.selectedColumnIndex,
16
20
  isOpenedByKeyboard: props.isOpenedByKeyboard,
17
- isPopupPositioned: props.isPopupPositioned
18
- }, restProps), children);
21
+ isPopupPositioned: props.isPopupPositioned,
22
+ editorRef: editorRef
23
+ }, restProps), children));
19
24
  }
20
- return /*#__PURE__*/React.createElement(MenuArrowKeyNavigationProvider, restProps, children);
25
+ return /*#__PURE__*/React.createElement(ReactEditorViewContext.Consumer, null, ({
26
+ editorView,
27
+ editorRef
28
+ }) => editorRef && /*#__PURE__*/React.createElement(MenuArrowKeyNavigationProvider, _extends({
29
+ editorRef: editorRef
30
+ }, restProps), children));
21
31
  };
@@ -1,5 +1,5 @@
1
- export let ArrowKeyNavigationType;
2
- (function (ArrowKeyNavigationType) {
1
+ export let ArrowKeyNavigationType = /*#__PURE__*/function (ArrowKeyNavigationType) {
3
2
  ArrowKeyNavigationType["COLOR"] = "color";
4
3
  ArrowKeyNavigationType["MENU"] = "menu";
5
- })(ArrowKeyNavigationType || (ArrowKeyNavigationType = {}));
4
+ return ArrowKeyNavigationType;
5
+ }({});
@@ -23,11 +23,11 @@ export const getAnalyticsEventSeverity = (duration, normalThreshold, degradedThr
23
23
  }
24
24
  return SEVERITY.NORMAL;
25
25
  };
26
- export let SEVERITY;
27
- (function (SEVERITY) {
26
+ export let SEVERITY = /*#__PURE__*/function (SEVERITY) {
28
27
  SEVERITY["NORMAL"] = "normal";
29
28
  SEVERITY["DEGRADED"] = "degraded";
30
29
  SEVERITY["BLOCKING"] = "blocking";
31
- })(SEVERITY || (SEVERITY = {}));
30
+ return SEVERITY;
31
+ }({});
32
32
  export { UNSUPPORTED_CONTENT_LEVEL_SEVERITY, getUnsupportedContentLevelData, UNSUPPORTED_CONTENT_LEVEL_SEVERITY_THRESHOLD_DEFAULTS } from './unsupportedContent/get-unsupported-content-level-data';
33
33
  export const analyticsEventKey = 'EDITOR_ANALYTICS_EVENT';
@@ -1,13 +1,13 @@
1
1
  import { SortOrder } from '../types';
2
- export let ContentType;
3
- (function (ContentType) {
2
+ export let ContentType = /*#__PURE__*/function (ContentType) {
4
3
  ContentType[ContentType["NUMBER"] = 0] = "NUMBER";
5
4
  ContentType[ContentType["TEXT"] = 5] = "TEXT";
6
5
  ContentType[ContentType["MENTION"] = 10] = "MENTION";
7
6
  ContentType[ContentType["DATE"] = 15] = "DATE";
8
7
  ContentType[ContentType["STATUS"] = 20] = "STATUS";
9
8
  ContentType[ContentType["LINK"] = 25] = "LINK";
10
- })(ContentType || (ContentType = {}));
9
+ return ContentType;
10
+ }({});
11
11
  function getLinkMark(node) {
12
12
  const [linkMark] = node.marks.filter(mark => mark.type.name === 'link');
13
13
  return linkMark || null;
@@ -1,11 +1,11 @@
1
1
  import differenceInCalendarDays from 'date-fns/differenceInCalendarDays';
2
2
  import isBefore from 'date-fns/isBefore';
3
- var FORMATS;
4
- (function (FORMATS) {
3
+ var FORMATS = /*#__PURE__*/function (FORMATS) {
5
4
  FORMATS["ISO_FORMAT"] = "YYYY-MM-DD";
6
5
  FORMATS["CURRENT_YEAR_FORMAT_WITHOUT_YEAR"] = "CURRENT_YEAR_FORMAT_WITHOUT_YEAR";
7
6
  FORMATS["LOCALIZED_FORMAT"] = "LOCALIZED_FORMAT";
8
- })(FORMATS || (FORMATS = {}));
7
+ return FORMATS;
8
+ }(FORMATS || {});
9
9
  export const timestampToUTCDate = timestamp => {
10
10
  const date = new Date(Number(timestamp));
11
11
  const day = date.getUTCDate();
@@ -1,3 +1,6 @@
1
+ // File has been copied to packages/editor/editor-plugin-ai/src/provider/prosemirror-transformer/utils/list.ts
2
+ // If changes are made to this file, please make the same update in the linked file.
3
+
1
4
  export const DEFAULT_ORDER = 1;
2
5
 
3
6
  // resolve "order" to a safe, 0+ integer, otherwise return undefined
@@ -40,7 +40,11 @@ export const isType = (node, type) => type && node && node.type === type;
40
40
  export const isParagraph = (node, schema) => isType(node, schema.nodes.paragraph);
41
41
  export const isText = (node, schema) => isType(node, schema.nodes.text);
42
42
  export const isLinkMark = (node, schema) => isType(node, schema.marks.link);
43
- export let SelectedState;
43
+ export let SelectedState = /*#__PURE__*/function (SelectedState) {
44
+ SelectedState[SelectedState["selectedInRange"] = 0] = "selectedInRange";
45
+ SelectedState[SelectedState["selectedInside"] = 1] = "selectedInside";
46
+ return SelectedState;
47
+ }({});
44
48
 
45
49
  /**
46
50
  * Returns if the current selection from achor-head is selecting the node.
@@ -48,10 +52,6 @@ export let SelectedState;
48
52
  * If the node is selected then an enum is returned that describes weather the node
49
53
  * is fully selected by a range or if the "inside" of the node has been selected or clicked.
50
54
  */
51
- (function (SelectedState) {
52
- SelectedState[SelectedState["selectedInRange"] = 0] = "selectedInRange";
53
- SelectedState[SelectedState["selectedInside"] = 1] = "selectedInside";
54
- })(SelectedState || (SelectedState = {}));
55
55
  export const isNodeSelectedOrInRange = (anchorPosition, headPosition, nodePosition, nodeSize) => {
56
56
  const rangeStart = Math.min(anchorPosition, headPosition);
57
57
  const rangeEnd = Math.max(anchorPosition, headPosition);
@@ -1,10 +1,10 @@
1
1
  import { traverse } from '@atlaskit/adf-utils/traverse';
2
- export let UNSUPPORTED_CONTENT_LEVEL_SEVERITY;
3
- (function (UNSUPPORTED_CONTENT_LEVEL_SEVERITY) {
2
+ export let UNSUPPORTED_CONTENT_LEVEL_SEVERITY = /*#__PURE__*/function (UNSUPPORTED_CONTENT_LEVEL_SEVERITY) {
4
3
  UNSUPPORTED_CONTENT_LEVEL_SEVERITY["NORMAL"] = "normal";
5
4
  UNSUPPORTED_CONTENT_LEVEL_SEVERITY["DEGRADED"] = "degraded";
6
5
  UNSUPPORTED_CONTENT_LEVEL_SEVERITY["BLOCKING"] = "blocking";
7
- })(UNSUPPORTED_CONTENT_LEVEL_SEVERITY || (UNSUPPORTED_CONTENT_LEVEL_SEVERITY = {}));
6
+ return UNSUPPORTED_CONTENT_LEVEL_SEVERITY;
7
+ }({});
8
8
  export const UNSUPPORTED_CONTENT_LEVEL_SEVERITY_THRESHOLD_DEFAULTS = {
9
9
  DEGRADED: 10,
10
10
  BLOCKING: 25
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "72.8.0",
3
+ "version": "73.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -49,6 +49,9 @@ class WithPluginState extends React.Component {
49
49
  });
50
50
  }
51
51
  });
52
+ /**
53
+ * Debounces setState calls in order to reduce number of re-renders caused by several plugin state changes.
54
+ */
52
55
  _defineProperty(this, "updateState", ({
53
56
  stateSubset,
54
57
  pluginName,
@@ -109,11 +112,6 @@ class WithPluginState extends React.Component {
109
112
  const props = maybeProps || this.props;
110
113
  return props.eventDispatcher || this.context && this.context.editorActions && this.context.editorActions._privateGetEventDispatcher() || this.context && this.context.editorSharedConfig && this.context.editorSharedConfig.eventDispatcher;
111
114
  }
112
-
113
- /**
114
- * Debounces setState calls in order to reduce number of re-renders caused by several plugin state changes.
115
- */
116
-
117
115
  getPluginsStates(plugins, editorView) {
118
116
  if (!editorView || !plugins) {
119
117
  return {};