@deepseek-ai/dsh-client-ui-primitives 0.1.2-alpha.3 → 0.1.2-alpha.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/README.i18n.yaml +2 -2
- package/README.md +2 -0
- package/README.zh.md +2 -0
- package/lib/Button.module.css +1 -1
- package/lib/Input.module.css +1 -1
- package/lib/Menu.module.css +7 -6
- package/lib/Modal.module.css +3 -3
- package/lib/StateDot.module.css +2 -0
- package/lib/TerminalBlock.module.css +1 -1
- package/lib/markdown/JsonBlock.module.css +1 -1
- package/lib/markdown/MarkdownText.module.css +3 -3
- package/package.json +1 -7
- package/lib/invariant.js +0 -26
- package/lib/types/invariant.d.ts +0 -16
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-primitives/README.md
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 78cb6caec665687feb1c18c65e1afe47c6e01ea1
|
|
6
|
+
README.zh.md: 1450de83f88e4e33be4616ebd1f70588dd19e8d2
|
package/README.md
CHANGED
|
@@ -119,3 +119,5 @@ These limits define how the atoms behave at the edges; they are current package
|
|
|
119
119
|
None.
|
|
120
120
|
|
|
121
121
|
</details>
|
|
122
|
+
|
|
123
|
+
**Runtime invariant:** No companion is published. Pure props-in React atoms with no Cordis API — no events, no services, no mutable cross-plugin state; rendering contracts are asserted directly by this package's component specs.
|
package/README.zh.md
CHANGED
package/lib/Button.module.css
CHANGED
package/lib/Input.module.css
CHANGED
package/lib/Menu.module.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
/* Dropdown card (figma MenuDropdown 122:9481 / 419:16920): menu surface,
|
|
7
|
-
* r12,
|
|
7
|
+
* r12, elevation-prominent (hairline stroke in shadow), 4px inset padding. */
|
|
8
8
|
.list,
|
|
9
9
|
.submenu {
|
|
10
10
|
/* min-widths below are the design's outer card widths — include the pad. */
|
|
@@ -13,10 +13,11 @@
|
|
|
13
13
|
display: flex;
|
|
14
14
|
flex-direction: column;
|
|
15
15
|
gap: 0;
|
|
16
|
-
border:
|
|
17
|
-
border-radius:
|
|
16
|
+
border: 0;
|
|
17
|
+
border-radius: 20px;
|
|
18
18
|
background: var(--dsw-specific-menu);
|
|
19
|
-
|
|
19
|
+
--dsw-elevation-stroke-color: var(--dsw-alias-border-l1);
|
|
20
|
+
box-shadow: var(--dsw-elevation-prominent);
|
|
20
21
|
/* Elevated surface: the scrollbar thumb takes the l2 elevation tokens. The
|
|
21
22
|
declaration sits on the card rather than on `.scrollable .viewport`
|
|
22
23
|
because the elevation is a property of this surface, and the custom
|
|
@@ -85,7 +86,7 @@
|
|
|
85
86
|
flex-direction: column;
|
|
86
87
|
margin-top: 4px;
|
|
87
88
|
padding-top: 4px;
|
|
88
|
-
border-top:
|
|
89
|
+
border-top: 0.5px solid var(--dsw-alias-border-l2);
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
.itemWrap {
|
|
@@ -212,7 +213,7 @@
|
|
|
212
213
|
|
|
213
214
|
/* Separator cell (figma 122:9481): py 4 / px 2 around the hairline. */
|
|
214
215
|
.separator {
|
|
215
|
-
height:
|
|
216
|
+
height: 0.5px;
|
|
216
217
|
margin: 4px 2px;
|
|
217
218
|
background: var(--dsw-alias-border-l1);
|
|
218
219
|
}
|
package/lib/Modal.module.css
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
backdrop-filter: var(--dsw-mask-blur);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
/* Dialog card: r24,
|
|
21
|
+
/* Dialog card: r24, elevation-prominent, layer-2 fill, pb 24. */
|
|
22
22
|
.dialog {
|
|
23
23
|
position: relative;
|
|
24
24
|
z-index: 1;
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
width: min(380px, 100%);
|
|
29
29
|
padding: 0 0 24px;
|
|
30
30
|
overflow: hidden;
|
|
31
|
-
border:
|
|
31
|
+
border: 0;
|
|
32
32
|
border-radius: 24px;
|
|
33
33
|
background: var(--dsw-alias-bg-layer-2);
|
|
34
|
-
box-shadow: var(--dsw-
|
|
34
|
+
box-shadow: var(--dsw-elevation-prominent);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.content {
|
package/lib/StateDot.module.css
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
position: absolute;
|
|
19
19
|
inset: 0;
|
|
20
20
|
border-radius: 50%;
|
|
21
|
+
corner-shape: round;
|
|
21
22
|
background: currentColor;
|
|
22
23
|
opacity: 0.1;
|
|
23
24
|
}
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
position: absolute;
|
|
28
29
|
inset: 20%;
|
|
29
30
|
border-radius: 50%;
|
|
31
|
+
corner-shape: round;
|
|
30
32
|
background: currentColor;
|
|
31
33
|
}
|
|
32
34
|
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
divider the IN/OUT card draws between its sections. A running card is
|
|
63
63
|
banner-only, so it draws none. */
|
|
64
64
|
.block:not([data-running]) .header {
|
|
65
|
-
border-bottom:
|
|
65
|
+
border-bottom: 0.5px solid var(--dsw-alias-border-l2);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/* One row per command line. The prompt column is the only element allowed to
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
max-height: 200px;
|
|
24
24
|
overflow: auto;
|
|
25
25
|
background: var(--dsw-alias-markdown-code-block);
|
|
26
|
-
border:
|
|
26
|
+
border: 0.5px solid var(--dsw-alias-border-l1);
|
|
27
27
|
border-radius: 6px;
|
|
28
28
|
font-family: var(--ds-font-family-code);
|
|
29
29
|
font-size: 11px;
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
.markdown hr {
|
|
127
127
|
display: block;
|
|
128
128
|
border: none;
|
|
129
|
-
height:
|
|
129
|
+
height: 0.5px;
|
|
130
130
|
margin: 32px 0;
|
|
131
131
|
background: var(--dsw-alias-border-l2);
|
|
132
132
|
}
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
.tableScroll th {
|
|
226
226
|
text-align: start;
|
|
227
227
|
padding: 10px 16px;
|
|
228
|
-
border-bottom:
|
|
228
|
+
border-bottom: 0.5px solid var(--dsw-alias-border-l3);
|
|
229
229
|
border-top: none;
|
|
230
230
|
font: var(--dsw-font-markdown-table-head);
|
|
231
231
|
max-width: 320px;
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
|
|
236
236
|
.tableScroll td {
|
|
237
237
|
padding: 10px 16px;
|
|
238
|
-
border-bottom:
|
|
238
|
+
border-bottom: 0.5px solid var(--dsw-alias-border-l2);
|
|
239
239
|
font: var(--dsw-font-markdown-table);
|
|
240
240
|
max-width: 320px;
|
|
241
241
|
max-width: min(30vw, 320px);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-client-ui-primitives",
|
|
3
3
|
"description": "Pure React atoms for the dsh web UI: controls, icons, markdown, and JSON inspectors (zero cordis)",
|
|
4
|
-
"version": "0.1.2-alpha.
|
|
4
|
+
"version": "0.1.2-alpha.4",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -18,10 +18,6 @@
|
|
|
18
18
|
"types": "./lib/types/index.d.ts",
|
|
19
19
|
"default": "./lib/index.js"
|
|
20
20
|
},
|
|
21
|
-
"./invariant": {
|
|
22
|
-
"types": "./lib/types/invariant.d.ts",
|
|
23
|
-
"default": "./lib/invariant.js"
|
|
24
|
-
},
|
|
25
21
|
"./src/*": "./src/*",
|
|
26
22
|
"./package.json": "./package.json"
|
|
27
23
|
},
|
|
@@ -51,12 +47,10 @@
|
|
|
51
47
|
"devDependencies": {
|
|
52
48
|
"@types/react": "~18.3.1",
|
|
53
49
|
"@types/react-dom": "~18.3.0",
|
|
54
|
-
"@deepseek-ai/dsh-invariants": "^0.1.2-alpha.3",
|
|
55
50
|
"@deepseek-ai/cordis": "^4.0.2"
|
|
56
51
|
},
|
|
57
52
|
"files": [
|
|
58
53
|
"lib/index.js",
|
|
59
|
-
"lib/invariant.js",
|
|
60
54
|
"lib/**/*.css",
|
|
61
55
|
"lib/types/**/*.d.ts"
|
|
62
56
|
],
|
package/lib/invariant.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
//#region lib/types/invariant.js
|
|
2
|
-
/**
|
|
3
|
-
* Package-owned invariant companion for `@deepseek-ai/dsh-client-ui-primitives`.
|
|
4
|
-
* @module @deepseek-ai/dsh-client-ui-primitives/invariant
|
|
5
|
-
*/
|
|
6
|
-
const PACKAGE_NAME = "@deepseek-ai/dsh-client-ui-primitives";
|
|
7
|
-
/** Cordis companion plugin name. */
|
|
8
|
-
const name = "client-ui-primitives-invariant";
|
|
9
|
-
/** Service required before the companion can reserve package ownership. */
|
|
10
|
-
const inject = ["invariants"];
|
|
11
|
-
/**
|
|
12
|
-
* No runtime invariant: pure props-in React atoms with no Cordis API —
|
|
13
|
-
* no events, no services, no mutable cross-plugin state; rendering contracts
|
|
14
|
-
* are asserted directly by this package's component specs.
|
|
15
|
-
*/
|
|
16
|
-
const install = () => {};
|
|
17
|
-
/**
|
|
18
|
-
* Register this package's invariant companion.
|
|
19
|
-
* @param ctx - Cordis context carrying the invariant service.
|
|
20
|
-
* @returns the installed registration's disposer after setup succeeds.
|
|
21
|
-
*/
|
|
22
|
-
const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
|
|
23
|
-
//#endregion
|
|
24
|
-
export { apply, inject, name };
|
|
25
|
-
|
|
26
|
-
//# sourceMappingURL=invariant.js.map
|
package/lib/types/invariant.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Package-owned invariant companion for `@deepseek-ai/dsh-client-ui-primitives`.
|
|
3
|
-
* @module @deepseek-ai/dsh-client-ui-primitives/invariant
|
|
4
|
-
*/
|
|
5
|
-
import type { Context } from '@deepseek-ai/cordis';
|
|
6
|
-
/** Cordis companion plugin name. */
|
|
7
|
-
export declare const name = "client-ui-primitives-invariant";
|
|
8
|
-
/** Service required before the companion can reserve package ownership. */
|
|
9
|
-
export declare const inject: string[];
|
|
10
|
-
/**
|
|
11
|
-
* Register this package's invariant companion.
|
|
12
|
-
* @param ctx - Cordis context carrying the invariant service.
|
|
13
|
-
* @returns the installed registration's disposer after setup succeeds.
|
|
14
|
-
*/
|
|
15
|
-
export declare const apply: (ctx: Context) => Promise<() => void>;
|
|
16
|
-
//# sourceMappingURL=invariant.d.ts.map
|