@atlaskit/editor-plugin-emoji 7.7.7 → 7.8.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
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-emoji
|
|
2
2
|
|
|
3
|
+
## 7.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`82d57d01a0f61`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/82d57d01a0f61) -
|
|
8
|
+
Distinguish between collab offline and internet offline cases for connectivity mode
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 7.7.7
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -15,6 +15,7 @@ var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
|
15
15
|
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
16
16
|
var _emoji = require("@atlaskit/editor-common/emoji");
|
|
17
17
|
var _monitoring = require("@atlaskit/editor-common/monitoring");
|
|
18
|
+
var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
|
|
18
19
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
19
20
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
20
21
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
@@ -129,7 +130,7 @@ var EmojiNodeView = exports.EmojiNodeView = /*#__PURE__*/function () {
|
|
|
129
130
|
var subscribeToConnection = api === null || api === void 0 || (_api$connectivity = api.connectivity) === null || _api$connectivity === void 0 ? void 0 : _api$connectivity.sharedState.onChange(function (_ref3) {
|
|
130
131
|
var prevSharedState = _ref3.prevSharedState,
|
|
131
132
|
nextSharedState = _ref3.nextSharedState;
|
|
132
|
-
if ((prevSharedState === null || prevSharedState === void 0 ? void 0 : prevSharedState.mode)
|
|
133
|
+
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, _experiments.editorExperiment)('platform_editor_offline_editing_web', true)) {
|
|
133
134
|
var _sharedState$currentS2;
|
|
134
135
|
_this.updateDom((_sharedState$currentS2 = sharedState.currentState()) === null || _sharedState$currentS2 === void 0 ? void 0 : _sharedState$currentS2.emojiProvider);
|
|
135
136
|
}
|
|
@@ -3,6 +3,7 @@ import isEqual from 'lodash/isEqual';
|
|
|
3
3
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
4
4
|
import { messages, EmojiSharedCssClassName, defaultEmojiHeight } from '@atlaskit/editor-common/emoji';
|
|
5
5
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
6
|
+
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
6
7
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
7
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
9
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -125,7 +126,7 @@ export class EmojiNodeView {
|
|
|
125
126
|
prevSharedState,
|
|
126
127
|
nextSharedState
|
|
127
128
|
}) => {
|
|
128
|
-
if ((prevSharedState === null || prevSharedState === void 0 ? void 0 : prevSharedState.mode)
|
|
129
|
+
if (isOfflineMode(prevSharedState === null || prevSharedState === void 0 ? void 0 : prevSharedState.mode) && (nextSharedState === null || nextSharedState === void 0 ? void 0 : nextSharedState.mode) === 'online' && this.renderingFallback && editorExperiment('platform_editor_offline_editing_web', true)) {
|
|
129
130
|
var _sharedState$currentS2;
|
|
130
131
|
this.updateDom((_sharedState$currentS2 = sharedState.currentState()) === null || _sharedState$currentS2 === void 0 ? void 0 : _sharedState$currentS2.emojiProvider);
|
|
131
132
|
}
|
|
@@ -7,6 +7,7 @@ import isEqual from 'lodash/isEqual';
|
|
|
7
7
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
8
8
|
import { messages, EmojiSharedCssClassName, defaultEmojiHeight } from '@atlaskit/editor-common/emoji';
|
|
9
9
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
10
|
+
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
10
11
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
11
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
13
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -121,7 +122,7 @@ export var EmojiNodeView = /*#__PURE__*/function () {
|
|
|
121
122
|
var subscribeToConnection = api === null || api === void 0 || (_api$connectivity = api.connectivity) === null || _api$connectivity === void 0 ? void 0 : _api$connectivity.sharedState.onChange(function (_ref3) {
|
|
122
123
|
var prevSharedState = _ref3.prevSharedState,
|
|
123
124
|
nextSharedState = _ref3.nextSharedState;
|
|
124
|
-
if ((prevSharedState === null || prevSharedState === void 0 ? void 0 : prevSharedState.mode)
|
|
125
|
+
if (isOfflineMode(prevSharedState === null || prevSharedState === void 0 ? void 0 : prevSharedState.mode) && (nextSharedState === null || nextSharedState === void 0 ? void 0 : nextSharedState.mode) === 'online' && _this.renderingFallback && editorExperiment('platform_editor_offline_editing_web', true)) {
|
|
125
126
|
var _sharedState$currentS2;
|
|
126
127
|
_this.updateDom((_sharedState$currentS2 = sharedState.currentState()) === null || _sharedState$currentS2 === void 0 ? void 0 : _sharedState$currentS2.emojiProvider);
|
|
127
128
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-emoji",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.8.0",
|
|
4
4
|
"description": "Emoji plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -23,11 +23,12 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/adf-schema": "^51.5.0",
|
|
25
25
|
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
26
|
-
"@atlaskit/editor-plugin-annotation": "^6.
|
|
26
|
+
"@atlaskit/editor-plugin-annotation": "^6.4.0",
|
|
27
27
|
"@atlaskit/editor-plugin-base": "^7.2.0",
|
|
28
|
+
"@atlaskit/editor-plugin-connectivity": "^6.1.0",
|
|
28
29
|
"@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
|
|
29
30
|
"@atlaskit/editor-plugin-metrics": "^7.1.0",
|
|
30
|
-
"@atlaskit/editor-plugin-type-ahead": "^6.
|
|
31
|
+
"@atlaskit/editor-plugin-type-ahead": "^6.6.0",
|
|
31
32
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
32
33
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
33
34
|
"@atlaskit/emoji": "^69.9.0",
|