@atlaskit/editor-common 111.13.0 → 111.14.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 +14 -0
- package/dist/cjs/ai-messages/ai.js +1 -1
- package/dist/cjs/block-menu/messages.js +1 -1
- package/dist/cjs/element-browser/messages.js +3 -3
- package/dist/cjs/extensions/messages.js +9 -9
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/messages.js +7 -7
- package/dist/cjs/link/LinkSearch/listItemAlts.js +6 -6
- package/dist/cjs/lists/messages.js +2 -2
- package/dist/cjs/media/messages/altText.js +4 -4
- package/dist/cjs/media/messages/externalMedia.js +1 -1
- package/dist/cjs/media/messages/imageBorder.js +6 -6
- package/dist/cjs/media/messages/pixelEntry.js +3 -3
- package/dist/cjs/messages/block-controls.js +5 -5
- package/dist/cjs/messages/block-type.js +8 -8
- package/dist/cjs/messages/breakout.js +1 -1
- package/dist/cjs/messages/card.js +1 -1
- package/dist/cjs/messages/context-panel.js +1 -1
- package/dist/cjs/messages/help-dialog.js +9 -9
- package/dist/cjs/messages/index.js +16 -16
- package/dist/cjs/messages/insert-block.js +44 -44
- package/dist/cjs/messages/layout.js +3 -3
- package/dist/cjs/messages/link-toolbar.js +8 -8
- package/dist/cjs/messages/link.js +1 -1
- package/dist/cjs/messages/list.js +2 -2
- package/dist/cjs/messages/media-editing.js +7 -7
- package/dist/cjs/messages/panel.js +2 -2
- package/dist/cjs/messages/placeholder-text.js +1 -1
- package/dist/cjs/messages/selection-extension.js +1 -1
- package/dist/cjs/messages/table.js +11 -11
- package/dist/cjs/messages/unsupportedContent.js +3 -3
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/quick-insert/messages.js +17 -17
- package/dist/cjs/type-ahead/messages.js +4 -4
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Expand/index.js +2 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/paletteMessages.js +24 -24
- package/dist/cjs/ui-color/ColorPalette/Palettes/paletteMessagesTokenModeNames.js +84 -84
- package/dist/cjs/vanilla-tooltip/index.js +180 -0
- package/dist/es2019/ai-messages/ai.js +1 -1
- package/dist/es2019/block-menu/messages.js +1 -1
- package/dist/es2019/element-browser/messages.js +3 -3
- package/dist/es2019/extensions/messages.js +9 -9
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/messages.js +7 -7
- package/dist/es2019/link/LinkSearch/listItemAlts.js +6 -6
- package/dist/es2019/lists/messages.js +2 -2
- package/dist/es2019/media/messages/altText.js +4 -4
- package/dist/es2019/media/messages/externalMedia.js +1 -1
- package/dist/es2019/media/messages/imageBorder.js +6 -6
- package/dist/es2019/media/messages/pixelEntry.js +3 -3
- package/dist/es2019/messages/block-controls.js +5 -5
- package/dist/es2019/messages/block-type.js +8 -8
- package/dist/es2019/messages/breakout.js +1 -1
- package/dist/es2019/messages/card.js +1 -1
- package/dist/es2019/messages/context-panel.js +1 -1
- package/dist/es2019/messages/help-dialog.js +9 -9
- package/dist/es2019/messages/index.js +16 -16
- package/dist/es2019/messages/insert-block.js +44 -44
- package/dist/es2019/messages/layout.js +3 -3
- package/dist/es2019/messages/link-toolbar.js +8 -8
- package/dist/es2019/messages/link.js +1 -1
- package/dist/es2019/messages/list.js +2 -2
- package/dist/es2019/messages/media-editing.js +7 -7
- package/dist/es2019/messages/panel.js +2 -2
- package/dist/es2019/messages/placeholder-text.js +1 -1
- package/dist/es2019/messages/selection-extension.js +1 -1
- package/dist/es2019/messages/table.js +11 -11
- package/dist/es2019/messages/unsupportedContent.js +3 -3
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/quick-insert/messages.js +17 -17
- package/dist/es2019/type-ahead/messages.js +4 -4
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Expand/index.js +2 -2
- package/dist/es2019/ui-color/ColorPalette/Palettes/paletteMessages.js +24 -24
- package/dist/es2019/ui-color/ColorPalette/Palettes/paletteMessagesTokenModeNames.js +84 -84
- package/dist/es2019/vanilla-tooltip/index.js +148 -0
- package/dist/esm/ai-messages/ai.js +1 -1
- package/dist/esm/block-menu/messages.js +1 -1
- package/dist/esm/element-browser/messages.js +3 -3
- package/dist/esm/extensions/messages.js +9 -9
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/messages.js +7 -7
- package/dist/esm/link/LinkSearch/listItemAlts.js +6 -6
- package/dist/esm/lists/messages.js +2 -2
- package/dist/esm/media/messages/altText.js +4 -4
- package/dist/esm/media/messages/externalMedia.js +1 -1
- package/dist/esm/media/messages/imageBorder.js +6 -6
- package/dist/esm/media/messages/pixelEntry.js +3 -3
- package/dist/esm/messages/block-controls.js +5 -5
- package/dist/esm/messages/block-type.js +8 -8
- package/dist/esm/messages/breakout.js +1 -1
- package/dist/esm/messages/card.js +1 -1
- package/dist/esm/messages/context-panel.js +1 -1
- package/dist/esm/messages/help-dialog.js +9 -9
- package/dist/esm/messages/index.js +16 -16
- package/dist/esm/messages/insert-block.js +44 -44
- package/dist/esm/messages/layout.js +3 -3
- package/dist/esm/messages/link-toolbar.js +8 -8
- package/dist/esm/messages/link.js +1 -1
- package/dist/esm/messages/list.js +2 -2
- package/dist/esm/messages/media-editing.js +7 -7
- package/dist/esm/messages/panel.js +2 -2
- package/dist/esm/messages/placeholder-text.js +1 -1
- package/dist/esm/messages/selection-extension.js +1 -1
- package/dist/esm/messages/table.js +11 -11
- package/dist/esm/messages/unsupportedContent.js +3 -3
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/quick-insert/messages.js +17 -17
- package/dist/esm/type-ahead/messages.js +4 -4
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Expand/index.js +2 -2
- package/dist/esm/ui-color/ColorPalette/Palettes/paletteMessages.js +24 -24
- package/dist/esm/ui-color/ColorPalette/Palettes/paletteMessagesTokenModeNames.js +84 -84
- package/dist/esm/vanilla-tooltip/index.js +173 -0
- package/dist/types/analytics/types/insert-events.d.ts +1 -1
- package/dist/types/messages/table.d.ts +2 -2
- package/dist/types/vanilla-tooltip/index.d.ts +29 -0
- package/dist/types-ts4.5/analytics/types/insert-events.d.ts +1 -1
- package/dist/types-ts4.5/messages/table.d.ts +2 -2
- package/dist/types-ts4.5/vanilla-tooltip/index.d.ts +29 -0
- package/package.json +2 -1
- package/vanilla-tooltip/package.json +17 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import { createPopper } from '@popperjs/core';
|
|
3
|
+
import { bind } from 'bind-event-listener';
|
|
4
|
+
const startingOffset = {
|
|
5
|
+
name: 'offset',
|
|
6
|
+
options: {
|
|
7
|
+
offset: [0, 4]
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
const endingOffset = {
|
|
11
|
+
name: 'offset',
|
|
12
|
+
options: {
|
|
13
|
+
offset: [0, 8]
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* A tooltip component similar to "@atlaskit/tooltip" but built for vanilla scenarios
|
|
19
|
+
*
|
|
20
|
+
* Uses Popover API for accessibility + stacking context: https://developer.mozilla.org/en-US/docs/Web/API/Popover_API
|
|
21
|
+
* Uses popperJS for positioning
|
|
22
|
+
*/
|
|
23
|
+
export class VanillaTooltip {
|
|
24
|
+
constructor(button, content,
|
|
25
|
+
/**
|
|
26
|
+
* Id associated to the tooltip - must be unique.
|
|
27
|
+
*/
|
|
28
|
+
id,
|
|
29
|
+
/**
|
|
30
|
+
* Class Name – used for styling.
|
|
31
|
+
*/
|
|
32
|
+
className, timeout = 300) {
|
|
33
|
+
_defineProperty(this, "listeners", []);
|
|
34
|
+
_defineProperty(this, "shouldHidePopover", false);
|
|
35
|
+
_defineProperty(this, "isDisplayed", false);
|
|
36
|
+
this.button = button;
|
|
37
|
+
this.timeout = timeout;
|
|
38
|
+
const tooltip = document.createElement('span');
|
|
39
|
+
tooltip.role = 'tooltip';
|
|
40
|
+
tooltip.popover = 'hint';
|
|
41
|
+
tooltip.className = className;
|
|
42
|
+
tooltip.id = id;
|
|
43
|
+
tooltip.textContent = content;
|
|
44
|
+
this.tooltip = tooltip;
|
|
45
|
+
|
|
46
|
+
// Button preparation
|
|
47
|
+
button.appendChild(tooltip);
|
|
48
|
+
// Prepare the button to have the popover target and accessibility properties
|
|
49
|
+
button.setAttribute('popovertarget', tooltip.id);
|
|
50
|
+
button.setAttribute('aria-describedby', tooltip.id);
|
|
51
|
+
const showEvents = ['mouseenter', 'focus'];
|
|
52
|
+
const hideEvents = ['mouseleave', 'blur'];
|
|
53
|
+
showEvents.forEach(event => {
|
|
54
|
+
this.listeners.push(bind(button, {
|
|
55
|
+
type: event,
|
|
56
|
+
listener: () => this.show()
|
|
57
|
+
}));
|
|
58
|
+
});
|
|
59
|
+
hideEvents.forEach(event => {
|
|
60
|
+
this.listeners.push(bind(button, {
|
|
61
|
+
type: event,
|
|
62
|
+
listener: () => this.hide()
|
|
63
|
+
}));
|
|
64
|
+
});
|
|
65
|
+
this.listeners.push(bind(window, {
|
|
66
|
+
type: 'keydown',
|
|
67
|
+
listener: e => {
|
|
68
|
+
if (e.key === 'Escape') {
|
|
69
|
+
this.hide(true);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}));
|
|
73
|
+
|
|
74
|
+
// Hide the tooltip if the hide transition has completed
|
|
75
|
+
this.tooltip.ontransitionend = () => {
|
|
76
|
+
if (this.shouldHidePopover) {
|
|
77
|
+
this.tooltip.hidePopover();
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
createPopperInstance() {
|
|
82
|
+
this.popperInstance = createPopper(this.button, this.tooltip, {
|
|
83
|
+
placement: 'top',
|
|
84
|
+
modifiers: [startingOffset]
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
destroy() {
|
|
88
|
+
var _this$popperInstance;
|
|
89
|
+
(_this$popperInstance = this.popperInstance) === null || _this$popperInstance === void 0 ? void 0 : _this$popperInstance.destroy();
|
|
90
|
+
this.listeners.forEach(listener => {
|
|
91
|
+
listener();
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
hide(immediate = false) {
|
|
95
|
+
clearTimeout(this.currentTimeoutId);
|
|
96
|
+
this.shouldHidePopover = true;
|
|
97
|
+
// Disable the event listeners
|
|
98
|
+
this.currentTimeoutId = setTimeout(() => {
|
|
99
|
+
var _this$popperInstance2;
|
|
100
|
+
(_this$popperInstance2 = this.popperInstance) === null || _this$popperInstance2 === void 0 ? void 0 : _this$popperInstance2.setOptions(options => ({
|
|
101
|
+
...options,
|
|
102
|
+
modifiers: [startingOffset, {
|
|
103
|
+
name: 'eventListeners',
|
|
104
|
+
enabled: false
|
|
105
|
+
}]
|
|
106
|
+
}));
|
|
107
|
+
this.tooltip.style.opacity = '0';
|
|
108
|
+
this.isDisplayed = false;
|
|
109
|
+
// If transition animations are disabled immediately hide the popover
|
|
110
|
+
if (this.tooltip.style.transition === 'none') {
|
|
111
|
+
this.tooltip.hidePopover();
|
|
112
|
+
}
|
|
113
|
+
}, immediate ? 0 : this.timeout);
|
|
114
|
+
}
|
|
115
|
+
show() {
|
|
116
|
+
if (this.isDisplayed) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
clearTimeout(this.currentTimeoutId);
|
|
120
|
+
this.shouldHidePopover = false;
|
|
121
|
+
|
|
122
|
+
// Make the tooltip visible - but hide until
|
|
123
|
+
this.tooltip.style.visibility = 'hidden';
|
|
124
|
+
this.tooltip.showPopover();
|
|
125
|
+
|
|
126
|
+
// Update its position
|
|
127
|
+
if (!this.popperInstance) {
|
|
128
|
+
this.createPopperInstance();
|
|
129
|
+
} else {
|
|
130
|
+
this.popperInstance.update();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Enable the event listeners
|
|
134
|
+
this.currentTimeoutId = setTimeout(() => {
|
|
135
|
+
var _this$popperInstance3;
|
|
136
|
+
this.tooltip.style.opacity = '1';
|
|
137
|
+
this.tooltip.style.visibility = 'visible';
|
|
138
|
+
(_this$popperInstance3 = this.popperInstance) === null || _this$popperInstance3 === void 0 ? void 0 : _this$popperInstance3.setOptions(options => ({
|
|
139
|
+
...options,
|
|
140
|
+
modifiers: [endingOffset, {
|
|
141
|
+
name: 'eventListeners',
|
|
142
|
+
enabled: true
|
|
143
|
+
}]
|
|
144
|
+
}));
|
|
145
|
+
this.isDisplayed = true;
|
|
146
|
+
}, this.timeout);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -183,7 +183,7 @@ export var aiMessages = defineMessages({
|
|
|
183
183
|
summarizePageTitle: {
|
|
184
184
|
id: 'fabric.editor.ai.ai-panels.summarizePageTitle',
|
|
185
185
|
defaultMessage: "Page summary panel (Beta)",
|
|
186
|
-
description: '
|
|
186
|
+
description: 'The text is shown as a title for the AI-powered page summary panel in the editor when the user accesses the summarize page feature.'
|
|
187
187
|
},
|
|
188
188
|
summarisePageDescription: {
|
|
189
189
|
id: 'fabric.editor.ai.ai-panels.summarizePageDescription',
|
|
@@ -15,7 +15,7 @@ export var messages = defineMessages({
|
|
|
15
15
|
deleteBlock: {
|
|
16
16
|
id: 'fabric.editor.block.menu.delete.block',
|
|
17
17
|
defaultMessage: 'Delete',
|
|
18
|
-
description: '
|
|
18
|
+
description: 'The text is shown as a menu item in the block menu when the user wants to delete the currently selected block from the document.'
|
|
19
19
|
},
|
|
20
20
|
turnInto: {
|
|
21
21
|
id: 'fabric.editor.block.menu.turn.into',
|
|
@@ -3,17 +3,17 @@ export default defineMessages({
|
|
|
3
3
|
elementAfterInputMessage: {
|
|
4
4
|
id: 'fabric.editor.elementbrowser.searchbar.elementAfterInput',
|
|
5
5
|
defaultMessage: 'Enter',
|
|
6
|
-
description: '
|
|
6
|
+
description: 'The text is shown as a label after the search input in the element browser. It indicates to the user that pressing Enter will insert the selected element.'
|
|
7
7
|
},
|
|
8
8
|
placeHolderMessage: {
|
|
9
9
|
id: 'fabric.editor.elementbrowser.searchbar.placeholder',
|
|
10
10
|
defaultMessage: 'Search',
|
|
11
|
-
description: '
|
|
11
|
+
description: 'The text is shown as placeholder text inside the search input field in the element browser. It prompts the user to type a query to filter available elements.'
|
|
12
12
|
},
|
|
13
13
|
searchAriaLabel: {
|
|
14
14
|
id: 'fabric.editor.elementbrowser.searchbar.ariaLabel',
|
|
15
15
|
defaultMessage: 'Search',
|
|
16
|
-
description: '
|
|
16
|
+
description: 'The text is used as an aria-label for the search input field in the element browser. It provides an accessible name for screen readers to identify the search field.'
|
|
17
17
|
},
|
|
18
18
|
assistiveTextDefault: {
|
|
19
19
|
id: 'fabric.editor.elementbrowser.searchbar.assistive.text.default',
|
|
@@ -3,7 +3,7 @@ export var messages = defineMessages({
|
|
|
3
3
|
edit: {
|
|
4
4
|
id: 'fabric.editor.edit',
|
|
5
5
|
defaultMessage: 'Edit',
|
|
6
|
-
description: '
|
|
6
|
+
description: 'The text is shown as a button label in the extension context menu. Triggers opening the properties editor for the selected extension to modify its configuration.'
|
|
7
7
|
},
|
|
8
8
|
deleteElementTitle: {
|
|
9
9
|
id: 'fabric.editor.extension.deleteElementTitle',
|
|
@@ -28,22 +28,22 @@ export var messages = defineMessages({
|
|
|
28
28
|
confirmModalCheckboxLabel: {
|
|
29
29
|
id: 'fabric.editor.floatingToolbar.confirmModalCheckboxLabel',
|
|
30
30
|
defaultMessage: 'Also delete connected elements',
|
|
31
|
-
description: 'checkbox
|
|
31
|
+
description: 'Label for a checkbox in a confirm modal that allows the user to also delete connected elements when deleting an extension.'
|
|
32
32
|
},
|
|
33
33
|
saveIndicator: {
|
|
34
34
|
id: 'fabric.editor.extensions.config-panel.save-indicator',
|
|
35
35
|
defaultMessage: 'All changes are always autosaved',
|
|
36
|
-
description: '
|
|
36
|
+
description: 'Informational message displayed in the extension configuration panel to reassure users that their changes are being saved automatically without requiring manual save action.'
|
|
37
37
|
},
|
|
38
38
|
panelLoadingError: {
|
|
39
39
|
id: 'fabric.editor.extensions.config-panel.loading-error.non-final',
|
|
40
40
|
defaultMessage: 'We ran into a bit of trouble. Refresh to try again.',
|
|
41
|
-
description: 'Error message when loading the
|
|
41
|
+
description: 'Error message displayed when the extension configuration panel fails to load. Instructs users to refresh the page to attempt loading the panel again.'
|
|
42
42
|
},
|
|
43
43
|
extensionLoadingError: {
|
|
44
44
|
id: 'fabric.editor.extension.loading-error',
|
|
45
45
|
defaultMessage: 'Error loading the extension!',
|
|
46
|
-
description: 'Error message when
|
|
46
|
+
description: 'Error message displayed when an extension fails to load in the editor. Indicates a problem occurred during the extension initialization or rendering process.'
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
export var configPanelMessages = defineMessages({
|
|
@@ -55,17 +55,17 @@ export var configPanelMessages = defineMessages({
|
|
|
55
55
|
submit: {
|
|
56
56
|
id: 'fabric.editor.configPanel.submit',
|
|
57
57
|
defaultMessage: 'Submit',
|
|
58
|
-
description: '
|
|
58
|
+
description: 'Label for a button in the extension configuration panel that the user clicks to submit and apply configuration changes.'
|
|
59
59
|
},
|
|
60
60
|
cancel: {
|
|
61
61
|
id: 'fabric.editor.configPanel.cancel',
|
|
62
62
|
defaultMessage: 'Cancel',
|
|
63
|
-
description: '
|
|
63
|
+
description: 'Label for a button in the extension configuration panel that the user clicks to cancel and discard configuration changes.'
|
|
64
64
|
},
|
|
65
65
|
close: {
|
|
66
66
|
id: 'fabric.editor.configPanel.close',
|
|
67
67
|
defaultMessage: 'Close',
|
|
68
|
-
description: '
|
|
68
|
+
description: 'Label for a button in the extension configuration panel that the user clicks to close the panel.'
|
|
69
69
|
},
|
|
70
70
|
required: {
|
|
71
71
|
id: 'fabric.editor.configPanel.required',
|
|
@@ -80,7 +80,7 @@ export var configPanelMessages = defineMessages({
|
|
|
80
80
|
isMultipleAndRadio: {
|
|
81
81
|
id: 'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio',
|
|
82
82
|
defaultMessage: 'Can not combine isMultiple with style: radio',
|
|
83
|
-
description: '
|
|
83
|
+
description: 'Error message displayed in the extension configuration panel when isMultiple and radio style options are incorrectly combined.'
|
|
84
84
|
},
|
|
85
85
|
addField: {
|
|
86
86
|
id: 'fabric.editor.configPanel.formType.addField',
|
|
@@ -85,7 +85,7 @@ export var messages = defineMessages({
|
|
|
85
85
|
displayText: {
|
|
86
86
|
id: 'fabric.editor.displayText',
|
|
87
87
|
defaultMessage: 'Text to display',
|
|
88
|
-
description: '
|
|
88
|
+
description: 'Label for the text input field in the hyperlink toolbar where users enter the display text for a link.'
|
|
89
89
|
},
|
|
90
90
|
clearText: {
|
|
91
91
|
id: 'fabric.editor.clearLinkText',
|
|
@@ -3,36 +3,36 @@ export var utilMessages = defineMessages({
|
|
|
3
3
|
hyperlinkIconIssueLabel: {
|
|
4
4
|
id: 'fabric.editor.headingLink.hyperlinkIconIssueLabel',
|
|
5
5
|
defaultMessage: 'Issue',
|
|
6
|
-
description: '
|
|
6
|
+
description: 'Accessible label for the Jira issue icon displayed in the hyperlink add toolbar when users search for or insert a link to a Jira issue.'
|
|
7
7
|
},
|
|
8
8
|
hyperlinkIconBugLabel: {
|
|
9
9
|
id: 'fabric.editor.headingLink.hyperlinkIconBugLabel',
|
|
10
10
|
defaultMessage: 'Bug',
|
|
11
|
-
description: '
|
|
11
|
+
description: 'Accessible label for the Jira bug icon displayed in the hyperlink add toolbar when users search for or insert a link to a Jira bug.'
|
|
12
12
|
},
|
|
13
13
|
hyperlinkIconStoryLabel: {
|
|
14
14
|
id: 'fabric.editor.headingLink.hyperlinkIconStoryLabel',
|
|
15
15
|
defaultMessage: 'Story',
|
|
16
|
-
description: '
|
|
16
|
+
description: 'Accessible label for the Jira story icon displayed in the hyperlink add toolbar when users search for or insert a link to a Jira story.'
|
|
17
17
|
},
|
|
18
18
|
hyperlinkIconTaskLabel: {
|
|
19
19
|
id: 'fabric.editor.headingLink.hyperlinkIconTaskLabel',
|
|
20
20
|
defaultMessage: 'Task',
|
|
21
|
-
description: '
|
|
21
|
+
description: 'Accessible label for the Jira task icon displayed in the hyperlink add toolbar when users search for or insert a link to a Jira task.'
|
|
22
22
|
},
|
|
23
23
|
hyperlinkIconPageLabel: {
|
|
24
24
|
id: 'fabric.editor.headingLink.hyperlinkIconPageLabel',
|
|
25
25
|
defaultMessage: 'Page',
|
|
26
|
-
description: 'icon label
|
|
26
|
+
description: 'The text is shown as an icon label in the hyperlink toolbar to identify Confluence pages. Displayed next to the page icon when users are linking to Confluence pages in the editor.'
|
|
27
27
|
},
|
|
28
28
|
hyperlinkIconBlogLabel: {
|
|
29
29
|
id: 'fabric.editor.headingLink.hyperlinkIconBlogLabel',
|
|
30
30
|
defaultMessage: 'Blog',
|
|
31
|
-
description: 'icon label
|
|
31
|
+
description: 'The text is shown as an icon label in the hyperlink toolbar to identify Confluence blog posts. Displayed next to the blog icon when users are linking to Confluence blogs in the editor.'
|
|
32
32
|
},
|
|
33
33
|
hyperlinkIconIssueLabelIssueTermRefresh: {
|
|
34
34
|
id: 'fabric.editor.headingLink.hyperlinkIconIssueLabel.issue-term-refresh',
|
|
35
35
|
defaultMessage: 'Work Item',
|
|
36
|
-
description: '
|
|
36
|
+
description: 'Accessible label for the Jira issue icon displayed in the hyperlink add toolbar when users search for or insert a link to a Jira work item. This is the refreshed terminology used instead of "Issue".'
|
|
37
37
|
}
|
|
38
38
|
});
|
|
@@ -3,32 +3,32 @@ var messages = defineMessages({
|
|
|
3
3
|
story: {
|
|
4
4
|
id: 'fabric.editor.story',
|
|
5
5
|
defaultMessage: 'Story',
|
|
6
|
-
description: 'Alt text for Story'
|
|
6
|
+
description: 'Alt text for the issue type icon displayed in link search results when the linked item is a Story issue type.'
|
|
7
7
|
},
|
|
8
8
|
epic: {
|
|
9
9
|
id: 'fabric.editor.epic',
|
|
10
10
|
defaultMessage: 'Epic',
|
|
11
|
-
description: 'Alt text for Epic'
|
|
11
|
+
description: 'Alt text for the issue type icon displayed in link search results when the linked item is an Epic issue type.'
|
|
12
12
|
},
|
|
13
13
|
task: {
|
|
14
14
|
id: 'fabric.editor.task',
|
|
15
15
|
defaultMessage: 'Task',
|
|
16
|
-
description: 'Alt text for Task'
|
|
16
|
+
description: 'Alt text for the issue type icon displayed in link search results when the linked item is a Task issue type.'
|
|
17
17
|
},
|
|
18
18
|
bug: {
|
|
19
19
|
id: 'fabric.editor.bug',
|
|
20
20
|
defaultMessage: 'Bug',
|
|
21
|
-
description: 'Alt text for Bug'
|
|
21
|
+
description: 'Alt text for the issue type icon displayed in link search results when the linked item is a Bug issue type.'
|
|
22
22
|
},
|
|
23
23
|
subTask: {
|
|
24
24
|
id: 'fabric.editor.subTask',
|
|
25
25
|
defaultMessage: 'Sub-task',
|
|
26
|
-
description: 'Alt text for Sub-task'
|
|
26
|
+
description: 'Alt text for the issue type icon displayed in link search results when the linked item is a Sub-task issue type.'
|
|
27
27
|
},
|
|
28
28
|
improvement: {
|
|
29
29
|
id: 'fabric.editor.improvement',
|
|
30
30
|
defaultMessage: 'Improvement',
|
|
31
|
-
description: 'Alt text for Improvement'
|
|
31
|
+
description: 'Alt text for the issue type icon displayed in link search results when the linked item is an Improvement issue type.'
|
|
32
32
|
},
|
|
33
33
|
defaultAltText: {
|
|
34
34
|
id: 'fabric.editor.defaultAltText',
|
|
@@ -9,7 +9,7 @@ export var messages = defineMessages({
|
|
|
9
9
|
unorderedListDescription: {
|
|
10
10
|
id: 'fabric.editor.unorderedList.description',
|
|
11
11
|
defaultMessage: 'Create an unordered list',
|
|
12
|
-
description: ''
|
|
12
|
+
description: 'The text is shown as a description for the bullet list option in the quick insert menu when the user searches for list formatting options.'
|
|
13
13
|
},
|
|
14
14
|
orderedList: {
|
|
15
15
|
id: 'fabric.editor.orderedList',
|
|
@@ -19,7 +19,7 @@ export var messages = defineMessages({
|
|
|
19
19
|
orderedListDescription: {
|
|
20
20
|
id: 'fabric.editor.orderedList.description',
|
|
21
21
|
defaultMessage: 'Create an ordered list',
|
|
22
|
-
description: ''
|
|
22
|
+
description: 'The text is shown as a description for the numbered list option in the quick insert menu when the user searches for list formatting options.'
|
|
23
23
|
},
|
|
24
24
|
lists: {
|
|
25
25
|
id: 'fabric.editor.lists',
|
|
@@ -18,22 +18,22 @@ export var altTextMessages = defineMessages({
|
|
|
18
18
|
back: {
|
|
19
19
|
id: 'fabric.editor.closeAltTextEdit',
|
|
20
20
|
defaultMessage: 'Back',
|
|
21
|
-
description: '
|
|
21
|
+
description: 'The text is shown on a button in the alt text editing toolbar for an image. When clicked, it closes the alt text editor and navigates the user back to the main media toolbar.'
|
|
22
22
|
},
|
|
23
23
|
clear: {
|
|
24
24
|
id: 'fabric.editor.clearAltTextEdit',
|
|
25
25
|
defaultMessage: 'Clear alt text',
|
|
26
|
-
description: '
|
|
26
|
+
description: 'The text is shown on a button in the alt text editing toolbar for an image. When clicked, it clears the current alt text value from the input field.'
|
|
27
27
|
},
|
|
28
28
|
placeholder: {
|
|
29
29
|
id: 'fabric.editor.placeholderAltText',
|
|
30
30
|
defaultMessage: 'Describe this image with alt text',
|
|
31
|
-
description: '
|
|
31
|
+
description: 'The text is shown as placeholder text inside the alt text input field for an image. It prompts the user to enter a description of the image for accessibility purposes.'
|
|
32
32
|
},
|
|
33
33
|
supportText: {
|
|
34
34
|
id: 'fabric.editor.supportAltText',
|
|
35
35
|
defaultMessage: 'Alt text is useful for people using screen readers because of visual limitations.',
|
|
36
|
-
description: '
|
|
36
|
+
description: 'The text is shown as a help message below the alt text input field for an image. It informs users why providing alt text is important for accessibility and screen reader support.'
|
|
37
37
|
},
|
|
38
38
|
validationMessage: {
|
|
39
39
|
id: 'fabric.editor.alttext.validation',
|
|
@@ -3,6 +3,6 @@ export var externalMediaMessages = defineMessages({
|
|
|
3
3
|
externalMediaFile: {
|
|
4
4
|
id: 'fabric.editor.externalMediaFile',
|
|
5
5
|
defaultMessage: 'External media file',
|
|
6
|
-
description: '
|
|
6
|
+
description: 'Displayed as a tooltip and accessibility label for an info icon badge when an externally hosted media file is shown in the editor.'
|
|
7
7
|
}
|
|
8
8
|
});
|
|
@@ -23,31 +23,31 @@ export var imageBorderMessages = defineMessages({
|
|
|
23
23
|
addBorder: {
|
|
24
24
|
id: 'fabric.editor.addImageBorder',
|
|
25
25
|
defaultMessage: 'Add border',
|
|
26
|
-
description: '
|
|
26
|
+
description: 'Label shown on a button in the image border options toolbar to add a border around the selected image.'
|
|
27
27
|
},
|
|
28
28
|
removeBorder: {
|
|
29
29
|
id: 'fabric.editor.removeImageBorder',
|
|
30
30
|
defaultMessage: 'Remove border',
|
|
31
|
-
description: '
|
|
31
|
+
description: 'The text is shown as a button label in the image toolbar. Removes any border that was previously applied to the selected image.'
|
|
32
32
|
},
|
|
33
33
|
borderOptions: {
|
|
34
34
|
id: 'fabric.editor.imageBorderOptions',
|
|
35
35
|
defaultMessage: 'Border options',
|
|
36
|
-
description: '
|
|
36
|
+
description: 'The text is shown as a panel or menu header. Provides users access to customize image borders including size and color options.'
|
|
37
37
|
},
|
|
38
38
|
borderSizeSubtle: {
|
|
39
39
|
id: 'fabric.editor.imageBorderSubtle',
|
|
40
40
|
defaultMessage: 'Subtle',
|
|
41
|
-
description: '
|
|
41
|
+
description: 'Label shown as a drop-down item in the image border size selector to apply a thin, subtle border around the image.'
|
|
42
42
|
},
|
|
43
43
|
borderSizeMedium: {
|
|
44
44
|
id: 'fabric.editor.imageBorderMedium',
|
|
45
45
|
defaultMessage: 'Medium',
|
|
46
|
-
description: '
|
|
46
|
+
description: 'Label shown as a drop-down item in the image border size selector to apply a medium-weight border around the image.'
|
|
47
47
|
},
|
|
48
48
|
borderSizeBold: {
|
|
49
49
|
id: 'fabric.editor.imageBorderBold',
|
|
50
50
|
defaultMessage: 'Bold',
|
|
51
|
-
description: '
|
|
51
|
+
description: 'Label shown as a drop-down item in the image border size selector to apply a thick, bold border around the image.'
|
|
52
52
|
}
|
|
53
53
|
});
|
|
@@ -13,12 +13,12 @@ export var pixelEntryMessages = defineMessages({
|
|
|
13
13
|
inputWidthAriaLabel: {
|
|
14
14
|
id: 'fabric.editor.media.pixelEntry.inputWidthAriaLabel',
|
|
15
15
|
defaultMessage: 'Max width {maxWidth}px',
|
|
16
|
-
description: '
|
|
16
|
+
description: 'Aria label for the width input field used for media pixel entry. The placeholder {maxWidth} will be substituted with the maximum allowed width value in pixels.'
|
|
17
17
|
},
|
|
18
18
|
inputWidthLabel: {
|
|
19
19
|
id: 'fabric.editor.media.pixelEntry.inputWidthLabel',
|
|
20
20
|
defaultMessage: 'Width',
|
|
21
|
-
description: '
|
|
21
|
+
description: 'Label for the width input field in the media resize panel. Users enter a numeric value representing the desired width in pixels for the image.'
|
|
22
22
|
},
|
|
23
23
|
inputHeightTooltip: {
|
|
24
24
|
id: 'fabric.editor.media.pixelEntry.inputHeightTooltip',
|
|
@@ -28,7 +28,7 @@ export var pixelEntryMessages = defineMessages({
|
|
|
28
28
|
inputHeightAriaLabel: {
|
|
29
29
|
id: 'fabric.editor.media.pixelEntry.inputHeightAriaLabel',
|
|
30
30
|
defaultMessage: 'height input',
|
|
31
|
-
description: '
|
|
31
|
+
description: 'Aria label for the height input field used for media pixel entry to inform screen readers about the purpose of the input.'
|
|
32
32
|
},
|
|
33
33
|
submitButtonText: {
|
|
34
34
|
id: 'fabric.editor.media.pixelEntry.submitButtonText',
|
|
@@ -23,12 +23,12 @@ export var messages = defineMessages({
|
|
|
23
23
|
moveUp: {
|
|
24
24
|
id: 'fabric.editor.blockControlMoveUp',
|
|
25
25
|
defaultMessage: 'Move up',
|
|
26
|
-
description: '
|
|
26
|
+
description: 'Label for a button in the block controls menu that moves the selected content block up in the editor.'
|
|
27
27
|
},
|
|
28
28
|
moveDown: {
|
|
29
29
|
id: 'fabric.editor.blockControlMoveDown',
|
|
30
30
|
defaultMessage: 'Move down',
|
|
31
|
-
description: '
|
|
31
|
+
description: 'Label for a button in the block controls menu that moves the selected content block down in the editor.'
|
|
32
32
|
},
|
|
33
33
|
movedup: {
|
|
34
34
|
id: 'fabric.editor.blockControlMovedUp',
|
|
@@ -43,16 +43,16 @@ export var messages = defineMessages({
|
|
|
43
43
|
moveLeft: {
|
|
44
44
|
id: 'fabric.editor.blockControlMoveLeft',
|
|
45
45
|
defaultMessage: 'Move left',
|
|
46
|
-
description: '
|
|
46
|
+
description: 'Label for a button in the block controls menu that moves the selected content block to the left.'
|
|
47
47
|
},
|
|
48
48
|
moveRight: {
|
|
49
49
|
id: 'fabric.editor.blockControlMoveRight',
|
|
50
50
|
defaultMessage: 'Move right',
|
|
51
|
-
description: '
|
|
51
|
+
description: 'Label for a button in the block controls menu that moves the selected content block to the right.'
|
|
52
52
|
},
|
|
53
53
|
delete: {
|
|
54
54
|
id: 'fabric.editor.blockControlDelete',
|
|
55
55
|
defaultMessage: 'Delete',
|
|
56
|
-
description: '
|
|
56
|
+
description: 'Label for a button in the block controls menu that deletes the currently selected content block from the editor.'
|
|
57
57
|
}
|
|
58
58
|
});
|
|
@@ -33,7 +33,7 @@ export var messages = defineMessages({
|
|
|
33
33
|
heading3Description: {
|
|
34
34
|
id: 'fabric.editor.heading3Description',
|
|
35
35
|
defaultMessage: 'Use this for sub sections and group headings',
|
|
36
|
-
description: ''
|
|
36
|
+
description: 'Description text shown in the block type menu to help users understand when to use Heading 3 for sub sections and group headings in the editor.'
|
|
37
37
|
},
|
|
38
38
|
heading4: {
|
|
39
39
|
id: 'fabric.editor.heading4',
|
|
@@ -43,7 +43,7 @@ export var messages = defineMessages({
|
|
|
43
43
|
heading4Description: {
|
|
44
44
|
id: 'fabric.editor.heading4Description',
|
|
45
45
|
defaultMessage: 'Use this for deep headings',
|
|
46
|
-
description: ''
|
|
46
|
+
description: 'Description text shown in the block type menu to help users understand when to use Heading 4 for deep headings in the editor.'
|
|
47
47
|
},
|
|
48
48
|
heading5: {
|
|
49
49
|
id: 'fabric.editor.heading5',
|
|
@@ -53,7 +53,7 @@ export var messages = defineMessages({
|
|
|
53
53
|
heading5Description: {
|
|
54
54
|
id: 'fabric.editor.heading5Description',
|
|
55
55
|
defaultMessage: 'Use this for grouping list items',
|
|
56
|
-
description: ''
|
|
56
|
+
description: 'Description text shown in the block type menu to help users understand when to use Heading 5 for grouping list items in the editor.'
|
|
57
57
|
},
|
|
58
58
|
heading6: {
|
|
59
59
|
id: 'fabric.editor.heading6',
|
|
@@ -63,17 +63,17 @@ export var messages = defineMessages({
|
|
|
63
63
|
heading6Description: {
|
|
64
64
|
id: 'fabric.editor.heading6Description',
|
|
65
65
|
defaultMessage: 'Use this for low level headings',
|
|
66
|
-
description: ''
|
|
66
|
+
description: 'Description text shown in the block type menu to help users understand when to use Heading 6 for low level headings in the editor.'
|
|
67
67
|
},
|
|
68
68
|
blockquote: {
|
|
69
69
|
id: 'fabric.editor.blockquote2',
|
|
70
70
|
defaultMessage: 'Quote',
|
|
71
|
-
description: '
|
|
71
|
+
description: 'Label shown as a menu item in the block type dropdown to insert a blockquote for quoting text in the editor.'
|
|
72
72
|
},
|
|
73
73
|
blockquoteDescription: {
|
|
74
74
|
id: 'fabric.editor.blockquote.description',
|
|
75
75
|
defaultMessage: 'Insert a quote or citation',
|
|
76
|
-
description: '
|
|
76
|
+
description: 'Description text shown in the block type menu to help users understand the blockquote option for inserting a quote or citation in the editor.'
|
|
77
77
|
},
|
|
78
78
|
codeblock: {
|
|
79
79
|
id: 'fabric.editor.codeblock',
|
|
@@ -83,7 +83,7 @@ export var messages = defineMessages({
|
|
|
83
83
|
codeblockDescription: {
|
|
84
84
|
id: 'fabric.editor.codeblock.description',
|
|
85
85
|
defaultMessage: 'Display code with syntax highlighting',
|
|
86
|
-
description: '
|
|
86
|
+
description: 'Menu description shown in the quick insert menu. Explains that selecting this option inserts a code block with syntax highlighting support.'
|
|
87
87
|
},
|
|
88
88
|
infoPanel: {
|
|
89
89
|
id: 'fabric.editor.infoPanel',
|
|
@@ -168,6 +168,6 @@ export var messages = defineMessages({
|
|
|
168
168
|
other: {
|
|
169
169
|
id: 'fabric.editor.other',
|
|
170
170
|
defaultMessage: 'Others...',
|
|
171
|
-
description: '
|
|
171
|
+
description: 'Label shown as a menu item in the block type dropdown to access additional text formatting options in the editor.'
|
|
172
172
|
}
|
|
173
173
|
});
|
|
@@ -18,7 +18,7 @@ export var messages = defineMessages({
|
|
|
18
18
|
resizeHandle: {
|
|
19
19
|
id: 'fabric.editor.resizeHandle',
|
|
20
20
|
defaultMessage: 'Resize handle',
|
|
21
|
-
description: '
|
|
21
|
+
description: 'Label for the resize handle element displayed on content blocks in the editor, used to allow users to drag and resize the width of the element.'
|
|
22
22
|
},
|
|
23
23
|
resizeExpand: {
|
|
24
24
|
id: 'fabric.editor.breakout.resizeExpand',
|
|
@@ -28,7 +28,7 @@ export var messages = defineMessages({
|
|
|
28
28
|
card: {
|
|
29
29
|
id: 'fabric.editor.cardFloatingControls',
|
|
30
30
|
defaultMessage: 'Card options',
|
|
31
|
-
description: '
|
|
31
|
+
description: 'The text is shown as a title for the floating toolbar when a user selects an inline card or smart link in the editor, providing options to change the card display type.'
|
|
32
32
|
},
|
|
33
33
|
blockCardUnavailable: {
|
|
34
34
|
id: 'fabric.editor.blockCardUnavailable',
|
|
@@ -3,7 +3,7 @@ export var contextPanelMessages = defineMessages({
|
|
|
3
3
|
panelLabel: {
|
|
4
4
|
id: 'fabric.editor.contextPanel.panelLabel',
|
|
5
5
|
defaultMessage: 'Context panel',
|
|
6
|
-
description: '
|
|
6
|
+
description: 'Accessibility label for the context panel dialog in the editor. Used as an aria-label to identify the panel for screen reader users.'
|
|
7
7
|
},
|
|
8
8
|
panelContentLabel: {
|
|
9
9
|
id: 'fabric.editor.contextPanel.panelContentLabel',
|