@moku-labs/web 0.5.2 → 0.5.3
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/index.d.cts +10 -2
- package/dist/index.d.mts +10 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentChildren, VNode } from "preact";
|
|
2
2
|
import { EmitFn } from "@moku-labs/core";
|
|
3
|
+
import { BundledTheme, ThemeRegistrationAny } from "shiki";
|
|
3
4
|
import { Pluggable, Processor } from "unified";
|
|
4
5
|
|
|
5
6
|
//#region \0rolldown/runtime.js
|
|
@@ -1680,8 +1681,15 @@ type Config$1 = {
|
|
|
1680
1681
|
*/
|
|
1681
1682
|
trustedContent: boolean; /** Additional remark plugins, concatenated AFTER framework defaults. Defaults to []. */
|
|
1682
1683
|
extraRemarkPlugins?: readonly Pluggable[]; /** Additional rehype plugins, concatenated after custom transforms, before Shiki + sanitize. Defaults to []. */
|
|
1683
|
-
extraRehypePlugins?: readonly Pluggable[];
|
|
1684
|
-
|
|
1684
|
+
extraRehypePlugins?: readonly Pluggable[];
|
|
1685
|
+
/**
|
|
1686
|
+
* Shiki theme for syntax highlighting: a bundled theme NAME — typed as Shiki's
|
|
1687
|
+
* `BundledTheme` union so editors autocomplete the ~60 built-ins (default
|
|
1688
|
+
* "github-dark") — or a custom `ThemeRegistration` object. Passed straight through
|
|
1689
|
+
* to `@shikijs/rehype`'s `theme`. (Like Shiki's own theme type, an arbitrary string
|
|
1690
|
+
* still compiles via the object arm, so this is autocomplete, not typo-rejection.)
|
|
1691
|
+
*/
|
|
1692
|
+
shikiTheme?: BundledTheme | ThemeRegistrationAny; /** Author applied to articles whose frontmatter omits author. Defaults to undefined. */
|
|
1685
1693
|
defaultAuthor?: string;
|
|
1686
1694
|
};
|
|
1687
1695
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EmitFn } from "@moku-labs/core";
|
|
2
2
|
import { Pluggable, Processor } from "unified";
|
|
3
3
|
import { ComponentChildren, VNode } from "preact";
|
|
4
|
+
import { BundledTheme, ThemeRegistrationAny } from "shiki";
|
|
4
5
|
|
|
5
6
|
//#region src/plugins/log/types.d.ts
|
|
6
7
|
declare namespace types_d_exports$6 {
|
|
@@ -1680,8 +1681,15 @@ type Config$1 = {
|
|
|
1680
1681
|
*/
|
|
1681
1682
|
trustedContent: boolean; /** Additional remark plugins, concatenated AFTER framework defaults. Defaults to []. */
|
|
1682
1683
|
extraRemarkPlugins?: readonly Pluggable[]; /** Additional rehype plugins, concatenated after custom transforms, before Shiki + sanitize. Defaults to []. */
|
|
1683
|
-
extraRehypePlugins?: readonly Pluggable[];
|
|
1684
|
-
|
|
1684
|
+
extraRehypePlugins?: readonly Pluggable[];
|
|
1685
|
+
/**
|
|
1686
|
+
* Shiki theme for syntax highlighting: a bundled theme NAME — typed as Shiki's
|
|
1687
|
+
* `BundledTheme` union so editors autocomplete the ~60 built-ins (default
|
|
1688
|
+
* "github-dark") — or a custom `ThemeRegistration` object. Passed straight through
|
|
1689
|
+
* to `@shikijs/rehype`'s `theme`. (Like Shiki's own theme type, an arbitrary string
|
|
1690
|
+
* still compiles via the object arm, so this is autocomplete, not typo-rejection.)
|
|
1691
|
+
*/
|
|
1692
|
+
shikiTheme?: BundledTheme | ThemeRegistrationAny; /** Author applied to articles whose frontmatter omits author. Defaults to undefined. */
|
|
1685
1693
|
defaultAuthor?: string;
|
|
1686
1694
|
};
|
|
1687
1695
|
/**
|
package/package.json
CHANGED