@atlaskit/editor-plugin-hyperlink 10.0.21 → 10.0.23
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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 10.0.23
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`8ebeaa8fb64ac`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8ebeaa8fb64ac) -
|
|
8
|
+
Remove stale feature flag platform_editor_link_picker_width_fix (final value: true)
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 10.0.22
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 10.0.21
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -26,7 +26,6 @@ var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
|
26
26
|
var _edit = _interopRequireDefault(require("@atlaskit/icon/core/edit"));
|
|
27
27
|
var _linkBroken = _interopRequireDefault(require("@atlaskit/icon/core/link-broken"));
|
|
28
28
|
var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-external"));
|
|
29
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
30
29
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
31
30
|
var _commands = require("../../editor-commands/commands");
|
|
32
31
|
var _main = require("../../pm-plugins/main");
|
|
@@ -254,7 +253,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
254
253
|
|
|
255
254
|
// Removing popupWidth to ensure that we the popup always positions setting positon left instead of flipping to position right
|
|
256
255
|
// inside of a narrow space like Preview panel
|
|
257
|
-
var popupWidth = !lpLinkPicker
|
|
256
|
+
var popupWidth = !lpLinkPicker ? undefined : _ui.RECENT_SEARCH_WIDTH_IN_PX;
|
|
258
257
|
return _objectSpread(_objectSpread({}, hyperLinkToolbar), {}, {
|
|
259
258
|
preventPopupOverflow: true,
|
|
260
259
|
height: popupHeight,
|
|
@@ -15,7 +15,6 @@ import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
|
15
15
|
import EditIcon from '@atlaskit/icon/core/edit';
|
|
16
16
|
import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
17
17
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
18
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
20
19
|
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from '../../editor-commands/commands';
|
|
21
20
|
import { stateKey } from '../../pm-plugins/main';
|
|
@@ -238,7 +237,7 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
238
237
|
|
|
239
238
|
// Removing popupWidth to ensure that we the popup always positions setting positon left instead of flipping to position right
|
|
240
239
|
// inside of a narrow space like Preview panel
|
|
241
|
-
const popupWidth = !lpLinkPicker
|
|
240
|
+
const popupWidth = !lpLinkPicker ? undefined : RECENT_SEARCH_WIDTH_IN_PX;
|
|
242
241
|
return {
|
|
243
242
|
...hyperLinkToolbar,
|
|
244
243
|
preventPopupOverflow: true,
|
|
@@ -19,7 +19,6 @@ import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
|
19
19
|
import EditIcon from '@atlaskit/icon/core/edit';
|
|
20
20
|
import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
21
21
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
22
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
23
22
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
24
23
|
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from '../../editor-commands/commands';
|
|
25
24
|
import { stateKey } from '../../pm-plugins/main';
|
|
@@ -245,7 +244,7 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
|
|
|
245
244
|
|
|
246
245
|
// Removing popupWidth to ensure that we the popup always positions setting positon left instead of flipping to position right
|
|
247
246
|
// inside of a narrow space like Preview panel
|
|
248
|
-
var popupWidth = !lpLinkPicker
|
|
247
|
+
var popupWidth = !lpLinkPicker ? undefined : RECENT_SEARCH_WIDTH_IN_PX;
|
|
249
248
|
return _objectSpread(_objectSpread({}, hyperLinkToolbar), {}, {
|
|
250
249
|
preventPopupOverflow: true,
|
|
251
250
|
height: popupHeight,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.23",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"@atlaskit/icon": "^34.0.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^55.0.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
51
51
|
"uuid": "^3.1.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^112.
|
|
54
|
+
"@atlaskit/editor-common": "^112.18.0",
|
|
55
55
|
"react": "^18.2.0",
|
|
56
56
|
"react-dom": "^18.2.0",
|
|
57
57
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -97,9 +97,6 @@
|
|
|
97
97
|
"platform-feature-flags": {
|
|
98
98
|
"platform_editor_use_preferences_plugin": {
|
|
99
99
|
"type": "boolean"
|
|
100
|
-
},
|
|
101
|
-
"platform_editor_link_picker_width_fix": {
|
|
102
|
-
"type": "boolean"
|
|
103
100
|
}
|
|
104
101
|
}
|
|
105
102
|
}
|