@prosemark/core 0.0.0 → 0.0.3
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/dist/main.d.ts +94 -8
- package/dist/main.js +875 -0
- package/package.json +33 -29
- package/dist/basicSetup.d.ts +0 -9
- package/dist/classBasedEventHandler.d.ts +0 -1
- package/dist/clickLink.d.ts +0 -1
- package/dist/codeFenceExtension.d.ts +0 -3
- package/dist/fold/blockQuote.d.ts +0 -1
- package/dist/fold/bulletList.d.ts +0 -1
- package/dist/fold/core.d.ts +0 -14
- package/dist/fold/emoji.d.ts +0 -3
- package/dist/fold/horizontalRule.d.ts +0 -1
- package/dist/fold/image.d.ts +0 -1
- package/dist/fold/index.d.ts +0 -7
- package/dist/fold/task.d.ts +0 -1
- package/dist/hide/core.d.ts +0 -14
- package/dist/hide/index.d.ts +0 -3
- package/dist/main.mjs +0 -4209
- package/dist/main.mjs.map +0 -1
- package/dist/markdownTags.d.ts +0 -11
- package/dist/syntaxHighlighting.d.ts +0 -8
- package/dist/utils.d.ts +0 -15
package/dist/main.d.ts
CHANGED
|
@@ -1,8 +1,94 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { DOMEventHandlers, DOMEventMap, Decoration, DecorationSet } from "@codemirror/view";
|
|
2
|
+
import * as _codemirror_state0 from "@codemirror/state";
|
|
3
|
+
import { EditorState, Extension, Facet, Range, StateField } from "@codemirror/state";
|
|
4
|
+
import { Tag } from "@lezer/highlight";
|
|
5
|
+
import * as _lezer_markdown0 from "@lezer/markdown";
|
|
6
|
+
import { MarkdownConfig } from "@lezer/markdown";
|
|
7
|
+
import * as _lezer_common0 from "@lezer/common";
|
|
8
|
+
import { SyntaxNodeRef } from "@lezer/common";
|
|
9
|
+
|
|
10
|
+
//#region lib/hide/index.d.ts
|
|
11
|
+
declare const defaultHideExtensions: _codemirror_state0.Extension[];
|
|
12
|
+
declare const escapeMarkdownSyntaxExtension: MarkdownConfig;
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region lib/utils.d.ts
|
|
15
|
+
interface RangeLike {
|
|
16
|
+
from: number;
|
|
17
|
+
to: number;
|
|
18
|
+
}
|
|
19
|
+
type ClassBasedEventHandlers<This> = { [event in keyof DOMEventMap]?: Record<string, DOMEventHandlers<This>[event]> };
|
|
20
|
+
declare function eventHandlersWithClass<This>(handlers: ClassBasedEventHandlers<This>): DOMEventHandlers<This>;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region lib/fold/core.d.ts
|
|
23
|
+
declare const foldDecorationExtension: StateField<DecorationSet>;
|
|
24
|
+
interface FoldableSyntaxSpec {
|
|
25
|
+
nodePath: string | string[] | ((nodePath: string) => boolean);
|
|
26
|
+
onFold?: (state: EditorState, node: SyntaxNodeRef) => Range<Decoration> | Range<Decoration>[] | undefined;
|
|
27
|
+
unfoldZone?: (state: EditorState, node: SyntaxNodeRef) => RangeLike;
|
|
28
|
+
eventHandlers?: DOMEventHandlers<void>;
|
|
29
|
+
}
|
|
30
|
+
declare const foldableSyntaxFacet: Facet<FoldableSyntaxSpec, FoldableSyntaxSpec[]>;
|
|
31
|
+
declare const selectAllDecorationsOnSelectExtension: (widgetClass: string) => Extension;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region lib/fold/bulletList.d.ts
|
|
34
|
+
declare const bulletListExtension: _codemirror_state0.Extension;
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region lib/fold/emoji.d.ts
|
|
37
|
+
declare const emojiMarkdownSyntaxExtension: MarkdownConfig;
|
|
38
|
+
declare const emojiExtension: _codemirror_state0.Extension;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region lib/fold/horizontalRule.d.ts
|
|
41
|
+
declare const horizonalRuleExtension: _codemirror_state0.Extension[];
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region lib/fold/image.d.ts
|
|
44
|
+
declare const imageExtension: _codemirror_state0.Extension[];
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region lib/fold/task.d.ts
|
|
47
|
+
declare const taskExtension: _codemirror_state0.Extension[];
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region lib/fold/blockQuote.d.ts
|
|
50
|
+
declare const blockQuoteExtension: _codemirror_state0.Extension;
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region lib/syntaxHighlighting.d.ts
|
|
53
|
+
declare const additionalMarkdownSyntaxTags: {
|
|
54
|
+
defineNodes: never[];
|
|
55
|
+
props: _lezer_common0.NodePropSource[];
|
|
56
|
+
};
|
|
57
|
+
declare const baseSyntaxHighlights: _codemirror_state0.Extension;
|
|
58
|
+
declare const baseTheme: _codemirror_state0.Extension;
|
|
59
|
+
declare const generalSyntaxHighlights: _codemirror_state0.Extension;
|
|
60
|
+
declare const lightTheme: _codemirror_state0.Extension;
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region lib/markdownTags.d.ts
|
|
63
|
+
declare const markdownTags: {
|
|
64
|
+
headerMark: Tag;
|
|
65
|
+
inlineCode: Tag;
|
|
66
|
+
fencedCode: Tag;
|
|
67
|
+
linkURL: Tag;
|
|
68
|
+
escapeMark: Tag;
|
|
69
|
+
emoji: Tag;
|
|
70
|
+
emojiMark: Tag;
|
|
71
|
+
listMark: Tag;
|
|
72
|
+
};
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region lib/clickLink.d.ts
|
|
75
|
+
type ClickLinkHandler = (link: string) => void;
|
|
76
|
+
declare const clickLinkHandler: Facet<ClickLinkHandler, readonly ClickLinkHandler[]>;
|
|
77
|
+
declare const defaultClickLinkHandler: _codemirror_state0.Extension;
|
|
78
|
+
declare const clickLinkExtension: _codemirror_state0.Extension[];
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region lib/codeFenceExtension.d.ts
|
|
81
|
+
declare const codeBlockDecorationsExtension: Extension;
|
|
82
|
+
declare const codeFenceTheme: Extension;
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region lib/basicSetup.d.ts
|
|
85
|
+
declare const prosemarkMarkdownSyntaxExtensions: (_lezer_markdown0.MarkdownConfig | {
|
|
86
|
+
defineNodes: never[];
|
|
87
|
+
props: _lezer_common0.NodePropSource[];
|
|
88
|
+
})[];
|
|
89
|
+
declare const defaultFoldableSyntaxExtensions: Extension[];
|
|
90
|
+
declare const prosemarkBasicSetup: () => Extension;
|
|
91
|
+
declare const prosemarkBaseThemeSetup: () => Extension;
|
|
92
|
+
declare const prosemarkLightThemeSetup: () => Extension;
|
|
93
|
+
//#endregion
|
|
94
|
+
export { ClickLinkHandler, additionalMarkdownSyntaxTags, baseSyntaxHighlights, baseTheme, blockQuoteExtension, bulletListExtension, clickLinkExtension, clickLinkHandler, codeBlockDecorationsExtension, codeFenceTheme, defaultClickLinkHandler, defaultFoldableSyntaxExtensions, defaultHideExtensions, emojiExtension, emojiMarkdownSyntaxExtension, escapeMarkdownSyntaxExtension, eventHandlersWithClass, foldDecorationExtension, foldableSyntaxFacet, generalSyntaxHighlights, horizonalRuleExtension, imageExtension, lightTheme, markdownTags, prosemarkBaseThemeSetup, prosemarkBasicSetup, prosemarkLightThemeSetup, prosemarkMarkdownSyntaxExtensions, selectAllDecorationsOnSelectExtension, taskExtension };
|