@atlaskit/editor-core 188.11.0 → 188.11.2

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 (161) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/i18n/cs.js +0 -60
  3. package/dist/cjs/i18n/da.js +0 -60
  4. package/dist/cjs/i18n/de.js +0 -60
  5. package/dist/cjs/i18n/en.js +0 -60
  6. package/dist/cjs/i18n/en_GB.js +0 -60
  7. package/dist/cjs/i18n/en_ZZ.js +0 -60
  8. package/dist/cjs/i18n/es.js +0 -60
  9. package/dist/cjs/i18n/fi.js +0 -60
  10. package/dist/cjs/i18n/fr.js +0 -60
  11. package/dist/cjs/i18n/hu.js +0 -60
  12. package/dist/cjs/i18n/it.js +0 -60
  13. package/dist/cjs/i18n/ja.js +0 -60
  14. package/dist/cjs/i18n/ko.js +0 -60
  15. package/dist/cjs/i18n/nb.js +0 -60
  16. package/dist/cjs/i18n/nl.js +0 -60
  17. package/dist/cjs/i18n/pl.js +0 -60
  18. package/dist/cjs/i18n/pt_BR.js +0 -60
  19. package/dist/cjs/i18n/ru.js +0 -60
  20. package/dist/cjs/i18n/sv.js +0 -60
  21. package/dist/cjs/i18n/th.js +0 -60
  22. package/dist/cjs/i18n/tr.js +0 -60
  23. package/dist/cjs/i18n/uk.js +0 -60
  24. package/dist/cjs/i18n/vi.js +0 -60
  25. package/dist/cjs/i18n/zh.js +0 -60
  26. package/dist/cjs/i18n/zh_TW.js +0 -60
  27. package/dist/cjs/labs/next/presets/default.js +2 -1
  28. package/dist/cjs/plugins/index.js +0 -7
  29. package/dist/cjs/plugins/tasks-and-decisions/nodeviews/decisionItem.js +1 -1
  30. package/dist/cjs/plugins/tasks-and-decisions/nodeviews/taskItem.js +1 -1
  31. package/dist/cjs/version-wrapper.js +1 -1
  32. package/dist/es2019/i18n/cs.js +0 -60
  33. package/dist/es2019/i18n/da.js +0 -60
  34. package/dist/es2019/i18n/de.js +0 -60
  35. package/dist/es2019/i18n/en.js +0 -60
  36. package/dist/es2019/i18n/en_GB.js +0 -60
  37. package/dist/es2019/i18n/en_ZZ.js +0 -60
  38. package/dist/es2019/i18n/es.js +0 -60
  39. package/dist/es2019/i18n/fi.js +0 -60
  40. package/dist/es2019/i18n/fr.js +0 -60
  41. package/dist/es2019/i18n/hu.js +0 -60
  42. package/dist/es2019/i18n/it.js +0 -60
  43. package/dist/es2019/i18n/ja.js +0 -60
  44. package/dist/es2019/i18n/ko.js +0 -60
  45. package/dist/es2019/i18n/nb.js +0 -60
  46. package/dist/es2019/i18n/nl.js +0 -60
  47. package/dist/es2019/i18n/pl.js +0 -60
  48. package/dist/es2019/i18n/pt_BR.js +0 -60
  49. package/dist/es2019/i18n/ru.js +0 -60
  50. package/dist/es2019/i18n/sv.js +0 -60
  51. package/dist/es2019/i18n/th.js +0 -60
  52. package/dist/es2019/i18n/tr.js +0 -60
  53. package/dist/es2019/i18n/uk.js +0 -60
  54. package/dist/es2019/i18n/vi.js +0 -60
  55. package/dist/es2019/i18n/zh.js +0 -60
  56. package/dist/es2019/i18n/zh_TW.js +0 -60
  57. package/dist/es2019/labs/next/presets/default.js +2 -1
  58. package/dist/es2019/plugins/index.js +0 -1
  59. package/dist/es2019/plugins/tasks-and-decisions/nodeviews/decisionItem.js +1 -1
  60. package/dist/es2019/plugins/tasks-and-decisions/nodeviews/taskItem.js +1 -1
  61. package/dist/es2019/version-wrapper.js +1 -1
  62. package/dist/esm/i18n/cs.js +0 -60
  63. package/dist/esm/i18n/da.js +0 -60
  64. package/dist/esm/i18n/de.js +0 -60
  65. package/dist/esm/i18n/en.js +0 -60
  66. package/dist/esm/i18n/en_GB.js +0 -60
  67. package/dist/esm/i18n/en_ZZ.js +0 -60
  68. package/dist/esm/i18n/es.js +0 -60
  69. package/dist/esm/i18n/fi.js +0 -60
  70. package/dist/esm/i18n/fr.js +0 -60
  71. package/dist/esm/i18n/hu.js +0 -60
  72. package/dist/esm/i18n/it.js +0 -60
  73. package/dist/esm/i18n/ja.js +0 -60
  74. package/dist/esm/i18n/ko.js +0 -60
  75. package/dist/esm/i18n/nb.js +0 -60
  76. package/dist/esm/i18n/nl.js +0 -60
  77. package/dist/esm/i18n/pl.js +0 -60
  78. package/dist/esm/i18n/pt_BR.js +0 -60
  79. package/dist/esm/i18n/ru.js +0 -60
  80. package/dist/esm/i18n/sv.js +0 -60
  81. package/dist/esm/i18n/th.js +0 -60
  82. package/dist/esm/i18n/tr.js +0 -60
  83. package/dist/esm/i18n/uk.js +0 -60
  84. package/dist/esm/i18n/vi.js +0 -60
  85. package/dist/esm/i18n/zh.js +0 -60
  86. package/dist/esm/i18n/zh_TW.js +0 -60
  87. package/dist/esm/labs/next/presets/default.js +2 -1
  88. package/dist/esm/plugins/index.js +0 -1
  89. package/dist/esm/plugins/tasks-and-decisions/nodeviews/decisionItem.js +1 -1
  90. package/dist/esm/plugins/tasks-and-decisions/nodeviews/taskItem.js +1 -1
  91. package/dist/esm/version-wrapper.js +1 -1
  92. package/dist/types/i18n/cs.d.ts +0 -60
  93. package/dist/types/i18n/da.d.ts +0 -60
  94. package/dist/types/i18n/de.d.ts +0 -60
  95. package/dist/types/i18n/en.d.ts +0 -60
  96. package/dist/types/i18n/en_GB.d.ts +0 -60
  97. package/dist/types/i18n/en_ZZ.d.ts +0 -60
  98. package/dist/types/i18n/es.d.ts +0 -60
  99. package/dist/types/i18n/fi.d.ts +0 -60
  100. package/dist/types/i18n/fr.d.ts +0 -60
  101. package/dist/types/i18n/hu.d.ts +0 -60
  102. package/dist/types/i18n/it.d.ts +0 -60
  103. package/dist/types/i18n/ja.d.ts +0 -60
  104. package/dist/types/i18n/ko.d.ts +0 -60
  105. package/dist/types/i18n/nb.d.ts +0 -60
  106. package/dist/types/i18n/nl.d.ts +0 -60
  107. package/dist/types/i18n/pl.d.ts +0 -60
  108. package/dist/types/i18n/pt_BR.d.ts +0 -60
  109. package/dist/types/i18n/ru.d.ts +0 -60
  110. package/dist/types/i18n/sv.d.ts +0 -60
  111. package/dist/types/i18n/th.d.ts +0 -60
  112. package/dist/types/i18n/tr.d.ts +0 -60
  113. package/dist/types/i18n/uk.d.ts +0 -60
  114. package/dist/types/i18n/vi.d.ts +0 -60
  115. package/dist/types/i18n/zh.d.ts +0 -60
  116. package/dist/types/i18n/zh_TW.d.ts +0 -60
  117. package/dist/types/plugins/index.d.ts +0 -1
  118. package/dist/types/plugins/paste/index.d.ts +2 -2
  119. package/dist/types-ts4.5/i18n/cs.d.ts +0 -60
  120. package/dist/types-ts4.5/i18n/da.d.ts +0 -60
  121. package/dist/types-ts4.5/i18n/de.d.ts +0 -60
  122. package/dist/types-ts4.5/i18n/en.d.ts +0 -60
  123. package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -60
  124. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -60
  125. package/dist/types-ts4.5/i18n/es.d.ts +0 -60
  126. package/dist/types-ts4.5/i18n/fi.d.ts +0 -60
  127. package/dist/types-ts4.5/i18n/fr.d.ts +0 -60
  128. package/dist/types-ts4.5/i18n/hu.d.ts +0 -60
  129. package/dist/types-ts4.5/i18n/it.d.ts +0 -60
  130. package/dist/types-ts4.5/i18n/ja.d.ts +0 -60
  131. package/dist/types-ts4.5/i18n/ko.d.ts +0 -60
  132. package/dist/types-ts4.5/i18n/nb.d.ts +0 -60
  133. package/dist/types-ts4.5/i18n/nl.d.ts +0 -60
  134. package/dist/types-ts4.5/i18n/pl.d.ts +0 -60
  135. package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -60
  136. package/dist/types-ts4.5/i18n/ru.d.ts +0 -60
  137. package/dist/types-ts4.5/i18n/sv.d.ts +0 -60
  138. package/dist/types-ts4.5/i18n/th.d.ts +0 -60
  139. package/dist/types-ts4.5/i18n/tr.d.ts +0 -60
  140. package/dist/types-ts4.5/i18n/uk.d.ts +0 -60
  141. package/dist/types-ts4.5/i18n/vi.d.ts +0 -60
  142. package/dist/types-ts4.5/i18n/zh.d.ts +0 -60
  143. package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -60
  144. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  145. package/dist/types-ts4.5/plugins/paste/index.d.ts +2 -2
  146. package/package.json +3 -2
  147. package/dist/cjs/plugins/better-type-history/index.js +0 -33
  148. package/dist/cjs/plugins/better-type-history/pm-plugins/main.js +0 -63
  149. package/dist/cjs/plugins/better-type-history/pm-plugins/plugin-key.js +0 -8
  150. package/dist/es2019/plugins/better-type-history/index.js +0 -24
  151. package/dist/es2019/plugins/better-type-history/pm-plugins/main.js +0 -57
  152. package/dist/es2019/plugins/better-type-history/pm-plugins/plugin-key.js +0 -2
  153. package/dist/esm/plugins/better-type-history/index.js +0 -26
  154. package/dist/esm/plugins/better-type-history/pm-plugins/main.js +0 -57
  155. package/dist/esm/plugins/better-type-history/pm-plugins/plugin-key.js +0 -2
  156. package/dist/types/plugins/better-type-history/index.d.ts +0 -13
  157. package/dist/types/plugins/better-type-history/pm-plugins/main.d.ts +0 -3
  158. package/dist/types/plugins/better-type-history/pm-plugins/plugin-key.d.ts +0 -2
  159. package/dist/types-ts4.5/plugins/better-type-history/index.d.ts +0 -13
  160. package/dist/types-ts4.5/plugins/better-type-history/pm-plugins/main.d.ts +0 -3
  161. package/dist/types-ts4.5/plugins/better-type-history/pm-plugins/plugin-key.d.ts +0 -2
