@atlaskit/editor-plugin-hyperlink 10.0.26 → 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 CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 10.0.26
4
12
 
5
13
  ### 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, pluginInjectionApi, onClickCallback, __livePage) {
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, pluginInjectionApi, onClickCallback, __livePage) => new SafePlugin({
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, pluginInjectionApi, onClickCallback, __livePage) {
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 { type PluginKey } from '@atlaskit/editor-prosemirror/state';
5
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
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 { type IntlShape } from 'react-intl-next';
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, pluginInjectionApi?: ExtractInjectionAPI<HyperlinkPlugin> | undefined, onClickCallback?: OnClickCallback, __livePage?: boolean) => SafePlugin<HyperlinkState>;
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 { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
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 { type PluginKey } from '@atlaskit/editor-prosemirror/state';
5
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
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 { type IntlShape } from 'react-intl-next';
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, pluginInjectionApi?: ExtractInjectionAPI<HyperlinkPlugin> | undefined, onClickCallback?: OnClickCallback, __livePage?: boolean) => SafePlugin<HyperlinkState>;
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 { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
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.26",
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",