@atlaskit/editor-plugin-emoji 4.3.0 → 4.3.2

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,19 @@
1
1
  # @atlaskit/editor-plugin-emoji
2
2
 
3
+ ## 4.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.3.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`265c1bf0cefa4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/265c1bf0cefa4) -
14
+ Sorted type and interface props to improve Atlaskit docs
15
+ - Updated dependencies
16
+
3
17
  ## 4.3.0
4
18
 
5
19
  ### Minor Changes
@@ -5,12 +5,9 @@ var _typeof = require("@babel/runtime/helpers/typeof");
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.createEmojiPlugin = createEmojiPlugin;
9
8
  exports.createRateLimitReachedFunction = createRateLimitReachedFunction;
10
- exports.emojiToTypeaheadItem = exports.emojiPluginKey = exports.emojiPlugin = exports.defaultListLimit = void 0;
11
- exports.getEmojiPluginState = getEmojiPluginState;
9
+ exports.emojiToTypeaheadItem = exports.emojiPluginKey = exports.emojiPlugin = void 0;
12
10
  exports.memoize = memoize;
13
- exports.setProviderTr = exports.setProvider = void 0;
14
11
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
15
12
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
13
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
@@ -77,7 +74,7 @@ function memoize(fn) {
77
74
  };
78
75
  }
79
76
  var memoizedToItem = memoize(emojiToTypeaheadItem);
80
- var defaultListLimit = exports.defaultListLimit = 50;
77
+ var defaultListLimit = 50;
81
78
  var isFullShortName = function isFullShortName(query) {
82
79
  return query && query.length > 1 && query.charAt(0) === ':' && query.charAt(query.length - 1) === ':';
83
80
  };
@@ -487,7 +484,7 @@ var logRateWarning = function logRateWarning() {
487
484
  console.error('The emoji provider injected in the Editor is being reloaded frequently, this will cause a slow Editor experience.');
488
485
  }
489
486
  };
