spoko-design-system 1.1.6 → 1.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.
- package/CHANGELOG.md +12 -0
- package/eslint.config.js +1 -5
- package/package.json +1 -1
- package/src/utils/text.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [1.1.8](https://github.com/polo-blue/sds/compare/v1.1.7...v1.1.8) (2025-09-23)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* update ESLint configuration to properly parse Vue files ([0eb941a](https://github.com/polo-blue/sds/commit/0eb941a37002c80753f1324c30873888cfe62f70))
|
|
6
|
+
|
|
7
|
+
## [1.1.7](https://github.com/polo-blue/sds/compare/v1.1.6...v1.1.7) (2025-09-23)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* remove unnecessary escape characters in text.ts ([f1ae714](https://github.com/polo-blue/sds/commit/f1ae7145d86a7b4df1976ba850650fc390624667))
|
|
12
|
+
|
|
1
13
|
## [1.1.6](https://github.com/polo-blue/sds/compare/v1.1.5...v1.1.6) (2025-09-23)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
package/eslint.config.js
CHANGED
|
@@ -28,21 +28,17 @@ export default [
|
|
|
28
28
|
},
|
|
29
29
|
|
|
30
30
|
// Vue files
|
|
31
|
+
...vue.configs['flat/recommended'],
|
|
31
32
|
{
|
|
32
33
|
files: ['**/*.vue'],
|
|
33
34
|
languageOptions: {
|
|
34
|
-
parser: vue.parser,
|
|
35
35
|
parserOptions: {
|
|
36
36
|
parser: typescriptParser,
|
|
37
37
|
ecmaVersion: 'latest',
|
|
38
38
|
sourceType: 'module',
|
|
39
39
|
},
|
|
40
40
|
},
|
|
41
|
-
plugins: {
|
|
42
|
-
vue,
|
|
43
|
-
},
|
|
44
41
|
rules: {
|
|
45
|
-
...vue.configs.recommended.rules,
|
|
46
42
|
'vue/multi-word-component-names': 'off',
|
|
47
43
|
'vue/no-unused-vars': 'warn',
|
|
48
44
|
},
|
package/package.json
CHANGED
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
|
-
'
|
|
9
|
-
return out.split('<p
|
|
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) => {
|