Commit graph

43 commits

Author SHA1 Message Date
saberzero1
42c5023e42
chore(deps): update @quartz-community/utils 2026-06-03 15:25:52 +02:00
saberzero1
278115200a
chore: regenerate package-lock.json 2026-05-24 17:32:44 +02:00
saberzero1
30d63b4f6c
chore: remove vestigial @jackyzha0/quartz peerDependency 2026-05-24 16:23:42 +02:00
saberzero1
3399cce29e
docs: add missing defaultOptions and optionSchema to package.json manifest 2026-05-22 20:06:19 +02:00
saberzero1
1e21c246e6
build: bundle dependencies and ship pre-built dist 2026-04-27 21:37:31 +02:00
saberzero1
7bbc9abac0
build: bundle dependencies and ship pre-built dist 2026-04-27 21:37:31 +02:00
saberzero1
8e4cac0a43
deps: update @quartz-community/utils 2026-04-22 18:16:17 +02:00
saberzero1
0ec5839a53
deps: update @quartz-community/utils 2026-04-17 02:36:29 +02:00
saberzero1
5e1168def4
deps: update @quartz-community/utils 2026-04-16 22:08:09 +02:00
saberzero1
d79ee3c4a0
fix: only suppress comments on explicit false / "false" override
Previously the frontmatter check suppressed comments on any falsy
value (0, "", null, false, "false"), which is wider than the
documented API (docs/features/comments.md only shows `comments: false`).

The refactor also removes the `as Record<string, unknown>` cast
dance that predated the plugin importing proper QuartzComponentProps.
fileData.frontmatter and cfg.baseUrl are now typed directly.

Regression tests cover:
- frontmatter.comments=false / "false" -> suppressed (documented)
- frontmatter.comments=true / "true" / undefined -> rendered
- frontmatter.comments=0 / "" / null -> rendered (behavior change)
- data attribute wiring and defaults
- cfg.baseUrl fallback chain

BEHAVIOR CHANGE: sites that relied on the prior permissive disable
logic (e.g. setting `comments: 0` to hide comments) will now see
comments rendered. Update to `comments: false` to restore the intent.
2026-04-16 15:43:08 +02:00
saberzero1
c044e071a2
refactor: import QuartzComponent and QuartzComponentProps from upstream
The local QuartzComponent/QuartzComponentProps declarations were
fully-typed-as-unknown duplicates that predated or did not use the
@quartz-community/types import. Switching to the upstream types gives
downstream consumers accurate fileData/cfg/allFiles typing in their
editor.

