Skip to content

Commit bcca32d

Browse files
committed
merge upstream changes
2 parents 09e7879 + ff9e60a commit bcca32d

File tree

7 files changed

+223
-261
lines changed

7 files changed

+223
-261
lines changed

package-lock.json

Lines changed: 194 additions & 232 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,35 +35,35 @@
3535
"quartz": "./quartz/bootstrap-cli.mjs"
3636
},
3737
"dependencies": {
38-
"@clack/prompts": "^0.8.1",
38+
"@clack/prompts": "^0.8.2",
3939
"@floating-ui/dom": "^1.6.12",
40-
"@myriaddreamin/rehype-typst": "^0.5.0-rc7",
40+
"@myriaddreamin/rehype-typst": "^0.5.0-rc9",
4141
"@napi-rs/simple-git": "0.1.19",
4242
"@tweenjs/tween.js": "^25.0.0",
4343
"async-mutex": "^0.5.0",
4444
"chalk": "^5.3.0",
45-
"chokidar": "^4.0.1",
45+
"chokidar": "^4.0.2",
4646
"cli-spinner": "^0.2.10",
4747
"d3": "^7.9.0",
4848
"esbuild-sass-plugin": "^3.3.1",
4949
"flexsearch": "0.7.43",
5050
"github-slugger": "^2.0.0",
5151
"globby": "^14.0.2",
5252
"gray-matter": "^4.0.3",
53-
"hast-util-to-html": "^9.0.3",
53+
"hast-util-to-html": "^9.0.4",
5454
"hast-util-to-jsx-runtime": "^2.3.2",
5555
"hast-util-to-string": "^3.0.1",
5656
"is-absolute-url": "^4.0.1",
5757
"js-yaml": "^4.1.0",
58-
"lightningcss": "^1.28.1",
58+
"lightningcss": "^1.28.2",
5959
"mdast-util-find-and-replace": "^3.0.1",
6060
"mdast-util-to-hast": "^13.2.0",
6161
"mdast-util-to-string": "^4.0.0",
62-
"mermaid": "^11.4.0",
62+
"mermaid": "^11.4.1",
6363
"micromorph": "^0.4.5",
64-
"pixi.js": "^8.5.2",
65-
"preact": "^10.24.3",
66-
"preact-render-to-string": "^6.5.11",
64+
"pixi.js": "^8.6.5",
65+
"preact": "^10.25.2",
66+
"preact-render-to-string": "^6.5.12",
6767
"pretty-bytes": "^6.1.1",
6868
"pretty-time": "^1.1.0",
6969
"reading-time": "^1.5.0",
@@ -84,10 +84,10 @@
8484
"remark-smartypants": "^3.0.2",
8585
"rfdc": "^1.4.1",
8686
"rimraf": "^6.0.1",
87-
"satori": "^0.11.3",
87+
"satori": "^0.12.0",
8888
"serve-handler": "^6.1.6",
8989
"sharp": "^0.33.5",
90-
"shiki": "^1.23.1",
90+
"shiki": "^1.24.2",
9191
"source-map-support": "^0.5.21",
9292
"to-vfile": "^8.0.0",
9393
"toml": "^3.0.0",
@@ -103,14 +103,14 @@
103103
"@types/d3": "^7.4.3",
104104
"@types/hast": "^3.0.4",
105105
"@types/js-yaml": "^4.0.9",
106-
"@types/node": "^22.9.0",
106+
"@types/node": "^22.10.2",
107107
"@types/pretty-time": "^1.1.5",
108108
"@types/source-map-support": "^0.5.10",
109109
"@types/ws": "^8.5.13",
110110
"@types/yargs": "^17.0.33",
111111
"esbuild": "^0.24.0",
112-
"prettier": "^3.3.3",
112+
"prettier": "^3.4.2",
113113
"tsx": "^4.19.2",
114-
"typescript": "^5.6.3"
114+
"typescript": "^5.7.2"
115115
}
116116
}

