@atlaskit/editor-plugin-emoji 2.7.15 → 2.7.16
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 +9 -0
- package/dist/cjs/{plugin.js → emojiPlugin.js} +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/pm-plugins/actions.js +3 -3
- package/dist/es2019/{plugin.js → emojiPlugin.js} +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/pm-plugins/actions.js +1 -1
- package/dist/esm/{plugin.js → emojiPlugin.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/pm-plugins/actions.js +1 -1
- package/dist/{types-ts4.5/plugin.d.ts → types/emojiPlugin.d.ts} +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/nodeviews/emoji.d.ts +1 -1
- package/dist/types/pm-plugins/actions.d.ts +1 -1
- package/dist/types/pm-plugins/ascii-input-rules.d.ts +1 -1
- package/dist/{types/plugin.d.ts → types-ts4.5/emojiPlugin.d.ts} +1 -1
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/nodeviews/emoji.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/actions.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/ascii-input-rules.d.ts +1 -1
- package/package.json +6 -3
- /package/dist/cjs/{commands → editor-commands}/insert-emoji.js +0 -0
- /package/dist/cjs/{types.js → emojiPluginType.js} +0 -0
- /package/dist/es2019/{commands → editor-commands}/insert-emoji.js +0 -0
- /package/dist/es2019/{types.js → emojiPluginType.js} +0 -0
- /package/dist/esm/{commands → editor-commands}/insert-emoji.js +0 -0
- /package/dist/esm/{types.js → emojiPluginType.js} +0 -0
- /package/dist/types/{commands → editor-commands}/insert-emoji.d.ts +0 -0
- /package/dist/types/{types.d.ts → emojiPluginType.d.ts} +0 -0
- /package/dist/types-ts4.5/{commands → editor-commands}/insert-emoji.d.ts +0 -0
- /package/dist/types-ts4.5/{types.d.ts → emojiPluginType.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-emoji
|
|
2
2
|
|
|
3
|
+
## 2.7.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#177988](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/177988)
|
|
8
|
+
[`8f78c40775b7c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8f78c40775b7c) -
|
|
9
|
+
ED-25810 - refactors editor plugins to engineering standards
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 2.7.15
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -28,7 +28,7 @@ var _state = require("@atlaskit/editor-prosemirror/state");
|
|
|
28
28
|
var _emoji2 = require("@atlaskit/emoji");
|
|
29
29
|
var _comment = _interopRequireDefault(require("@atlaskit/icon/core/comment"));
|
|
30
30
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
31
|
-
var _insertEmoji = require("./commands/insert-emoji");
|
|
31
|
+
var _insertEmoji = require("./editor-commands/insert-emoji");
|
|
32
32
|
var _emoji3 = require("./nodeviews/emoji");
|
|
33
33
|
var _actions = require("./pm-plugins/actions");
|
|
34
34
|
var _asciiInputRules = require("./pm-plugins/ascii-input-rules");
|
package/dist/cjs/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "emojiPlugin", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _emojiPlugin.emojiPlugin;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
var
|
|
12
|
+
var _emojiPlugin = require("./emojiPlugin");
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.setProvider = exports.setAsciiMap = exports.openTypeAhead = exports.ACTIONS = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _emojiPlugin = require("../emojiPlugin");
|
|
8
8
|
var ACTIONS = exports.ACTIONS = {
|
|
9
9
|
SET_PROVIDER: 'SET_PROVIDER',
|
|
10
10
|
SET_RESULTS: 'SET_RESULTS',
|
|
@@ -12,7 +12,7 @@ var ACTIONS = exports.ACTIONS = {
|
|
|
12
12
|
};
|
|
13
13
|
var setAsciiMap = exports.setAsciiMap = function setAsciiMap(asciiMap) {
|
|
14
14
|
return function (tr) {
|
|
15
|
-
return tr.setMeta(
|
|
15
|
+
return tr.setMeta(_emojiPlugin.emojiPluginKey, {
|
|
16
16
|
action: ACTIONS.SET_ASCII_MAP,
|
|
17
17
|
params: {
|
|
18
18
|
asciiMap: asciiMap
|
|
@@ -31,7 +31,7 @@ var openTypeAhead = exports.openTypeAhead = function openTypeAhead(typeaheadHand
|
|
|
31
31
|
};
|
|
32
32
|
var setProvider = exports.setProvider = function setProvider(provider) {
|
|
33
33
|
return function (tr) {
|
|
34
|
-
return tr.setMeta(
|
|
34
|
+
return tr.setMeta(_emojiPlugin.emojiPluginKey, {
|
|
35
35
|
action: ACTIONS.SET_PROVIDER,
|
|
36
36
|
params: {
|
|
37
37
|
provider: provider
|
|
@@ -13,7 +13,7 @@ import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
|
13
13
|
import { EmojiTypeAheadItem, recordSelectionFailedSli, recordSelectionSucceededSli, SearchSort } from '@atlaskit/emoji';
|
|
14
14
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
|
-
import { createEmojiFragment, insertEmoji } from './commands/insert-emoji';
|
|
16
|
+
import { createEmojiFragment, insertEmoji } from './editor-commands/insert-emoji';
|
|
17
17
|
import { EmojiNodeView } from './nodeviews/emoji';
|
|
18
18
|
import { ACTIONS, openTypeAhead as openTypeAheadAction, setAsciiMap as setAsciiMapAction, setProvider as setProviderAction } from './pm-plugins/actions';
|
|
19
19
|
import { inputRulePlugin as asciiInputRulePlugin } from './pm-plugins/ascii-input-rules';
|
package/dist/es2019/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
|
18
18
|
import { EmojiTypeAheadItem, recordSelectionFailedSli, recordSelectionSucceededSli, SearchSort } from '@atlaskit/emoji';
|
|
19
19
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
20
20
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
21
|
-
import { createEmojiFragment, insertEmoji } from './commands/insert-emoji';
|
|
21
|
+
import { createEmojiFragment, insertEmoji } from './editor-commands/insert-emoji';
|
|
22
22
|
import { EmojiNodeView } from './nodeviews/emoji';
|
|
23
23
|
import { ACTIONS, openTypeAhead as openTypeAheadAction, setAsciiMap as setAsciiMapAction, setProvider as setProviderAction } from './pm-plugins/actions';
|
|
24
24
|
import { inputRulePlugin as asciiInputRulePlugin } from './pm-plugins/ascii-input-rules';
|
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import type { Command, ExtractInjectionAPI, PMPluginFactoryParams, TypeAheadItem
|
|
|
3
3
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { EmojiDescription, EmojiProvider } from '@atlaskit/emoji';
|
|
6
|
-
import type { EmojiPlugin, EmojiPluginOptions, EmojiPluginState } from './
|
|
6
|
+
import type { EmojiPlugin, EmojiPluginOptions, EmojiPluginState } from './emojiPluginType';
|
|
7
7
|
export declare const emojiToTypeaheadItem: (emoji: EmojiDescription, emojiProvider?: EmojiProvider) => TypeAheadItem;
|
|
8
8
|
export declare function memoize<ResultFn extends (emoji: EmojiDescription, emojiProvider?: EmojiProvider) => TypeAheadItem>(fn: ResultFn): {
|
|
9
9
|
call: ResultFn;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { EmojiPlugin, EmojiPluginOptions, EmojiPluginState, EmojiPluginSharedState, } from './
|
|
2
|
-
export { emojiPlugin } from './
|
|
1
|
+
export type { EmojiPlugin, EmojiPluginOptions, EmojiPluginState, EmojiPluginSharedState, } from './emojiPluginType';
|
|
2
|
+
export { emojiPlugin } from './emojiPlugin';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
4
4
|
import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
|
-
import { type EmojiPlugin, type EmojiPluginOptions } from '../
|
|
5
|
+
import { type EmojiPlugin, type EmojiPluginOptions } from '../emojiPluginType';
|
|
6
6
|
export type Props = InlineNodeViewComponentProps & {
|
|
7
7
|
providerFactory: ProviderFactory;
|
|
8
8
|
options?: EmojiPluginOptions;
|
|
@@ -2,7 +2,7 @@ import { type PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
|
2
2
|
import { type TypeAheadHandler, type TypeAheadInputMethod } from '@atlaskit/editor-plugin-type-ahead';
|
|
3
3
|
import { type Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { EmojiDescription, EmojiProvider } from '@atlaskit/emoji';
|
|
5
|
-
import { type EmojiPlugin } from '../
|
|
5
|
+
import { type EmojiPlugin } from '../emojiPluginType';
|
|
6
6
|
export declare const ACTIONS: {
|
|
7
7
|
SET_PROVIDER: string;
|
|
8
8
|
SET_RESULTS: string;
|
|
@@ -4,7 +4,7 @@ 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
6
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
7
|
-
import { type EmojiPlugin } from '../
|
|
7
|
+
import { type EmojiPlugin } from '../emojiPluginType';
|
|
8
8
|
export declare function inputRulePlugin(schema: Schema, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, pluginInjectionApi: ExtractInjectionAPI<EmojiPlugin> | undefined): SafePlugin | undefined;
|
|
9
9
|
export declare const stateKey: PluginKey<any>;
|
|
10
10
|
declare const plugins: (schema: Schema, providerFactory: ProviderFactory, featureFlags: FeatureFlags, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, pluginInjectionApi: ExtractInjectionAPI<EmojiPlugin> | undefined) => SafePlugin<any>[];
|
|
@@ -3,7 +3,7 @@ import type { Command, ExtractInjectionAPI, PMPluginFactoryParams, TypeAheadItem
|
|
|
3
3
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { EmojiDescription, EmojiProvider } from '@atlaskit/emoji';
|
|
6
|
-
import type { EmojiPlugin, EmojiPluginOptions, EmojiPluginState } from './
|
|
6
|
+
import type { EmojiPlugin, EmojiPluginOptions, EmojiPluginState } from './emojiPluginType';
|
|
7
7
|
export declare const emojiToTypeaheadItem: (emoji: EmojiDescription, emojiProvider?: EmojiProvider) => TypeAheadItem;
|
|
8
8
|
export declare function memoize<ResultFn extends (emoji: EmojiDescription, emojiProvider?: EmojiProvider) => TypeAheadItem>(fn: ResultFn): {
|
|
9
9
|
call: ResultFn;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { EmojiPlugin, EmojiPluginOptions, EmojiPluginState, EmojiPluginSharedState, } from './
|
|
2
|
-
export { emojiPlugin } from './
|
|
1
|
+
export type { EmojiPlugin, EmojiPluginOptions, EmojiPluginState, EmojiPluginSharedState, } from './emojiPluginType';
|
|
2
|
+
export { emojiPlugin } from './emojiPlugin';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
4
4
|
import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
|
-
import { type EmojiPlugin, type EmojiPluginOptions } from '../
|
|
5
|
+
import { type EmojiPlugin, type EmojiPluginOptions } from '../emojiPluginType';
|
|
6
6
|
export type Props = InlineNodeViewComponentProps & {
|
|
7
7
|
providerFactory: ProviderFactory;
|
|
8
8
|
options?: EmojiPluginOptions;
|
|
@@ -2,7 +2,7 @@ import { type PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
|
2
2
|
import { type TypeAheadHandler, type TypeAheadInputMethod } from '@atlaskit/editor-plugin-type-ahead';
|
|
3
3
|
import { type Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { EmojiDescription, EmojiProvider } from '@atlaskit/emoji';
|
|
5
|
-
import { type EmojiPlugin } from '../
|
|
5
|
+
import { type EmojiPlugin } from '../emojiPluginType';
|
|
6
6
|
export declare const ACTIONS: {
|
|
7
7
|
SET_PROVIDER: string;
|
|
8
8
|
SET_RESULTS: string;
|
|
@@ -4,7 +4,7 @@ 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
6
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
7
|
-
import { type EmojiPlugin } from '../
|
|
7
|
+
import { type EmojiPlugin } from '../emojiPluginType';
|
|
8
8
|
export declare function inputRulePlugin(schema: Schema, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, pluginInjectionApi: ExtractInjectionAPI<EmojiPlugin> | undefined): SafePlugin | undefined;
|
|
9
9
|
export declare const stateKey: PluginKey<any>;
|
|
10
10
|
declare const plugins: (schema: Schema, providerFactory: ProviderFactory, featureFlags: FeatureFlags, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, pluginInjectionApi: ExtractInjectionAPI<EmojiPlugin> | undefined) => SafePlugin<any>[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-emoji",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.16",
|
|
4
4
|
"description": "Emoji plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
24
|
-
"@atlaskit/editor-common": "^96.
|
|
24
|
+
"@atlaskit/editor-common": "^96.5.0",
|
|
25
25
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
26
|
-
"@atlaskit/editor-plugin-annotation": "1.26.
|
|
26
|
+
"@atlaskit/editor-plugin-annotation": "1.26.4",
|
|
27
27
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
28
28
|
"@atlaskit/editor-plugin-type-ahead": "^1.11.0",
|
|
29
29
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
@@ -59,6 +59,9 @@
|
|
|
59
59
|
],
|
|
60
60
|
"circular-dependencies": [
|
|
61
61
|
"file-and-folder-level"
|
|
62
|
+
],
|
|
63
|
+
"code-structure": [
|
|
64
|
+
"editor-plugin"
|
|
62
65
|
]
|
|
63
66
|
},
|
|
64
67
|
"@repo/internal": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|