chore: 合入 dev(0.2.3 基线适配)到统一组件分支

This commit is contained in:
Menghuan1918 committed 2026-11-25 02:06:34 +08:00
commit bf4e25db13
45 files changed
+1010 -976

No files matched your search

+5 -10
View File
@@ -1,15 +1,10 @@
/**
* Anchor selectors for the DSH AppFrame conversation slot host, newest first:
*
* - DSH 0.1.5-alpha.2 replaced the root `conversation` slot with a root-scoped
* keyed `main` slot, so the conversation renders under `main.conversation`
* (ConversationPanel -> `renderSlot('main.conversation')`);
* - alpha.1 and earlier spell the same host `conversation`.
*
* Both keys are accepted deliberately so one build spans the alpha.1 → alpha.2
* boundary; only one exists in any given host.
* Anchor selector for the DSH AppFrame conversation slot host: the conversation
* renders under the root-scoped keyed `main` slot (ConversationPanel ->
* `renderSlot('main.conversation')`), which the slot host marks with
* `data-slot="main.conversation"`.
*/
const CENTER_COLUMN_SELECTOR = '#root [data-slot="main.conversation"], #root [data-slot="conversation"]'
const CENTER_COLUMN_SELECTOR = '#root [data-slot="main.conversation"]'
/** Match Sidebar's existing last-resort retry cadence (issue #248). */
export const CENTER_COLUMN_REVALIDATE_MS = 1500
+10
View File
@@ -14,6 +14,16 @@
font: var(--dsw-font-xxs-12);
color: var(--dsw-alias-label-primary);
}
/* A bleed footer owns the window's bottom edge. The root's own bottom inset
would otherwise sit above the footer's 12px padding, leaving 26px inside the
2px floating edge instead of the intended 14px: the negative bottom margin of
`.actionFooterBleed` cannot pull the footer past the content box once the
flexing `.content` consumes every pixel, so the inset is cancelled here. */
.root:has(> [data-clue-pack-footer]),
.root:has(> [data-clue-pack-add-footer]) {
padding-bottom: 0;
}
.content {
display: flex;
flex: 1;
+1 -1
View File
@@ -1072,7 +1072,7 @@ export function matchUrlTarget(tabs: readonly TabDescriptor[], url: URL): TabDes
* The plugin version this service instance reports. Keep in lockstep with
* `package.json`'s version — `tests/service.spec.ts` asserts the pair.
*/
export const SIDEBAR_SERVICE_VERSION = '0.33.0'
export const SIDEBAR_SERVICE_VERSION = '0.34.0-alpha.0'
/**
* Monotonic capability list consumers use to gate new API usage (features
+2 -3
View File
@@ -69,9 +69,8 @@ export function useCenterColumn(
useEffect(() => {
let disposed = false
let observer: ResizeObserver | undefined
// Locate the AppFrame's center column. DSH 0.1.x wraps slot hosts in
// [data-slot] containers: the conversation slot host (key
// `main.conversation` on 0.1.5-alpha.2+, `conversation` on alpha.1)
// Locate the AppFrame's center column. The host wraps slot hosts in
// [data-slot] containers: the conversation slot host (`main.conversation`)
// sits inside the center column behind transparent `display: contents`
// slot hosts, so the resolver walks up to the first ancestor that
// renders a box — no hashed-class or positional dependency