@atlaskit/editor-common 134.8.3 → 134.8.5
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 +21 -0
- package/dist/cjs/mention-avatar.js +2 -4
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/areDocsEqualByBlockStructureAndText.js +2 -2
- package/dist/es2019/mention-avatar.js +2 -4
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/areDocsEqualByBlockStructureAndText.js +2 -2
- package/dist/esm/mention-avatar.js +2 -4
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/areDocsEqualByBlockStructureAndText.js +2 -2
- package/package.json +5 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 134.8.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9a31ce5238178`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9a31ce5238178) -
|
|
8
|
+
Retire frontend evaluation of `convo_ai_entity_hover_cards_non_hello_exp`. Use
|
|
9
|
+
`rovo_chat_people_entity_hover_cards` alone for people annotation enrollment and mention-avatar
|
|
10
|
+
provider activation. Enable inferred projects through `rovo_chat_inferred_project_hover_cards` or
|
|
11
|
+
`convo_ai_entity_hover_cards_inferred_project_exp` with `inferred_project_cohort` set to
|
|
12
|
+
`treatment`, defaulting to control and skipping experiment evaluation when the gate is enabled.
|
|
13
|
+
Preserve independent editor avatar rollouts and the deprecated helper for compatibility.
|
|
14
|
+
|
|
15
|
+
## 134.8.4
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`202f9b8386f13`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/202f9b8386f13) -
|
|
20
|
+
Migrate attributed version history checks to the platform_editor_attributed_version_history
|
|
21
|
+
experiment.
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 134.8.3
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.isMentionAvatarEnabled = isMentionAvatarEnabled;
|
|
7
|
-
var _expVal = require("@atlaskit/platform-feature-experiments/exp-val");
|
|
8
7
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
8
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
9
9
|
var GENERIC_MENTION_IDS = ['HipChat', 'all', 'here'];
|
|
10
10
|
|
|
11
11
|
/** Shared avatar eligibility without importing mention components or resolving provider data. */
|
|
@@ -15,7 +15,5 @@ function isMentionAvatarEnabled(_ref) {
|
|
|
15
15
|
hasProvider = _ref.hasProvider,
|
|
16
16
|
_ref$canReportMissing = _ref.canReportMissingProvider,
|
|
17
17
|
canReportMissingProvider = _ref$canReportMissing === void 0 ? false : _ref$canReportMissing;
|
|
18
|
-
|
|
19
|
-
var cohort = (0, _expVal.expVal)('convo_ai_entity_hover_cards_non_hello_exp', 'hover_card_cohort', 'control');
|
|
20
|
-
return (hasProvider || canReportMissingProvider) && userType !== 'SPECIAL' && !GENERIC_MENTION_IDS.includes(id) && (cohort === 'person' || cohort === 'all' || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_mention_node_avatar') || (0, _isExperimentEnabled.isExperimentEnabled)('canvas_agentic_experiences_master_exp') || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_mention_node_graphql_provider') || (userType === 'APP' || userType === 'AGENT') && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_drop3_hexagon_agent_avatar'));
|
|
18
|
+
return (hasProvider || canReportMissingProvider) && userType !== 'SPECIAL' && !GENERIC_MENTION_IDS.includes(id) && ((0, _fg.fg)('rovo_chat_people_entity_hover_cards') || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_mention_node_avatar') || (0, _isExperimentEnabled.isExperimentEnabled)('canvas_agentic_experiences_master_exp') || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_mention_node_graphql_provider') || (userType === 'APP' || userType === 'AGENT') && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_drop3_hexagon_agent_avatar'));
|
|
21
19
|
}
|
|
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
27
27
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
28
28
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
29
29
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
30
|
-
var packageVersion = "134.8.
|
|
30
|
+
var packageVersion = "134.8.4";
|
|
31
31
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
32
32
|
// Remove URL as it has UGC
|
|
33
33
|
// Ignored via go/ees007
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "134.8.
|
|
26
|
+
var packageVersion = "134.8.4";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -4,15 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.areDocsEqualByBlockStructureAndText = areDocsEqualByBlockStructureAndText;
|
|
7
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
7
8
|
var _JSONTransformer = require("@atlaskit/editor-json-transformer/JSONTransformer-2");
|
|
8
9
|
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
9
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
10
10
|
/**
|
|
11
11
|
* Returns true when documents have the same text and block structure, while ignoring marks and
|
|
12
12
|
* attributes. This is useful when comparing documents produced by different serialization paths.
|
|
13
13
|
*/
|
|
14
14
|
function areDocsEqualByBlockStructureAndText(node1, node2) {
|
|
15
|
-
if ((0,
|
|
15
|
+
if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_attributed_version_history')) {
|
|
16
16
|
node1 = normalizeDocument(node1);
|
|
17
17
|
node2 = normalizeDocument(node2);
|
|
18
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { expVal } from '@atlaskit/platform-feature-experiments/exp-val';
|
|
2
1
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
3
|
const GENERIC_MENTION_IDS = ['HipChat', 'all', 'here'];
|
|
4
4
|
|
|
5
5
|
/** Shared avatar eligibility without importing mention components or resolving provider data. */
|
|
@@ -9,7 +9,5 @@ export function isMentionAvatarEnabled({
|
|
|
9
9
|
hasProvider,
|
|
10
10
|
canReportMissingProvider = false
|
|
11
11
|
}) {
|
|
12
|
-
|
|
13
|
-
const cohort = expVal('convo_ai_entity_hover_cards_non_hello_exp', 'hover_card_cohort', 'control');
|
|
14
|
-
return (hasProvider || canReportMissingProvider) && userType !== 'SPECIAL' && !GENERIC_MENTION_IDS.includes(id) && (cohort === 'person' || cohort === 'all' || isExperimentEnabled('platform_editor_mention_node_avatar') || isExperimentEnabled('canvas_agentic_experiences_master_exp') || isExperimentEnabled('platform_editor_mention_node_graphql_provider') || (userType === 'APP' || userType === 'AGENT') && isExperimentEnabled('platform_editor_drop3_hexagon_agent_avatar'));
|
|
12
|
+
return (hasProvider || canReportMissingProvider) && userType !== 'SPECIAL' && !GENERIC_MENTION_IDS.includes(id) && (fg('rovo_chat_people_entity_hover_cards') || isExperimentEnabled('platform_editor_mention_node_avatar') || isExperimentEnabled('canvas_agentic_experiences_master_exp') || isExperimentEnabled('platform_editor_mention_node_graphql_provider') || (userType === 'APP' || userType === 'AGENT') && isExperimentEnabled('platform_editor_drop3_hexagon_agent_avatar'));
|
|
15
13
|
}
|
|
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
13
13
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
14
14
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
15
15
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
16
|
-
const packageVersion = "134.8.
|
|
16
|
+
const packageVersion = "134.8.4";
|
|
17
17
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
18
18
|
// Remove URL as it has UGC
|
|
19
19
|
// Ignored via go/ees007
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "134.8.
|
|
16
|
+
const packageVersion = "134.8.4";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
1
2
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer/JSONTransformer-2';
|
|
2
3
|
import { Transform } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Returns true when documents have the same text and block structure, while ignoring marks and
|
|
7
7
|
* attributes. This is useful when comparing documents produced by different serialization paths.
|
|
8
8
|
*/
|
|
9
9
|
export function areDocsEqualByBlockStructureAndText(node1, node2) {
|
|
10
|
-
if (
|
|
10
|
+
if (isExperimentEnabled('platform_editor_attributed_version_history')) {
|
|
11
11
|
node1 = normalizeDocument(node1);
|
|
12
12
|
node2 = normalizeDocument(node2);
|
|
13
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { expVal } from '@atlaskit/platform-feature-experiments/exp-val';
|
|
2
1
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
3
|
var GENERIC_MENTION_IDS = ['HipChat', 'all', 'here'];
|
|
4
4
|
|
|
5
5
|
/** Shared avatar eligibility without importing mention components or resolving provider data. */
|
|
@@ -9,7 +9,5 @@ export function isMentionAvatarEnabled(_ref) {
|
|
|
9
9
|
hasProvider = _ref.hasProvider,
|
|
10
10
|
_ref$canReportMissing = _ref.canReportMissingProvider,
|
|
11
11
|
canReportMissingProvider = _ref$canReportMissing === void 0 ? false : _ref$canReportMissing;
|
|
12
|
-
|
|
13
|
-
var cohort = expVal('convo_ai_entity_hover_cards_non_hello_exp', 'hover_card_cohort', 'control');
|
|
14
|
-
return (hasProvider || canReportMissingProvider) && userType !== 'SPECIAL' && !GENERIC_MENTION_IDS.includes(id) && (cohort === 'person' || cohort === 'all' || isExperimentEnabled('platform_editor_mention_node_avatar') || isExperimentEnabled('canvas_agentic_experiences_master_exp') || isExperimentEnabled('platform_editor_mention_node_graphql_provider') || (userType === 'APP' || userType === 'AGENT') && isExperimentEnabled('platform_editor_drop3_hexagon_agent_avatar'));
|
|
12
|
+
return (hasProvider || canReportMissingProvider) && userType !== 'SPECIAL' && !GENERIC_MENTION_IDS.includes(id) && (fg('rovo_chat_people_entity_hover_cards') || isExperimentEnabled('platform_editor_mention_node_avatar') || isExperimentEnabled('canvas_agentic_experiences_master_exp') || isExperimentEnabled('platform_editor_mention_node_graphql_provider') || (userType === 'APP' || userType === 'AGENT') && isExperimentEnabled('platform_editor_drop3_hexagon_agent_avatar'));
|
|
15
13
|
}
|
|
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
19
19
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "134.8.
|
|
22
|
+
var packageVersion = "134.8.4";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "134.8.
|
|
23
|
+
var packageVersion = "134.8.4";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
1
2
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer/JSONTransformer-2';
|
|
2
3
|
import { Transform } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Returns true when documents have the same text and block structure, while ignoring marks and
|
|
7
7
|
* attributes. This is useful when comparing documents produced by different serialization paths.
|
|
8
8
|
*/
|
|
9
9
|
export function areDocsEqualByBlockStructureAndText(node1, node2) {
|
|
10
|
-
if (
|
|
10
|
+
if (isExperimentEnabled('platform_editor_attributed_version_history')) {
|
|
11
11
|
node1 = normalizeDocument(node1);
|
|
12
12
|
node2 = normalizeDocument(node2);
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "134.8.
|
|
3
|
+
"version": "134.8.5",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
"@atlaskit/atlassian-context": "^2.0.0",
|
|
39
39
|
"@atlaskit/browser-apis": "^1.2.0",
|
|
40
40
|
"@atlaskit/button": "^25.7.0",
|
|
41
|
-
"@atlaskit/codemod-utils": "^5.
|
|
41
|
+
"@atlaskit/codemod-utils": "^5.2.0",
|
|
42
42
|
"@atlaskit/css": "^1.1.0",
|
|
43
43
|
"@atlaskit/custom-steps": "^1.1.0",
|
|
44
44
|
"@atlaskit/dropdown-menu": "^21.0.0",
|
|
45
45
|
"@atlaskit/editor-json-transformer": "^10.0.0",
|
|
46
46
|
"@atlaskit/editor-palette": "^3.5.0",
|
|
47
47
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
48
|
-
"@atlaskit/editor-shared-styles": "^5.
|
|
48
|
+
"@atlaskit/editor-shared-styles": "^5.1.0",
|
|
49
49
|
"@atlaskit/editor-tables": "^3.2.0",
|
|
50
|
-
"@atlaskit/editor-toolbar": "^2.
|
|
50
|
+
"@atlaskit/editor-toolbar": "^2.10.0",
|
|
51
51
|
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
52
52
|
"@atlaskit/editor-ui-control-model": "^3.0.0",
|
|
53
53
|
"@atlaskit/emoji": "^73.4.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@atlaskit/task-decision": "^21.14.0",
|
|
86
86
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
87
87
|
"@atlaskit/textfield": "^10.3.0",
|
|
88
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
88
|
+
"@atlaskit/tmp-editor-statsig": "^258.0.0",
|
|
89
89
|
"@atlaskit/tokens": "^20.9.0",
|
|
90
90
|
"@atlaskit/tooltip": "^24.4.0",
|
|
91
91
|
"@atlaskit/width-detector": "^7.2.0",
|
|
@@ -159,10 +159,6 @@
|
|
|
159
159
|
"type": "boolean",
|
|
160
160
|
"referenceOnly": true
|
|
161
161
|
},
|
|
162
|
-
"confluence_ncs_step_diffing_version_history": {
|
|
163
|
-
"type": "boolean",
|
|
164
|
-
"referenceOnly": true
|
|
165
|
-
},
|
|
166
162
|
"platform_editor_add_text_color_tracking": {
|
|
167
163
|
"type": "boolean"
|
|
168
164
|
},
|