@netlify/spark-ui 1.34.0-alpha.1 → 2.0.0-alpha.1

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 (2) hide show
  1. package/README.md +14 -0
  2. package/package.json +30 -11
package/README.md CHANGED
@@ -51,6 +51,20 @@ Prettier is used to format the code. To format the codebase, run:
51
51
  npm run format
52
52
  ```
53
53
 
54
+ ## Optional dependencies
55
+
56
+ Installing `@netlify/spark-ui` adds no other packages. Tokens, styles and assets work on their own; components need their libraries installed alongside:
57
+
58
+ | Using | Install |
59
+ | ------------------------------------------------------------------- | ---------------------------------------------------------- |
60
+ | Preact components (`@netlify/spark-ui`, `@netlify/spark-ui/preact`) | `preact` |
61
+ | `CodeBlock.astro` | `@shikijs/transformers` |
62
+ | `YoutubeVideo.astro` | `@astro-community/astro-embed-youtube` |
63
+ | `FilterableGrid` | `@zachleat/details-utils`, `@zachleat/filter-container` |
64
+ | `@netlify/spark-ui/components` (uncompiled source) | `preact`, `@kapaai/react-sdk`, `marked`, `fflate`, `rusha` |
65
+
66
+ `@netlify/spark-ui/preact` bundles the Kapa SDK, `marked`, `fflate` and `rusha`, so prefer it over the uncompiled `components` entry.
67
+
54
68
  ## Design Tokens
55
69
 
56
70
  Tokens provide a shared foundation of colors, typography, spacing, and more for our sites and apps. All token information is stored in the `/tokens` directory. These aim to follow standards proposed in the [Design Tokens Format Module](https://tr.designtokens.org/format/).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@netlify/spark-ui",
3
3
  "description": "Assets, design tokens, components, and utilities",
4
- "version": "1.34.0-alpha.1",
4
+ "version": "2.0.0-alpha.1",
5
5
  "type": "module",
6
6
  "main": "dist/components/preact/index.js",
7
7
  "types": "dist/components/preact/index.d.ts",
@@ -42,36 +42,34 @@
42
42
  "./utils": "./packages/utils/index.ts",
43
43
  "./analytics": "./packages/analytics/index.ts"
44
44
  },
45
- "dependencies": {
45
+ "devDependencies": {
46
46
  "@astro-community/astro-embed-youtube": "^0.5.10",
47
47
  "@kapaai/react-sdk": "^0.9.0",
48
- "@shikijs/transformers": "^3.3.0",
49
- "@zachleat/details-utils": "^2.0.2",
50
- "@zachleat/filter-container": "^4.0.0",
51
- "fflate": "^0.8.2",
52
- "marked": "^15.0.11",
53
- "rusha": "^0.8.14"
54
- },
55
- "devDependencies": {
56
48
  "@preact/preset-vite": "^2.10.1",
57
49
  "@semantic-release/changelog": "^6.0.3",
58
50
  "@semantic-release/git": "^10.0.1",
59
51
  "@semantic-release/npm": "^13.0.0",
52
+ "@shikijs/transformers": "^3.3.0",
60
53
  "@terrazzo/cli": "^2.7.1",
61
54
  "@terrazzo/plugin-css": "^2.7.1",
62
55
  "@types/gtag.js": "^0.0.20",
63
56
  "@typescript-eslint/eslint-plugin": "^8.26.0",
64
57
  "@typescript-eslint/parser": "^8.26.0",
58
+ "@zachleat/details-utils": "^2.0.2",
59
+ "@zachleat/filter-container": "^4.0.0",
65
60
  "astro-eslint-parser": "^1.2.1",
66
61
  "eslint": "^10.0.0",
67
62
  "eslint-config-prettier": "^10.1.1",
68
63
  "eslint-plugin-astro": "^1.3.1",
69
64
  "fake-indexeddb": "^6.2.5",
65
+ "fflate": "^0.8.2",
70
66
  "glob": "^11.0.1",
71
67
  "happy-dom": "^20.11.6",
68
+ "marked": "^15.0.11",
72
69
  "preact": "^10.26.4",
73
70
  "prettier": "^3.5.3",
74
71
  "prettier-plugin-astro": "^0.14.1",
72
+ "rusha": "^0.8.14",
75
73
  "semantic-release": "^25.0.0",
76
74
  "tslib": "^2.8.1",
77
75
  "typescript": "^5.8.2",
@@ -82,6 +80,27 @@
82
80
  "vitest": "^4.1.10"
83
81
  },
84
82
  "peerDependencies": {
85
- "preact": "^10.26.4"
83
+ "@astro-community/astro-embed-youtube": "^0.5.0",
84
+ "@shikijs/transformers": "^3.0.0",
85
+ "@zachleat/details-utils": "^2.0.0",
86
+ "@zachleat/filter-container": "^4.0.0",
87
+ "preact": "^10.0.0"
88
+ },
89
+ "peerDependenciesMeta": {
90
+ "@astro-community/astro-embed-youtube": {
91
+ "optional": true
92
+ },
93
+ "@shikijs/transformers": {
94
+ "optional": true
95
+ },
96
+ "@zachleat/details-utils": {
97
+ "optional": true
98
+ },
99
+ "@zachleat/filter-container": {
100
+ "optional": true
101
+ },
102
+ "preact": {
103
+ "optional": true
104
+ }
86
105
  }
87
106
  }