@uniweb/kit 0.1.6 → 0.1.8

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 +24 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -26,6 +26,30 @@ function Hero() {
26
26
  }
27
27
  ```
28
28
 
29
+ ## Why @uniweb/kit?
30
+
31
+ Kit provides the standard primitives that make Uniweb foundations work correctly:
32
+
33
+ 1. **Handle Uniweb conventions** — Components like `Link` and `Image` understand topic links, locale prefixes, and asset resolution automatically.
34
+
35
+ 2. **Runtime integration** — The `useWebsite()` hook gives you access to the website instance, localization functions, and routing utilities.
36
+
37
+ 3. **Semantic parser output** — Typography components (`H1`, `P`, `Text`) handle both strings and string arrays correctly, matching the semantic parser's output format.
38
+
39
+ 4. **Portability** — Your foundation works identically in development, static builds, and the Uniweb platform.
40
+
41
+ ### When to use kit vs custom components
42
+
43
+ | Use @uniweb/kit for | Use custom components for |
44
+ |---------------------|---------------------------|
45
+ | Links and navigation | Custom button styles |
46
+ | Images with filters | Specialized image treatments |
47
+ | Text rendering | Domain-specific formatting |
48
+ | Video embeds | Custom media players |
49
+ | Website/locale access | Business logic |
50
+
51
+ Kit components are designed to be composed and styled, not replaced wholesale. Wrap them, extend them, or use them as building blocks.
52
+
29
53
  ## Components
30
54
 
31
55
  ### Primitives
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/kit",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Standard component library for Uniweb foundations",
5
5
  "type": "module",
6
6
  "exports": {
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "tailwind-merge": "^2.6.0",
40
- "@uniweb/core": "0.1.11"
40
+ "@uniweb/core": "0.1.13"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "react": "^18.0.0 || ^19.0.0",