@synergy-design-system/mcp 1.7.0 → 1.7.1
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 +7 -0
- package/metadata/checksum.txt +1 -1
- package/metadata/packages/components/components/syn-option/component.ts +22 -5
- package/metadata/packages/components/static/CHANGELOG.md +7 -0
- package/metadata/packages/tokens/dark.css +1 -1
- package/metadata/packages/tokens/index.js +1 -1
- package/metadata/packages/tokens/light.css +1 -1
- package/metadata/packages/tokens/sick2018_dark.css +1 -1
- package/metadata/packages/tokens/sick2018_light.css +1 -1
- package/metadata/packages/tokens/sick2025_dark.css +1 -1
- package/metadata/packages/tokens/sick2025_light.css +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@synergy-design-system/mcp-v1.7.1](https://github.com/synergy-design-system/synergy-design-system/compare/mcp/1.7.0...mcp/1.7.1) (2025-10-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* 🐛 Subsequently changed delimiter not taking into account for option value ([#1040](https://github.com/synergy-design-system/synergy-design-system/issues/1040)) ([fb45b32](https://github.com/synergy-design-system/synergy-design-system/commit/fb45b32c36d39046da754a294bff79d1a0ffeb42))
|
|
7
|
+
|
|
1
8
|
# [@synergy-design-system/mcp-v1.7.0](https://github.com/synergy-design-system/synergy-design-system/compare/mcp/1.6.2...mcp/1.7.0) (2025-10-02)
|
|
2
9
|
|
|
3
10
|
|
package/metadata/checksum.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
6f75379b7b9df88933d9b1253e260381
|
|
@@ -44,6 +44,8 @@ export default class SynOption extends SynergyElement {
|
|
|
44
44
|
// @ts-expect-error - Controller is currently unused
|
|
45
45
|
private readonly localize = new LocalizeController(this);
|
|
46
46
|
|
|
47
|
+
// #1036: Needed to store the original value before any delimiter processing
|
|
48
|
+
private originalValue: string | number = '';
|
|
47
49
|
private isInitialized = false;
|
|
48
50
|
|
|
49
51
|
@query('.option__label') defaultSlot: HTMLSlotElement;
|
|
@@ -110,24 +112,39 @@ export default class SynOption extends SynergyElement {
|
|
|
110
112
|
this.setAttribute('aria-selected', this.selected ? 'true' : 'false');
|
|
111
113
|
}
|
|
112
114
|
|
|
115
|
+
@watch('delimiter')
|
|
116
|
+
handleDelimiterChange() {
|
|
117
|
+
this.sanitizeValueForDelimiter();
|
|
118
|
+
}
|
|
119
|
+
|
|
113
120
|
@watch('value')
|
|
114
121
|
handleValueChange() {
|
|
115
|
-
|
|
122
|
+
this.originalValue = this.value;
|
|
123
|
+
this.sanitizeValueForDelimiter();
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Replaces any occurrences of the delimiter in the option's original value with underscores.
|
|
128
|
+
*/
|
|
129
|
+
sanitizeValueForDelimiter() {
|
|
130
|
+
let value = this.originalValue;
|
|
131
|
+
if (typeof value === 'number') {
|
|
116
132
|
return;
|
|
117
133
|
}
|
|
118
134
|
|
|
119
135
|
// Ensure the value is a string. This ensures the next line doesn't error and allows framework users to pass numbers
|
|
120
136
|
// instead of requiring them to cast the value to a string.
|
|
121
|
-
if (typeof
|
|
122
|
-
|
|
137
|
+
if (typeof value !== 'string') {
|
|
138
|
+
value = String(value);
|
|
123
139
|
}
|
|
124
140
|
|
|
125
141
|
const { delimiter } = this;
|
|
126
142
|
|
|
127
|
-
if (
|
|
143
|
+
if (value.includes(delimiter)) {
|
|
128
144
|
console.error(`Option values cannot include "${delimiter}". All occurrences of "${delimiter}" have been replaced with "_".`, this);
|
|
129
|
-
|
|
145
|
+
value = delimiterToWhiteSpace(value, this.delimiter);
|
|
130
146
|
}
|
|
147
|
+
this.value = value;
|
|
131
148
|
}
|
|
132
149
|
|
|
133
150
|
/** Returns a plain text label based on the option's content. */
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@synergy-design-system/components-v2.46.1](https://github.com/synergy-design-system/synergy-design-system/compare/components/2.46.0...components/2.46.1) (2025-10-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* 🐛 Subsequently changed delimiter not taking into account for option value ([#1040](https://github.com/synergy-design-system/synergy-design-system/issues/1040)) ([fb45b32](https://github.com/synergy-design-system/synergy-design-system/commit/fb45b32c36d39046da754a294bff79d1a0ffeb42))
|
|
7
|
+
|
|
1
8
|
# [@synergy-design-system/components-v2.46.0](https://github.com/synergy-design-system/synergy-design-system/compare/components/2.45.2...components/2.46.0) (2025-10-02)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"semantic-release-monorepo": "7.0.5",
|
|
34
34
|
"ts-jest": "^29.4.0",
|
|
35
35
|
"typescript": "^5.8.3",
|
|
36
|
-
"@synergy-design-system/components": "2.46.
|
|
36
|
+
"@synergy-design-system/components": "2.46.1",
|
|
37
37
|
"@synergy-design-system/docs": "0.1.0",
|
|
38
|
-
"@synergy-design-system/
|
|
38
|
+
"@synergy-design-system/styles": "1.8.0",
|
|
39
39
|
"@synergy-design-system/tokens": "^2.27.0",
|
|
40
|
-
"@synergy-design-system/
|
|
40
|
+
"@synergy-design-system/eslint-config-syn": "^0.1.0"
|
|
41
41
|
},
|
|
42
42
|
"exports": {
|
|
43
43
|
".": {
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"directory": "packages/mcp"
|
|
123
123
|
},
|
|
124
124
|
"type": "module",
|
|
125
|
-
"version": "1.7.
|
|
125
|
+
"version": "1.7.1",
|
|
126
126
|
"scripts": {
|
|
127
127
|
"build": "pnpm run build:ts && pnpm run build:metadata && pnpm build:hash",
|
|
128
128
|
"build:all": "pnpm run build && pnpm run build:storybook",
|