|
|
@@ -22,8 +22,8 @@
|
|
|
* and a hole has exactly one declaring entry — they carry the same owner
|
|
|
* contract and the same occupant.
|
|
|
*/
|
|
|
-import type { HostDescription, HostDescriptionSource } from '@deepseek-ai/dsh-client-connection/client'
|
|
|
-import type { HostObservable, PropsLocale, PropsRenderSlots, PropsRuntime, PropsStore, SnapshotSelectorHook } from '@deepseek-ai/dsh-client-ui-slots'
|
|
|
+import type { HostDescriptionSource } from '@deepseek-ai/dsh-client-connection/client'
|
|
|
+import type { HostObservable, PropsHooks, PropsLocale, PropsRenderSlots, PropsRuntime, PropsStore } from '@deepseek-ai/dsh-client-ui-slots'
|
|
|
// Type-only: pull the owner SlotMap merges into programs that resolve the
|
|
|
// runtime shares below.
|
|
|
import type {} from '@deepseek-ai/dsh-client-ui-sidebar/client'
|
|
|
@@ -80,17 +80,14 @@ export type DirectoryPickingInjected = {
|
|
|
}
|
|
|
|
|
|
/** Component-side view of the picking share: the bound occupancy selector hook. */
|
|
|
-export type DirectoryPickingHooks = {
|
|
|
- /** Selector hook over this surface's directory-flow occupancy. */
|
|
|
- useDirectoryFlow: SnapshotSelectorHook<boolean>
|
|
|
-}
|
|
|
+export type DirectoryPickingHooks = PropsHooks<DirectoryPickingInjected['hooks']>
|
|
|
|
|
|
/**
|
|
|
* Browser-private injected share (arrives via the register inject factory).
|
|
|
* Data reads use the global framework hooks; these are the Host actions the
|
|
|
* browsing region drives.
|
|
|
*/
|
|
|
-export type WorkspaceBrowserInjected = DirectoryPickingInjected & {
|
|
|
+export type WorkspaceBrowserInjected = {
|
|
|
hooks: DirectoryPickingInjected['hooks'] & {
|
|
|
/** Current generation's Host description, bound by the slot renderer. */
|
|
|
hostDescription: HostDescriptionSource
|
|
|
@@ -148,11 +145,7 @@ export type WorkspaceBrowserProps =
|
|
|
& PropsRenderSlots<'sidebar.workspaces.directoryFlow'>
|
|
|
& PropsStore<ReturnType<typeof createWorkspaceViewStore>>
|
|
|
& Omit<WorkspaceBrowserInjected, 'hooks'>
|
|
|
- & DirectoryPickingHooks
|
|
|
- & {
|
|
|
- /** Selector hook over the current generation's Host description. */
|
|
|
- useHostDescription: SnapshotSelectorHook<HostDescription | undefined>
|
|
|
- }
|
|
|
+ & PropsHooks<WorkspaceBrowserInjected['hooks']>
|
|
|
& PropsLocale<'workspace'>
|
|
|
|
|
|
/**
|