diff --git a/package-lock.json b/package-lock.json index d42b883..aee62c5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.1.0", "license": "MIT", "dependencies": { - "@quartz-community/types": "github:quartz-community/types", + "@quartz-community/types": "file:../types", "@quartz-community/utils": "github:quartz-community/utils" }, "devDependencies": { @@ -43,6 +43,26 @@ } } }, + "../types": { + "name": "@quartz-community/types", + "version": "0.2.0", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.4", + "@types/mdast": "^4.0.4", + "preact": "^10.26.5", + "unified": "^11.0.5", + "vfile": "^6.0.3" + }, + "devDependencies": { + "tsup": "^8.5.0", + "typescript": "^5.9.3" + }, + "engines": { + "node": ">=22", + "npm": ">=10.9.2" + } + }, "node_modules/@esbuild/aix-ppc64": { "version": "0.27.3", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.3.tgz", @@ -712,16 +732,8 @@ } }, "node_modules/@quartz-community/types": { - "version": "0.2.0", - "resolved": "git+ssh://git@github.com/quartz-community/types.git#9b8fbbdec4a629f3b62885b0a6d7c31a40875c1c", - "license": "MIT", - "dependencies": { - "preact": "^10.26.5" - }, - "engines": { - "node": ">=22", - "npm": ">=10.9.2" - } + "resolved": "../types", + "link": true }, "node_modules/@quartz-community/utils": { "version": "0.1.0", @@ -2958,6 +2970,7 @@ "version": "10.28.3", "resolved": "https://registry.npmjs.org/preact/-/preact-10.28.3.tgz", "integrity": "sha512-tCmoRkPQLpBeWzpmbhryairGnhW9tKV6c6gr/w+RhoRoKEJwsjzipwp//1oCpGPOchvSLaAPlpcJi9MwMmoPyA==", + "dev": true, "license": "MIT", "funding": { "type": "opencollective", diff --git a/package.json b/package.json index ca2afe4..4131b51 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ } }, "dependencies": { - "@quartz-community/types": "github:quartz-community/types", + "@quartz-community/types": "file:../types", "@quartz-community/utils": "github:quartz-community/utils" }, "devDependencies": { diff --git a/src/components/Graph.tsx b/src/components/Graph.tsx index f948022..37323e2 100644 --- a/src/components/Graph.tsx +++ b/src/components/Graph.tsx @@ -70,7 +70,7 @@ export default ((userOpts?: Partial) => { return (
-

{i18n(cfg.locale).components.graph.title}

+

{i18n(cfg.locale ?? "en-US").components.graph.title}