@atlaskit/editor-plugin-emoji 17.0.8 → 17.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 +17 -0
- package/dist/cjs/emojiPlugin.js +3 -3
- package/dist/cjs/nodeviews/EmojiNodeView.js +3 -3
- package/dist/es2019/emojiPlugin.js +1 -1
- package/dist/es2019/nodeviews/EmojiNodeView.js +1 -1
- package/dist/esm/emojiPlugin.js +1 -1
- package/dist/esm/nodeviews/EmojiNodeView.js +1 -1
- package/package.json +13 -13
- package/report.api.md +0 -87
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-emoji
|
|
2
2
|
|
|
3
|
+
## 17.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
|
|
8
|
+
Remove stale API report artifacts from published Platform packages.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 17.0.9
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 17.0.8
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/cjs/emojiPlugin.js
CHANGED
|
@@ -23,7 +23,7 @@ var _state = require("@atlaskit/editor-prosemirror/state");
|
|
|
23
23
|
var _emoji2 = require("@atlaskit/emoji");
|
|
24
24
|
var _comment = _interopRequireDefault(require("@atlaskit/icon/core/comment"));
|
|
25
25
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
26
|
-
var
|
|
26
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
27
27
|
var _insertEmoji = require("./editor-commands/insert-emoji");
|
|
28
28
|
var _emojiNodeSpec = require("./nodeviews/emojiNodeSpec");
|
|
29
29
|
var _EmojiNodeView = require("./nodeviews/EmojiNodeView");
|
|
@@ -302,7 +302,7 @@ var emojiPlugin = exports.emojiPlugin = function emojiPlugin(_ref2) {
|
|
|
302
302
|
popupsBoundariesElement = _ref1.popupsBoundariesElement,
|
|
303
303
|
popupsMountPoint = _ref1.popupsMountPoint,
|
|
304
304
|
popupsScrollableElement = _ref1.popupsScrollableElement;
|
|
305
|
-
if (!api || (0,
|
|
305
|
+
if (!api || (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'control') || !editorView) {
|
|
306
306
|
return null;
|
|
307
307
|
}
|
|
308
308
|
return /*#__PURE__*/_react.default.createElement(_InlineEmojiPopup.InlineEmojiPopup, {
|
|
@@ -328,7 +328,7 @@ var emojiPlugin = exports.emojiPlugin = function emojiPlugin(_ref2) {
|
|
|
328
328
|
},
|
|
329
329
|
action: function action(insert) {
|
|
330
330
|
var _api$typeAhead;
|
|
331
|
-
if ((0,
|
|
331
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
332
332
|
exposure: true
|
|
333
333
|
})) {
|
|
334
334
|
// Clear slash
|
|
@@ -25,7 +25,7 @@ var _emojiIdToEmoji = require("@atlaskit/emoji/emoji-id-to-emoji");
|
|
|
25
25
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
26
26
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
27
27
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
28
|
-
var
|
|
28
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
29
29
|
var _emojiNodeSpec = require("./emojiNodeSpec");
|
|
30
30
|
var SINGLE_EMOJI_REGEX =
|
|
31
31
|
// Regular expression to match a single emoji character
|
|
@@ -137,7 +137,7 @@ var EmojiNodeView = exports.EmojiNodeView = /*#__PURE__*/function () {
|
|
|
137
137
|
var subscribeToConnection = api === null || api === void 0 || (_api$connectivity = api.connectivity) === null || _api$connectivity === void 0 ? void 0 : _api$connectivity.sharedState.onChange(function (_ref3) {
|
|
138
138
|
var prevSharedState = _ref3.prevSharedState,
|
|
139
139
|
nextSharedState = _ref3.nextSharedState;
|
|
140
|
-
if ((0, _editorPluginConnectivity.isOfflineMode)(prevSharedState === null || prevSharedState === void 0 ? void 0 : prevSharedState.mode) && (nextSharedState === null || nextSharedState === void 0 ? void 0 : nextSharedState.mode) === 'online' && _this.renderingFallback && (0,
|
|
140
|
+
if ((0, _editorPluginConnectivity.isOfflineMode)(prevSharedState === null || prevSharedState === void 0 ? void 0 : prevSharedState.mode) && (nextSharedState === null || nextSharedState === void 0 ? void 0 : nextSharedState.mode) === 'online' && _this.renderingFallback && (0, _editorExperiment.editorExperiment)('platform_editor_offline_editing_web', true)) {
|
|
141
141
|
var _sharedState$currentS2;
|
|
142
142
|
_this.updateDom((_sharedState$currentS2 = sharedState.currentState()) === null || _sharedState$currentS2 === void 0 ? void 0 : _sharedState$currentS2.emojiProvider);
|
|
143
143
|
}
|
|
@@ -446,7 +446,7 @@ var EmojiNodeView = exports.EmojiNodeView = /*#__PURE__*/function () {
|
|
|
446
446
|
imageElement.style.objectFit = 'contain';
|
|
447
447
|
imageElement.height = _emoji.defaultEmojiHeight;
|
|
448
448
|
imageElement.onerror = function () {
|
|
449
|
-
if ((0,
|
|
449
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_offline_editing_web', true)) {
|
|
450
450
|
// If there's an error (ie. offline) render the ascii fallback if possible, otherwise
|
|
451
451
|
// mark the node to refresh when returning online.
|
|
452
452
|
// Create a check that confirms if this.node.attrs.text if an ascii emoji
|
|
@@ -10,7 +10,7 @@ import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
|
10
10
|
import { EmojiTypeAheadItem, preloadEmojiPicker, recordSelectionFailedSli, recordSelectionSucceededSli, SearchSort } from '@atlaskit/emoji';
|
|
11
11
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
12
12
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
13
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
14
14
|
import { createEmojiFragment, insertEmoji } from './editor-commands/insert-emoji';
|
|
15
15
|
import { emojiNodeSpec } from './nodeviews/emojiNodeSpec';
|
|
16
16
|
import { EmojiNodeView } from './nodeviews/EmojiNodeView';
|
|
@@ -13,7 +13,7 @@ import { emojiIdToEmoji } from '@atlaskit/emoji/emoji-id-to-emoji';
|
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
14
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
15
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
16
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
16
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
17
17
|
import { emojiToDom } from './emojiNodeSpec';
|
|
18
18
|
const SINGLE_EMOJI_REGEX =
|
|
19
19
|
// Regular expression to match a single emoji character
|
package/dist/esm/emojiPlugin.js
CHANGED
|
@@ -15,7 +15,7 @@ import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
|
15
15
|
import { EmojiTypeAheadItem, preloadEmojiPicker, recordSelectionFailedSli, recordSelectionSucceededSli, SearchSort } from '@atlaskit/emoji';
|
|
16
16
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
17
17
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
18
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
18
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
19
19
|
import { createEmojiFragment, insertEmoji } from './editor-commands/insert-emoji';
|
|
20
20
|
import { emojiNodeSpec } from './nodeviews/emojiNodeSpec';
|
|
21
21
|
import { EmojiNodeView } from './nodeviews/EmojiNodeView';
|
|
@@ -17,7 +17,7 @@ import { emojiIdToEmoji } from '@atlaskit/emoji/emoji-id-to-emoji';
|
|
|
17
17
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
18
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
19
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
20
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
20
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
21
21
|
import { emojiToDom } from './emojiNodeSpec';
|
|
22
22
|
var SINGLE_EMOJI_REGEX =
|
|
23
23
|
// Regular expression to match a single emoji character
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-emoji",
|
|
3
|
-
"version": "17.0
|
|
3
|
+
"version": "17.1.0",
|
|
4
4
|
"description": "Emoji plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -23,26 +23,26 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/adf-schema": "^57.2.0",
|
|
25
25
|
"@atlaskit/browser-apis": "^1.2.0",
|
|
26
|
-
"@atlaskit/editor-json-transformer": "^9.
|
|
27
|
-
"@atlaskit/editor-plugin-analytics": "^16.
|
|
26
|
+
"@atlaskit/editor-json-transformer": "^9.8.0",
|
|
27
|
+
"@atlaskit/editor-plugin-analytics": "^16.1.0",
|
|
28
28
|
"@atlaskit/editor-plugin-annotation": "^16.0.0",
|
|
29
|
-
"@atlaskit/editor-plugin-base": "^17.
|
|
29
|
+
"@atlaskit/editor-plugin-base": "^17.1.0",
|
|
30
30
|
"@atlaskit/editor-plugin-connectivity": "^16.0.0",
|
|
31
31
|
"@atlaskit/editor-plugin-editor-viewmode": "^18.0.0",
|
|
32
32
|
"@atlaskit/editor-plugin-metrics": "^17.0.0",
|
|
33
|
-
"@atlaskit/editor-plugin-type-ahead": "^17.
|
|
33
|
+
"@atlaskit/editor-plugin-type-ahead": "^17.1.0",
|
|
34
34
|
"@atlaskit/editor-plugin-ui-control-registry": "^10.0.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
36
|
-
"@atlaskit/editor-shared-styles": "^4.
|
|
36
|
+
"@atlaskit/editor-shared-styles": "^4.1.0",
|
|
37
37
|
"@atlaskit/editor-ui-control-model": "^2.9.0",
|
|
38
|
-
"@atlaskit/emoji": "^72.
|
|
39
|
-
"@atlaskit/icon": "^37.
|
|
38
|
+
"@atlaskit/emoji": "^72.2.0",
|
|
39
|
+
"@atlaskit/icon": "^37.6.0",
|
|
40
40
|
"@atlaskit/node-data-provider": "^17.0.0",
|
|
41
41
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
42
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
43
|
-
"@atlaskit/prosemirror-input-rules": "^4.
|
|
44
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
-
"@atlaskit/tokens": "^16.
|
|
42
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
43
|
+
"@atlaskit/prosemirror-input-rules": "^4.1.0",
|
|
44
|
+
"@atlaskit/tmp-editor-statsig": "^168.0.0",
|
|
45
|
+
"@atlaskit/tokens": "^16.10.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
47
47
|
"@emotion/react": "^11.7.1",
|
|
48
48
|
"bind-event-listener": "^3.0.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"react-loadable": "^5.1.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@atlaskit/editor-common": "^120.
|
|
53
|
+
"@atlaskit/editor-common": "^120.9.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"
|
package/report.api.md
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
<!-- API Report Version: 2.3 -->
|
|
2
|
-
|
|
3
|
-
## API Report File for "@atlaskit/editor-plugin-emoji"
|
|
4
|
-
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
6
|
-
> [API Extractor](https://api-extractor.com/).
|
|
7
|
-
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
8
|
-
|
|
9
|
-
### Table of contents
|
|
10
|
-
|
|
11
|
-
- [Main Entry Types](#main-entry-types)
|
|
12
|
-
- [Peer Dependencies](#peer-dependencies)
|
|
13
|
-
|
|
14
|
-
### Main Entry Types
|
|
15
|
-
|
|
16
|
-
<!--SECTION START: Main Entry Types-->
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
20
|
-
import type { EditorCommand } from '@atlaskit/editor-common/types';
|
|
21
|
-
import type { EmojiDescription } from '@atlaskit/emoji';
|
|
22
|
-
import type { EmojiId } from '@atlaskit/emoji';
|
|
23
|
-
import type { EmojiProvider } from '@atlaskit/emoji';
|
|
24
|
-
import type { EmojiResourceConfig } from '@atlaskit/emoji';
|
|
25
|
-
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
26
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
27
|
-
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
28
|
-
import type { TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
29
|
-
import type { TypeAheadInputMethod } from '@atlaskit/editor-plugin-type-ahead';
|
|
30
|
-
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
31
|
-
|
|
32
|
-
// @public (undocumented)
|
|
33
|
-
export type EmojiPlugin = NextEditorPlugin<
|
|
34
|
-
'emoji',
|
|
35
|
-
{
|
|
36
|
-
pluginConfiguration: EmojiPluginOptions | undefined;
|
|
37
|
-
dependencies: [OptionalPlugin<AnalyticsPlugin>, TypeAheadPlugin];
|
|
38
|
-
sharedState: EmojiPluginSharedState | undefined;
|
|
39
|
-
commands: {
|
|
40
|
-
insertEmoji: (
|
|
41
|
-
emojiId: EmojiId,
|
|
42
|
-
inputMethod?: INPUT_METHOD.ASCII | INPUT_METHOD.PICKER | INPUT_METHOD.TYPEAHEAD,
|
|
43
|
-
) => EditorCommand;
|
|
44
|
-
};
|
|
45
|
-
actions: {
|
|
46
|
-
openTypeAhead: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
>;
|
|
50
|
-
|
|
51
|
-
// @public
|
|
52
|
-
export const emojiPlugin: EmojiPlugin;
|
|
53
|
-
|
|
54
|
-
// @public (undocumented)
|
|
55
|
-
export interface EmojiPluginOptions {
|
|
56
|
-
// (undocumented)
|
|
57
|
-
headless?: boolean;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// @public (undocumented)
|
|
61
|
-
type EmojiPluginSharedState = EmojiPluginState & {
|
|
62
|
-
typeAheadHandler: TypeAheadHandler;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
// @public (undocumented)
|
|
66
|
-
export type EmojiPluginState = {
|
|
67
|
-
emojiProvider?: EmojiProvider;
|
|
68
|
-
emojiResourceConfig?: EmojiResourceConfig;
|
|
69
|
-
asciiMap?: Map<string, EmojiDescription>;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
// (No @packageDocumentation comment for this package)
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
<!--SECTION END: Main Entry Types-->
|
|
76
|
-
|
|
77
|
-
### Peer Dependencies
|
|
78
|
-
|
|
79
|
-
<!--SECTION START: Peer Dependencies-->
|
|
80
|
-
|
|
81
|
-
```json
|
|
82
|
-
{
|
|
83
|
-
"react": "^16.8.0"
|
|
84
|
-
}
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
<!--SECTION END: Peer Dependencies-->
|