@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/package.json
CHANGED
|
@@ -1,58 +1,62 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosemark/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
8
|
-
"main": "./dist/main.
|
|
9
|
-
"module": "./dist/main.
|
|
8
|
+
"main": "./dist/main.js",
|
|
9
|
+
"module": "./dist/main.js",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
12
|
"types": "./dist/main.d.ts",
|
|
13
|
-
"import": "./dist/main.
|
|
13
|
+
"import": "./dist/main.js"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
|
-
"dev": "
|
|
18
|
-
"build": "
|
|
17
|
+
"dev": "tsdown --watch",
|
|
18
|
+
"build": "tsdown",
|
|
19
19
|
"preview": "vite preview",
|
|
20
20
|
"lint": "eslint --max-warnings=0",
|
|
21
|
-
"check-types": "tsc"
|
|
21
|
+
"check-types": "tsc",
|
|
22
|
+
"ci:publish": "bun publish --tolerate-republish"
|
|
22
23
|
},
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"@lezer/common": "
|
|
25
|
-
"@lezer/markdown": "^1.4.
|
|
25
|
+
"@lezer/common": "^1.2.3",
|
|
26
|
+
"@lezer/markdown": "^1.4.3",
|
|
26
27
|
"ajv": "^8.17.1",
|
|
27
28
|
"node-emoji": "^2.2.0"
|
|
28
29
|
},
|
|
29
30
|
"peerDependencies": {
|
|
30
|
-
"@codemirror/
|
|
31
|
-
"@codemirror/
|
|
32
|
-
"@codemirror/
|
|
31
|
+
"@codemirror/autocomplete": "^6.19.1",
|
|
32
|
+
"@codemirror/commands": "^6.8.1",
|
|
33
|
+
"@codemirror/lang-markdown": "^6.3.4",
|
|
34
|
+
"@codemirror/language": "^6.11.3",
|
|
35
|
+
"@codemirror/state": "^6.5.2",
|
|
36
|
+
"@codemirror/view": "^6.38.6",
|
|
33
37
|
"@codemirror/language-data": "^6.5.1",
|
|
34
|
-
"@codemirror/
|
|
35
|
-
"@codemirror/
|
|
38
|
+
"@codemirror/lint": "^6.9.1",
|
|
39
|
+
"@codemirror/search": "^6.5.11",
|
|
36
40
|
"@lezer/highlight": "^1.2.0"
|
|
37
41
|
},
|
|
38
42
|
"devDependencies": {
|
|
39
|
-
"@codemirror/
|
|
40
|
-
"@codemirror/
|
|
41
|
-
"@codemirror/
|
|
43
|
+
"@codemirror/autocomplete": "^6.19.1",
|
|
44
|
+
"@codemirror/commands": "^6.8.1",
|
|
45
|
+
"@codemirror/lang-markdown": "^6.3.4",
|
|
46
|
+
"@codemirror/language": "^6.11.3",
|
|
42
47
|
"@codemirror/language-data": "^6.5.1",
|
|
43
|
-
"@codemirror/
|
|
44
|
-
"@codemirror/
|
|
45
|
-
"@
|
|
48
|
+
"@codemirror/lint": "^6.9.1",
|
|
49
|
+
"@codemirror/search": "^6.5.11",
|
|
50
|
+
"@codemirror/state": "^6.5.2",
|
|
51
|
+
"@codemirror/view": "^6.38.6",
|
|
52
|
+
"@eslint/js": "^9.33.0",
|
|
46
53
|
"@lezer-unofficial/printer": "^1.0.1",
|
|
47
54
|
"@lezer/highlight": "^1.2.1",
|
|
48
|
-
"@types/node": "^
|
|
49
|
-
"codemirror": "^6.0.
|
|
50
|
-
"eslint": "^9.
|
|
51
|
-
"jiti": "^2.
|
|
52
|
-
"typescript": "^5.
|
|
53
|
-
"typescript-eslint": "^8.
|
|
54
|
-
"vite": "^6.0.10",
|
|
55
|
-
"vite-plugin-dts": "^4.5.0",
|
|
56
|
-
"vite-plugin-externalize-deps": "^0.9.0"
|
|
55
|
+
"@types/node": "^24.3.0",
|
|
56
|
+
"codemirror": "^6.0.2",
|
|
57
|
+
"eslint": "^9.33.0",
|
|
58
|
+
"jiti": "^2.5.1",
|
|
59
|
+
"typescript": "^5.9.2",
|
|
60
|
+
"typescript-eslint": "^8.40.0"
|
|
57
61
|
}
|
|
58
62
|
}
|
package/dist/basicSetup.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@codemirror/state';
|
|
2
|
-
export declare const prosemarkMarkdownSyntaxExtensions: (import('@lezer/markdown').MarkdownConfig | {
|
|
3
|
-
defineNodes: never[];
|
|
4
|
-
props: import('@lezer/common').NodePropSource[];
|
|
5
|
-
})[];
|
|
6
|
-
export declare const defaultFoldableSyntaxExtensions: Extension[];
|
|
7
|
-
export declare const prosemarkBasicSetup: () => Extension;
|
|
8
|
-
export declare const prosemarkBaseThemeSetup: () => Extension;
|
|
9
|
-
export declare const prosemarkLightThemeSetup: () => Extension;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/clickLink.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const clickLinkExtension: import('@codemirror/state').Extension[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const blockQuoteExtension: import('@codemirror/state').Extension;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const bulletListExtension: import('@codemirror/state').Extension;
|
package/dist/fold/core.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { EditorState, StateField, Range, Facet, Extension } from '@codemirror/state';
|
|
2
|
-
import { DOMEventHandlers, Decoration, DecorationSet } from '@codemirror/view';
|
|
3
|
-
import { RangeLike } from '../utils';
|
|
4
|
-
import { SyntaxNodeRef } from '@lezer/common';
|
|
5
|
-
export declare const foldDecorationExtension: StateField<DecorationSet>;
|
|
6
|
-
export declare const foldExtension: StateField<DecorationSet>[];
|
|
7
|
-
export interface FoldableSyntaxSpec {
|
|
8
|
-
nodePath: string | string[] | ((nodePath: string) => boolean);
|
|
9
|
-
onFold?: (state: EditorState, node: SyntaxNodeRef) => Range<Decoration> | Range<Decoration>[] | undefined;
|
|
10
|
-
unfoldZone?: (state: EditorState, node: SyntaxNodeRef) => RangeLike;
|
|
11
|
-
eventHandlers?: DOMEventHandlers<void>;
|
|
12
|
-
}
|
|
13
|
-
export declare const foldableSyntaxFacet: Facet<FoldableSyntaxSpec, FoldableSyntaxSpec[]>;
|
|
14
|
-
export declare const selectAllDecorationsOnSelectExtension: (widgetClass: string) => Extension;
|
package/dist/fold/emoji.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const horizonalRuleExtension: import('@codemirror/state').Extension[];
|
package/dist/fold/image.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const imageExtension: import('@codemirror/state').Extension[];
|
package/dist/fold/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { foldDecorationExtension, foldableSyntaxFacet, selectAllDecorationsOnSelectExtension, } from './core';
|
|
2
|
-
export { bulletListExtension } from './bulletList';
|
|
3
|
-
export { emojiExtension, emojiMarkdownSyntaxExtension } from './emoji';
|
|
4
|
-
export { horizonalRuleExtension } from './horizontalRule';
|
|
5
|
-
export { imageExtension } from './image';
|
|
6
|
-
export { taskExtension } from './task';
|
|
7
|
-
export { blockQuoteExtension } from './blockQuote';
|
package/dist/fold/task.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const taskExtension: import('@codemirror/state').Extension[];
|
package/dist/hide/core.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Decoration } from '@codemirror/view';
|
|
2
|
-
import { EditorState, Facet, Range } from '@codemirror/state';
|
|
3
|
-
import { SyntaxNodeRef } from '@lezer/common';
|
|
4
|
-
import { RangeLike } from '../utils';
|
|
5
|
-
export declare const hideInlineDecoration: Decoration;
|
|
6
|
-
export declare const hideBlockDecoration: Decoration;
|
|
7
|
-
export interface HidableNodeSpec {
|
|
8
|
-
nodeName: string | string[] | ((nodeName: string) => boolean);
|
|
9
|
-
subNodeNameToHide?: string | string[];
|
|
10
|
-
onHide?: (state: EditorState, node: SyntaxNodeRef) => Range<Decoration> | Range<Decoration>[] | undefined;
|
|
11
|
-
block?: boolean;
|
|
12
|
-
unhideZone?: (state: EditorState, node: SyntaxNodeRef) => RangeLike;
|
|
13
|
-
}
|
|
14
|
-
export declare const hidableNodeFacet: Facet<HidableNodeSpec, HidableNodeSpec[]>;
|
package/dist/hide/index.d.ts
DELETED