@atlaskit/editor-plugin-hyperlink 2.7.2 → 2.7.4
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 +15 -0
- package/dist/cjs/Toolbar.js +2 -2
- package/dist/es2019/Toolbar.js +3 -3
- package/dist/esm/Toolbar.js +3 -3
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 2.7.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 2.7.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 2.7.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
19
|
+
- [#125980](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/125980)
|
|
20
|
+
[`93070430085a6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/93070430085a6) -
|
|
21
|
+
fix editor popup overflow issue
|
|
7
22
|
- Updated dependencies
|
|
8
23
|
|
|
9
24
|
## 2.7.1
|
package/dist/cjs/Toolbar.js
CHANGED
|
@@ -202,7 +202,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
202
202
|
formatMessage: formatMessage,
|
|
203
203
|
markType: state.schema.marks.link
|
|
204
204
|
}]
|
|
205
|
-
}], (0, _toConsumableArray2.default)((_cardActions$getEndin = cardActions === null || cardActions === void 0 ? void 0 : cardActions.getEndingToolbarItems(intl, link)) !== null && _cardActions$getEndin !== void 0 ? _cardActions$getEndin : []), (0, _toConsumableArray2.default)((0, _platformFeatureFlags.
|
|
205
|
+
}], (0, _toConsumableArray2.default)((_cardActions$getEndin = cardActions === null || cardActions === void 0 ? void 0 : cardActions.getEndingToolbarItems(intl, link)) !== null && _cardActions$getEndin !== void 0 ? _cardActions$getEndin : []), (0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('platform.editor.card.inject-settings-button') ? [] : getSettingsButtonGroup(intl, editorAnalyticsApi)));
|
|
206
206
|
return _objectSpread(_objectSpread({}, hyperLinkToolbar), {}, {
|
|
207
207
|
height: 32,
|
|
208
208
|
width: 250,
|
|
@@ -223,7 +223,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
223
223
|
var displayText = isEditLink(activeLinkMark) ? getLinkText(activeLinkMark, state) : linkState.activeText;
|
|
224
224
|
var popupHeight = lpLinkPicker ? _ui.LINKPICKER_HEIGHT_IN_PX : _ui.RECENT_SEARCH_HEIGHT_IN_PX;
|
|
225
225
|
return _objectSpread(_objectSpread({}, hyperLinkToolbar), {}, {
|
|
226
|
-
preventPopupOverflow:
|
|
226
|
+
preventPopupOverflow: true,
|
|
227
227
|
height: popupHeight,
|
|
228
228
|
width: _ui.RECENT_SEARCH_WIDTH_IN_PX,
|
|
229
229
|
items: [{
|
package/dist/es2019/Toolbar.js
CHANGED
|
@@ -10,7 +10,7 @@ import { normalizeUrl } from '@atlaskit/editor-common/utils';
|
|
|
10
10
|
import CogIcon from '@atlaskit/icon/glyph/editor/settings';
|
|
11
11
|
import UnlinkIcon from '@atlaskit/icon/glyph/editor/unlink';
|
|
12
12
|
import OpenIcon from '@atlaskit/icon/glyph/shortcut';
|
|
13
|
-
import {
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
14
|
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from './commands';
|
|
15
15
|
import { stateKey } from './pm-plugins/main';
|
|
16
16
|
import { toolbarKey } from './pm-plugins/toolbar-buttons';
|
|
@@ -186,7 +186,7 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
186
186
|
formatMessage: formatMessage,
|
|
187
187
|
markType: state.schema.marks.link
|
|
188
188
|
}]
|
|
189
|
-
}, ...((_cardActions$getEndin = cardActions === null || cardActions === void 0 ? void 0 : cardActions.getEndingToolbarItems(intl, link)) !== null && _cardActions$getEndin !== void 0 ? _cardActions$getEndin : []), ...(
|
|
189
|
+
}, ...((_cardActions$getEndin = cardActions === null || cardActions === void 0 ? void 0 : cardActions.getEndingToolbarItems(intl, link)) !== null && _cardActions$getEndin !== void 0 ? _cardActions$getEndin : []), ...(fg('platform.editor.card.inject-settings-button') ? [] : getSettingsButtonGroup(intl, editorAnalyticsApi))];
|
|
190
190
|
return {
|
|
191
191
|
...hyperLinkToolbar,
|
|
192
192
|
height: 32,
|
|
@@ -207,7 +207,7 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
207
207
|
const popupHeight = lpLinkPicker ? LINKPICKER_HEIGHT_IN_PX : RECENT_SEARCH_HEIGHT_IN_PX;
|
|
208
208
|
return {
|
|
209
209
|
...hyperLinkToolbar,
|
|
210
|
-
preventPopupOverflow:
|
|
210
|
+
preventPopupOverflow: true,
|
|
211
211
|
height: popupHeight,
|
|
212
212
|
width: RECENT_SEARCH_WIDTH_IN_PX,
|
|
213
213
|
items: [{
|
package/dist/esm/Toolbar.js
CHANGED
|
@@ -14,7 +14,7 @@ import { normalizeUrl } from '@atlaskit/editor-common/utils';
|
|
|
14
14
|
import CogIcon from '@atlaskit/icon/glyph/editor/settings';
|
|
15
15
|
import UnlinkIcon from '@atlaskit/icon/glyph/editor/unlink';
|
|
16
16
|
import OpenIcon from '@atlaskit/icon/glyph/shortcut';
|
|
17
|
-
import {
|
|
17
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
18
|
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from './commands';
|
|
19
19
|
import { stateKey } from './pm-plugins/main';
|
|
20
20
|
import { toolbarKey } from './pm-plugins/toolbar-buttons';
|
|
@@ -194,7 +194,7 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
|
|
|
194
194
|
formatMessage: formatMessage,
|
|
195
195
|
markType: state.schema.marks.link
|
|
196
196
|
}]
|
|
197
|
-
}], _toConsumableArray((_cardActions$getEndin = cardActions === null || cardActions === void 0 ? void 0 : cardActions.getEndingToolbarItems(intl, link)) !== null && _cardActions$getEndin !== void 0 ? _cardActions$getEndin : []), _toConsumableArray(
|
|
197
|
+
}], _toConsumableArray((_cardActions$getEndin = cardActions === null || cardActions === void 0 ? void 0 : cardActions.getEndingToolbarItems(intl, link)) !== null && _cardActions$getEndin !== void 0 ? _cardActions$getEndin : []), _toConsumableArray(fg('platform.editor.card.inject-settings-button') ? [] : getSettingsButtonGroup(intl, editorAnalyticsApi)));
|
|
198
198
|
return _objectSpread(_objectSpread({}, hyperLinkToolbar), {}, {
|
|
199
199
|
height: 32,
|
|
200
200
|
width: 250,
|
|
@@ -215,7 +215,7 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
|
|
|
215
215
|
var displayText = isEditLink(activeLinkMark) ? getLinkText(activeLinkMark, state) : linkState.activeText;
|
|
216
216
|
var popupHeight = lpLinkPicker ? LINKPICKER_HEIGHT_IN_PX : RECENT_SEARCH_HEIGHT_IN_PX;
|
|
217
217
|
return _objectSpread(_objectSpread({}, hyperLinkToolbar), {}, {
|
|
218
|
-
preventPopupOverflow:
|
|
218
|
+
preventPopupOverflow: true,
|
|
219
219
|
height: popupHeight,
|
|
220
220
|
width: RECENT_SEARCH_WIDTH_IN_PX,
|
|
221
221
|
items: [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.4",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/adf-schema": "^40.3.0",
|
|
36
|
-
"@atlaskit/analytics-next": "^
|
|
37
|
-
"@atlaskit/editor-common": "^87.
|
|
36
|
+
"@atlaskit/analytics-next": "^10.0.0",
|
|
37
|
+
"@atlaskit/editor-common": "^87.4.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^1.6.0",
|
|
39
|
-
"@atlaskit/editor-plugin-card": "2.9.
|
|
39
|
+
"@atlaskit/editor-plugin-card": "2.9.4",
|
|
40
40
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
42
|
-
"@atlaskit/icon": "^22.
|
|
42
|
+
"@atlaskit/icon": "^22.10.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
44
44
|
"@atlaskit/prosemirror-input-rules": "^3.2.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
55
|
-
"@atlaskit/link-test-helpers": "^7.
|
|
55
|
+
"@atlaskit/link-test-helpers": "^7.2.0",
|
|
56
56
|
"@atlaskit/media-test-helpers": "^34.0.0",
|
|
57
57
|
"@atlaskit/ssr": "*",
|
|
58
58
|
"@atlaskit/util-data-test": "^17.9.0",
|