@deepseek-ai/dsh-client-ui-settings-general 0.2.1-rc.2 → 0.2.1-rc.3
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/README.i18n.yaml +2 -2
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/lib/client.js +8 -2
- package/package.json +18 -17
package/README.i18n.yaml
CHANGED
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
en: 2bc21e57fe17eab9
|
|
19
19
|
zh: e441cd313f747b22
|
|
20
20
|
/deepseek-ai-dsh-client-ui-settings-general/use-this-package/the-general-section:
|
|
21
|
-
en:
|
|
22
|
-
zh:
|
|
21
|
+
en: de35e867b2a56d73
|
|
22
|
+
zh: 6d4e5c912636f889
|
|
23
23
|
/deepseek-ai-dsh-client-ui-settings-general/use-this-package/opening-the-configuration-file:
|
|
24
24
|
en: 597df68b5913e8d7
|
|
25
25
|
zh: bc9114f3e877679a
|
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@ Settings visibility and section selection live in the shell owner store. The she
|
|
|
43
43
|
|
|
44
44
|
The current release version appears at the bottom of General Settings in Web and Desktop, using the build’s `DSH_CLIENT_VERSION` metadata and the active language. Partial builds without version metadata omit the row.
|
|
45
45
|
|
|
46
|
-
The Coding Tools switch controls the shared `ui-settings.enabled` preference described by [ui-settings](../ui-settings/README.md#use-this-package). It is available in both Web and desktop, follows accepted changes immediately, and disables duplicate input while a write settles. A failed write displays localized retry guidance.
|
|
46
|
+
The Coding Tools switch controls the shared `ui-settings.enabled` preference described by [ui-settings](../ui-settings/README.md#use-this-package). It is available in both Web and desktop, follows accepted changes immediately, and disables duplicate input while a write settles. A failed write displays localized retry guidance. On Desktop, a change made with this switch reports `code_work_view_toggle` with the new value through the optional [product analytics](../product-analytics/README.md) service, timestamped at the click. Only a write that changes a known value and leaves the preference at the requested value reports; requesting the current value, an unknown previous value, a failed write, and preference updates made elsewhere report nothing.
|
|
47
47
|
|
|
48
48
|
The General section holds the built-in Coding Tools and Current version rows alongside rows registered into `settings.general.item` by feature packages. Each registrant owns its row copy and behavior. The Appearance row, for example, lives in ui-theme.
|
|
49
49
|
|
package/README.zh.md
CHANGED
|
@@ -43,7 +43,7 @@ kind: "package-reference"
|
|
|
43
43
|
|
|
44
44
|
Web 与桌面端的通用设置底部显示当前发布版本,使用构建注入的 `DSH_CLIENT_VERSION` 元数据和当前语言。缺少版本元数据的局部构建不显示该行。
|
|
45
45
|
|
|
46
|
-
代码工作工具开关控制 [ui-settings](../ui-settings/README.zh.md#use-this-package) 定义的共享偏好 `ui-settings.enabled`。Web
|
|
46
|
+
代码工作工具开关控制 [ui-settings](../ui-settings/README.zh.md#use-this-package) 定义的共享偏好 `ui-settings.enabled`。Web 和桌面端均提供此开关,立即跟随已接受的变更,并在写入完成前禁用重复输入。写入失败时显示本地化的重试提示。在桌面端,通过此开关做出的变更会经可选的[产品埋点](../product-analytics/README.zh.md)服务报告携带新值的 `code_work_view_toggle`,时间戳取点击时刻。只有改变已知值、且写入后偏好等于所请求值的写入才会报告;请求当前值、原值未知、写入失败以及在其他位置修改偏好均不报告。
|
|
47
47
|
|
|
48
48
|
「通用」分区承载内置的代码工作工具行与当前版本行,以及功能包注册进 `settings.general.item` 的行。每个注册方拥有自己的行文案与行为。例如「外观」行位于 ui-theme。
|
|
49
49
|
|
package/lib/client.js
CHANGED
|
@@ -660,7 +660,7 @@ window.__ModuleLoader__.load({
|
|
|
660
660
|
function CurrentVersionRow({ t }) {
|
|
661
661
|
return (0, react_jsx_runtime.jsx)("div", {
|
|
662
662
|
className: CurrentVersionRow_module_css_default.row,
|
|
663
|
-
children: t("general.currentVersion", { version: "0.2.1-rc.
|
|
663
|
+
children: t("general.currentVersion", { version: "0.2.1-rc.3" })
|
|
664
664
|
});
|
|
665
665
|
}
|
|
666
666
|
//#endregion
|
|
@@ -1083,7 +1083,13 @@ window.__ModuleLoader__.load({
|
|
|
1083
1083
|
locale: NS,
|
|
1084
1084
|
inject: () => ({
|
|
1085
1085
|
hooks: { developerTools: ctx.configForms.developerTools.enabled },
|
|
1086
|
-
setEnabled: (enabled) =>
|
|
1086
|
+
setEnabled: async (enabled) => {
|
|
1087
|
+
const settings = ctx.configForms.get("ui-settings");
|
|
1088
|
+
const previous = settings.getSnapshot().value?.enabled;
|
|
1089
|
+
const timestamp = Date.now();
|
|
1090
|
+
await ctx.configForms.developerTools.setEnabled(enabled);
|
|
1091
|
+
if (previous !== void 0 && previous !== enabled && settings.getSnapshot().value?.enabled === enabled) ctx.get("productAnalytics")?.track("code_work_view_toggle", { is_enabled: enabled }, timestamp);
|
|
1092
|
+
}
|
|
1087
1093
|
})
|
|
1088
1094
|
}, DeveloperToolsRow));
|
|
1089
1095
|
ctx.slots.inject("settings.general.item", () => ctx.slots.register({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-client-ui-settings-general",
|
|
3
3
|
"description": "Settings ownerless-copy and product onboarding plugin: the General section, shell trigger/header chrome content, settings dictionaries, and the versioned welcome notice",
|
|
4
|
-
"version": "0.2.1-rc.
|
|
4
|
+
"version": "0.2.1-rc.3",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -53,25 +53,26 @@
|
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@deepseek-ai/cordis": "~4.0.5",
|
|
56
|
-
"@deepseek-ai/dsh-api-remotes": "0.2.1-rc.
|
|
57
|
-
"@deepseek-ai/dsh-client-connection": "0.2.1-rc.
|
|
58
|
-
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.
|
|
59
|
-
"@deepseek-ai/dsh-client-modules": "0.2.1-rc.
|
|
60
|
-
"@deepseek-ai/dsh-client-
|
|
61
|
-
"@deepseek-ai/dsh-client-
|
|
62
|
-
"@deepseek-ai/dsh-client-
|
|
63
|
-
"@deepseek-ai/dsh-client-ui-
|
|
64
|
-
"@deepseek-ai/dsh-client-ui-
|
|
65
|
-
"@deepseek-ai/dsh-client-ui-
|
|
66
|
-
"@deepseek-ai/dsh-client-ui-
|
|
67
|
-
"@deepseek-ai/dsh-client-ui-
|
|
68
|
-
"@deepseek-ai/dsh-client-ui-
|
|
69
|
-
"@deepseek-ai/dsh-
|
|
56
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.1-rc.3",
|
|
57
|
+
"@deepseek-ai/dsh-client-connection": "0.2.1-rc.3",
|
|
58
|
+
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.3",
|
|
59
|
+
"@deepseek-ai/dsh-client-modules": "0.2.1-rc.3",
|
|
60
|
+
"@deepseek-ai/dsh-client-product-analytics": "0.2.1-rc.3",
|
|
61
|
+
"@deepseek-ai/dsh-client-store": "0.2.1-rc.3",
|
|
62
|
+
"@deepseek-ai/dsh-client-test-runtime": "0.2.1-rc.3",
|
|
63
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.3",
|
|
64
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.3",
|
|
65
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.3",
|
|
66
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.1-rc.3",
|
|
67
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.3",
|
|
68
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-rc.3",
|
|
69
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.3",
|
|
70
|
+
"@deepseek-ai/dsh-remote-mock": "0.2.1-rc.3",
|
|
70
71
|
"clsx": "^2.0.0",
|
|
71
72
|
"react": "^18.2.0",
|
|
72
|
-
"@deepseek-ai/dsh-settings": "0.2.1-rc.
|
|
73
|
+
"@deepseek-ai/dsh-settings": "0.2.1-rc.3",
|
|
73
74
|
"react-dom": "^18.2.0",
|
|
74
|
-
"@deepseek-ai/dsh-client-shortcuts": "0.2.1-rc.
|
|
75
|
+
"@deepseek-ai/dsh-client-shortcuts": "0.2.1-rc.3"
|
|
75
76
|
},
|
|
76
77
|
"files": [
|
|
77
78
|
"locale/*.json",
|