Commit graph

22 commits

Author SHA1 Message Date
saberzero1
d342893db8
chore: updated dependencies 2026-04-07 21:34:50 +02:00
saberzero1
d413569b02
feat: add vfile DataMap augmentation, SimpleSlug, and ValidDateType 2026-04-03 15:34:43 +02:00
saberzero1
b1dc9ac610
Update dist outputs 2026-04-03 15:03:46 +02:00
saberzero1
861d363a3d
feat: add SortFn and ThemeKey type exports 2026-04-03 15:03:46 +02:00
saberzero1
653aece4c9
feat: add ContentIndex/ContentDetails types and globals.d.ts for centralized declarations
- 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
2026-03-16 18:50:58 +01:00
saberzero1
5786c30b02
chore: commit dist/ and remove prepare script
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.
2026-03-14 21:30:16 +01:00
saberzero1
22a709b2f3
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. unified and vfile are available from the
host Quartz installation — move to peerDependencies to avoid duplication
across 42+ plugins.
2026-03-14 21:26:01 +01:00
saberzero1
c7df97d0de
feat: add TreeTransform type and treeTransforms field to PageType plugin
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.
2026-03-07 22:12:08 +01:00
saberzero1
a945040888
feat: add PageFrame, PageFrameProps types and frame field to PageType 2026-02-28 19:59:50 +01:00
saberzero1
0d62f52da4
fix: move tsup and typescript to dependencies for git install compatibility
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.
2026-02-22 22:05:30 +01:00
saberzero1
c6d2b15bdf
feat: add fileExtensions field to QuartzPageTypePluginInstance 2026-02-14 15:06:11 +01:00
saberzero1
307f7393d9
fix: change additionalHead type from unknown[] to any[] for framework compatibility 2026-02-13 22:50:20 +01:00
saberzero1
543c772641
Add PageType plugin types for declarative page rendering 2026-02-13 16:33:25 +01:00
saberzero1
655ecd218e
Use unknown for tree prop to avoid hast duplicate identity conflicts 2026-02-13 13:56:04 +01:00
saberzero1
ea590d1980
Remove index signatures from GlobalConfiguration and QuartzConfig for structural compatibility 2026-02-13 13:53:05 +01:00
saberzero1
a29b55e81d
Fix type compatibility: use flat GlobalConfiguration, remove preact dependency
- 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
2026-02-13 13:49:21 +01:00
saberzero1
7c893d558a
Consolidate all types into single index.ts with proper exports
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.
2026-02-13 13:18:01 +01:00
saberzero1
9b8fbbdec4
Use Preact ComponentType for QuartzComponent type compatibility
- 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
2026-02-09 23:42:55 +01:00
saberzero1
39fac344ea
Remove plugin-specific types, keep only core plugin contract types 2026-02-08 11:03:40 +01:00
saberzero1
eb5bda03c5
Update types to match Quartz exactly, remove preact dependency 2026-02-08 10:52:28 +01:00
saberzero1
a342579c84
Initial implementation of @quartz-community/types package 2026-02-07 20:39:05 +01:00
Emile Bangma
11813ef85c
Initial commit 2026-02-07 20:31:27 +01:00