@atlaskit/editor-plugin-emoji 23.0.4 → 23.1.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-emoji
2
2
 
3
+ ## 23.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 23.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`6a4ce5b236e6b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6a4ce5b236e6b) -
14
+ [ux] Expose the emoji content identifier in shared state and pass it to toolbar emoji pickers so
15
+ Confluence comments can use AI emoji generation behind `confluence_ai_generated_emojis`.
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 23.0.4
4
22
 
5
23
  ### Patch Changes
@@ -250,6 +250,7 @@ var emojiPlugin = exports.emojiPlugin = function emojiPlugin(_ref2) {
250
250
  inlineEmojiPopupOpen = _ref9.inlineEmojiPopupOpen,
251
251
  emojiProviderPromise = _ref9.emojiProviderPromise;
252
252
  return {
253
+ contentId: options === null || options === void 0 ? void 0 : options.contentId,
253
254
  emojiResourceConfig: emojiResourceConfig,
254
255
  asciiMap: asciiMap,
255
256
  typeAheadHandler: typeAhead,
@@ -237,6 +237,7 @@ export const emojiPlugin = ({
237
237
  emojiProviderPromise
238
238
  } = (_emojiPluginKey$getSt = emojiPluginKey.getState(editorState)) !== null && _emojiPluginKey$getSt !== void 0 ? _emojiPluginKey$getSt : {};
239
239
  return {
240
+ contentId: options === null || options === void 0 ? void 0 : options.contentId,
240
241
  emojiResourceConfig,
241
242
  asciiMap,
242
243
  typeAheadHandler: typeAhead,
@@ -239,6 +239,7 @@ export var emojiPlugin = function emojiPlugin(_ref2) {
239
239
  inlineEmojiPopupOpen = _ref9.inlineEmojiPopupOpen,
240
240
  emojiProviderPromise = _ref9.emojiProviderPromise;
241
241
  return {
242
+ contentId: options === null || options === void 0 ? void 0 : options.contentId,
242
243
  emojiResourceConfig: emojiResourceConfig,
243
244
  asciiMap: asciiMap,
244
245
  typeAheadHandler: typeAhead,
@@ -49,6 +49,8 @@ export type EmojiPluginState = {
49
49
  inlineEmojiPopupOpen?: boolean;
50
50
  };
51
51
  export type EmojiPluginSharedState = EmojiPluginState & {
52
+ /** Content identifier forwarded to content-aware emoji picker experiences. */
53
+ contentId?: string;
52
54
  typeAheadHandler: TypeAheadHandler;
53
55
  };
54
56
  export type EmojiPluginCommands = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-emoji",
3
- "version": "23.0.4",
3
+ "version": "23.1.1",
4
4
  "description": "Emoji plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -41,7 +41,7 @@
41
41
  "@atlaskit/platform-feature-experiments": "^0.3.0",
42
42
  "@atlaskit/platform-feature-flags": "^2.2.0",
43
43
  "@atlaskit/prosemirror-input-rules": "^4.1.0",
44
- "@atlaskit/tmp-editor-statsig": "^213.0.0",
44
+ "@atlaskit/tmp-editor-statsig": "^215.0.0",
45
45
  "@atlaskit/tokens": "^20.1.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "@emotion/react": "^11.7.1",
@@ -50,7 +50,7 @@
50
50
  "react-loadable": "^5.1.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^126.2.0",
53
+ "@atlaskit/editor-common": "^126.3.0",
54
54
  "react": "^18.2.0 || ^19.2.0",
55
55
  "react-dom": "^18.2.0 || ^19.2.0",
56
56
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"