@atlaskit/editor-plugin-hyperlink 2.7.2 → 2.7.3

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,9 +1,18 @@
1
1
  # @atlaskit/editor-plugin-hyperlink
2
2
 
3
+ ## 2.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 2.7.2
4
10
 
5
11
  ### Patch Changes
6
12
 
13
+ - [#125980](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/125980)
14
+ [`93070430085a6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/93070430085a6) -
15
+ fix editor popup overflow issue
7
16
  - Updated dependencies
8
17
 
9
18
  ## 2.7.1
@@ -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.getBooleanFF)('platform.editor.card.inject-settings-button') ? [] : getSettingsButtonGroup(intl, editorAnalyticsApi)));
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: !!lpLinkPicker,
226
+ preventPopupOverflow: true,
227
227
  height: popupHeight,
228
228
  width: _ui.RECENT_SEARCH_WIDTH_IN_PX,
229
229
  items: [{
@@ -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 { getBooleanFF } from '@atlaskit/platform-feature-flags';
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 : []), ...(getBooleanFF('platform.editor.card.inject-settings-button') ? [] : getSettingsButtonGroup(intl, editorAnalyticsApi))];
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: !!lpLinkPicker,
210
+ preventPopupOverflow: true,
211
211
  height: popupHeight,
212
212
  width: RECENT_SEARCH_WIDTH_IN_PX,
213
213
  items: [{
@@ -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 { getBooleanFF } from '@atlaskit/platform-feature-flags';
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(getBooleanFF('platform.editor.card.inject-settings-button') ? [] : getSettingsButtonGroup(intl, editorAnalyticsApi)));
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: !!lpLinkPicker,
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.2",
3
+ "version": "2.7.3",
4
4
  "description": "Hyperlink plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,12 +34,12 @@
34
34
  "dependencies": {
35
35
  "@atlaskit/adf-schema": "^40.3.0",
36
36
  "@atlaskit/analytics-next": "^9.3.0",
37
- "@atlaskit/editor-common": "^87.2.0",
37
+ "@atlaskit/editor-common": "^87.3.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^1.6.0",
39
- "@atlaskit/editor-plugin-card": "2.9.2",
39
+ "@atlaskit/editor-plugin-card": "2.9.3",
40
40
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
41
41
  "@atlaskit/editor-prosemirror": "5.0.1",
42
- "@atlaskit/icon": "^22.8.0",
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",