@deepseek-ai/dsh-client-ui-settings 0.1.3-alpha.2 → 0.1.5-alpha.2

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 CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/client/ui-settings/README.md
5
- README.md: bd2f5d840f07aa12f76c72f10c52f7627509685f
6
- README.zh.md: a930f7db3631d1ddce3381d9cb30de257a7a8f17
5
+ README.md: 760b4a4567481b561ce319926149815119018177
6
+ README.zh.md: f8e2128d734b650b7cd7a10c180f90ea01b77ab5
package/README.md CHANGED
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- `dsh-client-ui-settings` is the base every preference surface in the dsh web client builds on: a feature plugin binds a namespace and stores or edits its preference rows in the Host settings document without re-implementing transport or schema handling. `ctx.settingsScope` derives a per-namespace scope from the shared document mirror with revision fencing, so a concurrent write from another surface is refused instead of silently overwritten; `ctx.settingsSchema` rehydrates and validates schemas and edits immutable paths synchronously. It declares the slot types settings surfaces fill — `settings.trigger`/`settings.header`/`settings.close` (chrome), `settings.action` (ordered header actions), `settings.section` (one page per feature), `settings.plugins.tab`, and `settings.onboarding` and renders nothing itself. Because it depends on no `ui-*` presentation package, any feature that owns a preference can reach it; the settings shell itself lives in ui-settings-general.
12
+ This package lets web-client features expose editable preferences backed by the Host settings document without implementing their own transport or schema handling. Each feature gets namespace-scoped reads and writes, atomic multi-field updates, schema validation, and protection against silently overwriting concurrent changes. It also provides the standard extension points for settings chrome, pages, header actions, plugin tabs, and onboarding while rendering no interface itself. Any preference-owning feature can use it without depending on a presentation package; a separate package provides the settings shell.
13
13
 
14
14
  ## Table of Contents
15
15
 
package/README.zh.md CHANGED
@@ -9,7 +9,7 @@ kind: "package-reference"
9
9
 
10
10
  ## 概述
11
11
 
12
- `dsh-client-ui-settings` 是 dsh Web 客户端每个偏好设置界面都依赖的底座:功能插件绑定一个命名空间,即可在宿主设置文档中存储或编辑自己的偏好设置行,而无需重新实现传输层或 schema 处理。`ctx.settingsScope` 从共享文档镜像派生按命名空间的 scope,并以 revision 设栅,因此来自另一界面的并发写入会被拒绝,而不是被静默覆盖;`ctx.settingsSchema` 同步重建并校验 schema、编辑不可变路径。它声明设置界面所填充的 slot 类型——`settings.trigger`/`settings.header`/`settings.close`(界面框架)、`settings.action`(有序标题栏操作)、`settings.section`(每项功能一页)、`settings.plugins.tab` 与 `settings.onboarding`——而自身不渲染任何内容。由于它不依赖任何 `ui-*` 呈现包,任何持有偏好设置的功能都能够到它;设置外壳本身位于 ui-settings-general。
12
+ 本包使 Web 客户端功能能够公开由宿主设置文档支持的可编辑偏好设置,而无需自行实现传输或 schema 处理。每项功能都可按命名空间读写、原子更新多个字段、校验 schema,并避免静默覆盖并发更改。它还为设置界面框架、页面、标题栏操作、插件标签页和引导流程提供标准扩展点,但自身不渲染任何界面。任何持有偏好设置的功能都可在不依赖呈现包的情况下使用它;设置外壳由单独的包提供。
13
13
 
14
14
  ## 目录
15
15
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-client-ui-settings",
3
3
  "description": "Settings domain base plugin: the settings-namespace scope service and the canonical settings slot-type contract",
4
- "version": "0.1.3-alpha.2",
4
+ "version": "0.1.5-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -41,13 +41,13 @@
41
41
  "@types/react": "~18.3.1",
42
42
  "react": "^18.2.0",
43
43
  "@deepseek-ai/cordis": "^4.0.2",
44
- "@deepseek-ai/dsh-client-test-runtime": "^0.1.3-alpha.2",
45
- "@deepseek-ai/dsh-client-store": "^0.1.3-alpha.2",
46
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.3-alpha.2",
47
- "@deepseek-ai/dsh-settings": "^0.1.3-alpha.2",
48
- "@deepseek-ai/dsh-api-remotes": "^0.1.3-alpha.2",
49
- "@deepseek-ai/dsh-util-values": "^0.1.3-alpha.2",
50
- "@deepseek-ai/schemastery": "^3.18.2"
44
+ "@deepseek-ai/dsh-api-remotes": "^0.1.5-alpha.2",
45
+ "@deepseek-ai/dsh-client-store": "^0.1.5-alpha.2",
46
+ "@deepseek-ai/dsh-client-test-runtime": "^0.1.5-alpha.2",
47
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.5-alpha.2",
48
+ "@deepseek-ai/dsh-settings": "^0.1.5-alpha.2",
49
+ "@deepseek-ai/schemastery": "^3.18.2",
50
+ "@deepseek-ai/dsh-util-values": "^0.1.5-alpha.2"
51
51
  },
52
52
  "files": [
53
53
  "lib/index.js",