@atlaskit/editor-core 189.4.9 → 189.4.12

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 (199) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/composable-editor/editor-internal.js +3 -3
  3. package/dist/cjs/composable-editor/editor.js +202 -3
  4. package/dist/cjs/i18n/cs.js +1 -3
  5. package/dist/cjs/i18n/da.js +1 -3
  6. package/dist/cjs/i18n/de.js +1 -3
  7. package/dist/cjs/i18n/en.js +1 -3
  8. package/dist/cjs/i18n/en_GB.js +1 -3
  9. package/dist/cjs/i18n/en_ZZ.js +1 -3
  10. package/dist/cjs/i18n/es.js +1 -3
  11. package/dist/cjs/i18n/fi.js +1 -3
  12. package/dist/cjs/i18n/fr.js +1 -3
  13. package/dist/cjs/i18n/hu.js +1 -3
  14. package/dist/cjs/i18n/it.js +1 -3
  15. package/dist/cjs/i18n/ja.js +1 -3
  16. package/dist/cjs/i18n/ko.js +1 -3
  17. package/dist/cjs/i18n/nb.js +1 -3
  18. package/dist/cjs/i18n/nl.js +1 -3
  19. package/dist/cjs/i18n/pl.js +1 -3
  20. package/dist/cjs/i18n/pt_BR.js +1 -3
  21. package/dist/cjs/i18n/ru.js +1 -3
  22. package/dist/cjs/i18n/sv.js +1 -3
  23. package/dist/cjs/i18n/th.js +1 -3
  24. package/dist/cjs/i18n/tr.js +1 -3
  25. package/dist/cjs/i18n/uk.js +1 -3
  26. package/dist/cjs/i18n/vi.js +1 -3
  27. package/dist/cjs/i18n/zh.js +1 -3
  28. package/dist/cjs/i18n/zh_TW.js +1 -3
  29. package/dist/cjs/plugins/index.js +1 -15
  30. package/dist/cjs/presets/default.js +2 -2
  31. package/dist/cjs/presets/universal.js +2 -1
  32. package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +11 -3
  33. package/dist/cjs/ui/ConfigPanel/constants.js +13 -0
  34. package/dist/cjs/ui/ConfigPanel/utils.js +44 -1
  35. package/dist/cjs/version-wrapper.js +1 -1
  36. package/dist/es2019/composable-editor/editor-internal.js +4 -4
  37. package/dist/es2019/composable-editor/editor.js +208 -4
  38. package/dist/es2019/i18n/cs.js +1 -3
  39. package/dist/es2019/i18n/da.js +1 -3
  40. package/dist/es2019/i18n/de.js +1 -3
  41. package/dist/es2019/i18n/en.js +1 -3
  42. package/dist/es2019/i18n/en_GB.js +1 -3
  43. package/dist/es2019/i18n/en_ZZ.js +1 -3
  44. package/dist/es2019/i18n/es.js +1 -3
  45. package/dist/es2019/i18n/fi.js +1 -3
  46. package/dist/es2019/i18n/fr.js +1 -3
  47. package/dist/es2019/i18n/hu.js +1 -3
  48. package/dist/es2019/i18n/it.js +1 -3
  49. package/dist/es2019/i18n/ja.js +1 -3
  50. package/dist/es2019/i18n/ko.js +1 -3
  51. package/dist/es2019/i18n/nb.js +1 -3
  52. package/dist/es2019/i18n/nl.js +1 -3
  53. package/dist/es2019/i18n/pl.js +1 -3
  54. package/dist/es2019/i18n/pt_BR.js +1 -3
  55. package/dist/es2019/i18n/ru.js +1 -3
  56. package/dist/es2019/i18n/sv.js +1 -3
  57. package/dist/es2019/i18n/th.js +1 -3
  58. package/dist/es2019/i18n/tr.js +1 -3
  59. package/dist/es2019/i18n/uk.js +1 -3
  60. package/dist/es2019/i18n/vi.js +1 -3
  61. package/dist/es2019/i18n/zh.js +1 -3
  62. package/dist/es2019/i18n/zh_TW.js +1 -3
  63. package/dist/es2019/plugins/index.js +1 -3
  64. package/dist/es2019/presets/default.js +2 -2
  65. package/dist/es2019/presets/universal.js +2 -1
  66. package/dist/es2019/ui/ConfigPanel/ConfigPanel.js +11 -2
  67. package/dist/es2019/ui/ConfigPanel/constants.js +7 -0
  68. package/dist/es2019/ui/ConfigPanel/utils.js +35 -1
  69. package/dist/es2019/version-wrapper.js +1 -1
  70. package/dist/esm/composable-editor/editor-internal.js +3 -3
  71. package/dist/esm/composable-editor/editor.js +203 -4
  72. package/dist/esm/i18n/cs.js +1 -3
  73. package/dist/esm/i18n/da.js +1 -3
  74. package/dist/esm/i18n/de.js +1 -3
  75. package/dist/esm/i18n/en.js +1 -3
  76. package/dist/esm/i18n/en_GB.js +1 -3
  77. package/dist/esm/i18n/en_ZZ.js +1 -3
  78. package/dist/esm/i18n/es.js +1 -3
  79. package/dist/esm/i18n/fi.js +1 -3
  80. package/dist/esm/i18n/fr.js +1 -3
  81. package/dist/esm/i18n/hu.js +1 -3
  82. package/dist/esm/i18n/it.js +1 -3
  83. package/dist/esm/i18n/ja.js +1 -3
  84. package/dist/esm/i18n/ko.js +1 -3
  85. package/dist/esm/i18n/nb.js +1 -3
  86. package/dist/esm/i18n/nl.js +1 -3
  87. package/dist/esm/i18n/pl.js +1 -3
  88. package/dist/esm/i18n/pt_BR.js +1 -3
  89. package/dist/esm/i18n/ru.js +1 -3
  90. package/dist/esm/i18n/sv.js +1 -3
  91. package/dist/esm/i18n/th.js +1 -3
  92. package/dist/esm/i18n/tr.js +1 -3
  93. package/dist/esm/i18n/uk.js +1 -3
  94. package/dist/esm/i18n/vi.js +1 -3
  95. package/dist/esm/i18n/zh.js +1 -3
  96. package/dist/esm/i18n/zh_TW.js +1 -3
  97. package/dist/esm/plugins/index.js +1 -3
  98. package/dist/esm/presets/default.js +2 -2
  99. package/dist/esm/presets/universal.js +2 -1
  100. package/dist/esm/ui/ConfigPanel/ConfigPanel.js +11 -3
  101. package/dist/esm/ui/ConfigPanel/constants.js +7 -0
  102. package/dist/esm/ui/ConfigPanel/utils.js +42 -0
  103. package/dist/esm/version-wrapper.js +1 -1
  104. package/dist/types/composable-editor/editor-internal.d.ts +2 -1
  105. package/dist/types/i18n/cs.d.ts +0 -2
  106. package/dist/types/i18n/da.d.ts +0 -2
  107. package/dist/types/i18n/de.d.ts +0 -2
  108. package/dist/types/i18n/en.d.ts +0 -2
  109. package/dist/types/i18n/en_GB.d.ts +0 -2
  110. package/dist/types/i18n/en_ZZ.d.ts +0 -2
  111. package/dist/types/i18n/es.d.ts +0 -2
  112. package/dist/types/i18n/fi.d.ts +0 -2
  113. package/dist/types/i18n/fr.d.ts +0 -2
  114. package/dist/types/i18n/hu.d.ts +0 -2
  115. package/dist/types/i18n/it.d.ts +0 -2
  116. package/dist/types/i18n/ja.d.ts +0 -2
  117. package/dist/types/i18n/ko.d.ts +0 -2
  118. package/dist/types/i18n/nb.d.ts +0 -2
  119. package/dist/types/i18n/nl.d.ts +0 -2
  120. package/dist/types/i18n/pl.d.ts +0 -2
  121. package/dist/types/i18n/pt_BR.d.ts +0 -2
  122. package/dist/types/i18n/ru.d.ts +0 -2
  123. package/dist/types/i18n/sv.d.ts +0 -2
  124. package/dist/types/i18n/th.d.ts +0 -2
  125. package/dist/types/i18n/tr.d.ts +0 -2
  126. package/dist/types/i18n/uk.d.ts +0 -2
  127. package/dist/types/i18n/vi.d.ts +0 -2
  128. package/dist/types/i18n/zh.d.ts +0 -2
  129. package/dist/types/i18n/zh_TW.d.ts +0 -2
  130. package/dist/types/plugins/index.d.ts +0 -2
  131. package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +3 -4
  132. package/dist/types/ui/ConfigPanel/constants.d.ts +2 -0
  133. package/dist/types/ui/ConfigPanel/utils.d.ts +2 -1
  134. package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +2 -1
  135. package/dist/types-ts4.5/i18n/cs.d.ts +0 -2
  136. package/dist/types-ts4.5/i18n/da.d.ts +0 -2
  137. package/dist/types-ts4.5/i18n/de.d.ts +0 -2
  138. package/dist/types-ts4.5/i18n/en.d.ts +0 -2
  139. package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -2
  140. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -2
  141. package/dist/types-ts4.5/i18n/es.d.ts +0 -2
  142. package/dist/types-ts4.5/i18n/fi.d.ts +0 -2
  143. package/dist/types-ts4.5/i18n/fr.d.ts +0 -2
  144. package/dist/types-ts4.5/i18n/hu.d.ts +0 -2
  145. package/dist/types-ts4.5/i18n/it.d.ts +0 -2
  146. package/dist/types-ts4.5/i18n/ja.d.ts +0 -2
  147. package/dist/types-ts4.5/i18n/ko.d.ts +0 -2
  148. package/dist/types-ts4.5/i18n/nb.d.ts +0 -2
  149. package/dist/types-ts4.5/i18n/nl.d.ts +0 -2
  150. package/dist/types-ts4.5/i18n/pl.d.ts +0 -2
  151. package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -2
  152. package/dist/types-ts4.5/i18n/ru.d.ts +0 -2
  153. package/dist/types-ts4.5/i18n/sv.d.ts +0 -2
  154. package/dist/types-ts4.5/i18n/th.d.ts +0 -2
  155. package/dist/types-ts4.5/i18n/tr.d.ts +0 -2
  156. package/dist/types-ts4.5/i18n/uk.d.ts +0 -2
  157. package/dist/types-ts4.5/i18n/vi.d.ts +0 -2
  158. package/dist/types-ts4.5/i18n/zh.d.ts +0 -2
  159. package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -2
  160. package/dist/types-ts4.5/plugins/index.d.ts +0 -2
  161. package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +3 -4
  162. package/dist/types-ts4.5/ui/ConfigPanel/constants.d.ts +2 -0
  163. package/dist/types-ts4.5/ui/ConfigPanel/utils.d.ts +2 -1
  164. package/package.json +10 -6
  165. package/dist/cjs/plugins/clear-marks-on-change-to-empty-document/index.js +0 -35
  166. package/dist/cjs/plugins/code-bidi-warning/index.js +0 -22
  167. package/dist/cjs/plugins/code-bidi-warning/plugin-key.js +0 -8
  168. package/dist/cjs/plugins/code-bidi-warning/pm-plugins/main.js +0 -44
  169. package/dist/cjs/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +0 -105
  170. package/dist/cjs/plugins/code-bidi-warning/pm-plugins/reducer.js +0 -9
  171. package/dist/cjs/plugins/code-bidi-warning/pm-plugins/types.js +0 -5
  172. package/dist/es2019/plugins/clear-marks-on-change-to-empty-document/index.js +0 -26
  173. package/dist/es2019/plugins/code-bidi-warning/index.js +0 -15
  174. package/dist/es2019/plugins/code-bidi-warning/plugin-key.js +0 -2
  175. package/dist/es2019/plugins/code-bidi-warning/pm-plugins/main.js +0 -41
  176. package/dist/es2019/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +0 -97
  177. package/dist/es2019/plugins/code-bidi-warning/pm-plugins/reducer.js +0 -3
  178. package/dist/es2019/plugins/code-bidi-warning/pm-plugins/types.js +0 -1
  179. package/dist/esm/plugins/clear-marks-on-change-to-empty-document/index.js +0 -28
  180. package/dist/esm/plugins/code-bidi-warning/index.js +0 -16
  181. package/dist/esm/plugins/code-bidi-warning/plugin-key.js +0 -2
  182. package/dist/esm/plugins/code-bidi-warning/pm-plugins/main.js +0 -38
  183. package/dist/esm/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +0 -98
  184. package/dist/esm/plugins/code-bidi-warning/pm-plugins/reducer.js +0 -3
  185. package/dist/esm/plugins/code-bidi-warning/pm-plugins/types.js +0 -1
  186. package/dist/types/plugins/clear-marks-on-change-to-empty-document/index.d.ts +0 -7
  187. package/dist/types/plugins/code-bidi-warning/index.d.ts +0 -8
  188. package/dist/types/plugins/code-bidi-warning/plugin-key.d.ts +0 -2
  189. package/dist/types/plugins/code-bidi-warning/pm-plugins/main.d.ts +0 -5
  190. package/dist/types/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +0 -8
  191. package/dist/types/plugins/code-bidi-warning/pm-plugins/reducer.d.ts +0 -3
  192. package/dist/types/plugins/code-bidi-warning/pm-plugins/types.d.ts +0 -6
  193. package/dist/types-ts4.5/plugins/clear-marks-on-change-to-empty-document/index.d.ts +0 -7
  194. package/dist/types-ts4.5/plugins/code-bidi-warning/index.d.ts +0 -8
  195. package/dist/types-ts4.5/plugins/code-bidi-warning/plugin-key.d.ts +0 -2
  196. package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/main.d.ts +0 -5
  197. package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +0 -8
  198. package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/reducer.d.ts +0 -3
  199. package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/types.d.ts +0 -6
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { jsx } from '@emotion/react';
2
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
4
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
@@ -30,5 +31,5 @@ interface InternalProps {
30
31
  * EditorInternalComponent is used to capture the common component
31
32
  * from the `render` method of `Editor` and share it with `EditorNext`.
32
33
  */
33
- export declare function EditorInternal({ props, handleAnalyticsEvent, createAnalyticsEvent, handleSave, editorActions, providerFactory, onEditorCreated, onEditorDestroyed, preset, }: InternalProps): jsx.JSX.Element;
34
+ export declare const EditorInternal: import("react").MemoExoticComponent<({ props, handleAnalyticsEvent, createAnalyticsEvent, handleSave, editorActions, providerFactory, onEditorCreated, onEditorDestroyed, preset, }: InternalProps) => jsx.JSX.Element>;
34
35
  export {};
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -49,6 +48,5 @@ declare const _default: {
49
48
  'fabric.editor.replaceAll': string;
50
49
  'fabric.editor.replaceWith': string;
51
50
  'fabric.editor.resultsCount': string;
52
- 'fabric.editor.taskPlaceholder': string;
53
51
  };
54
52
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -29,7 +29,6 @@ declare const _default: {
29
29
  'fabric.editor.configPanel.invalid': string;
30
30
  'fabric.editor.configPanel.required': string;
31
31
  'fabric.editor.configPanel.submit': string;
32
- 'fabric.editor.decisionPlaceholder': string;
33
32
  'fabric.editor.edit': string;
34
33
  'fabric.editor.editorAssistiveLabel': string;
35
34
  'fabric.editor.editors': string;
@@ -50,6 +49,5 @@ declare const _default: {
50
49
  'fabric.editor.replaceAll': string;
51
50
  'fabric.editor.replaceWith': string;
52
51
  'fabric.editor.resultsCount': string;
53
- 'fabric.editor.taskPlaceholder': string;
54
52
  };
55
53
  export default _default;
@@ -29,7 +29,6 @@ declare const _default: {
29
29
  'fabric.editor.configPanel.invalid': string;
30
30
  'fabric.editor.configPanel.required': string;
31
31
  'fabric.editor.configPanel.submit': string;
32
- 'fabric.editor.decisionPlaceholder': string;
33
32
  'fabric.editor.edit': string;
34
33
  'fabric.editor.editorAssistiveLabel': string;
35
34
  'fabric.editor.editors': string;
@@ -50,6 +49,5 @@ declare const _default: {
50
49
  'fabric.editor.replaceAll': string;
51
50
  'fabric.editor.replaceWith': string;
52
51
  'fabric.editor.resultsCount': string;
53
- 'fabric.editor.taskPlaceholder': string;
54
52
  };
55
53
  export default _default;
@@ -29,7 +29,6 @@ declare const _default: {
29
29
  'fabric.editor.configPanel.invalid': string;
30
30
  'fabric.editor.configPanel.required': string;
31
31
  'fabric.editor.configPanel.submit': string;
32
- 'fabric.editor.decisionPlaceholder': string;
33
32
  'fabric.editor.edit': string;
34
33
  'fabric.editor.editorAssistiveLabel': string;
35
34
  'fabric.editor.editors': string;
@@ -50,6 +49,5 @@ declare const _default: {
50
49
  'fabric.editor.replaceAll': string;
51
50
  'fabric.editor.replaceWith': string;
52
51
  'fabric.editor.resultsCount': string;
53
- 'fabric.editor.taskPlaceholder': string;
54
52
  };
55
53
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -28,7 +28,6 @@ declare const _default: {
28
28
  'fabric.editor.configPanel.invalid': string;
29
29
  'fabric.editor.configPanel.required': string;
30
30
  'fabric.editor.configPanel.submit': string;
31
- 'fabric.editor.decisionPlaceholder': string;
32
31
  'fabric.editor.edit': string;
33
32
  'fabric.editor.editorAssistiveLabel': string;
34
33
  'fabric.editor.editors': string;
@@ -48,6 +47,5 @@ declare const _default: {
48
47
  'fabric.editor.replaceAll': string;
49
48
  'fabric.editor.replaceWith': string;
50
49
  'fabric.editor.resultsCount': string;
51
- 'fabric.editor.taskPlaceholder': string;
52
50
  };
53
51
  export default _default;
@@ -1,4 +1,3 @@
1
- export { default as clearMarksOnChangeToEmptyDocumentPlugin } from './clear-marks-on-change-to-empty-document';
2
1
  export { default as collabEditPlugin } from './collab-edit';
3
2
  export { default as extensionPlugin } from './extension';
4
3
  export { default as jiraIssuePlugin } from './jira-issue';
@@ -16,4 +15,3 @@ export { default as undoRedoPlugin } from './undo-redo';
16
15
  export { default as avatarGroupPlugin } from './avatar-group';
17
16
  export { default as viewUpdateSubscriptionPlugin } from './view-update-subscription';
18
17
  export { default as beforePrimaryToolbarPlugin } from './before-primaryToolbar';
19
- export { default as codeBidiWarningPlugin } from './code-bidi-warning';
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import type { ExtensionManifest } from '@atlaskit/editor-common/extensions';
4
- import { FieldDefinition, Parameters, OnSaveCallback } from '@atlaskit/editor-common/extensions';
5
- import { FeatureFlags } from '@atlaskit/editor-common/types';
2
+ import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
+ import type { ExtensionManifest, FieldDefinition, Parameters, OnSaveCallback } from '@atlaskit/editor-common/extensions';
4
+ import type { FeatureFlags } from '@atlaskit/editor-common/types';
6
5
  type Props = {
7
6
  extensionManifest?: ExtensionManifest;
8
7
  fields?: FieldDefinition[];
@@ -0,0 +1,2 @@
1
+ export declare const ALLOWED_LOGGED_MACRO_PARAMS: Record<string, Array<string>>;
2
+ export declare const ALLOWED_PARAM_TYPES: string[];
@@ -1,4 +1,4 @@
1
- import { Option, FieldDefinition } from '@atlaskit/editor-common/extensions';
1
+ import type { Option, FieldDefinition, Parameters } from '@atlaskit/editor-common/extensions';
2
2
  import { ValidationError } from './types';
3
3
  export declare const validate: <T>(field: Partial<FieldDefinition>, value: T) => ValidationError | undefined;
4
4
  type ValidationProps = {
@@ -10,4 +10,5 @@ export declare const getOptionFromValue: (options: Option[], value: string | str
10
10
  export declare const getSafeParentedName: (name: string, parentName?: string) => string;
11
11
  export declare const isDuplicateField: (key: string) => boolean;
12
12
  export declare const getNameFromDuplicateField: (key: string) => string;
13
+ export declare const getLoggedParameters: (macroKey: string, currentParams: Parameters, macroFields?: FieldDefinition[]) => {};
13
14
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "189.4.9",
3
+ "version": "189.4.12",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -49,10 +49,9 @@
49
49
  "@atlaskit/avatar-group": "^9.4.0",
50
50
  "@atlaskit/button": "^16.17.0",
51
51
  "@atlaskit/checkbox": "^13.0.0",
52
- "@atlaskit/code": "^15.1.0",
53
52
  "@atlaskit/date": "^0.10.0",
54
53
  "@atlaskit/datetime-picker": "^13.0.0",
55
- "@atlaskit/editor-common": "^76.23.0",
54
+ "@atlaskit/editor-common": "^76.24.0",
56
55
  "@atlaskit/editor-json-transformer": "^8.10.0",
57
56
  "@atlaskit/editor-markdown-transformer": "^5.2.5",
58
57
  "@atlaskit/editor-plugin-analytics": "^0.3.0",
@@ -62,7 +61,9 @@
62
61
  "@atlaskit/editor-plugin-border": "^0.1.0",
63
62
  "@atlaskit/editor-plugin-caption": "^0.2.0",
64
63
  "@atlaskit/editor-plugin-card": "^0.14.0",
64
+ "@atlaskit/editor-plugin-clear-marks-on-empty-doc": "^0.1.0",
65
65
  "@atlaskit/editor-plugin-clipboard": "^0.1.0",
66
+ "@atlaskit/editor-plugin-code-bidi-warning": "^0.1.0",
66
67
  "@atlaskit/editor-plugin-code-block": "^0.1.0",
67
68
  "@atlaskit/editor-plugin-composition": "^0.1.0",
68
69
  "@atlaskit/editor-plugin-content-insertion": "^0.1.4",
@@ -168,12 +169,12 @@
168
169
  "@af/integration-testing": "*",
169
170
  "@af/visual-regression": "*",
170
171
  "@atlaskit/analytics-listeners": "^8.7.0",
171
- "@atlaskit/collab-provider": "9.17.3",
172
+ "@atlaskit/code": "^15.1.0",
173
+ "@atlaskit/collab-provider": "9.17.5",
172
174
  "@atlaskit/dropdown-menu": "^12.1.0",
173
175
  "@atlaskit/editor-extension-dropbox": "^0.4.0",
174
176
  "@atlaskit/editor-palette": "1.5.2",
175
177
  "@atlaskit/flag": "^15.2.0",
176
- "@atlaskit/icon-object": "^6.3.0",
177
178
  "@atlaskit/inline-dialog": "^14.0.0",
178
179
  "@atlaskit/link-analytics": "^8.3.0",
179
180
  "@atlaskit/link-provider": "^1.6.0",
@@ -190,7 +191,7 @@
190
191
  "@atlaskit/webdriver-runner": "*",
191
192
  "@atlassian/adf-schema-json": "^1.0.7",
192
193
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
193
- "@atlassian/editor-extension-link-create": "^0.9.0",
194
+ "@atlassian/editor-extension-link-create": "^0.10.0",
194
195
  "@atlassian/feature-flags-test-utils": "^0.1.1",
195
196
  "@atlassian/link-picker-plugins": "^24.0.0",
196
197
  "@atlassian/search-provider": "2.4.8",
@@ -239,6 +240,9 @@
239
240
  },
240
241
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
241
242
  "platform-feature-flags": {
243
+ "platform.editor.less-editor-props-rerendering": {
244
+ "type": "boolean"
245
+ },
242
246
  "platform.editor.custom-table-width": {
243
247
  "type": "boolean"
244
248
  },
@@ -1,35 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.createPlugin = createPlugin;
7
- exports.pluginKey = exports.default = void 0;
8
- var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
9
- var _state = require("@atlaskit/editor-prosemirror/state");
10
- var _utils = require("@atlaskit/editor-common/utils");
11
- var pluginKey = exports.pluginKey = new _state.PluginKey('clearMarksOnChangeToEmptyDocumentPlugin');
12
- function createPlugin() {
13
- return new _safePlugin.SafePlugin({
14
- key: pluginKey,
15
- appendTransaction: function appendTransaction(_transactions, oldState, newState) {
16
- // ED-2973: When a user clears the editor's content, remove the current active marks
17
- if (!(0, _utils.isEmptyDocument)(oldState.doc) && (0, _utils.isEmptyDocument)(newState.doc)) {
18
- return newState.tr.setStoredMarks([]);
19
- }
20
- return;
21
- }
22
- });
23
- }
24
- var clearMarksOnChangeToEmptyDocumentPlugin = function clearMarksOnChangeToEmptyDocumentPlugin() {
25
- return {
26
- name: 'clearMarksOnEmptyDoc',
27
- pmPlugins: function pmPlugins() {
28
- return [{
29
- name: 'clearMarksOnChange',
30
- plugin: createPlugin
31
- }];
32
- }
33
- };
34
- };
35
- var _default = exports.default = clearMarksOnChangeToEmptyDocumentPlugin;
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _main = require("./pm-plugins/main");
8
- var codeBidiWarning = function codeBidiWarning(_ref) {
9
- var config = _ref.config;
10
- return {
11
- name: 'codeBidiWarning',
12
- pmPlugins: function pmPlugins() {
13
- return [{
14
- name: 'codeBidiWarning',
15
- plugin: function plugin(options) {
16
- return (0, _main.createPlugin)(options, config);
17
- }
18
- }];
19
- }
20
- };
21
- };
22
- var _default = exports.default = codeBidiWarning;
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.codeBidiWarningPluginKey = void 0;
7
- var _state = require("@atlaskit/editor-prosemirror/state");
8
- var codeBidiWarningPluginKey = exports.codeBidiWarningPluginKey = new _state.PluginKey('codeBidiWarningPlugin');
@@ -1,44 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.createPlugin = void 0;
7
- var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
8
- var _messages = require("@atlaskit/editor-common/messages");
9
- var _pluginKey = require("../plugin-key");
10
- var _pluginFactory = require("./plugin-factory");
11
- var createPlugin = exports.createPlugin = function createPlugin(_ref, _ref2) {
12
- var dispatch = _ref.dispatch,
13
- getIntl = _ref.getIntl;
14
- var appearance = _ref2.appearance;
15
- var intl = getIntl();
16
- var codeBidiWarningLabel = intl.formatMessage(_messages.codeBidiWarningMessages.label);
17
- return new _safePlugin.SafePlugin({
18
- key: _pluginKey.codeBidiWarningPluginKey,
19
- state: (0, _pluginFactory.createPluginState)(dispatch, function (state) {
20
- // The appearance being mobile indicates we are in an editor being
21
- // rendered by mobile bridge in a web view.
22
- // The tooltip is likely to have unexpected behaviour there, with being cut
23
- // off, so we disable it. This is also to keep the behaviour consistent with
24
- // the rendering in the mobile Native Renderer.
25
- var tooltipEnabled = appearance !== 'mobile';
26
- return {
27
- decorationSet: (0, _pluginFactory.createBidiWarningsDecorationSetFromDoc)({
28
- doc: state.doc,
29
- codeBidiWarningLabel: codeBidiWarningLabel,
30
- tooltipEnabled: tooltipEnabled
31
- }),
32
- codeBidiWarningLabel: codeBidiWarningLabel,
33
- tooltipEnabled: tooltipEnabled
34
- };
35
- }),
36
- props: {
37
- decorations: function decorations(state) {
38
- var _getPluginState = (0, _pluginFactory.getPluginState)(state),
39
- decorationSet = _getPluginState.decorationSet;
40
- return decorationSet;
41
- }
42
- }
43
- });
44
- };