@atlaskit/editor-common 114.49.0 → 114.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/dist/cjs/messages/mentions.js +10 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/toolbar/rank.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/UnsupportedBlock/index.js +1 -1
- package/dist/cjs/ui/UnsupportedInline/index.js +1 -1
- package/dist/es2019/messages/mentions.js +10 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/toolbar/rank.js +2 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/UnsupportedBlock/index.js +1 -1
- package/dist/es2019/ui/UnsupportedInline/index.js +1 -1
- package/dist/esm/messages/mentions.js +10 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/toolbar/rank.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/UnsupportedBlock/index.js +1 -1
- package/dist/esm/ui/UnsupportedInline/index.js +1 -1
- package/dist/types/messages/mentions.d.ts +10 -0
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/type-ahead.d.ts +10 -0
- package/dist/types-ts4.5/messages/mentions.d.ts +10 -0
- package/dist/types-ts4.5/types/index.d.ts +1 -1
- package/dist/types-ts4.5/types/type-ahead.d.ts +10 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 114.50.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3b124b51740be`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3b124b51740be) -
|
|
8
|
+
Remove fully rolled out feature gates platform_synced_block_patch_12 and
|
|
9
|
+
platform_synced_blocks_dogfooding
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 114.50.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [`beab4fffee103`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/beab4fffee103) -
|
|
17
|
+
EDITOR-7318: Add type-ahead sections support with getSections handler API.
|
|
18
|
+
|
|
19
|
+
Adds `TypeAheadSection` and `TypeAheadSectionUpdate` types and an optional `getSections()` method
|
|
20
|
+
to `TypeAheadHandler` in `editor-common`. Implements section grouping in
|
|
21
|
+
`editor-plugin-type-ahead` via `buildSectionedResult`. Adds People/Agents section split to
|
|
22
|
+
`editor-plugin-mentions`.
|
|
23
|
+
|
|
24
|
+
Removes the `updateSection` action and associated `sectionOverrides`/`sectionsRefreshKey`
|
|
25
|
+
pm-plugin state — section definitions are now derived directly from `getSections()` at load time
|
|
26
|
+
rather than being mutated at runtime.
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Updated dependencies
|
|
31
|
+
|
|
3
32
|
## 114.49.0
|
|
4
33
|
|
|
5
34
|
### Minor Changes
|
|
@@ -45,5 +45,15 @@ var mentionMessages = exports.mentionMessages = (0, _reactIntl.defineMessages)({
|
|
|
45
45
|
id: 'fabric.editor.inviteItem.inviteButton',
|
|
46
46
|
defaultMessage: 'Invite',
|
|
47
47
|
description: 'Label for the invite button shown in the mention typeahead invite item.'
|
|
48
|
+
},
|
|
49
|
+
typeAheadSectionPeople: {
|
|
50
|
+
id: 'fabric.editor.typeAhead.mentionSection.people',
|
|
51
|
+
defaultMessage: 'People',
|
|
52
|
+
description: 'Section header for people (non-agent) results in the mention type-ahead menu'
|
|
53
|
+
},
|
|
54
|
+
typeAheadSectionAgents: {
|
|
55
|
+
id: 'fabric.editor.typeAhead.mentionSection.agents',
|
|
56
|
+
defaultMessage: 'Agents',
|
|
57
|
+
description: 'Section header for agent results in the mention type-ahead menu'
|
|
48
58
|
}
|
|
49
59
|
});
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "114.
|
|
22
|
+
var packageVersion = "114.50.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
package/dist/cjs/toolbar/rank.js
CHANGED
|
@@ -13,7 +13,7 @@ var TOOLBAR_RANK = exports.TOOLBAR_RANK = (_TOOLBAR_RANK = {}, (0, _defineProper
|
|
|
13
13
|
/**
|
|
14
14
|
* AI section
|
|
15
15
|
*/
|
|
16
|
-
var AI_SECTION_RANK = exports.AI_SECTION_RANK = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _keys.ROVO_GROUP.key, 100), _keys.ROVO_GROUP_DISPLAY_SMALL.key, 100), _keys.ROVO_GROUP_PRIMARY_TOOLBAR.key, 100), _keys.DEFINE_GROUP.key, 200), _keys.IMPROVE_WRITING_GROUP.key, 300), _keys.
|
|
16
|
+
var AI_SECTION_RANK = exports.AI_SECTION_RANK = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _keys.ROVO_GROUP.key, 100), _keys.ROVO_GROUP_DISPLAY_SMALL.key, 100), _keys.ROVO_GROUP_PRIMARY_TOOLBAR.key, 100), _keys.DEFINE_GROUP.key, 200), _keys.IMPROVE_WRITING_GROUP.key, 300), _keys.AI_SUGGESTIONS_GROUP.key, 400), _keys.HERO_PROMPT_BUTTON_GROUP.key, 500);
|
|
17
17
|
var AI_SUGGESTIONS_GROUP_RANK = exports.AI_SUGGESTIONS_GROUP_RANK = (0, _defineProperty2.default)({}, _keys.AI_SUGGESTIONS_BUTTON.key, 100);
|
|
18
18
|
var ROVO_GROUP_RANK = exports.ROVO_GROUP_RANK = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _keys.ROVO_HERO_BUTTON.key, 100), _keys.ROVO_WRITE_BUTTON_PRIMARY_TOOLBAR.key, 100), _keys.ROVO_MENU.key, 200);
|
|
19
19
|
var ROVO_GROUP_DISPLAY_SMALL_RANK = exports.ROVO_GROUP_DISPLAY_SMALL_RANK = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _keys.ROVO_HERO_BUTTON.key, 100), _keys.ROVO_MENU_DISPLAY_SMALL.key, 200), _keys.HERO_PROMPT_BUTTON.key, 300), _keys.AI_SUGGESTIONS_BUTTON.key, 400);
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "114.
|
|
27
|
+
var packageVersion = "114.50.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -25,7 +25,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
25
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
|
|
27
27
|
var blockNodeStyle = (0, _react2.css)({
|
|
28
|
-
background: "var(--ds-background-disabled, #
|
|
28
|
+
background: "var(--ds-background-disabled, #0515240F)",
|
|
29
29
|
border: "var(--ds-border-width, 1px)".concat(" dashed ", "var(--ds-border-disabled, #0515240F)"),
|
|
30
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
31
31
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
@@ -26,7 +26,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
26
26
|
|
|
27
27
|
var inlineNodeStyle = (0, _react2.css)({
|
|
28
28
|
alignItems: 'center',
|
|
29
|
-
background: "var(--ds-background-disabled, #
|
|
29
|
+
background: "var(--ds-background-disabled, #0515240F)",
|
|
30
30
|
border: "var(--ds-border-width, 1px)".concat(" dashed ", "var(--ds-border-disabled, #0515240F)"),
|
|
31
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
32
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
@@ -39,5 +39,15 @@ export const mentionMessages = defineMessages({
|
|
|
39
39
|
id: 'fabric.editor.inviteItem.inviteButton',
|
|
40
40
|
defaultMessage: 'Invite',
|
|
41
41
|
description: 'Label for the invite button shown in the mention typeahead invite item.'
|
|
42
|
+
},
|
|
43
|
+
typeAheadSectionPeople: {
|
|
44
|
+
id: 'fabric.editor.typeAhead.mentionSection.people',
|
|
45
|
+
defaultMessage: 'People',
|
|
46
|
+
description: 'Section header for people (non-agent) results in the mention type-ahead menu'
|
|
47
|
+
},
|
|
48
|
+
typeAheadSectionAgents: {
|
|
49
|
+
id: 'fabric.editor.typeAhead.mentionSection.agents',
|
|
50
|
+
defaultMessage: 'Agents',
|
|
51
|
+
description: 'Section header for agent results in the mention type-ahead menu'
|
|
42
52
|
}
|
|
43
53
|
});
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "114.
|
|
7
|
+
const packageVersion = "114.50.0";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -28,8 +28,8 @@ export const AI_SECTION_RANK = {
|
|
|
28
28
|
[ROVO_GROUP_PRIMARY_TOOLBAR.key]: 100,
|
|
29
29
|
[DEFINE_GROUP.key]: 200,
|
|
30
30
|
[IMPROVE_WRITING_GROUP.key]: 300,
|
|
31
|
-
[
|
|
32
|
-
[
|
|
31
|
+
[AI_SUGGESTIONS_GROUP.key]: 400,
|
|
32
|
+
[HERO_PROMPT_BUTTON_GROUP.key]: 500
|
|
33
33
|
};
|
|
34
34
|
export const AI_SUGGESTIONS_GROUP_RANK = {
|
|
35
35
|
[AI_SUGGESTIONS_BUTTON.key]: 100
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "114.
|
|
17
|
+
const packageVersion = "114.50.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -15,7 +15,7 @@ import { unsupportedContentMessages } from '../../messages/unsupportedContent';
|
|
|
15
15
|
import { trackUnsupportedContentTooltipDisplayedFor } from '../../utils/track-unsupported-content';
|
|
16
16
|
import { getUnsupportedContent } from '../unsupported-content-helper';
|
|
17
17
|
const blockNodeStyle = css({
|
|
18
|
-
background: "var(--ds-background-disabled, #
|
|
18
|
+
background: "var(--ds-background-disabled, #0515240F)",
|
|
19
19
|
border: `${"var(--ds-border-width, 1px)"} dashed ${"var(--ds-border-disabled, #0515240F)"}`,
|
|
20
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
21
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
@@ -16,7 +16,7 @@ import { trackUnsupportedContentTooltipDisplayedFor } from '../../utils/track-un
|
|
|
16
16
|
import { getUnsupportedContent } from '../unsupported-content-helper';
|
|
17
17
|
const inlineNodeStyle = css({
|
|
18
18
|
alignItems: 'center',
|
|
19
|
-
background: "var(--ds-background-disabled, #
|
|
19
|
+
background: "var(--ds-background-disabled, #0515240F)",
|
|
20
20
|
border: `${"var(--ds-border-width, 1px)"} dashed ${"var(--ds-border-disabled, #0515240F)"}`,
|
|
21
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
22
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
@@ -39,5 +39,15 @@ export var mentionMessages = defineMessages({
|
|
|
39
39
|
id: 'fabric.editor.inviteItem.inviteButton',
|
|
40
40
|
defaultMessage: 'Invite',
|
|
41
41
|
description: 'Label for the invite button shown in the mention typeahead invite item.'
|
|
42
|
+
},
|
|
43
|
+
typeAheadSectionPeople: {
|
|
44
|
+
id: 'fabric.editor.typeAhead.mentionSection.people',
|
|
45
|
+
defaultMessage: 'People',
|
|
46
|
+
description: 'Section header for people (non-agent) results in the mention type-ahead menu'
|
|
47
|
+
},
|
|
48
|
+
typeAheadSectionAgents: {
|
|
49
|
+
id: 'fabric.editor.typeAhead.mentionSection.agents',
|
|
50
|
+
defaultMessage: 'Agents',
|
|
51
|
+
description: 'Section header for agent results in the mention type-ahead menu'
|
|
42
52
|
}
|
|
43
53
|
});
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "114.
|
|
13
|
+
var packageVersion = "114.50.0";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
package/dist/esm/toolbar/rank.js
CHANGED
|
@@ -6,7 +6,7 @@ export var TOOLBAR_RANK = (_TOOLBAR_RANK = {}, _defineProperty(_defineProperty(_
|
|
|
6
6
|
/**
|
|
7
7
|
* AI section
|
|
8
8
|
*/
|
|
9
|
-
export var AI_SECTION_RANK = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ROVO_GROUP.key, 100), ROVO_GROUP_DISPLAY_SMALL.key, 100), ROVO_GROUP_PRIMARY_TOOLBAR.key, 100), DEFINE_GROUP.key, 200), IMPROVE_WRITING_GROUP.key, 300),
|
|
9
|
+
export var AI_SECTION_RANK = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ROVO_GROUP.key, 100), ROVO_GROUP_DISPLAY_SMALL.key, 100), ROVO_GROUP_PRIMARY_TOOLBAR.key, 100), DEFINE_GROUP.key, 200), IMPROVE_WRITING_GROUP.key, 300), AI_SUGGESTIONS_GROUP.key, 400), HERO_PROMPT_BUTTON_GROUP.key, 500);
|
|
10
10
|
export var AI_SUGGESTIONS_GROUP_RANK = _defineProperty({}, AI_SUGGESTIONS_BUTTON.key, 100);
|
|
11
11
|
export var ROVO_GROUP_RANK = _defineProperty(_defineProperty(_defineProperty({}, ROVO_HERO_BUTTON.key, 100), ROVO_WRITE_BUTTON_PRIMARY_TOOLBAR.key, 100), ROVO_MENU.key, 200);
|
|
12
12
|
export var ROVO_GROUP_DISPLAY_SMALL_RANK = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ROVO_HERO_BUTTON.key, 100), ROVO_MENU_DISPLAY_SMALL.key, 200), HERO_PROMPT_BUTTON.key, 300), AI_SUGGESTIONS_BUTTON.key, 400);
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "114.
|
|
24
|
+
var packageVersion = "114.50.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -15,7 +15,7 @@ import { unsupportedContentMessages } from '../../messages/unsupportedContent';
|
|
|
15
15
|
import { trackUnsupportedContentTooltipDisplayedFor } from '../../utils/track-unsupported-content';
|
|
16
16
|
import { getUnsupportedContent } from '../unsupported-content-helper';
|
|
17
17
|
var blockNodeStyle = css({
|
|
18
|
-
background: "var(--ds-background-disabled, #
|
|
18
|
+
background: "var(--ds-background-disabled, #0515240F)",
|
|
19
19
|
border: "var(--ds-border-width, 1px)".concat(" dashed ", "var(--ds-border-disabled, #0515240F)"),
|
|
20
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
21
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
@@ -16,7 +16,7 @@ import { trackUnsupportedContentTooltipDisplayedFor } from '../../utils/track-un
|
|
|
16
16
|
import { getUnsupportedContent } from '../unsupported-content-helper';
|
|
17
17
|
var inlineNodeStyle = css({
|
|
18
18
|
alignItems: 'center',
|
|
19
|
-
background: "var(--ds-background-disabled, #
|
|
19
|
+
background: "var(--ds-background-disabled, #0515240F)",
|
|
20
20
|
border: "var(--ds-border-width, 1px)".concat(" dashed ", "var(--ds-border-disabled, #0515240F)"),
|
|
21
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
22
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
@@ -39,4 +39,14 @@ export declare const mentionMessages: {
|
|
|
39
39
|
description: string;
|
|
40
40
|
id: string;
|
|
41
41
|
};
|
|
42
|
+
typeAheadSectionPeople: {
|
|
43
|
+
defaultMessage: string;
|
|
44
|
+
description: string;
|
|
45
|
+
id: string;
|
|
46
|
+
};
|
|
47
|
+
typeAheadSectionAgents: {
|
|
48
|
+
defaultMessage: string;
|
|
49
|
+
description: string;
|
|
50
|
+
id: string;
|
|
51
|
+
};
|
|
42
52
|
};
|
|
@@ -7,7 +7,7 @@ export { AnnotationUpdateEmitter, AnnotationUpdateEvent } from './annotation/emi
|
|
|
7
7
|
export type { AnnotationState, AnnotationUpdateEventPayloads, OnAnnotationClickPayload, } from './annotation/emitter';
|
|
8
8
|
export type { AnnotationProviders, InlineCommentSelectionComponentProps, InlineCommentHoverComponentProps, InlineCommentViewComponentProps, InlineCommentAnnotationProvider, AnnotationByMatches, AnnotationActionResult, } from './annotation';
|
|
9
9
|
export type { ContextUpdateHandler, EditorActionsOptions, ReplaceRawValue, GetResolvedEditorStateReason, } from './editor-actions';
|
|
10
|
-
export type { TypeAheadStats, TypeAheadItemRenderProps, TypeAheadInsert, TypeAheadSelectItem, TypeAheadItem, TypeAheadForceSelect, TypeAheadHandler, } from './type-ahead';
|
|
10
|
+
export type { TypeAheadStats, TypeAheadItemRenderProps, TypeAheadInsert, TypeAheadSelectItem, TypeAheadItem, TypeAheadForceSelect, TypeAheadHandler, TypeAheadSection, } from './type-ahead';
|
|
11
11
|
export type { CommandDispatch, Command, HigherOrderCommand, Predicate } from './command';
|
|
12
12
|
export type { FeatureFlags, FeatureFlagKey, GetEditorFeatureFlags } from './feature-flags';
|
|
13
13
|
export type { Browsers, Range, DisableSpellcheckByBrowser } from './supported-browsers';
|
|
@@ -45,6 +45,12 @@ export type TypeAheadItem = {
|
|
|
45
45
|
testId?: string;
|
|
46
46
|
title: string;
|
|
47
47
|
};
|
|
48
|
+
export type TypeAheadSection = {
|
|
49
|
+
filter: (item: TypeAheadItem) => boolean;
|
|
50
|
+
id: string;
|
|
51
|
+
limit?: number;
|
|
52
|
+
title: string;
|
|
53
|
+
};
|
|
48
54
|
export type TypeAheadForceSelect = (props: TypeAheadForceSelectProps) => TypeAheadItem | undefined;
|
|
49
55
|
export type MoreOptionsButtonConfig = {
|
|
50
56
|
ariaLabel?: string;
|
|
@@ -78,6 +84,10 @@ export type TypeAheadHandler = {
|
|
|
78
84
|
editorState: EditorState;
|
|
79
85
|
query: string;
|
|
80
86
|
}) => Promise<Array<TypeAheadItem>>;
|
|
87
|
+
/** Optional section definitions used by type-ahead menu to group items */
|
|
88
|
+
getSections?: (props: {
|
|
89
|
+
intl: IntlShape;
|
|
90
|
+
}) => Array<TypeAheadSection>;
|
|
81
91
|
getMoreOptionsButtonConfig?: (intl: IntlShape) => MoreOptionsButtonConfig;
|
|
82
92
|
headless?: boolean;
|
|
83
93
|
id: TypeAheadAvailableNodes;
|
|
@@ -39,4 +39,14 @@ export declare const mentionMessages: {
|
|
|
39
39
|
description: string;
|
|
40
40
|
id: string;
|
|
41
41
|
};
|
|
42
|
+
typeAheadSectionPeople: {
|
|
43
|
+
defaultMessage: string;
|
|
44
|
+
description: string;
|
|
45
|
+
id: string;
|
|
46
|
+
};
|
|
47
|
+
typeAheadSectionAgents: {
|
|
48
|
+
defaultMessage: string;
|
|
49
|
+
description: string;
|
|
50
|
+
id: string;
|
|
51
|
+
};
|
|
42
52
|
};
|
|
@@ -7,7 +7,7 @@ export { AnnotationUpdateEmitter, AnnotationUpdateEvent } from './annotation/emi
|
|
|
7
7
|
export type { AnnotationState, AnnotationUpdateEventPayloads, OnAnnotationClickPayload, } from './annotation/emitter';
|
|
8
8
|
export type { AnnotationProviders, InlineCommentSelectionComponentProps, InlineCommentHoverComponentProps, InlineCommentViewComponentProps, InlineCommentAnnotationProvider, AnnotationByMatches, AnnotationActionResult, } from './annotation';
|
|
9
9
|
export type { ContextUpdateHandler, EditorActionsOptions, ReplaceRawValue, GetResolvedEditorStateReason, } from './editor-actions';
|
|
10
|
-
export type { TypeAheadStats, TypeAheadItemRenderProps, TypeAheadInsert, TypeAheadSelectItem, TypeAheadItem, TypeAheadForceSelect, TypeAheadHandler, } from './type-ahead';
|
|
10
|
+
export type { TypeAheadStats, TypeAheadItemRenderProps, TypeAheadInsert, TypeAheadSelectItem, TypeAheadItem, TypeAheadForceSelect, TypeAheadHandler, TypeAheadSection, } from './type-ahead';
|
|
11
11
|
export type { CommandDispatch, Command, HigherOrderCommand, Predicate } from './command';
|
|
12
12
|
export type { FeatureFlags, FeatureFlagKey, GetEditorFeatureFlags } from './feature-flags';
|
|
13
13
|
export type { Browsers, Range, DisableSpellcheckByBrowser } from './supported-browsers';
|
|
@@ -45,6 +45,12 @@ export type TypeAheadItem = {
|
|
|
45
45
|
testId?: string;
|
|
46
46
|
title: string;
|
|
47
47
|
};
|
|
48
|
+
export type TypeAheadSection = {
|
|
49
|
+
filter: (item: TypeAheadItem) => boolean;
|
|
50
|
+
id: string;
|
|
51
|
+
limit?: number;
|
|
52
|
+
title: string;
|
|
53
|
+
};
|
|
48
54
|
export type TypeAheadForceSelect = (props: TypeAheadForceSelectProps) => TypeAheadItem | undefined;
|
|
49
55
|
export type MoreOptionsButtonConfig = {
|
|
50
56
|
ariaLabel?: string;
|
|
@@ -78,6 +84,10 @@ export type TypeAheadHandler = {
|
|
|
78
84
|
editorState: EditorState;
|
|
79
85
|
query: string;
|
|
80
86
|
}) => Promise<Array<TypeAheadItem>>;
|
|
87
|
+
/** Optional section definitions used by type-ahead menu to group items */
|
|
88
|
+
getSections?: (props: {
|
|
89
|
+
intl: IntlShape;
|
|
90
|
+
}) => Array<TypeAheadSection>;
|
|
81
91
|
getMoreOptionsButtonConfig?: (intl: IntlShape) => MoreOptionsButtonConfig;
|
|
82
92
|
headless?: boolean;
|
|
83
93
|
id: TypeAheadAvailableNodes;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "114.
|
|
3
|
+
"version": "114.50.1",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
"@atlaskit/teams-app-config": "^1.12.0",
|
|
89
89
|
"@atlaskit/textfield": "^8.3.0",
|
|
90
90
|
"@atlaskit/tmp-editor-statsig": "^84.3.0",
|
|
91
|
-
"@atlaskit/tokens": "^13.
|
|
92
|
-
"@atlaskit/tooltip": "^22.
|
|
91
|
+
"@atlaskit/tokens": "^13.1.0",
|
|
92
|
+
"@atlaskit/tooltip": "^22.4.0",
|
|
93
93
|
"@atlaskit/width-detector": "^5.1.0",
|
|
94
94
|
"@babel/runtime": "^7.0.0",
|
|
95
95
|
"@compiled/react": "^0.20.0",
|