@atlaskit/editor-plugin-mentions 4.6.0 → 4.7.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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/editor-plugin-mentions
2
2
 
3
+ ## 4.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#157073](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157073)
8
+ [`90a6126393c2d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/90a6126393c2d) -
9
+ We are testing the migration to the ADS Link component behind a feature flag. If this fix is
10
+ successful it will be available in a later release.
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
16
+ ## 4.6.1
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 4.6.0
4
23
 
5
24
  ### Minor Changes
@@ -26,7 +26,7 @@ var ACTIONS = exports.ACTIONS = {
26
26
  SET_PROVIDER: 'SET_PROVIDER'
27
27
  };
28
28
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
29
- var PACKAGE_VERSION = "4.6.0";
29
+ var PACKAGE_VERSION = "4.7.0";
30
30
  var setProvider = function setProvider(provider) {
31
31
  return function (state, dispatch) {
32
32
  if (dispatch) {
@@ -347,13 +347,15 @@ var createTypeAheadConfig = exports.createTypeAheadConfig = function createTypeA
347
347
  type: 'added',
348
348
  localId: mentionLocalId,
349
349
  id: id,
350
- taskLocalId: taskItemId
350
+ taskLocalId: taskItemId,
351
+ method: 'typed'
351
352
  }]);
352
353
  } else {
353
354
  handleMentionsChanged([{
354
355
  type: 'added',
355
356
  localId: mentionLocalId,
356
- id: id
357
+ id: id,
358
+ method: 'typed'
357
359
  }]);
358
360
  }
359
361
  }
@@ -15,7 +15,7 @@ export const ACTIONS = {
15
15
  SET_PROVIDER: 'SET_PROVIDER'
16
16
  };
17
17
  const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
18
- const PACKAGE_VERSION = "4.6.0";
18
+ const PACKAGE_VERSION = "4.7.0";
19
19
  const setProvider = provider => (state, dispatch) => {
20
20
  if (dispatch) {
21
21
  dispatch(state.tr.setMeta(mentionPluginKey, {
@@ -331,13 +331,15 @@ export const createTypeAheadConfig = ({
331
331
  type: 'added',
332
332
  localId: mentionLocalId,
333
333
  id,
334
- taskLocalId: taskItemId
334
+ taskLocalId: taskItemId,
335
+ method: 'typed'
335
336
  }]);
336
337
  } else {
337
338
  handleMentionsChanged([{
338
339
  type: 'added',
339
340
  localId: mentionLocalId,
340
- id
341
+ id,
342
+ method: 'typed'
341
343
  }]);
342
344
  }
343
345
  }
@@ -18,7 +18,7 @@ export var ACTIONS = {
18
18
  SET_PROVIDER: 'SET_PROVIDER'
19
19
  };
20
20
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
21
- var PACKAGE_VERSION = "4.6.0";
21
+ var PACKAGE_VERSION = "4.7.0";
22
22
  var setProvider = function setProvider(provider) {
23
23
  return function (state, dispatch) {
24
24
  if (dispatch) {
@@ -335,13 +335,15 @@ export var createTypeAheadConfig = function createTypeAheadConfig(_ref6) {
335
335
  type: 'added',
336
336
  localId: mentionLocalId,
337
337
  id: id,
338
- taskLocalId: taskItemId
338
+ taskLocalId: taskItemId,
339
+ method: 'typed'
339
340
  }]);
340
341
  } else {
341
342
  handleMentionsChanged([{
342
343
  type: 'added',
343
344
  localId: mentionLocalId,
344
- id: id
345
+ id: id,
346
+ method: 'typed'
345
347
  }]);
346
348
  }
347
349
  }
@@ -19,6 +19,7 @@ type Props = {
19
19
  localId: string;
20
20
  id: string;
21
21
  taskLocalId?: string;
22
+ method?: 'pasted' | 'typed';
22
23
  }[]) => void;
23
24
  };
24
25
  export declare const createTypeAheadConfig: ({ sanitizePrivateContent, mentionInsertDisplayName, fireEvent, HighlightComponent, api, handleMentionsChanged, }: Props) => TypeAheadHandler;
@@ -19,6 +19,7 @@ type Props = {
19
19
  localId: string;
20
20
  id: string;
21
21
  taskLocalId?: string;
22
+ method?: 'pasted' | 'typed';
22
23
  }[]) => void;
23
24
  };
24
25
  export declare const createTypeAheadConfig: ({ sanitizePrivateContent, mentionInsertDisplayName, fireEvent, HighlightComponent, api, handleMentionsChanged, }: Props) => TypeAheadHandler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-mentions",
3
- "version": "4.6.0",
3
+ "version": "4.7.0",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,22 +35,23 @@
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^47.6.0",
37
37
  "@atlaskit/css": "^0.10.0",
38
- "@atlaskit/editor-common": "^104.1.0",
39
- "@atlaskit/editor-plugin-analytics": "^2.2.0",
40
- "@atlaskit/editor-plugin-base": "^2.3.0",
38
+ "@atlaskit/editor-common": "^105.7.0",
39
+ "@atlaskit/editor-plugin-analytics": "^2.3.0",
40
+ "@atlaskit/editor-plugin-base": "^3.0.0",
41
41
  "@atlaskit/editor-plugin-context-identifier": "^2.1.0",
42
42
  "@atlaskit/editor-plugin-selection": "^2.2.0",
43
- "@atlaskit/editor-plugin-type-ahead": "^2.6.0",
43
+ "@atlaskit/editor-plugin-type-ahead": "^2.7.0",
44
44
  "@atlaskit/editor-prosemirror": "7.0.0",
45
- "@atlaskit/icon": "^26.0.0",
46
- "@atlaskit/mention": "^24.1.0",
45
+ "@atlaskit/icon": "^26.1.0",
46
+ "@atlaskit/link": "^3.2.0",
47
+ "@atlaskit/mention": "^24.2.0",
47
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
49
  "@atlaskit/popper": "^7.0.0",
49
50
  "@atlaskit/portal": "^5.1.0",
50
- "@atlaskit/profilecard": "^23.11.0",
51
+ "@atlaskit/profilecard": "^23.16.0",
51
52
  "@atlaskit/theme": "^18.0.0",
52
- "@atlaskit/tmp-editor-statsig": "^4.19.0",
53
- "@atlaskit/tokens": "^4.8.0",
53
+ "@atlaskit/tmp-editor-statsig": "^4.22.0",
54
+ "@atlaskit/tokens": "^4.9.0",
54
55
  "@babel/runtime": "^7.0.0",
55
56
  "@compiled/react": "^0.18.3",
56
57
  "bind-event-listener": "^3.0.0",
@@ -116,6 +117,9 @@
116
117
  },
117
118
  "platform_editor_mention_provider_via_plugin_config": {
118
119
  "type": "boolean"
120
+ },
121
+ "dst-a11y__replace-anchor-with-link__editor-ai": {
122
+ "type": "boolean"
119
123
  }
120
124
  }
121
125
  }