@markuplint/svelte-parser 5.5.0 → 5.6.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.
Files changed (2) hide show
  1. package/lib/parser.js +4 -0
  2. package/package.json +6 -6
package/lib/parser.js CHANGED
@@ -32,6 +32,10 @@ export class SvelteParser extends Parser {
32
32
  // A static attribute is in the HTML string that the compiler hands to the browser's parser,
33
33
  // and a dynamic one is set by `set_attribute` under the name as written.
34
34
  attrNameRoute: 'dom-api-when-dynamic',
35
+ // `<slot>` is replaced with what the parent component passes to it, not the HTML `slot` element
36
+ // of a shadow tree
37
+ // @see https://svelte.dev/docs/svelte/legacy-slots
38
+ slotElement: 'framework',
35
39
  // No `ignoreTags`:
36
40
  // - The script tag needs to be passed with the lang attribute to the parser, so instead of
37
41
  // masking it, it is converted to PSBlock in visitText.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/svelte-parser",
3
- "version": "5.5.0",
3
+ "version": "5.6.0",
4
4
  "description": "Svelte parser for markuplint",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,11 +40,11 @@
40
40
  "clean": "tsc --build --clean tsconfig.build.json"
41
41
  },
42
42
  "dependencies": {
43
- "@markuplint/html-parser": "5.5.0",
44
- "@markuplint/ml-ast": "5.5.0",
45
- "@markuplint/parser-utils": "5.5.0",
46
- "@markuplint/shared": "5.5.0",
43
+ "@markuplint/html-parser": "5.6.0",
44
+ "@markuplint/ml-ast": "5.6.0",
45
+ "@markuplint/parser-utils": "5.6.0",
46
+ "@markuplint/shared": "5.6.0",
47
47
  "svelte": "^5.57.3"
48
48
  },
49
- "gitHead": "fedebcfd56eaec4642e68643b2f9e10750d810e1"
49
+ "gitHead": "eade3d7202682e567f3c1b6985478f1d4b5c5481"
50
50
  }