@atlaskit/editor-plugin-hyperlink 13.0.0 → 13.1.0

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,22 @@
1
1
  # @atlaskit/editor-plugin-hyperlink
2
2
 
3
+ ## 13.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`aaf0bc9f036a7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/aaf0bc9f036a7) -
8
+ [ux] Experiment change, update priority of link quick insert item
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 13.0.1
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 13.0.0
4
21
 
5
22
  ### Patch Changes
@@ -1 +1,12 @@
1
- "use strict";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "showLinkToolbar", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _commands.showLinkToolbar;
10
+ }
11
+ });
12
+ var _commands = require("../editor-commands/commands");
@@ -18,6 +18,7 @@ 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
20
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
21
+ var _expVal = require("@atlaskit/tmp-editor-statsig/expVal");
21
22
  var _commands = require("./editor-commands/commands");
22
23
  var _fakeCursorForToolbar = _interopRequireDefault(require("./pm-plugins/fake-cursor-for-toolbar"));
23
24
  var _inputRule = require("./pm-plugins/input-rule");
@@ -157,7 +158,7 @@ var hyperlinkPlugin = exports.hyperlinkPlugin = function hyperlinkPlugin(_ref) {
157
158
  title: formatMessage(_messages.toolbarInsertBlockMessages.link),
158
159
  description: formatMessage(_messages.toolbarInsertBlockMessages.linkDescription),
159
160
  keywords: ['hyperlink', 'url'],
160
- priority: 1200,
161
+ priority: (0, _expVal.expVal)('confluence_quick_insert_embeds', 'isEnabled', false) ? -300 : 1200,
161
162
  keyshortcut: (0, _keymaps.tooltip)(_keymaps.addLink),
162
163
  icon: function icon() {
163
164
  return /*#__PURE__*/_react.default.createElement(_quickInsert.IconLink, null);
@@ -0,0 +1,3 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+
3
+ export { showLinkToolbar } from '../editor-commands/commands';
@@ -10,6 +10,7 @@ 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
12
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
13
+ import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
13
14
  import { hideLinkToolbarSetMeta, insertLinkWithAnalytics, removeLinkEditorCommand, showLinkToolbar, updateLink, updateLinkEditorCommand } from './editor-commands/commands';
14
15
  import fakeCursorToolbarPlugin from './pm-plugins/fake-cursor-for-toolbar';
15
16
  import { createInputRulePlugin } from './pm-plugins/input-rule';
@@ -137,7 +138,7 @@ export const hyperlinkPlugin = ({
137
138
  title: formatMessage(messages.link),
138
139
  description: formatMessage(messages.linkDescription),
139
140
  keywords: ['hyperlink', 'url'],
140
- priority: 1200,
141
+ priority: expVal('confluence_quick_insert_embeds', 'isEnabled', false) ? -300 : 1200,
141
142
  keyshortcut: tooltip(addLink),
142
143
  icon: () => /*#__PURE__*/React.createElement(IconLink, null),
143
144
  action(insert, state) {
@@ -0,0 +1,3 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+
3
+ export { showLinkToolbar } from '../editor-commands/commands';
@@ -13,6 +13,7 @@ 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
15
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
16
+ import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
16
17
  import { hideLinkToolbarSetMeta, insertLinkWithAnalytics, removeLinkEditorCommand, showLinkToolbar as _showLinkToolbar, updateLink, updateLinkEditorCommand } from './editor-commands/commands';
17
18
  import fakeCursorToolbarPlugin from './pm-plugins/fake-cursor-for-toolbar';
18
19
  import { createInputRulePlugin } from './pm-plugins/input-rule';
@@ -150,7 +151,7 @@ export var hyperlinkPlugin = function hyperlinkPlugin(_ref) {
150
151
  title: formatMessage(messages.link),
151
152
  description: formatMessage(messages.linkDescription),
152
153
  keywords: ['hyperlink', 'url'],
153
- priority: 1200,
154
+ priority: expVal('confluence_quick_insert_embeds', 'isEnabled', false) ? -300 : 1200,
154
155
  keyshortcut: tooltip(addLink),
155
156
  icon: function icon() {
156
157
  return /*#__PURE__*/React.createElement(IconLink, null);
@@ -1 +1,2 @@
1
1
  export type { HideLinkToolbar, ShowLinkToolbar, InsertLink, UpdateLink, } from '../editor-commands/commands';
2
+ export { showLinkToolbar } from '../editor-commands/commands';
@@ -1 +1,2 @@
1
1
  export type { HideLinkToolbar, ShowLinkToolbar, InsertLink, UpdateLink, } from '../editor-commands/commands';
2
+ export { showLinkToolbar } from '../editor-commands/commands';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-hyperlink",
3
- "version": "13.0.0",
3
+ "version": "13.1.0",
4
4
  "description": "Hyperlink plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,10 +29,10 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^52.15.0",
33
- "@atlaskit/analytics-next": "^11.2.0",
32
+ "@atlaskit/adf-schema": "^52.16.0",
33
+ "@atlaskit/analytics-next": "^11.3.0",
34
34
  "@atlaskit/editor-plugin-analytics": "^11.0.0",
35
- "@atlaskit/editor-plugin-card": "^17.0.0",
35
+ "@atlaskit/editor-plugin-card": "^17.3.0",
36
36
  "@atlaskit/editor-plugin-connectivity": "^11.0.0",
37
37
  "@atlaskit/editor-plugin-editor-viewmode": "^13.0.0",
38
38
  "@atlaskit/editor-plugin-primary-toolbar": "^12.0.0",
@@ -40,18 +40,18 @@
40
40
  "@atlaskit/editor-plugin-toolbar": "^8.0.0",
41
41
  "@atlaskit/editor-plugin-user-intent": "^9.0.0",
42
42
  "@atlaskit/editor-prosemirror": "^7.3.0",
43
- "@atlaskit/editor-toolbar": "^1.9.0",
43
+ "@atlaskit/editor-toolbar": "^1.10.0",
44
44
  "@atlaskit/editor-toolbar-model": "^0.5.0",
45
- "@atlaskit/icon": "^35.3.0",
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": "^88.0.0",
48
+ "@atlaskit/tmp-editor-statsig": "^89.4.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": "^115.0.0",
54
+ "@atlaskit/editor-common": "^115.6.0",
55
55
  "react": "^18.2.0",
56
56
  "react-dom": "^18.2.0",
57
57
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"