@atlaskit/editor-common 77.2.5 → 77.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/cjs/emoji.js +10 -1
- package/dist/cjs/extensions/index.js +14 -1
- package/dist/cjs/extensions/messages.js +141 -0
- package/dist/cjs/extensions.js +12 -0
- package/dist/cjs/floating-toolbar/index.js +10 -1
- package/dist/cjs/floating-toolbar/messages.js +54 -0
- package/dist/cjs/lists/index.js +8 -1
- package/dist/cjs/lists/messages.js +36 -0
- package/dist/cjs/media/index.js +68 -0
- package/dist/cjs/media/messages/altText.js +44 -0
- package/dist/cjs/media/messages/caption.js +14 -0
- package/dist/cjs/media/messages/dropPlaceholder.js +14 -0
- package/dist/cjs/media/messages/imageBorder.js +49 -0
- package/dist/cjs/media/messages/mediaLinkingToolbar.js +14 -0
- package/dist/cjs/media/messages/mediaResizeAnnouncerMess.js +34 -0
- package/dist/cjs/media/messages/nodeviews.js +14 -0
- package/dist/cjs/media/messages/pixelEntry.js +54 -0
- package/dist/cjs/media/messages/toolbarMedia.js +14 -0
- package/dist/cjs/messages/alignment.js +5 -0
- package/dist/cjs/messages/avatar-group.js +14 -0
- package/dist/cjs/messages/codeBlockButton.js +5 -0
- package/dist/cjs/messages/date.js +5 -0
- package/dist/cjs/messages/find-replace.js +79 -0
- package/dist/cjs/messages/help-dialog.js +80 -0
- package/dist/cjs/messages/indentation.js +0 -2
- package/dist/cjs/messages/index.js +63 -0
- package/dist/cjs/messages/mentions.js +29 -0
- package/dist/cjs/messages/panel.js +44 -0
- package/dist/cjs/messages/paste-options-toolbar.js +29 -0
- package/dist/cjs/messages/placeholder-text.js +14 -0
- package/dist/cjs/messages/tasks-and-decsisions.js +19 -0
- package/dist/cjs/messages/text-color.js +14 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/quick-insert/index.js +8 -1
- package/dist/cjs/quick-insert/messages.js +69 -0
- package/dist/cjs/transforms/extension.js +10 -0
- package/dist/cjs/type-ahead/index.js +7 -0
- package/dist/cjs/type-ahead/messages.js +79 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/emoji.js +9 -1
- package/dist/es2019/extensions/index.js +2 -1
- package/dist/es2019/extensions/messages.js +135 -0
- package/dist/es2019/extensions.js +1 -1
- package/dist/es2019/floating-toolbar/index.js +2 -1
- package/dist/es2019/floating-toolbar/messages.js +48 -0
- package/dist/es2019/lists/index.js +2 -1
- package/dist/es2019/lists/messages.js +29 -0
- package/dist/es2019/media/index.js +9 -0
- package/dist/es2019/media/messages/altText.js +38 -0
- package/dist/es2019/media/messages/caption.js +8 -0
- package/dist/es2019/media/messages/dropPlaceholder.js +8 -0
- package/dist/es2019/media/messages/imageBorder.js +43 -0
- package/dist/es2019/media/messages/mediaLinkingToolbar.js +8 -0
- package/dist/es2019/media/messages/mediaResizeAnnouncerMess.js +28 -0
- package/dist/es2019/media/messages/nodeviews.js +8 -0
- package/dist/es2019/media/messages/pixelEntry.js +48 -0
- package/dist/es2019/media/messages/toolbarMedia.js +8 -0
- package/dist/es2019/messages/alignment.js +5 -0
- package/dist/es2019/messages/avatar-group.js +8 -0
- package/dist/es2019/messages/codeBlockButton.js +5 -0
- package/dist/es2019/messages/date.js +5 -0
- package/dist/es2019/messages/find-replace.js +73 -0
- package/dist/es2019/messages/help-dialog.js +74 -0
- package/dist/es2019/messages/indentation.js +0 -1
- package/dist/es2019/messages/index.js +9 -0
- package/dist/es2019/messages/mentions.js +23 -0
- package/dist/es2019/messages/panel.js +38 -0
- package/dist/es2019/messages/paste-options-toolbar.js +23 -0
- package/dist/es2019/messages/placeholder-text.js +8 -0
- package/dist/es2019/messages/tasks-and-decsisions.js +13 -0
- package/dist/es2019/messages/text-color.js +8 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/quick-insert/index.js +2 -1
- package/dist/es2019/quick-insert/messages.js +63 -0
- package/dist/es2019/transforms/extension.js +10 -0
- package/dist/es2019/type-ahead/index.js +2 -1
- package/dist/es2019/type-ahead/messages.js +73 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/emoji.js +9 -1
- package/dist/esm/extensions/index.js +2 -1
- package/dist/esm/extensions/messages.js +135 -0
- package/dist/esm/extensions.js +1 -1
- package/dist/esm/floating-toolbar/index.js +2 -1
- package/dist/esm/floating-toolbar/messages.js +48 -0
- package/dist/esm/lists/index.js +2 -1
- package/dist/esm/lists/messages.js +29 -0
- package/dist/esm/media/index.js +9 -0
- package/dist/esm/media/messages/altText.js +38 -0
- package/dist/esm/media/messages/caption.js +8 -0
- package/dist/esm/media/messages/dropPlaceholder.js +8 -0
- package/dist/esm/media/messages/imageBorder.js +43 -0
- package/dist/esm/media/messages/mediaLinkingToolbar.js +8 -0
- package/dist/esm/media/messages/mediaResizeAnnouncerMess.js +28 -0
- package/dist/esm/media/messages/nodeviews.js +8 -0
- package/dist/esm/media/messages/pixelEntry.js +48 -0
- package/dist/esm/media/messages/toolbarMedia.js +8 -0
- package/dist/esm/messages/alignment.js +5 -0
- package/dist/esm/messages/avatar-group.js +8 -0
- package/dist/esm/messages/codeBlockButton.js +5 -0
- package/dist/esm/messages/date.js +5 -0
- package/dist/esm/messages/find-replace.js +73 -0
- package/dist/esm/messages/help-dialog.js +74 -0
- package/dist/esm/messages/indentation.js +0 -1
- package/dist/esm/messages/index.js +9 -0
- package/dist/esm/messages/mentions.js +23 -0
- package/dist/esm/messages/panel.js +38 -0
- package/dist/esm/messages/paste-options-toolbar.js +23 -0
- package/dist/esm/messages/placeholder-text.js +8 -0
- package/dist/esm/messages/tasks-and-decsisions.js +13 -0
- package/dist/esm/messages/text-color.js +8 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/quick-insert/index.js +2 -1
- package/dist/esm/quick-insert/messages.js +63 -0
- package/dist/esm/transforms/extension.js +10 -0
- package/dist/esm/type-ahead/index.js +2 -1
- package/dist/esm/type-ahead/messages.js +73 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/emoji.d.ts +7 -0
- package/dist/types/extensions/index.d.ts +1 -0
- package/dist/types/extensions/messages.d.ts +134 -0
- package/dist/types/extensions.d.ts +1 -1
- package/dist/types/floating-toolbar/index.d.ts +1 -0
- package/dist/types/floating-toolbar/messages.d.ts +48 -0
- package/dist/types/lists/index.d.ts +1 -0
- package/dist/types/lists/messages.d.ts +27 -0
- package/dist/types/media/index.d.ts +9 -0
- package/dist/types/media/messages/altText.d.ts +37 -0
- package/dist/types/media/messages/caption.d.ts +7 -0
- package/dist/types/media/messages/dropPlaceholder.d.ts +7 -0
- package/dist/types/media/messages/imageBorder.d.ts +42 -0
- package/dist/types/media/messages/mediaLinkingToolbar.d.ts +7 -0
- package/dist/types/media/messages/mediaResizeAnnouncerMess.d.ts +27 -0
- package/dist/types/media/messages/nodeviews.d.ts +7 -0
- package/dist/types/media/messages/pixelEntry.d.ts +47 -0
- package/dist/types/media/messages/toolbarMedia.d.ts +7 -0
- package/dist/types/messages/alignment.d.ts +5 -0
- package/dist/types/messages/avatar-group.d.ts +7 -0
- package/dist/types/messages/codeBlockButton.d.ts +5 -0
- package/dist/types/messages/date.d.ts +5 -0
- package/dist/types/messages/find-replace.d.ts +72 -0
- package/dist/types/messages/help-dialog.d.ts +72 -0
- package/dist/types/messages/index.d.ts +9 -0
- package/dist/types/messages/mentions.d.ts +22 -0
- package/dist/types/messages/panel.d.ts +37 -0
- package/dist/types/messages/paste-options-toolbar.d.ts +22 -0
- package/dist/types/messages/placeholder-text.d.ts +7 -0
- package/dist/types/messages/tasks-and-decsisions.d.ts +12 -0
- package/dist/types/messages/text-color.d.ts +7 -0
- package/dist/types/quick-insert/index.d.ts +1 -0
- package/dist/types/quick-insert/messages.d.ts +62 -0
- package/dist/types/type-ahead/index.d.ts +1 -0
- package/dist/types/type-ahead/messages.d.ts +72 -0
- package/dist/types-ts4.5/emoji.d.ts +7 -0
- package/dist/types-ts4.5/extensions/index.d.ts +1 -0
- package/dist/types-ts4.5/extensions/messages.d.ts +134 -0
- package/dist/types-ts4.5/extensions.d.ts +1 -1
- package/dist/types-ts4.5/floating-toolbar/index.d.ts +1 -0
- package/dist/types-ts4.5/floating-toolbar/messages.d.ts +48 -0
- package/dist/types-ts4.5/lists/index.d.ts +1 -0
- package/dist/types-ts4.5/lists/messages.d.ts +27 -0
- package/dist/types-ts4.5/media/index.d.ts +9 -0
- package/dist/types-ts4.5/media/messages/altText.d.ts +37 -0
- package/dist/types-ts4.5/media/messages/caption.d.ts +7 -0
- package/dist/types-ts4.5/media/messages/dropPlaceholder.d.ts +7 -0
- package/dist/types-ts4.5/media/messages/imageBorder.d.ts +42 -0
- package/dist/types-ts4.5/media/messages/mediaLinkingToolbar.d.ts +7 -0
- package/dist/types-ts4.5/media/messages/mediaResizeAnnouncerMess.d.ts +27 -0
- package/dist/types-ts4.5/media/messages/nodeviews.d.ts +7 -0
- package/dist/types-ts4.5/media/messages/pixelEntry.d.ts +47 -0
- package/dist/types-ts4.5/media/messages/toolbarMedia.d.ts +7 -0
- package/dist/types-ts4.5/messages/alignment.d.ts +5 -0
- package/dist/types-ts4.5/messages/avatar-group.d.ts +7 -0
- package/dist/types-ts4.5/messages/codeBlockButton.d.ts +5 -0
- package/dist/types-ts4.5/messages/date.d.ts +5 -0
- package/dist/types-ts4.5/messages/find-replace.d.ts +72 -0
- package/dist/types-ts4.5/messages/help-dialog.d.ts +72 -0
- package/dist/types-ts4.5/messages/index.d.ts +9 -0
- package/dist/types-ts4.5/messages/mentions.d.ts +22 -0
- package/dist/types-ts4.5/messages/panel.d.ts +37 -0
- package/dist/types-ts4.5/messages/paste-options-toolbar.d.ts +22 -0
- package/dist/types-ts4.5/messages/placeholder-text.d.ts +7 -0
- package/dist/types-ts4.5/messages/tasks-and-decsisions.d.ts +12 -0
- package/dist/types-ts4.5/messages/text-color.d.ts +7 -0
- package/dist/types-ts4.5/quick-insert/index.d.ts +1 -0
- package/dist/types-ts4.5/quick-insert/messages.d.ts +62 -0
- package/dist/types-ts4.5/type-ahead/index.d.ts +1 -0
- package/dist/types-ts4.5/type-ahead/messages.d.ts +72 -0
- package/media/package.json +15 -0
- package/package.json +2 -1
- package/tsconfig.json +3 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl-next';
|
|
2
|
+
export default defineMessages({
|
|
3
|
+
confirmModalDefaultHeading: {
|
|
4
|
+
id: 'fabric.editor.floatingToolbar.confirmModalHeading',
|
|
5
|
+
defaultMessage: 'Are you sure?',
|
|
6
|
+
description: 'Default heading of floating toolbar confirmation modal.'
|
|
7
|
+
},
|
|
8
|
+
confirmModalOK: {
|
|
9
|
+
id: 'fabric.editor.floatingToolbar.confirmModalOK',
|
|
10
|
+
defaultMessage: 'OK',
|
|
11
|
+
description: 'OK button for floating toolbar confirmation modal.'
|
|
12
|
+
},
|
|
13
|
+
confirmModalCancel: {
|
|
14
|
+
id: 'fabric.editor.floatingToolbar.confirmModalCancel',
|
|
15
|
+
defaultMessage: 'Cancel',
|
|
16
|
+
description: 'Cancel button for floating toolbar confirmation modal.'
|
|
17
|
+
},
|
|
18
|
+
confirmModalListUnit: {
|
|
19
|
+
id: 'fabric.editor.floatingToolbar.confirmModalConnectedUnit',
|
|
20
|
+
defaultMessage: '{name}{amount, plural, =0 {} one { (+1 connected element)} other { (+# connected elements)}}',
|
|
21
|
+
description: 'Text displayed in confirmation modal which highlights the nodes and the amount of connected nodes that will be deleted'
|
|
22
|
+
},
|
|
23
|
+
confirmDeleteLinkedModalMessage: {
|
|
24
|
+
id: 'fabric.editor.extension.confirmDeleteLinkedModalMessage',
|
|
25
|
+
defaultMessage: 'Deleting {nodeName} will break anything connected to it.',
|
|
26
|
+
description: 'Message for confirm modal when deleting a extension linked to an data consumer.'
|
|
27
|
+
},
|
|
28
|
+
floatingToolbarAriaLabel: {
|
|
29
|
+
id: 'fabric.editor.floatingToolbar.floatingToolbarAriaLabel',
|
|
30
|
+
defaultMessage: 'Floating Toolbar',
|
|
31
|
+
description: "a floating toolbar's aria label"
|
|
32
|
+
},
|
|
33
|
+
floatingToolbarAnnouncer: {
|
|
34
|
+
id: 'fabric.editor.floatingToolbar.floatingToolbarAnnouncer',
|
|
35
|
+
defaultMessage: 'Floating toolbar controls have been opened',
|
|
36
|
+
description: 'message that will be announced to screenreaders that the floating toolbar is opened'
|
|
37
|
+
},
|
|
38
|
+
floatingToolbarScrollLeft: {
|
|
39
|
+
id: 'fabric.editor.floatingToolbar.scrollLeft',
|
|
40
|
+
defaultMessage: 'Scroll left',
|
|
41
|
+
description: 'Button to scroll left when the toolbar is in the overflow state'
|
|
42
|
+
},
|
|
43
|
+
floatingToolbarScrollRight: {
|
|
44
|
+
id: 'fabric.editor.floatingToolbar.scrollRight',
|
|
45
|
+
defaultMessage: 'Scroll right',
|
|
46
|
+
description: 'Button to scroll right when the toolbar is in the overflow state'
|
|
47
|
+
}
|
|
48
|
+
});
|
package/dist/esm/lists/index.js
CHANGED
|
@@ -3,4 +3,5 @@ export { moveTargetIntoList } from './replace-content';
|
|
|
3
3
|
export { JoinDirection, isListNodeValidContent, joinSiblingLists } from './node';
|
|
4
4
|
export { getCommonListAnalyticsAttributes, countListItemsInSelection } from './analytics';
|
|
5
5
|
export { hasValidListIndentationLevel } from './indentation';
|
|
6
|
-
export { isListNode, isListItemNode, isBulletList, isParagraphNode } from '../utils';
|
|
6
|
+
export { isListNode, isListItemNode, isBulletList, isParagraphNode } from '../utils';
|
|
7
|
+
export { messages } from './messages';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Common Translations will live here
|
|
2
|
+
import { defineMessages } from 'react-intl-next';
|
|
3
|
+
export var messages = defineMessages({
|
|
4
|
+
unorderedList: {
|
|
5
|
+
id: 'fabric.editor.unorderedList',
|
|
6
|
+
defaultMessage: 'Bullet list',
|
|
7
|
+
description: 'A list with bullets. Also known as an “unordered” list'
|
|
8
|
+
},
|
|
9
|
+
unorderedListDescription: {
|
|
10
|
+
id: 'fabric.editor.unorderedList.description',
|
|
11
|
+
defaultMessage: 'Create an unordered list',
|
|
12
|
+
description: ''
|
|
13
|
+
},
|
|
14
|
+
orderedList: {
|
|
15
|
+
id: 'fabric.editor.orderedList',
|
|
16
|
+
defaultMessage: 'Numbered list',
|
|
17
|
+
description: 'A list with ordered items 1… 2… 3…'
|
|
18
|
+
},
|
|
19
|
+
orderedListDescription: {
|
|
20
|
+
id: 'fabric.editor.orderedList.description',
|
|
21
|
+
defaultMessage: 'Create an ordered list',
|
|
22
|
+
description: ''
|
|
23
|
+
},
|
|
24
|
+
lists: {
|
|
25
|
+
id: 'fabric.editor.lists',
|
|
26
|
+
defaultMessage: 'Lists',
|
|
27
|
+
description: 'Menu shows ordered/bullet list and unordered/numbered lists'
|
|
28
|
+
}
|
|
29
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { mediaLinkToolbarMessages } from './messages/mediaLinkingToolbar';
|
|
2
|
+
export { imageBorderMessages } from './messages/imageBorder';
|
|
3
|
+
export { nodeViewsMessages } from './messages/nodeviews';
|
|
4
|
+
export { pixelEntryMessages } from './messages/pixelEntry';
|
|
5
|
+
export { toolbarMediaMessages } from './messages/toolbarMedia';
|
|
6
|
+
export { captionMessages } from './messages/caption';
|
|
7
|
+
export { dropPlaceholderMessages } from './messages/dropPlaceholder';
|
|
8
|
+
export { altTextMessages } from './messages/altText';
|
|
9
|
+
export { mediaResizeAnnouncerMessMessages } from './messages/mediaResizeAnnouncerMess';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl-next';
|
|
2
|
+
export var altTextMessages = defineMessages({
|
|
3
|
+
altText: {
|
|
4
|
+
id: 'fabric.editor.addAltText',
|
|
5
|
+
defaultMessage: 'Alt text',
|
|
6
|
+
description: 'Add an alt text for this image'
|
|
7
|
+
},
|
|
8
|
+
editAltText: {
|
|
9
|
+
id: 'fabric.editor.editAltText',
|
|
10
|
+
defaultMessage: 'Edit alt text',
|
|
11
|
+
description: 'Edit an alt text for this image'
|
|
12
|
+
},
|
|
13
|
+
back: {
|
|
14
|
+
id: 'fabric.editor.closeAltTextEdit',
|
|
15
|
+
defaultMessage: 'Back',
|
|
16
|
+
description: 'Back to toolbar'
|
|
17
|
+
},
|
|
18
|
+
clear: {
|
|
19
|
+
id: 'fabric.editor.clearAltTextEdit',
|
|
20
|
+
defaultMessage: 'Clear alt text',
|
|
21
|
+
description: 'Clear alt text'
|
|
22
|
+
},
|
|
23
|
+
placeholder: {
|
|
24
|
+
id: 'fabric.editor.placeholderAltText',
|
|
25
|
+
defaultMessage: 'Describe this image with alt text',
|
|
26
|
+
description: 'Describe this image with alt text'
|
|
27
|
+
},
|
|
28
|
+
supportText: {
|
|
29
|
+
id: 'fabric.editor.supportAltText',
|
|
30
|
+
defaultMessage: 'Alt text is useful for people using screen readers because of visual limitations.',
|
|
31
|
+
description: 'Alt text is useful for people using screen readers because of visual limitations.'
|
|
32
|
+
},
|
|
33
|
+
validationMessage: {
|
|
34
|
+
id: 'fabric.editor.alttext.validation',
|
|
35
|
+
defaultMessage: 'Please remove any special characters in alt text.',
|
|
36
|
+
description: 'Please remove any special characters in alt text. '
|
|
37
|
+
}
|
|
38
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl-next';
|
|
2
|
+
export var 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,43 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl-next';
|
|
2
|
+
export var 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,28 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl-next';
|
|
2
|
+
export var 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,48 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl-next';
|
|
2
|
+
export var 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 var 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 var 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',
|
|
@@ -19,5 +19,10 @@ export var 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 var 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 var 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 var 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
|
+
});
|
|
@@ -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 var 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 var 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 var 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,13 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl-next';
|
|
2
|
+
export var 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
|
+
});
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "77.
|
|
9
|
+
var packageVersion = "77.3.0";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|