@atlaskit/editor-plugin-insert-block 9.1.6 → 9.2.1
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,28 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 9.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 9.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`505563ec74fe5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/505563ec74fe5) -
|
|
14
|
+
[ux] Add insert menu featured sorting for Create with Rovo via slash experiment.
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
20
|
+
## 9.1.7
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 9.1.6
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -36,7 +36,9 @@ var DEFAULT_HEIGHT = exports.DEFAULT_HEIGHT = 560;
|
|
|
36
36
|
* This newer implementation matches how the quick insert menu sorts elements.
|
|
37
37
|
*/
|
|
38
38
|
var sortFeaturedItems = exports.sortFeaturedItems = function sortFeaturedItems(featuredItems, formatMessage) {
|
|
39
|
-
|
|
39
|
+
// temporary for A/A test
|
|
40
|
+
['slot-two', 'slot-four'].includes((0, _expVal.expValNoExposure)('cc_fd_cwr_quick_insert_aa', 'cohort', 'control'));
|
|
41
|
+
if (['new-description', 'orig-description'].includes((0, _expVal.expVal)('cc_fd_db_top_editor_toolbar', 'cohort', 'control')) || (0, _expVal.expValNoExposure)('cc_fd_wb_jira_quick_insert_experiment', 'isEnabled', false) || ['slot-two', 'slot-four'].includes((0, _expVal.expValNoExposure)('cc_fd_cwr_quick_insert', 'cohort', 'control'))) {
|
|
40
42
|
// Sort by priority (lower first) on the concatenated list so items
|
|
41
43
|
// with "priority" are at the top (e.g. Whiteboard before Database)
|
|
42
44
|
return featuredItems.slice(0).sort(function (a, b) {
|
|
@@ -26,7 +26,9 @@ export const DEFAULT_HEIGHT = 560;
|
|
|
26
26
|
* This newer implementation matches how the quick insert menu sorts elements.
|
|
27
27
|
*/
|
|
28
28
|
export const sortFeaturedItems = (featuredItems, formatMessage) => {
|
|
29
|
-
|
|
29
|
+
// temporary for A/A test
|
|
30
|
+
['slot-two', 'slot-four'].includes(expValNoExposure('cc_fd_cwr_quick_insert_aa', 'cohort', 'control'));
|
|
31
|
+
if (['new-description', 'orig-description'].includes(expVal('cc_fd_db_top_editor_toolbar', 'cohort', 'control')) || expValNoExposure('cc_fd_wb_jira_quick_insert_experiment', 'isEnabled', false) || ['slot-two', 'slot-four'].includes(expValNoExposure('cc_fd_cwr_quick_insert', 'cohort', 'control'))) {
|
|
30
32
|
// Sort by priority (lower first) on the concatenated list so items
|
|
31
33
|
// with "priority" are at the top (e.g. Whiteboard before Database)
|
|
32
34
|
return featuredItems.slice(0).sort((a, b) => (a.priority || Number.POSITIVE_INFINITY) - (b.priority || Number.POSITIVE_INFINITY));
|
|
@@ -33,7 +33,9 @@ export var DEFAULT_HEIGHT = 560;
|
|
|
33
33
|
* This newer implementation matches how the quick insert menu sorts elements.
|
|
34
34
|
*/
|
|
35
35
|
export var sortFeaturedItems = function sortFeaturedItems(featuredItems, formatMessage) {
|
|
36
|
-
|
|
36
|
+
// temporary for A/A test
|
|
37
|
+
['slot-two', 'slot-four'].includes(expValNoExposure('cc_fd_cwr_quick_insert_aa', 'cohort', 'control'));
|
|
38
|
+
if (['new-description', 'orig-description'].includes(expVal('cc_fd_db_top_editor_toolbar', 'cohort', 'control')) || expValNoExposure('cc_fd_wb_jira_quick_insert_experiment', 'isEnabled', false) || ['slot-two', 'slot-four'].includes(expValNoExposure('cc_fd_cwr_quick_insert', 'cohort', 'control'))) {
|
|
37
39
|
// Sort by priority (lower first) on the concatenated list so items
|
|
38
40
|
// with "priority" are at the top (e.g. Whiteboard before Database)
|
|
39
41
|
return featuredItems.slice(0).sort(function (a, b) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "9.1
|
|
3
|
+
"version": "9.2.1",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/icon": "^34.0.0",
|
|
65
65
|
"@atlaskit/icon-lab": "^6.4.0",
|
|
66
66
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
67
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
67
|
+
"@atlaskit/tmp-editor-statsig": "^61.0.0",
|
|
68
68
|
"@atlaskit/tokens": "^13.0.0",
|
|
69
69
|
"@babel/runtime": "^7.0.0",
|
|
70
70
|
"@emotion/react": "^11.7.1",
|