@atlaskit/editor-plugin-mentions 2.11.2 → 2.12.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,30 @@
1
1
  # @atlaskit/editor-plugin-mentions
2
2
 
3
+ ## 2.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#101931](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101931)
8
+ [`8a09e2cba1485`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8a09e2cba1485) -
9
+ Changed signature of optional prop (inviteXProductUser) with 1 more param. This is regarding
10
+ CCEDITIONS-4746 (x-product-user-invite experiment). Project poster link -
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
16
+ ## 2.11.3
17
+
18
+ ### Patch Changes
19
+
20
+ - [#100411](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100411)
21
+ [`14499ab145534`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/14499ab145534) -
22
+ [ux] Introduces advanced code block as per:
23
+ https://hello.atlassian.net/wiki/spaces/EDITOR/pages/4632293323/Editor+RFC+063+Advanced+code+blocks.
24
+ This can be added to an existing editor preset to enrich the code block experience with syntax
25
+ highlighting and can be extended for other features via CodeMirror extensions (ie. autocompletion,
26
+ code folding etc.).
27
+
3
28
  ## 2.11.2
4
29
 
5
30
  ### Patch Changes
@@ -24,7 +24,7 @@ var ACTIONS = exports.ACTIONS = {
24
24
  SET_PROVIDER: 'SET_PROVIDER'
25
25
  };
26
26
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
27
- var PACKAGE_VERSION = "2.11.2";
27
+ var PACKAGE_VERSION = "2.12.0";
28
28
  var setProvider = function setProvider(provider) {
29
29
  return function (state, dispatch) {
30
30
  if (dispatch) {
@@ -365,7 +365,7 @@ var createTypeAheadConfig = exports.createTypeAheadConfig = function createTypeA
365
365
  return insert(buildNodesForTeamMention(schema, item.mention, mentionProvider, sanitizePrivateContent));
366
366
  }
367
367
  if (isXProductUser && mentionProvider && mentionProvider.inviteXProductUser) {
368
- mentionProvider.inviteXProductUser(id);
368
+ mentionProvider.inviteXProductUser(id, name);
369
369
  }
370
370
 
371
371
  // Don't insert into document if document data is sanitized.
@@ -13,7 +13,7 @@ export const ACTIONS = {
13
13
  SET_PROVIDER: 'SET_PROVIDER'
14
14
  };
15
15
  const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
16
- const PACKAGE_VERSION = "2.11.2";
16
+ const PACKAGE_VERSION = "2.12.0";
17
17
  const setProvider = provider => (state, dispatch) => {
18
18
  if (dispatch) {
19
19
  dispatch(state.tr.setMeta(mentionPluginKey, {
@@ -332,14 +332,14 @@ export const createTypeAheadConfig = ({
332
332
  handleMentionsChanged([{
333
333
  type: 'added',
334
334
  localId: mentionLocalId,
335
- id: id,
335
+ id,
336
336
  taskLocalId: taskItemId
337
337
  }]);
338
338
  } else {
339
339
  handleMentionsChanged([{
340
340
  type: 'added',
341
341
  localId: mentionLocalId,
342
- id: id
342
+ id
343
343
  }]);
344
344
  }
345
345
  }
@@ -349,7 +349,7 @@ export const createTypeAheadConfig = ({
349
349
  return insert(buildNodesForTeamMention(schema, item.mention, mentionProvider, sanitizePrivateContent));
350
350
  }
351
351
  if (isXProductUser && mentionProvider && mentionProvider.inviteXProductUser) {
352
- mentionProvider.inviteXProductUser(id);
352
+ mentionProvider.inviteXProductUser(id, name);
353
353
  }
354
354
 
355
355
  // Don't insert into document if document data is sanitized.
@@ -16,7 +16,7 @@ export var ACTIONS = {
16
16
  SET_PROVIDER: 'SET_PROVIDER'
17
17
  };
18
18
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
19
- var PACKAGE_VERSION = "2.11.2";
19
+ var PACKAGE_VERSION = "2.12.0";
20
20
  var setProvider = function setProvider(provider) {
21
21
  return function (state, dispatch) {
22
22
  if (dispatch) {
@@ -353,7 +353,7 @@ export var createTypeAheadConfig = function createTypeAheadConfig(_ref6) {
353
353
  return insert(buildNodesForTeamMention(schema, item.mention, mentionProvider, sanitizePrivateContent));
354
354
  }
355
355
  if (isXProductUser && mentionProvider && mentionProvider.inviteXProductUser) {
356
- mentionProvider.inviteXProductUser(id);
356
+ mentionProvider.inviteXProductUser(id, name);
357
357
  }
358
358
 
359
359
  // Don't insert into document if document data is sanitized.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-mentions",
3
- "version": "2.11.2",
3
+ "version": "2.12.0",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -39,7 +39,7 @@
39
39
  "@atlaskit/editor-plugin-type-ahead": "^1.11.0",
40
40
  "@atlaskit/editor-prosemirror": "6.2.1",
41
41
  "@atlaskit/icon": "^23.3.0",
42
- "@atlaskit/mention": "^23.7.0",
42
+ "@atlaskit/mention": "^23.8.0",
43
43
  "@atlaskit/platform-feature-flags": "^0.3.0",
44
44
  "@atlaskit/theme": "^14.0.0",
45
45
  "@atlaskit/tokens": "^3.0.0",