@atlaskit/editor-plugin-hyperlink 13.1.1 → 13.1.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
CHANGED
|
@@ -17,8 +17,8 @@ var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
|
17
17
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
18
18
|
var _link2 = _interopRequireDefault(require("@atlaskit/icon/core/link"));
|
|
19
19
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
20
21
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
21
|
-
var _expVal = require("@atlaskit/tmp-editor-statsig/expVal");
|
|
22
22
|
var _commands = require("./editor-commands/commands");
|
|
23
23
|
var _fakeCursorForToolbar = _interopRequireDefault(require("./pm-plugins/fake-cursor-for-toolbar"));
|
|
24
24
|
var _inputRule = require("./pm-plugins/input-rule");
|
|
@@ -158,7 +158,7 @@ var hyperlinkPlugin = exports.hyperlinkPlugin = function hyperlinkPlugin(_ref) {
|
|
|
158
158
|
title: formatMessage(_messages.toolbarInsertBlockMessages.link),
|
|
159
159
|
description: formatMessage(_messages.toolbarInsertBlockMessages.linkDescription),
|
|
160
160
|
keywords: ['hyperlink', 'url'],
|
|
161
|
-
priority: (0,
|
|
161
|
+
priority: (0, _expValEquals.expValEquals)('confluence_quick_insert_embeds', 'cohort', 'prioritizeLinkInQIM', 'control') ? -300 : 1200,
|
|
162
162
|
keyshortcut: (0, _keymaps.tooltip)(_keymaps.addLink),
|
|
163
163
|
icon: function icon() {
|
|
164
164
|
return /*#__PURE__*/_react.default.createElement(_quickInsert.IconLink, null);
|
|
@@ -9,8 +9,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/link';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
13
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
13
|
-
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
14
14
|
import { hideLinkToolbarSetMeta, insertLinkWithAnalytics, removeLinkEditorCommand, showLinkToolbar, updateLink, updateLinkEditorCommand } from './editor-commands/commands';
|
|
15
15
|
import fakeCursorToolbarPlugin from './pm-plugins/fake-cursor-for-toolbar';
|
|
16
16
|
import { createInputRulePlugin } from './pm-plugins/input-rule';
|
|
@@ -138,7 +138,7 @@ export const hyperlinkPlugin = ({
|
|
|
138
138
|
title: formatMessage(messages.link),
|
|
139
139
|
description: formatMessage(messages.linkDescription),
|
|
140
140
|
keywords: ['hyperlink', 'url'],
|
|
141
|
-
priority:
|
|
141
|
+
priority: expValEquals('confluence_quick_insert_embeds', 'cohort', 'prioritizeLinkInQIM', 'control') ? -300 : 1200,
|
|
142
142
|
keyshortcut: tooltip(addLink),
|
|
143
143
|
icon: () => /*#__PURE__*/React.createElement(IconLink, null),
|
|
144
144
|
action(insert, state) {
|
|
@@ -12,8 +12,8 @@ import { IconLink } from '@atlaskit/editor-common/quick-insert';
|
|
|
12
12
|
import { canLinkBeCreatedInRange } from '@atlaskit/editor-common/utils';
|
|
13
13
|
import LinkIcon from '@atlaskit/icon/core/link';
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
16
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
16
|
-
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
17
17
|
import { hideLinkToolbarSetMeta, insertLinkWithAnalytics, removeLinkEditorCommand, showLinkToolbar as _showLinkToolbar, updateLink, updateLinkEditorCommand } from './editor-commands/commands';
|
|
18
18
|
import fakeCursorToolbarPlugin from './pm-plugins/fake-cursor-for-toolbar';
|
|
19
19
|
import { createInputRulePlugin } from './pm-plugins/input-rule';
|
|
@@ -151,7 +151,7 @@ export var hyperlinkPlugin = function hyperlinkPlugin(_ref) {
|
|
|
151
151
|
title: formatMessage(messages.link),
|
|
152
152
|
description: formatMessage(messages.linkDescription),
|
|
153
153
|
keywords: ['hyperlink', 'url'],
|
|
154
|
-
priority:
|
|
154
|
+
priority: expValEquals('confluence_quick_insert_embeds', 'cohort', 'prioritizeLinkInQIM', 'control') ? -300 : 1200,
|
|
155
155
|
keyshortcut: tooltip(addLink),
|
|
156
156
|
icon: function icon() {
|
|
157
157
|
return /*#__PURE__*/React.createElement(IconLink, null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.2",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/icon": "^35.4.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/prosemirror-input-rules": "^3.7.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^91.0.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
51
51
|
"uuid": "^3.1.0"
|