@atlaskit/editor-common 77.2.5 → 77.3.1

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 (201) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/emoji.js +10 -1
  3. package/dist/cjs/extensions/index.js +14 -1
  4. package/dist/cjs/extensions/messages.js +141 -0
  5. package/dist/cjs/extensions.js +12 -0
  6. package/dist/cjs/floating-toolbar/index.js +10 -1
  7. package/dist/cjs/floating-toolbar/messages.js +54 -0
  8. package/dist/cjs/lists/index.js +14 -1
  9. package/dist/cjs/lists/messages.js +36 -0
  10. package/dist/cjs/lists/node.js +77 -1
  11. package/dist/cjs/lists/replace-content.js +25 -1
  12. package/dist/cjs/media/index.js +68 -0
  13. package/dist/cjs/media/messages/altText.js +44 -0
  14. package/dist/cjs/media/messages/caption.js +14 -0
  15. package/dist/cjs/media/messages/dropPlaceholder.js +14 -0
  16. package/dist/cjs/media/messages/imageBorder.js +49 -0
  17. package/dist/cjs/media/messages/mediaLinkingToolbar.js +14 -0
  18. package/dist/cjs/media/messages/mediaResizeAnnouncerMess.js +34 -0
  19. package/dist/cjs/media/messages/nodeviews.js +14 -0
  20. package/dist/cjs/media/messages/pixelEntry.js +54 -0
  21. package/dist/cjs/media/messages/toolbarMedia.js +14 -0
  22. package/dist/cjs/messages/alignment.js +5 -0
  23. package/dist/cjs/messages/avatar-group.js +14 -0
  24. package/dist/cjs/messages/codeBlockButton.js +5 -0
  25. package/dist/cjs/messages/date.js +5 -0
  26. package/dist/cjs/messages/find-replace.js +79 -0
  27. package/dist/cjs/messages/help-dialog.js +80 -0
  28. package/dist/cjs/messages/indentation.js +0 -2
  29. package/dist/cjs/messages/index.js +63 -0
  30. package/dist/cjs/messages/mentions.js +29 -0
  31. package/dist/cjs/messages/panel.js +44 -0
  32. package/dist/cjs/messages/paste-options-toolbar.js +29 -0
  33. package/dist/cjs/messages/placeholder-text.js +14 -0
  34. package/dist/cjs/messages/tasks-and-decsisions.js +19 -0
  35. package/dist/cjs/messages/text-color.js +14 -0
  36. package/dist/cjs/monitoring/error.js +1 -1
  37. package/dist/cjs/quick-insert/index.js +8 -1
  38. package/dist/cjs/quick-insert/messages.js +69 -0
  39. package/dist/cjs/transforms/extension.js +10 -0
  40. package/dist/cjs/type-ahead/index.js +7 -0
  41. package/dist/cjs/type-ahead/messages.js +79 -0
  42. package/dist/cjs/ui/DropList/index.js +1 -1
  43. package/dist/es2019/emoji.js +9 -1
  44. package/dist/es2019/extensions/index.js +2 -1
  45. package/dist/es2019/extensions/messages.js +135 -0
  46. package/dist/es2019/extensions.js +1 -1
  47. package/dist/es2019/floating-toolbar/index.js +2 -1
  48. package/dist/es2019/floating-toolbar/messages.js +48 -0
  49. package/dist/es2019/lists/index.js +3 -2
  50. package/dist/es2019/lists/messages.js +29 -0
  51. package/dist/es2019/lists/node.js +76 -0
  52. package/dist/es2019/lists/replace-content.js +24 -0
  53. package/dist/es2019/media/index.js +9 -0
  54. package/dist/es2019/media/messages/altText.js +38 -0
  55. package/dist/es2019/media/messages/caption.js +8 -0
  56. package/dist/es2019/media/messages/dropPlaceholder.js +8 -0
  57. package/dist/es2019/media/messages/imageBorder.js +43 -0
  58. package/dist/es2019/media/messages/mediaLinkingToolbar.js +8 -0
  59. package/dist/es2019/media/messages/mediaResizeAnnouncerMess.js +28 -0
  60. package/dist/es2019/media/messages/nodeviews.js +8 -0
  61. package/dist/es2019/media/messages/pixelEntry.js +48 -0
  62. package/dist/es2019/media/messages/toolbarMedia.js +8 -0
  63. package/dist/es2019/messages/alignment.js +5 -0
  64. package/dist/es2019/messages/avatar-group.js +8 -0
  65. package/dist/es2019/messages/codeBlockButton.js +5 -0
  66. package/dist/es2019/messages/date.js +5 -0
  67. package/dist/es2019/messages/find-replace.js +73 -0
  68. package/dist/es2019/messages/help-dialog.js +74 -0
  69. package/dist/es2019/messages/indentation.js +0 -1
  70. package/dist/es2019/messages/index.js +9 -0
  71. package/dist/es2019/messages/mentions.js +23 -0
  72. package/dist/es2019/messages/panel.js +38 -0
  73. package/dist/es2019/messages/paste-options-toolbar.js +23 -0
  74. package/dist/es2019/messages/placeholder-text.js +8 -0
  75. package/dist/es2019/messages/tasks-and-decsisions.js +13 -0
  76. package/dist/es2019/messages/text-color.js +8 -0
  77. package/dist/es2019/monitoring/error.js +1 -1
  78. package/dist/es2019/quick-insert/index.js +2 -1
  79. package/dist/es2019/quick-insert/messages.js +63 -0
  80. package/dist/es2019/transforms/extension.js +10 -0
  81. package/dist/es2019/type-ahead/index.js +2 -1
  82. package/dist/es2019/type-ahead/messages.js +73 -0
  83. package/dist/es2019/ui/DropList/index.js +1 -1
  84. package/dist/esm/emoji.js +9 -1
  85. package/dist/esm/extensions/index.js +2 -1
  86. package/dist/esm/extensions/messages.js +135 -0
  87. package/dist/esm/extensions.js +1 -1
  88. package/dist/esm/floating-toolbar/index.js +2 -1
  89. package/dist/esm/floating-toolbar/messages.js +48 -0
  90. package/dist/esm/lists/index.js +3 -2
  91. package/dist/esm/lists/messages.js +29 -0
  92. package/dist/esm/lists/node.js +76 -0
  93. package/dist/esm/lists/replace-content.js +24 -0
  94. package/dist/esm/media/index.js +9 -0
  95. package/dist/esm/media/messages/altText.js +38 -0
  96. package/dist/esm/media/messages/caption.js +8 -0
  97. package/dist/esm/media/messages/dropPlaceholder.js +8 -0
  98. package/dist/esm/media/messages/imageBorder.js +43 -0
  99. package/dist/esm/media/messages/mediaLinkingToolbar.js +8 -0
  100. package/dist/esm/media/messages/mediaResizeAnnouncerMess.js +28 -0
  101. package/dist/esm/media/messages/nodeviews.js +8 -0
  102. package/dist/esm/media/messages/pixelEntry.js +48 -0
  103. package/dist/esm/media/messages/toolbarMedia.js +8 -0
  104. package/dist/esm/messages/alignment.js +5 -0
  105. package/dist/esm/messages/avatar-group.js +8 -0
  106. package/dist/esm/messages/codeBlockButton.js +5 -0
  107. package/dist/esm/messages/date.js +5 -0
  108. package/dist/esm/messages/find-replace.js +73 -0
  109. package/dist/esm/messages/help-dialog.js +74 -0
  110. package/dist/esm/messages/indentation.js +0 -1
  111. package/dist/esm/messages/index.js +9 -0
  112. package/dist/esm/messages/mentions.js +23 -0
  113. package/dist/esm/messages/panel.js +38 -0
  114. package/dist/esm/messages/paste-options-toolbar.js +23 -0
  115. package/dist/esm/messages/placeholder-text.js +8 -0
  116. package/dist/esm/messages/tasks-and-decsisions.js +13 -0
  117. package/dist/esm/messages/text-color.js +8 -0
  118. package/dist/esm/monitoring/error.js +1 -1
  119. package/dist/esm/quick-insert/index.js +2 -1
  120. package/dist/esm/quick-insert/messages.js +63 -0
  121. package/dist/esm/transforms/extension.js +10 -0
  122. package/dist/esm/type-ahead/index.js +2 -1
  123. package/dist/esm/type-ahead/messages.js +73 -0
  124. package/dist/esm/ui/DropList/index.js +1 -1
  125. package/dist/types/emoji.d.ts +7 -0
  126. package/dist/types/extensions/index.d.ts +1 -0
  127. package/dist/types/extensions/messages.d.ts +134 -0
  128. package/dist/types/extensions.d.ts +1 -1
  129. package/dist/types/floating-toolbar/index.d.ts +1 -0
  130. package/dist/types/floating-toolbar/messages.d.ts +48 -0
  131. package/dist/types/lists/index.d.ts +2 -1
  132. package/dist/types/lists/messages.d.ts +27 -0
  133. package/dist/types/lists/node.d.ts +1 -0
  134. package/dist/types/lists/replace-content.d.ts +3 -1
  135. package/dist/types/media/index.d.ts +9 -0
  136. package/dist/types/media/messages/altText.d.ts +37 -0
  137. package/dist/types/media/messages/caption.d.ts +7 -0
  138. package/dist/types/media/messages/dropPlaceholder.d.ts +7 -0
  139. package/dist/types/media/messages/imageBorder.d.ts +42 -0
  140. package/dist/types/media/messages/mediaLinkingToolbar.d.ts +7 -0
  141. package/dist/types/media/messages/mediaResizeAnnouncerMess.d.ts +27 -0
  142. package/dist/types/media/messages/nodeviews.d.ts +7 -0
  143. package/dist/types/media/messages/pixelEntry.d.ts +47 -0
  144. package/dist/types/media/messages/toolbarMedia.d.ts +7 -0
  145. package/dist/types/messages/alignment.d.ts +5 -0
  146. package/dist/types/messages/avatar-group.d.ts +7 -0
  147. package/dist/types/messages/codeBlockButton.d.ts +5 -0
  148. package/dist/types/messages/date.d.ts +5 -0
  149. package/dist/types/messages/find-replace.d.ts +72 -0
  150. package/dist/types/messages/help-dialog.d.ts +72 -0
  151. package/dist/types/messages/index.d.ts +9 -0
  152. package/dist/types/messages/mentions.d.ts +22 -0
  153. package/dist/types/messages/panel.d.ts +37 -0
  154. package/dist/types/messages/paste-options-toolbar.d.ts +22 -0
  155. package/dist/types/messages/placeholder-text.d.ts +7 -0
  156. package/dist/types/messages/tasks-and-decsisions.d.ts +12 -0
  157. package/dist/types/messages/text-color.d.ts +7 -0
  158. package/dist/types/quick-insert/index.d.ts +1 -0
  159. package/dist/types/quick-insert/messages.d.ts +62 -0
  160. package/dist/types/type-ahead/index.d.ts +1 -0
  161. package/dist/types/type-ahead/messages.d.ts +72 -0
  162. package/dist/types-ts4.5/emoji.d.ts +7 -0
  163. package/dist/types-ts4.5/extensions/index.d.ts +1 -0
  164. package/dist/types-ts4.5/extensions/messages.d.ts +134 -0
  165. package/dist/types-ts4.5/extensions.d.ts +1 -1
  166. package/dist/types-ts4.5/floating-toolbar/index.d.ts +1 -0
  167. package/dist/types-ts4.5/floating-toolbar/messages.d.ts +48 -0
  168. package/dist/types-ts4.5/lists/index.d.ts +2 -1
  169. package/dist/types-ts4.5/lists/messages.d.ts +27 -0
  170. package/dist/types-ts4.5/lists/node.d.ts +1 -0
  171. package/dist/types-ts4.5/lists/replace-content.d.ts +3 -1
  172. package/dist/types-ts4.5/media/index.d.ts +9 -0
  173. package/dist/types-ts4.5/media/messages/altText.d.ts +37 -0
  174. package/dist/types-ts4.5/media/messages/caption.d.ts +7 -0
  175. package/dist/types-ts4.5/media/messages/dropPlaceholder.d.ts +7 -0
  176. package/dist/types-ts4.5/media/messages/imageBorder.d.ts +42 -0
  177. package/dist/types-ts4.5/media/messages/mediaLinkingToolbar.d.ts +7 -0
  178. package/dist/types-ts4.5/media/messages/mediaResizeAnnouncerMess.d.ts +27 -0
  179. package/dist/types-ts4.5/media/messages/nodeviews.d.ts +7 -0
  180. package/dist/types-ts4.5/media/messages/pixelEntry.d.ts +47 -0
  181. package/dist/types-ts4.5/media/messages/toolbarMedia.d.ts +7 -0
  182. package/dist/types-ts4.5/messages/alignment.d.ts +5 -0
  183. package/dist/types-ts4.5/messages/avatar-group.d.ts +7 -0
  184. package/dist/types-ts4.5/messages/codeBlockButton.d.ts +5 -0
  185. package/dist/types-ts4.5/messages/date.d.ts +5 -0
  186. package/dist/types-ts4.5/messages/find-replace.d.ts +72 -0
  187. package/dist/types-ts4.5/messages/help-dialog.d.ts +72 -0
  188. package/dist/types-ts4.5/messages/index.d.ts +9 -0
  189. package/dist/types-ts4.5/messages/mentions.d.ts +22 -0
  190. package/dist/types-ts4.5/messages/panel.d.ts +37 -0
  191. package/dist/types-ts4.5/messages/paste-options-toolbar.d.ts +22 -0
  192. package/dist/types-ts4.5/messages/placeholder-text.d.ts +7 -0
  193. package/dist/types-ts4.5/messages/tasks-and-decsisions.d.ts +12 -0
  194. package/dist/types-ts4.5/messages/text-color.d.ts +7 -0
  195. package/dist/types-ts4.5/quick-insert/index.d.ts +1 -0
  196. package/dist/types-ts4.5/quick-insert/messages.d.ts +62 -0
  197. package/dist/types-ts4.5/type-ahead/index.d.ts +1 -0
  198. package/dist/types-ts4.5/type-ahead/messages.d.ts +72 -0
  199. package/media/package.json +15 -0
  200. package/package.json +2 -1
  201. package/tsconfig.json +3 -0
