@atlaskit/editor-plugin-emoji 3.0.2 → 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,32 @@
|
|
|
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
|
+
|
|
18
|
+
## 3.0.3
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- [#120533](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120533)
|
|
23
|
+
[`f1bec731e278f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1bec731e278f) -
|
|
24
|
+
Adds a `sideEffects` field to ensure this package does not have Compiled styles tree-shaken in the
|
|
25
|
+
future to avoid an accidental regression.
|
|
26
|
+
|
|
27
|
+
This is related to
|
|
28
|
+
https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953
|
|
29
|
+
|
|
3
30
|
## 3.0.2
|
|
4
31
|
|
|
5
32
|
### 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
|
|
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 ||
|
|
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 {
|
|
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 ||
|
|
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 {
|
|
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 ||
|
|
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
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Emoji plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
-
"sideEffects":
|
|
15
|
+
"sideEffects": [
|
|
16
|
+
"*.compiled.css"
|
|
17
|
+
],
|
|
16
18
|
"atlaskit:src": "src/index.ts",
|
|
17
19
|
"atlassian": {
|
|
18
20
|
"team": "Editor: Collaboration",
|
|
@@ -20,21 +22,21 @@
|
|
|
20
22
|
"runReact18": true
|
|
21
23
|
},
|
|
22
24
|
"dependencies": {
|
|
23
|
-
"@atlaskit/adf-schema": "^47.
|
|
24
|
-
"@atlaskit/editor-common": "^100.
|
|
25
|
-
"@atlaskit/editor-plugin-analytics": "^2.
|
|
26
|
-
"@atlaskit/editor-plugin-annotation": "2.0
|
|
27
|
-
"@atlaskit/editor-plugin-base": "^2.
|
|
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",
|
|
28
30
|
"@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
|
|
29
|
-
"@atlaskit/editor-plugin-type-ahead": "^2.
|
|
31
|
+
"@atlaskit/editor-plugin-type-ahead": "^2.1.0",
|
|
30
32
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
31
33
|
"@atlaskit/emoji": "^68.0.0",
|
|
32
34
|
"@atlaskit/icon": "^24.1.0",
|
|
33
|
-
"@atlaskit/node-data-provider": "^4.
|
|
35
|
+
"@atlaskit/node-data-provider": "^4.1.0",
|
|
34
36
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
35
37
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
36
38
|
"@atlaskit/theme": "^17.0.0",
|
|
37
|
-
"@atlaskit/tokens": "^4.
|
|
39
|
+
"@atlaskit/tokens": "^4.3.0",
|
|
38
40
|
"@babel/runtime": "^7.0.0",
|
|
39
41
|
"@emotion/react": "^11.7.1",
|
|
40
42
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
@@ -109,9 +111,6 @@
|
|
|
109
111
|
"platform_inline_node_as_valid_annotation_selection": {
|
|
110
112
|
"type": "boolean"
|
|
111
113
|
},
|
|
112
|
-
"platform_editor_lego__inline_node_virtualization": {
|
|
113
|
-
"type": "boolean"
|
|
114
|
-
},
|
|
115
114
|
"platform_editor_preload_emoji_picker": {
|
|
116
115
|
"type": "boolean"
|
|
117
116
|
}
|