@atlaskit/editor-plugin-mentions 16.1.1 → 16.1.2
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 +8 -0
- package/dist/cjs/nodeviews/profileCardRenderer.js +2 -1
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/es2019/nodeviews/profileCardRenderer.js +2 -1
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/esm/nodeviews/profileCardRenderer.js +2 -1
- package/dist/esm/pm-plugins/main.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-mentions
|
|
2
2
|
|
|
3
|
+
## 16.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b277d7a23f325`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b277d7a23f325) -
|
|
8
|
+
Adjust profile card migration, check for either FG or experiment to enable new People UX
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 16.1.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -11,6 +11,7 @@ var _bindEventListener = require("bind-event-listener");
|
|
|
11
11
|
var _v = _interopRequireDefault(require("uuid/v4"));
|
|
12
12
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
13
13
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
14
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
14
15
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
16
|
var _navigation = require("@atlaskit/teams-app-config/navigation");
|
|
16
17
|
var _expVal = require("@atlaskit/tmp-editor-statsig/expVal");
|
|
@@ -153,7 +154,7 @@ var profileCardRenderer = exports.profileCardRenderer = function profileCardRend
|
|
|
153
154
|
var listenerCleanup = (0, _bindEventListener.bind)(dom, {
|
|
154
155
|
type: 'click',
|
|
155
156
|
listener: function listener() {
|
|
156
|
-
if ((0, _platformFeatureFlags.fg)('people-teams_migrate-user-profile-card')) {
|
|
157
|
+
if ((0, _platformFeatureFlags.fg)('people-teams_migrate-user-profile-card') || (0, _isExperimentEnabled.isExperimentEnabled)('pt_user_profile_card_migration_exp')) {
|
|
157
158
|
var _currentNode$attrs, _node$attrs, _options$profilecardP;
|
|
158
159
|
var userId = (0, _expVal.expVal)('platform_editor_reduced_agent_profile_cards', 'isEnabled', false) ? (_currentNode$attrs = currentNode.attrs) === null || _currentNode$attrs === void 0 ? void 0 : _currentNode$attrs.id : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.id;
|
|
159
160
|
if (!userId) {
|
|
@@ -67,7 +67,7 @@ var AI_STREAMING_TRANSFORMATION_META_KEY = 'isAIStreamingTransformation';
|
|
|
67
67
|
var AGENT_MENTION_INACTIVITY_MS = 3000;
|
|
68
68
|
var MAX_PENDING_TYPED_AGENT_MENTION_FOCUS_DEFERS = 20;
|
|
69
69
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
70
|
-
var PACKAGE_VERSION = "16.1.
|
|
70
|
+
var PACKAGE_VERSION = "16.1.1";
|
|
71
71
|
var setProvider = function setProvider(provider) {
|
|
72
72
|
return function (state, dispatch) {
|
|
73
73
|
if (dispatch) {
|
|
@@ -4,6 +4,7 @@ import { bind } from 'bind-event-listener';
|
|
|
4
4
|
import uuid from 'uuid/v4';
|
|
5
5
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { findChildrenByAttr } from '@atlaskit/editor-prosemirror/utils';
|
|
7
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
7
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
import { navigateToTeamsApp } from '@atlaskit/teams-app-config/navigation';
|
|
9
10
|
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
@@ -141,7 +142,7 @@ export const profileCardRenderer = ({
|
|
|
141
142
|
const listenerCleanup = bind(dom, {
|
|
142
143
|
type: 'click',
|
|
143
144
|
listener: () => {
|
|
144
|
-
if (fg('people-teams_migrate-user-profile-card')) {
|
|
145
|
+
if (fg('people-teams_migrate-user-profile-card') || isExperimentEnabled('pt_user_profile_card_migration_exp')) {
|
|
145
146
|
var _currentNode$attrs, _node$attrs, _options$profilecardP;
|
|
146
147
|
const userId = expVal('platform_editor_reduced_agent_profile_cards', 'isEnabled', false) ? (_currentNode$attrs = currentNode.attrs) === null || _currentNode$attrs === void 0 ? void 0 : _currentNode$attrs.id : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.id;
|
|
147
148
|
if (!userId) {
|
|
@@ -51,7 +51,7 @@ const AI_STREAMING_TRANSFORMATION_META_KEY = 'isAIStreamingTransformation';
|
|
|
51
51
|
const AGENT_MENTION_INACTIVITY_MS = 3000;
|
|
52
52
|
const MAX_PENDING_TYPED_AGENT_MENTION_FOCUS_DEFERS = 20;
|
|
53
53
|
const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
54
|
-
const PACKAGE_VERSION = "16.1.
|
|
54
|
+
const PACKAGE_VERSION = "16.1.1";
|
|
55
55
|
const setProvider = provider => (state, dispatch) => {
|
|
56
56
|
if (dispatch) {
|
|
57
57
|
dispatch(state.tr.setMeta(mentionPluginKey, {
|
|
@@ -7,6 +7,7 @@ import { bind } from 'bind-event-listener';
|
|
|
7
7
|
import uuid from 'uuid/v4';
|
|
8
8
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
9
9
|
import { findChildrenByAttr } from '@atlaskit/editor-prosemirror/utils';
|
|
10
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
10
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
import { navigateToTeamsApp } from '@atlaskit/teams-app-config/navigation';
|
|
12
13
|
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
@@ -147,7 +148,7 @@ export var profileCardRenderer = function profileCardRenderer(_ref) {
|
|
|
147
148
|
var listenerCleanup = bind(dom, {
|
|
148
149
|
type: 'click',
|
|
149
150
|
listener: function listener() {
|
|
150
|
-
if (fg('people-teams_migrate-user-profile-card')) {
|
|
151
|
+
if (fg('people-teams_migrate-user-profile-card') || isExperimentEnabled('pt_user_profile_card_migration_exp')) {
|
|
151
152
|
var _currentNode$attrs, _node$attrs, _options$profilecardP;
|
|
152
153
|
var userId = expVal('platform_editor_reduced_agent_profile_cards', 'isEnabled', false) ? (_currentNode$attrs = currentNode.attrs) === null || _currentNode$attrs === void 0 ? void 0 : _currentNode$attrs.id : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.id;
|
|
153
154
|
if (!userId) {
|
|
@@ -58,7 +58,7 @@ var AI_STREAMING_TRANSFORMATION_META_KEY = 'isAIStreamingTransformation';
|
|
|
58
58
|
var AGENT_MENTION_INACTIVITY_MS = 3000;
|
|
59
59
|
var MAX_PENDING_TYPED_AGENT_MENTION_FOCUS_DEFERS = 20;
|
|
60
60
|
var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
|
|
61
|
-
var PACKAGE_VERSION = "16.1.
|
|
61
|
+
var PACKAGE_VERSION = "16.1.1";
|
|
62
62
|
var setProvider = function setProvider(provider) {
|
|
63
63
|
return function (state, dispatch) {
|
|
64
64
|
if (dispatch) {
|