@quartz-community/note-properties 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.
- package/CHANGELOG.md +21 -0
- package/LICENSE +21 -0
- package/README.md +71 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.js +329 -0
- package/dist/components/index.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +10909 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +18 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/package.json +163 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { BuildCtx, CSSResource, ChangeEvent, FilePath, FullSlug, JSResource, PageGenerator, PageMatcher, ProcessedContent, QuartzEmitterPlugin, QuartzEmitterPluginInstance, QuartzFilterPlugin, QuartzFilterPluginInstance, QuartzPageTypePlugin, QuartzPageTypePluginInstance, QuartzPluginData, QuartzTransformerPlugin, QuartzTransformerPluginInstance, StaticResources, VirtualPage } from '@quartz-community/types';
|
|
2
|
+
|
|
3
|
+
interface NotePropertiesOptions {
|
|
4
|
+
/** Include all frontmatter properties in the display. When false, only `includedProperties` are shown. */
|
|
5
|
+
includeAll: boolean;
|
|
6
|
+
/** Properties to include when `includeAll` is false. Ignored when `includeAll` is true. */
|
|
7
|
+
includedProperties: string[];
|
|
8
|
+
/** Properties to exclude from display. Applied after inclusion logic. */
|
|
9
|
+
excludedProperties: string[];
|
|
10
|
+
/** Hide the visual properties panel while still processing frontmatter and resolving links. */
|
|
11
|
+
hidePropertiesView: boolean;
|
|
12
|
+
/** Frontmatter delimiters. Defaults to "---". */
|
|
13
|
+
delimiters: string | [string, string];
|
|
14
|
+
/** Frontmatter language. Defaults to "yaml". */
|
|
15
|
+
language: "yaml" | "toml";
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type { NotePropertiesOptions };
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"types.js"}
|
package/package.json
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@quartz-community/note-properties",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Frontmatter processing and note properties display for Quartz",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Quartz Community",
|
|
8
|
+
"homepage": "https://github.com/quartz-community/note-properties",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/quartz-community/note-properties"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"quartz",
|
|
15
|
+
"quartz-plugin",
|
|
16
|
+
"note-properties",
|
|
17
|
+
"frontmatter",
|
|
18
|
+
"transformer",
|
|
19
|
+
"component"
|
|
20
|
+
],
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"README.md",
|
|
24
|
+
"LICENSE",
|
|
25
|
+
"CHANGELOG.md"
|
|
26
|
+
],
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./types": {
|
|
33
|
+
"types": "./dist/types.d.ts",
|
|
34
|
+
"import": "./dist/types.js"
|
|
35
|
+
},
|
|
36
|
+
"./components": {
|
|
37
|
+
"types": "./dist/components/index.d.ts",
|
|
38
|
+
"import": "./dist/components/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./package.json": "./package.json"
|
|
41
|
+
},
|
|
42
|
+
"main": "./dist/index.js",
|
|
43
|
+
"types": "./dist/index.d.ts",
|
|
44
|
+
"sideEffects": false,
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsup",
|
|
47
|
+
"dev": "tsup --watch",
|
|
48
|
+
"lint": "eslint . --max-warnings=0",
|
|
49
|
+
"format": "prettier . --check",
|
|
50
|
+
"test": "vitest run",
|
|
51
|
+
"typecheck": "tsc --noEmit",
|
|
52
|
+
"check": "npm run typecheck && npm run lint && npm run format && npm run test",
|
|
53
|
+
"prepublishOnly": "npm run build"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"preact": "^10.0.0",
|
|
57
|
+
"vfile": "^6.0.3"
|
|
58
|
+
},
|
|
59
|
+
"peerDependenciesMeta": {
|
|
60
|
+
"preact": {
|
|
61
|
+
"optional": false
|
|
62
|
+
},
|
|
63
|
+
"vfile": {
|
|
64
|
+
"optional": true
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@quartz-community/types": "^0.2.1",
|
|
69
|
+
"@quartz-community/utils": "^0.1.0"
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@types/hast": "^3.0.4",
|
|
73
|
+
"@types/js-yaml": "^4.0.9",
|
|
74
|
+
"@types/mdast": "^4.0.4",
|
|
75
|
+
"@types/node": "^24.10.0",
|
|
76
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
77
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
78
|
+
"eslint": "^8.57.0",
|
|
79
|
+
"eslint-config-prettier": "^9.1.0",
|
|
80
|
+
"github-slugger": "^2.0.0",
|
|
81
|
+
"gray-matter": "^4.0.3",
|
|
82
|
+
"hast-util-to-jsx-runtime": "^2.3.6",
|
|
83
|
+
"js-yaml": "^4.1.0",
|
|
84
|
+
"preact": "^10.28.2",
|
|
85
|
+
"prettier": "^3.6.2",
|
|
86
|
+
"remark-frontmatter": "^5.0.0",
|
|
87
|
+
"sass": "^1.97.3",
|
|
88
|
+
"toml": "^3.0.0",
|
|
89
|
+
"tsup": "^8.5.0",
|
|
90
|
+
"typescript": "^5.9.3",
|
|
91
|
+
"unified": "^11.0.5",
|
|
92
|
+
"vitest": "^2.1.9"
|
|
93
|
+
},
|
|
94
|
+
"engines": {
|
|
95
|
+
"node": ">=22",
|
|
96
|
+
"npm": ">=10.9.2"
|
|
97
|
+
},
|
|
98
|
+
"quartz": {
|
|
99
|
+
"name": "note-properties",
|
|
100
|
+
"displayName": "Note Properties",
|
|
101
|
+
"category": [
|
|
102
|
+
"transformer",
|
|
103
|
+
"component"
|
|
104
|
+
],
|
|
105
|
+
"version": "1.0.0",
|
|
106
|
+
"quartzVersion": ">=5.0.0",
|
|
107
|
+
"dependencies": [],
|
|
108
|
+
"defaultOrder": 5,
|
|
109
|
+
"defaultEnabled": true,
|
|
110
|
+
"defaultOptions": {
|
|
111
|
+
"includeAll": false,
|
|
112
|
+
"includedProperties": [
|
|
113
|
+
"description",
|
|
114
|
+
"tags",
|
|
115
|
+
"aliases"
|
|
116
|
+
],
|
|
117
|
+
"excludedProperties": [],
|
|
118
|
+
"hidePropertiesView": false,
|
|
119
|
+
"delimiters": "---",
|
|
120
|
+
"language": "yaml"
|
|
121
|
+
},
|
|
122
|
+
"optionSchema": {
|
|
123
|
+
"includeAll": {
|
|
124
|
+
"type": "boolean",
|
|
125
|
+
"description": "Include all frontmatter properties in the display"
|
|
126
|
+
},
|
|
127
|
+
"includedProperties": {
|
|
128
|
+
"type": "array",
|
|
129
|
+
"description": "Properties to include when includeAll is false"
|
|
130
|
+
},
|
|
131
|
+
"excludedProperties": {
|
|
132
|
+
"type": "array",
|
|
133
|
+
"description": "Properties to exclude from display"
|
|
134
|
+
},
|
|
135
|
+
"hidePropertiesView": {
|
|
136
|
+
"type": "boolean",
|
|
137
|
+
"description": "Hide the visual properties panel while still processing frontmatter"
|
|
138
|
+
},
|
|
139
|
+
"delimiters": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"description": "Frontmatter delimiters"
|
|
142
|
+
},
|
|
143
|
+
"language": {
|
|
144
|
+
"type": "enum",
|
|
145
|
+
"values": [
|
|
146
|
+
"yaml",
|
|
147
|
+
"toml"
|
|
148
|
+
],
|
|
149
|
+
"description": "Frontmatter language"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"components": {
|
|
153
|
+
"NotePropertiesComponent": {
|
|
154
|
+
"displayName": "Note Properties",
|
|
155
|
+
"defaultPosition": "beforeBody",
|
|
156
|
+
"defaultPriority": 15
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"publishConfig": {
|
|
161
|
+
"access": "public"
|
|
162
|
+
}
|
|
163
|
+
}
|