@atlaskit/editor-plugin-insert-block 9.1.5 → 9.2.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,28 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 9.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`505563ec74fe5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/505563ec74fe5) -
8
+ [ux] Add insert menu featured sorting for Create with Rovo via slash experiment.
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 9.1.7
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
20
+ ## 9.1.6
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies
25
+
3
26
  ## 9.1.5
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
- 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)) {
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
- 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)) {
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
- 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)) {
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.5",
3
+ "version": "9.2.0",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/editor-plugin-image-upload": "^8.0.0",
44
44
  "@atlaskit/editor-plugin-layout": "^8.1.0",
45
45
  "@atlaskit/editor-plugin-media": "^10.2.0",
46
- "@atlaskit/editor-plugin-media-insert": "^20.0.0",
46
+ "@atlaskit/editor-plugin-media-insert": "^21.0.0",
47
47
  "@atlaskit/editor-plugin-mentions": "^10.0.0",
48
48
  "@atlaskit/editor-plugin-metrics": "^9.0.0",
49
49
  "@atlaskit/editor-plugin-panel": "^10.0.0",
@@ -64,8 +64,8 @@
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": "^58.0.0",
68
- "@atlaskit/tokens": "^12.0.0",
67
+ "@atlaskit/tmp-editor-statsig": "^60.2.0",
68
+ "@atlaskit/tokens": "^13.0.0",
69
69
  "@babel/runtime": "^7.0.0",
70
70
  "@emotion/react": "^11.7.1",
71
71
  "bind-event-listener": "^3.0.0",
@@ -74,7 +74,7 @@
74
74
  "react-virtualized": "^9.22.6"
75
75
  },
76
76
  "peerDependencies": {
77
- "@atlaskit/editor-common": "^112.19.0",
77
+ "@atlaskit/editor-common": "^112.20.0",
78
78
  "react": "^18.2.0",
79
79
  "react-dom": "^18.2.0",
80
80
  "react-intl-next": "npm:react-intl@^5.18.1"