@quartz-community/folder-page 0.1.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.
@@ -0,0 +1,12 @@
1
+ import { QuartzPageTypePlugin, SortFn } from '@quartz-community/types';
2
+
3
+ interface FolderPageOptions {
4
+ showFolderCount?: boolean;
5
+ showSubfolders?: boolean;
6
+ sort?: SortFn;
7
+ /** Show "Folder: " prefix before folder name in generated titles. Default: false */
8
+ prefixFolders?: boolean;
9
+ }
10
+ declare const FolderPage: QuartzPageTypePlugin<FolderPageOptions>;
11
+
12
+ export { FolderPage as F, type FolderPageOptions as a };
@@ -0,0 +1,2 @@
1
+ export { BuildCtx, PageGenerator, PageMatcher, ProcessedContent, QuartzPageTypePlugin, QuartzPageTypePluginInstance, QuartzPluginData, SortFn, StaticResources, VirtualPage } from '@quartz-community/types';
2
+ export { a as FolderPageOptions } from './types-BatX-IqI.js';
package/dist/types.js ADDED
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=types.js.map
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"types.js"}
package/package.json ADDED
@@ -0,0 +1,118 @@
1
+ {
2
+ "name": "@quartz-community/folder-page",
3
+ "version": "0.1.0",
4
+ "description": "Folder page type plugin for Quartz.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "Quartz Community",
8
+ "homepage": "https://quartz.jzhao.xyz",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/quartz-community/folder-page"
12
+ },
13
+ "keywords": [
14
+ "quartz",
15
+ "quartz-plugin",
16
+ "folder-page",
17
+ "page-type"
18
+ ],
19
+ "files": [
20
+ "dist",
21
+ "README.md",
22
+ "LICENSE",
23
+ "CHANGELOG.md"
24
+ ],
25
+ "exports": {
26
+ ".": {
27
+ "types": "./dist/index.d.ts",
28
+ "import": "./dist/index.js"
29
+ },
30
+ "./types": {
31
+ "types": "./dist/types.d.ts",
32
+ "import": "./dist/types.js"
33
+ },
34
+ "./components": {
35
+ "types": "./dist/components/index.d.ts",
36
+ "import": "./dist/components/index.js"
37
+ },
38
+ "./package.json": "./package.json"
39
+ },
40
+ "main": "./dist/index.js",
41
+ "types": "./dist/index.d.ts",
42
+ "sideEffects": false,
43
+ "scripts": {
44
+ "build": "tsup",
45
+ "dev": "tsup --watch",
46
+ "lint": "eslint . --max-warnings=0",
47
+ "format": "prettier . --check",
48
+ "test": "vitest run",
49
+ "typecheck": "tsc --noEmit",
50
+ "check": "npm run typecheck && npm run lint && npm run format && npm run test",
51
+ "prepublishOnly": "npm run build"
52
+ },
53
+ "peerDependencies": {
54
+ "preact": "^10.0.0",
55
+ "vfile": "^6.0.3"
56
+ },
57
+ "peerDependenciesMeta": {
58
+ "preact": {
59
+ "optional": false
60
+ },
61
+ "vfile": {
62
+ "optional": true
63
+ }
64
+ },
65
+ "dependencies": {
66
+ "@quartz-community/types": "^0.2.1",
67
+ "@quartz-community/utils": "^0.1.0"
68
+ },
69
+ "devDependencies": {
70
+ "@types/hast": "^3.0.4",
71
+ "@types/mdast": "^4.0.4",
72
+ "@types/node": "^24.10.0",
73
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
74
+ "@typescript-eslint/parser": "^7.18.0",
75
+ "eslint": "^8.57.0",
76
+ "eslint-config-prettier": "^9.1.0",
77
+ "github-slugger": "^2.0.0",
78
+ "hast-util-to-jsx-runtime": "^2.3.6",
79
+ "preact": "^10.28.2",
80
+ "prettier": "^3.6.2",
81
+ "sass": "^1.97.3",
82
+ "tsup": "^8.5.0",
83
+ "typescript": "^5.9.3",
84
+ "vitest": "^2.1.9"
85
+ },
86
+ "engines": {
87
+ "node": ">=22",
88
+ "npm": ">=10.9.2"
89
+ },
90
+ "quartz": {
91
+ "name": "folder-page",
92
+ "displayName": "Folder Page",
93
+ "category": [
94
+ "pageType",
95
+ "component"
96
+ ],
97
+ "version": "1.0.0",
98
+ "quartzVersion": ">=5.0.0",
99
+ "dependencies": [],
100
+ "defaultOrder": 50,
101
+ "defaultEnabled": true,
102
+ "defaultOptions": {
103
+ "showFolderCount": true,
104
+ "showSubfolders": true
105
+ },
106
+ "optionSchema": {
107
+ "showFolderCount": {
108
+ "type": "boolean"
109
+ },
110
+ "showSubfolders": {
111
+ "type": "boolean"
112
+ }
113
+ }
114
+ },
115
+ "publishConfig": {
116
+ "access": "public"
117
+ }
118
+ }