@kelpie/ui 0.15.0 → 0.16.0
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/dist/api/client.d.ts +5 -4
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +2 -2
- package/dist/api/client.js.map +1 -1
- package/dist/api/resource.d.ts +4 -4
- package/dist/api/resource.d.ts.map +1 -1
- package/dist/api/resource.js +4 -5
- package/dist/api/resource.js.map +1 -1
- package/dist/api/resources/members.d.ts +2 -2
- package/dist/api/resources/oauth.d.ts +21 -0
- package/dist/api/resources/oauth.d.ts.map +1 -0
- package/dist/api/resources/oauth.js +74 -0
- package/dist/api/resources/oauth.js.map +1 -0
- package/dist/api/resources/planItems.d.ts +1 -1
- package/dist/api/resources/planItems.d.ts.map +1 -1
- package/dist/api/resources/planItems.js +1 -1
- package/dist/api/resources/planItems.js.map +1 -1
- package/dist/api/resources/session.d.ts +1 -1
- package/dist/api/resources/session.js +1 -1
- package/dist/app/KelpieApp.d.ts.map +1 -1
- package/dist/app/KelpieApp.js +3 -1
- package/dist/app/KelpieApp.js.map +1 -1
- package/dist/components/ApiKeysPanel.d.ts.map +1 -1
- package/dist/components/ApiKeysPanel.js +4 -1
- package/dist/components/ApiKeysPanel.js.map +1 -1
- package/dist/components/Paginator.d.ts +1 -1
- package/dist/components/Shell.js +1 -1
- package/dist/components/SummaryBlock.d.ts +1 -1
- package/dist/components/SummaryBlock.js +1 -1
- package/dist/lib/mcpConfig.d.ts +10 -0
- package/dist/lib/mcpConfig.d.ts.map +1 -0
- package/dist/lib/mcpConfig.js +23 -0
- package/dist/lib/mcpConfig.js.map +1 -0
- package/dist/lib/money.d.ts +2 -2
- package/dist/lib/money.js +2 -2
- package/dist/pages/DealsPage.js +1 -1
- package/dist/pages/DealsPage.js.map +1 -1
- package/dist/pages/DecisionsPage.d.ts.map +1 -1
- package/dist/pages/DecisionsPage.js +5 -3
- package/dist/pages/DecisionsPage.js.map +1 -1
- package/dist/pages/FundraisingPage.js +1 -1
- package/dist/pages/FundraisingPage.js.map +1 -1
- package/dist/pages/OpportunitiesPage.js +1 -1
- package/dist/pages/OpportunitiesPage.js.map +1 -1
- package/dist/pages/PartnershipsPage.js +1 -1
- package/dist/pages/PartnershipsPage.js.map +1 -1
- package/dist/pages/PersonDetail.js +2 -2
- package/dist/pages/PersonDetail.js.map +1 -1
- package/dist/pages/account/AccountLayout.d.ts.map +1 -1
- package/dist/pages/account/AccountLayout.js +2 -1
- package/dist/pages/account/AccountLayout.js.map +1 -1
- package/dist/pages/account/ConnectedAppsPage.d.ts +7 -0
- package/dist/pages/account/ConnectedAppsPage.d.ts.map +1 -0
- package/dist/pages/account/ConnectedAppsPage.js +32 -0
- package/dist/pages/account/ConnectedAppsPage.js.map +1 -0
- package/dist/pages/admin/McpPage.d.ts.map +1 -1
- package/dist/pages/admin/McpPage.js +6 -14
- package/dist/pages/admin/McpPage.js.map +1 -1
- package/dist/pages/admin/ModulesPage.d.ts.map +1 -1
- package/dist/pages/admin/ModulesPage.js +5 -4
- package/dist/pages/admin/ModulesPage.js.map +1 -1
- package/dist/pages/auth/AuthLayout.d.ts +1 -1
- package/dist/pages/auth/AuthLayout.d.ts.map +1 -1
- package/dist/pages/auth/AuthLayout.js +1 -1
- package/dist/pages/auth/AuthLayout.js.map +1 -1
- package/dist/pages/auth/SignUpPage.d.ts +1 -1
- package/dist/pages/auth/SignUpPage.js +1 -1
- package/dist/pages/forms/SubmissionDetail.js +1 -1
- package/dist/pages/forms/SubmissionDetail.js.map +1 -1
- package/dist/pages/forms/SubmissionsTable.d.ts.map +1 -1
- package/dist/pages/forms/SubmissionsTable.js +4 -3
- package/dist/pages/forms/SubmissionsTable.js.map +1 -1
- package/dist/pages/hiringDirectory.js +2 -2
- package/dist/pages/hiringDirectory.js.map +1 -1
- package/dist/pages/oauth/ConsentPage.d.ts +14 -0
- package/dist/pages/oauth/ConsentPage.d.ts.map +1 -0
- package/dist/pages/oauth/ConsentPage.js +87 -0
- package/dist/pages/oauth/ConsentPage.js.map +1 -0
- package/dist/pages/onboarding/onboardingModules.d.ts +1 -1
- package/dist/pages/onboarding/onboardingRerun.d.ts +1 -1
- package/dist/pages/onboarding/onboardingRerun.js +1 -1
- package/dist/pages/positionDirectory.js +2 -2
- package/dist/pages/positionDirectory.js.map +1 -1
- package/dist/registry/contributions.d.ts +1 -1
- package/dist/registry/contributions.js +1 -1
- package/dist/registry/overridable.d.ts +1 -1
- package/dist/registry/registry.d.ts +3 -3
- package/dist/registry/registry.d.ts.map +1 -1
- package/dist/registry/registry.js +1 -1
- package/package.json +2 -2
- package/src/api/client.ts +6 -5
- package/src/api/resource.ts +6 -7
- package/src/api/resources/members.ts +2 -2
- package/src/api/resources/oauth.ts +112 -0
- package/src/api/resources/planItems.ts +1 -1
- package/src/api/resources/session.ts +1 -1
- package/src/app/KelpieApp.tsx +6 -0
- package/src/components/ApiKeysPanel.tsx +17 -0
- package/src/components/Paginator.tsx +1 -1
- package/src/components/Shell.tsx +1 -1
- package/src/components/SummaryBlock.tsx +1 -1
- package/src/lib/mcpConfig.ts +24 -0
- package/src/lib/money.ts +2 -2
- package/src/pages/DealsPage.tsx +1 -1
- package/src/pages/DecisionsPage.tsx +5 -3
- package/src/pages/FormsPage.tsx +1 -1
- package/src/pages/FundraisingPage.tsx +1 -1
- package/src/pages/OpportunitiesPage.tsx +1 -1
- package/src/pages/PartnershipsPage.tsx +1 -1
- package/src/pages/PersonDetail.tsx +2 -2
- package/src/pages/account/AccountLayout.tsx +2 -1
- package/src/pages/account/ConnectedAppsPage.tsx +131 -0
- package/src/pages/admin/McpPage.tsx +37 -22
- package/src/pages/admin/ModulesPage.tsx +5 -4
- package/src/pages/auth/AuthLayout.tsx +1 -1
- package/src/pages/auth/SignUpPage.tsx +1 -1
- package/src/pages/forms/SubmissionDetail.tsx +1 -1
- package/src/pages/forms/SubmissionsTable.tsx +4 -3
- package/src/pages/hiringDirectory.ts +2 -2
- package/src/pages/oauth/ConsentPage.tsx +219 -0
- package/src/pages/onboarding/InvitesStepPage.tsx +1 -1
- package/src/pages/onboarding/onboardingModules.ts +1 -1
- package/src/pages/onboarding/onboardingRerun.ts +1 -1
- package/src/pages/positionDirectory.ts +2 -2
- package/src/registry/contributions.ts +1 -1
- package/src/registry/overridable.ts +1 -1
- package/src/registry/registry.ts +3 -3
|
@@ -22,7 +22,7 @@ export function isOnboardingRerun(searchParams: URLSearchParams): boolean {
|
|
|
22
22
|
/**
|
|
23
23
|
* Keep the rerun flag and the organisation type when moving between onboarding
|
|
24
24
|
* routes. `org` is how the modules step knows which defaults to offer; nothing
|
|
25
|
-
* else is held in the browser
|
|
25
|
+
* else is held in the browser.
|
|
26
26
|
*/
|
|
27
27
|
export function onboardingPath(path: string, rerun: boolean, org?: string | null): string {
|
|
28
28
|
const params = new URLSearchParams()
|
|
@@ -7,7 +7,7 @@ import { usePositions } from '../api/resources/positions.ts'
|
|
|
7
7
|
* Titles and company names for the people on screen, and head counts for the
|
|
8
8
|
* companies on screen.
|
|
9
9
|
*
|
|
10
|
-
* A list row needs data from three resources, and
|
|
10
|
+
* A list row needs data from three resources, and the API has no
|
|
11
11
|
* include-expansion. What it does have is repeatable id filters, so each of
|
|
12
12
|
* these asks about exactly the rows the page is rendering: two extra requests
|
|
13
13
|
* for the page, not one per row, and no cap that a real workspace could grow
|
|
@@ -18,7 +18,7 @@ import { usePositions } from '../api/resources/positions.ts'
|
|
|
18
18
|
* answer rather than a slow one.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
/**
|
|
21
|
+
/** `?limit=` and an id filter both max out at 200 (`docs/agents/api-and-webhooks.md`). */
|
|
22
22
|
const MAX_PAGE = 200
|
|
23
23
|
|
|
24
24
|
export interface PeopleDirectory {
|
|
@@ -2,7 +2,7 @@ import type { ExtensibleRecordType } from '@kelpie/schemas'
|
|
|
2
2
|
import type { ReactNode } from 'react'
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* What a UI module may add to the shell
|
|
5
|
+
* What a UI module may add to the shell.
|
|
6
6
|
*
|
|
7
7
|
* Every slot renders nothing when empty. A core page has to look finished with
|
|
8
8
|
* no modules loaded at all, because the open-source assembly is exactly that.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentType } from 'react'
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* The override escape hatch
|
|
4
|
+
* The override escape hatch: a module replaces a core
|
|
5
5
|
* component outright. Prefer a slot; this is for the cases a slot cannot reach.
|
|
6
6
|
*
|
|
7
7
|
* A core component is replaceable only if it hands out a token, and the token
|
package/src/registry/registry.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { createOverrideStore } from './overridable.ts'
|
|
|
14
14
|
import type { Overridable, OverrideStore } from './overridable.ts'
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* The build-time UI extension registry
|
|
17
|
+
* The build-time UI extension registry.
|
|
18
18
|
*
|
|
19
19
|
* Composition is build-time, like the server runtime: an assembly lists its UI
|
|
20
20
|
* modules and this collects what they contribute. Nothing is loaded at runtime,
|
|
@@ -34,7 +34,7 @@ export interface UiModuleContext {
|
|
|
34
34
|
dashboardCard(card: DashboardCard): void
|
|
35
35
|
/** Another way to sign in, rendered beside the password form on `/login` and `/signup`. */
|
|
36
36
|
authMethod(method: AuthMethod): void
|
|
37
|
-
/** Replaces a core component. Prefer a slot
|
|
37
|
+
/** Replaces a core component. Prefer a slot. */
|
|
38
38
|
override<Props>(token: Overridable<Props>, component: ComponentType<Props>): void
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -200,6 +200,6 @@ export function registerUiModules(modules: readonly UiModule[]): UiExtensions {
|
|
|
200
200
|
* tree without a provider sees.
|
|
201
201
|
*
|
|
202
202
|
* Every slot is empty and every overridable renders its core fallback, which is
|
|
203
|
-
* the state
|
|
203
|
+
* the state core pages are required to look finished in.
|
|
204
204
|
*/
|
|
205
205
|
export const NO_UI_MODULES: UiExtensions = registerUiModules([])
|