@atlaskit/editor-plugin-highlight 4.0.5 → 5.0.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,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-highlight
|
|
2
2
|
|
|
3
|
+
## 5.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 4.0.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`c0113eeccb2df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c0113eeccb2df) -
|
|
14
|
+
[ux] ED-29120 add a new config option for default editor preset
|
|
15
|
+
(`toolbar.enableNewToolbarExperience`) which allows the new toolbar to be disabled. This is needed
|
|
16
|
+
for editors that can't be excluded at the experiment level.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 4.0.5
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -20,7 +20,7 @@ var highlightPlugin = exports.highlightPlugin = function highlightPlugin(_ref) {
|
|
|
20
20
|
var api = _ref.api,
|
|
21
21
|
options = _ref.config;
|
|
22
22
|
var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
|
|
23
|
-
var isToolbarAifcEnabled = (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
|
|
23
|
+
var isToolbarAifcEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
|
|
24
24
|
exposure: true
|
|
25
25
|
});
|
|
26
26
|
var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
|
|
@@ -14,7 +14,7 @@ export const highlightPlugin = ({
|
|
|
14
14
|
}) => {
|
|
15
15
|
var _api$analytics;
|
|
16
16
|
const editorAnalyticsAPI = api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
|
|
17
|
-
const isToolbarAifcEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
17
|
+
const isToolbarAifcEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
18
18
|
exposure: true
|
|
19
19
|
});
|
|
20
20
|
const primaryToolbarComponent = ({
|
|
@@ -13,7 +13,7 @@ export var highlightPlugin = function highlightPlugin(_ref) {
|
|
|
13
13
|
var api = _ref.api,
|
|
14
14
|
options = _ref.config;
|
|
15
15
|
var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
|
|
16
|
-
var isToolbarAifcEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
16
|
+
var isToolbarAifcEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
17
17
|
exposure: true
|
|
18
18
|
});
|
|
19
19
|
var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-highlight",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Highlight plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
],
|
|
33
33
|
"atlaskit:src": "src/index.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^
|
|
35
|
+
"@atlaskit/adf-schema": "^51.0.0",
|
|
36
36
|
"@atlaskit/button": "^23.4.0",
|
|
37
37
|
"@atlaskit/css": "^0.14.0",
|
|
38
38
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
39
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
40
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
41
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^
|
|
42
|
-
"@atlaskit/editor-plugin-text-formatting": "^
|
|
43
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
39
|
+
"@atlaskit/editor-plugin-analytics": "^5.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^6.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^6.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-text-formatting": "^5.0.0",
|
|
43
|
+
"@atlaskit/editor-plugin-toolbar": "^2.0.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
45
45
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
46
46
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
"@atlaskit/icon": "^28.1.0",
|
|
51
51
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
52
52
|
"@atlaskit/primitives": "^14.14.0",
|
|
53
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
53
|
+
"@atlaskit/tmp-editor-statsig": "^12.9.0",
|
|
54
54
|
"@atlaskit/tokens": "^6.3.0",
|
|
55
55
|
"@babel/runtime": "^7.0.0",
|
|
56
56
|
"@emotion/react": "^11.7.1"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^
|
|
59
|
+
"@atlaskit/editor-common": "^109.0.0",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
62
62
|
},
|