@markuplint/ml-core 3.14.0 → 3.15.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 (39) hide show
  1. package/lib/index.d.ts +11 -1
  2. package/lib/ml-core.d.ts +1 -1
  3. package/lib/ml-dom/helper/create-node.d.ts +5 -1
  4. package/lib/ml-dom/helper/getIndent.d.ts +7 -7
  5. package/lib/ml-dom/helper/walkers.d.ts +14 -4
  6. package/lib/ml-dom/manipulations/child-node-methods.d.ts +18 -5
  7. package/lib/ml-dom/manipulations/get-children.d.ts +3 -1
  8. package/lib/ml-dom/node/attr.d.ts +93 -90
  9. package/lib/ml-dom/node/block.d.ts +35 -31
  10. package/lib/ml-dom/node/character-data.d.ts +59 -52
  11. package/lib/ml-dom/node/child-node.d.ts +9 -2
  12. package/lib/ml-dom/node/comment.d.ts +15 -12
  13. package/lib/ml-dom/node/document-fragment.d.ts +22 -19
  14. package/lib/ml-dom/node/document-type.d.ts +34 -31
  15. package/lib/ml-dom/node/document.d.ts +1601 -1584
  16. package/lib/ml-dom/node/dom-token-list.d.ts +26 -26
  17. package/lib/ml-dom/node/element.d.ts +1943 -1937
  18. package/lib/ml-dom/node/named-node-map.d.ts +44 -39
  19. package/lib/ml-dom/node/node-list.d.ts +9 -3
  20. package/lib/ml-dom/node/node-store.d.ts +8 -3
  21. package/lib/ml-dom/node/node.d.ts +491 -471
  22. package/lib/ml-dom/node/parent-node.d.ts +66 -57
  23. package/lib/ml-dom/node/rule-mapper.d.ts +7 -7
  24. package/lib/ml-dom/node/text.d.ts +49 -46
  25. package/lib/ml-dom/node/types.d.ts +80 -12
  26. package/lib/ml-dom/node/unexpected-call-error.d.ts +1 -2
  27. package/lib/ml-dom/token/token.d.ts +44 -44
  28. package/lib/ml-rule/create-rule.d.ts +3 -1
  29. package/lib/ml-rule/create-test-rule.d.ts +5 -3
  30. package/lib/ml-rule/ml-rule-context.d.ts +55 -47
  31. package/lib/ml-rule/ml-rule.d.ts +33 -23
  32. package/lib/ml-rule/types.d.ts +31 -13
  33. package/lib/plugin/plugin.d.ts +3 -1
  34. package/lib/plugin/types.d.ts +5 -5
  35. package/lib/ruleset/index.d.ts +4 -4
  36. package/lib/test/index.d.ts +19 -7
  37. package/lib/types.d.ts +8 -8
  38. package/lib/utils/get-location-from-chars.d.ts +9 -4
  39. package/package.json +11 -11
@@ -1,33 +1,33 @@
1
1
  import type { MLAttr } from './attr';
2
2
  import type { RuleInfo } from '@markuplint/ml-config';
3
3
  type Scope = {
4
- raw: string;
5
- startOffset: number;
6
- startLine: number;
7
- startCol: number;
8
- rule: RuleInfo<any, any>;
4
+ raw: string;
5
+ startOffset: number;
6
+ startLine: number;
7
+ startCol: number;
8
+ rule: RuleInfo<any, any>;
9
9
  };
10
10
  export declare class MLDomTokenList extends Array<string> implements DOMTokenList {
11
- #private;
12
- constructor(tokens: string, ownerAttrs: MLAttr<any, any>[]);
13
- get value(): string;
14
- add(...tokens: readonly string[]): void;
15
- /**
16
- * @implements `@markuplint/ml-core` API: `MLDomTokenList`
17
- */
18
- allTokens(): Scope[];
19
- contains(token: string): boolean;
20
- forEach(callbackfn: (value: string, index: number, parent: any) => void, thisArg?: any): void;
21
- item(index: number): string | null;
22
- /**
23
- * @implements `@markuplint/ml-core` API: `MLDomTokenList`
24
- */
25
- pick(token: string): Scope | null;
26
- remove(...tokens: readonly string[]): void;
27
- replace(token: string, newToken: string): boolean;
28
- supports(token: string): boolean;
29
- toString(): string;
30
- toggle(token: string, force?: boolean): boolean;
31
- private _pick;
11
+ #private;
12
+ constructor(tokens: string, ownerAttrs: MLAttr<any, any>[]);
13
+ get value(): string;
14
+ add(...tokens: readonly string[]): void;
15
+ /**
16
+ * @implements `@markuplint/ml-core` API: `MLDomTokenList`
17
+ */
18
+ allTokens(): Scope[];
19
+ contains(token: string): boolean;
20
+ forEach(callbackfn: (value: string, index: number, parent: any) => void, thisArg?: any): void;
21
+ item(index: number): string | null;
22
+ /**
23
+ * @implements `@markuplint/ml-core` API: `MLDomTokenList`
24
+ */
25
+ pick(token: string): Scope | null;
26
+ remove(...tokens: readonly string[]): void;
27
+ replace(token: string, newToken: string): boolean;
28
+ supports(token: string): boolean;
29
+ toString(): string;
30
+ toggle(token: string, force?: boolean): boolean;
31
+ private _pick;
32
32
  }
33
33
  export {};