@atlaskit/editor-plugin-mentions 4.4.2 → 4.5.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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/editor-plugin-mentions
2
2
 
3
+ ## 4.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#148798](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/148798)
8
+ [`8112e98809756`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8112e98809756) -
9
+ [No Issue] Clean up virtualization feature flag
10
+ - Updated dependencies
11
+
12
+ ## 4.5.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#145336](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/145336)
17
+ [`7c22413232131`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7c22413232131) -
18
+ [https://product-fabric.atlassian.net/browse/ED-27657](ED-27657) - move the `mentions` and
19
+ `tasksAndDecisions` plugins configuration to `@atlassian/confluence-presets` package
20
+
3
21
  ## 4.4.2
4
22
 
5
23
  ### Patch Changes
@@ -9,7 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
9
9
  var _adfSchema = require("@atlaskit/adf-schema");
10
10
  var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
11
11
  var _colors = require("@atlaskit/theme/colors");
12
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
13
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
13
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15
14
  var isSSR = Boolean(process.env.REACT_SSR);
@@ -21,7 +20,7 @@ var isSSR = Boolean(process.env.REACT_SSR);
21
20
  * @returns
22
21
  */
23
22
  var mentionNodeSpec = exports.mentionNodeSpec = function mentionNodeSpec() {
24
- if (isSSR || (0, _experiments.editorExperiment)('platform_editor_inline_node_virtualization', 'off')) {
23
+ if (isSSR) {
25
24
  return _adfSchema.mention;
26
25
  }
27
26
  return _objectSpread(_objectSpread({}, _adfSchema.mention), {}, {
@@ -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.4.2";
29
+ var PACKAGE_VERSION = "4.5.1";
30
30
  var setProvider = function setProvider(provider) {
31
31
  return function (state, dispatch) {
32
32
  if (dispatch) {
@@ -1,7 +1,6 @@
1
1
  import { mention } from '@atlaskit/adf-schema';
2
2
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
3
3
  import { N30A } from '@atlaskit/theme/colors';
4
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
5
4
  const isSSR = Boolean(process.env.REACT_SSR);
6
5
 
7
6
  /**
@@ -11,7 +10,7 @@ const isSSR = Boolean(process.env.REACT_SSR);
11
10
  * @returns
12
11
  */
13
12
  export const mentionNodeSpec = () => {
14
- if (isSSR || editorExperiment('platform_editor_inline_node_virtualization', 'off')) {
13
+ if (isSSR) {
15
14
  return mention;
16
15
  }
17
16
  return {
@@ -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.4.2";
18
+ const PACKAGE_VERSION = "4.5.1";
19
19
  const setProvider = provider => (state, dispatch) => {
20
20
  if (dispatch) {
21
21
  dispatch(state.tr.setMeta(mentionPluginKey, {
@@ -4,7 +4,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import { mention } from '@atlaskit/adf-schema';
5
5
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
6
6
  import { N30A } from '@atlaskit/theme/colors';
7
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
8
7
  var isSSR = Boolean(process.env.REACT_SSR);
9
8
 
10
9
  /**
@@ -14,7 +13,7 @@ var isSSR = Boolean(process.env.REACT_SSR);
14
13
  * @returns
15
14
  */
16
15
  export var mentionNodeSpec = function mentionNodeSpec() {
17
- if (isSSR || editorExperiment('platform_editor_inline_node_virtualization', 'off')) {
16
+ if (isSSR) {
18
17
  return mention;
19
18
  }
20
19
  return _objectSpread(_objectSpread({}, mention), {}, {
@@ -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.4.2";
21
+ var PACKAGE_VERSION = "4.5.1";
22
22
  var setProvider = function setProvider(provider) {
23
23
  return function (state, dispatch) {
24
24
  if (dispatch) {
@@ -1,3 +1,3 @@
1
1
  export { mentionsPlugin } from './mentionsPlugin';
2
2
  export type { MentionsPlugin } from './mentionsPluginType';
3
- export type { MentionPluginConfig, MentionPluginOptions, MentionsPluginOptions, MentionSharedState, } from './types';
3
+ export type { MentionPluginConfig, MentionPluginOptions, MentionsPluginOptions, MentionSharedState, MentionsChangedHandler, } from './types';
@@ -15,16 +15,17 @@ export interface MentionPluginConfig {
15
15
  insertDisplayName?: boolean;
16
16
  profilecardProvider?: Promise<ProfilecardProvider>;
17
17
  }
18
+ export type MentionsChangedHandler = (changes: {
19
+ type: 'added' | 'deleted';
20
+ localId: string;
21
+ id: string;
22
+ taskLocalId?: string;
23
+ }[]) => void;
18
24
  export interface MentionsPluginOptions extends MentionPluginConfig {
19
25
  mentionProvider?: Providers['mentionProvider'];
20
26
  sanitizePrivateContent?: boolean;
21
27
  allowZeroWidthSpaceAfter?: boolean;
22
- handleMentionsChanged?: (mentionChanges: {
23
- type: 'added' | 'deleted';
24
- localId: string;
25
- id: string;
26
- taskLocalId?: string;
27
- }[]) => void;
28
+ handleMentionsChanged?: MentionsChangedHandler;
28
29
  }
29
30
  /**
30
31
  * @private
@@ -1,3 +1,3 @@
1
1
  export { mentionsPlugin } from './mentionsPlugin';
2
2
  export type { MentionsPlugin } from './mentionsPluginType';
3
- export type { MentionPluginConfig, MentionPluginOptions, MentionsPluginOptions, MentionSharedState, } from './types';
3
+ export type { MentionPluginConfig, MentionPluginOptions, MentionsPluginOptions, MentionSharedState, MentionsChangedHandler, } from './types';
@@ -15,16 +15,17 @@ export interface MentionPluginConfig {
15
15
  insertDisplayName?: boolean;
16
16
  profilecardProvider?: Promise<ProfilecardProvider>;
17
17
  }
18
+ export type MentionsChangedHandler = (changes: {
19
+ type: 'added' | 'deleted';
20
+ localId: string;
21
+ id: string;
22
+ taskLocalId?: string;
23
+ }[]) => void;
18
24
  export interface MentionsPluginOptions extends MentionPluginConfig {
19
25
  mentionProvider?: Providers['mentionProvider'];
20
26
  sanitizePrivateContent?: boolean;
21
27
  allowZeroWidthSpaceAfter?: boolean;
22
- handleMentionsChanged?: (mentionChanges: {
23
- type: 'added' | 'deleted';
24
- localId: string;
25
- id: string;
26
- taskLocalId?: string;
27
- }[]) => void;
28
+ handleMentionsChanged?: MentionsChangedHandler;
28
29
  }
29
30
  /**
30
31
  * @private
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-mentions",
3
- "version": "4.4.2",
3
+ "version": "4.5.1",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,21 +35,21 @@
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^47.6.0",
37
37
  "@atlaskit/css": "^0.10.0",
38
- "@atlaskit/editor-common": "^103.10.0",
38
+ "@atlaskit/editor-common": "^104.0.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
40
40
  "@atlaskit/editor-plugin-base": "^2.3.0",
41
41
  "@atlaskit/editor-plugin-context-identifier": "^2.1.0",
42
- "@atlaskit/editor-plugin-selection": "^2.1.0",
43
- "@atlaskit/editor-plugin-type-ahead": "^2.5.0",
42
+ "@atlaskit/editor-plugin-selection": "^2.2.0",
43
+ "@atlaskit/editor-plugin-type-ahead": "^2.6.0",
44
44
  "@atlaskit/editor-prosemirror": "7.0.0",
45
45
  "@atlaskit/icon": "^25.6.0",
46
46
  "@atlaskit/mention": "^24.1.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/popper": "^7.0.0",
49
49
  "@atlaskit/portal": "^5.1.0",
50
- "@atlaskit/profilecard": "^23.8.0",
50
+ "@atlaskit/profilecard": "^23.10.0",
51
51
  "@atlaskit/theme": "^18.0.0",
52
- "@atlaskit/tmp-editor-statsig": "^4.12.0",
52
+ "@atlaskit/tmp-editor-statsig": "^4.16.0",
53
53
  "@atlaskit/tokens": "^4.8.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@compiled/react": "^0.18.3",
@@ -63,9 +63,9 @@
63
63
  "react-intl-next": "npm:react-intl@^5.18.1"
64
64
  },
65
65
  "devDependencies": {
66
- "@af/visual-regression": "^1.3.0",
67
- "@atlaskit/ssr": "^0.4.0",
68
- "@atlaskit/visual-regression": "^0.10.0",
66
+ "@af/visual-regression": "workspace:^",
67
+ "@atlaskit/ssr": "workspace:^",
68
+ "@atlaskit/visual-regression": "workspace:^",
69
69
  "@testing-library/react": "^13.4.0",
70
70
  "typescript": "~5.4.2",
71
71
  "wait-for-expect": "^1.2.0"