spoko-design-system 1.3.6 → 1.3.7

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.3.7](https://github.com/polo-blue/sds/compare/v1.3.6...v1.3.7) (2025-10-08)
2
+
3
+ ### Bug Fixes
4
+
5
+ * simplify CategoryDetails to use API paths directly ([28831c9](https://github.com/polo-blue/sds/commit/28831c9284c5e9ff484f7e51947cec95b2f41427))
6
+
1
7
  ## [1.3.6](https://github.com/polo-blue/sds/compare/v1.3.5...v1.3.6) (2025-10-07)
2
8
 
3
9
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoko-design-system",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "private": false,
5
5
  "main": "./index.ts",
6
6
  "module": "./index.ts",
@@ -14,15 +14,9 @@ const {
14
14
  locale,
15
15
  } = Astro.props;
16
16
 
17
- // Use paths directly from API - they already include locale prefixes
18
- // Ensure paths always start with /
19
- const ensureLeadingSlash = (path: string) => path?.startsWith('/') ? path : `/${path}`;
20
- const categoryPath = category?.path
21
- ? ensureLeadingSlash(category.path)
22
- : `/${category.slug}/`;
23
- const subcategoryPath = subcategory?.path
24
- ? ensureLeadingSlash(subcategory.path)
25
- : `/${category.slug}/${subcategory?.slug}/`;
17
+ // Use paths directly from API - they already include locale and proper slashes
18
+ const categoryPath = category?.path || `/${category.slug}/`;
19
+ const subcategoryPath = subcategory?.path || `/${category.slug}/${subcategory?.slug}/`;
26
20
  ---
27
21
 
28
22
  <div