@atlaskit/editor-plugin-emoji 17.0.7 → 17.0.9
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 +12 -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 +4 -4
package/CHANGELOG.md
CHANGED
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.0.9",
|
|
4
4
|
"description": "Emoji plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
43
43
|
"@atlaskit/prosemirror-input-rules": "^4.0.0",
|
|
44
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
-
"@atlaskit/tokens": "^16.
|
|
44
|
+
"@atlaskit/tmp-editor-statsig": "^168.0.0",
|
|
45
|
+
"@atlaskit/tokens": "^16.9.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.7.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"
|