create-nowaki 0.17.3 → 0.18.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nowaki",
3
- "version": "0.17.3",
3
+ "version": "0.18.1",
4
4
  "description": "Scaffold a new Nowaki app",
5
5
  "license": "MIT",
6
6
  "author": "Tettu0530",
@@ -10,6 +10,16 @@ declare module "*.css" {
10
10
  export default css;
11
11
  }
12
12
 
13
+ // `?image` gives a responsive image set for <Image> (@nowaki-dev/runtime/image).
14
+ declare module "*?image" {
15
+ const image: import("@nowaki-dev/runtime/image").ImageSource;
16
+ export default image;
17
+ }
18
+ declare module "*&image" {
19
+ const image: import("@nowaki-dev/runtime/image").ImageSource;
20
+ export default image;
21
+ }
22
+
13
23
  // An asset import becomes its served URL (a string).
14
24
  declare module "*.svg" { const url: string; export default url; }
15
25
  declare module "*.png" { const url: string; export default url; }
@@ -29,6 +39,13 @@ declare module "*.mp3" { const url: string; export default url; }
29
39
  declare module "*.wav" { const url: string; export default url; }
30
40
  declare module "*.pdf" { const url: string; export default url; }
31
41
 
42
+ // MDX: the default export is the content as a component; `headings` lists its headings.
43
+ declare module "*.mdx" {
44
+ export const headings: { depth: number; text: string; id: string }[];
45
+ const MDXContent: (props?: Record<string, unknown>) => import("preact").JSX.Element;
46
+ export default MDXContent;
47
+ }
48
+
32
49
  // Plugin virtual modules (resolveId/load in nowaki.config). Any export is allowed.
33
50
  declare module "virtual:*";
34
51
 
@@ -9,11 +9,11 @@
9
9
  "prerender": "nowaki prerender"
10
10
  },
11
11
  "dependencies": {
12
- "@nowaki-dev/runtime": "^0.15.3",
13
- "preact": "^10.25.4",
12
+ "@nowaki-dev/runtime": "^0.16.1",
13
+ "preact": "^11.1.1",
14
14
  "preact-render-to-string": "^6.8.2"
15
15
  },
16
16
  "devDependencies": {
17
- "nowaki": "^0.16.3"
17
+ "nowaki": "^0.17.1"
18
18
  }
19
19
  }