@atlaskit/editor-plugin-hyperlink 4.4.0 → 4.4.1
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
|
@@ -15,6 +15,7 @@ var _preset = require("@atlaskit/editor-common/preset");
|
|
|
15
15
|
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
16
16
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
17
17
|
var _linkEditorLink = _interopRequireDefault(require("@atlaskit/icon/core/migration/link--editor-link"));
|
|
18
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
19
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
19
20
|
var _commands = require("./editor-commands/commands");
|
|
20
21
|
var _fakeCursorForToolbar = _interopRequireDefault(require("./pm-plugins/fake-cursor-for-toolbar"));
|
|
@@ -49,7 +50,7 @@ var hyperlinkPlugin = exports.hyperlinkPlugin = function hyperlinkPlugin(_ref) {
|
|
|
49
50
|
var primaryToolbarComponent;
|
|
50
51
|
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
51
52
|
exposure: true
|
|
52
|
-
})) {
|
|
53
|
+
}) && !(0, _platformFeatureFlags.fg)('platform_editor_insert_button_on_primary_toolbar')) {
|
|
53
54
|
var _api$primaryToolbar;
|
|
54
55
|
primaryToolbarComponent = function primaryToolbarComponent() {
|
|
55
56
|
var _api$analytics;
|
|
@@ -8,6 +8,7 @@ import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
|
8
8
|
import { IconLink } from '@atlaskit/editor-common/quick-insert';
|
|
9
9
|
import { canLinkBeCreatedInRange } from '@atlaskit/editor-common/utils';
|
|
10
10
|
import LinkIcon from '@atlaskit/icon/core/migration/link--editor-link';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
13
|
import { hideLinkToolbarSetMeta, insertLinkWithAnalytics, removeLinkEditorCommand, showLinkToolbar, updateLink, updateLinkEditorCommand } from './editor-commands/commands';
|
|
13
14
|
import fakeCursorToolbarPlugin from './pm-plugins/fake-cursor-for-toolbar';
|
|
@@ -42,7 +43,7 @@ export const hyperlinkPlugin = ({
|
|
|
42
43
|
let primaryToolbarComponent;
|
|
43
44
|
if (editorExperiment('platform_editor_controls', 'variant1', {
|
|
44
45
|
exposure: true
|
|
45
|
-
})) {
|
|
46
|
+
}) && !fg('platform_editor_insert_button_on_primary_toolbar')) {
|
|
46
47
|
var _api$primaryToolbar;
|
|
47
48
|
primaryToolbarComponent = () => {
|
|
48
49
|
var _api$analytics;
|
|
@@ -8,6 +8,7 @@ import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
|
8
8
|
import { IconLink } from '@atlaskit/editor-common/quick-insert';
|
|
9
9
|
import { canLinkBeCreatedInRange } from '@atlaskit/editor-common/utils';
|
|
10
10
|
import LinkIcon from '@atlaskit/icon/core/migration/link--editor-link';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
13
|
import { hideLinkToolbarSetMeta, insertLinkWithAnalytics, removeLinkEditorCommand, showLinkToolbar as _showLinkToolbar, updateLink, updateLinkEditorCommand } from './editor-commands/commands';
|
|
13
14
|
import fakeCursorToolbarPlugin from './pm-plugins/fake-cursor-for-toolbar';
|
|
@@ -42,7 +43,7 @@ export var hyperlinkPlugin = function hyperlinkPlugin(_ref) {
|
|
|
42
43
|
var primaryToolbarComponent;
|
|
43
44
|
if (editorExperiment('platform_editor_controls', 'variant1', {
|
|
44
45
|
exposure: true
|
|
45
|
-
})) {
|
|
46
|
+
}) && !fg('platform_editor_insert_button_on_primary_toolbar')) {
|
|
46
47
|
var _api$primaryToolbar;
|
|
47
48
|
primaryToolbarComponent = function primaryToolbarComponent() {
|
|
48
49
|
var _api$analytics;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.1",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
37
37
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
38
|
-
"@atlaskit/editor-common": "^
|
|
38
|
+
"@atlaskit/editor-common": "^104.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
40
40
|
"@atlaskit/editor-plugin-card": "^5.4.0",
|
|
41
41
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-editor-viewmode": "^3.1.0",
|
|
43
43
|
"@atlaskit/editor-plugin-primary-toolbar": "^3.2.0",
|
|
44
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^3.
|
|
44
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^3.5.0",
|
|
45
45
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
46
|
-
"@atlaskit/icon": "^25.
|
|
46
|
+
"@atlaskit/icon": "^25.6.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
48
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^4.16.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
52
52
|
"uuid": "^3.1.0"
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@atlaskit/activity-provider": "^2.5.0",
|
|
61
61
|
"@atlaskit/link-test-helpers": "^8.0.0",
|
|
62
|
-
"@atlaskit/media-test-helpers": "^
|
|
63
|
-
"@atlaskit/ssr": "
|
|
62
|
+
"@atlaskit/media-test-helpers": "^36.0.0",
|
|
63
|
+
"@atlaskit/ssr": "workspace:^",
|
|
64
64
|
"@atlaskit/util-data-test": "^18.0.0",
|
|
65
|
-
"@atlaskit/visual-regression": "
|
|
65
|
+
"@atlaskit/visual-regression": "workspace:^",
|
|
66
66
|
"@testing-library/react": "^13.4.0",
|
|
67
67
|
"raf-stub": "^2.0.1",
|
|
68
68
|
"typescript": "~5.4.2",
|
|
@@ -108,6 +108,9 @@
|
|
|
108
108
|
"linking_platform_smart_links_in_live_pages": {
|
|
109
109
|
"type": "boolean"
|
|
110
110
|
},
|
|
111
|
+
"platform_editor_insert_button_on_primary_toolbar": {
|
|
112
|
+
"type": "boolean"
|
|
113
|
+
},
|
|
111
114
|
"platform_editor_controls_patch_3": {
|
|
112
115
|
"type": "boolean"
|
|
113
116
|
}
|