@atlaskit/editor-plugin-annotation 2.0.1 → 2.1.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,26 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-annotation
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#120472](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120472)
|
|
8
|
+
[`73c800ab5f2fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73c800ab5f2fc) -
|
|
9
|
+
ED-26766 update adf-schema from 47.2.1 to 47.6.0 and adf-schema-json from 1.27.0 to 1.31.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 2.0.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#117485](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/117485)
|
|
20
|
+
[`e9a8d9ba26963`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e9a8d9ba26963) -
|
|
21
|
+
Reorder icons, and remove some based on new editor controls. Changes under
|
|
22
|
+
`editor_plugin_controls` experiment.
|
|
23
|
+
|
|
3
24
|
## 2.0.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -43,7 +43,7 @@ var buildToolbar = exports.buildToolbar = function buildToolbar(editorAnalyticsA
|
|
|
43
43
|
type: 'button',
|
|
44
44
|
showTitle: !isViewMode && (0, _experiments.editorExperiment)('contextual_formatting_toolbar', true, {
|
|
45
45
|
exposure: true
|
|
46
|
-
}) ? false : true,
|
|
46
|
+
}) && (0, _experiments.editorExperiment)('platform_editor_controls', 'control') ? false : true,
|
|
47
47
|
disabled: selectionValid === _types.AnnotationSelectionType.DISABLED || (api === null || api === void 0 || (_api$connectivity = api.connectivity) === null || _api$connectivity === void 0 || (_api$connectivity = _api$connectivity.sharedState) === null || _api$connectivity === void 0 || (_api$connectivity = _api$connectivity.currentState()) === null || _api$connectivity === void 0 ? void 0 : _api$connectivity.mode) === 'offline',
|
|
48
48
|
testId: _types.AnnotationTestIds.floatingToolbarCreateButton,
|
|
49
49
|
icon: _comment.default,
|
|
@@ -36,7 +36,7 @@ export const buildToolbar = editorAnalyticsAPI => ({
|
|
|
36
36
|
type: 'button',
|
|
37
37
|
showTitle: !isViewMode && editorExperiment('contextual_formatting_toolbar', true, {
|
|
38
38
|
exposure: true
|
|
39
|
-
}) ? false : true,
|
|
39
|
+
}) && editorExperiment('platform_editor_controls', 'control') ? false : true,
|
|
40
40
|
disabled: selectionValid === AnnotationSelectionType.DISABLED || (api === null || api === void 0 ? void 0 : (_api$connectivity = api.connectivity) === null || _api$connectivity === void 0 ? void 0 : (_api$connectivity$sha = _api$connectivity.sharedState) === null || _api$connectivity$sha === void 0 ? void 0 : (_api$connectivity$sha2 = _api$connectivity$sha.currentState()) === null || _api$connectivity$sha2 === void 0 ? void 0 : _api$connectivity$sha2.mode) === 'offline',
|
|
41
41
|
testId: AnnotationTestIds.floatingToolbarCreateButton,
|
|
42
42
|
icon: CommentIcon,
|
|
@@ -36,7 +36,7 @@ export var buildToolbar = function buildToolbar(editorAnalyticsAPI) {
|
|
|
36
36
|
type: 'button',
|
|
37
37
|
showTitle: !isViewMode && editorExperiment('contextual_formatting_toolbar', true, {
|
|
38
38
|
exposure: true
|
|
39
|
-
}) ? false : true,
|
|
39
|
+
}) && editorExperiment('platform_editor_controls', 'control') ? false : true,
|
|
40
40
|
disabled: selectionValid === AnnotationSelectionType.DISABLED || (api === null || api === void 0 || (_api$connectivity = api.connectivity) === null || _api$connectivity === void 0 || (_api$connectivity = _api$connectivity.sharedState) === null || _api$connectivity === void 0 || (_api$connectivity = _api$connectivity.currentState()) === null || _api$connectivity === void 0 ? void 0 : _api$connectivity.mode) === 'offline',
|
|
41
41
|
testId: AnnotationTestIds.floatingToolbarCreateButton,
|
|
42
42
|
icon: CommentIcon,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-annotation",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Annotation plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/adf-schema": "^47.
|
|
35
|
-
"@atlaskit/editor-common": "^100.
|
|
36
|
-
"@atlaskit/editor-plugin-analytics": "^2.
|
|
34
|
+
"@atlaskit/adf-schema": "^47.6.0",
|
|
35
|
+
"@atlaskit/editor-common": "^100.5.0",
|
|
36
|
+
"@atlaskit/editor-plugin-analytics": "^2.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-editor-viewmode-effects": "^2.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-feature-flags": "^1.3.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/icon": "^24.1.0",
|
|
42
42
|
"@atlaskit/onboarding": "^13.0.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
|
-
"@atlaskit/tmp-editor-statsig": "^3.
|
|
44
|
+
"@atlaskit/tmp-editor-statsig": "^3.4.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|