@qualcomm-ui/mdx-vite 2.1.3 → 2.2.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/dist/angular-demo-plugin/angular-demo-plugin.d.ts.map +1 -1
- package/dist/cli.js +157 -81
- package/dist/cli.js.map +4 -4
- package/dist/docs-plugin/docs-plugin.d.ts.map +1 -1
- package/dist/docs-plugin/mdx-plugins.d.ts.map +1 -1
- package/dist/docs-plugin/shiki/index.d.ts +2 -0
- package/dist/docs-plugin/shiki/index.d.ts.map +1 -1
- package/dist/docs-plugin/shiki/shiki-transformer-code-attribute.d.ts +7 -2
- package/dist/docs-plugin/shiki/shiki-transformer-code-attribute.d.ts.map +1 -1
- package/dist/docs-plugin/shiki/shiki-transformer-hidden.d.ts +6 -0
- package/dist/docs-plugin/shiki/shiki-transformer-hidden.d.ts.map +1 -0
- package/dist/docs-plugin/shiki/shiki-transformer-preview-block.d.ts +24 -4
- package/dist/docs-plugin/shiki/shiki-transformer-preview-block.d.ts.map +1 -1
- package/dist/docs-plugin/shiki/utils.d.ts.map +1 -1
- package/dist/index.js +3146 -3260
- package/dist/index.js.map +4 -4
- package/dist/open-web-ui-knowledge/generate-knowledge.d.ts.map +1 -1
- package/dist/react-demo-plugin/react-demo-plugin.d.ts.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-plugin.d.ts","sourceRoot":"","sources":["../../src/docs-plugin/docs-plugin.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"docs-plugin.d.ts","sourceRoot":"","sources":["../../src/docs-plugin/docs-plugin.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAC,YAAY,EAAgB,MAAM,MAAM,CAAA;AAmBrD,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAiKD,wBAAgB,aAAa,CAAC,IAAI,CAAC,EAAE,oBAAoB,GAAG,YAAY,CAgHvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mdx-plugins.d.ts","sourceRoot":"","sources":["../../src/docs-plugin/mdx-plugins.ts"],"names":[],"mappings":"AAGA,OAAoB,EAAC,KAAK,kBAAkB,EAAC,MAAM,iBAAiB,CAAA;AAWpE,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,OAAO,CAAA;AAC3C,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,SAAS,CAAA;AAW1C,OAAO,EAAe,KAAK,mBAAmB,EAAC,MAAM,YAAY,CAAA;AAKjE;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,aAA8C,CAAA;AAE7E,MAAM,WAAW,sBAAuB,SAAQ,mBAAmB;IACjE,kBAAkB,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAA;CACjD;AAED,wBAAgB,oBAAoB,IAAI,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"mdx-plugins.d.ts","sourceRoot":"","sources":["../../src/docs-plugin/mdx-plugins.ts"],"names":[],"mappings":"AAGA,OAAoB,EAAC,KAAK,kBAAkB,EAAC,MAAM,iBAAiB,CAAA;AAWpE,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,OAAO,CAAA;AAC3C,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,SAAS,CAAA;AAW1C,OAAO,EAAe,KAAK,mBAAmB,EAAC,MAAM,YAAY,CAAA;AAKjE;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,aAA8C,CAAA;AAE7E,MAAM,WAAW,sBAAuB,SAAQ,mBAAmB;IACjE,kBAAkB,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAA;CACjD;AAED,wBAAgB,oBAAoB,IAAI,gBAAgB,EAAE,CAWzD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,GAAE,sBAA2B,GACnC,aAAa,CAwBf;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,aAA8C,CAAA;AAE7E;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,IAAI,aAAa,CAShD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/docs-plugin/shiki/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAA;AAClD,cAAc,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/docs-plugin/shiki/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAA;AAClD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mCAAmC,CAAA;AACjD,cAAc,SAAS,CAAA"}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import type { ShikiTransformer } from "shiki";
|
|
2
2
|
export interface TransformerCodeAttributeOptions {
|
|
3
3
|
/**
|
|
4
|
-
* The name of the attribute to add to the pre element.
|
|
4
|
+
* The name of the attribute to add to the pre element. Supply as `null` to
|
|
5
|
+
* disable.
|
|
5
6
|
*
|
|
6
7
|
* @default 'data-code'
|
|
7
8
|
*/
|
|
8
|
-
attributeName?: string;
|
|
9
|
+
attributeName?: string | null;
|
|
9
10
|
/**
|
|
10
11
|
* Custom formatter for the source code.
|
|
11
12
|
*/
|
|
12
13
|
formatter?: (code: string) => string;
|
|
14
|
+
/**
|
|
15
|
+
* Callback fired when file processing is complete.
|
|
16
|
+
*/
|
|
17
|
+
onComplete?: (codeWithoutSnippets: string) => void;
|
|
13
18
|
}
|
|
14
19
|
/**
|
|
15
20
|
* Adds a `data-code` attribute to the `<pre>` element with the code contents,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shiki-transformer-code-attribute.d.ts","sourceRoot":"","sources":["../../../src/docs-plugin/shiki/shiki-transformer-code-attribute.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,OAAO,CAAA;AAI3C,MAAM,WAAW,+BAA+B;IAC9C
|
|
1
|
+
{"version":3,"file":"shiki-transformer-code-attribute.d.ts","sourceRoot":"","sources":["../../../src/docs-plugin/shiki/shiki-transformer-code-attribute.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,OAAO,CAAA;AAI3C,MAAM,WAAW,+BAA+B;IAC9C;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;IAEpC;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,mBAAmB,EAAE,MAAM,KAAK,IAAI,CAAA;CACnD;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,GAAE,+BAA8D,GACnE,gBAAgB,CAalB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shiki-transformer-hidden.d.ts","sourceRoot":"","sources":["../../../src/docs-plugin/shiki/shiki-transformer-hidden.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,OAAO,CAAA;AAE3C;;GAEG;AACH,wBAAgB,yBAAyB,IAAI,gBAAgB,CA8C5D"}
|
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
import type { ShikiTransformer } from "shiki";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export type PreviewDisplayMode = "only-preview" | "full-code";
|
|
3
|
+
export interface PreviewBlockTransformerOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The name of the attribute to add to the pre element. Supply as `null` to
|
|
6
|
+
* disable.
|
|
7
|
+
*
|
|
8
|
+
* @default 'data-preview'
|
|
9
|
+
*/
|
|
10
|
+
attributeName?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* @option 'full-code': keep the full code (with preview markers removed) as the rendered snippet.
|
|
13
|
+
* @option 'preview-only': render only the extracted preview block as the snippet
|
|
14
|
+
*
|
|
15
|
+
* In all cases the preview block is extracted and attached to `data-preview`.
|
|
16
|
+
*
|
|
17
|
+
* @default 'full-code'
|
|
18
|
+
*/
|
|
19
|
+
displayMode?: PreviewDisplayMode;
|
|
20
|
+
/**
|
|
21
|
+
* Callback fired when file processing is complete.
|
|
22
|
+
*/
|
|
23
|
+
onComplete?: (extractedPreview: string | null) => void;
|
|
4
24
|
}
|
|
5
|
-
export declare function
|
|
6
|
-
export
|
|
25
|
+
export declare function isPreviewLine(trimmedLine: string): boolean;
|
|
26
|
+
export declare function transformerPreviewBlock(options?: PreviewBlockTransformerOptions): ShikiTransformer;
|
|
7
27
|
//# sourceMappingURL=shiki-transformer-preview-block.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shiki-transformer-preview-block.d.ts","sourceRoot":"","sources":["../../../src/docs-plugin/shiki/shiki-transformer-preview-block.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"shiki-transformer-preview-block.d.ts","sourceRoot":"","sources":["../../../src/docs-plugin/shiki/shiki-transformer-preview-block.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,OAAO,CAAA;AAI3C,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG,WAAW,CAAA;AAE7D,MAAM,WAAW,8BAA8B;IAC7C;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE7B;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAA;IAEhC;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;CACvD;AAED,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAM1D;AAED,wBAAgB,uBAAuB,CACrC,OAAO,GAAE,8BAER,GACA,gBAAgB,CA+DlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/docs-plugin/shiki/utils.ts"],"names":[],"mappings":"AAGA,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/docs-plugin/shiki/utils.ts"],"names":[],"mappings":"AAGA,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAiD1D"}
|