@atlaskit/editor-plugin-mentions 4.0.2 → 4.1.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,20 @@
1
1
  # @atlaskit/editor-plugin-mentions
2
2
 
3
+ ## 4.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#120472](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120472)
8
+ [`73c800ab5f2fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73c800ab5f2fc) -
9
+ ED-26766 update adf-schema from 47.2.1 to 47.6.0 and adf-schema-json from 1.27.0 to 1.31.0
10
+
11
+ ### Patch Changes
12
+
13
+ - [#119706](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/119706)
14
+ [`42fd258ba482e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/42fd258ba482e) -
15
+ ED-26704: enables editor node virtualization experiment
16
+ - Updated dependencies
17
+
3
18
  ## 4.0.2
4
19
 
5
20
  ### Patch Changes
@@ -8,8 +8,8 @@ exports.mentionNodeSpec = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _adfSchema = require("@atlaskit/adf-schema");
10
10
  var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
11
  var _colors = require("@atlaskit/theme/colors");
12
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
13
13
  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
14
  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
15
  var isSSR = Boolean(process.env.REACT_SSR);
@@ -21,7 +21,7 @@ var isSSR = Boolean(process.env.REACT_SSR);
21
21
  * @returns
22
22
  */
23
23
  var mentionNodeSpec = exports.mentionNodeSpec = function mentionNodeSpec() {
24
- if (isSSR || !(0, _platformFeatureFlags.fg)('platform_editor_lego__inline_node_virtualization')) {
24
+ if (isSSR || (0, _experiments.editorExperiment)("platform_editor_inline_node_virtualization", "off")) {
25
25
  return _adfSchema.mention;
26
26
  }
27
27
  return _objectSpread(_objectSpread({}, _adfSchema.mention), {}, {
@@ -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 = "4.0.2";
27
+ var PACKAGE_VERSION = "4.1.0";
28
28
  var setProvider = function setProvider(provider) {
29
29
  return function (state, dispatch) {
30
30
  if (dispatch) {
@@ -1,7 +1,7 @@
1
1
  import { mention } from '@atlaskit/adf-schema';
2
2
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { N30A } from '@atlaskit/theme/colors';
4
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
5
5
  const isSSR = Boolean(process.env.REACT_SSR);
6
6
 
7
7
  /**
@@ -11,7 +11,7 @@ const isSSR = Boolean(process.env.REACT_SSR);
11
11
  * @returns
12
12
  */
13
13
  export const mentionNodeSpec = () => {
14
- if (isSSR || !fg('platform_editor_lego__inline_node_virtualization')) {
14
+ if (isSSR || editorExperiment("platform_editor_inline_node_virtualization", "off")) {
15
15
  return mention;
16
16
  }
17
17
  return {
@@ -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 = "4.0.2";
16
+ const PACKAGE_VERSION = "4.1.0";
17
17
  const setProvider = provider => (state, dispatch) => {
18
18
  if (dispatch) {
19
19
  dispatch(state.tr.setMeta(mentionPluginKey, {
@@ -3,8 +3,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  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) { _defineProperty(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; }
4
4
  import { mention } from '@atlaskit/adf-schema';
5
5
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { N30A } from '@atlaskit/theme/colors';
7
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
8
8
  var isSSR = Boolean(process.env.REACT_SSR);
9
9
 
10
10
  /**
@@ -14,7 +14,7 @@ var isSSR = Boolean(process.env.REACT_SSR);
14
14
  * @returns
15
15
  */
16
16
  export var mentionNodeSpec = function mentionNodeSpec() {
17
- if (isSSR || !fg('platform_editor_lego__inline_node_virtualization')) {
17
+ if (isSSR || editorExperiment("platform_editor_inline_node_virtualization", "off")) {
18
18
  return mention;
19
19
  }
20
20
  return _objectSpread(_objectSpread({}, mention), {}, {
@@ -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 = "4.0.2";
19
+ var PACKAGE_VERSION = "4.1.0";
20
20
  var setProvider = function setProvider(provider) {
21
21
  return function (state, dispatch) {
22
22
  if (dispatch) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-mentions",
3
- "version": "4.0.2",
3
+ "version": "4.1.0",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,19 +33,19 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/adf-schema": "^47.2.1",
36
+ "@atlaskit/adf-schema": "^47.6.0",
37
37
  "@atlaskit/css": "^0.10.0",
38
- "@atlaskit/editor-common": "^100.4.0",
39
- "@atlaskit/editor-plugin-analytics": "^2.0.0",
40
- "@atlaskit/editor-plugin-base": "^2.2.0",
38
+ "@atlaskit/editor-common": "^100.5.0",
39
+ "@atlaskit/editor-plugin-analytics": "^2.1.0",
40
+ "@atlaskit/editor-plugin-base": "^2.3.0",
41
41
  "@atlaskit/editor-plugin-context-identifier": "^2.0.0",
42
- "@atlaskit/editor-plugin-type-ahead": "^2.0.0",
42
+ "@atlaskit/editor-plugin-type-ahead": "^2.1.0",
43
43
  "@atlaskit/editor-prosemirror": "7.0.0",
44
44
  "@atlaskit/icon": "^24.1.0",
45
- "@atlaskit/mention": "^24.0.0",
45
+ "@atlaskit/mention": "^24.1.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
47
  "@atlaskit/theme": "^17.0.0",
48
- "@atlaskit/tokens": "^4.2.0",
48
+ "@atlaskit/tokens": "^4.3.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@compiled/react": "^0.18.2",
51
51
  "uuid": "^3.1.0"
@@ -115,9 +115,6 @@
115
115
  },
116
116
  "platform_editor_offline_editing_ga": {
117
117
  "type": "boolean"
118
- },
119
- "platform_editor_lego__inline_node_virtualization": {
120
- "type": "boolean"
121
118
  }
122
119
  }
123
120
  }