@deepseek-ai/dsh-client-ui-slots 0.1.2-rc.1 → 0.1.5-alpha.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/README.i18n.yaml +2 -2
- package/README.md +1 -2
- package/README.zh.md +1 -2
- package/lib/types/index.d.ts +8 -0
- package/package.json +3 -3
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-slots/README.md
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 1e3775221ea68bb81dba5ee6c65d58fe7520912e
|
|
6
|
+
README.zh.md: 8c769d355ef21016cde2c2100ffc5ac120dff7ae
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
|
|
|
9
9
|
|
|
10
10
|
## Summary
|
|
11
11
|
|
|
12
|
-
`dsh-client-ui-slots`
|
|
12
|
+
`dsh-client-ui-slots` lets web client plugins define and compose typed UI regions. Callers can add components, declare nested regions, attach scoped state, and supply business props through one compile-time-checked API. It supports single, ordered-list, keyed, and self-selecting chain composition, and reports conflicting compositions during plugin loading. Choose it for framework-neutral slot composition; pair it with `ui-renderer` when the client needs React rendering.
|
|
13
13
|
|
|
14
14
|
## Table of Contents
|
|
15
15
|
|
|
@@ -66,7 +66,6 @@ The design is one table: declaration = render authorization = runtime spec. `Slo
|
|
|
66
66
|
|
|
67
67
|
These pages cover the engine, the renderer, and the composition model.
|
|
68
68
|
|
|
69
|
-
- [Slot declaration injection decision](../../../.agents/notes/implemented/architecture/2026-08-05-slot-declaration-injection.md) — the lifecycle rules behind `ctx.slots.inject`.
|
|
70
69
|
- [ui-renderer](../ui-renderer/README.md) — the React slot renderer implementing this package's install contract.
|
|
71
70
|
- [Slot system standard](../../../.agents/notes/implemented/architecture/2026-07-22-slot-type-chain-implementation.md) — the definitive composition model.
|
|
72
71
|
- [Web client architecture](../../../.agents/notes/implemented/architecture/2026-07-19-gui-web-client-architecture.md) — the loading chain and object layer this registry plugs into.
|
package/README.zh.md
CHANGED
|
@@ -9,7 +9,7 @@ kind: "package-library"
|
|
|
9
9
|
|
|
10
10
|
## 概述
|
|
11
11
|
|
|
12
|
-
`dsh-client-ui-slots`
|
|
12
|
+
`dsh-client-ui-slots` 让 Web 客户端插件定义并组合带类型检查的 UI 区域。调用方可以通过一个在编译期检查的 API 添加组件、声明嵌套区域、附加作用域状态并提供业务 props。它支持单项、有序列表、键控和自行选择的 chain 组合,并会在插件加载期间报告冲突组合。需要与框架无关的 slot 组合时选择本包;客户端需要 React 渲染时与 `ui-renderer` 配合使用。
|
|
13
13
|
|
|
14
14
|
## 目录
|
|
15
15
|
|
|
@@ -66,7 +66,6 @@ register 调用可以用 `store: defineStore(...)` 声明 store 席位:`init`
|
|
|
66
66
|
|
|
67
67
|
以下页面覆盖引擎、渲染器与组合模型。
|
|
68
68
|
|
|
69
|
-
- [Slot 声明注入决策](../../../.agents/notes/implemented/architecture/2026-08-05-slot-declaration-injection.zh.md)——`ctx.slots.inject` 背后的生命周期规则。
|
|
70
69
|
- [ui-renderer](../ui-renderer/README.zh.md)——实现本包安装约定的 React slot 渲染器。
|
|
71
70
|
- [slot 系统标准](../../../.agents/notes/implemented/architecture/2026-07-22-slot-type-chain-implementation.zh.md)——权威组合模型。
|
|
72
71
|
- [Web 客户端架构](../../../.agents/notes/implemented/architecture/2026-07-19-gui-web-client-architecture.zh.md)——本注册表接入的加载链与对象层。
|
package/lib/types/index.d.ts
CHANGED
|
@@ -26,6 +26,14 @@ export interface SlotMap {
|
|
|
26
26
|
*/
|
|
27
27
|
export interface LocaleNamespaceMap {
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Resource protocol (URL scheme) → the value its provider streams. Declared
|
|
31
|
+
* empty here, the zero-dependency merge point; each protocol owner merges its
|
|
32
|
+
* own member (`file`, later `chat`), and `useResource<P>(address)` narrows its
|
|
33
|
+
* value by `P`. The resource service itself lives in `dsh-client-resources`.
|
|
34
|
+
*/
|
|
35
|
+
export interface ResourceProtocolMap {
|
|
36
|
+
}
|
|
29
37
|
/**
|
|
30
38
|
* Translate a dictionary key with optional `{name}` template params.
|
|
31
39
|
* `K` narrows the accepted keys to the owning namespace's dictionary union
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-client-ui-slots",
|
|
3
3
|
"description": "Slot registry pure core: SlotMap declaration merging, single register composition API, four-share props types, store-seat types, renderer install seam",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.5-alpha.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/react": "~18.3.1",
|
|
27
|
-
"@deepseek-ai/
|
|
28
|
-
"@deepseek-ai/
|
|
27
|
+
"@deepseek-ai/dsh-client-store": "^0.1.5-alpha.1",
|
|
28
|
+
"@deepseek-ai/cordis": "^4.0.2"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"lib/index.js",
|