@atlaskit/editor-plugin-emoji 23.0.4 → 23.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,17 @@
1
1
  # @atlaskit/editor-plugin-emoji
2
2
 
3
+ ## 23.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`6a4ce5b236e6b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6a4ce5b236e6b) -
8
+ [ux] Expose the emoji content identifier in shared state and pass it to toolbar emoji pickers so
9
+ Confluence comments can use AI emoji generation behind `confluence_ai_generated_emojis`.
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 23.0.4
4
16
 
5
17
  ### 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.0",
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": "^214.0.0",
45
45
  "@atlaskit/tokens": "^20.1.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "@emotion/react": "^11.7.1",