@markuplint/svelte-parser 3.2.0 → 3.3.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/lib/attr.d.ts +8 -3
- package/lib/directive-tokenizer.d.ts +7 -1
- package/lib/index.d.ts +1 -1
- package/lib/nodeize.d.ts +7 -1
- package/lib/traverse.d.ts +6 -1
- package/package.json +5 -5
package/lib/attr.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { SvelteDirective } from './svelte-parser';
|
|
2
2
|
import type { MLASTAttr } from '@markuplint/ml-ast';
|
|
3
|
-
export declare function attr(
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export declare function attr(
|
|
4
|
+
attr: SvelteDirective,
|
|
5
|
+
rawHTML: string,
|
|
6
|
+
):
|
|
7
|
+
| MLASTAttr
|
|
8
|
+
| {
|
|
9
|
+
__spreadAttr: true;
|
|
10
|
+
};
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
import type { MLASTHTMLAttr } from '@markuplint/ml-ast';
|
|
2
|
-
export default function directiveTokenizer(
|
|
2
|
+
export default function directiveTokenizer(
|
|
3
|
+
raw: string,
|
|
4
|
+
rawValue: string,
|
|
5
|
+
line: number,
|
|
6
|
+
col: number,
|
|
7
|
+
startOffset: number,
|
|
8
|
+
): MLASTHTMLAttr;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { parse } from './parse';
|
|
2
|
-
export declare const endTag =
|
|
2
|
+
export declare const endTag = 'xml';
|
package/lib/nodeize.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import type { SvelteNode } from './svelte-parser';
|
|
2
2
|
import type { MLASTNode, MLASTParentNode, ParserOptions } from '@markuplint/ml-ast';
|
|
3
|
-
export declare function nodeize(
|
|
3
|
+
export declare function nodeize(
|
|
4
|
+
originNode: SvelteNode,
|
|
5
|
+
prevNode: MLASTNode | null,
|
|
6
|
+
parentNode: MLASTParentNode | null,
|
|
7
|
+
rawHtml: string,
|
|
8
|
+
options?: ParserOptions,
|
|
9
|
+
): MLASTNode | MLASTNode[] | null;
|
package/lib/traverse.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import type { SvelteNode } from './svelte-parser';
|
|
2
2
|
import type { MLASTNode, MLASTParentNode, ParserOptions } from '@markuplint/ml-ast';
|
|
3
|
-
export declare function traverse(
|
|
3
|
+
export declare function traverse(
|
|
4
|
+
astNodes: SvelteNode[],
|
|
5
|
+
parentNode: MLASTParentNode | null | undefined,
|
|
6
|
+
rawHtml: string,
|
|
7
|
+
options?: ParserOptions,
|
|
8
|
+
): MLASTNode[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/svelte-parser",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "Svelte parser for markuplint",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"clean": "tsc --build --clean"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@markuplint/html-parser": "3.
|
|
20
|
-
"@markuplint/ml-ast": "3.0.0
|
|
21
|
-
"@markuplint/parser-utils": "3.
|
|
19
|
+
"@markuplint/html-parser": "3.3.1",
|
|
20
|
+
"@markuplint/ml-ast": "3.0.0",
|
|
21
|
+
"@markuplint/parser-utils": "3.3.0",
|
|
22
22
|
"svelte": "^3.55.0",
|
|
23
23
|
"tslib": "^2.4.1"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "f19e7de726cf01d53342bc5513c30da75d28da63"
|
|
26
26
|
}
|