@atlaskit/editor-plugin-emoji 2.9.3 → 3.0.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,33 @@
1
1
  # @atlaskit/editor-plugin-emoji
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
8
+ [`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
9
+ This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
10
+ status of only supporting React 18 going forward. No explicit breaking change to React support has
11
+ been made in this release, but this is to signify going forward, breaking changes for React 16 or
12
+ React 17 may come via non-major semver releases.
13
+
14
+ Please refer this community post for more details:
15
+ https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
21
+ ## 2.9.4
22
+
23
+ ### Patch Changes
24
+
25
+ - [#114079](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114079)
26
+ [`d32dc78b19302`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d32dc78b19302) -
27
+ [ux] Re-enables emojis while offline and adds a fallback for emojis in the emoji picker if the
28
+ image cannot be loaded
29
+ - Updated dependencies
30
+
3
31
  ## 2.9.3
4
32
 
5
33
  ### Patch Changes
@@ -320,7 +320,7 @@ var emojiPlugin = exports.emojiPlugin = function emojiPlugin(_ref2) {
320
320
  description: formatMessage(_messages.toolbarInsertBlockMessages.emojiDescription),
321
321
  priority: 500,
322
322
  keyshortcut: ':',
323
- isDisabledOffline: true,
323
+ isDisabledOffline: (0, _platformFeatureFlags.fg)('platform_editor_preload_emoji_picker') ? false : true,
324
324
  icon: function icon() {
325
325
  return /*#__PURE__*/_react.default.createElement(_quickInsert.IconEmoji, null);
326
326
  },
@@ -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 _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
- var _colors = require("@atlaskit/theme/colors");
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);
@@ -38,14 +37,14 @@ var emojiNodeSpec = exports.emojiNodeSpec = function emojiNodeSpec() {
38
37
  contenteditable: 'false',
39
38
  style: (0, _lazyNodeView.convertToInlineCss)({
40
39
  content: "''",
41
- fill: 'f7f7f7',
40
+ fill: "var(--ds-background-neutral, #091E420F)",
42
41
  minWidth: "20px",
43
42
  width: "20px",
44
43
  height: "20px",
45
44
  position: 'relative',
46
45
  margin: '-1px 0',
47
46
  display: 'inline-block',
48
- background: "var(--ds-background-neutral, ".concat(_colors.N20A, ")"),
47
+ background: "var(--ds-background-neutral, #091E420F)",
49
48
  borderRadius: "var(--ds-border-radius-100, 3px)",
50
49
  overflow: 'hidden',
51
50
  verticalAlign: 'middle',
@@ -282,7 +282,7 @@ export const emojiPlugin = ({
282
282
  description: formatMessage(messages.emojiDescription),
283
283
  priority: 500,
284
284
  keyshortcut: ':',
285
- isDisabledOffline: true,
285
+ isDisabledOffline: fg('platform_editor_preload_emoji_picker') ? false : true,
286
286
  icon: () => /*#__PURE__*/React.createElement(IconEmoji, null),
287
287
  action(insert, state) {
288
288
  var _api$typeAhead;
@@ -1,7 +1,6 @@
1
1
  import { emoji } from '@atlaskit/adf-schema';
2
2
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
3
3
  import { fg } from '@atlaskit/platform-feature-flags';
4
- import { N20A } from '@atlaskit/theme/colors';
5
4
  const isSSR = Boolean(process.env.REACT_SSR);
6
5
 
7
6
  /**
@@ -30,14 +29,14 @@ export const emojiNodeSpec = () => {
30
29
  contenteditable: 'false',
31
30
  style: convertToInlineCss({
32
31
  content: "''",
33
- fill: 'f7f7f7',
32
+ fill: "var(--ds-background-neutral, #091E420F)",
34
33
  minWidth: `20px`,
35
34
  width: `20px`,
36
35
  height: `20px`,
37
36
  position: 'relative',
38
37
  margin: '-1px 0',
39
38
  display: 'inline-block',
40
- background: `var(--ds-background-neutral, ${N20A})`,
39
+ background: "var(--ds-background-neutral, #091E420F)",
41
40
  borderRadius: "var(--ds-border-radius-100, 3px)",
42
41
  overflow: 'hidden',
43
42
  verticalAlign: 'middle',
@@ -305,7 +305,7 @@ export var emojiPlugin = function emojiPlugin(_ref2) {
305
305
  description: formatMessage(messages.emojiDescription),
306
306
  priority: 500,
307
307
  keyshortcut: ':',
308
- isDisabledOffline: true,
308
+ isDisabledOffline: fg('platform_editor_preload_emoji_picker') ? false : true,
309
309
  icon: function icon() {
310
310
  return /*#__PURE__*/React.createElement(IconEmoji, null);
311
311
  },
@@ -4,7 +4,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import { emoji } from '@atlaskit/adf-schema';
5
5
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
6
6
  import { fg } from '@atlaskit/platform-feature-flags';
7
- import { N20A } from '@atlaskit/theme/colors';
8
7
  var isSSR = Boolean(process.env.REACT_SSR);
9
8
 
10
9
  /**
@@ -31,14 +30,14 @@ export var emojiNodeSpec = function emojiNodeSpec() {
31
30
  contenteditable: 'false',
32
31
  style: convertToInlineCss({
33
32
  content: "''",
34
- fill: 'f7f7f7',
33
+ fill: "var(--ds-background-neutral, #091E420F)",
35
34
  minWidth: "20px",
36
35
  width: "20px",
37
36
  height: "20px",
38
37
  position: 'relative',
39
38
  margin: '-1px 0',
40
39
  display: 'inline-block',
41
- background: "var(--ds-background-neutral, ".concat(N20A, ")"),
40
+ background: "var(--ds-background-neutral, #091E420F)",
42
41
  borderRadius: "var(--ds-border-radius-100, 3px)",
43
42
  overflow: 'hidden',
44
43
  verticalAlign: 'middle',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-emoji",
3
- "version": "2.9.3",
3
+ "version": "3.0.0",
4
4
  "description": "Emoji plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -21,33 +21,33 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@atlaskit/adf-schema": "^47.2.1",
24
- "@atlaskit/editor-common": "^99.17.0",
25
- "@atlaskit/editor-plugin-analytics": "^1.12.0",
26
- "@atlaskit/editor-plugin-annotation": "1.28.1",
24
+ "@atlaskit/editor-common": "^100.0.0",
25
+ "@atlaskit/editor-plugin-analytics": "^2.0.0",
26
+ "@atlaskit/editor-plugin-annotation": "2.0.0",
27
27
  "@atlaskit/editor-plugin-base": "^2.2.0",
28
- "@atlaskit/editor-plugin-editor-viewmode": "^2.2.0",
29
- "@atlaskit/editor-plugin-type-ahead": "^1.13.0",
28
+ "@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
29
+ "@atlaskit/editor-plugin-type-ahead": "^2.0.0",
30
30
  "@atlaskit/editor-prosemirror": "7.0.0",
31
- "@atlaskit/emoji": "^67.14.0",
32
- "@atlaskit/icon": "^23.9.0",
33
- "@atlaskit/node-data-provider": "^3.1.0",
31
+ "@atlaskit/emoji": "^68.0.0",
32
+ "@atlaskit/icon": "^24.0.0",
33
+ "@atlaskit/node-data-provider": "^4.0.0",
34
34
  "@atlaskit/platform-feature-flags": "^1.1.0",
35
35
  "@atlaskit/prosemirror-input-rules": "^3.3.0",
36
- "@atlaskit/theme": "^16.0.0",
37
- "@atlaskit/tokens": "^3.2.0",
36
+ "@atlaskit/theme": "^17.0.0",
37
+ "@atlaskit/tokens": "^4.0.0",
38
38
  "@babel/runtime": "^7.0.0",
39
39
  "@emotion/react": "^11.7.1",
40
40
  "react-intl-next": "npm:react-intl@^5.18.1",
41
41
  "react-loadable": "^5.1.0"
42
42
  },
43
43
  "peerDependencies": {
44
- "react": "^16.8.0 || ^17.0.0 || ~18.2.0",
45
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.2.0"
44
+ "react": "^18.2.0",
45
+ "react-dom": "^18.2.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@af/visual-regression": "*",
49
49
  "@atlaskit/editor-plugin-composition": "^1.3.0",
50
- "@atlaskit/editor-plugin-decorations": "^1.5.0",
50
+ "@atlaskit/editor-plugin-decorations": "^2.0.0",
51
51
  "@atlaskit/ssr": "*",
52
52
  "@atlaskit/util-data-test": "^18.0.0",
53
53
  "@atlaskit/visual-regression": "*",