@@ -0,0 +1,8 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const captionMessages = defineMessages({
3
+ placeholder: {
4
+ id: 'fabric.editor.captionPlaceholder',
5
+ defaultMessage: 'Add a caption',
6
+ description: 'Placeholder description for an empty (new) caption in the editor'
7
+ }
8
+ });
@@ -0,0 +1,8 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const dropPlaceholderMessages = defineMessages({
3
+ dropPlaceholderLabel: {
4
+ id: 'fabric.editor.dropPlaceholderLabel',
5
+ defaultMessage: 'Document',
6
+ description: 'document label for an media icon'
7
+ }
8
+ });
@@ -0,0 +1,43 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const imageBorderMessages = defineMessages({
3
+ borderColor: {
4
+ id: 'fabric.editor.imageBorderColor',
5
+ defaultMessage: 'Color',
6
+ description: 'Change the border color of an image.'
7
+ },
8
+ borderSize: {
9
+ id: 'fabric.editor.imageBorderSize',
10
+ defaultMessage: 'Size',
11
+ description: 'Change the border size of an image.'
12
+ },
13
+ addBorder: {
14
+ id: 'fabric.editor.addImageBorder',
15
+ defaultMessage: 'Add border',
16
+ description: 'Add a border to an image.'
17
+ },
18
+ removeBorder: {
19
+ id: 'fabric.editor.removeImageBorder',
20
+ defaultMessage: 'Remove border',
21
+ description: 'Remove the border of an image.'
22
+ },
23
+ borderOptions: {
24
+ id: 'fabric.editor.imageBorderOptions',
25
+ defaultMessage: 'Border options',
26
+ description: 'Display options available for customizing the border of an image.'
27
+ },
28
+ borderSizeSubtle: {
29
+ id: 'fabric.editor.imageBorderSubtle',
30
+ defaultMessage: 'Subtle',
31
+ description: 'Name of a border size.'
32
+ },
33
+ borderSizeMedium: {
34
+ id: 'fabric.editor.imageBorderMedium',
35
+ defaultMessage: 'Medium',
36
+ description: 'Name of a border size.'
37
+ },
38
+ borderSizeBold: {
39
+ id: 'fabric.editor.imageBorderBold',
40
+ defaultMessage: 'Bold',
41
+ description: 'Name of a border size.'
42
+ }
43
+ });
@@ -0,0 +1,8 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const mediaLinkToolbarMessages = defineMessages({
3
+ backLink: {
4
+ id: 'fabric.editor.backLink',
5
+ defaultMessage: 'Go back',
6
+ description: 'Go back from media linking toolbar to main toolbar'
7
+ }
8
+ });
@@ -0,0 +1,28 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const mediaResizeAnnouncerMessMessages = defineMessages({
3
+ MediaWidthIsMax: {
4
+ id: 'fabric.editor.media.pixelEntry.MediaWidthIsMax',
5
+ defaultMessage: 'Media increased to the maximum size',
6
+ description: 'The media has the maximum allowed width'
7
+ },
8
+ MediaWidthIsMin: {
9
+ id: 'fabric.editor.media.MediaWidthIsMin',
10
+ defaultMessage: 'Media decreased to the minimum size',
11
+ description: 'The media has the minimum allowed width'
12
+ },
13
+ DefaultMediaWidth: {
14
+ id: 'fabric.editor.media.DefaultMediaWidth',
15
+ defaultMessage: 'Media width {action} to {newMediaWidth} pixels.',
16
+ description: 'Media width {action} to {newMediaWidth} pixels.'
17
+ },
18
+ IncreasedAction: {
19
+ id: 'fabric.editor.media.increased',
20
+ defaultMessage: 'increased',
21
+ description: 'Increased action'
22
+ },
23
+ DecreasedAction: {
24
+ id: 'fabric.editor.media.decreased',
25
+ defaultMessage: 'decreased',
26
+ description: 'Decreased action'
27
+ }
28
+ });
@@ -0,0 +1,8 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const nodeViewsMessages = defineMessages({
3
+ mediaGroupDeleteLabel: {
4
+ id: 'fabric.editor.mediaGroupDeleteLabel',
5
+ defaultMessage: 'delete',
6
+ description: 'a label for an icon that deletes media'
7
+ }
8
+ });
@@ -0,0 +1,48 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const pixelEntryMessages = defineMessages({
3
+ validationFailedMessage: {
4
+ id: 'fabric.editor.media.pixelEntry.validationFailedMessage',
5
+ defaultMessage: 'Validation for width failed',
6
+ description: 'The passed in validator function returned false'
7
+ },
8
+ inputWidthTooltip: {
9
+ id: 'fabric.editor.media.pixelEntry.inputWidthTooltip',
10
+ defaultMessage: 'Max width {maxWidth}px',
11
+ description: 'The tooltip displayed ontop of the width input'
12
+ },
13
+ inputWidthAriaLabel: {
14
+ id: 'fabric.editor.media.pixelEntry.inputWidthAriaLabel',
15
+ defaultMessage: 'Max width {maxWidth}px',
16
+ description: 'The width input aria label'
17
+ },
18
+ inputHeightTooltip: {
19
+ id: 'fabric.editor.media.pixelEntry.inputHeightTooltip',
20
+ defaultMessage: 'Height',
21
+ description: 'The tooltip displayed ontop of the height input'
22
+ },
23
+ inputHeightAriaLabel: {
24
+ id: 'fabric.editor.media.pixelEntry.inputHeightAriaLabel',
25
+ defaultMessage: 'height input',
26
+ description: 'The width input aria label'
27
+ },
28
+ submitButtonText: {
29
+ id: 'fabric.editor.media.pixelEntry.submitButtonText',
30
+ defaultMessage: 'Submit',
31
+ description: 'The text give to the hidden submit button'
32
+ },
33
+ fullWidthLabel: {
34
+ id: 'fabric.editor.image.fullWidthLabel',
35
+ defaultMessage: 'Full-width',
36
+ description: 'The media has reached its maximum width'
37
+ },
38
+ migrationButtonText: {
39
+ id: 'fabric.editor.media.pixelEntry.migrationButtonText',
40
+ defaultMessage: 'Convert to pixels',
41
+ description: 'The text give to the button used to covert to pixels for legacy experience'
42
+ },
43
+ migrationButtonTooltip: {
44
+ id: 'fabric.editor.media.pixelEntry.migrationButtonTooltip',
45
+ defaultMessage: 'Migrate from percentage to fixed pixel sizing',
46
+ description: 'The tooltip displayed on the migration button'
47
+ }
48
+ });
@@ -0,0 +1,8 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const toolbarMediaMessages = defineMessages({
3
+ toolbarMediaTitle: {
4
+ id: 'fabric.editor.toolbarMediaTitle',
5
+ defaultMessage: 'Add image, video, or file',
6
+ description: 'a label for an icon that describes files, videos and images'
7
+ }
8
+ });
@@ -1,5 +1,10 @@
1
1
  import { defineMessages } from 'react-intl-next';
