@atlaskit/editor-plugin-emoji 3.0.3 → 3.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-emoji
2
2
 
3
+ ## 3.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
  ## 3.0.3
4
19
 
5
20
  ### Patch Changes
@@ -8,7 +8,7 @@ exports.emojiNodeSpec = 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");
11
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
12
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; }
13
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; }
14
14
  var isSSR = Boolean(process.env.REACT_SSR);
@@ -20,7 +20,7 @@ var isSSR = Boolean(process.env.REACT_SSR);
20
20
  * @returns
21
21
  */
22
22
  var emojiNodeSpec = exports.emojiNodeSpec = function emojiNodeSpec() {
23
- if (isSSR || !(0, _platformFeatureFlags.fg)('platform_editor_lego__inline_node_virtualization')) {
23
+ if (isSSR || (0, _experiments.editorExperiment)("platform_editor_inline_node_virtualization", "off")) {
24
24
  return _adfSchema.emoji;
25
25
  }
26
26
  return _objectSpread(_objectSpread({}, _adfSchema.emoji), {}, {
@@ -1,6 +1,6 @@
1
1
  import { emoji } from '@atlaskit/adf-schema';
2
2
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
3
- import { fg } from '@atlaskit/platform-feature-flags';
3
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
4
4
  const isSSR = Boolean(process.env.REACT_SSR);
5
5
 
6
6
  /**
@@ -10,7 +10,7 @@ const isSSR = Boolean(process.env.REACT_SSR);
10
10
  * @returns
11
11
  */
12
12
  export const emojiNodeSpec = () => {
13
- if (isSSR || !fg('platform_editor_lego__inline_node_virtualization')) {
13
+ if (isSSR || editorExperiment("platform_editor_inline_node_virtualization", "off")) {
14
14
  return emoji;
15
15
  }
16
16
  return {
@@ -3,7 +3,7 @@ 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 { emoji } from '@atlaskit/adf-schema';
5
5
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
6
- import { fg } from '@atlaskit/platform-feature-flags';
6
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
7
7
  var isSSR = Boolean(process.env.REACT_SSR);
8
8
 
9
9
  /**
@@ -13,7 +13,7 @@ var isSSR = Boolean(process.env.REACT_SSR);
13
13
  * @returns
14
14
  */
15
15
  export var emojiNodeSpec = function emojiNodeSpec() {
16
- if (isSSR || !fg('platform_editor_lego__inline_node_virtualization')) {
16
+ if (isSSR || editorExperiment("platform_editor_inline_node_virtualization", "off")) {
17
17
  return emoji;
18
18
  }
19
19
  return _objectSpread(_objectSpread({}, emoji), {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-emoji",
3
- "version": "3.0.3",
3
+ "version": "3.1.0",
4
4
  "description": "Emoji plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -22,21 +22,21 @@
22
22
  "runReact18": true
23
23
  },
24
24
  "dependencies": {
25
- "@atlaskit/adf-schema": "^47.2.1",
26
- "@atlaskit/editor-common": "^100.4.0",
27
- "@atlaskit/editor-plugin-analytics": "^2.0.0",
28
- "@atlaskit/editor-plugin-annotation": "2.0.2",
29
- "@atlaskit/editor-plugin-base": "^2.2.0",
25
+ "@atlaskit/adf-schema": "^47.6.0",
26
+ "@atlaskit/editor-common": "^100.5.0",
27
+ "@atlaskit/editor-plugin-analytics": "^2.1.0",
28
+ "@atlaskit/editor-plugin-annotation": "2.1.0",
29
+ "@atlaskit/editor-plugin-base": "^2.3.0",
30
30
  "@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
31
- "@atlaskit/editor-plugin-type-ahead": "^2.0.0",
31
+ "@atlaskit/editor-plugin-type-ahead": "^2.1.0",
32
32
  "@atlaskit/editor-prosemirror": "7.0.0",
33
33
  "@atlaskit/emoji": "^68.0.0",
34
34
  "@atlaskit/icon": "^24.1.0",
35
- "@atlaskit/node-data-provider": "^4.0.0",
35
+ "@atlaskit/node-data-provider": "^4.1.0",
36
36
  "@atlaskit/platform-feature-flags": "^1.1.0",
37
37
  "@atlaskit/prosemirror-input-rules": "^3.3.0",
38
38
  "@atlaskit/theme": "^17.0.0",
39
- "@atlaskit/tokens": "^4.2.0",
39
+ "@atlaskit/tokens": "^4.3.0",
40
40
  "@babel/runtime": "^7.0.0",
41
41
  "@emotion/react": "^11.7.1",
42
42
  "react-intl-next": "npm:react-intl@^5.18.1",
@@ -111,9 +111,6 @@
111
111
  "platform_inline_node_as_valid_annotation_selection": {
112
112
  "type": "boolean"
113
113
  },
114
- "platform_editor_lego__inline_node_virtualization": {
115
- "type": "boolean"
116
- },
117
114
  "platform_editor_preload_emoji_picker": {
118
115
  "type": "boolean"
119
116
  }