@@ -5,23 +5,12 @@
5
5
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
6
  */
7
7
  declare const _default: {
8
- 'fabric.editor.addAltText': string;
9
- 'fabric.editor.addImageBorder': string;
10
8
  'fabric.editor.alignCenter': string;
11
9
  'fabric.editor.alignLeft': string;
12
10
  'fabric.editor.alignRight': string;
13
11
  'fabric.editor.alignment': string;
14
- 'fabric.editor.altText': string;
15
- 'fabric.editor.alttext.validation': string;
16
- 'fabric.editor.annotationToolbar': string;
17
- 'fabric.editor.backLink': string;
18
- 'fabric.editor.captionPlaceholder': string;
19
- 'fabric.editor.checkUncheckActionItem': string;
20
12
  'fabric.editor.chromeCollapsedPlaceholder': string;
21
- 'fabric.editor.clearAltTextEdit': string;
22
- 'fabric.editor.closeAltTextEdit': string;
23
13
  'fabric.editor.closeFindReplaceDialog': string;
24
- 'fabric.editor.closeHelpDialog': string;
25
14
  'fabric.editor.configFailedToLoad': string;
26
15
  'fabric.editor.configPanel.cancel': string;
27
16
  'fabric.editor.configPanel.close': string;
@@ -39,18 +28,10 @@ declare const _default: {
39
28
  'fabric.editor.configPanel.invalid': string;
40
29
  'fabric.editor.configPanel.required': string;
41
30
  'fabric.editor.configPanel.submit': string;
42
- 'fabric.editor.createComment': string;
43
- 'fabric.editor.createCommentInvalid': string;
44
31
  'fabric.editor.decisionPlaceholder': string;
45
- 'fabric.editor.description': string;
46
- 'fabric.editor.dropPlaceholderLabel': string;
47
32
  'fabric.editor.edit': string;
48
- 'fabric.editor.editAltText': string;
49
33
  'fabric.editor.editDateText': string;
50
- 'fabric.editor.editStatusColor': string;
51
- 'fabric.editor.editStatusText': string;
52
34
  'fabric.editor.editorAssistiveLabel': string;
53
- 'fabric.editor.editorHelp': string;
54
35
  'fabric.editor.editors': string;
55
36
  'fabric.editor.error': string;
56
37
  'fabric.editor.extension.confirmDeleteLinkedModalMessage': string;
@@ -63,75 +44,34 @@ declare const _default: {
63
44
  'fabric.editor.findReplaceToolbarButton': string;
64
45
  'fabric.editor.floatingToolbar.confirmModalCheckboxLabel': string;
65
46
  'fabric.editor.headingLink.toolbarHelpTitle': string;
66
- 'fabric.editor.helpDialogTips': string;
67
- 'fabric.editor.image.fullWidthLabel': string;
68
- 'fabric.editor.imageBorderBold': string;
69
- 'fabric.editor.imageBorderColor': string;
70
- 'fabric.editor.imageBorderMedium': string;
71
- 'fabric.editor.imageBorderOptions': string;
72
- 'fabric.editor.imageBorderSize': string;
73
- 'fabric.editor.imageBorderSubtle': string;
74
47
  'fabric.editor.indent': string;
75
48
  'fabric.editor.info': string;
76
- 'fabric.editor.inputQueryAssistiveTxt': string;
77
49
  'fabric.editor.invalidDateError': string;
78
50
  'fabric.editor.inviteItem.title': string;
79
- 'fabric.editor.keyboardShortcuts': string;
80
51
  'fabric.editor.leftSidebar': string;
81
- 'fabric.editor.markdown': string;
82
52
  'fabric.editor.matchCase': string;
83
- 'fabric.editor.media.pixelEntry.inputHeightAriaLabel': string;
84
- 'fabric.editor.media.pixelEntry.inputHeightTooltip': string;
85
- 'fabric.editor.media.pixelEntry.inputWidthAriaLabel': string;
86
- 'fabric.editor.media.pixelEntry.inputWidthTooltip': string;
87
- 'fabric.editor.media.pixelEntry.migrationButtonText': string;
88
- 'fabric.editor.media.pixelEntry.migrationButtonTooltip': string;
89
- 'fabric.editor.media.pixelEntry.submitButtonText': string;
90
- 'fabric.editor.media.pixelEntry.validationFailedMessage': string;
91
- 'fabric.editor.mediaGroupDeleteLabel': string;
92
53
  'fabric.editor.mentionNode.label': string;
93
54
  'fabric.editor.mentionsAddLabel': string;
94
55
  'fabric.editor.mentionsIconLabel': string;
95
56
  'fabric.editor.noResultsFound': string;
96
- 'fabric.editor.noSearchResults': string;
97
57
  'fabric.editor.note': string;
98
58
  'fabric.editor.outdent': string;
99
59
  'fabric.editor.panel.backgroundColor': string;
100
60
  'fabric.editor.panel.emoji': string;
101
- 'fabric.editor.pastePlainText': string;
102
- 'fabric.editor.placeholderAltText': string;
103
61
  'fabric.editor.placeholderTextPlaceholder': string;
104
- 'fabric.editor.quickInsert': string;
105
- 'fabric.editor.redo': string;
106
- 'fabric.editor.removeImageBorder': string;
107
62
  'fabric.editor.replace': string;
108
63
  'fabric.editor.replaceAll': string;
109
64
  'fabric.editor.replaceWith': string;
110
65
  'fabric.editor.resultsCount': string;
111
66
  'fabric.editor.rightSidebar': string;
112
- 'fabric.editor.searchResults': string;
113
67
  'fabric.editor.selectLanguage': string;
114
- 'fabric.editor.shortcut': string;
115
68
  'fabric.editor.single': string;
116
- 'fabric.editor.statusPlaceholder': string;
117
69
  'fabric.editor.success': string;
118
- 'fabric.editor.supportAltText': string;
119
70
  'fabric.editor.taskPlaceholder': string;
120
71
  'fabric.editor.textColor': string;
121
72
  'fabric.editor.threeColumns': string;
122
73
  'fabric.editor.threeColumnsWithSidebars': string;
123
- 'fabric.editor.toolbarMediaTitle': string;
124
74
  'fabric.editor.twoColumns': string;
125
- 'fabric.editor.typeAhead.popupLabel': string;
126
- 'fabric.editor.typeAhead.quickInsertInputLabel': string;
127
- 'fabric.editor.typeAhead.quickInsertPopupLabel': string;
128
- 'fabric.editor.typeahead.emojiInputLabel': string;
129
- 'fabric.editor.typeahead.emojiListItemLabel': string;
130
- 'fabric.editor.typeahead.emojiPopupLabel': string;
131
- 'fabric.editor.typeahead.mentionInputLabel': string;
132
- 'fabric.editor.typeahead.mentionPopupLabel': string;
133
- 'fabric.editor.typeahead.metionListItemLabel': string;
134
- 'fabric.editor.undo': string;
135
75
  'fabric.editor.warning': string;
136
76
  'fabric.editor.wrapLeft': string;
137
77
  'fabric.editor.wrapRight': string;
@@ -5,23 +5,12 @@
5
5
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
6
  */
7
7
  declare const _default: {
8
- 'fabric.editor.addAltText': string;
9
- 'fabric.editor.addImageBorder': string;
10
8
  'fabric.editor.alignCenter': string;
11
9
  'fabric.editor.alignLeft': string;
12
10
  'fabric.editor.alignRight': string;
13
11
  'fabric.editor.alignment': string;
14
- 'fabric.editor.altText': string;
15
- 'fabric.editor.alttext.validation': string;
16
- 'fabric.editor.annotationToolbar': string;
17
- 'fabric.editor.backLink': string;
18
- 'fabric.editor.captionPlaceholder': string;
19
- 'fabric.editor.checkUncheckActionItem': string;
20
12
  'fabric.editor.chromeCollapsedPlaceholder': string;
21
- 'fabric.editor.clearAltTextEdit': string;
22
- 'fabric.editor.closeAltTextEdit': string;
23
13
  'fabric.editor.closeFindReplaceDialog': string;
24
- 'fabric.editor.closeHelpDialog': string;
25
14
  'fabric.editor.configFailedToLoad': string;
26
15
  'fabric.editor.configPanel.cancel': string;
27
16
  'fabric.editor.configPanel.close': string;
@@ -39,18 +28,10 @@ declare const _default: {
39
28
  'fabric.editor.configPanel.invalid': string;
40
29
  'fabric.editor.configPanel.required': string;
41
30
  'fabric.editor.configPanel.submit': string;
42
- 'fabric.editor.createComment': string;
43
- 'fabric.editor.createCommentInvalid': string;
44
31
  'fabric.editor.decisionPlaceholder': string;
45
- 'fabric.editor.description': string;
46
- 'fabric.editor.dropPlaceholderLabel': string;
47
32
  'fabric.editor.edit': string;
48
- 'fabric.editor.editAltText': string;
49
33
  'fabric.editor.editDateText': string;
50
- 'fabric.editor.editStatusColor': string;
51
- 'fabric.editor.editStatusText': string;
52
34
  'fabric.editor.editorAssistiveLabel': string;
53
- 'fabric.editor.editorHelp': string;
54
35
  'fabric.editor.editors': string;
55
36
  'fabric.editor.error': string;
56
37
  'fabric.editor.extension.confirmDeleteLinkedModalMessage': string;
@@ -63,75 +44,34 @@ declare const _default: {
63
44
  'fabric.editor.findReplaceToolbarButton': string;
64
45
  'fabric.editor.floatingToolbar.confirmModalCheckboxLabel': string;
65
46
  'fabric.editor.headingLink.toolbarHelpTitle': string;
66
- 'fabric.editor.helpDialogTips': string;
67
- 'fabric.editor.image.fullWidthLabel': string;
68
- 'fabric.editor.imageBorderBold': string;
69
- 'fabric.editor.imageBorderColor': string;
70
- 'fabric.editor.imageBorderMedium': string;
71
- 'fabric.editor.imageBorderOptions': string;
72
- 'fabric.editor.imageBorderSize': string;
73
- 'fabric.editor.imageBorderSubtle': string;
74
47
  'fabric.editor.indent': string;
75
48
  'fabric.editor.info': string;
76
- 'fabric.editor.inputQueryAssistiveTxt': string;
77
49
  'fabric.editor.invalidDateError': string;
78
50
  'fabric.editor.inviteItem.title': string;
79
- 'fabric.editor.keyboardShortcuts': string;
80
51
  'fabric.editor.leftSidebar': string;
81
- 'fabric.editor.markdown': string;
82
52
  'fabric.editor.matchCase': string;
83
- 'fabric.editor.media.pixelEntry.inputHeightAriaLabel': string;
84
- 'fabric.editor.media.pixelEntry.inputHeightTooltip': string;
85
- 'fabric.editor.media.pixelEntry.inputWidthAriaLabel': string;
86
- 'fabric.editor.media.pixelEntry.inputWidthTooltip': string;
87
- 'fabric.editor.media.pixelEntry.migrationButtonText': string;
88
- 'fabric.editor.media.pixelEntry.migrationButtonTooltip': string;
89
- 'fabric.editor.media.pixelEntry.submitButtonText': string;
90
- 'fabric.editor.media.pixelEntry.validationFailedMessage': string;
91
- 'fabric.editor.mediaGroupDeleteLabel': string;
92
53
  'fabric.editor.mentionNode.label': string;
93
54
  'fabric.editor.mentionsAddLabel': string;
94
55
  'fabric.editor.mentionsIconLabel': string;
95
56
  'fabric.editor.noResultsFound': string;
96
- 'fabric.editor.noSearchResults': string;
97
57
  'fabric.editor.note': string;
98
58
  'fabric.editor.outdent': string;
99
59
  'fabric.editor.panel.backgroundColor': string;
100
60
  'fabric.editor.panel.emoji': string;
101
- 'fabric.editor.pastePlainText': string;
102
- 'fabric.editor.placeholderAltText': string;
103
61
  'fabric.editor.placeholderTextPlaceholder': string;
104
- 'fabric.editor.quickInsert': string;
105
- 'fabric.editor.redo': string;
106
- 'fabric.editor.removeImageBorder': string;
107
62
  'fabric.editor.replace': string;
108
63
  'fabric.editor.replaceAll': string;
109
64
  'fabric.editor.replaceWith': string;
110
65
  'fabric.editor.resultsCount': string;
111
66
  'fabric.editor.rightSidebar': string;
112
- 'fabric.editor.searchResults': string;
113
67
  'fabric.editor.selectLanguage': string;
114
- 'fabric.editor.shortcut': string;
115
68
  'fabric.editor.single': string;
116
- 'fabric.editor.statusPlaceholder': string;
117
69
  'fabric.editor.success': string;
118
- 'fabric.editor.supportAltText': string;
119
70
  'fabric.editor.taskPlaceholder': string;
120
71
  'fabric.editor.textColor': string;
121
72
  'fabric.editor.threeColumns': string;
122
73
  'fabric.editor.threeColumnsWithSidebars': string;
123
- 'fabric.editor.toolbarMediaTitle': string;
124
74
  'fabric.editor.twoColumns': string;
125
- 'fabric.editor.typeAhead.popupLabel': string;
126
- 'fabric.editor.typeAhead.quickInsertInputLabel': string;
127
- 'fabric.editor.typeAhead.quickInsertPopupLabel': string;
128
- 'fabric.editor.typeahead.emojiInputLabel': string;
129
- 'fabric.editor.typeahead.emojiListItemLabel': string;
130
- 'fabric.editor.typeahead.emojiPopupLabel': string;
131
- 'fabric.editor.typeahead.mentionInputLabel': string;
132
- 'fabric.editor.typeahead.mentionPopupLabel': string;
133
- 'fabric.editor.typeahead.metionListItemLabel': string;
134
- 'fabric.editor.undo': string;
135
75
  'fabric.editor.warning': string;
136
76
  'fabric.editor.wrapLeft': string;
137
77
  'fabric.editor.wrapRight': string;
@@ -1,4 +1,3 @@
1
- export { default as betterTypeHistoryPlugin } from './better-type-history';
2
1
  export { default as clearMarksOnChangeToEmptyDocumentPlugin } from './clear-marks-on-change-to-empty-document';
3
2
  export { default as codeBlockPlugin } from './code-block';
4
3
  export { default as collabEditPlugin } from './collab-edit';
@@ -2,7 +2,7 @@ import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/t
2
2
  import type { CardOptions } from '@atlaskit/editor-common/card';
3
3
  import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
4
4
  import type { cardPlugin } from '@atlaskit/editor-plugin-card';
5
- import type betterTypeHistoryPlugin from '../better-type-history';
5
+ import type { BetterTypeHistoryPlugin } from '@atlaskit/editor-plugin-better-type-history';
6
6
  import type { listPlugin } from '@atlaskit/editor-plugin-list';
7
7
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
8
8
  import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
@@ -15,7 +15,7 @@ export type PastePlugin = NextEditorPlugin<'paste', {
15
15
  dependencies: [
16
16
  FeatureFlagsPlugin,
17
17
  OptionalPlugin<typeof listPlugin>,
18
- typeof betterTypeHistoryPlugin,
18
+ BetterTypeHistoryPlugin,
19
19
  OptionalPlugin<typeof cardPlugin>,
20
20
  OptionalPlugin<typeof analyticsPlugin>,
21
21
  OptionalPlugin<MediaPlugin>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "188.11.0",
3
+ "version": "188.11.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -59,6 +59,7 @@
59
59
  "@atlaskit/editor-palette": "1.5.1",
60
60
  "@atlaskit/editor-plugin-analytics": "^0.2.0",
61
61
  "@atlaskit/editor-plugin-base": "^0.2.0",
62
+ "@atlaskit/editor-plugin-better-type-history": "^0.1.0",
62
63
  "@atlaskit/editor-plugin-block-type": "^2.0.0",
63
64
  "@atlaskit/editor-plugin-border": "^0.1.0",
64
65
  "@atlaskit/editor-plugin-caption": "^0.2.0",
@@ -123,7 +124,7 @@
123
124
  "@atlaskit/textfield": "^5.6.0",
124
125
  "@atlaskit/theme": "^12.6.0",
125
126
  "@atlaskit/toggle": "^12.6.0",
126
- "@atlaskit/tokens": "^1.27.0",
127
+ "@atlaskit/tokens": "^1.28.0",
127
128
  "@atlaskit/tooltip": "^17.8.0",
128
129
  "@atlaskit/width-detector": "^4.1.0",
129
130
  "@babel/runtime": "^7.0.0",
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _main = _interopRequireDefault(require("./pm-plugins/main"));
9
- var _pluginKey = require("./pm-plugins/plugin-key");
10
- /**
11
- * This plugin is aiming to improve undo behaviour for some of our more custom applications, very specific text
12
- * paste events, splitting blocks of text, new lines.
13
- */
14
- var betterTypeHistory = function betterTypeHistory() {
15
- return {
16
- name: 'betterTypeHistory',
17
- actions: {
18
- flagPasteEvent: function flagPasteEvent(tr) {
19
- tr.setMeta(_pluginKey.pluginKey, true);
20
- return tr;
21
- }
22
- },
23
- pmPlugins: function pmPlugins() {
24
- return [{
25
- name: 'betterTypeHistory',
26
- plugin: function plugin() {
27
- return (0, _main.default)();
28
- }
29
- }];
30
- }
31
- };
32
- };
33
- var _default = exports.default = betterTypeHistory;
@@ -1,63 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
8
- var _state = require("@atlaskit/editor-prosemirror/state");
9
- var _model = require("@atlaskit/editor-prosemirror/model");
10
- var _history = require("@atlaskit/editor-prosemirror/history");
11
- var _transform = require("@atlaskit/editor-prosemirror/transform");
12
- var _step = require("../../../utils/step");
13
- var _pluginKey = require("./plugin-key");
14
- var getEnterKeyboardActionStep = function getEnterKeyboardActionStep(trs) {
15
- var firstTr = trs.length === 1 && trs[0];
16
- if (!firstTr || !firstTr.docChanged || !firstTr.isGeneric || !(firstTr.selection instanceof _state.TextSelection)) {
17
- return null;
18
- }
19
- var selection = firstTr.selection,
20
- steps = firstTr.steps;
21
- var replaceSteps = steps.filter(function (step) {
22
- return step instanceof _transform.ReplaceStep || step instanceof _transform.ReplaceAroundStep;
23
- });
24
- if (!selection.$cursor || replaceSteps.length !== 1) {
25
- return null;
26
- }
27
- return replaceSteps[0];
28
- };
29
- var isSliceSplittingBlockNode = function isSliceSplittingBlockNode(slice) {
30
- var hasOnlyTwoChildren = slice.size > 1 && slice.content.childCount === 2;
31
- if (!hasOnlyTwoChildren) {
32
- return false;
33
- }
34
- var firstNode = slice.content.child(0);
35
- var secondNode = slice.content.child(1);
36
- return firstNode && secondNode && firstNode.type === secondNode.type;
37
- };
38
- var isSliceAddingNewlineChar = function isSliceAddingNewlineChar(slice, schema) {
39
- var newLine = _model.Fragment.from(schema.text('\n'));
40
- return slice.content.eq(newLine);
41
- };
42
- var _default = exports.default = function _default() {
43
- return new _safePlugin.SafePlugin({
44
- key: _pluginKey.pluginKey,
45
- appendTransaction: function appendTransaction(transactions, oldState, newState) {
46
- var hasHandlePasteMeta = transactions.find(function (tran) {
47
- return tran.getMeta(_pluginKey.pluginKey);
48
- });
49
- if (hasHandlePasteMeta) {
50
- return (0, _history.closeHistory)(newState.tr);
51
- }
52
- var enterStep = getEnterKeyboardActionStep(transactions);
53
- if (!enterStep) {
54
- return;
55
- }
56
- var slice = (0, _step.extractSliceFromStep)(enterStep);
57
- var schema = newState.schema;
58
- if (slice && (isSliceSplittingBlockNode(slice) || isSliceAddingNewlineChar(slice, schema))) {
59
- return (0, _history.closeHistory)(newState.tr);
60
- }
61
- }
62
- });
63
- };
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.pluginKey = void 0;
7
- var _state = require("@atlaskit/editor-prosemirror/state");
8
- var pluginKey = exports.pluginKey = new _state.PluginKey('betterTypeHistoryPlugin');
@@ -1,24 +0,0 @@
1
- import createPlugin from './pm-plugins/main';
2
- import { pluginKey } from './pm-plugins/plugin-key';
3
- /**
4
- * This plugin is aiming to improve undo behaviour for some of our more custom applications, very specific text
5
- * paste events, splitting blocks of text, new lines.
6
- */
7
- const betterTypeHistory = () => {
8
- return {
9
- name: 'betterTypeHistory',
10
- actions: {
11
- flagPasteEvent(tr) {
12
- tr.setMeta(pluginKey, true);
13
- return tr;
14
- }
15
- },
16
- pmPlugins() {
17
- return [{
18
- name: 'betterTypeHistory',
19
- plugin: () => createPlugin()
20
- }];
21
- }
22
- };
23
- };
24
- export default betterTypeHistory;
@@ -1,57 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { TextSelection } from '@atlaskit/editor-prosemirror/state';
3
- import { Fragment } from '@atlaskit/editor-prosemirror/model';
4
- import { closeHistory } from '@atlaskit/editor-prosemirror/history';
5
- import { ReplaceStep, ReplaceAroundStep } from '@atlaskit/editor-prosemirror/transform';
6
- import { extractSliceFromStep } from '../../../utils/step';
7
- import { pluginKey } from './plugin-key';
8
- const getEnterKeyboardActionStep = trs => {
9
- const firstTr = trs.length === 1 && trs[0];
10
- if (!firstTr || !firstTr.docChanged || !firstTr.isGeneric || !(firstTr.selection instanceof TextSelection)) {
11
- return null;
12
- }
13
- const {
14
- selection,
15
- steps
16
- } = firstTr;
17
- const replaceSteps = steps.filter(step => step instanceof ReplaceStep || step instanceof ReplaceAroundStep);
18
- if (!selection.$cursor || replaceSteps.length !== 1) {
19
- return null;
20
- }
21
- return replaceSteps[0];
22
- };
23
- const isSliceSplittingBlockNode = slice => {
24
- const hasOnlyTwoChildren = slice.size > 1 && slice.content.childCount === 2;
25
- if (!hasOnlyTwoChildren) {
26
- return false;
27
- }
28
- const firstNode = slice.content.child(0);
29
- const secondNode = slice.content.child(1);
30
- return firstNode && secondNode && firstNode.type === secondNode.type;
31
- };
32
- const isSliceAddingNewlineChar = (slice, schema) => {
33
- const newLine = Fragment.from(schema.text('\n'));
34
- return slice.content.eq(newLine);
35
- };
36
- export default (() => {
37
- return new SafePlugin({
38
- key: pluginKey,
39
- appendTransaction: (transactions, oldState, newState) => {
40
- const hasHandlePasteMeta = transactions.find(tran => tran.getMeta(pluginKey));
41
- if (hasHandlePasteMeta) {
42
- return closeHistory(newState.tr);
43
- }
44
- const enterStep = getEnterKeyboardActionStep(transactions);
45
- if (!enterStep) {
46
- return;
47
- }
48
- const slice = extractSliceFromStep(enterStep);
49
- const {
50
- schema
51
- } = newState;
52
- if (slice && (isSliceSplittingBlockNode(slice) || isSliceAddingNewlineChar(slice, schema))) {
53
- return closeHistory(newState.tr);
54
- }
55
- }
56
- });
57
- });
@@ -1,2 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- export const pluginKey = new PluginKey('betterTypeHistoryPlugin');
@@ -1,26 +0,0 @@
1
- import createPlugin from './pm-plugins/main';
2
- import { pluginKey } from './pm-plugins/plugin-key';
3
- /**
4
- * This plugin is aiming to improve undo behaviour for some of our more custom applications, very specific text
5
- * paste events, splitting blocks of text, new lines.
6
- */
7
- var betterTypeHistory = function betterTypeHistory() {
8
- return {
9
- name: 'betterTypeHistory',
10
- actions: {
11
- flagPasteEvent: function flagPasteEvent(tr) {
12
- tr.setMeta(pluginKey, true);
13
- return tr;
14
- }
15
- },
16
- pmPlugins: function pmPlugins() {
17
- return [{
18
- name: 'betterTypeHistory',
19
- plugin: function plugin() {
20
- return createPlugin();
21
- }
22
- }];
23
- }
24
- };
25
- };
26
- export default betterTypeHistory;
@@ -1,57 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { TextSelection } from '@atlaskit/editor-prosemirror/state';
3
- import { Fragment } from '@atlaskit/editor-prosemirror/model';
4
- import { closeHistory } from '@atlaskit/editor-prosemirror/history';
5
- import { ReplaceStep, ReplaceAroundStep } from '@atlaskit/editor-prosemirror/transform';
6
- import { extractSliceFromStep } from '../../../utils/step';
7
- import { pluginKey } from './plugin-key';
8
- var getEnterKeyboardActionStep = function getEnterKeyboardActionStep(trs) {
9
- var firstTr = trs.length === 1 && trs[0];
10
- if (!firstTr || !firstTr.docChanged || !firstTr.isGeneric || !(firstTr.selection instanceof TextSelection)) {
11
- return null;
12
- }
13
- var selection = firstTr.selection,
14
- steps = firstTr.steps;
15
- var replaceSteps = steps.filter(function (step) {
16
- return step instanceof ReplaceStep || step instanceof ReplaceAroundStep;
17
- });
18
- if (!selection.$cursor || replaceSteps.length !== 1) {
19
- return null;
20
- }
21
- return replaceSteps[0];
22
- };
23
- var isSliceSplittingBlockNode = function isSliceSplittingBlockNode(slice) {
24
- var hasOnlyTwoChildren = slice.size > 1 && slice.content.childCount === 2;
25
- if (!hasOnlyTwoChildren) {
26
- return false;
27
- }
28
- var firstNode = slice.content.child(0);
29
- var secondNode = slice.content.child(1);
30
- return firstNode && secondNode && firstNode.type === secondNode.type;
31
- };
32
- var isSliceAddingNewlineChar = function isSliceAddingNewlineChar(slice, schema) {
33
- var newLine = Fragment.from(schema.text('\n'));
34
- return slice.content.eq(newLine);
35
- };
36
- export default (function () {
37
- return new SafePlugin({
38
- key: pluginKey,
39
- appendTransaction: function appendTransaction(transactions, oldState, newState) {
40
- var hasHandlePasteMeta = transactions.find(function (tran) {
41
- return tran.getMeta(pluginKey);
42
- });
43
- if (hasHandlePasteMeta) {
44
- return closeHistory(newState.tr);
45
- }
46
- var enterStep = getEnterKeyboardActionStep(transactions);
47
- if (!enterStep) {
48
- return;
49
- }
50
- var slice = extractSliceFromStep(enterStep);
51
- var schema = newState.schema;
52
- if (slice && (isSliceSplittingBlockNode(slice) || isSliceAddingNewlineChar(slice, schema))) {
53
- return closeHistory(newState.tr);
54
- }
55
- }
56
- });
57
- });
@@ -1,2 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- export var pluginKey = new PluginKey('betterTypeHistoryPlugin');
@@ -1,13 +0,0 @@
1
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
- export type BetterTypeHistoryAPI = {
4
- flagPasteEvent: (transaction: Transaction) => Transaction;
5
- };
6
- /**
7
- * This plugin is aiming to improve undo behaviour for some of our more custom applications, very specific text
8
- * paste events, splitting blocks of text, new lines.
9
- */
10
- declare const betterTypeHistory: NextEditorPlugin<'betterTypeHistory', {
11
- actions: BetterTypeHistoryAPI;
12
- }>;
13
- export default betterTypeHistory;
@@ -1,3 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- declare const _default: () => SafePlugin<any>;
3
- export default _default;
@@ -1,2 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- export declare const pluginKey: PluginKey<any>;
@@ -1,13 +0,0 @@
1
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
- export type BetterTypeHistoryAPI = {
4
- flagPasteEvent: (transaction: Transaction) => Transaction;
5
- };
6
- /**
7
- * This plugin is aiming to improve undo behaviour for some of our more custom applications, very specific text
8
- * paste events, splitting blocks of text, new lines.
9
- */
10
- declare const betterTypeHistory: NextEditorPlugin<'betterTypeHistory', {
11
- actions: BetterTypeHistoryAPI;
12
- }>;
13
- export default betterTypeHistory;
@@ -1,3 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- declare const _default: () => SafePlugin<any>;
3
- export default _default;
@@ -1,2 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- export declare const pluginKey: PluginKey<any>;