@brillout/docpress 0.17.3 → 0.17.5

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.
@@ -156,8 +156,7 @@
156
156
  * https://github.com/brillout/docpress/blob/08b63e867c4c052479e19a6943ca5535b2762d02/src/css/code/block.css#L40-L56
157
157
  */
158
158
  @media not all and (hover: hover) and (pointer: fine) {
159
- .choice-group__selects,
160
- .copy-button {
159
+ .choice-group__selects {
161
160
  opacity: 1 !important;
162
161
  }
163
162
  .choice-select__option {
@@ -38,6 +38,9 @@ figure[data-rehype-pretty-code-figure] {
38
38
  * - https://stackoverflow.com/questions/23885255/how-to-remove-ignore-hover-css-style-on-touch-devices/64553121#64553121
39
39
  */
40
40
  @media not all and (hover: hover) and (pointer: fine) {
41
+ .copy-button {
42
+ opacity: 1 !important;
43
+ }
41
44
  @container container-viewport (max-width: 620px) {
42
45
  pre > code {
43
46
  font-size: 0.7em !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.17.3",
3
+ "version": "0.17.5",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@brillout/picocolors": "^1.0.10",
@@ -34,7 +34,10 @@
34
34
  "./renderer/onCreatePageContext": "./renderer/onCreatePageContext.ts",
35
35
  ".": "./index.ts",
36
36
  "./config": "./dist/+config.js",
37
- "./style": "./css/index.css",
37
+ "./style": {
38
+ "types": "./style.d.ts",
39
+ "default": "./css/index.css"
40
+ },
38
41
  "./types": {
39
42
  "types": "./types.d.ts"
40
43
  }
package/style.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ // Type declarations for the `@brillout/docpress/style` export, which maps to a CSS file
2
+ // and therefore has no types of its own. Without this, consumers get:
3
+ // TS2882: Cannot find module or type declarations for side-effect import of '@brillout/docpress/style'.
4
+ // (TS2882 is new in TypeScript 7.)
5
+ export {}
package/types.d.ts CHANGED
@@ -5,3 +5,10 @@ declare module '*.mdx' {
5
5
  export default value
6
6
  export const headings: { level: number; title: string; id: string }[]
7
7
  }
8
+
9
+ // DocPress ships its TypeScript sources (it's `noExternal`), so the user's TypeScript
10
+ // setup type checks DocPress's source code — including its `import '@docsearch/css'`.
11
+ // The `@docsearch/css` package only contains CSS files and ships no type declarations,
12
+ // which makes TypeScript 7 emit:
13
+ // TS2882: Cannot find module or type declarations for side-effect import of '@docsearch/css'.
14
+ declare module '@docsearch/css'