twskin 0.6.3 → 0.6.4
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 +13 -0
- package/package.json +1 -1
- package/runtime/manifest.json +3 -3
- package/runtime/token-map.mjs +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,19 @@ All notable changes to this package are documented here. This project follows
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [0.6.4] - 2026-07-29
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Mapped the legacy `text-text-default-reverse` alias to the foreground derived
|
|
13
|
+
from `surface.invert`. Older host primary buttons now retain readable text on
|
|
14
|
+
both light and dark inverse surfaces.
|
|
15
|
+
|
|
16
|
+
### For contributors
|
|
17
|
+
|
|
18
|
+
- Extended the official-theme action-contrast audit to cover this legacy
|
|
19
|
+
inverse-action foreground alias.
|
|
20
|
+
|
|
8
21
|
## [0.6.3] - 2026-07-29
|
|
9
22
|
|
|
10
23
|
### Fixed
|
package/package.json
CHANGED
package/runtime/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"packageVersion": "0.6.
|
|
3
|
+
"packageVersion": "0.6.4",
|
|
4
4
|
"themesBundled": false,
|
|
5
5
|
"files": [
|
|
6
6
|
{
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"path": "token-map.mjs",
|
|
43
|
-
"size":
|
|
44
|
-
"sha256": "
|
|
43
|
+
"size": 25102,
|
|
44
|
+
"sha256": "5655ad4b3cfab19b569005a64b6a70972e86328129e4ac104323d81427e21559"
|
|
45
45
|
}
|
|
46
46
|
]
|
|
47
47
|
}
|
package/runtime/token-map.mjs
CHANGED
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
|
|
79
79
|
// ---------- 命名空间普查清单(2026-07 实地盘点,见 docs/验证记录)----------
|
|
80
80
|
const NS_BG = ["base-default", "base-secondary", "base-tertiary", "brand", "brand-active", "brand-disabled", "brand-disabled-sub", "brand-hover", "brand-hover-sub", "brand-old", "brand-popup", "brand-popup-sub", "brand-sub", "card", "card-hover", "input", "invert", "invert-active", "invert-disabled", "invert-hover", "menu", "menu-old", "overlay-l0", "overlay-l1", "overlay-l2", "overlay-l3", "overlay-l4", "tooltip", "white"];
|
|
81
|
-
const NS_TEXT = ["brand", "brand-hover", "brand-hover-sub", "brand-sub", "default", "default-active", "default-hover", "disabled", "onaccent", "onbrand", "preformat-foreground", "secondary", "secondary-active", "secondary-hover", "tertiary"];
|
|
81
|
+
const NS_TEXT = ["brand", "brand-hover", "brand-hover-sub", "brand-sub", "default", "default-active", "default-hover", "default-reverse", "disabled", "onaccent", "onbrand", "preformat-foreground", "secondary", "secondary-active", "secondary-hover", "tertiary"];
|
|
82
82
|
const NS_ICON = ["brand", "brand-hover", "brand-hover-sub", "brand-sub", "default", "default-active", "default-hover", "disabled", "onaccent", "onbrand", "secondary", "secondary-active", "secondary-hover", "tertiary", "white"];
|
|
83
83
|
const NS_BORDER = ["brand", "brand-sub", "contrast", "neutral-l1", "neutral-l2", "neutral-l3"];
|
|
84
84
|
// --vscode-icube-- 别名层(组件真正消费的那层)
|
|
@@ -221,6 +221,9 @@
|
|
|
221
221
|
const textValue = (suffix) => {
|
|
222
222
|
switch (suffix) {
|
|
223
223
|
case "default": case "default-hover": case "default-active": return text.primary;
|
|
224
|
+
// 少数旧 CSS module 使用这个别名配对 bg-bg-invert;它不是“正文反色”,
|
|
225
|
+
// 仍须从实际 invert 表面推导,避免浅色 invert 按钮得到白字。
|
|
226
|
+
case "default-reverse": return onInvert;
|
|
224
227
|
case "secondary": case "secondary-hover": case "secondary-active": return text.secondary;
|
|
225
228
|
case "tertiary": return text.tertiary;
|
|
226
229
|
case "disabled": return text.disabled;
|