@markuplint/svelte-parser 3.10.0 → 3.12.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/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(attr: SvelteDirective, rawHTML: string): MLASTAttr | {
4
- __spreadAttr: true;
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(raw: string, rawValue: string, line: number, col: number, startOffset: number): MLASTHTMLAttr;
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 = "xml";
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(originNode: SvelteNode, prevNode: MLASTNode | null, parentNode: MLASTParentNode | null, rawHtml: string, options?: ParserOptions): MLASTNode | MLASTNode[] | null;
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;
@@ -1,3 +1,13 @@
1
1
  import type { SvelteNode } from './svelte-parser';
2
2
  import type { MLASTNode, MLASTParentNode, MLASTPreprocessorSpecificBlock, ParserOptions } from '@markuplint/ml-ast';
3
- export declare function parseCtrlBlock(ctrlName: 'if' | 'each', originNode: SvelteNode, raw: string, rawHtml: string, startOffset: number, parentNode: MLASTParentNode | null, prevNode: MLASTNode | null, nextNode: MLASTNode | null, options?: ParserOptions): MLASTPreprocessorSpecificBlock[];
3
+ export declare function parseCtrlBlock(
4
+ ctrlName: 'if' | 'each',
5
+ originNode: SvelteNode,
6
+ raw: string,
7
+ rawHtml: string,
8
+ startOffset: number,
9
+ parentNode: MLASTParentNode | null,
10
+ prevNode: MLASTNode | null,
11
+ nextNode: MLASTNode | null,
12
+ options?: ParserOptions,
13
+ ): MLASTPreprocessorSpecificBlock[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="svelte" />
1
2
  import type { Directive, TemplateNode, Attribute, SpreadAttribute } from 'svelte/types/compiler/interfaces';
2
3
  export type SvelteNode = TemplateNode;
3
4
  export default function svelteParse(template: string): SvelteNode[];
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(astNodes: readonly SvelteNode[], parentNode: MLASTParentNode | null | undefined, rawHtml: string, options?: ParserOptions): MLASTNode[];
3
+ export declare function traverse(
4
+ astNodes: readonly 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.10.0",
3
+ "version": "3.12.0",
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.11.0",
19
+ "@markuplint/html-parser": "3.13.0",
20
20
  "@markuplint/ml-ast": "3.2.0",
21
- "@markuplint/parser-utils": "3.11.0",
22
- "svelte": "^4.2.0",
21
+ "@markuplint/parser-utils": "3.13.0",
22
+ "svelte": "^4.2.7",
23
23
  "tslib": "^2.6.2"
24
24
  },
25
- "gitHead": "ef31aef8f2fff319d0f692feead332ec5fc5c7cf"
25
+ "gitHead": "b37b749d7ac0f9e6cbd022ee7031bc020c6677d3"
26
26
  }