@korso/shepherd-ui 0.2.0 → 0.2.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/README.md +47 -47
- package/dist/ShepherdRoot.js +15 -57
- package/dist/components/Dashboard.d.ts +16 -2
- package/dist/components/Dashboard.js +76 -5
- package/dist/config/ConnectAgent.js +4 -4
- package/dist/config/EmptyState.js +5 -1
- package/dist/config/Members.js +4 -4
- package/dist/config/Workspaces.js +1 -1
- package/dist/lib/{Dashboard-CG6KeFQ3.js → Dashboard-B7nioe5N.js} +529 -457
- package/dist/lib/index.d.ts +15 -1
- package/dist/lib/index.js +300 -359
- package/dist/lib/selfhost.js +1 -1
- package/dist/lib/styles.css +252 -209
- package/dist/selfhost/assets/index-COMbJ-a4.js +40 -0
- package/dist/selfhost/assets/index-CcGvL65Q.css +1 -0
- package/dist/selfhost/index.html +13 -13
- package/dist/useLandscapePolling.d.ts +7 -0
- package/dist/useLandscapePolling.js +6 -1
- package/package.json +67 -67
- package/dist/ShepherdProvider.d.ts +0 -12
- package/dist/ShepherdProvider.js +0 -33
- package/dist/ShepherdProvider.test.d.ts +0 -1
- package/dist/ShepherdProvider.test.js +0 -47
- package/dist/ShepherdRoot.routing.test.d.ts +0 -1
- package/dist/ShepherdRoot.routing.test.js +0 -61
- package/dist/ShepherdRoot.test.d.ts +0 -1
- package/dist/ShepherdRoot.test.js +0 -37
- package/dist/app/assets/index-CDOCIg6s.js +0 -11
- package/dist/app/index.html +0 -12
- package/dist/client.test.d.ts +0 -1
- package/dist/client.test.js +0 -298
- package/dist/config/ConnectAgent.test.d.ts +0 -1
- package/dist/config/ConnectAgent.test.js +0 -92
- package/dist/config/EmptyState.test.d.ts +0 -1
- package/dist/config/EmptyState.test.js +0 -32
- package/dist/config/Members.test.d.ts +0 -1
- package/dist/config/Members.test.js +0 -66
- package/dist/config/Workspaces.test.d.ts +0 -1
- package/dist/config/Workspaces.test.js +0 -90
- package/dist/index.cjs +0 -5289
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -149
- package/dist/index.js.map +0 -1
- package/dist/selfhost/assets/index-BZmImfYZ.css +0 -1
- package/dist/selfhost/assets/index-CS268KSw.js +0 -40
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/setup.js +0 -2
- package/dist/views/Chat.d.ts +0 -5
- package/dist/views/Chat.js +0 -60
- package/dist/views/Chat.test.d.ts +0 -1
- package/dist/views/Chat.test.js +0 -92
- package/dist/views/Config.d.ts +0 -12
- package/dist/views/Config.js +0 -6
- package/dist/views/Tasks.d.ts +0 -5
- package/dist/views/Tasks.js +0 -75
- package/dist/views/Tasks.test.d.ts +0 -1
- package/dist/views/Tasks.test.js +0 -115
- package/dist/views/useLandscape.d.ts +0 -14
- package/dist/views/useLandscape.js +0 -74
- package/dist/views/useLandscape.test.d.ts +0 -1
- package/dist/views/useLandscape.test.js +0 -101
- package/dist/views/wallboard.d.ts +0 -46
- package/dist/views/wallboard.js +0 -209
- package/dist/views/wallboard.test.d.ts +0 -1
- package/dist/views/wallboard.test.js +0 -143
package/dist/lib/index.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ declare type CreateWorkspaceResponseT = z.infer<typeof CreateWorkspaceResponse>;
|
|
|
92
92
|
*
|
|
93
93
|
* @returns The dashboard element.
|
|
94
94
|
*/
|
|
95
|
-
export declare function Dashboard({ workspaceId }?: DashboardProps): ReactElement;
|
|
95
|
+
export declare function Dashboard({ workspaceId, config, hasWorkspace, }?: DashboardProps): ReactElement;
|
|
96
96
|
|
|
97
97
|
/** Props for {@link Dashboard}. The client comes from context. */
|
|
98
98
|
export declare interface DashboardProps {
|
|
@@ -103,6 +103,20 @@ export declare interface DashboardProps {
|
|
|
103
103
|
* aliases, so a no-id render is unchanged.
|
|
104
104
|
*/
|
|
105
105
|
workspaceId?: string;
|
|
106
|
+
/**
|
|
107
|
+
* The hosted-shell management view. When supplied, a third `Config` tab is
|
|
108
|
+
* shown beside `Tasks`/`Chat` and this node renders in its panel. Omitting it
|
|
109
|
+
* (the self-host case) keeps the board a plain two-tab Tasks/Chat wallboard.
|
|
110
|
+
*/
|
|
111
|
+
config?: ReactNode;
|
|
112
|
+
/**
|
|
113
|
+
* Whether the account currently belongs to a workspace. Only meaningful in the
|
|
114
|
+
* hosted shell (paired with {@link config}). When `false`, the Tasks/Chat
|
|
115
|
+
* panels show an {@link EmptyState} prompt instead of a board, the board does
|
|
116
|
+
* not poll, and the view lands on Config. Defaults to "yes" (self-host always
|
|
117
|
+
* has its implicit team workspace).
|
|
118
|
+
*/
|
|
119
|
+
hasWorkspace?: boolean;
|
|
106
120
|
}
|
|
107
121
|
|
|
108
122
|
/**
|