@chartguard/schema-generator 0.0.0-stage → 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.
Files changed (56) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +17 -2
  3. package/dist/index.d.mts +6 -0
  4. package/dist/lib/chartjs-effects.d.mts +5 -0
  5. package/dist/lib/chartjs-plugins.d.mts +23 -0
  6. package/dist/lib/chartjs-scopes.d.mts +30 -0
  7. package/dist/lib/chartjs.d.mts +32 -0
  8. package/dist/lib/deprecation.d.mts +9 -0
  9. package/dist/lib/digest.d.mts +12 -0
  10. package/dist/lib/echarts-components.d.mts +2 -0
  11. package/dist/lib/echarts-deprecations.d.mts +5 -0
  12. package/dist/lib/echarts-handlers.d.mts +2 -0
  13. package/dist/lib/echarts-runtime.d.mts +2 -0
  14. package/dist/lib/echarts.d.mts +26 -0
  15. package/dist/lib/emitter.d.mts +173 -0
  16. package/dist/lib/generate.d.mts +14 -0
  17. package/dist/lib/highcharts-runtime.d.mts +2 -0
  18. package/dist/lib/highcharts.d.mts +26 -0
  19. package/dist/lib/local.d.mts +14 -0
  20. package/dist/lib/lock.d.mts +31 -0
  21. package/dist/lib/nodes.d.mts +4 -0
  22. package/dist/lib/paths.d.mts +22 -0
  23. package/dist/lib/program.d.mts +13 -0
  24. package/dist/lib/provenance.d.mts +46 -0
  25. package/dist/lib/runtime.d.mts +24 -0
  26. package/dist/lib/scriptable.d.mts +13 -0
  27. package/dist/lib/trace.d.mts +8 -0
  28. package/dist/lib/types.d.mts +52 -0
  29. package/index.mjs +20 -0
  30. package/lib/chartjs-effects.mjs +36 -0
  31. package/lib/chartjs-plugins.mjs +41 -0
  32. package/lib/chartjs-scopes.mjs +96 -0
  33. package/lib/chartjs.mjs +275 -0
  34. package/lib/deprecation.mjs +21 -0
  35. package/lib/digest.mjs +33 -0
  36. package/lib/echarts-components.mjs +176 -0
  37. package/lib/echarts-deprecations.mjs +206 -0
  38. package/lib/echarts-handlers.mjs +31 -0
  39. package/lib/echarts-runtime.mjs +311 -0
  40. package/lib/echarts.mjs +89 -0
  41. package/lib/emitter.mjs +333 -0
  42. package/lib/generate.mjs +35 -0
  43. package/lib/highcharts-runtime.mjs +198 -0
  44. package/lib/highcharts.mjs +105 -0
  45. package/lib/local.mjs +33 -0
  46. package/lib/lock.mjs +123 -0
  47. package/lib/nodes.mjs +17 -0
  48. package/lib/paths.mjs +50 -0
  49. package/lib/program.mjs +46 -0
  50. package/lib/provenance.mjs +100 -0
  51. package/lib/runtime.mjs +38 -0
  52. package/lib/scriptable.mjs +57 -0
  53. package/lib/trace.mjs +124 -0
  54. package/lib/types.mjs +74 -0
  55. package/package.json +47 -5
  56. package/upstream-sources.json +102 -0
