@atlaskit/editor-plugin-hyperlink 6.0.3 → 6.0.5
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 +18 -0
- package/dist/cjs/hyperlinkPlugin.js +1 -1
- package/dist/cjs/ui/toolbar/Toolbar.js +11 -6
- package/dist/es2019/hyperlinkPlugin.js +1 -1
- package/dist/es2019/ui/toolbar/Toolbar.js +11 -6
- package/dist/esm/hyperlinkPlugin.js +1 -1
- package/dist/esm/ui/toolbar/Toolbar.js +11 -6
- package/dist/types/hyperlinkPluginType.d.ts +3 -1
- package/dist/types-ts4.5/hyperlinkPluginType.d.ts +3 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 6.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c0113eeccb2df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c0113eeccb2df) -
|
|
8
|
+
[ux] ED-29120 add a new config option for default editor preset
|
|
9
|
+
(`toolbar.enableNewToolbarExperience`) which allows the new toolbar to be disabled. This is needed
|
|
10
|
+
for editors that can't be excluded at the experiment level.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 6.0.4
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [`a8630c1107c3d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a8630c1107c3d) -
|
|
18
|
+
[ED-28781] Hide inline text toolbar when other popups are open
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 6.0.3
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -51,7 +51,7 @@ var hyperlinkPlugin = exports.hyperlinkPlugin = function hyperlinkPlugin(_ref) {
|
|
|
51
51
|
options = _ref$config === void 0 ? {} : _ref$config,
|
|
52
52
|
api = _ref.api;
|
|
53
53
|
var primaryToolbarComponent;
|
|
54
|
-
var isToolbarAIFCEnabled = (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
|
|
54
|
+
var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
|
|
55
55
|
exposure: true
|
|
56
56
|
});
|
|
57
57
|
if (isToolbarAIFCEnabled) {
|
|
@@ -18,6 +18,7 @@ var _link2 = require("@atlaskit/editor-common/link");
|
|
|
18
18
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
19
19
|
var _toolbarFlagCheck = require("@atlaskit/editor-common/toolbar-flag-check");
|
|
20
20
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
21
|
+
var _userIntent = require("@atlaskit/editor-common/user-intent");
|
|
21
22
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
22
23
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
23
24
|
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
@@ -25,6 +26,7 @@ var _edit = _interopRequireDefault(require("@atlaskit/icon/core/edit"));
|
|
|
25
26
|
var _linkBrokenEditorUnlink = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-broken--editor-unlink"));
|
|
26
27
|
var _linkExternalShortcut = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-external--shortcut"));
|
|
27
28
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
29
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
28
30
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
29
31
|
var _commands = require("../../editor-commands/commands");
|
|
30
32
|
var _main = require("../../pm-plugins/main");
|
|
@@ -172,17 +174,17 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
172
174
|
if (activeLinkMark.node.text) {
|
|
173
175
|
metadata.title = activeLinkMark.node.text;
|
|
174
176
|
}
|
|
175
|
-
var
|
|
177
|
+
var areAnyNewToolbarFlagsEnabled = (0, _toolbarFlagCheck.areToolbarFlagsEnabled)(Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.toolbar));
|
|
176
178
|
var cardActions = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c3 = pluginInjectionApi.card) === null || _pluginInjectionApi$c3 === void 0 ? void 0 : _pluginInjectionApi$c3.actions;
|
|
177
|
-
var startingToolbarItems = (_cardActions$getStart = cardActions === null || cardActions === void 0 ? void 0 : cardActions.getStartingToolbarItems(intl, link, (0, _commands.editInsertedLink)(editorAnalyticsApi), metadata,
|
|
179
|
+
var startingToolbarItems = (_cardActions$getStart = cardActions === null || cardActions === void 0 ? void 0 : cardActions.getStartingToolbarItems(intl, link, (0, _commands.editInsertedLink)(editorAnalyticsApi), metadata, areAnyNewToolbarFlagsEnabled ? state : undefined)) !== null && _cardActions$getStart !== void 0 ? _cardActions$getStart : [{
|
|
178
180
|
id: 'editor.link.edit',
|
|
179
181
|
testId: 'editor.link.edit',
|
|
180
182
|
type: 'button',
|
|
181
183
|
onClick: (0, _commands.editInsertedLink)(editorAnalyticsApi),
|
|
182
184
|
title: editLink,
|
|
183
|
-
showTitle:
|
|
185
|
+
showTitle: areAnyNewToolbarFlagsEnabled ? false : true,
|
|
184
186
|
metadata: metadata,
|
|
185
|
-
icon:
|
|
187
|
+
icon: areAnyNewToolbarFlagsEnabled ? _edit.default : undefined
|
|
186
188
|
}, {
|
|
187
189
|
type: 'separator'
|
|
188
190
|
}];
|
|
@@ -211,7 +213,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
211
213
|
icon: _linkBrokenEditorUnlink.default,
|
|
212
214
|
tabIndex: null
|
|
213
215
|
};
|
|
214
|
-
var items = [].concat((0, _toConsumableArray2.default)(startingToolbarItems), (0, _toConsumableArray2.default)(
|
|
216
|
+
var items = [].concat((0, _toConsumableArray2.default)(startingToolbarItems), (0, _toConsumableArray2.default)(areAnyNewToolbarFlagsEnabled && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_15') ? [unlinkButton, {
|
|
215
217
|
type: 'separator',
|
|
216
218
|
fullHeight: true
|
|
217
219
|
}, openLinkButton, {
|
|
@@ -260,7 +262,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
260
262
|
if (!view) {
|
|
261
263
|
return null;
|
|
262
264
|
}
|
|
263
|
-
|
|
265
|
+
var Toolbar = /*#__PURE__*/_react.default.createElement(HyperlinkAddToolbarWithState, {
|
|
264
266
|
pluginInjectionApi: pluginInjectionApi,
|
|
265
267
|
view: view,
|
|
266
268
|
key: idx,
|
|
@@ -292,6 +294,9 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
292
294
|
view.focus();
|
|
293
295
|
}
|
|
294
296
|
});
|
|
297
|
+
return (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true) && (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? /*#__PURE__*/_react.default.createElement(_userIntent.UserIntentPopupWrapper, {
|
|
298
|
+
api: pluginInjectionApi
|
|
299
|
+
}, Toolbar) : Toolbar;
|
|
295
300
|
}
|
|
296
301
|
}]
|
|
297
302
|
});
|
|
@@ -41,7 +41,7 @@ export const hyperlinkPlugin = ({
|
|
|
41
41
|
api
|
|
42
42
|
}) => {
|
|
43
43
|
let primaryToolbarComponent;
|
|
44
|
-
const isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
44
|
+
const isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
45
45
|
exposure: true
|
|
46
46
|
});
|
|
47
47
|
if (isToolbarAIFCEnabled) {
|
|
@@ -7,6 +7,7 @@ import { HyperlinkAddToolbar } from '@atlaskit/editor-common/link';
|
|
|
7
7
|
import { linkMessages, linkToolbarMessages as linkToolbarCommonMessages } from '@atlaskit/editor-common/messages';
|
|
8
8
|
import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
|
|
9
9
|
import { LINKPICKER_HEIGHT_IN_PX, RECENT_SEARCH_HEIGHT_IN_PX, RECENT_SEARCH_WIDTH_IN_PX } from '@atlaskit/editor-common/ui';
|
|
10
|
+
import { UserIntentPopupWrapper } from '@atlaskit/editor-common/user-intent';
|
|
10
11
|
import { normalizeUrl } from '@atlaskit/editor-common/utils';
|
|
11
12
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
12
13
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
@@ -14,6 +15,7 @@ import EditIcon from '@atlaskit/icon/core/edit';
|
|
|
14
15
|
import LinkBrokenIcon from '@atlaskit/icon/core/migration/link-broken--editor-unlink';
|
|
15
16
|
import LinkExternalIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
16
17
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
20
|
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from '../../editor-commands/commands';
|
|
19
21
|
import { stateKey } from '../../pm-plugins/main';
|
|
@@ -157,17 +159,17 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
157
159
|
if (activeLinkMark.node.text) {
|
|
158
160
|
metadata.title = activeLinkMark.node.text;
|
|
159
161
|
}
|
|
160
|
-
const
|
|
162
|
+
const areAnyNewToolbarFlagsEnabled = areToolbarFlagsEnabled(Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.toolbar));
|
|
161
163
|
const cardActions = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$c4 = pluginInjectionApi.card) === null || _pluginInjectionApi$c4 === void 0 ? void 0 : _pluginInjectionApi$c4.actions;
|
|
162
|
-
const startingToolbarItems = (_cardActions$getStart = cardActions === null || cardActions === void 0 ? void 0 : cardActions.getStartingToolbarItems(intl, link, editInsertedLink(editorAnalyticsApi), metadata,
|
|
164
|
+
const startingToolbarItems = (_cardActions$getStart = cardActions === null || cardActions === void 0 ? void 0 : cardActions.getStartingToolbarItems(intl, link, editInsertedLink(editorAnalyticsApi), metadata, areAnyNewToolbarFlagsEnabled ? state : undefined)) !== null && _cardActions$getStart !== void 0 ? _cardActions$getStart : [{
|
|
163
165
|
id: 'editor.link.edit',
|
|
164
166
|
testId: 'editor.link.edit',
|
|
165
167
|
type: 'button',
|
|
166
168
|
onClick: editInsertedLink(editorAnalyticsApi),
|
|
167
169
|
title: editLink,
|
|
168
|
-
showTitle:
|
|
170
|
+
showTitle: areAnyNewToolbarFlagsEnabled ? false : true,
|
|
169
171
|
metadata: metadata,
|
|
170
|
-
icon:
|
|
172
|
+
icon: areAnyNewToolbarFlagsEnabled ? EditIcon : undefined
|
|
171
173
|
}, {
|
|
172
174
|
type: 'separator'
|
|
173
175
|
}];
|
|
@@ -196,7 +198,7 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
196
198
|
icon: LinkBrokenIcon,
|
|
197
199
|
tabIndex: null
|
|
198
200
|
};
|
|
199
|
-
const items = [...startingToolbarItems, ...(
|
|
201
|
+
const items = [...startingToolbarItems, ...(areAnyNewToolbarFlagsEnabled && fg('platform_editor_controls_patch_15') ? [unlinkButton, {
|
|
200
202
|
type: 'separator',
|
|
201
203
|
fullHeight: true
|
|
202
204
|
}, openLinkButton, {
|
|
@@ -245,7 +247,7 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
245
247
|
if (!view) {
|
|
246
248
|
return null;
|
|
247
249
|
}
|
|
248
|
-
|
|
250
|
+
const Toolbar = /*#__PURE__*/React.createElement(HyperlinkAddToolbarWithState, {
|
|
249
251
|
pluginInjectionApi: pluginInjectionApi,
|
|
250
252
|
view: view,
|
|
251
253
|
key: idx,
|
|
@@ -271,6 +273,9 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
271
273
|
view.focus();
|
|
272
274
|
}
|
|
273
275
|
});
|
|
276
|
+
return editorExperiment('platform_editor_toolbar_aifc', true) && expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? /*#__PURE__*/React.createElement(UserIntentPopupWrapper, {
|
|
277
|
+
api: pluginInjectionApi
|
|
278
|
+
}, Toolbar) : Toolbar;
|
|
274
279
|
}
|
|
275
280
|
}]
|
|
276
281
|
};
|
|
@@ -44,7 +44,7 @@ export var hyperlinkPlugin = function hyperlinkPlugin(_ref) {
|
|
|
44
44
|
options = _ref$config === void 0 ? {} : _ref$config,
|
|
45
45
|
api = _ref.api;
|
|
46
46
|
var primaryToolbarComponent;
|
|
47
|
-
var isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
47
|
+
var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
48
48
|
exposure: true
|
|
49
49
|
});
|
|
50
50
|
if (isToolbarAIFCEnabled) {
|
|
@@ -11,6 +11,7 @@ import { HyperlinkAddToolbar } from '@atlaskit/editor-common/link';
|
|
|
11
11
|
import { linkMessages, linkToolbarMessages as linkToolbarCommonMessages } from '@atlaskit/editor-common/messages';
|
|
12
12
|
import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
|
|
13
13
|
import { LINKPICKER_HEIGHT_IN_PX, RECENT_SEARCH_HEIGHT_IN_PX, RECENT_SEARCH_WIDTH_IN_PX } from '@atlaskit/editor-common/ui';
|
|
14
|
+
import { UserIntentPopupWrapper } from '@atlaskit/editor-common/user-intent';
|
|
14
15
|
import { normalizeUrl } from '@atlaskit/editor-common/utils';
|
|
15
16
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
16
17
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
@@ -18,6 +19,7 @@ import EditIcon from '@atlaskit/icon/core/edit';
|
|
|
18
19
|
import LinkBrokenIcon from '@atlaskit/icon/core/migration/link-broken--editor-unlink';
|
|
19
20
|
import LinkExternalIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
20
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
23
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
22
24
|
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from '../../editor-commands/commands';
|
|
23
25
|
import { stateKey } from '../../pm-plugins/main';
|
|
@@ -163,17 +165,17 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
|
|
|
163
165
|
if (activeLinkMark.node.text) {
|
|
164
166
|
metadata.title = activeLinkMark.node.text;
|
|
165
167
|
}
|
|
166
|
-
var
|
|
168
|
+
var areAnyNewToolbarFlagsEnabled = areToolbarFlagsEnabled(Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.toolbar));
|
|
167
169
|
var cardActions = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c3 = pluginInjectionApi.card) === null || _pluginInjectionApi$c3 === void 0 ? void 0 : _pluginInjectionApi$c3.actions;
|
|
168
|
-
var startingToolbarItems = (_cardActions$getStart = cardActions === null || cardActions === void 0 ? void 0 : cardActions.getStartingToolbarItems(intl, link, editInsertedLink(editorAnalyticsApi), metadata,
|
|
170
|
+
var startingToolbarItems = (_cardActions$getStart = cardActions === null || cardActions === void 0 ? void 0 : cardActions.getStartingToolbarItems(intl, link, editInsertedLink(editorAnalyticsApi), metadata, areAnyNewToolbarFlagsEnabled ? state : undefined)) !== null && _cardActions$getStart !== void 0 ? _cardActions$getStart : [{
|
|
169
171
|
id: 'editor.link.edit',
|
|
170
172
|
testId: 'editor.link.edit',
|
|
171
173
|
type: 'button',
|
|
172
174
|
onClick: editInsertedLink(editorAnalyticsApi),
|
|
173
175
|
title: editLink,
|
|
174
|
-
showTitle:
|
|
176
|
+
showTitle: areAnyNewToolbarFlagsEnabled ? false : true,
|
|
175
177
|
metadata: metadata,
|
|
176
|
-
icon:
|
|
178
|
+
icon: areAnyNewToolbarFlagsEnabled ? EditIcon : undefined
|
|
177
179
|
}, {
|
|
178
180
|
type: 'separator'
|
|
179
181
|
}];
|
|
@@ -202,7 +204,7 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
|
|
|
202
204
|
icon: LinkBrokenIcon,
|
|
203
205
|
tabIndex: null
|
|
204
206
|
};
|
|
205
|
-
var items = [].concat(_toConsumableArray(startingToolbarItems), _toConsumableArray(
|
|
207
|
+
var items = [].concat(_toConsumableArray(startingToolbarItems), _toConsumableArray(areAnyNewToolbarFlagsEnabled && fg('platform_editor_controls_patch_15') ? [unlinkButton, {
|
|
206
208
|
type: 'separator',
|
|
207
209
|
fullHeight: true
|
|
208
210
|
}, openLinkButton, {
|
|
@@ -251,7 +253,7 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
|
|
|
251
253
|
if (!view) {
|
|
252
254
|
return null;
|
|
253
255
|
}
|
|
254
|
-
|
|
256
|
+
var Toolbar = /*#__PURE__*/React.createElement(HyperlinkAddToolbarWithState, {
|
|
255
257
|
pluginInjectionApi: pluginInjectionApi,
|
|
256
258
|
view: view,
|
|
257
259
|
key: idx,
|
|
@@ -283,6 +285,9 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
|
|
|
283
285
|
view.focus();
|
|
284
286
|
}
|
|
285
287
|
});
|
|
288
|
+
return editorExperiment('platform_editor_toolbar_aifc', true) && expValEquals('platform_editor_toolbar_aifc_patch_2', 'isEnabled', true) ? /*#__PURE__*/React.createElement(UserIntentPopupWrapper, {
|
|
289
|
+
api: pluginInjectionApi
|
|
290
|
+
}, Toolbar) : Toolbar;
|
|
286
291
|
}
|
|
287
292
|
}]
|
|
288
293
|
});
|
|
@@ -7,6 +7,7 @@ import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmo
|
|
|
7
7
|
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
8
8
|
import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar';
|
|
9
9
|
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
|
|
10
|
+
import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
|
|
10
11
|
import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
|
|
11
12
|
import type { HideLinkToolbar, InsertLink, ShowLinkToolbar, UpdateLink } from './editor-commands/commands';
|
|
12
13
|
type HyperlinkPluginCommands = {
|
|
@@ -55,7 +56,8 @@ export type HyperlinkPluginDependencies = [
|
|
|
55
56
|
OptionalPlugin<PrimaryToolbarPlugin>,
|
|
56
57
|
OptionalPlugin<SelectionToolbarPlugin>,
|
|
57
58
|
OptionalPlugin<UserPreferencesPlugin>,
|
|
58
|
-
OptionalPlugin<ToolbarPlugin
|
|
59
|
+
OptionalPlugin<ToolbarPlugin>,
|
|
60
|
+
OptionalPlugin<UserIntentPlugin>
|
|
59
61
|
];
|
|
60
62
|
export type HyperlinkPluginActions = {
|
|
61
63
|
hideLinkToolbar: HideLinkToolbar;
|
|
@@ -7,6 +7,7 @@ import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmo
|
|
|
7
7
|
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
8
8
|
import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar';
|
|
9
9
|
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
|
|
10
|
+
import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
|
|
10
11
|
import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
|
|
11
12
|
import type { HideLinkToolbar, InsertLink, ShowLinkToolbar, UpdateLink } from './editor-commands/commands';
|
|
12
13
|
type HyperlinkPluginCommands = {
|
|
@@ -55,7 +56,8 @@ export type HyperlinkPluginDependencies = [
|
|
|
55
56
|
OptionalPlugin<PrimaryToolbarPlugin>,
|
|
56
57
|
OptionalPlugin<SelectionToolbarPlugin>,
|
|
57
58
|
OptionalPlugin<UserPreferencesPlugin>,
|
|
58
|
-
OptionalPlugin<ToolbarPlugin
|
|
59
|
+
OptionalPlugin<ToolbarPlugin>,
|
|
60
|
+
OptionalPlugin<UserIntentPlugin>
|
|
59
61
|
];
|
|
60
62
|
export type HyperlinkPluginActions = {
|
|
61
63
|
hideLinkToolbar: HideLinkToolbar;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,25 +32,26 @@
|
|
|
32
32
|
"@atlaskit/adf-schema": "^50.2.3",
|
|
33
33
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
34
34
|
"@atlaskit/editor-plugin-analytics": "^4.0.0",
|
|
35
|
-
"@atlaskit/editor-plugin-card": "^8.
|
|
35
|
+
"@atlaskit/editor-plugin-card": "^8.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-connectivity": "^4.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-editor-viewmode": "^6.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-primary-toolbar": "^5.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-selection-toolbar": "^5.0.0",
|
|
40
|
-
"@atlaskit/editor-plugin-toolbar": "^1.
|
|
40
|
+
"@atlaskit/editor-plugin-toolbar": "^1.2.0",
|
|
41
|
+
"@atlaskit/editor-plugin-user-intent": "^2.0.0",
|
|
41
42
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
42
43
|
"@atlaskit/editor-toolbar": "^0.8.0",
|
|
43
44
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
44
45
|
"@atlaskit/icon": "^28.1.0",
|
|
45
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
46
47
|
"@atlaskit/prosemirror-input-rules": "^3.4.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^12.8.0",
|
|
48
49
|
"@babel/runtime": "^7.0.0",
|
|
49
50
|
"@emotion/react": "^11.7.1",
|
|
50
51
|
"uuid": "^3.1.0"
|
|
51
52
|
},
|
|
52
53
|
"peerDependencies": {
|
|
53
|
-
"@atlaskit/editor-common": "^108.
|
|
54
|
+
"@atlaskit/editor-common": "^108.6.0",
|
|
54
55
|
"react": "^18.2.0",
|
|
55
56
|
"react-dom": "^18.2.0",
|
|
56
57
|
"react-intl-next": "npm:react-intl@^5.18.1"
|