@netlify/spark-ui 1.34.0-alpha.1 → 2.0.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.
- package/README.md +14 -0
- package/package.json +31 -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": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/components/preact/index.js",
|
|
7
7
|
"types": "dist/components/preact/index.d.ts",
|
|
@@ -42,36 +42,35 @@
|
|
|
42
42
|
"./utils": "./packages/utils/index.ts",
|
|
43
43
|
"./analytics": "./packages/analytics/index.ts"
|
|
44
44
|
},
|
|
45
|
-
"
|
|
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",
|
|
61
|
+
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
66
62
|
"eslint": "^10.0.0",
|
|
67
63
|
"eslint-config-prettier": "^10.1.1",
|
|
68
64
|
"eslint-plugin-astro": "^1.3.1",
|
|
69
65
|
"fake-indexeddb": "^6.2.5",
|
|
66
|
+
"fflate": "^0.8.2",
|
|
70
67
|
"glob": "^11.0.1",
|
|
71
68
|
"happy-dom": "^20.11.6",
|
|
69
|
+
"marked": "^15.0.11",
|
|
72
70
|
"preact": "^10.26.4",
|
|
73
71
|
"prettier": "^3.5.3",
|
|
74
72
|
"prettier-plugin-astro": "^0.14.1",
|
|
73
|
+
"rusha": "^0.8.14",
|
|
75
74
|
"semantic-release": "^25.0.0",
|
|
76
75
|
"tslib": "^2.8.1",
|
|
77
76
|
"typescript": "^5.8.2",
|
|
@@ -82,6 +81,27 @@
|
|
|
82
81
|
"vitest": "^4.1.10"
|
|
83
82
|
},
|
|
84
83
|
"peerDependencies": {
|
|
85
|
-
"
|
|
84
|
+
"@astro-community/astro-embed-youtube": "^0.5.0",
|
|
85
|
+
"@shikijs/transformers": "^3.0.0",
|
|
86
|
+
"@zachleat/details-utils": "^2.0.0",
|
|
87
|
+
"@zachleat/filter-container": "^4.0.0",
|
|
88
|
+
"preact": "^10.0.0"
|
|
89
|
+
},
|
|
90
|
+
"peerDependenciesMeta": {
|
|
91
|
+
"@astro-community/astro-embed-youtube": {
|
|
92
|
+
"optional": true
|
|
93
|
+
},
|
|
94
|
+
"@shikijs/transformers": {
|
|
95
|
+
"optional": true
|
|
96
|
+
},
|
|
97
|
+
"@zachleat/details-utils": {
|
|
98
|
+
"optional": true
|
|
99
|
+
},
|
|
100
|
+
"@zachleat/filter-container": {
|
|
101
|
+
"optional": true
|
|
102
|
+
},
|
|
103
|
+
"preact": {
|
|
104
|
+
"optional": true
|
|
105
|
+
}
|
|
86
106
|
}
|
|
87
107
|
}
|