spoko-design-system 1.23.2 → 1.24.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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.24.0](https://github.com/polo-blue/sds/compare/v1.23.2...v1.24.0) (2025-12-16)
2
+
3
+ ### Features
4
+
5
+ * export useFormatProductNumber utility ([4e585e4](https://github.com/polo-blue/sds/commit/4e585e4bf500049f1ab8e325ae7a0daa6dd2ade6))
6
+
1
7
  ## [1.23.2](https://github.com/polo-blue/sds/compare/v1.23.1...v1.23.2) (2025-12-16)
2
8
 
3
9
  ### Bug Fixes
package/index.ts CHANGED
@@ -61,6 +61,7 @@ export { default as getPriceFormatted } from './src/utils/product/getPriceFormat
61
61
  export { default as getProductChecklist } from './src/utils/product/getProductChecklist';
62
62
  export { getEngineTooltipContent } from './src/utils/product/getEngineTooltipContent';
63
63
  export type { Engine, EngineTranslations } from './src/utils/product/getEngineTooltipContent';
64
+ export { default as useFormatProductNumber } from './src/utils/product/useFormatProductNumber';
64
65
 
65
66
  // Utils: SEO
66
67
  export { default as getShorterDescription } from './src/utils/seo/getShorterDescription';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoko-design-system",
3
- "version": "1.23.2",
3
+ "version": "1.24.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./index.ts",
@@ -18,19 +18,21 @@ const { CategoryObject } = Astro.props;
18
18
  const { height = 70, width = 70, path } = CategoryObject;
19
19
  ---
20
20
 
21
- <a href={path} class="carousel-item" data-astro-prefetch itemprop="url">
22
- <Image
23
- src={CategoryObject.photo}
24
- alt={CategoryObject.alt}
25
- height={height}
26
- width={width}
27
- format="avif"
28
- loading="eager"
29
- onerror="this.style.display='none';"
30
- class="cats-img"
31
- />
32
- <div class="swiper-lazy-preloader"></div>
33
- <div class="cat-name" itemprop="name">
34
- {CategoryObject.name}
35
- </div>
36
- </a>
21
+ <span itemprop="name">
22
+ <a itemprop="url" href={path} class="carousel-item" data-astro-prefetch>
23
+ <Image
24
+ src={CategoryObject.photo}
25
+ alt={CategoryObject.alt}
26
+ height={height}
27
+ width={width}
28
+ format="avif"
29
+ loading="eager"
30
+ onerror="this.style.display='none';"
31
+ class="cats-img"
32
+ />
33
+ <div class="swiper-lazy-preloader"></div>
34
+ <div class="cat-name">
35
+ {CategoryObject.name}
36
+ </div>
37
+ </a>
38
+ </span>