2
2
  export const alignmentMessages = defineMessages({
3
+ alignment: {
4
+ id: 'fabric.editor.alignment',
5
+ defaultMessage: 'Text alignment',
6
+ description: 'Opens drop down menu of options to configure text alignment'
7
+ },
3
8
  alignLeft: {
4
9
  id: 'fabric.editor.alignLeft',
5
10
  defaultMessage: 'Align left',
@@ -0,0 +1,8 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const avatarGroupMessages = defineMessages({
3
+ editors: {
4
+ id: 'fabric.editor.editors',
5
+ defaultMessage: 'Editors',
6
+ description: 'classifying the people that are currently editing the document'
7
+ }
8
+ });
@@ -19,5 +19,10 @@ export const codeBlockButtonMessages = defineMessages({
19
19
  id: 'fabric.editor.codeBlockWrapButton.unwrapCodeBlock',
20
20
  defaultMessage: 'Turn off wrap',
21
21
  description: 'Wrap the content of the code block'
22
+ },
23
+ selectLanguage: {
24
+ id: 'fabric.editor.selectLanguage',
25
+ defaultMessage: 'Select language',
26
+ description: 'Code blocks display software code. A prompt to select the software language the code is written in.'
22
27
  }
23
28
  });
@@ -4,5 +4,10 @@ export const messages = defineMessages({
4
4
  id: 'fabric.editor.editDateText',
5
5
  defaultMessage: 'Edit Date',
6
6
  description: 'Title for the input that changes the date'
7
+ },
8
+ invalidDateError: {
9
+ id: 'fabric.editor.invalidDateError',
10
+ defaultMessage: 'Enter a valid date',
11
+ description: 'Error message when the date typed in is invalid, requesting they inputs a new date'
7
12
  }
8
13
  });
@@ -0,0 +1,73 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const findReplaceMessages = defineMessages({
3
+ find: {
4
+ id: 'fabric.editor.find',
5
+ defaultMessage: 'Find',
6
+ description: 'The word or phrase to search for on the document'
7
+ },
8
+ matchCase: {
9
+ id: 'fabric.editor.matchCase',
10
+ defaultMessage: 'Match case',
11
+ description: 'Toggle whether should also match case when searching for text'
12
+ },
13
+ findNext: {
14
+ id: 'fabric.editor.findNext',
15
+ defaultMessage: 'Find next',
16
+ description: 'Locate the next occurrence of the word or phrase that was searched for'
17
+ },
18
+ findPrevious: {
19
+ id: 'fabric.editor.findPrevious',
20
+ defaultMessage: 'Find previous',
21
+ description: 'Locate the previous occurrence of the word or phrase that was searched for'
22
+ },
23
+ closeFindReplaceDialog: {
24
+ id: 'fabric.editor.closeFindReplaceDialog',
25
+ defaultMessage: 'Close',
26
+ description: 'Cancel search and close the "Find and Replace" dialog'
27
+ },
28
+ noResultsFound: {
29
+ id: 'fabric.editor.noResultsFound',
30
+ defaultMessage: 'No results',
31
+ description: 'No matches were found for the word or phrase that was searched for'
32
+ },
33
+ resultsCount: {
34
+ id: 'fabric.editor.resultsCount',
35
+ description: 'Text for selected search match position and total results count',
36
+ defaultMessage: '{selectedMatchPosition} of {totalResultsCount}'
37
+ },
38
+ findReplaceToolbarButton: {
39
+ id: 'fabric.editor.findReplaceToolbarButton',
40
+ defaultMessage: 'Find and replace',
41
+ description: '"Find" highlights all instances of a word or phrase on the document, and "Replace" changes one or all of those instances to something else'
42
+ },
43
+ replaceWith: {
44
+ id: 'fabric.editor.replaceWith',
45
+ defaultMessage: 'Replace with',
46
+ description: 'The value that will replace the word or phrase that was searched for'
47
+ },
48
+ replace: {
49
+ id: 'fabric.editor.replace',
50
+ defaultMessage: 'Replace',
51
+ description: 'Replace only the currently selected instance of the word or phrase'
52
+ },
53
+ replaceAll: {
54
+ id: 'fabric.editor.replaceAll',
55
+ defaultMessage: 'Replace all',
56
+ description: 'Replace all instances of the word or phrase throughout the entire document'
57
+ },
58
+ replaceSuccess: {
59
+ id: 'fabric.editor.replaceSuccess',
60
+ defaultMessage: '{numberOfMatches} {matchPluralSingularNoun} replaced',
61
+ description: 'Text when replacement succesfully done'
62
+ },
63
+ matchSingularNoun: {
64
+ id: 'fabric.editor.match.singular',
65
+ defaultMessage: 'match',
66
+ description: 'Singular "Match" noun'
67
+ },
68
+ matchPluralNoun: {
69
+ id: 'fabric.editor.match.plural',
70
+ defaultMessage: 'matches',
71
+ description: 'Plural "Match" noun'
72
+ }
73
+ });
@@ -0,0 +1,74 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const helpDialogMessages = defineMessages({
3
+ editorHelp: {
4
+ id: 'fabric.editor.editorHelp',
5
+ defaultMessage: 'Editor help',
6
+ description: 'Title of editor help dialog.'
7
+ },
8
+ helpDialogTips: {
9
+ id: 'fabric.editor.helpDialogTips',
10
+ defaultMessage: 'Press {keyMap} to quickly open this dialog at any time',
11
+ description: 'Hint about how to open a dialog quickly using a shortcut.'
12
+ },
13
+ keyboardShortcuts: {
14
+ id: 'fabric.editor.keyboardShortcuts',
15
+ defaultMessage: 'Keyboard shortcuts',
16
+ description: ''
17
+ },
18
+ markdown: {
19
+ id: 'fabric.editor.markdown',
20
+ defaultMessage: 'Markdown',
21
+ description: 'It is a name of popular markup language.'
22
+ },
23
+ pastePlainText: {
24
+ id: 'fabric.editor.pastePlainText',
25
+ defaultMessage: 'Paste plain text',
26
+ description: ''
27
+ },
28
+ CheckUncheckActionItem: {
29
+ id: 'fabric.editor.checkUncheckActionItem',
30
+ defaultMessage: 'Toggle action item',
31
+ description: 'For Check/Uncheck Action item use shortcut'
32
+ },
33
+ altText: {
34
+ id: 'fabric.editor.altText',
35
+ defaultMessage: 'Alt text',
36
+ description: 'Alternative text for image.'
37
+ },
38
+ selectTableRow: {
39
+ id: 'fabric.editor.selectTableRow',
40
+ defaultMessage: 'Select table row',
41
+ description: 'Hint for selecting a table row using a shortcut'
42
+ },
43
+ selectTableColumn: {
44
+ id: 'fabric.editor.selectTableColumn',
45
+ defaultMessage: 'Select table column',
46
+ description: 'Hint for selecting a table column using a shortcut'
47
+ },
48
+ increaseSize: {
49
+ id: 'fabric.editor.increaseSize',
50
+ defaultMessage: 'Increase size',
51
+ description: 'The text is shown as an shortcut description in help dialog modal, when the user uses the described shortcut, he is able to increase the width of the selected element. Optimal characters less than 21.'
52
+ },
53
+ decreaseSize: {
54
+ id: 'fabric.editor.decreaseSize',
55
+ defaultMessage: 'Decrease size',
56
+ description: 'The text is shown as an shortcut description in help dialog modal, when the user uses the described shortcut, he is able to decrease the width of the selected element. Optimal characters less than 21.'
57
+ },
58
+ focusTableResizeHandle: {
59
+ id: 'fabric.editor.focusTableResizeHandle',
60
+ defaultMessage: 'Focus table resize handle',
61
+ description: 'Focus table resize handle'
62
+ },
63
+ closeHelpDialog: {
64
+ id: 'fabric.editor.closeHelpDialog',
65
+ defaultMessage: 'Close help dialog',
66
+ description: ''
67
+ },
68
+ // TODO: Move it inside quick insert plugin
69
+ quickInsert: {
70
+ id: 'fabric.editor.quickInsert',
71
+ defaultMessage: 'Quick insert',
72
+ description: 'Name of a feature, which let you insert items quickly.'
73
+ }
74
+ });
@@ -1,4 +1,3 @@
1
- // Common Translations will live here
2
1
  import { defineMessages } from 'react-intl-next';
3
2
  export const messages = defineMessages({
4
3
  indent: {
@@ -19,6 +19,15 @@ export { messages as statusMessages } from './status';
19
19
  export { messages as dateMessages } from './date';
20
20
  export { toolbarMessages as layoutMessages } from './layout';
21
21
  export { messages as indentationMessages } from './indentation';
22
+ export { avatarGroupMessages } from './avatar-group';
23
+ export { findReplaceMessages } from './find-replace';
24
+ export { textColorMessages } from './text-color';
25
+ export { tasksAndDecisionsMessages } from './tasks-and-decsisions';
26
+ export { placeholderTextMessages } from './placeholder-text';
27
+ export { pasteOptionsToolbarMessages } from './paste-options-toolbar';
28
+ export { panelMessages } from './panel';
29
+ export { mentionMessages } from './mentions';
30
+ export { helpDialogMessages } from './help-dialog';
22
31
  export default defineMessages({
23
32
  layoutFixedWidth: {
24
33
  id: 'fabric.editor.layoutFixedWidth',
@@ -0,0 +1,23 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const mentionMessages = defineMessages({
3
+ inviteItemTitle: {
4
+ id: 'fabric.editor.inviteItem.title',
5
+ defaultMessage: '{userRole, select, admin {Invite} trusted {Invite} other {Add}} teammate to {productName}',
6
+ description: 'Title of the invite teammate item in typeahead plugin'
7
+ },
8
+ mentionsAddLabel: {
9
+ id: 'fabric.editor.mentionsAddLabel',
10
+ defaultMessage: 'add-icon',
11
+ description: 'icon label to describe adding a new mention'
12
+ },
13
+ mentionsIconLabel: {
14
+ id: 'fabric.editor.mentionsIconLabel',
15
+ defaultMessage: 'Mention',
16
+ description: 'icon label to describe the mention icon'
17
+ },
18
+ mentionsNodeLabel: {
19
+ id: 'fabric.editor.mentionNode.label',
20
+ defaultMessage: 'Tagged user',
21
+ description: 'Label to indicate mention node to Screen reader users, that preceeds with user name ex: "Tagged user @XXX'
22
+ }
23
+ });
@@ -0,0 +1,38 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const panelMessages = defineMessages({
3
+ info: {
4
+ id: 'fabric.editor.info',
5
+ defaultMessage: 'Info',
6
+ description: 'Panels provide a way to highlight text. The info panel has a blue background.'
7
+ },
8
+ note: {
9
+ id: 'fabric.editor.note',
10
+ defaultMessage: 'Note',
11
+ description: 'Panels provide a way to highlight text. The note panel has a purple background.'
12
+ },
13
+ success: {
14
+ id: 'fabric.editor.success',
15
+ defaultMessage: 'Success',
16
+ description: 'Panels provide a way to highlight text. The success panel has a green background.'
17
+ },
18
+ warning: {
19
+ id: 'fabric.editor.warning',
20
+ defaultMessage: 'Warning',
21
+ description: 'Panels provide a way to highlight text. The warning panel has a yellow background.'
22
+ },
23
+ error: {
24
+ id: 'fabric.editor.error',
25
+ defaultMessage: 'Error',
26
+ description: 'Panels provide a way to highlight text. The error panel has a red background.'
27
+ },
28
+ emoji: {
29
+ id: 'fabric.editor.panel.emoji',
30
+ defaultMessage: 'Add emoji',
31
+ description: 'Select the panel icon'
32
+ },
33
+ backgroundColor: {
34
+ id: 'fabric.editor.panel.backgroundColor',
35
+ defaultMessage: 'Background color',
36
+ description: 'Select the panel background color.'
37
+ }
38
+ });
@@ -0,0 +1,23 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const pasteOptionsToolbarMessages = defineMessages({
3
+ pasteOptions: {
4
+ id: 'fabric.editor.pasteOptions',
5
+ defaultMessage: 'Paste options floating controls',
6
+ description: 'Opens a menu with additional paste options'
7
+ },
8
+ plainText: {
9
+ id: 'fabric.editor.plainText',
10
+ defaultMessage: 'Use plain text',
11
+ description: 'Converts pasted text into plain text'
12
+ },
13
+ markdown: {
14
+ id: 'fabric.editor.useMarkdown',
15
+ defaultMessage: 'Use Markdown',
16
+ description: 'Converts pasted text into Markdown'
17
+ },
18
+ richText: {
19
+ id: 'fabric.editor.richText',
20
+ defaultMessage: 'Use rich text',
21
+ description: 'Converts pasted text into Rich text'
22
+ }
23
+ });
@@ -0,0 +1,8 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const placeholderTextMessages = defineMessages({
3
+ placeholderTextPlaceholder: {
4
+ id: 'fabric.editor.placeholderTextPlaceholder',
5
+ defaultMessage: 'Add placeholder text',
6
+ description: ''
7
+ }
8
+ });
@@ -0,0 +1,13 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const tasksAndDecisionsMessages = defineMessages({
3
+ taskPlaceholder: {
4
+ id: 'fabric.editor.taskPlaceholder',
5
+ defaultMessage: "Type your action, use '@' to assign to someone.",
6
+ description: 'Placeholder description for an empty action/task in the editor'
7
+ },
8
+ decisionPlaceholder: {
9
+ id: 'fabric.editor.decisionPlaceholder',
10
+ defaultMessage: 'Add a decision…',
11
+ description: 'Placeholder description for an empty decision in the editor'
12
+ }
13
+ });
@@ -0,0 +1,8 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const textColorMessages = defineMessages({
3
+ textColor: {
4
+ id: 'fabric.editor.textColor',
5
+ defaultMessage: 'Text color',
6
+ description: ''
7
+ }
8
+ });
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "77.2.5";
3
+ const packageVersion = "77.3.1";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -1,2 +1,3 @@
1
1
  export { IconAction, IconCode, IconDate, IconDecision, IconDivider, IconEmoji, IconImages, IconLayout, IconLink, IconListNumber, IconList, IconMention, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanel, IconQuote, IconStatus, IconHeading, IconFeedback, IconExpand, IconCustomPanel, IconFallback, IconDatasourceJiraIssue, IconDatasourceAssetsObjects, IconLoom } from './assets';
2
- export { memoProcessQuickInsertItems, find } from './utils';
2
+ export { memoProcessQuickInsertItems, find } from './utils';
3
+ export { messages } from './messages';
@@ -0,0 +1,63 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const messages = defineMessages({
3
+ help: {
4
+ id: 'fabric.editor.elementBrowser.help',
5
+ defaultMessage: 'Help',
6
+ description: 'Element browser help button label'
7
+ },
8
+ all: {
9
+ id: 'fabric.editor.elementbrowser.categorylist.category-all',
10
+ defaultMessage: 'All',
11
+ description: 'all'
12
+ },
13
+ formatting: {
14
+ id: 'fabric.editor.elementbrowser.categorylist.category-formatting',
15
+ defaultMessage: 'Formatting',
16
+ description: 'formatting'
17
+ },
18
+ 'confluence-content': {
19
+ id: 'fabric.editor.elementbrowser.categorylist.category-confluence-content',
20
+ defaultMessage: 'Confluence content',
21
+ description: 'confluence-content'
22
+ },
23
+ media: {
24
+ id: 'fabric.editor.elementbrowser.categorylist.category-media',
25
+ defaultMessage: 'Media',
26
+ description: 'media'
27
+ },
28
+ visuals: {
29
+ id: 'fabric.editor.elementbrowser.categorylist.category-visuals',
30
+ defaultMessage: 'Visuals & images',
31
+ description: 'visuals'
32
+ },
33
+ navigation: {
34
+ id: 'fabric.editor.elementbrowser.categorylist.category-navigation',
35
+ defaultMessage: 'Navigation',
36
+ description: 'navigation'
37
+ },
38
+ 'external-content': {
39
+ id: 'fabric.editor.elementbrowser.categorylist.category-external-content',
40
+ defaultMessage: 'External content',
41
+ description: 'external-content'
42
+ },
43
+ communication: {
44
+ id: 'fabric.editor.elementbrowser.categorylist.category-communication',
45
+ defaultMessage: 'Communication',
46
+ description: 'communication'
47
+ },
48
+ reporting: {
49
+ id: 'fabric.editor.elementbrowser.categorylist.category-reporting',
50
+ defaultMessage: 'Reporting',
51
+ description: 'reporting'
52
+ },
53
+ admin: {
54
+ id: 'fabric.editor.elementbrowser.categorylist.category-admin',
55
+ defaultMessage: 'Administration',
56
+ description: 'admin'
57
+ },
58
+ development: {
59
+ id: 'fabric.editor.elementbrowser.categorylist.category-development',
60
+ defaultMessage: 'Development',
61
+ description: 'development'
62
+ }
63
+ });
@@ -1,3 +1,4 @@
1
+ import { uuid } from '@atlaskit/adf-schema';
1
2
  import { Slice } from '@atlaskit/editor-prosemirror/model';
2
3
  import { mapFragment } from '../utils/slice';
3
4
 
@@ -48,6 +49,15 @@ export const transformSliceToRemoveOpenMultiBodiedExtension = (slice, schema) =>
48
49
  return node.content;
49
50
  }
50
51
  }
52
+ if (node.type === multiBodiedExtension) {
53
+ var _node$attrs$parameter, _node$attrs$parameter2, _node$attrs$parameter3;
54
+ /* While pasting on the same page, macroId does not change until the page is published and causes collision with the existing macroId
55
+ * where switching tabs of one node changes the tabs for the other node, so we put a random macroId at paste to avoid collision
56
+ */
57
+ if ((_node$attrs$parameter = node.attrs.parameters) !== null && _node$attrs$parameter !== void 0 && (_node$attrs$parameter2 = _node$attrs$parameter.macroMetadata) !== null && _node$attrs$parameter2 !== void 0 && (_node$attrs$parameter3 = _node$attrs$parameter2.macroId) !== null && _node$attrs$parameter3 !== void 0 && _node$attrs$parameter3.value) {
58
+ node.attrs.parameters.macroMetadata.macroId.value = uuid.generate();
59
+ }
60
+ }
51
61
  return node;
52
62
  });
53
63
 
@@ -11,4 +11,5 @@ export let SelectItemMode = /*#__PURE__*/function (SelectItemMode) {
11
11
  SelectItemMode["SELECTED"] = "selected";
12
12
  SelectItemMode["TAB"] = "tab";
13
13
  return SelectItemMode;
14
- }({});
14
+ }({});
15
+ export { typeAheadListMessages } from './messages';