Kept a local RequiredOptsConstructor alias because this plugin
genuinely requires opts (repo/category/id); upstream
QuartzComponentConstructor takes 'opts?: Options' which would
accept undefined and break the runtime.
2026-04-16 15:27:46 +02:00
saberzero1
aab1f76960
deps: update @quartz-community/types and @quartz-community/utils 2026-04-16 13:24:05 +02:00
saberzero1
f7c1ced835
fix: bundle @quartz-community/utils to avoid runtime subpath resolution failures 2026-04-04 11:36:16 +02:00
saberzero1
4140b24b48
deps: add @quartz-community/utils dependency 2026-04-03 19:33:28 +02:00
saberzero1
611f3dc207
refactor: use shared classNames from @quartz-community/utils 2026-04-03 19:22:57 +02:00
saberzero1
da25c7186d
deps: update @quartz-community/types and @quartz-community/utils 2026-04-03 16:16:50 +02:00
saberzero1
587582a6f2
fix: move tsconfig from dts object to top-level option
The DtsConfig type in tsup does not have a tsconfig property.
Use top-level tsconfig option instead of dts: { tsconfig: ... }.
2026-03-22 13:25:12 +01:00
saberzero1
0f882bd9f8
fix: use separate tsconfig for DTS build to avoid vitest dependency 2026-03-22 13:12:01 +01:00
saberzero1
d5ab417f03
chore: set tsup platform to node
Plugins run server-side during the Quartz build step, not in the
browser. Setting platform: 'node' tells esbuild to treat Node builtins
as available externals and avoids CJS-in-ESM require() failures for
any bundled dependencies that use Node APIs.
2026-03-17 20:41:14 +01:00
saberzero1
ac3651d16c
ci: add dist externals verification step 2026-03-17 19:41:47 +01:00
saberzero1
54908846a9
chore: centralize type declarations and standardize tooling config
- Update types/globals.d.ts with centralized type declarations
- Add .prettierignore, update .eslintrc.json with triple-slash-reference override
- Remove duplicate scripts.d.ts/styles.d.ts if present
2026-03-16 18:55:26 +01:00
saberzero1
c2e98f80a3
fix: update types/utils lockfile to commits with dist/ 2026-03-14 22:42:34 +01:00
saberzero1
3de7bfb885
chore: commit dist/ and remove prepare script
Pre-built output is now committed to the repository so that
Quartz can skip the build step during plugin installation.
The prepare script is removed to prevent redundant builds
when installing from npm/git.
2026-03-14 21:57:30 +01:00
saberzero1
f52fe5335f
chore: move build tools to devDependencies, shared deps to peerDependencies
tsup and typescript are only needed at build time — move to devDependencies
so they can be pruned after build. Dependencies already available from the
host Quartz installation are moved to peerDependencies to avoid duplication.
2026-03-14 21:26:41 +01:00
saberzero1
8a76dfafc0
feat: add render event listener for in-place DOM re-initialization 2026-03-12 19:45:34 +01:00
saberzero1
91a86a1867
deps: update @quartz-community/types and @quartz-community/utils 2026-03-09 03:03:56 +01:00
saberzero1
f814bfc356
deps: update @quartz-community/types 2026-02-28 20:08:36 +01:00
saberzero1
55bca8df1a
docs: update README for v5 unified config system 2026-02-25 16:07:11 +01:00
saberzero1
49829cc1b3
fix: move tsup and typescript to dependencies for git install compatibility 2026-02-23 01:09:40 +01:00
saberzero1
bf03ced30c
feat: add optionSchema for TUI enum selection 2026-02-18 18:10:54 +01:00
saberzero1
a2bee0c8f2
chore: add quartz plugin manifest to package.json 2026-02-17 17:43:45 +01:00
saberzero1
ff4313309b
docs: add plugin README 2026-02-14 02:13:01 +01:00
saberzero1
8fd84cb425
fix: standardize inline script transpilation in tsup config
Use stdin-based esbuild.build with proper TS transpilation, minification,
and ESM output format matching v5's proven inline-script-loader pattern.
2026-02-14 01:11:33 +01:00
saberzero1
aaffdbdb5d
chore: update @quartz-community/types to v0.2.1 2026-02-13 22:57:19 +01:00
saberzero1
5e0e6eab92
Update @quartz-community/types with PageType plugin types 2026-02-13 16:35:27 +01:00
saberzero1
2aff5bd153
Update @quartz-community/types (tree as unknown) 2026-02-13 13:57:58 +01:00
saberzero1
cdbc164468
Update @quartz-community/types (remove index signatures) 2026-02-13 13:53:57 +01:00
saberzero1
cf2fc89ca6
Update @quartz-community/types for flat GlobalConfiguration 2026-02-13 13:50:35 +01:00
saberzero1
a3e07b9f96
fix: use github: specifier for @quartz-community/types dependency
Replace file:../types with github:quartz-community/types so the
package resolves correctly when installed via the Quartz plugin
manager.
2026-02-13 13:27:49 +01:00
saberzero1
c183be114b
Migrate types to use @quartz-community/types exports
Replace ambient quartz-compat.d.ts declarations with direct imports
from @quartz-community/types. Remove node_modules path from tsconfig
include array.
2026-02-13 13:18:43 +01:00
saberzero1
e3140c7cd3
Update @quartz-community/types to 0.2.0 (Preact ComponentType) 2026-02-09 23:56:12 +01:00
saberzero1
265c635da1
feat(plugins): comments as community plugin 2026-02-09 23:19:10 +01:00
Emile Bangma
06376a5c47
Initial commit 2026-02-09 23:01:53 +01:00