@readme/markdown 15.3.0 → 15.4.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/components/TailwindStyle/index.tsx +5 -2
- package/dist/components/TailwindStyle/index.d.ts +3 -1
- package/dist/main.js +10 -6
- package/dist/main.node.js +10 -6
- package/dist/main.node.js.map +1 -1
- package/dist/render-fixture.node.js +10 -6
- package/dist/render-fixture.node.js.map +1 -1
- package/dist/utils/tailwind-compiler.d.ts +13 -1
- package/package.json +1 -1
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import postcss from 'postcss';
|
|
2
|
-
export declare function tailwindCompiler(classes: string[], { prefix, darkModeDataAttribute }: {
|
|
2
|
+
export declare function tailwindCompiler(classes: string[], { prefix, darkModeDataAttribute, darkModeRootSelector, }: {
|
|
3
3
|
darkModeDataAttribute?: string | null;
|
|
4
|
+
/**
|
|
5
|
+
* Scopes the `dark:` variant to `darkModeRootSelector[darkModeDataAttribute=dark]`
|
|
6
|
+
* (self or descendant) instead of matching `[darkModeDataAttribute=dark]` on *any*
|
|
7
|
+
* ancestor. Matches `when-color-mode-dark($root)` in `styles/mixins/when-color-mode-dark.scss`
|
|
8
|
+
* — see that mixin's doc comment for the full rationale (two independent
|
|
9
|
+
* `data-color-mode` scopes on one page, e.g. readme's SuperHub admin shell vs. the
|
|
10
|
+
* hub content it's previewing) and why there's no default: this package ships one
|
|
11
|
+
* precompiled stylesheet, so whatever a caller passes is permanent for every
|
|
12
|
+
* installer, and readme (this package's only real consumer today) is expected to
|
|
13
|
+
* pass its hub color-mode root, `.rm-ReadMe`.
|
|
14
|
+
*/
|
|
15
|
+
darkModeRootSelector?: string | null;
|
|
4
16
|
prefix: string;
|
|
5
17
|
}): Promise<postcss.Result<postcss.Root>>;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@readme/markdown",
|
|
3
3
|
"description": "ReadMe's React-based Markdown parser",
|
|
4
4
|
"author": "Rafe Goldberg <rafe@readme.io>",
|
|
5
|
-
"version": "15.
|
|
5
|
+
"version": "15.4.0",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"browser": "dist/main.js",
|