@atlaskit/editor-plugin-type-ahead 0.9.4 → 0.9.5

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/editor-plugin-type-ahead
2
2
 
3
+ ## 0.9.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136) [`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) - Move all plugin translations to editor-common
8
+ - Updated dependencies
9
+
3
10
  ## 0.9.4
4
11
 
5
12
  ### Patch Changes
@@ -15,7 +15,6 @@ var _typeAhead = require("@atlaskit/editor-common/type-ahead");
15
15
  var _utils = require("@atlaskit/editor-common/utils");
16
16
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
17
17
  var _constants = require("../constants");
18
- var _messages = require("../messages");
19
18
  var _utils2 = require("../utils");
20
19
  var _AssistiveText = require("./AssistiveText");
21
20
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -55,13 +54,13 @@ var isUndoRedoShortcut = function isUndoRedoShortcut(event) {
55
54
  var getAriaLabel = function getAriaLabel(triggerPrefix, intl) {
56
55
  switch (triggerPrefix) {
57
56
  case '@':
58
- return _messages.typeAheadListMessages.mentionInputLabel;
57
+ return _typeAhead.typeAheadListMessages.mentionInputLabel;
59
58
  case '/':
60
- return _messages.typeAheadListMessages.quickInsertInputLabel;
59
+ return _typeAhead.typeAheadListMessages.quickInsertInputLabel;
61
60
  case ':':
62
- return _messages.typeAheadListMessages.emojiInputLabel;
61
+ return _typeAhead.typeAheadListMessages.emojiInputLabel;
63
62
  default:
64
- return _messages.typeAheadListMessages.quickInsertInputLabel;
63
+ return _typeAhead.typeAheadListMessages.quickInsertInputLabel;
65
64
  }
66
65
  };
67
66
  var InputQuery = exports.InputQuery = /*#__PURE__*/_react.default.memo(function (_ref) {
@@ -391,8 +390,8 @@ var InputQuery = exports.InputQuery = /*#__PURE__*/_react.default.memo(function
391
390
  style: {
392
391
  display: 'none'
393
392
  }
394
- }, intl.formatMessage(getAriaLabel(triggerQueryPrefix, intl)), ",", intl.formatMessage(_messages.typeAheadListMessages.inputQueryAssistiveLabel)), (0, _react2.jsx)(_AssistiveText.AssistiveText, {
395
- assistiveText: items.length === 0 ? intl.formatMessage(_messages.typeAheadListMessages.noSearchResultsLabel, {
393
+ }, intl.formatMessage(getAriaLabel(triggerQueryPrefix, intl)), ",", intl.formatMessage(_typeAhead.typeAheadListMessages.inputQueryAssistiveLabel)), (0, _react2.jsx)(_AssistiveText.AssistiveText, {
394
+ assistiveText: items.length === 0 ? intl.formatMessage(_typeAhead.typeAheadListMessages.noSearchResultsLabel, {
396
395
  itemsLength: items.length
397
396
  }) : '',
398
397
  isInFocus: items.length === 0 || isInFocus,
@@ -17,7 +17,6 @@ var _typeAhead = require("@atlaskit/editor-common/type-ahead");
17
17
  var _menu = require("@atlaskit/menu");
18
18
  var _updateSelectedIndex = require("../commands/update-selected-index");
19
19
  var _constants = require("../constants");
20
- var _messages = require("../messages");
21
20
  var _utils = require("../utils");
22
21
  var _AssistiveText = require("./AssistiveText");
23
22
  var _TypeAheadListItem = require("./TypeAheadListItem");
@@ -31,7 +30,7 @@ var TypeaheadAssistiveTextPureComponent = /*#__PURE__*/_react.default.memo(funct
31
30
  var numberOfResults = _ref.numberOfResults;
32
31
  var intl = (0, _reactIntlNext.useIntl)();
33
32
  return (0, _react2.jsx)(_AssistiveText.AssistiveText, {
34
- assistiveText: intl.formatMessage(_messages.typeAheadListMessages.searchResultsLabel, {
33
+ assistiveText: intl.formatMessage(_typeAhead.typeAheadListMessages.searchResultsLabel, {
35
34
  itemsLength: numberOfResults
36
35
  })
37
36
  // when the popup is open its always in focus
@@ -17,7 +17,6 @@ var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
17
17
  var _menu = require("@atlaskit/menu");
18
18
  var _colors = require("@atlaskit/theme/colors");
19
19
  var _constants = require("@atlaskit/theme/constants");
20
- var _messages = require("../messages");
21
20
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6; // Disabling for ED-21403 fixing accessibility issue.
22
21
  /* eslint-disable jsx-a11y/role-supports-aria-props */
23
22
  /** @jsx jsx */
@@ -73,7 +72,7 @@ var TypeAheadListItem = exports.TypeAheadListItem = function TypeAheadListItem(_
73
72
  // Assistive text
74
73
  var intl = (0, _reactIntlNext.useIntl)();
75
74
  var descriptionText = item.description ? "".concat(item.description, ".") : '';
76
- var shortcutText = item.keyshortcut ? " ".concat(intl.formatMessage(_messages.typeAheadListMessages.shortcutLabel), " ").concat(item.keyshortcut, ".") : '';
75
+ var shortcutText = item.keyshortcut ? " ".concat(intl.formatMessage(_typeAhead.typeAheadListMessages.shortcutLabel), " ").concat(item.keyshortcut, ".") : '';
77
76
  var icon = item.icon,
78
77
  title = item.title,
79
78
  customRenderItem = item.render;
package/dist/cjs/utils.js CHANGED
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.moveSelectedIndex = exports.isTypeAheadOpen = exports.isTypeAheadHandler = exports.isTypeAheadAllowed = exports.getTypeAheadQuery = exports.getTypeAheadListAriaLabels = exports.getTypeAheadHandler = exports.getPluginState = exports.findHandlerByTrigger = exports.findHandler = void 0;
7
7
  var _typeAhead = require("@atlaskit/editor-common/type-ahead");
8
8
  var _updateSelectedIndex = require("./commands/update-selected-index");
9
- var _messages = require("./messages");
10
9
  var _key = require("./pm-plugins/key");
11
10
  var _statsModifier = require("./stats-modifier");
12
11
  var isTypeAheadHandler = exports.isTypeAheadHandler = function isTypeAheadHandler(handler) {
@@ -100,31 +99,31 @@ var getTypeAheadListAriaLabels = exports.getTypeAheadListAriaLabels = function g
100
99
  switch (trigger) {
101
100
  case '@':
102
101
  return {
103
- popupAriaLabel: intl.formatMessage(_messages.typeAheadListMessages.mentionPopupLabel),
104
- listItemAriaLabel: intl.formatMessage(_messages.typeAheadListMessages.metionListItemLabel, {
102
+ popupAriaLabel: intl.formatMessage(_typeAhead.typeAheadListMessages.mentionPopupLabel),
103
+ listItemAriaLabel: intl.formatMessage(_typeAhead.typeAheadListMessages.metionListItemLabel, {
105
104
  name: (item === null || item === void 0 || (_item$mention = item.mention) === null || _item$mention === void 0 ? void 0 : _item$mention.name) || '',
106
105
  shortName: (item === null || item === void 0 || (_item$mention2 = item.mention) === null || _item$mention2 === void 0 ? void 0 : _item$mention2.mentionName) || ''
107
106
  })
108
107
  };
109
108
  case '/':
110
109
  return {
111
- popupAriaLabel: intl.formatMessage(_messages.typeAheadListMessages.quickInsertPopupLabel),
112
- listItemAriaLabel: intl.formatMessage(_messages.typeAheadListMessages.emojiListItemLabel, {
110
+ popupAriaLabel: intl.formatMessage(_typeAhead.typeAheadListMessages.quickInsertPopupLabel),
111
+ listItemAriaLabel: intl.formatMessage(_typeAhead.typeAheadListMessages.emojiListItemLabel, {
113
112
  name: (item === null || item === void 0 ? void 0 : item.title) || '',
114
113
  shortcut: (item === null || item === void 0 || (_item$emoji = item.emoji) === null || _item$emoji === void 0 ? void 0 : _item$emoji.shortName) || ''
115
114
  })
116
115
  };
117
116
  case ':':
118
117
  return {
119
- popupAriaLabel: intl.formatMessage(_messages.typeAheadListMessages.emojiPopupLabel),
120
- listItemAriaLabel: intl.formatMessage(_messages.typeAheadListMessages.emojiListItemLabel, {
118
+ popupAriaLabel: intl.formatMessage(_typeAhead.typeAheadListMessages.emojiPopupLabel),
119
+ listItemAriaLabel: intl.formatMessage(_typeAhead.typeAheadListMessages.emojiListItemLabel, {
121
120
  name: (item === null || item === void 0 || (_item$emoji2 = item.emoji) === null || _item$emoji2 === void 0 ? void 0 : _item$emoji2.name) || '',
122
121
  shortcut: (item === null || item === void 0 || (_item$emoji3 = item.emoji) === null || _item$emoji3 === void 0 ? void 0 : _item$emoji3.shortName) || ''
123
122
  })
124
123
  };
125
124
  default:
126
125
  return {
127
- popupAriaLabel: intl.formatMessage(_messages.typeAheadListMessages.typeAheadPopupLabel)
126
+ popupAriaLabel: intl.formatMessage(_typeAhead.typeAheadListMessages.typeAheadPopupLabel)
128
127
  };
129
128
  }
130
129
  };
@@ -3,11 +3,10 @@ import React, { Fragment, useCallback, useLayoutEffect, useRef, useState } from
3
3
  import { css, jsx } from '@emotion/react';
4
4
  import { useIntl } from 'react-intl-next';
5
5
  import { keyName as keyNameNormalized } from 'w3c-keyname';
6
- import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
6
+ import { SelectItemMode, typeAheadListMessages } from '@atlaskit/editor-common/type-ahead';
7
7
  import { browser } from '@atlaskit/editor-common/utils';
8
8
  import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
9
9
  import { CloseSelectionOptions, TYPE_AHEAD_DECORATION_ELEMENT_ID, TYPE_AHEAD_POPUP_CONTENT_CLASS } from '../constants';
10
- import { typeAheadListMessages } from '../messages';
11
10
  import { getPluginState } from '../utils';
12
11
  import { AssistiveText } from './AssistiveText';
13
12
  const querySpanStyles = css({
@@ -5,11 +5,10 @@ import { css, jsx } from '@emotion/react';
5
5
  import { injectIntl, useIntl } from 'react-intl-next';
6
6
  import { CellMeasurer, CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer';
7
7
  import { List } from 'react-virtualized/dist/commonjs/List';
8
- import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
8
+ import { SelectItemMode, typeAheadListMessages } from '@atlaskit/editor-common/type-ahead';
9
9
  import { MenuGroup } from '@atlaskit/menu';
10
10
  import { updateSelectedIndex } from '../commands/update-selected-index';
11
11
  import { TYPE_AHEAD_DECORATION_ELEMENT_ID } from '../constants';
12
- import { typeAheadListMessages } from '../messages';
13
12
  import { getTypeAheadListAriaLabels, moveSelectedIndex } from '../utils';
14
13
  import { AssistiveText } from './AssistiveText';
15
14
  import { ICON_HEIGHT, ITEM_PADDING, TypeAheadListItem } from './TypeAheadListItem';
@@ -5,13 +5,12 @@ import React, { useCallback, useLayoutEffect, useMemo } from 'react';
5
5
  import { css, jsx } from '@emotion/react';
6
6
  import { useIntl } from 'react-intl-next';
7
7
  import { IconFallback } from '@atlaskit/editor-common/quick-insert';
8
- import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
8
+ import { SelectItemMode, typeAheadListMessages } from '@atlaskit/editor-common/type-ahead';
9
9
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
10
10
  import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
11
11
  import { ButtonItem } from '@atlaskit/menu';
12
12
  import { B400, N200, N30, N800 } from '@atlaskit/theme/colors';
13
13
  import { borderRadius } from '@atlaskit/theme/constants';
14
- import { typeAheadListMessages } from '../messages';
15
14
  export const ICON_HEIGHT = 40;
16
15
  export const ICON_WIDTH = 40;
17
16
  export const ITEM_PADDING = 12;
@@ -1,6 +1,5 @@
1
- import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
1
+ import { TypeAheadAvailableNodes, typeAheadListMessages } from '@atlaskit/editor-common/type-ahead';
2
2
  import { updateSelectedIndex } from './commands/update-selected-index';
3
- import { typeAheadListMessages } from './messages';
4
3
  import { pluginKey as typeAheadPluginKey } from './pm-plugins/key';
5
4
  import { StatsModifier } from './stats-modifier';
6
5
  export const isTypeAheadHandler = handler => {
@@ -4,11 +4,10 @@ import React, { Fragment, useCallback, useLayoutEffect, useRef, useState } from
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import { useIntl } from 'react-intl-next';
6
6
  import { keyName as keyNameNormalized } from 'w3c-keyname';
7
- import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
7
+ import { SelectItemMode, typeAheadListMessages } from '@atlaskit/editor-common/type-ahead';
8
8
  import { browser } from '@atlaskit/editor-common/utils';
9
9
  import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
10
10
  import { CloseSelectionOptions, TYPE_AHEAD_DECORATION_ELEMENT_ID, TYPE_AHEAD_POPUP_CONTENT_CLASS } from '../constants';
11
- import { typeAheadListMessages } from '../messages';
12
11
  import { getPluginState } from '../utils';
13
12
  import { AssistiveText } from './AssistiveText';
14
13
  var querySpanStyles = css({
@@ -8,11 +8,10 @@ import { css, jsx } from '@emotion/react';
8
8
  import { injectIntl, useIntl } from 'react-intl-next';
9
9
  import { CellMeasurer, CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer';
10
10
  import { List } from 'react-virtualized/dist/commonjs/List';
11
- import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
11
+ import { SelectItemMode, typeAheadListMessages } from '@atlaskit/editor-common/type-ahead';
12
12
  import { MenuGroup } from '@atlaskit/menu';
13
13
  import { updateSelectedIndex } from '../commands/update-selected-index';
14
14
  import { TYPE_AHEAD_DECORATION_ELEMENT_ID } from '../constants';
15
- import { typeAheadListMessages } from '../messages';
16
15
  import { getTypeAheadListAriaLabels, moveSelectedIndex } from '../utils';
17
16
  import { AssistiveText } from './AssistiveText';
18
17
  import { ICON_HEIGHT, ITEM_PADDING, TypeAheadListItem } from './TypeAheadListItem';
@@ -7,13 +7,12 @@ import React, { useCallback, useLayoutEffect, useMemo } from 'react';
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import { useIntl } from 'react-intl-next';
9
9
  import { IconFallback } from '@atlaskit/editor-common/quick-insert';
10
- import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
10
+ import { SelectItemMode, typeAheadListMessages } from '@atlaskit/editor-common/type-ahead';
11
11
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
12
12
  import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
13
13
  import { ButtonItem } from '@atlaskit/menu';
14
14
  import { B400, N200, N30, N800 } from '@atlaskit/theme/colors';
15
15
  import { borderRadius } from '@atlaskit/theme/constants';
16
- import { typeAheadListMessages } from '../messages';
17
16
  export var ICON_HEIGHT = 40;
18
17
  export var ICON_WIDTH = 40;
19
18
  export var ITEM_PADDING = 12;
package/dist/esm/utils.js CHANGED
@@ -1,6 +1,5 @@
1
- import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
1
+ import { TypeAheadAvailableNodes, typeAheadListMessages } from '@atlaskit/editor-common/type-ahead';
2
2
  import { updateSelectedIndex } from './commands/update-selected-index';
3
- import { typeAheadListMessages } from './messages';
4
3
  import { pluginKey as typeAheadPluginKey } from './pm-plugins/key';
5
4
  import { StatsModifier } from './stats-modifier';
6
5
  export var isTypeAheadHandler = function isTypeAheadHandler(handler) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-type-ahead",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "description": "Type-ahead plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,8 +33,8 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@atlaskit/adf-schema": "^35.5.1",
36
- "@atlaskit/analytics-next": "^9.1.0",
37
- "@atlaskit/editor-common": "^77.2.0",
36
+ "@atlaskit/analytics-next": "^9.2.0",
37
+ "@atlaskit/editor-common": "^77.3.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
39
39
  "@atlaskit/editor-prosemirror": "1.1.0",
40
40
  "@atlaskit/editor-shared-styles": "^2.9.0",
@@ -1,79 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.typeAheadListMessages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var typeAheadListMessages = exports.typeAheadListMessages = (0, _reactIntlNext.defineMessages)({
9
- typeAheadPopupLabel: {
10
- id: 'fabric.editor.typeAhead.popupLabel',
11
- defaultMessage: 'Typeahead results',
12
- description: 'the result of a typeahead, similar to autocomplete results+'
13
- },
14
- quickInsertPopupLabel: {
15
- id: 'fabric.editor.typeAhead.quickInsertPopupLabel',
16
- defaultMessage: 'Shortcuts for inserts and formatting',
17
- description: 'the result of a quick insert typeahead, similar to autocomplete results+'
18
- },
19
- quickInsertInputLabel: {
20
- id: 'fabric.editor.typeAhead.quickInsertInputLabel',
21
- defaultMessage: 'Begin typing to search or filter shortcut options',
22
- description: 'assisitve text for typeahed input field'
23
- },
24
- emojiPopupLabel: {
25
- id: 'fabric.editor.typeahead.emojiPopupLabel',
26
- defaultMessage: 'Emoji shortcuts',
27
- description: 'the result of a emoji typeahead, similar to autocomplete results+'
28
- },
29
- emojiInputLabel: {
30
- id: 'fabric.editor.typeahead.emojiInputLabel',
31
- defaultMessage: 'Begin typing to search or filter emoji options',
32
- description: 'assisitve text for typeahed input field'
33
- },
34
- mentionPopupLabel: {
35
- id: 'fabric.editor.typeahead.mentionPopupLabel',
36
- defaultMessage: 'Users you can tag',
37
- description: 'the aria label of a mention typeahead popup'
38
- },
39
- mentionInputLabel: {
40
- id: 'fabric.editor.typeahead.mentionInputLabel',
41
- defaultMessage: 'Begin typing to search for users to tag',
42
- description: 'assisitve text for typeahed input field'
43
- },
44
- metionListItemLabel: {
45
- id: 'fabric.editor.typeahead.metionListItemLabel',
46
- defaultMessage: 'User {name} @{shortName}',
47
- description: 'assistive text for user mention items username and nickname'
48
- },
49
- emojiListItemLabel: {
50
- id: 'fabric.editor.typeahead.emojiListItemLabel',
51
- defaultMessage: 'Emoji {name} Text Shortcut {shortcut}',
52
- description: 'assistive text for emoji name and shortcut'
53
- },
54
- inputQueryAssistiveLabel: {
55
- id: 'fabric.editor.inputQueryAssistiveTxt',
56
- defaultMessage: 'When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.',
57
- description: 'Assistive text to the user when using typeahead shortcut'
58
- },
59
- searchResultsLabel: {
60
- id: 'fabric.editor.searchResults',
61
- defaultMessage: '{itemsLength, plural, one {# search result} other {# search results}} available. Use Up and Down arrow keys to navigate amongst the options. Press Enter to select an option.',
62
- description: 'Assistive text to the user when using typeahead shortcut and it preceeds with a number - Ex: 10 search results available'
63
- },
64
- noSearchResultsLabel: {
65
- id: 'fabric.editor.noSearchResults',
66
- defaultMessage: 'No search results',
67
- description: 'Assistive text to the user when using typeahead shortcut'
68
- },
69
- descriptionLabel: {
70
- id: 'fabric.editor.description',
71
- defaultMessage: 'Description',
72
- description: 'Description'
73
- },
74
- shortcutLabel: {
75
- id: 'fabric.editor.shortcut',
76
- defaultMessage: 'Text shortcut',
77
- description: 'Text shortcut'
78
- }
79
- });
@@ -1,73 +0,0 @@
1
- import { defineMessages } from 'react-intl-next';
2
- export const typeAheadListMessages = defineMessages({
3
- typeAheadPopupLabel: {
4
- id: 'fabric.editor.typeAhead.popupLabel',
5
- defaultMessage: 'Typeahead results',
6
- description: 'the result of a typeahead, similar to autocomplete results+'
7
- },
8
- quickInsertPopupLabel: {
9
- id: 'fabric.editor.typeAhead.quickInsertPopupLabel',
10
- defaultMessage: 'Shortcuts for inserts and formatting',
11
- description: 'the result of a quick insert typeahead, similar to autocomplete results+'
12
- },
13
- quickInsertInputLabel: {
14
- id: 'fabric.editor.typeAhead.quickInsertInputLabel',
15
- defaultMessage: 'Begin typing to search or filter shortcut options',
16
- description: 'assisitve text for typeahed input field'
17
- },
18
- emojiPopupLabel: {
19
- id: 'fabric.editor.typeahead.emojiPopupLabel',
20
- defaultMessage: 'Emoji shortcuts',
21
- description: 'the result of a emoji typeahead, similar to autocomplete results+'
22
- },
23
- emojiInputLabel: {
24
- id: 'fabric.editor.typeahead.emojiInputLabel',
25
- defaultMessage: 'Begin typing to search or filter emoji options',
26
- description: 'assisitve text for typeahed input field'
27
- },
28
- mentionPopupLabel: {
29
- id: 'fabric.editor.typeahead.mentionPopupLabel',
30
- defaultMessage: 'Users you can tag',
31
- description: 'the aria label of a mention typeahead popup'
32
- },
33
- mentionInputLabel: {
34
- id: 'fabric.editor.typeahead.mentionInputLabel',
35
- defaultMessage: 'Begin typing to search for users to tag',
36
- description: 'assisitve text for typeahed input field'
37
- },
38
- metionListItemLabel: {
39
- id: 'fabric.editor.typeahead.metionListItemLabel',
40
- defaultMessage: 'User {name} @{shortName}',
41
- description: 'assistive text for user mention items username and nickname'
42
- },
43
- emojiListItemLabel: {
44
- id: 'fabric.editor.typeahead.emojiListItemLabel',
45
- defaultMessage: 'Emoji {name} Text Shortcut {shortcut}',
46
- description: 'assistive text for emoji name and shortcut'
47
- },
48
- inputQueryAssistiveLabel: {
49
- id: 'fabric.editor.inputQueryAssistiveTxt',
50
- defaultMessage: 'When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.',
51
- description: 'Assistive text to the user when using typeahead shortcut'
52
- },
53
- searchResultsLabel: {
54
- id: 'fabric.editor.searchResults',
55
- defaultMessage: '{itemsLength, plural, one {# search result} other {# search results}} available. Use Up and Down arrow keys to navigate amongst the options. Press Enter to select an option.',
56
- description: 'Assistive text to the user when using typeahead shortcut and it preceeds with a number - Ex: 10 search results available'
57
- },
58
- noSearchResultsLabel: {
59
- id: 'fabric.editor.noSearchResults',
60
- defaultMessage: 'No search results',
61
- description: 'Assistive text to the user when using typeahead shortcut'
62
- },
63
- descriptionLabel: {
64
- id: 'fabric.editor.description',
65
- defaultMessage: 'Description',
66
- description: 'Description'
67
- },
68
- shortcutLabel: {
69
- id: 'fabric.editor.shortcut',
70
- defaultMessage: 'Text shortcut',
71
- description: 'Text shortcut'
72
- }
73
- });
@@ -1,73 +0,0 @@
1
- import { defineMessages } from 'react-intl-next';
2
- export var typeAheadListMessages = defineMessages({
3
- typeAheadPopupLabel: {
4
- id: 'fabric.editor.typeAhead.popupLabel',
5
- defaultMessage: 'Typeahead results',
6
- description: 'the result of a typeahead, similar to autocomplete results+'
7
- },
8
- quickInsertPopupLabel: {
9
- id: 'fabric.editor.typeAhead.quickInsertPopupLabel',
10
- defaultMessage: 'Shortcuts for inserts and formatting',
11
- description: 'the result of a quick insert typeahead, similar to autocomplete results+'
12
- },
13
- quickInsertInputLabel: {
14
- id: 'fabric.editor.typeAhead.quickInsertInputLabel',
15
- defaultMessage: 'Begin typing to search or filter shortcut options',
16
- description: 'assisitve text for typeahed input field'
17
- },
18
- emojiPopupLabel: {
19
- id: 'fabric.editor.typeahead.emojiPopupLabel',
20
- defaultMessage: 'Emoji shortcuts',
21
- description: 'the result of a emoji typeahead, similar to autocomplete results+'
22
- },
23
- emojiInputLabel: {
24
- id: 'fabric.editor.typeahead.emojiInputLabel',
25
- defaultMessage: 'Begin typing to search or filter emoji options',
26
- description: 'assisitve text for typeahed input field'
27
- },
28
- mentionPopupLabel: {
29
- id: 'fabric.editor.typeahead.mentionPopupLabel',
30
- defaultMessage: 'Users you can tag',
31
- description: 'the aria label of a mention typeahead popup'
32
- },
33
- mentionInputLabel: {
34
- id: 'fabric.editor.typeahead.mentionInputLabel',
35
- defaultMessage: 'Begin typing to search for users to tag',
36
- description: 'assisitve text for typeahed input field'
37
- },
38
- metionListItemLabel: {
39
- id: 'fabric.editor.typeahead.metionListItemLabel',
40
- defaultMessage: 'User {name} @{shortName}',
41
- description: 'assistive text for user mention items username and nickname'
42
- },
43
- emojiListItemLabel: {
44
- id: 'fabric.editor.typeahead.emojiListItemLabel',
45
- defaultMessage: 'Emoji {name} Text Shortcut {shortcut}',
46
- description: 'assistive text for emoji name and shortcut'
47
- },
48
- inputQueryAssistiveLabel: {
49
- id: 'fabric.editor.inputQueryAssistiveTxt',
50
- defaultMessage: 'When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.',
51
- description: 'Assistive text to the user when using typeahead shortcut'
52
- },
53
- searchResultsLabel: {
54
- id: 'fabric.editor.searchResults',
55
- defaultMessage: '{itemsLength, plural, one {# search result} other {# search results}} available. Use Up and Down arrow keys to navigate amongst the options. Press Enter to select an option.',
56
- description: 'Assistive text to the user when using typeahead shortcut and it preceeds with a number - Ex: 10 search results available'
57
- },
58
- noSearchResultsLabel: {
59
- id: 'fabric.editor.noSearchResults',
60
- defaultMessage: 'No search results',
61
- description: 'Assistive text to the user when using typeahead shortcut'
62
- },
63
- descriptionLabel: {
64
- id: 'fabric.editor.description',
65
- defaultMessage: 'Description',
66
- description: 'Description'
67
- },
68
- shortcutLabel: {
69
- id: 'fabric.editor.shortcut',
70
- defaultMessage: 'Text shortcut',
71
- description: 'Text shortcut'
72
- }
73
- });
@@ -1,72 +0,0 @@
1
- export declare const typeAheadListMessages: {
2
- typeAheadPopupLabel: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- quickInsertPopupLabel: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- quickInsertInputLabel: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- emojiPopupLabel: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- emojiInputLabel: {
23
- id: string;
24
- defaultMessage: string;
25
- description: string;
26
- };
27
- mentionPopupLabel: {
28
- id: string;
29
- defaultMessage: string;
30
- description: string;
31
- };
32
- mentionInputLabel: {
33
- id: string;
34
- defaultMessage: string;
35
- description: string;
36
- };
37
- metionListItemLabel: {
38
- id: string;
39
- defaultMessage: string;
40
- description: string;
41
- };
42
- emojiListItemLabel: {
43
- id: string;
44
- defaultMessage: string;
45
- description: string;
46
- };
47
- inputQueryAssistiveLabel: {
48
- id: string;
49
- defaultMessage: string;
50
- description: string;
51
- };
52
- searchResultsLabel: {
53
- id: string;
54
- defaultMessage: string;
55
- description: string;
56
- };
57
- noSearchResultsLabel: {
58
- id: string;
59
- defaultMessage: string;
60
- description: string;
61
- };
62
- descriptionLabel: {
63
- id: string;
64
- defaultMessage: string;
65
- description: string;
66
- };
67
- shortcutLabel: {
68
- id: string;
69
- defaultMessage: string;
70
- description: string;
71
- };
72
- };
@@ -1,72 +0,0 @@
1
- export declare const typeAheadListMessages: {
2
- typeAheadPopupLabel: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- quickInsertPopupLabel: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- quickInsertInputLabel: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- emojiPopupLabel: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- emojiInputLabel: {
23
- id: string;
24
- defaultMessage: string;
25
- description: string;
26
- };
27
- mentionPopupLabel: {
28
- id: string;
29
- defaultMessage: string;
30
- description: string;
31
- };
32
- mentionInputLabel: {
33
- id: string;
34
- defaultMessage: string;
35
- description: string;
36
- };
37
- metionListItemLabel: {
38
- id: string;
39
- defaultMessage: string;
40
- description: string;
41
- };
42
- emojiListItemLabel: {
43
- id: string;
44
- defaultMessage: string;
45
- description: string;
46
- };
47
- inputQueryAssistiveLabel: {
48
- id: string;
49
- defaultMessage: string;
50
- description: string;
51
- };
52
- searchResultsLabel: {
53
- id: string;
54
- defaultMessage: string;
55
- description: string;
56
- };
57
- noSearchResultsLabel: {
58
- id: string;
59
- defaultMessage: string;
60
- description: string;
61
- };
62
- descriptionLabel: {
63
- id: string;
64
- defaultMessage: string;
65
- description: string;
66
- };
67
- shortcutLabel: {
68
- id: string;
69
- defaultMessage: string;
70
- description: string;
71
- };
72
- };