@atlaskit/editor-plugin-insert-block 15.0.0 → 15.0.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,35 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 15.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8e67cc3c24a39`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8e67cc3c24a39) -
8
+ Remove the concluded Create with Rovo quick-insert experiment and retain its control behavior.
9
+
10
+ This is a breaking API change for `@atlaskit/tmp-editor-statsig` consumers because
11
+ `editorExperimentsConfig.cc_fd_cwr_quick_insert` and the corresponding typed experiment key no
12
+ longer exist.
13
+
14
+ Remove references to `editorExperimentsConfig.cc_fd_cwr_quick_insert` and experiment lookups such
15
+ as:
16
+
17
+ ```ts
18
+ if (expValNoExposure('cc_fd_cwr_quick_insert', 'cohort', 'control') === 'control') {
19
+ return useControlBehavior();
20
+ }
21
+ return useTreatmentBehavior();
22
+ ```
23
+
24
+ There is no replacement experiment. Delete the conditional and use the former control behavior
25
+ directly:
26
+
27
+ ```ts
28
+ return useControlBehavior();
29
+ ```
30
+
31
+ - Updated dependencies
32
+
3
33
  ## 15.0.0
4
34
 
5
35
  ### Patch Changes
@@ -36,7 +36,7 @@ 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) || ['slot-two', 'slot-four'].includes((0, _expVal.expValNoExposure)('cc_fd_cwr_quick_insert', 'cohort', 'control'))) {
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)) {
40
40
  // Sort by priority (lower first) on the concatenated list so items
41
41
  // with "priority" are at the top (e.g. Whiteboard before Database)
42
42
  return featuredItems.slice(0).sort(function (a, b) {
@@ -26,7 +26,7 @@ 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) || ['slot-two', 'slot-four'].includes(expValNoExposure('cc_fd_cwr_quick_insert', 'cohort', 'control'))) {
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)) {
30
30
  // Sort by priority (lower first) on the concatenated list so items
31
31
  // with "priority" are at the top (e.g. Whiteboard before Database)
32
32
  return featuredItems.slice(0).sort((a, b) => (a.priority || Number.POSITIVE_INFINITY) - (b.priority || Number.POSITIVE_INFINITY));
@@ -33,7 +33,7 @@ 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) || ['slot-two', 'slot-four'].includes(expValNoExposure('cc_fd_cwr_quick_insert', 'cohort', 'control'))) {
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)) {
37
37
  // Sort by priority (lower first) on the concatenated list so items
38
38
  // with "priority" are at the top (e.g. Whiteboard before Database)
39
39
  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": "15.0.0",
3
+ "version": "15.0.1",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/icon": "^37.3.0",
57
57
  "@atlaskit/icon-lab": "^7.5.0",
58
58
  "@atlaskit/platform-feature-flags": "^2.1.0",
59
- "@atlaskit/tmp-editor-statsig": "^142.0.0",
59
+ "@atlaskit/tmp-editor-statsig": "^143.0.0",
60
60
  "@atlaskit/tokens": "^16.4.0",
61
61
  "@babel/runtime": "^7.0.0",
62
62
  "@emotion/react": "^11.7.1",
@@ -66,7 +66,7 @@
66
66
  "react-virtualized": "^9.22.6"
67
67
  },
68
68
  "peerDependencies": {
69
- "@atlaskit/editor-common": "^118.0.0",
69
+ "@atlaskit/editor-common": "^118.1.0",
70
70
  "react": "^18.2.0 || ^19.2.0",
71
71
  "react-dom": "^18.2.0 || ^19.2.0",
72
72
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"