package/package.json CHANGED
@@ -1,6 +1,48 @@
1
1
  {
2
- "name": "@chartguard/schema-generator",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "@chartguard/schema-generator",
3
+ "version": "0.1.0",
4
+ "description": "Generates ChartGuard schema artifacts from a chart library's own declarations and runtime, in your project",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/dovicsin/chartguard.git",
10
+ "directory": "packages/schema-generator"
11
+ },
12
+ "sideEffects": false,
13
+ "engines": {
14
+ "node": ">=22.12.0"
15
+ },
16
+ "files": [
17
+ "index.mjs",
18
+ "lib/",
19
+ "dist/**/*.d.mts",
20
+ "upstream-sources.json",
21
+ "README.md"
22
+ ],
23
+ "main": "./index.mjs",
24
+ "types": "./dist/index.d.mts",
25
+ "exports": {
26
+ ".": {
27
+ "types": "./dist/index.d.mts",
28
+ "import": "./index.mjs",
29
+ "default": "./index.mjs"
30
+ },
31
+ "./paths": {
32
+ "types": "./dist/lib/paths.d.mts",
33
+ "import": "./lib/paths.mjs",
34
+ "default": "./lib/paths.mjs"
35
+ }
36
+ },
37
+ "scripts": {
38
+ "build": "tsc -b",
39
+ "test": "node --test tests/*.test.mjs"
40
+ },
41
+ "dependencies": {
42
+ "@chartguard/config-core": "0.1.0",
43
+ "typescript": "5.9.3"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
47
+ }
48
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "inventoryDate": "2026-10-17",
3
+ "roadmapId": "CG-01-01",
4
+ "compiler": {
5
+ "package": "typescript",
6
+ "version": "5.9.3",
7
+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
8
+ "license": {
9
+ "spdx": "Apache-2.0",
10
+ "redistribution": "allowed-with-license-and-notice"
11
+ },
12
+ "use": "Reads every declaration. Its own lib files (lib.dom.d.ts, lib.es5.d.ts) give the members of the DOM and built-in types the declarations name, so an artifact is reproducible only with this exact version (CG-07-06)."
13
+ },
14
+ "libraries": [
15
+ {
16
+ "library": "chartjs",
17
+ "package": "chart.js",
18
+ "version": "4.5.1",
19
+ "integrity": "sha512-GIjfiT9dbmHRiYi6Nl2yFCq7kkwdkp1W/lp2J99rX0yo9tgJGn3lKQATztIjb5tVtevcBtIdICNWqlq5+E8/Pw==",
20
+ "license": {
21
+ "spdx": "MIT",
22
+ "redistribution": "allowed-with-attribution"
23
+ },
24
+ "primary": {
25
+ "kind": "typescript-declarations",
26
+ "entries": ["dist/types/index.d.ts"],
27
+ "confidence": "authoritative"
28
+ },
29
+ "secondary": [
30
+ {
31
+ "kind": "markdown-docs",
32
+ "url": "https://github.com/chartjs/Chart.js/tree/v4.5.1/docs",
33
+ "pin": "git-tag:v4.5.1",
34
+ "use": "documentation anchors only"
35
+ }
36
+ ],
37
+ "openIssues": [
38
+ "A scale without type is checked as the type mergeScaleConfig gives it (CG-02-09); it stays inconclusive when a plugin chart or dataset type, an axis option on a non-axis id, the datasets alone or an unreadable value decide it, and a changed Chart.overrides is not modelled."
39
+ ]
40
+ },
41
+ {
42
+ "library": "echarts",
43
+ "package": "echarts",
44
+ "version": "6.1.0",
45
+ "integrity": "sha512-q0yaFPggC9FUdsWH4blavRWFmxdrIodbkoKNAjJudAI6CA9gNPxHtV2RcZNEepZVlk4yvBYkOkbk6HIVpIyHZA==",
46
+ "license": {
47
+ "spdx": "Apache-2.0",
48
+ "redistribution": "allowed-with-license-and-notice"
49
+ },
50
+ "primary": {
51
+ "kind": "typescript-declarations",
52
+ "entries": ["types/dist/option.d.ts", "types/dist/shared.d.ts"],
53
+ "confidence": "authoritative"
54
+ },
55
+ "secondary": [
56
+ {
57
+ "kind": "docs-option-tree",
58
+ "url": "https://echarts.apache.org/en/documents/option-parts/option-outline.json",
59
+ "sha256": "c7589d3e8cbb1dc1bea869d4c2eb5eab35040189a9f3f9d59f0ca243f65a4224",
60
+ "retrieved": "2026-10-17",
61
+ "pin": "unversioned",
62
+ "license": "Apache-2.0 (apache/echarts-doc)",
63
+ "confidence": "derived"
64
+ }
65
+ ],
66
+ "openIssues": [
67
+ "Docs tree is unversioned; pin apache/echarts-doc by commit before use.",
68
+ "26268 of 58910 docs-tree nodes carry no type."
69
+ ]
70
+ },
71
+ {
72
+ "library": "highcharts",
73
+ "package": "highcharts",
74
+ "version": "13.1.1",
75
+ "integrity": "sha512-k/smhxCgaqHDsuy9ZCWs8FJNTPrbzc8BmMA4M/8f9JMwv9HgmNZjulyWwZ9q9ly6AzHpskL9mhlW8vgsSqnstg==",
76
+ "license": {
77
+ "spdx": "LicenseRef-Highsoft",
78
+ "url": "https://www.highcharts.com/license",
79
+ "redistribution": "unresolved-legal-review-required"
80
+ },
81
+ "primary": {
82
+ "kind": "typescript-declarations",
83
+ "entries": ["highcharts.d.ts", "options/*.d.ts", "modules/*.d.ts"],
84
+ "confidence": "authoritative"
85
+ },
86
+ "secondary": [
87
+ {
88
+ "kind": "docs-option-tree",
89
+ "url": "https://api.highcharts.com/highcharts/tree.json",
90
+ "sha256": "0152fdd7ad3a3cfeaeb42798ea6742aeabac0feda8d7389b23f6b49b7a69fb00",
91
+ "retrieved": "2026-10-17",
92
+ "pin": "unversioned; _meta.version 13.1.0 lags npm 13.1.1",
93
+ "confidence": "derived"
94
+ }
95
+ ],
96
+ "openIssues": [
97
+ "Generated artifacts are never committed or published: the generator writes them to node_modules/.cache/chartguard from the local install (CG-01-05); code guard R12 checks git and npm pack.",
98
+ "The hand-curated config-highcharts subset (13.x) leaves union-typed fields open; the locally generated schema checks them."
99
+ ]
100
+ }
101
+ ]
102
+ }