@atlaskit/editor-plugin-insert-block 14.0.4 → 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,41 @@
|
|
|
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
|
+
|
|
33
|
+
## 15.0.0
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- Updated dependencies
|
|
38
|
+
|
|
3
39
|
## 14.0.4
|
|
4
40
|
|
|
5
41
|
### 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)
|
|
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)
|
|
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)
|
|
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": "
|
|
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",
|
|
@@ -22,32 +22,32 @@
|
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/browser-apis": "^1.2.0",
|
|
25
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
26
|
-
"@atlaskit/editor-plugin-block-type": "^
|
|
27
|
-
"@atlaskit/editor-plugin-code-block": "^
|
|
28
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
29
|
-
"@atlaskit/editor-plugin-date": "^
|
|
30
|
-
"@atlaskit/editor-plugin-emoji": "^
|
|
31
|
-
"@atlaskit/editor-plugin-expand": "^
|
|
32
|
-
"@atlaskit/editor-plugin-extension": "^
|
|
33
|
-
"@atlaskit/editor-plugin-feature-flags": "^
|
|
34
|
-
"@atlaskit/editor-plugin-hyperlink": "^
|
|
35
|
-
"@atlaskit/editor-plugin-image-upload": "^
|
|
36
|
-
"@atlaskit/editor-plugin-layout": "^
|
|
37
|
-
"@atlaskit/editor-plugin-media": "^
|
|
38
|
-
"@atlaskit/editor-plugin-media-insert": "^
|
|
39
|
-
"@atlaskit/editor-plugin-mentions": "^
|
|
40
|
-
"@atlaskit/editor-plugin-metrics": "^
|
|
41
|
-
"@atlaskit/editor-plugin-panel": "^
|
|
42
|
-
"@atlaskit/editor-plugin-placeholder-text": "^
|
|
43
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
44
|
-
"@atlaskit/editor-plugin-quick-insert": "^
|
|
45
|
-
"@atlaskit/editor-plugin-rule": "^
|
|
46
|
-
"@atlaskit/editor-plugin-status": "^
|
|
47
|
-
"@atlaskit/editor-plugin-table": "^
|
|
48
|
-
"@atlaskit/editor-plugin-tasks-and-decisions": "^
|
|
49
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
50
|
-
"@atlaskit/editor-plugin-type-ahead": "^
|
|
25
|
+
"@atlaskit/editor-plugin-analytics": "^14.0.0",
|
|
26
|
+
"@atlaskit/editor-plugin-block-type": "^18.0.0",
|
|
27
|
+
"@atlaskit/editor-plugin-code-block": "^16.0.0",
|
|
28
|
+
"@atlaskit/editor-plugin-connectivity": "^14.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-date": "^16.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-emoji": "^15.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-expand": "^15.0.0",
|
|
32
|
+
"@atlaskit/editor-plugin-extension": "^17.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-feature-flags": "^13.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-hyperlink": "^16.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-image-upload": "^14.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-layout": "^15.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-media": "^16.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-media-insert": "^29.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-mentions": "^16.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-metrics": "^15.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-panel": "^16.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-placeholder-text": "^15.0.0",
|
|
43
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^15.0.0",
|
|
44
|
+
"@atlaskit/editor-plugin-quick-insert": "^14.0.0",
|
|
45
|
+
"@atlaskit/editor-plugin-rule": "^14.0.0",
|
|
46
|
+
"@atlaskit/editor-plugin-status": "^15.0.0",
|
|
47
|
+
"@atlaskit/editor-plugin-table": "^26.0.0",
|
|
48
|
+
"@atlaskit/editor-plugin-tasks-and-decisions": "^17.0.0",
|
|
49
|
+
"@atlaskit/editor-plugin-toolbar": "^11.0.0",
|
|
50
|
+
"@atlaskit/editor-plugin-type-ahead": "^15.0.0",
|
|
51
51
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
52
52
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
53
53
|
"@atlaskit/editor-toolbar": "^2.4.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": "^
|
|
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": "^
|
|
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"
|