@atlaskit/editor-plugin-highlight 1.20.0 → 1.21.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 +20 -0
- package/dist/cjs/highlightPlugin.js +10 -1
- package/dist/es2019/highlightPlugin.js +21 -10
- package/dist/esm/highlightPlugin.js +10 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-highlight
|
|
2
2
|
|
|
3
|
+
## 1.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#116013](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116013)
|
|
8
|
+
[`18e022766bfd3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18e022766bfd3) -
|
|
9
|
+
[ux] ED-26464 Hiding primary toolbar and docking contextual toolbar items to top
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 1.20.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#112186](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112186)
|
|
20
|
+
[`9462d8ca2405a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9462d8ca2405a) -
|
|
21
|
+
Bump adf-schema to 47.2.1
|
|
22
|
+
|
|
3
23
|
## 1.20.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -24,7 +24,16 @@ var highlightPlugin = exports.highlightPlugin = function highlightPlugin(_ref) {
|
|
|
24
24
|
popupsScrollableElement = _ref2.popupsScrollableElement,
|
|
25
25
|
disabled = _ref2.disabled,
|
|
26
26
|
isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
|
|
27
|
-
editorView = _ref2.editorView
|
|
27
|
+
editorView = _ref2.editorView,
|
|
28
|
+
dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent;
|
|
29
|
+
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
30
|
+
exposure: true
|
|
31
|
+
})) {
|
|
32
|
+
return /*#__PURE__*/_react.default.createElement(_FloatingToolbarHighlightColor.FloatingToolbarHighlightColorWithIntl, {
|
|
33
|
+
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
34
|
+
pluginInjectionApi: api
|
|
35
|
+
});
|
|
36
|
+
}
|
|
28
37
|
return /*#__PURE__*/_react.default.createElement(_PrimaryToolbarHighlightColor.PrimaryToolbarHighlightColorWithIntl, {
|
|
29
38
|
popupsMountPoint: popupsMountPoint,
|
|
30
39
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
@@ -18,16 +18,27 @@ export const highlightPlugin = ({
|
|
|
18
18
|
popupsScrollableElement,
|
|
19
19
|
disabled,
|
|
20
20
|
isToolbarReducedSpacing,
|
|
21
|
-
editorView
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
editorView,
|
|
22
|
+
dispatchAnalyticsEvent
|
|
23
|
+
}) => {
|
|
24
|
+
if (editorExperiment('platform_editor_controls', 'variant1', {
|
|
25
|
+
exposure: true
|
|
26
|
+
})) {
|
|
27
|
+
return /*#__PURE__*/React.createElement(FloatingToolbarHighlightColor, {
|
|
28
|
+
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
29
|
+
pluginInjectionApi: api
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return /*#__PURE__*/React.createElement(PrimaryToolbarHighlightColor, {
|
|
33
|
+
popupsMountPoint: popupsMountPoint,
|
|
34
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
35
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
36
|
+
disabled: disabled,
|
|
37
|
+
isToolbarReducedSpacing: isToolbarReducedSpacing,
|
|
38
|
+
pluginInjectionApi: api,
|
|
39
|
+
editorView: editorView
|
|
40
|
+
});
|
|
41
|
+
};
|
|
31
42
|
api === null || api === void 0 ? void 0 : (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 ? void 0 : _api$primaryToolbar.actions.registerComponent({
|
|
32
43
|
name: 'highlight',
|
|
33
44
|
component: primaryToolbarComponent
|
|
@@ -17,7 +17,16 @@ export var highlightPlugin = function highlightPlugin(_ref) {
|
|
|
17
17
|
popupsScrollableElement = _ref2.popupsScrollableElement,
|
|
18
18
|
disabled = _ref2.disabled,
|
|
19
19
|
isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
|
|
20
|
-
editorView = _ref2.editorView
|
|
20
|
+
editorView = _ref2.editorView,
|
|
21
|
+
dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent;
|
|
22
|
+
if (editorExperiment('platform_editor_controls', 'variant1', {
|
|
23
|
+
exposure: true
|
|
24
|
+
})) {
|
|
25
|
+
return /*#__PURE__*/React.createElement(FloatingToolbarHighlightColor, {
|
|
26
|
+
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
27
|
+
pluginInjectionApi: api
|
|
28
|
+
});
|
|
29
|
+
}
|
|
21
30
|
return /*#__PURE__*/React.createElement(PrimaryToolbarHighlightColor, {
|
|
22
31
|
popupsMountPoint: popupsMountPoint,
|
|
23
32
|
popupsBoundariesElement: popupsBoundariesElement,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-highlight",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.0",
|
|
4
4
|
"description": "Highlight plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
".": "./src/index.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/adf-schema": "^
|
|
40
|
-
"@atlaskit/editor-common": "^99.
|
|
39
|
+
"@atlaskit/adf-schema": "^47.2.1",
|
|
40
|
+
"@atlaskit/editor-common": "^99.18.0",
|
|
41
41
|
"@atlaskit/editor-palette": "1.7.0",
|
|
42
42
|
"@atlaskit/editor-plugin-analytics": "^1.12.0",
|
|
43
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^2.
|
|
44
|
-
"@atlaskit/editor-plugin-text-formatting": "^1.
|
|
43
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^2.3.0",
|
|
44
|
+
"@atlaskit/editor-plugin-text-formatting": "^1.19.0",
|
|
45
45
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
46
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
46
|
+
"@atlaskit/editor-shared-styles": "^3.3.0",
|
|
47
47
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
48
|
-
"@atlaskit/icon": "^23.
|
|
49
|
-
"@atlaskit/platform-feature-flags": "^1.
|
|
50
|
-
"@atlaskit/primitives": "^13.
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
48
|
+
"@atlaskit/icon": "^23.10.0",
|
|
49
|
+
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
|
+
"@atlaskit/primitives": "^13.6.0",
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^2.47.0",
|
|
52
52
|
"@atlaskit/tokens": "^3.3.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
54
|
"@emotion/react": "^11.7.1"
|