@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.
Files changed (127) hide show
  1. package/dist/api/client.d.ts +5 -4
  2. package/dist/api/client.d.ts.map +1 -1
  3. package/dist/api/client.js +2 -2
  4. package/dist/api/client.js.map +1 -1
  5. package/dist/api/resource.d.ts +4 -4
  6. package/dist/api/resource.d.ts.map +1 -1
  7. package/dist/api/resource.js +4 -5
  8. package/dist/api/resource.js.map +1 -1
  9. package/dist/api/resources/members.d.ts +2 -2
  10. package/dist/api/resources/oauth.d.ts +21 -0
  11. package/dist/api/resources/oauth.d.ts.map +1 -0
  12. package/dist/api/resources/oauth.js +74 -0
  13. package/dist/api/resources/oauth.js.map +1 -0
  14. package/dist/api/resources/planItems.d.ts +1 -1
  15. package/dist/api/resources/planItems.d.ts.map +1 -1
  16. package/dist/api/resources/planItems.js +1 -1
  17. package/dist/api/resources/planItems.js.map +1 -1
  18. package/dist/api/resources/session.d.ts +1 -1
  19. package/dist/api/resources/session.js +1 -1
  20. package/dist/app/KelpieApp.d.ts.map +1 -1
  21. package/dist/app/KelpieApp.js +3 -1
  22. package/dist/app/KelpieApp.js.map +1 -1
  23. package/dist/components/ApiKeysPanel.d.ts.map +1 -1
  24. package/dist/components/ApiKeysPanel.js +4 -1
  25. package/dist/components/ApiKeysPanel.js.map +1 -1
  26. package/dist/components/Paginator.d.ts +1 -1
  27. package/dist/components/Shell.js +1 -1
  28. package/dist/components/SummaryBlock.d.ts +1 -1
  29. package/dist/components/SummaryBlock.js +1 -1
  30. package/dist/lib/mcpConfig.d.ts +10 -0
  31. package/dist/lib/mcpConfig.d.ts.map +1 -0
  32. package/dist/lib/mcpConfig.js +23 -0
  33. package/dist/lib/mcpConfig.js.map +1 -0
  34. package/dist/lib/money.d.ts +2 -2
  35. package/dist/lib/money.js +2 -2
  36. package/dist/pages/DealsPage.js +1 -1
  37. package/dist/pages/DealsPage.js.map +1 -1
  38. package/dist/pages/DecisionsPage.d.ts.map +1 -1
  39. package/dist/pages/DecisionsPage.js +5 -3
  40. package/dist/pages/DecisionsPage.js.map +1 -1
  41. package/dist/pages/FundraisingPage.js +1 -1
  42. package/dist/pages/FundraisingPage.js.map +1 -1
  43. package/dist/pages/OpportunitiesPage.js +1 -1
  44. package/dist/pages/OpportunitiesPage.js.map +1 -1
  45. package/dist/pages/PartnershipsPage.js +1 -1
  46. package/dist/pages/PartnershipsPage.js.map +1 -1
  47. package/dist/pages/PersonDetail.js +2 -2
  48. package/dist/pages/PersonDetail.js.map +1 -1
  49. package/dist/pages/account/AccountLayout.d.ts.map +1 -1
  50. package/dist/pages/account/AccountLayout.js +2 -1
  51. package/dist/pages/account/AccountLayout.js.map +1 -1
  52. package/dist/pages/account/ConnectedAppsPage.d.ts +7 -0
  53. package/dist/pages/account/ConnectedAppsPage.d.ts.map +1 -0
  54. package/dist/pages/account/ConnectedAppsPage.js +32 -0
  55. package/dist/pages/account/ConnectedAppsPage.js.map +1 -0
  56. package/dist/pages/admin/McpPage.d.ts.map +1 -1
  57. package/dist/pages/admin/McpPage.js +6 -14
  58. package/dist/pages/admin/McpPage.js.map +1 -1
  59. package/dist/pages/admin/ModulesPage.d.ts.map +1 -1
  60. package/dist/pages/admin/ModulesPage.js +5 -4
  61. package/dist/pages/admin/ModulesPage.js.map +1 -1
  62. package/dist/pages/auth/AuthLayout.d.ts +1 -1
  63. package/dist/pages/auth/AuthLayout.d.ts.map +1 -1
  64. package/dist/pages/auth/AuthLayout.js +1 -1
  65. package/dist/pages/auth/AuthLayout.js.map +1 -1
  66. package/dist/pages/auth/SignUpPage.d.ts +1 -1
  67. package/dist/pages/auth/SignUpPage.js +1 -1
  68. package/dist/pages/forms/SubmissionDetail.js +1 -1
  69. package/dist/pages/forms/SubmissionDetail.js.map +1 -1
  70. package/dist/pages/forms/SubmissionsTable.d.ts.map +1 -1
  71. package/dist/pages/forms/SubmissionsTable.js +4 -3
  72. package/dist/pages/forms/SubmissionsTable.js.map +1 -1
  73. package/dist/pages/hiringDirectory.js +2 -2
  74. package/dist/pages/hiringDirectory.js.map +1 -1
  75. package/dist/pages/oauth/ConsentPage.d.ts +14 -0
  76. package/dist/pages/oauth/ConsentPage.d.ts.map +1 -0
  77. package/dist/pages/oauth/ConsentPage.js +87 -0
  78. package/dist/pages/oauth/ConsentPage.js.map +1 -0
  79. package/dist/pages/onboarding/onboardingModules.d.ts +1 -1
  80. package/dist/pages/onboarding/onboardingRerun.d.ts +1 -1
  81. package/dist/pages/onboarding/onboardingRerun.js +1 -1
  82. package/dist/pages/positionDirectory.js +2 -2
  83. package/dist/pages/positionDirectory.js.map +1 -1
  84. package/dist/registry/contributions.d.ts +1 -1
  85. package/dist/registry/contributions.js +1 -1
  86. package/dist/registry/overridable.d.ts +1 -1
  87. package/dist/registry/registry.d.ts +3 -3
  88. package/dist/registry/registry.d.ts.map +1 -1
  89. package/dist/registry/registry.js +1 -1
  90. package/package.json +2 -2
  91. package/src/api/client.ts +6 -5
  92. package/src/api/resource.ts +6 -7
  93. package/src/api/resources/members.ts +2 -2
  94. package/src/api/resources/oauth.ts +112 -0
  95. package/src/api/resources/planItems.ts +1 -1
  96. package/src/api/resources/session.ts +1 -1
  97. package/src/app/KelpieApp.tsx +6 -0
  98. package/src/components/ApiKeysPanel.tsx +17 -0
  99. package/src/components/Paginator.tsx +1 -1
  100. package/src/components/Shell.tsx +1 -1
  101. package/src/components/SummaryBlock.tsx +1 -1
  102. package/src/lib/mcpConfig.ts +24 -0
  103. package/src/lib/money.ts +2 -2
  104. package/src/pages/DealsPage.tsx +1 -1
  105. package/src/pages/DecisionsPage.tsx +5 -3
  106. package/src/pages/FormsPage.tsx +1 -1
  107. package/src/pages/FundraisingPage.tsx +1 -1
  108. package/src/pages/OpportunitiesPage.tsx +1 -1
  109. package/src/pages/PartnershipsPage.tsx +1 -1
  110. package/src/pages/PersonDetail.tsx +2 -2
  111. package/src/pages/account/AccountLayout.tsx +2 -1
  112. package/src/pages/account/ConnectedAppsPage.tsx +131 -0
  113. package/src/pages/admin/McpPage.tsx +37 -22
  114. package/src/pages/admin/ModulesPage.tsx +5 -4
  115. package/src/pages/auth/AuthLayout.tsx +1 -1
  116. package/src/pages/auth/SignUpPage.tsx +1 -1
  117. package/src/pages/forms/SubmissionDetail.tsx +1 -1
  118. package/src/pages/forms/SubmissionsTable.tsx +4 -3
  119. package/src/pages/hiringDirectory.ts +2 -2
  120. package/src/pages/oauth/ConsentPage.tsx +219 -0
  121. package/src/pages/onboarding/InvitesStepPage.tsx +1 -1
  122. package/src/pages/onboarding/onboardingModules.ts +1 -1
  123. package/src/pages/onboarding/onboardingRerun.ts +1 -1
  124. package/src/pages/positionDirectory.ts +2 -2
  125. package/src/registry/contributions.ts +1 -1
  126. package/src/registry/overridable.ts +1 -1
  127. 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 (`onboarding.md`).
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 `api.md` has no
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
- /** `api.md`: `?limit=` and an id filter both max out at 200. */
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, per the slot table in `modules.md`.
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 from `modules.md`: a module replaces a core
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
@@ -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 from `modules.md`.
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; see `modules.md`. */
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 `modules.md` requires core pages to look finished in.
203
+ * the state core pages are required to look finished in.
204
204
  */
205
205
  export const NO_UI_MODULES: UiExtensions = registerUiModules([])