@atlaskit/editor-plugin-hyperlink 0.6.1 → 0.6.2
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 +6 -0
- package/dist/cjs/Toolbar.js +2 -3
- package/dist/es2019/Toolbar.js +2 -3
- package/dist/esm/Toolbar.js +2 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 0.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#42839](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42839) [`7324375d4fa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7324375d4fa) - [ux] Cleansup feature flag `prevent-popup-overflow` so that it is permanently enabled when `lp-link-picker` flag is enabled, improving the positioning of the link picker.
|
|
8
|
+
|
|
3
9
|
## 0.6.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/Toolbar.js
CHANGED
|
@@ -114,8 +114,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
114
114
|
var formatMessage = intl.formatMessage;
|
|
115
115
|
var linkState = _main.stateKey.getState(state);
|
|
116
116
|
var editorAnalyticsApi = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions;
|
|
117
|
-
var lpLinkPicker = featureFlags.lpLinkPicker
|
|
118
|
-
preventPopupOverflow = featureFlags.preventPopupOverflow;
|
|
117
|
+
var lpLinkPicker = featureFlags.lpLinkPicker;
|
|
119
118
|
if (linkState && linkState.activeLinkMark) {
|
|
120
119
|
var activeLinkMark = linkState.activeLinkMark;
|
|
121
120
|
var hyperLinkToolbar = {
|
|
@@ -213,7 +212,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
213
212
|
var displayText = isEditLink(activeLinkMark) ? getLinkText(activeLinkMark, state) : linkState.activeText;
|
|
214
213
|
var popupHeight = lpLinkPicker ? _ui.LINKPICKER_HEIGHT_IN_PX : _ui.RECENT_SEARCH_HEIGHT_IN_PX;
|
|
215
214
|
return _objectSpread(_objectSpread({}, hyperLinkToolbar), {}, {
|
|
216
|
-
preventPopupOverflow:
|
|
215
|
+
preventPopupOverflow: !!lpLinkPicker,
|
|
217
216
|
height: popupHeight,
|
|
218
217
|
width: _ui.RECENT_SEARCH_WIDTH_IN_PX,
|
|
219
218
|
items: [{
|
package/dist/es2019/Toolbar.js
CHANGED
|
@@ -99,8 +99,7 @@ export const getToolbarConfig = (options, featureFlags, pluginInjectionApi) => (
|
|
|
99
99
|
const linkState = stateKey.getState(state);
|
|
100
100
|
const editorAnalyticsApi = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions;
|
|
101
101
|
const {
|
|
102
|
-
lpLinkPicker
|
|
103
|
-
preventPopupOverflow
|
|
102
|
+
lpLinkPicker
|
|
104
103
|
} = featureFlags;
|
|
105
104
|
if (linkState && linkState.activeLinkMark) {
|
|
106
105
|
const {
|
|
@@ -199,7 +198,7 @@ export const getToolbarConfig = (options, featureFlags, pluginInjectionApi) => (
|
|
|
199
198
|
const popupHeight = lpLinkPicker ? LINKPICKER_HEIGHT_IN_PX : RECENT_SEARCH_HEIGHT_IN_PX;
|
|
200
199
|
return {
|
|
201
200
|
...hyperLinkToolbar,
|
|
202
|
-
preventPopupOverflow,
|
|
201
|
+
preventPopupOverflow: !!lpLinkPicker,
|
|
203
202
|
height: popupHeight,
|
|
204
203
|
width: RECENT_SEARCH_WIDTH_IN_PX,
|
|
205
204
|
items: [{
|
package/dist/esm/Toolbar.js
CHANGED
|
@@ -106,8 +106,7 @@ export var getToolbarConfig = function getToolbarConfig(options, featureFlags, p
|
|
|
106
106
|
var formatMessage = intl.formatMessage;
|
|
107
107
|
var linkState = stateKey.getState(state);
|
|
108
108
|
var editorAnalyticsApi = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions;
|
|
109
|
-
var lpLinkPicker = featureFlags.lpLinkPicker
|
|
110
|
-
preventPopupOverflow = featureFlags.preventPopupOverflow;
|
|
109
|
+
var lpLinkPicker = featureFlags.lpLinkPicker;
|
|
111
110
|
if (linkState && linkState.activeLinkMark) {
|
|
112
111
|
var activeLinkMark = linkState.activeLinkMark;
|
|
113
112
|
var hyperLinkToolbar = {
|
|
@@ -205,7 +204,7 @@ export var getToolbarConfig = function getToolbarConfig(options, featureFlags, p
|
|
|
205
204
|
var displayText = isEditLink(activeLinkMark) ? getLinkText(activeLinkMark, state) : linkState.activeText;
|
|
206
205
|
var popupHeight = lpLinkPicker ? LINKPICKER_HEIGHT_IN_PX : RECENT_SEARCH_HEIGHT_IN_PX;
|
|
207
206
|
return _objectSpread(_objectSpread({}, hyperLinkToolbar), {}, {
|
|
208
|
-
preventPopupOverflow:
|
|
207
|
+
preventPopupOverflow: !!lpLinkPicker,
|
|
209
208
|
height: popupHeight,
|
|
210
209
|
width: RECENT_SEARCH_WIDTH_IN_PX,
|
|
211
210
|
items: [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^34.0.0",
|
|
35
35
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
36
|
-
"@atlaskit/editor-common": "^76.
|
|
36
|
+
"@atlaskit/editor-common": "^76.23.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^0.3.0",
|
|
38
38
|
"@atlaskit/editor-plugin-feature-flags": "^1.0.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "1.1.0",
|