@korso/shepherd-ui 0.10.0 → 0.11.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.
@@ -3,7 +3,7 @@ import { ReactElement } from 'react';
3
3
  import { ReactNode } from 'react';
4
4
  import { z } from 'zod';
5
5
 
6
- export declare function ConfigPanel({ workspace, hubUrl, membersRefreshKey, onMembersChanged, onLeft, onDeleted, }: ConfigPanelProps): JSX_2.Element;
6
+ export declare function ConfigPanel({ workspace, hubUrl, membersRefreshKey, onMembersChanged, onLeft, onDeleted, onLogout, }: ConfigPanelProps): JSX_2.Element;
7
7
 
8
8
  export declare interface ConfigPanelProps {
9
9
  /** The active workspace all sections configure. */
@@ -18,6 +18,11 @@ export declare interface ConfigPanelProps {
18
18
  onLeft?: () => void;
19
19
  /** Called after a successful delete, so the shell re-lists its workspaces. */
20
20
  onDeleted?: () => void;
21
+ /**
22
+ * Hosted session logout hook. Shepherd renders the control while the host owns
23
+ * the authentication side effect.
24
+ */
25
+ onLogout?: () => void;
21
26
  }
22
27
 
23
28
  export declare function ConnectAgent({ hubUrl }: ConnectAgentProps): JSX_2.Element;
@@ -108,7 +113,7 @@ declare type CreateWorkspaceResponseT = z.infer<typeof CreateWorkspaceResponse>;
108
113
  *
109
114
  * @returns The dashboard element.
110
115
  */
111
- export declare function Dashboard({ workspaceId, config, switcher, hasWorkspace, }?: DashboardProps): ReactElement;
116
+ export declare function Dashboard({ workspaceId, config, switcher, hasWorkspace, onLogout, }?: DashboardProps): ReactElement;
112
117
 
113
118
  /** Props for {@link Dashboard}. The client comes from context. */
114
119
  export declare interface DashboardProps {
@@ -139,6 +144,11 @@ export declare interface DashboardProps {
139
144
  * has its implicit team workspace).
140
145
  */
141
146
  hasWorkspace?: boolean;
147
+ /**
148
+ * Optional header logout seam. The dashboard only renders the control and
149
+ * invokes this callback; authentication side effects belong to the caller.
150
+ */
151
+ onLogout?: () => void;
142
152
  }
143
153
 
144
154
  declare const DeleteWorkspaceResponse: z.ZodObject<{
@@ -602,7 +612,7 @@ declare interface ShepherdClientProviderProps {
602
612
  children: ReactNode;
603
613
  }
604
614
 
605
- export declare function ShepherdRoot({ hubUrl }: ShepherdRootProps): JSX_2.Element;
615
+ export declare function ShepherdRoot({ hubUrl, onLogout }: ShepherdRootProps): JSX_2.Element;
606
616
 
607
617
  export declare interface ShepherdRootProps {
608
618
  /**
@@ -611,6 +621,11 @@ export declare interface ShepherdRootProps {
611
621
  * to the client's baseUrl, which is correct for self-host.
612
622
  */
613
623
  hubUrl?: string;
624
+ /**
625
+ * Hosted session logout hook. The embedding frontend/BFF owns cookies,
626
+ * session state, and OIDC cleanup; Shepherd only renders the Config action.
627
+ */
628
+ onLogout?: () => void;
614
629
  }
615
630
 
616
631
  declare const TokenSummary: z.ZodObject<{