@quartz-community/note-properties 1.0.0 → 1.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 +11 -0
- package/README.md +16 -15
- package/dist/components/index.js +14 -3
- package/dist/components/index.js.map +1 -1
- package/dist/index.js +4136 -3016
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +8 -2
- package/package.json +23 -8
package/dist/types.d.ts
CHANGED
|
@@ -9,9 +9,15 @@ interface NotePropertiesOptions {
|
|
|
9
9
|
excludedProperties: string[];
|
|
10
10
|
/** Hide the visual properties panel while still processing frontmatter and resolving links. */
|
|
11
11
|
hidePropertiesView: boolean;
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Frontmatter delimiters. Defaults to "---".
|
|
14
|
+
* @deprecated Quartz 5.1+ parses frontmatter in core: use `configuration.frontmatter.delimiters`.
|
|
15
|
+
*/
|
|
13
16
|
delimiters: string | [string, string];
|
|
14
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Frontmatter language. Defaults to "yaml".
|
|
19
|
+
* @deprecated Quartz 5.1+ parses frontmatter in core: use `configuration.frontmatter.language`.
|
|
20
|
+
*/
|
|
15
21
|
language: "yaml" | "toml";
|
|
16
22
|
}
|
|
17
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quartz-community/note-properties",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Frontmatter processing and note properties display for Quartz",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
"typecheck": "tsc --noEmit",
|
|
52
52
|
"check": "npm run typecheck && npm run lint && npm run format && npm run test",
|
|
53
53
|
"prepublishOnly": "npm run build",
|
|
54
|
-
"release": "npm run build && changeset publish"
|
|
54
|
+
"release": "npm run build && changeset publish",
|
|
55
|
+
"version-packages": "changeset version && npm install --package-lock-only --ignore-scripts --no-audit --no-fund"
|
|
55
56
|
},
|
|
56
57
|
"peerDependencies": {
|
|
57
58
|
"preact": "^10.0.0",
|
|
@@ -86,7 +87,7 @@
|
|
|
86
87
|
"prettier": "^3.6.2",
|
|
87
88
|
"remark-frontmatter": "^5.0.0",
|
|
88
89
|
"sass": "^1.97.3",
|
|
89
|
-
"toml": "^
|
|
90
|
+
"toml": "^5.0.1",
|
|
90
91
|
"tsup": "^8.5.0",
|
|
91
92
|
"typescript": "^5.9.3",
|
|
92
93
|
"unified": "^11.0.5",
|
|
@@ -117,9 +118,7 @@
|
|
|
117
118
|
"aliases"
|
|
118
119
|
],
|
|
119
120
|
"excludedProperties": [],
|
|
120
|
-
"hidePropertiesView": false
|
|
121
|
-
"delimiters": "---",
|
|
122
|
-
"language": "yaml"
|
|
121
|
+
"hidePropertiesView": false
|
|
123
122
|
},
|
|
124
123
|
"optionSchema": {
|
|
125
124
|
"includeAll": {
|
|
@@ -140,7 +139,7 @@
|
|
|
140
139
|
},
|
|
141
140
|
"delimiters": {
|
|
142
141
|
"type": "string",
|
|
143
|
-
"description": "Frontmatter delimiters"
|
|
142
|
+
"description": "Frontmatter delimiters (only used by Quartz versions without built-in frontmatter; otherwise set configuration.frontmatter)"
|
|
144
143
|
},
|
|
145
144
|
"language": {
|
|
146
145
|
"type": "enum",
|
|
@@ -148,7 +147,7 @@
|
|
|
148
147
|
"yaml",
|
|
149
148
|
"toml"
|
|
150
149
|
],
|
|
151
|
-
"description": "Frontmatter language"
|
|
150
|
+
"description": "Frontmatter language (only used by Quartz versions without built-in frontmatter; otherwise set configuration.frontmatter)"
|
|
152
151
|
}
|
|
153
152
|
},
|
|
154
153
|
"components": {
|
|
@@ -157,6 +156,22 @@
|
|
|
157
156
|
"defaultPosition": "beforeBody",
|
|
158
157
|
"defaultPriority": 15
|
|
159
158
|
}
|
|
159
|
+
},
|
|
160
|
+
"capabilities": {
|
|
161
|
+
"provides": {
|
|
162
|
+
"data": [
|
|
163
|
+
"noteProperties"
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
"requires": {
|
|
167
|
+
"data": [
|
|
168
|
+
{
|
|
169
|
+
"name": "frontmatter",
|
|
170
|
+
"reason": "the properties view has nothing to show"
|
|
171
|
+
},
|
|
172
|
+
"slug"
|
|
173
|
+
]
|
|
174
|
+
}
|
|
160
175
|
}
|
|
161
176
|
},
|
|
162
177
|
"publishConfig": {
|