spoko-design-system 1.9.2 → 1.10.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/.husky/commit-msg +1 -0
- package/.husky/pre-commit +12 -0
- package/CHANGELOG.md +12 -0
- package/commitlint.config.js +3 -0
- package/eslint.config.js +1 -0
- package/package.json +4 -1
- package/src/components/ProductCodes.vue +2 -2
- package/src/components/SlimBanner.vue +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pnpm exec commitlint --edit $1
|
package/.husky/pre-commit
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
echo "🔍 Running pre-commit checks..."
|
|
2
2
|
|
|
3
|
+
# Check for merge conflict markers
|
|
4
|
+
if ! git diff --cached --check; then
|
|
5
|
+
echo "❌ Found merge conflict markers!"
|
|
6
|
+
exit 1
|
|
7
|
+
fi
|
|
8
|
+
|
|
9
|
+
# Check for console.log (optional warning)
|
|
10
|
+
if git diff --cached --name-only | xargs grep -n "console\\.log" 2>/dev/null; then
|
|
11
|
+
echo "⚠️ Warning: Found console.log statements"
|
|
12
|
+
echo " Consider removing them before committing to production"
|
|
13
|
+
fi
|
|
14
|
+
|
|
3
15
|
# Run format check
|
|
4
16
|
echo "🎨 Checking code formatting..."
|
|
5
17
|
pnpm run format:check
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [1.10.0](https://github.com/polo-blue/sds/compare/v1.9.3...v1.10.0) (2025-10-30)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* add commitlint and common issue checks to pre-commit ([20a2378](https://github.com/polo-blue/sds/commit/20a237883bd45dac8d80682ac003c54d06177037))
|
|
6
|
+
|
|
7
|
+
## [1.9.3](https://github.com/polo-blue/sds/compare/v1.9.2...v1.9.3) (2025-10-30)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* auto-fix lint warnings and update eslint config ([dbead26](https://github.com/polo-blue/sds/commit/dbead26efdaaee60a9fc5764885ea4f4039040cc))
|
|
12
|
+
|
|
1
13
|
## [1.9.2](https://github.com/polo-blue/sds/compare/v1.9.1...v1.9.2) (2025-10-30)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
package/eslint.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spoko-design-system",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"private": false,
|
|
5
6
|
"main": "./index.ts",
|
|
6
7
|
"module": "./index.ts",
|
|
@@ -114,6 +115,8 @@
|
|
|
114
115
|
"vue": "^3.5.22"
|
|
115
116
|
},
|
|
116
117
|
"devDependencies": {
|
|
118
|
+
"@commitlint/cli": "^20.1.0",
|
|
119
|
+
"@commitlint/config-conventional": "^20.0.0",
|
|
117
120
|
"@semantic-release/changelog": "^6.0.3",
|
|
118
121
|
"@semantic-release/git": "^10.0.1",
|
|
119
122
|
"@types/gtag.js": "^0.0.20",
|
|
@@ -58,7 +58,7 @@ const getVariantCategory = (code: string, fallback?: string): string | undefined
|
|
|
58
58
|
<template>
|
|
59
59
|
<span v-for="(prcode, index) in prcodes" :key="prcode?.id || index" class="not-last:mr-1">
|
|
60
60
|
<template v-if="prcode?.code">
|
|
61
|
-
<PrCode v-if="!prcode.code.includes('+')" :prcode="prcode" :
|
|
61
|
+
<PrCode v-if="!prcode.code.includes('+')" :prcode="prcode" :is-pdp="isPdp" />
|
|
62
62
|
<span v-else class="inline-flex items-center gap-1">
|
|
63
63
|
<template v-for="(code, idx) in prcode.code.split('+')" :key="idx">
|
|
64
64
|
<span v-if="idx > 0" class="text-sm opacity-75">+</span>
|
|
@@ -69,7 +69,7 @@ const getVariantCategory = (code: string, fallback?: string): string | undefined
|
|
|
69
69
|
description: null,
|
|
70
70
|
variant_category: getVariantCategory(code.trim(), prcode.variant_category),
|
|
71
71
|
}"
|
|
72
|
-
:
|
|
72
|
+
:is-pdp="isPdp"
|
|
73
73
|
/>
|
|
74
74
|
</template>
|
|
75
75
|
</span>
|
|
@@ -129,7 +129,7 @@ const closePermanently = () => {
|
|
|
129
129
|
|
|
130
130
|
<span class="leading-none inline-flex">
|
|
131
131
|
<slot>
|
|
132
|
-
<span :data-text="props.message"
|
|
132
|
+
<span :data-text="props.message" />
|
|
133
133
|
<a
|
|
134
134
|
v-if="props.linkUrl"
|
|
135
135
|
:href="props.linkUrl"
|
|
@@ -138,8 +138,8 @@ const closePermanently = () => {
|
|
|
138
138
|
:title="props.linkTitle || props.linkText"
|
|
139
139
|
class="underline underline-offset-2 hover:text-blue-wrc ml-1.5"
|
|
140
140
|
:data-text="props.linkText"
|
|
141
|
-
|
|
142
|
-
<span v-if="props.linkUrl" data-text="."
|
|
141
|
+
/>
|
|
142
|
+
<span v-if="props.linkUrl" data-text="." />
|
|
143
143
|
</slot>
|
|
144
144
|
</span>
|
|
145
145
|
|