@atlaskit/editor-plugin-hyperlink 1.7.2 → 2.0.1

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/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/editor-plugin-hyperlink"
4
4
 
5
- > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using
6
+ > [API Extractor](https://api-extractor.com/).
6
7
  > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
8
 
8
9
  ### Table of contents
@@ -36,10 +37,10 @@ import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
36
37
 
37
38
  // @public (undocumented)
38
39
  type GetToolbarItems = (
39
- state: EditorState,
40
- intl: IntlShape,
41
- providerFactory: ProviderFactory,
42
- link: string,
40
+ state: EditorState,
41
+ intl: IntlShape,
42
+ providerFactory: ProviderFactory,
43
+ link: string,
43
44
  ) => FloatingToolbarItem<any>[];
44
45
 
45
46
  // @public (undocumented)
@@ -47,24 +48,21 @@ export type HideLinkToolbar = (tr: Transaction) => Transaction;
47
48
 
48
49
  // @public (undocumented)
49
50
  export type HyperlinkPlugin = NextEditorPlugin<
50
- 'hyperlink',
51
- {
52
- pluginConfiguration: HyperlinkPluginOptions | undefined;
53
- dependencies: [
54
- OptionalPlugin<FeatureFlagsPlugin>,
55
- OptionalPlugin<AnalyticsPlugin>,
56
- ];
57
- actions: {
58
- prependToolbarButtons: PrependToolbarButtons;
59
- hideLinkToolbar: HideLinkToolbar;
60
- insertLink: InsertLink;
61
- updateLink: UpdateLink;
62
- };
63
- commands: {
64
- showLinkToolbar: ShowLinkToolbar;
65
- };
66
- sharedState: HyperlinkState | undefined;
67
- }
51
+ 'hyperlink',
52
+ {
53
+ pluginConfiguration: HyperlinkPluginOptions | undefined;
54
+ dependencies: [OptionalPlugin<FeatureFlagsPlugin>, OptionalPlugin<AnalyticsPlugin>];
55
+ actions: {
56
+ prependToolbarButtons: PrependToolbarButtons;
57
+ hideLinkToolbar: HideLinkToolbar;
58
+ insertLink: InsertLink;
59
+ updateLink: UpdateLink;
60
+ };
61
+ commands: {
62
+ showLinkToolbar: ShowLinkToolbar;
63
+ };
64
+ sharedState: HyperlinkState | undefined;
65
+ }
68
66
  >;
69
67
 
70
68
  // @public
@@ -73,27 +71,25 @@ export const hyperlinkPlugin: HyperlinkPlugin;
73
71
  // @public (undocumented)
74
72
  type HyperlinkToolbarItemsState = {
75
73
  items: GetToolbarItems;
76
- onEscapeCallback: ((tr: Transaction) => Transaction) | undefined;
77
- onInsertLinkCallback: QueueCardsFromTransactionAction | undefined;
78
74
  };
79
75
 
80
76
  // @public (undocumented)
81
77
  type InputMethod =
82
- | INPUT_METHOD.INSERT_MENU
83
- | INPUT_METHOD.QUICK_INSERT
84
- | INPUT_METHOD.SHORTCUT
85
- | INPUT_METHOD.TOOLBAR;
78
+ | INPUT_METHOD.INSERT_MENU
79
+ | INPUT_METHOD.QUICK_INSERT
80
+ | INPUT_METHOD.SHORTCUT
81
+ | INPUT_METHOD.TOOLBAR;
86
82
 
87
83
  // @public (undocumented)
88
84
  export type InsertLink = (
89
- inputMethod: LinkInputType,
90
- from: number,
91
- to: number,
92
- href: string,
93
- title?: string,
94
- displayText?: string,
95
- cardsAvailable?: boolean,
96
- sourceEvent?: UIAnalyticsEvent | null | undefined,
85
+ inputMethod: LinkInputType,
86
+ from: number,
87
+ to: number,
88
+ href: string,
89
+ title?: string,
90
+ displayText?: string,
91
+ cardsAvailable?: boolean,
92
+ sourceEvent?: UIAnalyticsEvent | null | undefined,
97
93
  ) => Command;
98
94
 
99
95
  // @public (undocumented)
@@ -101,20 +97,15 @@ export type PrependToolbarButtons = (props: PrependToolbarButtonsProps) => void;
101
97
 
102
98
  // @public (undocumented)
103
99
  interface PrependToolbarButtonsProps extends HyperlinkToolbarItemsState {
104
- // (undocumented)
105
- view: EditorView;
100
+ // (undocumented)
101
+ view: EditorView;
106
102
  }
107
103
 
108
104
  // @public (undocumented)
109
105
  export type ShowLinkToolbar = (inputMethod: InputMethod) => EditorCommand;
110
106
 
111
107
  // @public (undocumented)
112
- export type UpdateLink = (
113
- href: string,
114
- text: string,
115
- pos: number,
116
- to?: number,
117
- ) => Command;
108
+ export type UpdateLink = (href: string, text: string, pos: number, to?: number) => Command;
118
109
 
119
110
  // (No @packageDocumentation comment for this package)
120
111
  ```
@@ -127,8 +118,8 @@ export type UpdateLink = (
127
118
 
128
119
  ```json
129
120
  {
130
- "react": "^16.8.0",
131
- "react-intl-next": "npm:react-intl@^5.18.1"
121
+ "react": "^16.8.0",
122
+ "react-intl-next": "npm:react-intl@^5.18.1"
132
123
  }
133
124
  ```
134
125