490
- var setProviderTr = exports.setProviderTr = createRateLimitReachedFunction(function (provider) {
487
+ var setProviderTr = createRateLimitReachedFunction(function (provider) {
491
488
  return function (tr) {
492
489
  return (0, _actions.setProvider)(provider)(tr);
493
490
  };
@@ -496,7 +493,7 @@ var setProviderTr = exports.setProviderTr = createRateLimitReachedFunction(funct
496
493
  // This seems like a really long time but the performance can be that laggy that we don't
497
494
  // even get 3 events in 3 seconds and miss this indicator.
498
495
  5000, 3, logRateWarning);
499
- var setProvider = exports.setProvider = function setProvider(provider) {
496
+ var setProvider = function setProvider(provider) {
500
497
  return function (state, dispatch) {
501
498
  if (dispatch) {
502
499
  var tr = setProviderTr(provider)(state.tr);
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  exports.inputRulePlugin = inputRulePlugin;
9
- exports.stateKey = void 0;
10
9
  var _readOnlyError2 = _interopRequireDefault(require("@babel/runtime/helpers/readOnlyError"));
11
10
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
12
11
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
@@ -18,7 +17,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
18
17
  var _analytics = require("@atlaskit/editor-common/analytics");
19
18
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
20
19
  var _utils = require("@atlaskit/editor-common/utils");
21
- var _state = require("@atlaskit/editor-prosemirror/state");
22
20
  var _prosemirrorInputRules = require("@atlaskit/prosemirror-input-rules");
23
21
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
24
22
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
@@ -224,7 +222,6 @@ var AsciiEmojiTransactionCreator = /*#__PURE__*/function () {
224
222
  }
225
223
  }]);
226
224
  }();
227
- var stateKey = exports.stateKey = new _state.PluginKey('asciiEmojiPlugin');
228
225
  var plugins = function plugins(schema, providerFactory, featureFlags, editorAnalyticsAPI, pluginInjectionApi) {
229
226
  return [inputRulePlugin(schema, editorAnalyticsAPI, pluginInjectionApi)].filter(function (plugin) {
230
227
  return !!plugin;
@@ -57,7 +57,7 @@ export function memoize(fn) {
57
57
  };
58
58
  }
59
59
  const memoizedToItem = memoize(emojiToTypeaheadItem);
60
- export const defaultListLimit = 50;
60
+ const defaultListLimit = 50;
61
61
  const isFullShortName = query => query && query.length > 1 && query.charAt(0) === ':' && query.charAt(query.length - 1) === ':';
62
62
  const TRIGGER = ':';
63
63
  function delayUntilIdle(cb) {
@@ -442,12 +442,12 @@ const logRateWarning = () => {
442
442
  console.error('The emoji provider injected in the Editor is being reloaded frequently, this will cause a slow Editor experience.');
443
443
  }
444
444
  };
445
- export const setProviderTr = createRateLimitReachedFunction(provider => tr => setProviderAction(provider)(tr),
445
+ const setProviderTr = createRateLimitReachedFunction(provider => tr => setProviderAction(provider)(tr),
446
446
  // If we change the emoji provider more than three times every 5 seconds we should warn.
447
447
  // This seems like a really long time but the performance can be that laggy that we don't
448
448
  // even get 3 events in 3 seconds and miss this indicator.
449
449
  5000, 3, logRateWarning);
450
- export const setProvider = provider => (state, dispatch) => {
450
+ const setProvider = provider => (state, dispatch) => {
451
451
  if (dispatch) {
452
452
  const tr = setProviderTr(provider)(state.tr);
453
453
  dispatch(tr);
@@ -455,10 +455,10 @@ export const setProvider = provider => (state, dispatch) => {
455
455
  return true;
456
456
  };
457
457
  export const emojiPluginKey = new PluginKey('emojiPlugin');
458
- export function getEmojiPluginState(state) {
458
+ function getEmojiPluginState(state) {
459
459
  return emojiPluginKey.getState(state) || {};
460
460
  }
461
- export function createEmojiPlugin(pmPluginFactoryParams, options, api) {
461
+ function createEmojiPlugin(pmPluginFactoryParams, options, api) {
462
462
  return new SafePlugin({
463
463
  key: emojiPluginKey,
464
464
  state: {
@@ -2,7 +2,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
3
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
4
  import { createRule } from '@atlaskit/editor-common/utils';
5
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
6
5
  import { createPlugin, leafNodeReplacementCharacter } from '@atlaskit/prosemirror-input-rules';
7
6
  let matcher;
8
7
  export function inputRulePlugin(schema, editorAnalyticsAPI, pluginInjectionApi) {
@@ -164,7 +163,6 @@ class AsciiEmojiTransactionCreator {
164
163
  return this.state.schema.text(this.match.trailingString);
165
164
  }
166
165
  }
167
- export const stateKey = new PluginKey('asciiEmojiPlugin');
168
166
  const plugins = (schema, providerFactory, featureFlags, editorAnalyticsAPI, pluginInjectionApi) => {
169
167
  return [inputRulePlugin(schema, editorAnalyticsAPI, pluginInjectionApi)].filter(plugin => !!plugin);
170
168
  };
@@ -63,7 +63,7 @@ export function memoize(fn) {
63
63
  };
64
64
  }
65
65
  var memoizedToItem = memoize(emojiToTypeaheadItem);
66
- export var defaultListLimit = 50;
66
+ var defaultListLimit = 50;
67
67
  var isFullShortName = function isFullShortName(query) {
68
68
  return query && query.length > 1 && query.charAt(0) === ':' && query.charAt(query.length - 1) === ':';
69
69
  };
@@ -473,7 +473,7 @@ var logRateWarning = function logRateWarning() {
473
473
  console.error('The emoji provider injected in the Editor is being reloaded frequently, this will cause a slow Editor experience.');
474
474
  }
475
475
  };
476
- export var setProviderTr = createRateLimitReachedFunction(function (provider) {
476
+ var setProviderTr = createRateLimitReachedFunction(function (provider) {
477
477
  return function (tr) {
478
478
  return setProviderAction(provider)(tr);
479
479
  };
@@ -482,7 +482,7 @@ export var setProviderTr = createRateLimitReachedFunction(function (provider) {
482
482
  // This seems like a really long time but the performance can be that laggy that we don't
483
483
  // even get 3 events in 3 seconds and miss this indicator.
484
484
  5000, 3, logRateWarning);
485
- export var setProvider = function setProvider(provider) {
485
+ var setProvider = function setProvider(provider) {
486
486
  return function (state, dispatch) {
487
487
  if (dispatch) {
488
488
  var tr = setProviderTr(provider)(state.tr);
@@ -492,10 +492,10 @@ export var setProvider = function setProvider(provider) {
492
492
  };
493
493
  };
494
494
  export var emojiPluginKey = new PluginKey('emojiPlugin');
495
- export function getEmojiPluginState(state) {
495
+ function getEmojiPluginState(state) {
496
496
  return emojiPluginKey.getState(state) || {};
497
497
  }
498
- export function createEmojiPlugin(pmPluginFactoryParams, options, api) {
498
+ function createEmojiPlugin(pmPluginFactoryParams, options, api) {
499
499
  return new SafePlugin({
500
500
  key: emojiPluginKey,
501
501
  state: {
@@ -12,7 +12,6 @@ function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prot
12
12
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
13
13
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
14
14
  import { createRule } from '@atlaskit/editor-common/utils';
15
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
16
15
  import { createPlugin, leafNodeReplacementCharacter } from '@atlaskit/prosemirror-input-rules';
17
16
  var matcher;
18
17
  export function inputRulePlugin(schema, editorAnalyticsAPI, pluginInjectionApi) {
@@ -215,7 +214,6 @@ var AsciiEmojiTransactionCreator = /*#__PURE__*/function () {
215
214
  }
216
215
  }]);
217
216
  }();
218
- export var stateKey = new PluginKey('asciiEmojiPlugin');
219
217
  var plugins = function plugins(schema, providerFactory, featureFlags, editorAnalyticsAPI, pluginInjectionApi) {
220
218
  return [inputRulePlugin(schema, editorAnalyticsAPI, pluginInjectionApi)].filter(function (plugin) {
221
219
  return !!plugin;
@@ -1,15 +1,12 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { Command, ExtractInjectionAPI, PMPluginFactoryParams, TypeAheadItem } from '@atlaskit/editor-common/types';
3
- import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
1
+ import type { TypeAheadItem } from '@atlaskit/editor-common/types';
4
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
3
  import type { EmojiDescription, EmojiProvider } from '@atlaskit/emoji';
6
- import type { EmojiPlugin, EmojiPluginOptions, EmojiPluginState } from './emojiPluginType';
4
+ import type { EmojiPlugin, EmojiPluginState } from './emojiPluginType';
7
5
  export declare const emojiToTypeaheadItem: (emoji: EmojiDescription, emojiProvider?: EmojiProvider) => TypeAheadItem;
8
6
  export declare function memoize<ResultFn extends (emoji: EmojiDescription, emojiProvider?: EmojiProvider) => TypeAheadItem>(fn: ResultFn): {
9
7
  call: ResultFn;
10
8
  clear: () => void;
11
9
  };
12
- export declare const defaultListLimit = 50;
13
10
  /**
14
11
  * Emoji plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
15
12
  * from `@atlaskit/editor-core`.
@@ -28,8 +25,4 @@ export declare const emojiPlugin: EmojiPlugin;
28
25
  * @returns Wrapped function
29
26
  */
30
27
  export declare function createRateLimitReachedFunction<LimitedFunction extends (...args: any[]) => any>(fn: Function, limitTime: number, limitCount: number, onLimitReached: () => void): (...args: Parameters<LimitedFunction>) => ReturnType<LimitedFunction> | undefined;
31
- export declare const setProviderTr: (provider?: EmojiProvider) => (tr: Transaction) => Transaction;
32
- export declare const setProvider: ((provider?: EmojiProvider) => Command) | undefined;
33
28
  export declare const emojiPluginKey: PluginKey<EmojiPluginState>;
34
- export declare function getEmojiPluginState(state: EditorState): EmojiPluginState;
35
- export declare function createEmojiPlugin(pmPluginFactoryParams: PMPluginFactoryParams, options?: EmojiPluginOptions, api?: ExtractInjectionAPI<EmojiPlugin>): SafePlugin<EmojiPluginState>;
@@ -11,36 +11,36 @@ import type { SelectionBookmark } from '@atlaskit/editor-prosemirror/state';
11
11
  import type { EmojiDescription, EmojiId, EmojiProvider, EmojiResourceConfig } from '@atlaskit/emoji';
12
12
  type SetInlineCommentDraftState = (drafting: boolean, inputMethod: InlineCommentInputMethod) => Command;
13
13
  type AnnotationPluginType = NextEditorPlugin<'annotation', {
14
+ actions: {
15
+ setInlineCommentDraftState: SetInlineCommentDraftState;
16
+ };
14
17
  sharedState: {
15
18
  annotations: InlineCommentMap;
16
- isVisible: boolean;
17
19
  bookmark?: SelectionBookmark;
20
+ isVisible: boolean;
18
21
  mouseData: {
19
22
  isSelecting: boolean;
20
23
  };
21
24
  };
22
- actions: {
23
- setInlineCommentDraftState: SetInlineCommentDraftState;
24
- };
25
25
  }>;
26
26
  type EditorViewModePluginType = NextEditorPlugin<'editorViewMode', {
27
27
  sharedState: EditorViewModePluginState;
28
28
  }>;
29
29
  export interface EmojiPluginOptions {
30
- headless?: boolean;
31
30
  emojiProvider?: Promise<EmojiProvider>;
31
+ headless?: boolean;
32
32
  }
33
33
  export type EmojiPluginState = {
34
- emojiProvider?: EmojiProvider;
35
- emojiResourceConfig?: EmojiResourceConfig;
36
34
  asciiMap?: Map<string, EmojiDescription>;
37
- inlineEmojiPopupOpen?: boolean;
35
+ emojiProvider?: EmojiProvider;
38
36
  /**
39
37
  * Occassionally it may be more convenient to deal with the
40
38
  * promise version of the emoji provider. This is available
41
39
  * immediately if used for the initial configuration
42
40
  */
43
41
  emojiProviderPromise?: Promise<EmojiProvider>;
42
+ emojiResourceConfig?: EmojiResourceConfig;
43
+ inlineEmojiPopupOpen?: boolean;
44
44
  };
45
45
  export type EmojiPluginSharedState = EmojiPluginState & {
46
46
  typeAheadHandler: TypeAheadHandler;
@@ -62,10 +62,10 @@ export type EmojiPluginDependencies = [
62
62
  OptionalPlugin<ConnectivityPlugin>
63
63
  ];
64
64
  export type EmojiPlugin = NextEditorPlugin<'emoji', {
65
- pluginConfiguration: EmojiPluginOptions | undefined;
65
+ actions: EmojiPluginActions;
66
+ commands: EmojiPluginCommands;
66
67
  dependencies: EmojiPluginDependencies;
68
+ pluginConfiguration: EmojiPluginOptions | undefined;
67
69
  sharedState: EmojiPluginSharedState | undefined;
68
- commands: EmojiPluginCommands;
69
- actions: EmojiPluginActions;
70
70
  }>;
71
71
  export {};
@@ -4,8 +4,8 @@ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { NodeView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { EmojiPlugin } from '../emojiPluginType';
6
6
  interface Params {
7
- intl: IntlShape;
8
7
  api: ExtractInjectionAPI<EmojiPlugin> | undefined;
8
+ intl: IntlShape;
9
9
  }
10
10
  /**
11
11
  * Check if we can nicely fallback to the nodes text
@@ -3,9 +3,7 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
3
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
4
  import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
5
5
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
6
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
7
6
  import { type EmojiPlugin } from '../emojiPluginType';
8
7
  export declare function inputRulePlugin(schema: Schema, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, pluginInjectionApi: ExtractInjectionAPI<EmojiPlugin> | undefined): SafePlugin | undefined;
9
- export declare const stateKey: PluginKey<any>;
10
8
  declare const plugins: (schema: Schema, providerFactory: ProviderFactory, featureFlags: FeatureFlags, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, pluginInjectionApi: ExtractInjectionAPI<EmojiPlugin> | undefined) => SafePlugin[];
11
9
  export default plugins;
@@ -1,15 +1,12 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { Command, ExtractInjectionAPI, PMPluginFactoryParams, TypeAheadItem } from '@atlaskit/editor-common/types';
3
- import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
1
+ import type { TypeAheadItem } from '@atlaskit/editor-common/types';
4
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
3
  import type { EmojiDescription, EmojiProvider } from '@atlaskit/emoji';
6
- import type { EmojiPlugin, EmojiPluginOptions, EmojiPluginState } from './emojiPluginType';
4
+ import type { EmojiPlugin, EmojiPluginState } from './emojiPluginType';
7
5
  export declare const emojiToTypeaheadItem: (emoji: EmojiDescription, emojiProvider?: EmojiProvider) => TypeAheadItem;
8
6
  export declare function memoize<ResultFn extends (emoji: EmojiDescription, emojiProvider?: EmojiProvider) => TypeAheadItem>(fn: ResultFn): {
9
7
  call: ResultFn;
10
8
  clear: () => void;
11
9
  };
12
- export declare const defaultListLimit = 50;
13
10
  /**
14
11
  * Emoji plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
15
12
  * from `@atlaskit/editor-core`.
@@ -28,8 +25,4 @@ export declare const emojiPlugin: EmojiPlugin;
28
25
  * @returns Wrapped function
29
26
  */
30
27
  export declare function createRateLimitReachedFunction<LimitedFunction extends (...args: any[]) => any>(fn: Function, limitTime: number, limitCount: number, onLimitReached: () => void): (...args: Parameters<LimitedFunction>) => ReturnType<LimitedFunction> | undefined;
31
- export declare const setProviderTr: (provider?: EmojiProvider) => (tr: Transaction) => Transaction;
32
- export declare const setProvider: ((provider?: EmojiProvider) => Command) | undefined;
33
28
  export declare const emojiPluginKey: PluginKey<EmojiPluginState>;
34
- export declare function getEmojiPluginState(state: EditorState): EmojiPluginState;
35
- export declare function createEmojiPlugin(pmPluginFactoryParams: PMPluginFactoryParams, options?: EmojiPluginOptions, api?: ExtractInjectionAPI<EmojiPlugin>): SafePlugin<EmojiPluginState>;
@@ -11,36 +11,36 @@ import type { SelectionBookmark } from '@atlaskit/editor-prosemirror/state';
11
11
  import type { EmojiDescription, EmojiId, EmojiProvider, EmojiResourceConfig } from '@atlaskit/emoji';
12
12
  type SetInlineCommentDraftState = (drafting: boolean, inputMethod: InlineCommentInputMethod) => Command;
13
13
  type AnnotationPluginType = NextEditorPlugin<'annotation', {
14
+ actions: {
15
+ setInlineCommentDraftState: SetInlineCommentDraftState;
16
+ };
14
17
  sharedState: {
15
18
  annotations: InlineCommentMap;
16
- isVisible: boolean;
17
19
  bookmark?: SelectionBookmark;
20
+ isVisible: boolean;
18
21
  mouseData: {
19
22
  isSelecting: boolean;
20
23
  };
21
24
  };
22
- actions: {
23
- setInlineCommentDraftState: SetInlineCommentDraftState;
24
- };
25
25
  }>;
26
26
  type EditorViewModePluginType = NextEditorPlugin<'editorViewMode', {
27
27
  sharedState: EditorViewModePluginState;
28
28
  }>;
29
29
  export interface EmojiPluginOptions {
30
- headless?: boolean;
31
30
  emojiProvider?: Promise<EmojiProvider>;
31
+ headless?: boolean;
32
32
  }
33
33
  export type EmojiPluginState = {
34
- emojiProvider?: EmojiProvider;
35
- emojiResourceConfig?: EmojiResourceConfig;
36
34
  asciiMap?: Map<string, EmojiDescription>;
37
- inlineEmojiPopupOpen?: boolean;
35
+ emojiProvider?: EmojiProvider;
38
36
  /**
39
37
  * Occassionally it may be more convenient to deal with the
40
38
  * promise version of the emoji provider. This is available
41
39
  * immediately if used for the initial configuration
42
40
  */
43
41
  emojiProviderPromise?: Promise<EmojiProvider>;
42
+ emojiResourceConfig?: EmojiResourceConfig;
43
+ inlineEmojiPopupOpen?: boolean;
44
44
  };
45
45
  export type EmojiPluginSharedState = EmojiPluginState & {
46
46
  typeAheadHandler: TypeAheadHandler;
@@ -62,10 +62,10 @@ export type EmojiPluginDependencies = [
62
62
  OptionalPlugin<ConnectivityPlugin>
63
63
  ];
64
64
  export type EmojiPlugin = NextEditorPlugin<'emoji', {
65
- pluginConfiguration: EmojiPluginOptions | undefined;
65
+ actions: EmojiPluginActions;
66
+ commands: EmojiPluginCommands;
66
67
  dependencies: EmojiPluginDependencies;
68
+ pluginConfiguration: EmojiPluginOptions | undefined;
67
69
  sharedState: EmojiPluginSharedState | undefined;
68
- commands: EmojiPluginCommands;
69
- actions: EmojiPluginActions;
70
70
  }>;
71
71
  export {};
@@ -4,8 +4,8 @@ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { NodeView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { EmojiPlugin } from '../emojiPluginType';
6
6
  interface Params {
7
- intl: IntlShape;
8
7
  api: ExtractInjectionAPI<EmojiPlugin> | undefined;
8
+ intl: IntlShape;
9
9
  }
10
10
  /**
11
11
  * Check if we can nicely fallback to the nodes text
@@ -3,9 +3,7 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
3
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
4
  import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
5
5
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
6
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
7
6
  import { type EmojiPlugin } from '../emojiPluginType';
8
7
  export declare function inputRulePlugin(schema: Schema, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, pluginInjectionApi: ExtractInjectionAPI<EmojiPlugin> | undefined): SafePlugin | undefined;
9
- export declare const stateKey: PluginKey<any>;
10
8
  declare const plugins: (schema: Schema, providerFactory: ProviderFactory, featureFlags: FeatureFlags, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, pluginInjectionApi: ExtractInjectionAPI<EmojiPlugin> | undefined) => SafePlugin[];
11
9
  export default plugins;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-emoji",
3
- "version": "4.3.0",
3
+ "version": "4.3.2",
4
4
  "description": "Emoji plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -21,7 +21,7 @@
21
21
  "singleton": true
22
22
  },
23
23
  "dependencies": {
24
- "@atlaskit/adf-schema": "^50.2.1",
24
+ "@atlaskit/adf-schema": "^50.2.2",
25
25
  "@atlaskit/editor-plugin-analytics": "^3.0.0",
26
26
  "@atlaskit/editor-plugin-annotation": "^3.3.0",
27
27
  "@atlaskit/editor-plugin-base": "^4.1.0",
@@ -31,29 +31,28 @@
31
31
  "@atlaskit/editor-prosemirror": "7.0.0",
32
32
  "@atlaskit/editor-shared-styles": "^3.6.0",
33
33
  "@atlaskit/emoji": "^69.5.0",
34
- "@atlaskit/icon": "^28.0.0",
34
+ "@atlaskit/icon": "^28.1.0",
35
35
  "@atlaskit/platform-feature-flags": "^1.1.0",
36
36
  "@atlaskit/prosemirror-input-rules": "^3.4.0",
37
- "@atlaskit/theme": "^19.0.0",
38
- "@atlaskit/tmp-editor-statsig": "^11.3.0",
39
- "@atlaskit/tokens": "^6.0.0",
37
+ "@atlaskit/theme": "^20.0.0",
38
+ "@atlaskit/tmp-editor-statsig": "^11.8.0",
39
+ "@atlaskit/tokens": "^6.1.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",
43
43
  "react-loadable": "^5.1.0"
44
44
  },
45
45
  "peerDependencies": {
46
- "@atlaskit/editor-common": "^107.26.0",
46
+ "@atlaskit/editor-common": "^107.31.0",
47
47
  "react": "^18.2.0",
48
48
  "react-dom": "^18.2.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@af/visual-regression": "workspace:^",
52
52
  "@atlaskit/editor-plugin-composition": "^2.0.0",
53
- "@atlaskit/editor-plugin-decorations": "^3.0.0",
53
+ "@atlaskit/editor-plugin-decorations": "^3.1.0",
54
54
  "@atlaskit/ssr": "workspace:^",
55
55
  "@atlaskit/util-data-test": "^18.1.0",
56
- "@atlaskit/visual-regression": "workspace:^",
57
56
  "@testing-library/react": "^13.4.0",
58
57
  "wait-for-expect": "^1.2.0"
59
58
  },