@atlaskit/editor-plugin-hyperlink 10.0.25 → 10.0.27
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 +14 -0
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/types/pm-plugins/decorations.d.ts +2 -2
- package/dist/types/pm-plugins/main.d.ts +2 -2
- package/dist/types/ui/PrimaryToolbarComponent.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/decorations.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/main.d.ts +2 -2
- package/dist/types-ts4.5/ui/PrimaryToolbarComponent.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 10.0.27
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7b7c52dff5d7d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7b7c52dff5d7d) -
|
|
8
|
+
Fix eslint violations for type import syntax
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 10.0.26
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 10.0.25
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -133,7 +133,7 @@ var getActiveText = function getActiveText(selection) {
|
|
|
133
133
|
return;
|
|
134
134
|
};
|
|
135
135
|
var stateKey = exports.stateKey = new _state.PluginKey('hyperlinkPlugin');
|
|
136
|
-
var plugin = exports.plugin = function plugin(dispatch, intl, editorAppearance,
|
|
136
|
+
var plugin = exports.plugin = function plugin(dispatch, intl, editorAppearance, _pluginInjectionApi, _onClickCallback, __livePage) {
|
|
137
137
|
return new _safePlugin.SafePlugin({
|
|
138
138
|
state: {
|
|
139
139
|
init: function init(_, state) {
|
|
@@ -132,7 +132,7 @@ const getActiveText = selection => {
|
|
|
132
132
|
return;
|
|
133
133
|
};
|
|
134
134
|
export const stateKey = new PluginKey('hyperlinkPlugin');
|
|
135
|
-
export const plugin = (dispatch, intl, editorAppearance,
|
|
135
|
+
export const plugin = (dispatch, intl, editorAppearance, _pluginInjectionApi, _onClickCallback, __livePage) => new SafePlugin({
|
|
136
136
|
state: {
|
|
137
137
|
init(_, state) {
|
|
138
138
|
const canInsertLink = canLinkBeCreatedInRange(state.selection.from, state.selection.to)(state);
|
|
@@ -127,7 +127,7 @@ var getActiveText = function getActiveText(selection) {
|
|
|
127
127
|
return;
|
|
128
128
|
};
|
|
129
129
|
export var stateKey = new PluginKey('hyperlinkPlugin');
|
|
130
|
-
export var plugin = function plugin(dispatch, intl, editorAppearance,
|
|
130
|
+
export var plugin = function plugin(dispatch, intl, editorAppearance, _pluginInjectionApi, _onClickCallback, __livePage) {
|
|
131
131
|
return new SafePlugin({
|
|
132
132
|
state: {
|
|
133
133
|
init: function init(_, state) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type MouseEvent } from 'react';
|
|
2
2
|
import { type IntlShape } from 'react-intl-next';
|
|
3
3
|
import { type HyperlinkState } from '@atlaskit/editor-common/link';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import type { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
export declare const ButtonWrapper: ({ editorView, pos, stateKey, intl, onOpenLinkClick, }: {
|
|
7
7
|
editorView: EditorView;
|
|
8
8
|
intl: IntlShape;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { OnClickCallback } from '@atlaskit/editor-common/card';
|
|
3
3
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
4
|
import type { HyperlinkState } from '@atlaskit/editor-common/link';
|
|
@@ -7,4 +7,4 @@ import type { EditorAppearance, ExtractInjectionAPI } from '@atlaskit/editor-com
|
|
|
7
7
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import type { HyperlinkPlugin } from '../hyperlinkPluginType';
|
|
9
9
|
export declare const stateKey: PluginKey<HyperlinkState>;
|
|
10
|
-
export declare const plugin: (dispatch: Dispatch, intl: IntlShape, editorAppearance?: EditorAppearance,
|
|
10
|
+
export declare const plugin: (dispatch: Dispatch, intl: IntlShape, editorAppearance?: EditorAppearance, _pluginInjectionApi?: ExtractInjectionAPI<HyperlinkPlugin> | undefined, _onClickCallback?: OnClickCallback, __livePage?: boolean) => SafePlugin<HyperlinkState>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { type ComponentType, type FC } from 'react';
|
|
6
6
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
8
|
-
import {
|
|
8
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { HyperlinkPlugin } from '../hyperlinkPluginType';
|
|
10
10
|
type PrimaryToolbarComponentProps = {
|
|
11
11
|
api: ExtractInjectionAPI<HyperlinkPlugin> | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type MouseEvent } from 'react';
|
|
2
2
|
import { type IntlShape } from 'react-intl-next';
|
|
3
3
|
import { type HyperlinkState } from '@atlaskit/editor-common/link';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import type { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
export declare const ButtonWrapper: ({ editorView, pos, stateKey, intl, onOpenLinkClick, }: {
|
|
7
7
|
editorView: EditorView;
|
|
8
8
|
intl: IntlShape;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { OnClickCallback } from '@atlaskit/editor-common/card';
|
|
3
3
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
4
|
import type { HyperlinkState } from '@atlaskit/editor-common/link';
|
|
@@ -7,4 +7,4 @@ import type { EditorAppearance, ExtractInjectionAPI } from '@atlaskit/editor-com
|
|
|
7
7
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import type { HyperlinkPlugin } from '../hyperlinkPluginType';
|
|
9
9
|
export declare const stateKey: PluginKey<HyperlinkState>;
|
|
10
|
-
export declare const plugin: (dispatch: Dispatch, intl: IntlShape, editorAppearance?: EditorAppearance,
|
|
10
|
+
export declare const plugin: (dispatch: Dispatch, intl: IntlShape, editorAppearance?: EditorAppearance, _pluginInjectionApi?: ExtractInjectionAPI<HyperlinkPlugin> | undefined, _onClickCallback?: OnClickCallback, __livePage?: boolean) => SafePlugin<HyperlinkState>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { type ComponentType, type FC } from 'react';
|
|
6
6
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
8
|
-
import {
|
|
8
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { HyperlinkPlugin } from '../hyperlinkPluginType';
|
|
10
10
|
type PrimaryToolbarComponentProps = {
|
|
11
11
|
api: ExtractInjectionAPI<HyperlinkPlugin> | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.27",
|
|
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": "^34.0.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^58.0.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
51
51
|
"uuid": "^3.1.0"
|