@ng-doc/utils 17.6.16 → 18.0.0-beta.2

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/package.json CHANGED
@@ -1,19 +1,24 @@
1
1
  {
2
2
  "name": "@ng-doc/utils",
3
- "version": "17.6.16",
3
+ "version": "18.0.0-beta.2",
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "rehype": "12.0.1",
7
- "rehype-format": "4.0.1",
8
- "rehype-highlight": "6.0.0",
6
+ "rehype": "13.0.1",
7
+ "rehype-format": "5.0.0",
8
+ "rehype-parse": "9.0.0",
9
+ "rehype-stringify": "10.0.0",
9
10
  "github-slugger": "2.0.0",
10
- "hast-util-has-property": "2.0.1",
11
- "hast-util-heading-rank": "2.1.1",
12
- "hast-util-to-string": "2.0.0",
13
- "unist-util-visit": "4.1.2",
14
- "rehype-minify-whitespace": "5.0.1",
15
- "unist-util-filter": "4.0.1",
16
- "chalk": "5.2.0"
11
+ "hast-util-has-property": "3.0.0",
12
+ "hast-util-heading-rank": "3.0.0",
13
+ "hast-util-to-string": "3.0.0",
14
+ "unist-util-visit": "5.0.0",
15
+ "rehype-minify-whitespace": "6.0.0",
16
+ "unist-util-filter": "5.0.1",
17
+ "@shikijs/rehype": "1.10.3",
18
+ "chalk": "5.2.0",
19
+ "shiki": "1.10.1",
20
+ "unified": "11.0.5",
21
+ "stringify-entities": "4.0.4"
17
22
  },
18
23
  "publishConfig": {
19
24
  "access": "public"
@@ -1,6 +0,0 @@
1
- import { ElementContent, Text } from 'hast';
2
- /**
3
- *
4
- * @param element
5
- */
6
- export declare function isText(element?: ElementContent): element is Text;
@@ -1,5 +0,0 @@
1
- import { Text } from 'hast';
2
- /**
3
- * Creates a line break
4
- */
5
- export declare function lineBreak(): Text;
@@ -1,6 +0,0 @@
1
- import { Text } from 'hast';
2
- /**
3
- *
4
- * @param value
5
- */
6
- export declare function textElement(value: string): Text;
@@ -1,13 +0,0 @@
1
- import { AddKeyword, GetKeyword } from './plugins/keywords.plugin';
2
- export interface NgDocHtmlPostProcessorConfig {
3
- raiseError: (e: Error) => void;
4
- addUsedKeyword?: AddKeyword;
5
- addPotentialKeyword?: AddKeyword;
6
- getKeyword?: GetKeyword;
7
- }
8
- /**
9
- *
10
- * @param html
11
- * @param config
12
- */
13
- export declare function htmlPostProcessor(html: string, config: NgDocHtmlPostProcessorConfig): Promise<string>;
@@ -1,13 +0,0 @@
1
- import { NgDocEntityAnchor, NgDocHeading } from '@ng-doc/core';
2
- export interface NgDocHtmlProcessorConfig {
3
- headings?: NgDocHeading[];
4
- route?: string;
5
- raiseError: (e: Error) => void;
6
- addAnchor: (anchor: NgDocEntityAnchor) => void;
7
- }
8
- /**
9
- *
10
- * @param html
11
- * @param config
12
- */
13
- export declare function htmlProcessor(html: string, config: NgDocHtmlProcessorConfig): Promise<string>;
@@ -1,6 +0,0 @@
1
- /**
2
- *
3
- * @param options
4
- * @param route
5
- */
6
- export default function autolinkHeading(route?: string): any;
@@ -1,5 +0,0 @@
1
- import { Root } from 'hast';
2
- /**
3
- * Adds lines to code blocks
4
- */
5
- export default function codeBlockLinesPlugin(): (tree: Root) => void;
@@ -1,8 +0,0 @@
1
- /**
2
- * Add hljs class to `pre` elements that contain `code` elements
3
- *
4
- * We need this to allow customization of the code block style
5
- * @param tree
6
- * @param headings
7
- */
8
- export default function markCodeBlocksPlugin(): any;