@atlaskit/prosemirror-input-rules 3.1.1 → 3.2.0

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/prosemirror-input-rules"
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
@@ -25,16 +26,16 @@ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
25
26
 
26
27
  // @public (undocumented)
27
28
  export function createInputRulePlugin(
28
- pluginName: string,
29
- rules: InputRuleWrapper[],
30
- options?: Options,
29
+ pluginName: string,
30
+ rules: InputRuleWrapper[],
31
+ options?: Options,
31
32
  ): SafePlugin;
32
33
 
33
34
  // @public (undocumented)
34
35
  export const createPlugin: (
35
- pluginName: string,
36
- rules: Array<InputRuleWrapper>,
37
- options?: Options_2,
36
+ pluginName: string,
37
+ rules: Array<InputRuleWrapper>,
38
+ options?: Options_2,
38
39
  ) => SafePlugin;
39
40
 
40
41
  export { createRule };
@@ -55,23 +56,19 @@ type OnBeforeRegexMatch = (tr: Transaction) => void;
55
56
  export { OnHandlerApply };
56
57
 
57
58
  // @public (undocumented)
58
- export type OnInputEvent = (props: {
59
- state: EditorState;
60
- from: number;
61
- to: number;
62
- }) => boolean;
59
+ export type OnInputEvent = (props: { state: EditorState; from: number; to: number }) => boolean;
63
60
 
64
61
  // @public (undocumented)
65
62
  type Options = {
66
- allowInsertTextOnDocument?: boolean;
67
- onInputEvent?: OnInputEvent;
68
- onBeforeRegexMatch?: OnBeforeRegexMatch;
63
+ allowInsertTextOnDocument?: boolean;
64
+ onInputEvent?: OnInputEvent;
65
+ onBeforeRegexMatch?: OnBeforeRegexMatch;
69
66
  };
70
67
 
71
68
  // @public (undocumented)
72
69
  type Options_2 = {
73
- isBlockNodeRule?: boolean;
74
- allowInsertTextOnDocument?: boolean;
70
+ isBlockNodeRule?: boolean;
71
+ allowInsertTextOnDocument?: boolean;
75
72
  };
76
73
 
77
74
  // @public (undocumented)