@atlaskit/editor-plugin-mentions 13.3.7 → 13.3.11

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,31 @@
1
1
  # @atlaskit/editor-plugin-mentions
2
2
 
3
+ ## 13.3.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 13.3.10
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 13.3.9
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
21
+ ## 13.3.8
22
+
23
+ ### Patch Changes
24
+
25
+ - [`ebfe7dee1573c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ebfe7dee1573c) -
26
+ Suppress pasted agent mention notifications
27
+ - Updated dependencies
28
+
3
29
  ## 13.3.7
4
30
 
5
31
  ### Patch Changes
@@ -32,7 +32,7 @@ var ACTIONS = exports.ACTIONS = {
32
32
  var AGENT_USER_TYPES = new Set(['APP', 'AGENT']);
33
33
  var AI_STREAMING_TRANSFORMATION_META_KEY = 'isAIStreamingTransformation';
34
34
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
35
- var PACKAGE_VERSION = "13.3.6";
35
+ var PACKAGE_VERSION = "13.3.10";
36
36
  var setProvider = function setProvider(provider) {
37
37
  return function (state, dispatch) {
38
38
  if (dispatch) {
@@ -17,7 +17,7 @@ export const ACTIONS = {
17
17
  const AGENT_USER_TYPES = new Set(['APP', 'AGENT']);
18
18
  const AI_STREAMING_TRANSFORMATION_META_KEY = 'isAIStreamingTransformation';
19
19
  const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
20
- const PACKAGE_VERSION = "13.3.6";
20
+ const PACKAGE_VERSION = "13.3.10";
21
21
  const setProvider = provider => (state, dispatch) => {
22
22
  if (dispatch) {
23
23
  dispatch(state.tr.setMeta(mentionPluginKey, {
@@ -24,7 +24,7 @@ export var ACTIONS = {
24
24
  var AGENT_USER_TYPES = new Set(['APP', 'AGENT']);
25
25
  var AI_STREAMING_TRANSFORMATION_META_KEY = 'isAIStreamingTransformation';
26
26
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
27
- var PACKAGE_VERSION = "13.3.6";
27
+ var PACKAGE_VERSION = "13.3.10";
28
28
  var setProvider = function setProvider(provider) {
29
29
  return function (state, dispatch) {
30
30
  if (dispatch) {
@@ -1 +1 @@
1
- export type { MentionPluginConfig, MentionPluginOptions, MentionsPluginOptions, MentionSharedState, MentionsChangedHandler, } from '../types/index';
1
+ export type { MentionPluginConfig, MentionPluginOptions, MentionChange, MentionsPluginOptions, MentionSharedState, MentionsChangedHandler, } from '../types/index';
@@ -6,15 +6,9 @@ import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
6
6
  import type { TypeAheadInputMethod, TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
7
7
  import type { MentionProvider } from '@atlaskit/mention/resource';
8
8
  import type { InsertMentionParameters } from './editor-commands';
9
- import type { MentionPluginOptions, MentionSharedState } from './types';
9
+ import type { MentionChange, MentionPluginOptions, MentionSharedState } from './types';
10
10
  export type MentionActionOpenTypeAhead = (inputMethod: TypeAheadInputMethod) => boolean;
11
- export type MentionActionAnnounceMentionsInsertion = (mentionIds: {
12
- id: string;
13
- localId: string;
14
- shouldSuppressMentionNotification?: boolean;
15
- taskLocalId?: string;
16
- type: 'added' | 'deleted';
17
- }[]) => void;
11
+ export type MentionActionAnnounceMentionsInsertion = (mentionIds: MentionChange[]) => void;
18
12
  export type MentionActionSetProvider = (provider: Promise<MentionProvider>) => Promise<boolean>;
19
13
  export type MentionActionUpdateSectionTitle = (props: TypeAheadSectionTitleUpdate) => boolean;
20
14
  export type MentionActions = {
@@ -14,12 +14,15 @@ export interface MentionPluginConfig {
14
14
  insertDisplayName?: boolean;
15
15
  profilecardProvider?: Promise<ProfilecardProvider>;
16
16
  }
17
- export type MentionsChangedHandler = (changes: {
17
+ export type MentionChange = {
18
18
  id: string;
19
19
  localId: string;
20
+ method?: 'pasted' | 'typed';
21
+ shouldSuppressMentionNotification?: boolean;
20
22
  taskLocalId?: string;
21
23
  type: 'added' | 'deleted';
22
- }[]) => void;
24
+ };
25
+ export type MentionsChangedHandler = (changes: MentionChange[]) => void;
23
26
  export interface MentionsPluginOptions extends MentionPluginConfig {
24
27
  allowZeroWidthSpaceAfter?: boolean;
25
28
  /**
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { ExtractInjectionAPI, TypeAheadHandler, TypeAheadItem } from '@atlaskit/editor-common/types';
3
3
  import type { MentionDescription } from '@atlaskit/mention/resource';
4
4
  import type { MentionsPlugin } from '../../mentionsPluginType';
5
- import type { FireElementsChannelEvent } from '../../types';
5
+ import type { FireElementsChannelEvent, MentionChange } from '../../types';
6
6
  export declare const mentionToTypeaheadItem: (mention: MentionDescription) => TypeAheadItem;
7
7
  export declare function memoize<ResultFn extends (mention: MentionDescription) => TypeAheadItem>(fn: ResultFn): {
8
8
  call: ResultFn;
@@ -11,14 +11,7 @@ export declare function memoize<ResultFn extends (mention: MentionDescription) =
11
11
  type Props = {
12
12
  api: ExtractInjectionAPI<MentionsPlugin> | undefined;
13
13
  fireEvent: FireElementsChannelEvent;
14
- handleMentionsChanged?: (mentionChanges: {
15
- id: string;
16
- localId: string;
17
- method?: 'pasted' | 'typed';
18
- shouldSuppressMentionNotification?: boolean;
19
- taskLocalId?: string;
20
- type: 'added' | 'deleted';
21
- }[]) => void;
14
+ handleMentionsChanged?: (mentionChanges: MentionChange[]) => void;
22
15
  HighlightComponent?: React.ComponentType<React.PropsWithChildren<unknown>>;
23
16
  mentionInsertDisplayName?: boolean;
24
17
  sanitizePrivateContent?: boolean;
@@ -1 +1 @@
1
- export type { MentionPluginConfig, MentionPluginOptions, MentionsPluginOptions, MentionSharedState, MentionsChangedHandler, } from '../types/index';
1
+ export type { MentionPluginConfig, MentionPluginOptions, MentionChange, MentionsPluginOptions, MentionSharedState, MentionsChangedHandler, } from '../types/index';
@@ -6,15 +6,9 @@ import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
6
6
  import type { TypeAheadInputMethod, TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
7
7
  import type { MentionProvider } from '@atlaskit/mention/resource';
8
8
  import type { InsertMentionParameters } from './editor-commands';
9
- import type { MentionPluginOptions, MentionSharedState } from './types';
9
+ import type { MentionChange, MentionPluginOptions, MentionSharedState } from './types';
10
10
  export type MentionActionOpenTypeAhead = (inputMethod: TypeAheadInputMethod) => boolean;
11
- export type MentionActionAnnounceMentionsInsertion = (mentionIds: {
12
- id: string;
13
- localId: string;
14
- shouldSuppressMentionNotification?: boolean;
15
- taskLocalId?: string;
16
- type: 'added' | 'deleted';
17
- }[]) => void;
11
+ export type MentionActionAnnounceMentionsInsertion = (mentionIds: MentionChange[]) => void;
18
12
  export type MentionActionSetProvider = (provider: Promise<MentionProvider>) => Promise<boolean>;
19
13
  export type MentionActionUpdateSectionTitle = (props: TypeAheadSectionTitleUpdate) => boolean;
20
14
  export type MentionActions = {
@@ -14,12 +14,15 @@ export interface MentionPluginConfig {
14
14
  insertDisplayName?: boolean;
15
15
  profilecardProvider?: Promise<ProfilecardProvider>;
16
16
  }
17
- export type MentionsChangedHandler = (changes: {
17
+ export type MentionChange = {
18
18
  id: string;
19
19
  localId: string;
20
+ method?: 'pasted' | 'typed';
21
+ shouldSuppressMentionNotification?: boolean;
20
22
  taskLocalId?: string;
21
23
  type: 'added' | 'deleted';
22
- }[]) => void;
24
+ };
25
+ export type MentionsChangedHandler = (changes: MentionChange[]) => void;
23
26
  export interface MentionsPluginOptions extends MentionPluginConfig {
24
27
  allowZeroWidthSpaceAfter?: boolean;
25
28
  /**
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { ExtractInjectionAPI, TypeAheadHandler, TypeAheadItem } from '@atlaskit/editor-common/types';
3
3
  import type { MentionDescription } from '@atlaskit/mention/resource';
4
4
  import type { MentionsPlugin } from '../../mentionsPluginType';
5
- import type { FireElementsChannelEvent } from '../../types';
5
+ import type { FireElementsChannelEvent, MentionChange } from '../../types';
6
6
  export declare const mentionToTypeaheadItem: (mention: MentionDescription) => TypeAheadItem;
7
7
  export declare function memoize<ResultFn extends (mention: MentionDescription) => TypeAheadItem>(fn: ResultFn): {
8
8
  call: ResultFn;
@@ -11,14 +11,7 @@ export declare function memoize<ResultFn extends (mention: MentionDescription) =
11
11
  type Props = {
12
12
  api: ExtractInjectionAPI<MentionsPlugin> | undefined;
13
13
  fireEvent: FireElementsChannelEvent;
14
- handleMentionsChanged?: (mentionChanges: {
15
- id: string;
16
- localId: string;
17
- method?: 'pasted' | 'typed';
18
- shouldSuppressMentionNotification?: boolean;
19
- taskLocalId?: string;
20
- type: 'added' | 'deleted';
21
- }[]) => void;
14
+ handleMentionsChanged?: (mentionChanges: MentionChange[]) => void;
22
15
  HighlightComponent?: React.ComponentType<React.PropsWithChildren<unknown>>;
23
16
  mentionInsertDisplayName?: boolean;
24
17
  sanitizePrivateContent?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-mentions",
3
- "version": "13.3.7",
3
+ "version": "13.3.11",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,13 +29,13 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^53.0.0",
32
+ "@atlaskit/adf-schema": "^54.0.0",
33
33
  "@atlaskit/css": "^0.19.0",
34
34
  "@atlaskit/editor-plugin-analytics": "^11.0.0",
35
35
  "@atlaskit/editor-plugin-base": "^12.1.0",
36
36
  "@atlaskit/editor-plugin-context-identifier": "^11.0.0",
37
37
  "@atlaskit/editor-plugin-selection": "^11.0.0",
38
- "@atlaskit/editor-plugin-type-ahead": "^11.2.0",
38
+ "@atlaskit/editor-plugin-type-ahead": "^11.3.0",
39
39
  "@atlaskit/editor-prosemirror": "^7.3.0",
40
40
  "@atlaskit/icon": "^35.4.0",
41
41
  "@atlaskit/insm": "^0.4.0",
@@ -48,7 +48,7 @@
48
48
  "@atlaskit/profilecard": "^25.9.0",
49
49
  "@atlaskit/teams-app-config": "^1.12.0",
50
50
  "@atlaskit/theme": "^25.0.0",
51
- "@atlaskit/tmp-editor-statsig": "^95.0.0",
51
+ "@atlaskit/tmp-editor-statsig": "^99.0.0",
52
52
  "@atlaskit/tokens": "^13.3.0",
53
53
  "@atlaskit/tooltip": "^22.6.0",
54
54
  "@atlaskit/user-picker": "^12.1.0",
@@ -60,7 +60,7 @@
60
60
  "uuid": "^3.1.0"
61
61
  },
62
62
  "peerDependencies": {
63
- "@atlaskit/editor-common": "^115.10.0",
63
+ "@atlaskit/editor-common": "^115.13.0",
64
64
  "react": "^18.2.0",
65
65
  "react-dom": "^18.2.0",
66
66
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"