@ox-content/napi 3.0.0-alpha.16 → 3.0.0-alpha.18
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/index.d.ts +11 -0
- package/index.js +3 -0
- package/package.json +8 -8
package/index.d.ts
CHANGED
|
@@ -45,6 +45,9 @@ export declare class IncrementalMarkdownRenderer {
|
|
|
45
45
|
*/
|
|
46
46
|
export declare function applyPendingHighlights(html: string, replacements: Array<string>): string
|
|
47
47
|
|
|
48
|
+
/** Rewrites rendered article HTML with reader-chrome controls. */
|
|
49
|
+
export declare function applySsgReaderChromeHtml(html: string, chrome?: JsReaderChrome | undefined | null): string
|
|
50
|
+
|
|
48
51
|
/**
|
|
49
52
|
* Builds a Markdown collection manifest directly from files on the Rust side.
|
|
50
53
|
*
|
|
@@ -231,6 +234,12 @@ export declare function getSsgOutputPath(inputPath: string, srcDir: string, outD
|
|
|
231
234
|
/** Resolves a page locale from an SSG URL path and configured locale codes. */
|
|
232
235
|
export declare function getSsgPageLocale(urlPath: string, defaultLocale: string, localeCodes: Array<string>): string | null
|
|
233
236
|
|
|
237
|
+
/** CSS used by the built-in reader chrome and custom hosts. */
|
|
238
|
+
export declare function getSsgReaderChromeCss(): string
|
|
239
|
+
|
|
240
|
+
/** Auto-initializing browser script used by the built-in reader chrome. */
|
|
241
|
+
export declare function getSsgReaderChromeScript(): string
|
|
242
|
+
|
|
234
243
|
/** Converts a markdown file path to a relative SSG URL path. */
|
|
235
244
|
export declare function getSsgUrlPath(inputPath: string, srcDir: string): string
|
|
236
245
|
|
|
@@ -2551,6 +2560,8 @@ export interface JsThemeColors {
|
|
|
2551
2560
|
export interface JsThemeConfig {
|
|
2552
2561
|
/** Progressive cross-document transitions for same-origin MPA navigation. */
|
|
2553
2562
|
viewTransitions?: boolean
|
|
2563
|
+
/** Circular reveal for a same-document theme change. `"circle"` opts in. */
|
|
2564
|
+
toggleTransition?: string
|
|
2554
2565
|
/** Right-hand "On this page" outline. Omitted and `false` hide it. */
|
|
2555
2566
|
aside?: boolean
|
|
2556
2567
|
/** Breadcrumb trail from the site root through sidebar ancestors. */
|
package/index.js
CHANGED
|
@@ -215,6 +215,9 @@ module.exports.collectSearchMarkdownFiles = binding.collectSearchMarkdownFiles;
|
|
|
215
215
|
module.exports.normalizeVitePressFrontmatter = binding.normalizeVitePressFrontmatter;
|
|
216
216
|
module.exports.generateSsgHtml = binding.generateSsgHtml;
|
|
217
217
|
module.exports.renderHead = binding.renderHead;
|
|
218
|
+
module.exports.applySsgReaderChromeHtml = binding.applySsgReaderChromeHtml;
|
|
219
|
+
module.exports.getSsgReaderChromeCss = binding.getSsgReaderChromeCss;
|
|
220
|
+
module.exports.getSsgReaderChromeScript = binding.getSsgReaderChromeScript;
|
|
218
221
|
module.exports.generateSsgBareHtml = binding.generateSsgBareHtml;
|
|
219
222
|
module.exports.highlightCodeBlock = binding.highlightCodeBlock;
|
|
220
223
|
module.exports.applyPendingHighlights = binding.applyPendingHighlights;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ox-content/napi",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.18",
|
|
4
4
|
"description": "Node.js bindings for Ox Content - High-performance Markdown parser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"optionalDependencies": {
|
|
50
|
-
"@ox-content/binding-darwin-x64": "3.0.0-alpha.
|
|
51
|
-
"@ox-content/binding-darwin-arm64": "3.0.0-alpha.
|
|
52
|
-
"@ox-content/binding-linux-x64-gnu": "3.0.0-alpha.
|
|
53
|
-
"@ox-content/binding-linux-x64-musl": "3.0.0-alpha.
|
|
54
|
-
"@ox-content/binding-linux-arm64-gnu": "3.0.0-alpha.
|
|
55
|
-
"@ox-content/binding-linux-arm64-musl": "3.0.0-alpha.
|
|
56
|
-
"@ox-content/binding-win32-x64-msvc": "3.0.0-alpha.
|
|
50
|
+
"@ox-content/binding-darwin-x64": "3.0.0-alpha.18",
|
|
51
|
+
"@ox-content/binding-darwin-arm64": "3.0.0-alpha.18",
|
|
52
|
+
"@ox-content/binding-linux-x64-gnu": "3.0.0-alpha.18",
|
|
53
|
+
"@ox-content/binding-linux-x64-musl": "3.0.0-alpha.18",
|
|
54
|
+
"@ox-content/binding-linux-arm64-gnu": "3.0.0-alpha.18",
|
|
55
|
+
"@ox-content/binding-linux-arm64-musl": "3.0.0-alpha.18",
|
|
56
|
+
"@ox-content/binding-win32-x64-msvc": "3.0.0-alpha.18"
|
|
57
57
|
}
|
|
58
58
|
}
|