@ash-qw/dsh-theme-prts 2.5.0 → 2.5.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/CHANGELOG.md +19 -0
- package/README.en.md +3 -3
- package/README.md +3 -3
- package/lib/client.js +7 -5
- package/package.json +2 -2
- package/src/client/conversation-control-adapter.js +1 -1
- package/src/client/sidebar-control-adapter.js +5 -2
- package/src/styles/custom-background.css +6 -0
- package/src/styles/refinement.css +6 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ash-qw/dsh-theme-prts",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Unofficial Arknights P.R.T.S.-inspired UI theme for DeepSeek Harness Web and the official desktop client",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=20.9.0",
|
|
72
|
-
"dsh": "0.2.1-rc.2"
|
|
72
|
+
"dsh": "0.2.1-rc.2 || 0.2.1-rc.3"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@playwright/test": "1.55.1",
|
|
@@ -138,7 +138,7 @@ function mountBodyTargetFrame(document, window, operation) {
|
|
|
138
138
|
// Nonvisual hosts can still mount the theme without an animation clock.
|
|
139
139
|
if (!window?.requestAnimationFrame || !window?.cancelAnimationFrame) return () => {}
|
|
140
140
|
const composerButton=':is([data-composer-card],[data-prts-composer-fallback]) button:not([data-slot="conversation.input.attachments"] *,[data-prts-glass-menu] *,[data-prts-floating-glass] *,[role="menu"] *,[role="listbox"] *)'
|
|
141
|
-
const selector='[data-prts-conversation-control],[data-presented-file],[data-changed-files],[data-produced-files-row] > button,[data-prts-glass-control],[data-prts-
|
|
141
|
+
const selector='[data-prts-conversation-control],[data-presented-file],[data-changed-files],[data-produced-files-row] > button,[data-prts-glass-control],[data-prts-footer-action],[data-prts-transfer] button,'+composerButton
|
|
142
142
|
const frame=document.createElement('div')
|
|
143
143
|
frame.setAttribute('data-prts-body-target-frame','');frame.setAttribute('aria-hidden','true')
|
|
144
144
|
const corners=Array.from({length:4},()=>frame.appendChild(document.createElement('i')))
|
|
@@ -104,8 +104,11 @@ function markSidebarNode(node, attribute, next) {
|
|
|
104
104
|
function resolveRowControls(row, kind) {
|
|
105
105
|
const menu = row.querySelector(':scope > span > span > button[type="button"]')
|
|
106
106
|
const anchor = menu?.parentElement
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
// Ungrouped workspaces have a create button but no management menu.
|
|
108
|
+
const actions = anchor?.parentElement ?? (kind === 'workspace'
|
|
109
|
+
? Array.from(row.children).find(node => node.matches('span') && node.querySelector(':scope > button[type="button"]'))
|
|
110
|
+
: undefined)
|
|
111
|
+
if (actions?.parentElement !== row) return {}
|
|
109
112
|
const create = kind === 'workspace'
|
|
110
113
|
? actions.querySelector(':scope > button[type="button"]')
|
|
111
114
|
: undefined
|
|
@@ -345,6 +345,12 @@ html[data-dsh-prts] [data-prts-settings-section="background"] [data-prts-backgro
|
|
|
345
345
|
[data-prts-composer-glass-setting], [data-prts-composer-glass-required] { display: block; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--prts-line); }
|
|
346
346
|
[data-prts-composer-glass-required] { font-size: 12px; color: var(--prts-muted); }
|
|
347
347
|
|
|
348
|
+
/* Pending questions, approvals and plan reviews replace the glass composer.
|
|
349
|
+
* Keep its full-width seat clear even while no glass card is mounted. */
|
|
350
|
+
html[data-dsh-prts]:is([data-prts-background-mode="full"][data-prts-background-full],[data-prts-background-mode="split"][data-prts-background-conversation]) [data-composer-seat] {
|
|
351
|
+
background: transparent !important;
|
|
352
|
+
}
|
|
353
|
+
|
|
348
354
|
/* The native active composer fades into DSH's base color. Baker paints a
|
|
349
355
|
* different solid backdrop, so match that backdrop while keeping the fade. */
|
|
350
356
|
html[data-dsh-prts][data-prts-conversation-style="deck-chat"][data-prts-background-mode="off"] [data-phase="active"] [data-composer-seat]:not(:has([data-prts-composer-glass-active])) {
|
|
@@ -32,20 +32,12 @@ html[data-dsh-prts] [data-prts-region="sessions"] [data-slot="sidebar.settings"]
|
|
|
32
32
|
color: var(--prts-ink) !important;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
/*
|
|
36
|
-
html[data-dsh-prts] [data-prts-workspace-icon]
|
|
37
|
-
display: none !important;
|
|
38
|
-
}
|
|
39
|
-
|
|
35
|
+
/* Keep native folder/chevron visibility and active color; align their shared seat. */
|
|
36
|
+
html[data-dsh-prts] [data-prts-workspace-icon],
|
|
40
37
|
html[data-dsh-prts] [data-prts-workspace-disclosure] {
|
|
41
38
|
position: relative;
|
|
42
39
|
z-index: 4;
|
|
43
|
-
width: 14px;
|
|
44
|
-
flex: 0 0 14px;
|
|
45
|
-
display: grid;
|
|
46
|
-
place-items: center;
|
|
47
40
|
margin-left: calc(var(--prts-spine-width) + 4px);
|
|
48
|
-
color: var(--prts-muted);
|
|
49
41
|
transform: translate3d(var(--prts-row-shift), 0, 0);
|
|
50
42
|
transition: transform 220ms var(--prts-ease-spring), color 160ms ease;
|
|
51
43
|
}
|
|
@@ -97,6 +89,10 @@ html[data-dsh-prts] [data-prts-workspace-actions] {
|
|
|
97
89
|
width: 57px !important;
|
|
98
90
|
}
|
|
99
91
|
|
|
92
|
+
html[data-dsh-prts] [data-prts-workspace-actions]:has(> [data-prts-workspace-create]:only-child) {
|
|
93
|
+
width: 28px !important;
|
|
94
|
+
}
|
|
95
|
+
|
|
100
96
|
html[data-dsh-prts] [data-prts-session-actions] {
|
|
101
97
|
width: auto !important;
|
|
102
98
|
}
|