@atlaskit/editor-plugin-emoji 0.2.0 → 0.3.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 +10 -0
- package/README.md +24 -3
- package/dist/cjs/commands/insert-emoji.js +2 -2
- package/dist/cjs/plugin.js +7 -2
- package/dist/es2019/plugin.js +5 -0
- package/dist/esm/commands/insert-emoji.js +2 -2
- package/dist/esm/plugin.js +7 -2
- package/dist/types/plugin.d.ts +4 -0
- package/dist/types-ts4.5/plugin.d.ts +4 -0
- package/package.json +6 -6
- package/report.api.md +1 -1
- package/tmp/api-report-tmp.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-emoji
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating all plugins with minor version to correct issue with semver.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 0.2.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -1,9 +1,30 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Editor plugin emoji
|
|
2
2
|
|
|
3
3
|
Emoji plugin for @atlaskit/editor-core
|
|
4
4
|
|
|
5
|
+
**Note:** This component is designed for internal Atlassian development.
|
|
6
|
+
External contributors will be able to use this component but will not be able to submit issues.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
---
|
|
10
|
+
- **Install** - *yarn add @atlaskit/editor-plugin-emoji*
|
|
11
|
+
- **npm** - [@atlaskit/editor-plugin-emoji](https://www.npmjs.com/package/@atlaskit/editor-plugin-emoji)
|
|
12
|
+
- **Source** - [Bitbucket](https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/editor/editor-plugin-emoji)
|
|
13
|
+
- **Bundle** - [unpkg.com](https://unpkg.com/@atlaskit/editor-plugin-emoji/dist/)
|
|
14
|
+
|
|
5
15
|
## Usage
|
|
16
|
+
---
|
|
17
|
+
**Internal use only**
|
|
18
|
+
|
|
19
|
+
@atlaskit/editor-plugin-emoji is intended for internal use by the @atlaskit/editor-core and as a plugin dependency of the Editor within your product.
|
|
20
|
+
|
|
21
|
+
Direct use of this component is not supported.
|
|
6
22
|
|
|
7
|
-
|
|
23
|
+
Please see [Atlaskit - Editor plugin emoji](https://atlaskit.atlassian.com/packages/editor/editor-plugin-emoji) for documentation and examples for this package.
|
|
8
24
|
|
|
9
|
-
|
|
25
|
+
## Support
|
|
26
|
+
---
|
|
27
|
+
For internal Atlassian, visit the slack channel [#help-editor](https://atlassian.slack.com/archives/CFG3PSQ9E) for support or visit [go/editor-help](https://go/editor-help) to submit a bug.
|
|
28
|
+
## License
|
|
29
|
+
---
|
|
30
|
+
Please see [Atlassian Frontend - License](https://developer.atlassian.com/cloud/framework/atlassian-frontend/#license) for more licensing information.
|
|
@@ -10,8 +10,8 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
10
10
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
11
11
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
12
12
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
13
|
-
function ownKeys(
|
|
14
|
-
function _objectSpread(
|
|
13
|
+
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
|
+
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
15
|
var insertEmoji = function insertEmoji(editorAnalyticsAPI) {
|
|
16
16
|
return function (emojiId, inputMethod) {
|
|
17
17
|
return function (_ref) {
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -26,8 +26,8 @@ var _emoji2 = require("@atlaskit/emoji");
|
|
|
26
26
|
var _insertEmoji = require("./commands/insert-emoji");
|
|
27
27
|
var _emoji3 = require("./nodeviews/emoji");
|
|
28
28
|
var _asciiInputRules = require("./pm-plugins/ascii-input-rules");
|
|
29
|
-
function ownKeys(
|
|
30
|
-
function _objectSpread(
|
|
29
|
+
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; }
|
|
30
|
+
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; }
|
|
31
31
|
var emojiToTypeaheadItem = function emojiToTypeaheadItem(emoji, emojiProvider) {
|
|
32
32
|
return {
|
|
33
33
|
title: emoji.shortName || '',
|
|
@@ -75,6 +75,11 @@ var isFullShortName = function isFullShortName(query) {
|
|
|
75
75
|
return query && query.length > 1 && query.charAt(0) === ':' && query.charAt(query.length - 1) === ':';
|
|
76
76
|
};
|
|
77
77
|
var TRIGGER = ':';
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Emoji plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
81
|
+
* from `@atlaskit/editor-core`.
|
|
82
|
+
*/
|
|
78
83
|
var emojiPlugin = function emojiPlugin(_ref2) {
|
|
79
84
|
var _api$analytics5;
|
|
80
85
|
var options = _ref2.config,
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -54,6 +54,11 @@ const memoizedToItem = memoize(emojiToTypeaheadItem);
|
|
|
54
54
|
export const defaultListLimit = 50;
|
|
55
55
|
const isFullShortName = query => query && query.length > 1 && query.charAt(0) === ':' && query.charAt(query.length - 1) === ':';
|
|
56
56
|
const TRIGGER = ':';
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Emoji plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
60
|
+
* from `@atlaskit/editor-core`.
|
|
61
|
+
*/
|
|
57
62
|
export const emojiPlugin = ({
|
|
58
63
|
config: options,
|
|
59
64
|
api
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
2
|
+
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; }
|
|
3
|
+
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) { _defineProperty(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; }
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
package/dist/esm/plugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
2
|
+
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; }
|
|
3
|
+
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) { _defineProperty(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; }
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { emoji } from '@atlaskit/adf-schema';
|
|
6
6
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
@@ -60,6 +60,11 @@ var isFullShortName = function isFullShortName(query) {
|
|
|
60
60
|
return query && query.length > 1 && query.charAt(0) === ':' && query.charAt(query.length - 1) === ':';
|
|
61
61
|
};
|
|
62
62
|
var TRIGGER = ':';
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Emoji plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
66
|
+
* from `@atlaskit/editor-core`.
|
|
67
|
+
*/
|
|
63
68
|
export var emojiPlugin = function emojiPlugin(_ref2) {
|
|
64
69
|
var _api$analytics5;
|
|
65
70
|
var options = _ref2.config,
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ export declare function memoize<ResultFn extends (emoji: EmojiDescription, emoji
|
|
|
10
10
|
clear(): void;
|
|
11
11
|
};
|
|
12
12
|
export declare const defaultListLimit = 50;
|
|
13
|
+
/**
|
|
14
|
+
* Emoji plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
15
|
+
* from `@atlaskit/editor-core`.
|
|
16
|
+
*/
|
|
13
17
|
export declare const emojiPlugin: EmojiPlugin;
|
|
14
18
|
/**
|
|
15
19
|
* Actions
|
|
@@ -10,6 +10,10 @@ export declare function memoize<ResultFn extends (emoji: EmojiDescription, emoji
|
|
|
10
10
|
clear(): void;
|
|
11
11
|
};
|
|
12
12
|
export declare const defaultListLimit = 50;
|
|
13
|
+
/**
|
|
14
|
+
* Emoji plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
15
|
+
* from `@atlaskit/editor-core`.
|
|
16
|
+
*/
|
|
13
17
|
export declare const emojiPlugin: EmojiPlugin;
|
|
14
18
|
/**
|
|
15
19
|
* Actions
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-emoji",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
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": "^28.1.0",
|
|
24
|
-
"@atlaskit/editor-common": "^74.
|
|
25
|
-
"@atlaskit/editor-plugin-analytics": "^0.
|
|
26
|
-
"@atlaskit/editor-plugin-type-ahead": "^0.
|
|
24
|
+
"@atlaskit/editor-common": "^74.55.0",
|
|
25
|
+
"@atlaskit/editor-plugin-analytics": "^0.2.0",
|
|
26
|
+
"@atlaskit/editor-plugin-type-ahead": "^0.2.0",
|
|
27
27
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
28
28
|
"@atlaskit/emoji": "^67.4.0",
|
|
29
29
|
"@atlaskit/prosemirror-input-rules": "^2.4.0",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@af/visual-regression": "*",
|
|
39
|
-
"@atlaskit/editor-plugin-composition": "^0.0
|
|
40
|
-
"@atlaskit/editor-plugin-decorations": "^0.
|
|
39
|
+
"@atlaskit/editor-plugin-composition": "^0.1.0",
|
|
40
|
+
"@atlaskit/editor-plugin-decorations": "^0.2.0",
|
|
41
41
|
"@atlaskit/ssr": "*",
|
|
42
42
|
"@atlaskit/util-data-test": "^17.8.0",
|
|
43
43
|
"@atlaskit/visual-regression": "*",
|
package/report.api.md
CHANGED