@atlaskit/editor-plugin-hyperlink 3.2.19 → 3.2.21
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 +15 -0
- package/dist/cjs/{commands.js → editor-commands/commands.js} +1 -1
- package/dist/cjs/{plugin.js → hyperlinkPlugin.js} +2 -2
- package/dist/cjs/hyperlinkPluginType.js +5 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/pm-plugins/keymap.js +1 -1
- package/dist/cjs/{Toolbar.js → ui/toolbar/Toolbar.js} +3 -3
- package/dist/es2019/{commands.js → editor-commands/commands.js} +1 -1
- package/dist/es2019/{plugin.js → hyperlinkPlugin.js} +2 -2
- package/dist/es2019/hyperlinkPluginType.js +1 -0
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/pm-plugins/keymap.js +1 -1
- package/dist/es2019/{Toolbar.js → ui/toolbar/Toolbar.js} +4 -3
- package/dist/esm/{commands.js → editor-commands/commands.js} +1 -1
- package/dist/esm/{plugin.js → hyperlinkPlugin.js} +2 -2
- package/dist/esm/hyperlinkPluginType.js +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/pm-plugins/keymap.js +1 -1
- package/dist/esm/{Toolbar.js → ui/toolbar/Toolbar.js} +4 -3
- package/dist/types/hyperlinkPlugin.d.ts +6 -0
- package/dist/types/{plugin.d.ts → hyperlinkPluginType.d.ts} +1 -6
- package/dist/types/index.d.ts +3 -3
- package/dist/types/pm-plugins/main.d.ts +1 -1
- package/dist/types/{Toolbar.d.ts → ui/toolbar/Toolbar.d.ts} +1 -1
- package/dist/types-ts4.5/hyperlinkPlugin.d.ts +6 -0
- package/dist/types-ts4.5/{plugin.d.ts → hyperlinkPluginType.d.ts} +1 -6
- package/dist/types-ts4.5/index.d.ts +3 -3
- package/dist/types-ts4.5/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/{Toolbar.d.ts → ui/toolbar/Toolbar.d.ts} +1 -1
- package/package.json +7 -4
- /package/dist/types/{commands.d.ts → editor-commands/commands.d.ts} +0 -0
- /package/dist/types-ts4.5/{commands.d.ts → editor-commands/commands.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 3.2.21
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#176525](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/176525)
|
|
8
|
+
[`9a26a8f7de8ab`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9a26a8f7de8ab) -
|
|
9
|
+
updated hyperlink plugin to EES003
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 3.2.20
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 3.2.19
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -23,7 +23,7 @@ var _link = require("@atlaskit/editor-common/link");
|
|
|
23
23
|
var _preset = require("@atlaskit/editor-common/preset");
|
|
24
24
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
25
25
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
26
|
-
var _main = require("
|
|
26
|
+
var _main = require("../pm-plugins/main");
|
|
27
27
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28
28
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29
29
|
function setLinkHrefEditorCommand(href, pos, editorAnalyticsApi, to, isTabPressed) {
|
|
@@ -16,13 +16,13 @@ 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
18
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
19
|
-
var _commands = require("./commands");
|
|
19
|
+
var _commands = require("./editor-commands/commands");
|
|
20
20
|
var _fakeCursorForToolbar = _interopRequireDefault(require("./pm-plugins/fake-cursor-for-toolbar"));
|
|
21
21
|
var _inputRule = require("./pm-plugins/input-rule");
|
|
22
22
|
var _keymap = require("./pm-plugins/keymap");
|
|
23
23
|
var _main = require("./pm-plugins/main");
|
|
24
24
|
var _toolbarButtons = require("./pm-plugins/toolbar-buttons");
|
|
25
|
-
var _Toolbar = require("./Toolbar");
|
|
25
|
+
var _Toolbar = require("./ui/toolbar/Toolbar");
|
|
26
26
|
var getPosFromActiveLinkMark = function getPosFromActiveLinkMark(state) {
|
|
27
27
|
if (state === undefined) {
|
|
28
28
|
return undefined;
|
package/dist/cjs/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "hyperlinkPlugin", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _hyperlinkPlugin.hyperlinkPlugin;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
var
|
|
12
|
+
var _hyperlinkPlugin = require("./hyperlinkPlugin");
|
|
@@ -11,7 +11,7 @@ var _card = require("@atlaskit/editor-common/card");
|
|
|
11
11
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
12
12
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
13
13
|
var _keymap = require("@atlaskit/editor-prosemirror/keymap");
|
|
14
|
-
var _commands = require("../commands");
|
|
14
|
+
var _commands = require("../editor-commands/commands");
|
|
15
15
|
var _main = require("../pm-plugins/main");
|
|
16
16
|
var _toolbarButtons = require("./toolbar-buttons");
|
|
17
17
|
function createKeymapPlugin(editorAnalyticsApi) {
|
|
@@ -22,9 +22,9 @@ var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-ext
|
|
|
22
22
|
var _unlink = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/unlink"));
|
|
23
23
|
var _shortcut = _interopRequireDefault(require("@atlaskit/icon/glyph/shortcut"));
|
|
24
24
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
25
|
-
var _commands = require("
|
|
26
|
-
var _main = require("
|
|
27
|
-
var _toolbarButtons = require("
|
|
25
|
+
var _commands = require("../../editor-commands/commands");
|
|
26
|
+
var _main = require("../../pm-plugins/main");
|
|
27
|
+
var _toolbarButtons = require("../../pm-plugins/toolbar-buttons");
|
|
28
28
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29
29
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
30
30
|
/* type guard for edit links */
|
|
@@ -5,7 +5,7 @@ import { isTextAtPos, LinkAction } from '@atlaskit/editor-common/link';
|
|
|
5
5
|
import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
6
6
|
import { getLinkCreationAnalyticsEvent, normalizeUrl } from '@atlaskit/editor-common/utils';
|
|
7
7
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
-
import { stateKey } from '
|
|
8
|
+
import { stateKey } from '../pm-plugins/main';
|
|
9
9
|
function setLinkHrefEditorCommand(href, pos, editorAnalyticsApi, to, isTabPressed) {
|
|
10
10
|
return ({
|
|
11
11
|
tr
|
|
@@ -9,13 +9,13 @@ 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
11
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
|
-
import { hideLinkToolbarSetMeta, insertLinkWithAnalytics, removeLinkEditorCommand, showLinkToolbar, updateLink, updateLinkEditorCommand } from './commands';
|
|
12
|
+
import { hideLinkToolbarSetMeta, insertLinkWithAnalytics, removeLinkEditorCommand, showLinkToolbar, updateLink, updateLinkEditorCommand } from './editor-commands/commands';
|
|
13
13
|
import fakeCursorToolbarPlugin from './pm-plugins/fake-cursor-for-toolbar';
|
|
14
14
|
import { createInputRulePlugin } from './pm-plugins/input-rule';
|
|
15
15
|
import { createKeymapPlugin } from './pm-plugins/keymap';
|
|
16
16
|
import { plugin, stateKey } from './pm-plugins/main';
|
|
17
17
|
import { toolbarButtonsPlugin } from './pm-plugins/toolbar-buttons';
|
|
18
|
-
import { getToolbarConfig } from './Toolbar';
|
|
18
|
+
import { getToolbarConfig } from './ui/toolbar/Toolbar';
|
|
19
19
|
const getPosFromActiveLinkMark = state => {
|
|
20
20
|
if (state === undefined) {
|
|
21
21
|
return undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/es2019/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { hyperlinkPlugin } from './
|
|
1
|
+
export { hyperlinkPlugin } from './hyperlinkPlugin';
|
|
@@ -4,7 +4,7 @@ import { addLinkMetadata } from '@atlaskit/editor-common/card';
|
|
|
4
4
|
import { addLink, bindKeymapWithCommand, bindKeymapWithEditorCommand, enter, escape, insertNewLine } from '@atlaskit/editor-common/keymaps';
|
|
5
5
|
import { findFilepaths, getLinkCreationAnalyticsEvent, isLinkInMatches, shouldAutoLinkifyMatch } from '@atlaskit/editor-common/utils';
|
|
6
6
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
7
|
-
import { hideLinkToolbar, showLinkToolbar } from '../commands';
|
|
7
|
+
import { hideLinkToolbar, showLinkToolbar } from '../editor-commands/commands';
|
|
8
8
|
import { stateKey } from '../pm-plugins/main';
|
|
9
9
|
import { toolbarKey } from './toolbar-buttons';
|
|
10
10
|
export function createKeymapPlugin(editorAnalyticsApi) {
|
|
@@ -12,9 +12,10 @@ 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
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
|
-
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from '
|
|
16
|
-
import { stateKey } from '
|
|
17
|
-
import { toolbarKey } from '
|
|
15
|
+
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from '../../editor-commands/commands';
|
|
16
|
+
import { stateKey } from '../../pm-plugins/main';
|
|
17
|
+
import { toolbarKey } from '../../pm-plugins/toolbar-buttons';
|
|
18
|
+
|
|
18
19
|
/* type guard for edit links */
|
|
19
20
|
function isEditLink(linkMark) {
|
|
20
21
|
return linkMark.pos !== undefined;
|
|
@@ -8,7 +8,7 @@ import { isTextAtPos, LinkAction } from '@atlaskit/editor-common/link';
|
|
|
8
8
|
import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
9
9
|
import { getLinkCreationAnalyticsEvent, normalizeUrl } from '@atlaskit/editor-common/utils';
|
|
10
10
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
11
|
-
import { stateKey } from '
|
|
11
|
+
import { stateKey } from '../pm-plugins/main';
|
|
12
12
|
function setLinkHrefEditorCommand(href, pos, editorAnalyticsApi, to, isTabPressed) {
|
|
13
13
|
return function (_ref) {
|
|
14
14
|
var tr = _ref.tr;
|
|
@@ -9,13 +9,13 @@ 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
11
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
|
-
import { hideLinkToolbarSetMeta, insertLinkWithAnalytics, removeLinkEditorCommand, showLinkToolbar as _showLinkToolbar, updateLink, updateLinkEditorCommand } from './commands';
|
|
12
|
+
import { hideLinkToolbarSetMeta, insertLinkWithAnalytics, removeLinkEditorCommand, showLinkToolbar as _showLinkToolbar, updateLink, updateLinkEditorCommand } from './editor-commands/commands';
|
|
13
13
|
import fakeCursorToolbarPlugin from './pm-plugins/fake-cursor-for-toolbar';
|
|
14
14
|
import { createInputRulePlugin } from './pm-plugins/input-rule';
|
|
15
15
|
import { createKeymapPlugin } from './pm-plugins/keymap';
|
|
16
16
|
import { plugin as _plugin, stateKey } from './pm-plugins/main';
|
|
17
17
|
import { toolbarButtonsPlugin } from './pm-plugins/toolbar-buttons';
|
|
18
|
-
import { getToolbarConfig } from './Toolbar';
|
|
18
|
+
import { getToolbarConfig } from './ui/toolbar/Toolbar';
|
|
19
19
|
var getPosFromActiveLinkMark = function getPosFromActiveLinkMark(state) {
|
|
20
20
|
if (state === undefined) {
|
|
21
21
|
return undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { hyperlinkPlugin } from './
|
|
1
|
+
export { hyperlinkPlugin } from './hyperlinkPlugin';
|
|
@@ -4,7 +4,7 @@ import { addLinkMetadata } from '@atlaskit/editor-common/card';
|
|
|
4
4
|
import { addLink, bindKeymapWithCommand, bindKeymapWithEditorCommand, enter, escape, insertNewLine } from '@atlaskit/editor-common/keymaps';
|
|
5
5
|
import { findFilepaths, getLinkCreationAnalyticsEvent, isLinkInMatches, shouldAutoLinkifyMatch } from '@atlaskit/editor-common/utils';
|
|
6
6
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
7
|
-
import { hideLinkToolbar, showLinkToolbar } from '../commands';
|
|
7
|
+
import { hideLinkToolbar, showLinkToolbar } from '../editor-commands/commands';
|
|
8
8
|
import { stateKey } from '../pm-plugins/main';
|
|
9
9
|
import { toolbarKey } from './toolbar-buttons';
|
|
10
10
|
export function createKeymapPlugin(editorAnalyticsApi) {
|
|
@@ -16,9 +16,10 @@ 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
18
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
|
-
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from '
|
|
20
|
-
import { stateKey } from '
|
|
21
|
-
import { toolbarKey } from '
|
|
19
|
+
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from '../../editor-commands/commands';
|
|
20
|
+
import { stateKey } from '../../pm-plugins/main';
|
|
21
|
+
import { toolbarKey } from '../../pm-plugins/toolbar-buttons';
|
|
22
|
+
|
|
22
23
|
/* type guard for edit links */
|
|
23
24
|
function isEditLink(linkMark) {
|
|
24
25
|
return linkMark.pos !== undefined;
|
|
@@ -3,7 +3,7 @@ import type { EditorCommand, HyperlinkPluginOptions, NextEditorPlugin, OptionalP
|
|
|
3
3
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
4
|
import type { CardPlugin } from '@atlaskit/editor-plugin-card';
|
|
5
5
|
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
6
|
-
import type { HideLinkToolbar, InsertLink, ShowLinkToolbar, UpdateLink } from './commands';
|
|
6
|
+
import type { HideLinkToolbar, InsertLink, ShowLinkToolbar, UpdateLink } from './editor-commands/commands';
|
|
7
7
|
export type HyperlinkPlugin = NextEditorPlugin<'hyperlink', {
|
|
8
8
|
pluginConfiguration: HyperlinkPluginOptions | undefined;
|
|
9
9
|
dependencies: [
|
|
@@ -56,8 +56,3 @@ export type HyperlinkPlugin = NextEditorPlugin<'hyperlink', {
|
|
|
56
56
|
};
|
|
57
57
|
sharedState: HyperlinkState | undefined;
|
|
58
58
|
}>;
|
|
59
|
-
/**
|
|
60
|
-
* Hyperlink plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
61
|
-
* from `@atlaskit/editor-core`.
|
|
62
|
-
*/
|
|
63
|
-
export declare const hyperlinkPlugin: HyperlinkPlugin;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { hyperlinkPlugin } from './
|
|
2
|
-
export type { HyperlinkPlugin } from './
|
|
3
|
-
export type { HideLinkToolbar, ShowLinkToolbar, InsertLink, UpdateLink } from './commands';
|
|
1
|
+
export { hyperlinkPlugin } from './hyperlinkPlugin';
|
|
2
|
+
export type { HyperlinkPlugin } from './hyperlinkPluginType';
|
|
3
|
+
export type { HideLinkToolbar, ShowLinkToolbar, InsertLink, UpdateLink, } from './editor-commands/commands';
|
|
@@ -5,6 +5,6 @@ import type { HyperlinkState } from '@atlaskit/editor-common/link';
|
|
|
5
5
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
6
6
|
import type { EditorAppearance, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
7
7
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
-
import type { HyperlinkPlugin } from '../
|
|
8
|
+
import type { HyperlinkPlugin } from '../hyperlinkPluginType';
|
|
9
9
|
export declare const stateKey: PluginKey<HyperlinkState>;
|
|
10
10
|
export declare const plugin: (dispatch: Dispatch, intl: IntlShape, editorAppearance?: EditorAppearance, pluginInjectionApi?: ExtractInjectionAPI<HyperlinkPlugin> | undefined, onClickCallback?: OnClickCallback, __livePage?: boolean) => SafePlugin<HyperlinkState>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { HyperlinkAddToolbarProps } from '@atlaskit/editor-common/link';
|
|
3
3
|
import type { ExtractInjectionAPI, FloatingToolbarHandler, HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { hyperlinkPlugin } from '
|
|
4
|
+
import type { hyperlinkPlugin } from '../../hyperlinkPlugin';
|
|
5
5
|
export declare function HyperlinkAddToolbarWithState({ linkPickerOptions, onSubmit, displayText, displayUrl, providerFactory, view, onCancel, invokeMethod, lpLinkPicker, onClose, onEscapeCallback, onClickAwayCallback, pluginInjectionApi, }: HyperlinkAddToolbarProps & {
|
|
6
6
|
pluginInjectionApi: any;
|
|
7
7
|
}): JSX.Element;
|
|
@@ -3,7 +3,7 @@ import type { EditorCommand, HyperlinkPluginOptions, NextEditorPlugin, OptionalP
|
|
|
3
3
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
4
|
import type { CardPlugin } from '@atlaskit/editor-plugin-card';
|
|
5
5
|
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
6
|
-
import type { HideLinkToolbar, InsertLink, ShowLinkToolbar, UpdateLink } from './commands';
|
|
6
|
+
import type { HideLinkToolbar, InsertLink, ShowLinkToolbar, UpdateLink } from './editor-commands/commands';
|
|
7
7
|
export type HyperlinkPlugin = NextEditorPlugin<'hyperlink', {
|
|
8
8
|
pluginConfiguration: HyperlinkPluginOptions | undefined;
|
|
9
9
|
dependencies: [
|
|
@@ -56,8 +56,3 @@ export type HyperlinkPlugin = NextEditorPlugin<'hyperlink', {
|
|
|
56
56
|
};
|
|
57
57
|
sharedState: HyperlinkState | undefined;
|
|
58
58
|
}>;
|
|
59
|
-
/**
|
|
60
|
-
* Hyperlink plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
61
|
-
* from `@atlaskit/editor-core`.
|
|
62
|
-
*/
|
|
63
|
-
export declare const hyperlinkPlugin: HyperlinkPlugin;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { hyperlinkPlugin } from './
|
|
2
|
-
export type { HyperlinkPlugin } from './
|
|
3
|
-
export type { HideLinkToolbar, ShowLinkToolbar, InsertLink, UpdateLink } from './commands';
|
|
1
|
+
export { hyperlinkPlugin } from './hyperlinkPlugin';
|
|
2
|
+
export type { HyperlinkPlugin } from './hyperlinkPluginType';
|
|
3
|
+
export type { HideLinkToolbar, ShowLinkToolbar, InsertLink, UpdateLink, } from './editor-commands/commands';
|
|
@@ -5,6 +5,6 @@ import type { HyperlinkState } from '@atlaskit/editor-common/link';
|
|
|
5
5
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
6
6
|
import type { EditorAppearance, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
7
7
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
-
import type { HyperlinkPlugin } from '../
|
|
8
|
+
import type { HyperlinkPlugin } from '../hyperlinkPluginType';
|
|
9
9
|
export declare const stateKey: PluginKey<HyperlinkState>;
|
|
10
10
|
export declare const plugin: (dispatch: Dispatch, intl: IntlShape, editorAppearance?: EditorAppearance, pluginInjectionApi?: ExtractInjectionAPI<HyperlinkPlugin> | undefined, onClickCallback?: OnClickCallback, __livePage?: boolean) => SafePlugin<HyperlinkState>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { HyperlinkAddToolbarProps } from '@atlaskit/editor-common/link';
|
|
3
3
|
import type { ExtractInjectionAPI, FloatingToolbarHandler, HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { hyperlinkPlugin } from '
|
|
4
|
+
import type { hyperlinkPlugin } from '../../hyperlinkPlugin';
|
|
5
5
|
export declare function HyperlinkAddToolbarWithState({ linkPickerOptions, onSubmit, displayText, displayUrl, providerFactory, view, onCancel, invokeMethod, lpLinkPicker, onClose, onEscapeCallback, onClickAwayCallback, pluginInjectionApi, }: HyperlinkAddToolbarProps & {
|
|
6
6
|
pluginInjectionApi: any;
|
|
7
7
|
}): JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.21",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
35
|
"@atlaskit/analytics-next": "^10.2.0",
|
|
36
|
-
"@atlaskit/editor-common": "^96.
|
|
36
|
+
"@atlaskit/editor-common": "^96.4.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
38
|
-
"@atlaskit/editor-plugin-card": "4.5.
|
|
38
|
+
"@atlaskit/editor-plugin-card": "4.5.4",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
41
41
|
"@atlaskit/icon": "^23.1.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
43
43
|
"@atlaskit/prosemirror-input-rules": "^3.2.0",
|
|
44
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
44
|
+
"@atlaskit/tmp-editor-statsig": "^2.25.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"uuid": "^3.1.0"
|
|
47
47
|
},
|
|
@@ -69,6 +69,9 @@
|
|
|
69
69
|
],
|
|
70
70
|
"circular-dependencies": [
|
|
71
71
|
"file-and-folder-level"
|
|
72
|
+
],
|
|
73
|
+
"code-structure": [
|
|
74
|
+
"editor-plugin"
|
|
72
75
|
]
|
|
73
76
|
},
|
|
74
77
|
"@repo/internal": {
|
|
File without changes
|
|
File without changes
|