@qualcomm-ui/mdx-vite 1.1.0 → 2.1.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/dist/cli.js +322 -230
- package/dist/cli.js.map +4 -4
- package/dist/docs-plugin/docs-plugin.d.ts.map +1 -1
- package/dist/docs-plugin/generate-page-map.d.ts +2 -0
- package/dist/docs-plugin/generate-page-map.d.ts.map +1 -0
- package/dist/docs-plugin/internal/search-indexer.d.ts +2 -2
- package/dist/docs-plugin/internal/search-indexer.d.ts.map +1 -1
- package/dist/docs-plugin/internal/services/markdown/markdown-file-reader.d.ts +1 -0
- package/dist/docs-plugin/internal/services/markdown/markdown-file-reader.d.ts.map +1 -1
- package/dist/docs-plugin/internal/services/markdown/markdown.types.d.ts +17 -1
- package/dist/docs-plugin/internal/services/markdown/markdown.types.d.ts.map +1 -1
- package/dist/docs-plugin/internal/services/nav-builder/nav-builder.d.ts.map +1 -1
- package/dist/docs-plugin/internal/services/nav-builder/page-map.d.ts.map +1 -1
- package/dist/docs-plugin/mdx-plugins.d.ts +2 -0
- package/dist/docs-plugin/mdx-plugins.d.ts.map +1 -1
- package/dist/docs-plugin/remark/remark-code-tabs.d.ts +16 -0
- package/dist/docs-plugin/remark/remark-code-tabs.d.ts.map +1 -1
- package/dist/docs-plugin/shiki/index.d.ts +3 -0
- package/dist/docs-plugin/shiki/index.d.ts.map +1 -0
- package/dist/docs-plugin/shiki/shiki-transformer-code-attribute.d.ts +20 -0
- package/dist/docs-plugin/shiki/shiki-transformer-code-attribute.d.ts.map +1 -0
- package/dist/docs-plugin/shiki/shiki-transformer-preview-block.d.ts +7 -0
- package/dist/docs-plugin/shiki/shiki-transformer-preview-block.d.ts.map +1 -0
- package/dist/docs-plugin/shiki/utils.d.ts +2 -0
- package/dist/docs-plugin/shiki/utils.d.ts.map +1 -0
- package/dist/index.js +204 -671
- 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/demo-plugin-utils.d.ts +0 -21
- package/dist/react-demo-plugin/demo-plugin-utils.d.ts.map +1 -1
- package/dist/react-demo-plugin/react-demo-plugin.d.ts +5 -1
- package/dist/react-demo-plugin/react-demo-plugin.d.ts.map +1 -1
- package/dist/react-demo-plugin/virtual.d.ts +0 -12
- package/dist/tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-knowledge.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/generate-knowledge.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"generate-knowledge.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/generate-knowledge.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAA;AAwtBjD,wBAAsB,QAAQ,CAAC,EAC7B,OAAO,EACP,KAAK,EACL,WAAW,EACX,YAAY,EACZ,OAAO,EACP,cAAc,EACd,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,UAAU,EACV,eAAe,EACf,QAAQ,EACR,OAAO,GACR,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2DtC;AAED,wBAAgB,2BAA2B,SA8B1C"}
|
|
@@ -26,28 +26,7 @@ export declare function extractFileImports(filePath: string): Promise<{
|
|
|
26
26
|
thirdPartyImports: ImportSpecifier[];
|
|
27
27
|
} | null>;
|
|
28
28
|
export declare function getScriptKind(fileName: string): ts.ScriptKind;
|
|
29
|
-
export declare function extractAllImports(files: string[]): Promise<{
|
|
30
|
-
importMap: Map<string, Set<{
|
|
31
|
-
imported: string;
|
|
32
|
-
local: string;
|
|
33
|
-
}>>;
|
|
34
|
-
relativeImports: RelativeImport[];
|
|
35
|
-
}>;
|
|
36
|
-
export declare function sanitizeSourceName(source: string): string;
|
|
37
|
-
export declare function sanitizeIdentifier(str: string): string;
|
|
38
|
-
export declare function createUniqueModuleName(source: string): string;
|
|
39
|
-
export declare function addReactImports(imports: string[], scopeEntries: string[]): void;
|
|
40
|
-
export declare function addThirdPartyImports(importMap: Map<string, Set<{
|
|
41
|
-
imported: string;
|
|
42
|
-
local: string;
|
|
43
|
-
}>>, imports: string[], scopeEntries: string[]): void;
|
|
44
|
-
export declare function addThirdPartyImportsNamespaced(importMap: Map<string, Set<{
|
|
45
|
-
imported: string;
|
|
46
|
-
local: string;
|
|
47
|
-
}>>, imports: string[], scopeEntries: string[], demoName: string): void;
|
|
48
|
-
export declare function addRelativeImportsNamespaced(relativeImports: RelativeImport[], imports: string[], scopeEntries: string[], demoName: string): void;
|
|
49
29
|
export declare function extractPageId(filePath: string, routesDir: string): string;
|
|
50
30
|
export declare function isCssAsset(filePath: string): boolean;
|
|
51
31
|
export declare function isDemoFile(filePath: string): boolean;
|
|
52
|
-
export declare function createEmptyScopeModule(): string;
|
|
53
32
|
//# sourceMappingURL=demo-plugin-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"demo-plugin-utils.d.ts","sourceRoot":"","sources":["../../src/react-demo-plugin/demo-plugin-utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"demo-plugin-utils.d.ts","sourceRoot":"","sources":["../../src/react-demo-plugin/demo-plugin-utils.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAA;AAWhC,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,KAAK,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAA;QAChB,KAAK,EAAE,MAAM,CAAA;KACd,CAAC,CAAA;IACF,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,KAAK,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAA;QAChB,KAAK,EAAE,MAAM,CAAA;KACd,CAAC,CAAA;IACF,IAAI,EAAE,UAAU,CAAA;CACjB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAUvD;AAED,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;IAClE,eAAe,EAAE,cAAc,EAAE,CAAA;IACjC,iBAAiB,EAAE,eAAe,EAAE,CAAA;CACrC,GAAG,IAAI,CAAC,CAWR;AAqCD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,CAI7D;AAkRD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAQzE;AAED,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,WAE1C;AAED,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAUpD"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { Plugin } from "vite";
|
|
2
2
|
import type { QuiDemoPluginOptions } from "./demo-plugin-types";
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Generates virtual modules for React demo components. Virtual modules contain
|
|
5
|
+
* highlighted source code and metadata about each demo.
|
|
6
|
+
*/
|
|
7
|
+
export declare function reactDemoPlugin({ demoPattern, routesDir, theme, transformers, transformLine, }?: QuiDemoPluginOptions): Plugin;
|
|
4
8
|
//# sourceMappingURL=react-demo-plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-demo-plugin.d.ts","sourceRoot":"","sources":["../../src/react-demo-plugin/react-demo-plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react-demo-plugin.d.ts","sourceRoot":"","sources":["../../src/react-demo-plugin/react-demo-plugin.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,MAAM,CAAA;AAQhC,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAA;AAsB7D;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,WAAyC,EACzC,SAAwB,EACxB,KAGC,EACD,YAAiB,EACjB,aAAa,GACd,GAAE,oBAAyB,GAAG,MAAM,CA8fpC"}
|
|
@@ -3,15 +3,3 @@ declare module "virtual:qui-demo-scope/auto" {
|
|
|
3
3
|
|
|
4
4
|
export function getDemo(demoName: string): ReactDemoWithScope
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
declare module "virtual:qui-demo-scope/page:*" {
|
|
8
|
-
import type {ReactDemoWithScope} from "@qualcomm-ui/mdx-common"
|
|
9
|
-
|
|
10
|
-
export function getDemo(name: string): ReactDemoWithScope | undefined
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare module "virtual:qui-demo-scope/config" {
|
|
14
|
-
export function getReactDemoConfig(): {
|
|
15
|
-
lazyLoadDevModules: boolean
|
|
16
|
-
}
|
|
17
|
-
}
|