spoko-design-system 1.1.5 → 1.1.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,15 @@
1
+ ## [1.1.7](https://github.com/polo-blue/sds/compare/v1.1.6...v1.1.7) (2025-09-23)
2
+
3
+ ### Bug Fixes
4
+
5
+ * remove unnecessary escape characters in text.ts ([f1ae714](https://github.com/polo-blue/sds/commit/f1ae7145d86a7b4df1976ba850650fc390624667))
6
+
7
+ ## [1.1.6](https://github.com/polo-blue/sds/compare/v1.1.5...v1.1.6) (2025-09-23)
8
+
9
+ ### Bug Fixes
10
+
11
+ * apply prettier formatting to resolve code style issues ([d9247d2](https://github.com/polo-blue/sds/commit/d9247d2b8809f87ea35777329ba5146b308d809b))
12
+
1
13
  ## [1.1.5](https://github.com/polo-blue/sds/compare/v1.1.4...v1.1.5) (2025-09-23)
2
14
 
3
15
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoko-design-system",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "private": false,
5
5
  "main": "./index.ts",
6
6
  "module": "./index.ts",
@@ -39,7 +39,7 @@ const activeIndex =
39
39
  run-callbacks-on-init="false"
40
40
  >
41
41
  {
42
- categories.map((category) => (
42
+ categories.map(category => (
43
43
  <swiper-slide
44
44
  itemprop="hasPart"
45
45
  role="presentation"
package/src/utils/text.ts CHANGED
@@ -5,8 +5,8 @@ export const text2paragraphs = (text: string, firstLineBottomMargin: boolean = f
5
5
  (firstLineBottomMargin ? 'class="mb-3"' : '') +
6
6
  '>' +
7
7
  text.split('\n').join('</p><p>') +
8
- '<\/p>';
9
- return out.split('<p><\/p><p>').join('<p class="mt-3">');
8
+ '</p>';
9
+ return out.split('<p></p><p>').join('<p class="mt-3">');
10
10
  };
11
11
 
12
12
  export const countWords = (str: string) => {
@@ -14,7 +14,7 @@ export const countWords = (str: string) => {
14
14
  };
15
15
 
16
16
  export const firstSentence = (str: string) => {
17
- return str.split('\.');
17
+ return str.split('.');
18
18
  };
19
19
 
20
20
  export const removeSemicolon = (name: string) => {