@quartz-community/graph 0.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.
@@ -0,0 +1,42 @@
1
+ export { BuildCtx, CSSResource, ChangeEvent, JSResource, ProcessedContent, QuartzEmitterPlugin, QuartzEmitterPluginInstance, QuartzFilterPlugin, QuartzFilterPluginInstance, QuartzPluginData, QuartzTransformerPlugin, QuartzTransformerPluginInstance, StaticResources } from '@quartz-community/types';
2
+
3
+ interface ExampleTransformerOptions {
4
+ /** Token used to highlight text, defaults to ==highlight== */
5
+ highlightToken: string;
6
+ /** Add a CSS class to all headings in the rendered HTML. */
7
+ headingClass: string;
8
+ /** Enable remark-gfm for tables/task lists. */
9
+ enableGfm: boolean;
10
+ /** Enable adding slug IDs to headings. */
11
+ addHeadingSlugs: boolean;
12
+ }
13
+ interface ExampleFilterOptions {
14
+ /** Allow pages marked draft: true to publish. */
15
+ allowDrafts: boolean;
16
+ /** Exclude pages that contain any of these frontmatter tags. */
17
+ excludeTags: string[];
18
+ /** Exclude paths that start with any of these prefixes (relative to content root). */
19
+ excludePathPrefixes: string[];
20
+ }
21
+ interface ExampleEmitterOptions {
22
+ /** Filename to emit at the site root. */
23
+ manifestSlug: string;
24
+ /** Whether to include the frontmatter block in the manifest. */
25
+ includeFrontmatter: boolean;
26
+ /** Extra metadata to write at the top level of the manifest. */
27
+ metadata: Record<string, unknown>;
28
+ /** Optional hook to transform the emitted manifest JSON string. */
29
+ transformManifest?: (json: string) => string;
30
+ /** Add a custom class to the emitted manifest <script> tag if used in HTML. */
31
+ manifestScriptClass?: string;
32
+ }
33
+ interface ExampleComponentOptions {
34
+ /** Text to prefix before the title */
35
+ prefix?: string;
36
+ /** Text to suffix after the title */
37
+ suffix?: string;
38
+ /** CSS class name to apply */
39
+ className?: string;
40
+ }
41
+
42
+ export type { ExampleComponentOptions, ExampleEmitterOptions, ExampleFilterOptions, ExampleTransformerOptions };
package/dist/types.js ADDED
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=types.js.map
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"types.js"}
package/package.json ADDED
@@ -0,0 +1,149 @@
1
+ {
2
+ "name": "@quartz-community/graph",
3
+ "version": "0.1.0",
4
+ "description": "Interactive graph visualization component for Quartz - visualize your content as a network graph.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "Quartz Community",
8
+ "homepage": "https://quartz.jzhao.xyz",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/quartz-community/graph"
12
+ },
13
+ "keywords": [
14
+ "quartz",
15
+ "quartz-plugin",
16
+ "graph",
17
+ "visualization",
18
+ "network",
19
+ "d3",
20
+ "pixi"
21
+ ],
22
+ "files": [
23
+ "dist",
24
+ "README.md",
25
+ "LICENSE",
26
+ "CHANGELOG.md"
27
+ ],
28
+ "exports": {
29
+ ".": {
30
+ "types": "./dist/index.d.ts",
31
+ "import": "./dist/index.js"
32
+ },
33
+ "./types": {
34
+ "types": "./dist/types.d.ts",
35
+ "import": "./dist/types.js"
36
+ },
37
+ "./components": {
38
+ "types": "./dist/components/index.d.ts",
39
+ "import": "./dist/components/index.js"
40
+ },
41
+ "./package.json": "./package.json"
42
+ },
43
+ "main": "./dist/index.js",
44
+ "types": "./dist/index.d.ts",
45
+ "sideEffects": false,
46
+ "scripts": {
47
+ "build": "tsup",
48
+ "dev": "tsup --watch",
49
+ "lint": "eslint . --max-warnings=0",
50
+ "format": "prettier . --check",
51
+ "test": "vitest run",
52
+ "typecheck": "tsc --noEmit",
53
+ "check": "npm run typecheck && npm run lint && npm run format && npm run test",
54
+ "prepublishOnly": "npm run build"
55
+ },
56
+ "peerDependencies": {
57
+ "preact": "^10.0.0"
58
+ },
59
+ "peerDependenciesMeta": {
60
+ "preact": {
61
+ "optional": false
62
+ }
63
+ },
64
+ "dependencies": {
65
+ "@quartz-community/types": "^0.2.1",
66
+ "@quartz-community/utils": "^0.1.0"
67
+ },
68
+ "devDependencies": {
69
+ "@types/hast": "^3.0.4",
70
+ "@types/mdast": "^4.0.4",
71
+ "@types/node": "^24.10.0",
72
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
73
+ "@typescript-eslint/parser": "^7.18.0",
74
+ "eslint": "^8.57.0",
75
+ "eslint-config-prettier": "^9.1.0",
76
+ "github-slugger": "^2.0.0",
77
+ "hast-util-to-jsx-runtime": "^2.3.6",
78
+ "preact": "^10.28.2",
79
+ "prettier": "^3.6.2",
80
+ "sass": "^1.97.3",
81
+ "tsup": "^8.5.0",
82
+ "typescript": "^5.9.3",
83
+ "vitest": "^2.1.9"
84
+ },
85
+ "quartz": {
86
+ "name": "graph",
87
+ "displayName": "Graph",
88
+ "category": "component",
89
+ "version": "1.0.0",
90
+ "quartzVersion": ">=5.0.0",
91
+ "dependencies": [],
92
+ "defaultOrder": 50,
93
+ "defaultEnabled": true,
94
+ "defaultOptions": {
95
+ "localGraph": {
96
+ "drag": true,
97
+ "zoom": true,
98
+ "depth": 1,
99
+ "scale": 1.1,
100
+ "repelForce": 0.5,
101
+ "centerForce": 0.3,
102
+ "linkDistance": 30,
103
+ "fontSize": 0.6,
104
+ "opacityScale": 1,
105
+ "showTags": true,
106
+ "removeTags": [],
107
+ "focusOnHover": false,
108
+ "enableRadial": false
109
+ },
110
+ "globalGraph": {
111
+ "drag": true,
112
+ "zoom": true,
113
+ "depth": -1,
114
+ "scale": 0.9,
115
+ "repelForce": 0.5,
116
+ "centerForce": 0.2,
117
+ "linkDistance": 30,
118
+ "fontSize": 0.6,
119
+ "opacityScale": 1,
120
+ "showTags": true,
121
+ "removeTags": [],
122
+ "focusOnHover": true,
123
+ "enableRadial": true
124
+ }
125
+ },
126
+ "components": {
127
+ "Graph": {
128
+ "displayName": "Graph",
129
+ "defaultPosition": "right",
130
+ "defaultPriority": 10
131
+ }
132
+ },
133
+ "optionSchema": {
134
+ "localGraph": {
135
+ "type": "object"
136
+ },
137
+ "globalGraph": {
138
+ "type": "object"
139
+ }
140
+ }
141
+ },
142
+ "engines": {
143
+ "node": ">=22",
144
+ "npm": ">=10.9.2"
145
+ },
146
+ "publishConfig": {
147
+ "access": "public"
148
+ }
149
+ }