quartz/build.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ async function startServing(
139139

140140
const buildFromEntry = argv.fastRebuild ? partialRebuildFromEntrypoint : rebuildFromEntrypoint
141141
watcher
142-
.on("add", (fp) => buildFromEntry(fp, "add", clientRefresh, buildData))
143-
.on("change", (fp) => buildFromEntry(fp, "change", clientRefresh, buildData))
144-
.on("unlink", (fp) => buildFromEntry(fp, "delete", clientRefresh, buildData))
142+
.on("add", (fp) => buildFromEntry(fp as string, "add", clientRefresh, buildData))
143+
.on("change", (fp) => buildFromEntry(fp as string, "change", clientRefresh, buildData))
144+
.on("unlink", (fp) => buildFromEntry(fp as string, "delete", clientRefresh, buildData))
145145

146146
return async () => {
147147
await watcher.close()

quartz/components/pages/FolderContent.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default ((opts?: Partial<FolderContentOptions>) => {
7171
})
7272

7373
const cssClasses: string[] = fileData.frontmatter?.cssclasses ?? []
74-
const classes = ["popover-hint", ...cssClasses].join(" ")
74+
const classes = cssClasses.join(" ")
7575
const listProps = {
7676
...props,
7777
sort: options.sort,
@@ -84,8 +84,8 @@ export default ((opts?: Partial<FolderContentOptions>) => {
8484
: htmlToJsx(fileData.filePath!, tree)
8585

8686
return (
87-
<div class={classes}>
88-
<article>{content}</article>
87+
<div class="popover-hint">
88+
<article class={classes}>{content}</article>
8989
<div class="page-listing">
9090
{options.showFolderCount && (
9191
<p>

quartz/components/pages/TagContent.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default ((opts?: Partial<TagContentOptions>) => {
3838
? fileData.description
3939
: htmlToJsx(fileData.filePath!, tree)
4040
const cssClasses: string[] = fileData.frontmatter?.cssclasses ?? []
41-
const classes = ["popover-hint", ...cssClasses].join(" ")
41+
const classes = cssClasses.join(" ")
4242
if (tag === "/") {
4343
const tags = [
4444
...new Set(
@@ -50,8 +50,8 @@ export default ((opts?: Partial<TagContentOptions>) => {
5050
tagItemMap.set(tag, allPagesWithTag(tag))
5151
}
5252
return (
53-
<div class={classes}>
54-
<article>
53+
<div class="popover-hint">
54+
<article class={classes}>
5555
<p>{content}</p>
5656
</article>
5757
<p>{i18n(cfg.locale).pages.tagContent.totalTags({ count: tags.length })}</p>

quartz/components/styles/search.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
flex: 0 0 min(30%, 450px);
107107
}
108108

109-
@media all and not ($tablet) {
109+
@media all and not ($mobile) {
110110
&[data-preview] {
111111
& .result-card > p.preview {
112112
display: none;
@@ -132,7 +132,7 @@
132132
border-radius: 5px;
133133
}
134134

135-
@media all and ($tablet) {
135+
@media all and ($mobile) {
136136
& > #preview-container {
137137
display: none !important;
138138
}

quartz/plugins/transformers/ofm.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
156156
src = src.toString()
157157
}
158158

159-
src = src.replace(commentRegex, "")
159+
src = (src as string).replace(commentRegex, "")
160160
}
161161

162162
// pre-transform blockquotes
@@ -165,7 +165,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
165165
src = src.toString()
166166
}
167167

168-
src = src.replace(calloutLineRegex, (value) => {
168+
src = (src as string).replace(calloutLineRegex, (value) => {
169169
// force newline after title of callout
170170
return value + "\n> "
171171
})
@@ -178,7 +178,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
178178
}
179179

180180
// replace all wikilinks inside a table first
181-
src = src.replace(tableRegex, (value) => {
181+
src = (src as string).replace(tableRegex, (value) => {
182182
// escape all aliases and headers in wikilinks inside a table
183183
return value.replace(tableWikilinkRegex, (_value, raw) => {
184184
// const [raw]: (string | undefined)[] = capture
@@ -192,7 +192,7 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
192192
})
193193

194194
// replace all other wikilinks
195-
src = src.replace(wikilinkRegex, (value, ...capture) => {
195+
src = (src as string).replace(wikilinkRegex, (value, ...capture) => {
196196
const [rawFp, rawHeader, rawAlias]: (string | undefined)[] = capture
197197

198198
const [fp, anchor] = splitAnchor(`${rawFp ?? ""}${rawHeader ?? ""}`)

0 commit comments

Comments
 (0)