@atlaskit/editor-plugin-primary-toolbar 4.1.2 → 4.1.3
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-primary-toolbar
|
|
2
2
|
|
|
3
|
+
## 4.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#195513](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/195513)
|
|
8
|
+
[`98c0ba1c91086`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/98c0ba1c91086) -
|
|
9
|
+
[EDITOR-1073] Adding a FG to gate Jira as well as Confluence for Undo/ Redo/ Show Diff buttons in
|
|
10
|
+
the primary toolbar
|
|
11
|
+
|
|
3
12
|
## 4.1.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -20,7 +20,9 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
|
|
|
20
20
|
configuration = toolbarConfigurationV2(true, shouldShowUndoRedoGroup);
|
|
21
21
|
} else {
|
|
22
22
|
var shouldShowFindGroup = !!contextualFormattingEnabled;
|
|
23
|
-
|
|
23
|
+
// platform_editor_ai_in_document_streaming is the feature flag for Confluence
|
|
24
|
+
// editor-jira-undo-redo-show-diff-buttons is the feature flag for Jira
|
|
25
|
+
if (((0, _platformFeatureFlags.fg)('platform_editor_ai_in_document_streaming') || (0, _platformFeatureFlags.fg)('editor-jira-undo-redo-show-diff-buttons')) && componentRegistry.has('trackChanges')) {
|
|
24
26
|
configuration = toolbarConfigurationV3(shouldShowFindGroup);
|
|
25
27
|
} else {
|
|
26
28
|
configuration = toolbarConfiguration(shouldShowFindGroup);
|
|
@@ -13,7 +13,9 @@ export const getToolbarComponents = ({
|
|
|
13
13
|
configuration = toolbarConfigurationV2(true, shouldShowUndoRedoGroup);
|
|
14
14
|
} else {
|
|
15
15
|
const shouldShowFindGroup = !!contextualFormattingEnabled;
|
|
16
|
-
|
|
16
|
+
// platform_editor_ai_in_document_streaming is the feature flag for Confluence
|
|
17
|
+
// editor-jira-undo-redo-show-diff-buttons is the feature flag for Jira
|
|
18
|
+
if ((fg('platform_editor_ai_in_document_streaming') || fg('editor-jira-undo-redo-show-diff-buttons')) && componentRegistry.has('trackChanges')) {
|
|
17
19
|
configuration = toolbarConfigurationV3(shouldShowFindGroup);
|
|
18
20
|
} else {
|
|
19
21
|
configuration = toolbarConfiguration(shouldShowFindGroup);
|
|
@@ -13,7 +13,9 @@ export var getToolbarComponents = function getToolbarComponents(_ref) {
|
|
|
13
13
|
configuration = toolbarConfigurationV2(true, shouldShowUndoRedoGroup);
|
|
14
14
|
} else {
|
|
15
15
|
var shouldShowFindGroup = !!contextualFormattingEnabled;
|
|
16
|
-
|
|
16
|
+
// platform_editor_ai_in_document_streaming is the feature flag for Confluence
|
|
17
|
+
// editor-jira-undo-redo-show-diff-buttons is the feature flag for Jira
|
|
18
|
+
if ((fg('platform_editor_ai_in_document_streaming') || fg('editor-jira-undo-redo-show-diff-buttons')) && componentRegistry.has('trackChanges')) {
|
|
17
19
|
configuration = toolbarConfigurationV3(shouldShowFindGroup);
|
|
18
20
|
} else {
|
|
19
21
|
configuration = toolbarConfiguration(shouldShowFindGroup);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-primary-toolbar",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "Primary toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^9.24.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"@emotion/react": "^11.7.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@atlaskit/editor-common": "^107.
|
|
45
|
+
"@atlaskit/editor-common": "^107.17.0",
|
|
46
46
|
"react": "^18.2.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -88,6 +88,9 @@
|
|
|
88
88
|
"type": "boolean",
|
|
89
89
|
"referenceOnly": true
|
|
90
90
|
},
|
|
91
|
+
"editor-jira-undo-redo-show-diff-buttons": {
|
|
92
|
+
"type": "boolean"
|
|
93
|
+
},
|
|
91
94
|
"platform_editor_undo_redo_find_on_primary_toolbar": {
|
|
92
95
|
"type": "boolean"
|
|
93
96
|
}
|