- Add ContentDetails and ContentIndex types to src/index.ts
- Create globals.d.ts with declare global block for Window, Document, CustomEventMap, and fetchData
- Export globals.d.ts via package.json files and exports map
- Enables community plugins to reference centralized type declarations
With build tools (tsup, typescript) moved to devDependencies, the prepare
script can no longer build when npm fetches this package from GitHub (npm
does not install devDependencies for git dependencies). Commit the pre-built
dist/ output so GitHub-based installs work without a build step.
tsup and typescript are only needed at build time — move to devDependencies
so they can be pruned after build. unified and vfile are available from the
host Quartz installation — move to peerDependencies to avoid duplication
across 42+ plugins.
Add TreeTransform type for render-time HAST tree mutations, enabling
pageType plugins to register tree walkers that run after transclusion
when allFiles data is available. Used by bases-page for inline
```base codeblock support.
When installed as a git dependency, npm skips devDependencies. Since
dist/ is gitignored and the prepare script needs tsup to build, these
must be regular dependencies so the prepare hook works on install.
- Change QuartzComponentProps.cfg from nested QuartzConfig to flat GlobalConfiguration
- Make QuartzComponent a structural callable type instead of preact ComponentType
- Remove preact import and dependency to avoid duplicate type identity conflicts
- Add GlobalConfiguration interface matching Quartz's resolved config shape
Remove separate emitter, filter, transformer, and types source files.
All types are now exported directly from src/index.ts, enabling
plugins to import via normal ES module imports instead of relying
on ambient declaration files.
- Add preact as dependency for ComponentType
- Change QuartzComponent from plain function to ComponentType<QuartzComponentProps>
- This ensures structural compatibility with Quartz's internal types
- Bump version to 0.2.0