@atlaskit/editor-plugin-hyperlink 3.1.11 → 3.2.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 +24 -0
- package/dist/cjs/Toolbar.js +2 -1
- package/dist/es2019/Toolbar.js +2 -1
- package/dist/esm/Toolbar.js +2 -1
- package/package.json +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 3.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 3.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 3.2.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [#159018](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159018)
|
|
20
|
+
[`14d5e189df870`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/14d5e189df870) -
|
|
21
|
+
[ux] ED-25367-remove-copy-button-from-view-mode-when-its-the-only-item
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
|
|
3
27
|
## 3.1.11
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/dist/cjs/Toolbar.js
CHANGED
|
@@ -21,6 +21,7 @@ var _linkBroken = _interopRequireDefault(require("@atlaskit/icon/core/link-broke
|
|
|
21
21
|
var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-external"));
|
|
22
22
|
var _unlink = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/unlink"));
|
|
23
23
|
var _shortcut = _interopRequireDefault(require("@atlaskit/icon/glyph/shortcut"));
|
|
24
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
24
25
|
var _commands = require("./commands");
|
|
25
26
|
var _main = require("./pm-plugins/main");
|
|
26
27
|
var _toolbarButtons = require("./pm-plugins/toolbar-buttons");
|
|
@@ -179,7 +180,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
179
180
|
type: 'separator'
|
|
180
181
|
}, {
|
|
181
182
|
type: 'copy-button',
|
|
182
|
-
supportsViewMode:
|
|
183
|
+
supportsViewMode: !(0, _platformFeatureFlags.fg)('platform_editor_remove_copy_button_from_view_mode'),
|
|
183
184
|
items: [{
|
|
184
185
|
state: state,
|
|
185
186
|
formatMessage: formatMessage,
|
package/dist/es2019/Toolbar.js
CHANGED
|
@@ -11,6 +11,7 @@ import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
|
11
11
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
12
12
|
import UnlinkIcon from '@atlaskit/icon/glyph/editor/unlink';
|
|
13
13
|
import OpenIcon from '@atlaskit/icon/glyph/shortcut';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
15
|
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from './commands';
|
|
15
16
|
import { stateKey } from './pm-plugins/main';
|
|
16
17
|
import { toolbarKey } from './pm-plugins/toolbar-buttons';
|
|
@@ -167,7 +168,7 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
167
168
|
type: 'separator'
|
|
168
169
|
}, {
|
|
169
170
|
type: 'copy-button',
|
|
170
|
-
supportsViewMode:
|
|
171
|
+
supportsViewMode: !fg('platform_editor_remove_copy_button_from_view_mode'),
|
|
171
172
|
items: [{
|
|
172
173
|
state,
|
|
173
174
|
formatMessage: formatMessage,
|
package/dist/esm/Toolbar.js
CHANGED
|
@@ -15,6 +15,7 @@ import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
|
15
15
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
16
16
|
import UnlinkIcon from '@atlaskit/icon/glyph/editor/unlink';
|
|
17
17
|
import OpenIcon from '@atlaskit/icon/glyph/shortcut';
|
|
18
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
19
|
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from './commands';
|
|
19
20
|
import { stateKey } from './pm-plugins/main';
|
|
20
21
|
import { toolbarKey } from './pm-plugins/toolbar-buttons';
|
|
@@ -171,7 +172,7 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
|
|
|
171
172
|
type: 'separator'
|
|
172
173
|
}, {
|
|
173
174
|
type: 'copy-button',
|
|
174
|
-
supportsViewMode:
|
|
175
|
+
supportsViewMode: !fg('platform_editor_remove_copy_button_from_view_mode'),
|
|
175
176
|
items: [{
|
|
176
177
|
state: state,
|
|
177
178
|
formatMessage: formatMessage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^44.2.0",
|
|
35
35
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
36
|
-
"@atlaskit/editor-common": "^94.
|
|
36
|
+
"@atlaskit/editor-common": "^94.19.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
38
|
-
"@atlaskit/editor-plugin-card": "4.
|
|
38
|
+
"@atlaskit/editor-plugin-card": "4.4.2",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
41
41
|
"@atlaskit/icon": "^22.24.0",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
54
54
|
"@atlaskit/link-test-helpers": "^7.5.0",
|
|
55
|
-
"@atlaskit/media-test-helpers": "^34.
|
|
55
|
+
"@atlaskit/media-test-helpers": "^34.6.0",
|
|
56
56
|
"@atlaskit/ssr": "*",
|
|
57
|
-
"@atlaskit/util-data-test": "^17.
|
|
57
|
+
"@atlaskit/util-data-test": "^17.13.0",
|
|
58
58
|
"@atlaskit/visual-regression": "*",
|
|
59
59
|
"@testing-library/react": "^12.1.5",
|
|
60
60
|
"raf-stub": "^2.0.1",
|
|
@@ -94,6 +94,9 @@
|
|
|
94
94
|
"platform-feature-flags": {
|
|
95
95
|
"linking_platform_smart_links_in_live_pages": {
|
|
96
96
|
"type": "boolean"
|
|
97
|
+
},
|
|
98
|
+
"platform_editor_remove_copy_button_from_view_mode": {
|
|
99
|
+
"type": "boolean"
|
|
97
100
|
}
|
|
98
101
|
}
|
|
99
102
|
}
|