@replicated/portal-components 0.0.21 → 0.0.22

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 (182) hide show
  1. package/components/metadata/registry.json +2 -2
  2. package/components/metadata/registry.md +2 -2
  3. package/dist/actions/change-team.js +39 -0
  4. package/dist/actions/change-team.js.map +1 -1
  5. package/dist/actions/index.d.mts +1 -1
  6. package/dist/actions/index.d.ts +1 -1
  7. package/dist/actions/index.js +40 -0
  8. package/dist/actions/index.js.map +1 -1
  9. package/dist/actions/install-actions.d.mts +1 -1
  10. package/dist/actions/install-actions.d.ts +1 -1
  11. package/dist/actions/install-actions.js +39 -0
  12. package/dist/actions/install-actions.js.map +1 -1
  13. package/dist/actions/service-account.d.mts +1 -1
  14. package/dist/actions/service-account.d.ts +1 -1
  15. package/dist/actions/service-account.js +39 -0
  16. package/dist/actions/service-account.js.map +1 -1
  17. package/dist/actions/support-bundles.d.mts +1 -1
  18. package/dist/actions/support-bundles.d.ts +1 -1
  19. package/dist/actions/support-bundles.js +39 -0
  20. package/dist/actions/support-bundles.js.map +1 -1
  21. package/dist/actions/team-settings.d.mts +1 -1
  22. package/dist/actions/team-settings.d.ts +1 -1
  23. package/dist/actions/team-settings.js +39 -0
  24. package/dist/actions/team-settings.js.map +1 -1
  25. package/dist/actions/trial-signup.js +39 -0
  26. package/dist/actions/trial-signup.js.map +1 -1
  27. package/dist/actions/user-settings.d.mts +1 -1
  28. package/dist/actions/user-settings.d.ts +1 -1
  29. package/dist/actions/user-settings.js +39 -0
  30. package/dist/actions/user-settings.js.map +1 -1
  31. package/dist/airgap-instances.d.mts +1 -1
  32. package/dist/airgap-instances.d.ts +1 -1
  33. package/dist/airgap-instances.js +3 -2
  34. package/dist/airgap-instances.js.map +1 -1
  35. package/dist/esm/actions/change-team.js +39 -0
  36. package/dist/esm/actions/change-team.js.map +1 -1
  37. package/dist/esm/actions/index.js +40 -1
  38. package/dist/esm/actions/index.js.map +1 -1
  39. package/dist/esm/actions/install-actions.js +39 -0
  40. package/dist/esm/actions/install-actions.js.map +1 -1
  41. package/dist/esm/actions/service-account.js +39 -0
  42. package/dist/esm/actions/service-account.js.map +1 -1
  43. package/dist/esm/actions/support-bundles.js +39 -0
  44. package/dist/esm/actions/support-bundles.js.map +1 -1
  45. package/dist/esm/actions/team-settings.js +39 -0
  46. package/dist/esm/actions/team-settings.js.map +1 -1
  47. package/dist/esm/actions/trial-signup.js +39 -0
  48. package/dist/esm/actions/trial-signup.js.map +1 -1
  49. package/dist/esm/actions/user-settings.js +39 -0
  50. package/dist/esm/actions/user-settings.js.map +1 -1
  51. package/dist/esm/airgap-instances.js +3 -2
  52. package/dist/esm/airgap-instances.js.map +1 -1
  53. package/dist/esm/helm-install-wizard.js +414 -189
  54. package/dist/esm/helm-install-wizard.js.map +1 -1
  55. package/dist/esm/index.js +89 -64
  56. package/dist/esm/index.js.map +1 -1
  57. package/dist/esm/install-actions.js +39 -0
  58. package/dist/esm/install-actions.js.map +1 -1
  59. package/dist/esm/instance-card.js +2 -1
  60. package/dist/esm/instance-card.js.map +1 -1
  61. package/dist/esm/license-details.js +39 -0
  62. package/dist/esm/license-details.js.map +1 -1
  63. package/dist/esm/linux-install-wizard.js +310 -166
  64. package/dist/esm/linux-install-wizard.js.map +1 -1
  65. package/dist/esm/logout-action.js +187 -0
  66. package/dist/esm/logout-action.js.map +1 -0
  67. package/dist/esm/logout-button.js +32 -0
  68. package/dist/esm/logout-button.js.map +1 -0
  69. package/dist/esm/markdown-renderer.js +16 -0
  70. package/dist/esm/markdown-renderer.js.map +1 -0
  71. package/dist/esm/middleware.js +3 -3
  72. package/dist/esm/middleware.js.map +1 -1
  73. package/dist/esm/online-instance-list.js +3 -2
  74. package/dist/esm/online-instance-list.js.map +1 -1
  75. package/dist/esm/saml-callback-client.js +5 -2
  76. package/dist/esm/saml-callback-client.js.map +1 -1
  77. package/dist/esm/saml-handlers.js +104 -0
  78. package/dist/esm/saml-handlers.js.map +1 -1
  79. package/dist/esm/support-bundle-collection-card.js +3 -2
  80. package/dist/esm/support-bundle-collection-card.js.map +1 -1
  81. package/dist/esm/support-bundles-card.js +2 -2
  82. package/dist/esm/support-bundles-card.js.map +1 -1
  83. package/dist/esm/support-card.js +39 -0
  84. package/dist/esm/support-card.js.map +1 -1
  85. package/dist/esm/top-nav-menu-close.js +46 -0
  86. package/dist/esm/top-nav-menu-close.js.map +1 -0
  87. package/dist/esm/top-nav.js +149 -59
  88. package/dist/esm/top-nav.js.map +1 -1
  89. package/dist/esm/trial-signup.js +6 -3
  90. package/dist/esm/trial-signup.js.map +1 -1
  91. package/dist/esm/update-layout.js +149 -59
  92. package/dist/esm/update-layout.js.map +1 -1
  93. package/dist/esm/upload-support-bundle-modal.js +2 -2
  94. package/dist/esm/upload-support-bundle-modal.js.map +1 -1
  95. package/dist/esm/user-menu-dropdown.js +52 -0
  96. package/dist/esm/user-menu-dropdown.js.map +1 -0
  97. package/dist/esm/user-settings.js +5 -5
  98. package/dist/esm/user-settings.js.map +1 -1
  99. package/dist/esm/utils/index.js +39 -0
  100. package/dist/esm/utils/index.js.map +1 -1
  101. package/dist/helm-install-wizard.d.mts +18 -7
  102. package/dist/helm-install-wizard.d.ts +18 -7
  103. package/dist/helm-install-wizard.js +418 -189
  104. package/dist/helm-install-wizard.js.map +1 -1
  105. package/dist/{index-sMbq94M7.d.ts → index-DXy7RxOX.d.ts} +18 -1
  106. package/dist/{index-DyzJ0yKD.d.mts → index-JX9-CIMA.d.mts} +18 -1
  107. package/dist/index.d.mts +1 -1
  108. package/dist/index.d.ts +1 -1
  109. package/dist/index.js +89 -64
  110. package/dist/index.js.map +1 -1
  111. package/dist/install-actions.d.mts +2 -2
  112. package/dist/install-actions.d.ts +2 -2
  113. package/dist/install-actions.js +39 -0
  114. package/dist/install-actions.js.map +1 -1
  115. package/dist/instance-card.d.mts +1 -1
  116. package/dist/instance-card.d.ts +1 -1
  117. package/dist/instance-card.js +2 -1
  118. package/dist/instance-card.js.map +1 -1
  119. package/dist/license-details.js +39 -0
  120. package/dist/license-details.js.map +1 -1
  121. package/dist/linux-install-wizard.d.mts +17 -7
  122. package/dist/linux-install-wizard.d.ts +17 -7
  123. package/dist/linux-install-wizard.js +314 -166
  124. package/dist/linux-install-wizard.js.map +1 -1
  125. package/dist/logout-action.d.mts +7 -0
  126. package/dist/logout-action.d.ts +7 -0
  127. package/dist/logout-action.js +189 -0
  128. package/dist/logout-action.js.map +1 -0
  129. package/dist/logout-button.d.mts +16 -0
  130. package/dist/logout-button.d.ts +16 -0
  131. package/dist/logout-button.js +34 -0
  132. package/dist/logout-button.js.map +1 -0
  133. package/dist/markdown-renderer.d.mts +12 -0
  134. package/dist/markdown-renderer.d.ts +12 -0
  135. package/dist/markdown-renderer.js +22 -0
  136. package/dist/markdown-renderer.js.map +1 -0
  137. package/dist/middleware.js +3 -3
  138. package/dist/middleware.js.map +1 -1
  139. package/dist/online-instance-list.d.mts +1 -1
  140. package/dist/online-instance-list.d.ts +1 -1
  141. package/dist/online-instance-list.js +3 -2
  142. package/dist/online-instance-list.js.map +1 -1
  143. package/dist/pending-installations.d.mts +1 -1
  144. package/dist/pending-installations.d.ts +1 -1
  145. package/dist/saml-callback-client.js +5 -2
  146. package/dist/saml-callback-client.js.map +1 -1
  147. package/dist/saml-handlers.js +104 -0
  148. package/dist/saml-handlers.js.map +1 -1
  149. package/dist/security-card.d.mts +1 -1
  150. package/dist/security-card.d.ts +1 -1
  151. package/dist/styles.css +39 -0
  152. package/dist/support-bundle-collection-card.js +3 -2
  153. package/dist/support-bundle-collection-card.js.map +1 -1
  154. package/dist/support-bundles-card.d.mts +2 -2
  155. package/dist/support-bundles-card.d.ts +2 -2
  156. package/dist/support-bundles-card.js +2 -2
  157. package/dist/support-bundles-card.js.map +1 -1
  158. package/dist/support-card.js +39 -0
  159. package/dist/support-card.js.map +1 -1
  160. package/dist/top-nav-menu-close.d.mts +10 -0
  161. package/dist/top-nav-menu-close.d.ts +10 -0
  162. package/dist/top-nav-menu-close.js +48 -0
  163. package/dist/top-nav-menu-close.js.map +1 -0
  164. package/dist/top-nav.js +149 -59
  165. package/dist/top-nav.js.map +1 -1
  166. package/dist/trial-signup.js +6 -3
  167. package/dist/trial-signup.js.map +1 -1
  168. package/dist/update-layout.js +149 -59
  169. package/dist/update-layout.js.map +1 -1
  170. package/dist/upload-support-bundle-modal.js +2 -2
  171. package/dist/upload-support-bundle-modal.js.map +1 -1
  172. package/dist/user-menu-dropdown.d.mts +25 -0
  173. package/dist/user-menu-dropdown.d.ts +25 -0
  174. package/dist/user-menu-dropdown.js +59 -0
  175. package/dist/user-menu-dropdown.js.map +1 -0
  176. package/dist/user-settings.js +5 -5
  177. package/dist/user-settings.js.map +1 -1
  178. package/dist/utils/index.d.mts +1 -1
  179. package/dist/utils/index.d.ts +1 -1
  180. package/dist/utils/index.js +39 -0
  181. package/dist/utils/index.js.map +1 -1
  182. package/package.json +29 -2
@@ -1033,4 +1033,21 @@ interface RefreshInviteResult {
1033
1033
  */
1034
1034
  declare const refreshInvite: PortalServerActionDefinition<RefreshInviteInput, RefreshInviteResult>;
1035
1035
 
1036
- export { type FetchLicenseResult as $, getSupportBundleUploadUrl as A, decodeJwtPayload as B, type ChannelRelease as C, type DiscardInstallationResult as D, getCustomerIdFromToken as E, type FetchChannelReleasesResult as F, type GetSecurityInfoDiffResult as G, verifyMagicLink as H, type InstallOptions as I, fetchDashboardComposite as J, getSecurityInfo as K, getSecurityInfoDiff as L, getSecurityInfoSBOM as M, type NetworkAvailability as N, downloadSecuritySBOM as O, type PendingInstallation as P, fetchCurrentUser as Q, updateUser as R, type SecurityReleaseImage as S, fetchNotifications as T, type UpdateInstallOptionsInput as U, updateNotifications as V, type PortalActionContext as W, type PortalActionVisibility as X, type PortalServerActionDefinition as Y, type CustomBrandingResponse as Z, type FetchLicenseInput as _, type CreateServiceAccountResult as a, inviteUserAction as a$, type ReleaseHelmChart as a0, type DownloadPortalRelease as a1, type ListReleasesResult as a2, type InitiateLoginInput as a3, type InitiateLoginResult as a4, type VerifyMagicLinkInput as a5, type VerifyMagicLinkResult as a6, type VerifyMagicLinkError as a7, type ListSupportBundlesInput as a8, type ListSupportBundlesResult as a9, type UpdateNotificationsInput as aA, type UpdateNotificationsResult as aB, fetchPendingInstallations as aC, discardInstallation as aD, getUpdateInstructions as aE, filterHelmReleases as aF, type EmbeddedClusterInstallationType as aG, type HelmInstallationType as aH, type InstallationTypes as aI, type FetchChannelReleasesInput as aJ, type InstallType as aK, type RegistryAvailability as aL, type KubernetesDistribution as aM, type InstallStatus as aN, type FetchPendingInstallationsInput as aO, type DiscardInstallationInput as aP, type GetUpdateInstructionsInput as aQ, type GetUpdateInstructionsResult as aR, type UpdateInstructions as aS, fetchPendingInstallationsAction as aT, fetchChannelReleasesAction as aU, createInstallOptionsAction as aV, getInstallOptionsAction as aW, updateInstallOptionsAction as aX, discardInstallationAction as aY, createServiceAccountAction$1 as aZ, fetchTeamUsersAction as a_, type SupportBundleInsight as aa, type DownloadSupportBundleInput as ab, type DownloadSupportBundleResult as ac, type DeleteSupportBundleInput as ad, type DeleteSupportBundleResult as ae, type UploadSupportBundleCompleteInput as af, type UploadSupportBundleCompleteResult as ag, type SecurityInstallType as ah, type SecurityScanSummary as ai, type SecurityScanWrapper as aj, type GetSecurityInfoInput as ak, type GetSecurityInfoResult as al, type SecurityInfoDiff as am, type GetSecurityInfoDiffInput as an, type SBOMMetadata as ao, type GetSecurityInfoSBOMInput as ap, type GetSecurityInfoSBOMResult as aq, type DownloadSBOMInput as ar, type FetchCurrentUserInput as as, type FetchCurrentUserResult as at, type UserProfile as au, type UpdateUserInput as av, type UpdateUserResult as aw, type NotificationSetting as ax, type FetchNotificationsInput as ay, type FetchNotificationsResult as az, type CreateInstallOptionsInput as b, type UpdateSamlConfigResult as b$, deleteUserAction as b0, fetchServiceAccountsAction as b1, createServiceAccountAction as b2, revokeServiceAccountAction as b3, rotateServiceAccountTokenAction as b4, fetchInstancesAction as b5, fetchSamlConfigAction as b6, updateSamlConfigAction as b7, toggleSamlEnabledAction as b8, deprovisionSamlAction as b9, type SwitchCustomerResult as bA, fetchCustomers as bB, switchCustomer as bC, type FetchTeamStatsInput as bD, type ServiceAccountSummary as bE, type FetchTeamStatsResult as bF, type FetchDashboardInstancesInput as bG, type FetchDashboardInstancesResult as bH, fetchTeamStats as bI, fetchDashboardInstances as bJ, type FetchTeamUsersInput as bK, type FetchTeamUsersResult as bL, type InviteUserInput as bM, type InviteUserResult as bN, type DeleteUserInput as bO, type DeleteUserResult as bP, type FetchServiceAccountsInput as bQ, type FetchServiceAccountsResult as bR, type RevokeServiceAccountInput as bS, type RevokeServiceAccountResult as bT, type RotateServiceAccountTokenInput as bU, type RotateServiceAccountTokenResult as bV, type FetchInstancesInput as bW, type FetchInstancesResult as bX, type FetchSamlConfigInput as bY, type FetchSamlConfigResult as bZ, type UpdateSamlConfigInput as b_, type AppFeatures as ba, fetchAppFeatures as bb, type SAMLConfig as bc, type ServiceAccount as bd, type Instance as be, type TeamUser as bf, fetchCurrentUserAction as bg, updateUserAction as bh, fetchNotificationsAction as bi, updateNotificationsAction as bj, type TeamForUserSettings as bk, fetchTeamsForUserSettings as bl, type ActionResult as bm, type UploadSupportBundleResult$1 as bn, type ListBundlesResult as bo, downloadSupportBundleAction as bp, deleteSupportBundleAction as bq, uploadSupportBundleAction as br, listSupportBundlesAction as bs, getApiOrigin as bt, type UploadSupportBundleInput as bu, type UploadSupportBundleResult as bv, type FetchCustomersInput as bw, type Customer as bx, type FetchCustomersResult as by, type SwitchCustomerInput as bz, type CreateInstallOptionsResult as c, type ToggleSamlEnabledInput as c0, type ToggleSamlEnabledResult as c1, type DeprovisionSamlInput as c2, type DeprovisionSamlResult as c3, fetchTeamUsers as c4, inviteUser as c5, deleteUser as c6, fetchServiceAccounts as c7, revokeServiceAccount as c8, rotateServiceAccountToken as c9, fetchInstances as ca, fetchSamlConfig as cb, updateSamlConfig as cc, toggleSamlEnabled as cd, deprovisionSaml as ce, type AcceptInviteInput as cf, type AcceptInviteResult as cg, type AcceptInviteError as ch, acceptInvite as ci, type RefreshInviteInput as cj, type RefreshInviteResult as ck, refreshInvite as cl, fetchAppInfo as cm, fetchUser as cn, type UserResult as co, type UserContext as cp, type UserPermissions as cq, type GetInstallOptionsInput as d, type GetInstallOptionsResult as e, type UpdateInstallOptionsResult as f, createServiceAccount as g, type CreateServiceAccountInput as h, type ServiceAccountData as i, fetchChannelReleases as j, createInstallOptions as k, getInstallOptions as l, filterEmbeddedClusterReleases as m, type InstallInstructions as n, type InstallStep as o, type FetchPendingInstallationsResult as p, type SupportBundleSummary as q, defineServerAction as r, fetchCustomBranding as s, listReleases as t, updateInstallOptions as u, initiateLogin as v, listSupportBundles as w, downloadSupportBundle as x, deleteSupportBundle as y, uploadSupportBundle as z };
1036
+ /**
1037
+ * Documentation response containing markdown content and URLs for install steps
1038
+ */
1039
+ interface DocumentationResult {
1040
+ helmPreInstall: string;
1041
+ helmPostInstall: string;
1042
+ embeddedClusterPreInstall: string;
1043
+ embeddedClusterPostInstall: string;
1044
+ helmInstallUrl: string;
1045
+ embeddedClusterInstallUrl: string;
1046
+ valuesOverrideUrl: string;
1047
+ }
1048
+ /**
1049
+ * Cached version of fetchDocumentation to deduplicate calls within a single request.
1050
+ */
1051
+ declare const fetchDocumentation: () => Promise<DocumentationResult>;
1052
+
1053
+ export { type FetchLicenseResult as $, getSupportBundleUploadUrl as A, decodeJwtPayload as B, type ChannelRelease as C, type DiscardInstallationResult as D, getCustomerIdFromToken as E, type FetchChannelReleasesResult as F, type GetSecurityInfoDiffResult as G, verifyMagicLink as H, type InstallOptions as I, fetchDashboardComposite as J, getSecurityInfo as K, getSecurityInfoDiff as L, getSecurityInfoSBOM as M, type NetworkAvailability as N, downloadSecuritySBOM as O, type PendingInstallation as P, fetchCurrentUser as Q, updateUser as R, type SecurityReleaseImage as S, fetchNotifications as T, type UpdateInstallOptionsInput as U, updateNotifications as V, type PortalActionContext as W, type PortalActionVisibility as X, type PortalServerActionDefinition as Y, type CustomBrandingResponse as Z, type FetchLicenseInput as _, type CreateServiceAccountResult as a, inviteUserAction as a$, type ReleaseHelmChart as a0, type DownloadPortalRelease as a1, type ListReleasesResult as a2, type InitiateLoginInput as a3, type InitiateLoginResult as a4, type VerifyMagicLinkInput as a5, type VerifyMagicLinkResult as a6, type VerifyMagicLinkError as a7, type ListSupportBundlesInput as a8, type ListSupportBundlesResult as a9, type UpdateNotificationsInput as aA, type UpdateNotificationsResult as aB, fetchPendingInstallations as aC, discardInstallation as aD, getUpdateInstructions as aE, filterHelmReleases as aF, type EmbeddedClusterInstallationType as aG, type HelmInstallationType as aH, type InstallationTypes as aI, type FetchChannelReleasesInput as aJ, type InstallType as aK, type RegistryAvailability as aL, type KubernetesDistribution as aM, type InstallStatus as aN, type FetchPendingInstallationsInput as aO, type DiscardInstallationInput as aP, type GetUpdateInstructionsInput as aQ, type GetUpdateInstructionsResult as aR, type UpdateInstructions as aS, fetchPendingInstallationsAction as aT, fetchChannelReleasesAction as aU, createInstallOptionsAction as aV, getInstallOptionsAction as aW, updateInstallOptionsAction as aX, discardInstallationAction as aY, createServiceAccountAction$1 as aZ, fetchTeamUsersAction as a_, type SupportBundleInsight as aa, type DownloadSupportBundleInput as ab, type DownloadSupportBundleResult as ac, type DeleteSupportBundleInput as ad, type DeleteSupportBundleResult as ae, type UploadSupportBundleCompleteInput as af, type UploadSupportBundleCompleteResult as ag, type SecurityInstallType as ah, type SecurityScanSummary as ai, type SecurityScanWrapper as aj, type GetSecurityInfoInput as ak, type GetSecurityInfoResult as al, type SecurityInfoDiff as am, type GetSecurityInfoDiffInput as an, type SBOMMetadata as ao, type GetSecurityInfoSBOMInput as ap, type GetSecurityInfoSBOMResult as aq, type DownloadSBOMInput as ar, type FetchCurrentUserInput as as, type FetchCurrentUserResult as at, type UserProfile as au, type UpdateUserInput as av, type UpdateUserResult as aw, type NotificationSetting as ax, type FetchNotificationsInput as ay, type FetchNotificationsResult as az, type CreateInstallOptionsInput as b, type UpdateSamlConfigResult as b$, deleteUserAction as b0, fetchServiceAccountsAction as b1, createServiceAccountAction as b2, revokeServiceAccountAction as b3, rotateServiceAccountTokenAction as b4, fetchInstancesAction as b5, fetchSamlConfigAction as b6, updateSamlConfigAction as b7, toggleSamlEnabledAction as b8, deprovisionSamlAction as b9, type SwitchCustomerResult as bA, fetchCustomers as bB, switchCustomer as bC, type FetchTeamStatsInput as bD, type ServiceAccountSummary as bE, type FetchTeamStatsResult as bF, type FetchDashboardInstancesInput as bG, type FetchDashboardInstancesResult as bH, fetchTeamStats as bI, fetchDashboardInstances as bJ, type FetchTeamUsersInput as bK, type FetchTeamUsersResult as bL, type InviteUserInput as bM, type InviteUserResult as bN, type DeleteUserInput as bO, type DeleteUserResult as bP, type FetchServiceAccountsInput as bQ, type FetchServiceAccountsResult as bR, type RevokeServiceAccountInput as bS, type RevokeServiceAccountResult as bT, type RotateServiceAccountTokenInput as bU, type RotateServiceAccountTokenResult as bV, type FetchInstancesInput as bW, type FetchInstancesResult as bX, type FetchSamlConfigInput as bY, type FetchSamlConfigResult as bZ, type UpdateSamlConfigInput as b_, type AppFeatures as ba, fetchAppFeatures as bb, type SAMLConfig as bc, type ServiceAccount as bd, type Instance as be, type TeamUser as bf, fetchCurrentUserAction as bg, updateUserAction as bh, fetchNotificationsAction as bi, updateNotificationsAction as bj, type TeamForUserSettings as bk, fetchTeamsForUserSettings as bl, type ActionResult as bm, type UploadSupportBundleResult$1 as bn, type ListBundlesResult as bo, downloadSupportBundleAction as bp, deleteSupportBundleAction as bq, uploadSupportBundleAction as br, listSupportBundlesAction as bs, getApiOrigin as bt, type UploadSupportBundleInput as bu, type UploadSupportBundleResult as bv, type FetchCustomersInput as bw, type Customer as bx, type FetchCustomersResult as by, type SwitchCustomerInput as bz, type CreateInstallOptionsResult as c, type ToggleSamlEnabledInput as c0, type ToggleSamlEnabledResult as c1, type DeprovisionSamlInput as c2, type DeprovisionSamlResult as c3, fetchTeamUsers as c4, inviteUser as c5, deleteUser as c6, fetchServiceAccounts as c7, revokeServiceAccount as c8, rotateServiceAccountToken as c9, fetchInstances as ca, fetchSamlConfig as cb, updateSamlConfig as cc, toggleSamlEnabled as cd, deprovisionSaml as ce, type AcceptInviteInput as cf, type AcceptInviteResult as cg, type AcceptInviteError as ch, acceptInvite as ci, type RefreshInviteInput as cj, type RefreshInviteResult as ck, refreshInvite as cl, type DocumentationResult as cm, fetchDocumentation as cn, fetchAppInfo as co, fetchUser as cp, type UserResult as cq, type UserContext as cr, type UserPermissions as cs, type GetInstallOptionsInput as d, type GetInstallOptionsResult as e, type UpdateInstallOptionsResult as f, createServiceAccount as g, type CreateServiceAccountInput as h, type ServiceAccountData as i, fetchChannelReleases as j, createInstallOptions as k, getInstallOptions as l, filterEmbeddedClusterReleases as m, type InstallInstructions as n, type InstallStep as o, type FetchPendingInstallationsResult as p, type SupportBundleSummary as q, defineServerAction as r, fetchCustomBranding as s, listReleases as t, updateInstallOptions as u, initiateLogin as v, listSupportBundles as w, downloadSupportBundle as x, deleteSupportBundle as y, uploadSupportBundle as z };
@@ -1033,4 +1033,21 @@ interface RefreshInviteResult {
1033
1033
  */
1034
1034
  declare const refreshInvite: PortalServerActionDefinition<RefreshInviteInput, RefreshInviteResult>;
1035
1035
 
1036
- export { type FetchLicenseResult as $, getSupportBundleUploadUrl as A, decodeJwtPayload as B, type ChannelRelease as C, type DiscardInstallationResult as D, getCustomerIdFromToken as E, type FetchChannelReleasesResult as F, type GetSecurityInfoDiffResult as G, verifyMagicLink as H, type InstallOptions as I, fetchDashboardComposite as J, getSecurityInfo as K, getSecurityInfoDiff as L, getSecurityInfoSBOM as M, type NetworkAvailability as N, downloadSecuritySBOM as O, type PendingInstallation as P, fetchCurrentUser as Q, updateUser as R, type SecurityReleaseImage as S, fetchNotifications as T, type UpdateInstallOptionsInput as U, updateNotifications as V, type PortalActionContext as W, type PortalActionVisibility as X, type PortalServerActionDefinition as Y, type CustomBrandingResponse as Z, type FetchLicenseInput as _, type CreateServiceAccountResult as a, inviteUserAction as a$, type ReleaseHelmChart as a0, type DownloadPortalRelease as a1, type ListReleasesResult as a2, type InitiateLoginInput as a3, type InitiateLoginResult as a4, type VerifyMagicLinkInput as a5, type VerifyMagicLinkResult as a6, type VerifyMagicLinkError as a7, type ListSupportBundlesInput as a8, type ListSupportBundlesResult as a9, type UpdateNotificationsInput as aA, type UpdateNotificationsResult as aB, fetchPendingInstallations as aC, discardInstallation as aD, getUpdateInstructions as aE, filterHelmReleases as aF, type EmbeddedClusterInstallationType as aG, type HelmInstallationType as aH, type InstallationTypes as aI, type FetchChannelReleasesInput as aJ, type InstallType as aK, type RegistryAvailability as aL, type KubernetesDistribution as aM, type InstallStatus as aN, type FetchPendingInstallationsInput as aO, type DiscardInstallationInput as aP, type GetUpdateInstructionsInput as aQ, type GetUpdateInstructionsResult as aR, type UpdateInstructions as aS, fetchPendingInstallationsAction as aT, fetchChannelReleasesAction as aU, createInstallOptionsAction as aV, getInstallOptionsAction as aW, updateInstallOptionsAction as aX, discardInstallationAction as aY, createServiceAccountAction$1 as aZ, fetchTeamUsersAction as a_, type SupportBundleInsight as aa, type DownloadSupportBundleInput as ab, type DownloadSupportBundleResult as ac, type DeleteSupportBundleInput as ad, type DeleteSupportBundleResult as ae, type UploadSupportBundleCompleteInput as af, type UploadSupportBundleCompleteResult as ag, type SecurityInstallType as ah, type SecurityScanSummary as ai, type SecurityScanWrapper as aj, type GetSecurityInfoInput as ak, type GetSecurityInfoResult as al, type SecurityInfoDiff as am, type GetSecurityInfoDiffInput as an, type SBOMMetadata as ao, type GetSecurityInfoSBOMInput as ap, type GetSecurityInfoSBOMResult as aq, type DownloadSBOMInput as ar, type FetchCurrentUserInput as as, type FetchCurrentUserResult as at, type UserProfile as au, type UpdateUserInput as av, type UpdateUserResult as aw, type NotificationSetting as ax, type FetchNotificationsInput as ay, type FetchNotificationsResult as az, type CreateInstallOptionsInput as b, type UpdateSamlConfigResult as b$, deleteUserAction as b0, fetchServiceAccountsAction as b1, createServiceAccountAction as b2, revokeServiceAccountAction as b3, rotateServiceAccountTokenAction as b4, fetchInstancesAction as b5, fetchSamlConfigAction as b6, updateSamlConfigAction as b7, toggleSamlEnabledAction as b8, deprovisionSamlAction as b9, type SwitchCustomerResult as bA, fetchCustomers as bB, switchCustomer as bC, type FetchTeamStatsInput as bD, type ServiceAccountSummary as bE, type FetchTeamStatsResult as bF, type FetchDashboardInstancesInput as bG, type FetchDashboardInstancesResult as bH, fetchTeamStats as bI, fetchDashboardInstances as bJ, type FetchTeamUsersInput as bK, type FetchTeamUsersResult as bL, type InviteUserInput as bM, type InviteUserResult as bN, type DeleteUserInput as bO, type DeleteUserResult as bP, type FetchServiceAccountsInput as bQ, type FetchServiceAccountsResult as bR, type RevokeServiceAccountInput as bS, type RevokeServiceAccountResult as bT, type RotateServiceAccountTokenInput as bU, type RotateServiceAccountTokenResult as bV, type FetchInstancesInput as bW, type FetchInstancesResult as bX, type FetchSamlConfigInput as bY, type FetchSamlConfigResult as bZ, type UpdateSamlConfigInput as b_, type AppFeatures as ba, fetchAppFeatures as bb, type SAMLConfig as bc, type ServiceAccount as bd, type Instance as be, type TeamUser as bf, fetchCurrentUserAction as bg, updateUserAction as bh, fetchNotificationsAction as bi, updateNotificationsAction as bj, type TeamForUserSettings as bk, fetchTeamsForUserSettings as bl, type ActionResult as bm, type UploadSupportBundleResult$1 as bn, type ListBundlesResult as bo, downloadSupportBundleAction as bp, deleteSupportBundleAction as bq, uploadSupportBundleAction as br, listSupportBundlesAction as bs, getApiOrigin as bt, type UploadSupportBundleInput as bu, type UploadSupportBundleResult as bv, type FetchCustomersInput as bw, type Customer as bx, type FetchCustomersResult as by, type SwitchCustomerInput as bz, type CreateInstallOptionsResult as c, type ToggleSamlEnabledInput as c0, type ToggleSamlEnabledResult as c1, type DeprovisionSamlInput as c2, type DeprovisionSamlResult as c3, fetchTeamUsers as c4, inviteUser as c5, deleteUser as c6, fetchServiceAccounts as c7, revokeServiceAccount as c8, rotateServiceAccountToken as c9, fetchInstances as ca, fetchSamlConfig as cb, updateSamlConfig as cc, toggleSamlEnabled as cd, deprovisionSaml as ce, type AcceptInviteInput as cf, type AcceptInviteResult as cg, type AcceptInviteError as ch, acceptInvite as ci, type RefreshInviteInput as cj, type RefreshInviteResult as ck, refreshInvite as cl, fetchAppInfo as cm, fetchUser as cn, type UserResult as co, type UserContext as cp, type UserPermissions as cq, type GetInstallOptionsInput as d, type GetInstallOptionsResult as e, type UpdateInstallOptionsResult as f, createServiceAccount as g, type CreateServiceAccountInput as h, type ServiceAccountData as i, fetchChannelReleases as j, createInstallOptions as k, getInstallOptions as l, filterEmbeddedClusterReleases as m, type InstallInstructions as n, type InstallStep as o, type FetchPendingInstallationsResult as p, type SupportBundleSummary as q, defineServerAction as r, fetchCustomBranding as s, listReleases as t, updateInstallOptions as u, initiateLogin as v, listSupportBundles as w, downloadSupportBundle as x, deleteSupportBundle as y, uploadSupportBundle as z };
1036
+ /**
1037
+ * Documentation response containing markdown content and URLs for install steps
1038
+ */
1039
+ interface DocumentationResult {
1040
+ helmPreInstall: string;
1041
+ helmPostInstall: string;
1042
+ embeddedClusterPreInstall: string;
1043
+ embeddedClusterPostInstall: string;
1044
+ helmInstallUrl: string;
1045
+ embeddedClusterInstallUrl: string;
1046
+ valuesOverrideUrl: string;
1047
+ }
1048
+ /**
1049
+ * Cached version of fetchDocumentation to deduplicate calls within a single request.
1050
+ */
1051
+ declare const fetchDocumentation: () => Promise<DocumentationResult>;
1052
+
1053
+ export { type FetchLicenseResult as $, getSupportBundleUploadUrl as A, decodeJwtPayload as B, type ChannelRelease as C, type DiscardInstallationResult as D, getCustomerIdFromToken as E, type FetchChannelReleasesResult as F, type GetSecurityInfoDiffResult as G, verifyMagicLink as H, type InstallOptions as I, fetchDashboardComposite as J, getSecurityInfo as K, getSecurityInfoDiff as L, getSecurityInfoSBOM as M, type NetworkAvailability as N, downloadSecuritySBOM as O, type PendingInstallation as P, fetchCurrentUser as Q, updateUser as R, type SecurityReleaseImage as S, fetchNotifications as T, type UpdateInstallOptionsInput as U, updateNotifications as V, type PortalActionContext as W, type PortalActionVisibility as X, type PortalServerActionDefinition as Y, type CustomBrandingResponse as Z, type FetchLicenseInput as _, type CreateServiceAccountResult as a, inviteUserAction as a$, type ReleaseHelmChart as a0, type DownloadPortalRelease as a1, type ListReleasesResult as a2, type InitiateLoginInput as a3, type InitiateLoginResult as a4, type VerifyMagicLinkInput as a5, type VerifyMagicLinkResult as a6, type VerifyMagicLinkError as a7, type ListSupportBundlesInput as a8, type ListSupportBundlesResult as a9, type UpdateNotificationsInput as aA, type UpdateNotificationsResult as aB, fetchPendingInstallations as aC, discardInstallation as aD, getUpdateInstructions as aE, filterHelmReleases as aF, type EmbeddedClusterInstallationType as aG, type HelmInstallationType as aH, type InstallationTypes as aI, type FetchChannelReleasesInput as aJ, type InstallType as aK, type RegistryAvailability as aL, type KubernetesDistribution as aM, type InstallStatus as aN, type FetchPendingInstallationsInput as aO, type DiscardInstallationInput as aP, type GetUpdateInstructionsInput as aQ, type GetUpdateInstructionsResult as aR, type UpdateInstructions as aS, fetchPendingInstallationsAction as aT, fetchChannelReleasesAction as aU, createInstallOptionsAction as aV, getInstallOptionsAction as aW, updateInstallOptionsAction as aX, discardInstallationAction as aY, createServiceAccountAction$1 as aZ, fetchTeamUsersAction as a_, type SupportBundleInsight as aa, type DownloadSupportBundleInput as ab, type DownloadSupportBundleResult as ac, type DeleteSupportBundleInput as ad, type DeleteSupportBundleResult as ae, type UploadSupportBundleCompleteInput as af, type UploadSupportBundleCompleteResult as ag, type SecurityInstallType as ah, type SecurityScanSummary as ai, type SecurityScanWrapper as aj, type GetSecurityInfoInput as ak, type GetSecurityInfoResult as al, type SecurityInfoDiff as am, type GetSecurityInfoDiffInput as an, type SBOMMetadata as ao, type GetSecurityInfoSBOMInput as ap, type GetSecurityInfoSBOMResult as aq, type DownloadSBOMInput as ar, type FetchCurrentUserInput as as, type FetchCurrentUserResult as at, type UserProfile as au, type UpdateUserInput as av, type UpdateUserResult as aw, type NotificationSetting as ax, type FetchNotificationsInput as ay, type FetchNotificationsResult as az, type CreateInstallOptionsInput as b, type UpdateSamlConfigResult as b$, deleteUserAction as b0, fetchServiceAccountsAction as b1, createServiceAccountAction as b2, revokeServiceAccountAction as b3, rotateServiceAccountTokenAction as b4, fetchInstancesAction as b5, fetchSamlConfigAction as b6, updateSamlConfigAction as b7, toggleSamlEnabledAction as b8, deprovisionSamlAction as b9, type SwitchCustomerResult as bA, fetchCustomers as bB, switchCustomer as bC, type FetchTeamStatsInput as bD, type ServiceAccountSummary as bE, type FetchTeamStatsResult as bF, type FetchDashboardInstancesInput as bG, type FetchDashboardInstancesResult as bH, fetchTeamStats as bI, fetchDashboardInstances as bJ, type FetchTeamUsersInput as bK, type FetchTeamUsersResult as bL, type InviteUserInput as bM, type InviteUserResult as bN, type DeleteUserInput as bO, type DeleteUserResult as bP, type FetchServiceAccountsInput as bQ, type FetchServiceAccountsResult as bR, type RevokeServiceAccountInput as bS, type RevokeServiceAccountResult as bT, type RotateServiceAccountTokenInput as bU, type RotateServiceAccountTokenResult as bV, type FetchInstancesInput as bW, type FetchInstancesResult as bX, type FetchSamlConfigInput as bY, type FetchSamlConfigResult as bZ, type UpdateSamlConfigInput as b_, type AppFeatures as ba, fetchAppFeatures as bb, type SAMLConfig as bc, type ServiceAccount as bd, type Instance as be, type TeamUser as bf, fetchCurrentUserAction as bg, updateUserAction as bh, fetchNotificationsAction as bi, updateNotificationsAction as bj, type TeamForUserSettings as bk, fetchTeamsForUserSettings as bl, type ActionResult as bm, type UploadSupportBundleResult$1 as bn, type ListBundlesResult as bo, downloadSupportBundleAction as bp, deleteSupportBundleAction as bq, uploadSupportBundleAction as br, listSupportBundlesAction as bs, getApiOrigin as bt, type UploadSupportBundleInput as bu, type UploadSupportBundleResult as bv, type FetchCustomersInput as bw, type Customer as bx, type FetchCustomersResult as by, type SwitchCustomerInput as bz, type CreateInstallOptionsResult as c, type ToggleSamlEnabledInput as c0, type ToggleSamlEnabledResult as c1, type DeprovisionSamlInput as c2, type DeprovisionSamlResult as c3, fetchTeamUsers as c4, inviteUser as c5, deleteUser as c6, fetchServiceAccounts as c7, revokeServiceAccount as c8, rotateServiceAccountToken as c9, fetchInstances as ca, fetchSamlConfig as cb, updateSamlConfig as cc, toggleSamlEnabled as cd, deprovisionSaml as ce, type AcceptInviteInput as cf, type AcceptInviteResult as cg, type AcceptInviteError as ch, acceptInvite as ci, type RefreshInviteInput as cj, type RefreshInviteResult as ck, refreshInvite as cl, type DocumentationResult as cm, fetchDocumentation as cn, fetchAppInfo as co, fetchUser as cp, type UserResult as cq, type UserContext as cr, type UserPermissions as cs, type GetInstallOptionsInput as d, type GetInstallOptionsResult as e, type UpdateInstallOptionsResult as f, createServiceAccount as g, type CreateServiceAccountInput as h, type ServiceAccountData as i, fetchChannelReleases as j, createInstallOptions as k, getInstallOptions as l, filterEmbeddedClusterReleases as m, type InstallInstructions as n, type InstallStep as o, type FetchPendingInstallationsResult as p, type SupportBundleSummary as q, defineServerAction as r, fetchCustomBranding as s, listReleases as t, updateInstallOptions as u, initiateLogin as v, listSupportBundles as w, downloadSupportBundle as x, deleteSupportBundle as y, uploadSupportBundle as z };
package/dist/index.d.mts CHANGED
@@ -12,7 +12,7 @@ export { UpdateLayout } from './update-layout.mjs';
12
12
  export { ConvertToReleaseEntryOptions, DEFAULT_FAVICON, DEFAULT_PRIMARY_COLOR, DEFAULT_SECONDARY_COLOR, ReleaseNotesMode, UnauthorizedError, authenticatedFetch, convertToReleaseEntry, deleteSessionCookie, formatBytes, formatDate, formatDateShort, formatDateTime, formatDateTimeLocal, isHttpApiOrigin, isRedirectError, validateSession } from './utils/index.mjs';
13
13
  export { d as decodeBranding, n as normalizeColor, s as sanitizeUrlForCss } from './branding-BsMSywts.mjs';
14
14
  export { SetSamlSessionResult, handleSamlAcs, setSamlSessionImpl } from './saml-handlers.mjs';
15
- export { C as ChannelRelease, Z as CustomBrandingResponse, ad as DeleteSupportBundleInput, ae as DeleteSupportBundleResult, a1 as DownloadPortalRelease, ar as DownloadSBOMInput, ab as DownloadSupportBundleInput, ac as DownloadSupportBundleResult, F as FetchChannelReleasesResult, as as FetchCurrentUserInput, at as FetchCurrentUserResult, _ as FetchLicenseInput, $ as FetchLicenseResult, ay as FetchNotificationsInput, az as FetchNotificationsResult, an as GetSecurityInfoDiffInput, G as GetSecurityInfoDiffResult, ak as GetSecurityInfoInput, al as GetSecurityInfoResult, ap as GetSecurityInfoSBOMInput, aq as GetSecurityInfoSBOMResult, a3 as InitiateLoginInput, a4 as InitiateLoginResult, a2 as ListReleasesResult, a8 as ListSupportBundlesInput, a9 as ListSupportBundlesResult, ax as NotificationSetting, W as PortalActionContext, X as PortalActionVisibility, Y as PortalServerActionDefinition, a0 as ReleaseHelmChart, ao as SBOMMetadata, am as SecurityInfoDiff, ah as SecurityInstallType, S as SecurityReleaseImage, ai as SecurityScanSummary, aj as SecurityScanWrapper, aa as SupportBundleInsight, q as SupportBundleSummary, aA as UpdateNotificationsInput, aB as UpdateNotificationsResult, av as UpdateUserInput, aw as UpdateUserResult, af as UploadSupportBundleCompleteInput, ag as UploadSupportBundleCompleteResult, au as UserProfile, a7 as VerifyMagicLinkError, a5 as VerifyMagicLinkInput, a6 as VerifyMagicLinkResult, B as decodeJwtPayload, r as defineServerAction, y as deleteSupportBundle, O as downloadSecuritySBOM, x as downloadSupportBundle, Q as fetchCurrentUser, s as fetchCustomBranding, J as fetchDashboardComposite, T as fetchNotifications, E as getCustomerIdFromToken, K as getSecurityInfo, L as getSecurityInfoDiff, M as getSecurityInfoSBOM, A as getSupportBundleUploadUrl, v as initiateLogin, t as listReleases, w as listSupportBundles, V as updateNotifications, R as updateUser, z as uploadSupportBundle, H as verifyMagicLink } from './index-DyzJ0yKD.mjs';
15
+ export { C as ChannelRelease, Z as CustomBrandingResponse, ad as DeleteSupportBundleInput, ae as DeleteSupportBundleResult, a1 as DownloadPortalRelease, ar as DownloadSBOMInput, ab as DownloadSupportBundleInput, ac as DownloadSupportBundleResult, F as FetchChannelReleasesResult, as as FetchCurrentUserInput, at as FetchCurrentUserResult, _ as FetchLicenseInput, $ as FetchLicenseResult, ay as FetchNotificationsInput, az as FetchNotificationsResult, an as GetSecurityInfoDiffInput, G as GetSecurityInfoDiffResult, ak as GetSecurityInfoInput, al as GetSecurityInfoResult, ap as GetSecurityInfoSBOMInput, aq as GetSecurityInfoSBOMResult, a3 as InitiateLoginInput, a4 as InitiateLoginResult, a2 as ListReleasesResult, a8 as ListSupportBundlesInput, a9 as ListSupportBundlesResult, ax as NotificationSetting, W as PortalActionContext, X as PortalActionVisibility, Y as PortalServerActionDefinition, a0 as ReleaseHelmChart, ao as SBOMMetadata, am as SecurityInfoDiff, ah as SecurityInstallType, S as SecurityReleaseImage, ai as SecurityScanSummary, aj as SecurityScanWrapper, aa as SupportBundleInsight, q as SupportBundleSummary, aA as UpdateNotificationsInput, aB as UpdateNotificationsResult, av as UpdateUserInput, aw as UpdateUserResult, af as UploadSupportBundleCompleteInput, ag as UploadSupportBundleCompleteResult, au as UserProfile, a7 as VerifyMagicLinkError, a5 as VerifyMagicLinkInput, a6 as VerifyMagicLinkResult, B as decodeJwtPayload, r as defineServerAction, y as deleteSupportBundle, O as downloadSecuritySBOM, x as downloadSupportBundle, Q as fetchCurrentUser, s as fetchCustomBranding, J as fetchDashboardComposite, T as fetchNotifications, E as getCustomerIdFromToken, K as getSecurityInfo, L as getSecurityInfoDiff, M as getSecurityInfoSBOM, A as getSupportBundleUploadUrl, v as initiateLogin, t as listReleases, w as listSupportBundles, V as updateNotifications, R as updateUser, z as uploadSupportBundle, H as verifyMagicLink } from './index-JX9-CIMA.mjs';
16
16
  export { InitialSecurityData } from './security-card.mjs';
17
17
  export { C as CustomHostnameOverrides, E as EntitlementField, b as EntitlementValue, L as License, a as LicenseChannel, P as PortalLicenseField, f as fetchLicense } from './fetch-license-iTyF7_GY.mjs';
18
18
  import 'react/jsx-runtime';
package/dist/index.d.ts CHANGED
@@ -12,7 +12,7 @@ export { UpdateLayout } from './update-layout.js';
12
12
  export { ConvertToReleaseEntryOptions, DEFAULT_FAVICON, DEFAULT_PRIMARY_COLOR, DEFAULT_SECONDARY_COLOR, ReleaseNotesMode, UnauthorizedError, authenticatedFetch, convertToReleaseEntry, deleteSessionCookie, formatBytes, formatDate, formatDateShort, formatDateTime, formatDateTimeLocal, isHttpApiOrigin, isRedirectError, validateSession } from './utils/index.js';
13
13
  export { d as decodeBranding, n as normalizeColor, s as sanitizeUrlForCss } from './branding-BsMSywts.js';
14
14
  export { SetSamlSessionResult, handleSamlAcs, setSamlSessionImpl } from './saml-handlers.js';
15
- export { C as ChannelRelease, Z as CustomBrandingResponse, ad as DeleteSupportBundleInput, ae as DeleteSupportBundleResult, a1 as DownloadPortalRelease, ar as DownloadSBOMInput, ab as DownloadSupportBundleInput, ac as DownloadSupportBundleResult, F as FetchChannelReleasesResult, as as FetchCurrentUserInput, at as FetchCurrentUserResult, _ as FetchLicenseInput, $ as FetchLicenseResult, ay as FetchNotificationsInput, az as FetchNotificationsResult, an as GetSecurityInfoDiffInput, G as GetSecurityInfoDiffResult, ak as GetSecurityInfoInput, al as GetSecurityInfoResult, ap as GetSecurityInfoSBOMInput, aq as GetSecurityInfoSBOMResult, a3 as InitiateLoginInput, a4 as InitiateLoginResult, a2 as ListReleasesResult, a8 as ListSupportBundlesInput, a9 as ListSupportBundlesResult, ax as NotificationSetting, W as PortalActionContext, X as PortalActionVisibility, Y as PortalServerActionDefinition, a0 as ReleaseHelmChart, ao as SBOMMetadata, am as SecurityInfoDiff, ah as SecurityInstallType, S as SecurityReleaseImage, ai as SecurityScanSummary, aj as SecurityScanWrapper, aa as SupportBundleInsight, q as SupportBundleSummary, aA as UpdateNotificationsInput, aB as UpdateNotificationsResult, av as UpdateUserInput, aw as UpdateUserResult, af as UploadSupportBundleCompleteInput, ag as UploadSupportBundleCompleteResult, au as UserProfile, a7 as VerifyMagicLinkError, a5 as VerifyMagicLinkInput, a6 as VerifyMagicLinkResult, B as decodeJwtPayload, r as defineServerAction, y as deleteSupportBundle, O as downloadSecuritySBOM, x as downloadSupportBundle, Q as fetchCurrentUser, s as fetchCustomBranding, J as fetchDashboardComposite, T as fetchNotifications, E as getCustomerIdFromToken, K as getSecurityInfo, L as getSecurityInfoDiff, M as getSecurityInfoSBOM, A as getSupportBundleUploadUrl, v as initiateLogin, t as listReleases, w as listSupportBundles, V as updateNotifications, R as updateUser, z as uploadSupportBundle, H as verifyMagicLink } from './index-sMbq94M7.js';
15
+ export { C as ChannelRelease, Z as CustomBrandingResponse, ad as DeleteSupportBundleInput, ae as DeleteSupportBundleResult, a1 as DownloadPortalRelease, ar as DownloadSBOMInput, ab as DownloadSupportBundleInput, ac as DownloadSupportBundleResult, F as FetchChannelReleasesResult, as as FetchCurrentUserInput, at as FetchCurrentUserResult, _ as FetchLicenseInput, $ as FetchLicenseResult, ay as FetchNotificationsInput, az as FetchNotificationsResult, an as GetSecurityInfoDiffInput, G as GetSecurityInfoDiffResult, ak as GetSecurityInfoInput, al as GetSecurityInfoResult, ap as GetSecurityInfoSBOMInput, aq as GetSecurityInfoSBOMResult, a3 as InitiateLoginInput, a4 as InitiateLoginResult, a2 as ListReleasesResult, a8 as ListSupportBundlesInput, a9 as ListSupportBundlesResult, ax as NotificationSetting, W as PortalActionContext, X as PortalActionVisibility, Y as PortalServerActionDefinition, a0 as ReleaseHelmChart, ao as SBOMMetadata, am as SecurityInfoDiff, ah as SecurityInstallType, S as SecurityReleaseImage, ai as SecurityScanSummary, aj as SecurityScanWrapper, aa as SupportBundleInsight, q as SupportBundleSummary, aA as UpdateNotificationsInput, aB as UpdateNotificationsResult, av as UpdateUserInput, aw as UpdateUserResult, af as UploadSupportBundleCompleteInput, ag as UploadSupportBundleCompleteResult, au as UserProfile, a7 as VerifyMagicLinkError, a5 as VerifyMagicLinkInput, a6 as VerifyMagicLinkResult, B as decodeJwtPayload, r as defineServerAction, y as deleteSupportBundle, O as downloadSecuritySBOM, x as downloadSupportBundle, Q as fetchCurrentUser, s as fetchCustomBranding, J as fetchDashboardComposite, T as fetchNotifications, E as getCustomerIdFromToken, K as getSecurityInfo, L as getSecurityInfoDiff, M as getSecurityInfoSBOM, A as getSupportBundleUploadUrl, v as initiateLogin, t as listReleases, w as listSupportBundles, V as updateNotifications, R as updateUser, z as uploadSupportBundle, H as verifyMagicLink } from './index-DXy7RxOX.js';
16
16
  export { InitialSecurityData } from './security-card.js';
17
17
  export { C as CustomHostnameOverrides, E as EntitlementField, b as EntitlementValue, L as License, a as LicenseChannel, P as PortalLicenseField, f as fetchLicense } from './fetch-license-iTyF7_GY.js';
18
18
  import 'react/jsx-runtime';
package/dist/index.js CHANGED
@@ -5,6 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
5
5
  var buffer = require('buffer');
6
6
  var headers = require('next/headers');
7
7
  var Link = require('next/link');
8
+ var lucideReact = require('lucide-react');
8
9
 
9
10
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
11
 
@@ -126,7 +127,7 @@ var init_tracer = __esm({
126
127
 
127
128
  // package.json
128
129
  var package_default = {
129
- version: "0.0.21"};
130
+ version: "0.0.22"};
130
131
 
131
132
  // src/tokens/index.ts
132
133
  var baseTokens = {
@@ -1456,6 +1457,45 @@ var updateNotifications = defineServerAction({
1456
1457
  };
1457
1458
  }
1458
1459
  });
1460
+ var fetchDocumentationImpl = async () => {
1461
+ const { cookies: cookies2 } = await import('next/headers');
1462
+ const sessionStore = await cookies2();
1463
+ const session = sessionStore.get("portal_session");
1464
+ const token = session?.value;
1465
+ if (!token) {
1466
+ throw new Error("Authentication required");
1467
+ }
1468
+ const url = `${getApiOrigin()}/enterprise-portal/documentation`;
1469
+ if (process.env.NODE_ENV !== "production") {
1470
+ console.debug(
1471
+ "[portal-components] fetching documentation via %s (Enterprise Portal API)",
1472
+ url
1473
+ );
1474
+ }
1475
+ const response = await authenticatedFetch(url, {
1476
+ method: "GET",
1477
+ token,
1478
+ headers: {
1479
+ accept: "application/json"
1480
+ }
1481
+ });
1482
+ if (!response.ok) {
1483
+ throw new Error(
1484
+ `Documentation request failed (${response.status} ${response.statusText})`
1485
+ );
1486
+ }
1487
+ const data = await response.json();
1488
+ return {
1489
+ helmPreInstall: data.helmPreInstall || "",
1490
+ helmPostInstall: data.helmPostInstall || "",
1491
+ embeddedClusterPreInstall: data.embeddedClusterPreInstall || "",
1492
+ embeddedClusterPostInstall: data.embeddedClusterPostInstall || "",
1493
+ helmInstallUrl: data.helmInstallUrl || "",
1494
+ embeddedClusterInstallUrl: data.embeddedClusterInstallUrl || "",
1495
+ valuesOverrideUrl: data.valuesOverrideUrl || ""
1496
+ };
1497
+ };
1498
+ react.cache(fetchDocumentationImpl);
1459
1499
  var ShieldIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
1460
1500
  "svg",
1461
1501
  {
@@ -1713,6 +1753,45 @@ var LicenseDetails = async ({
1713
1753
  ] })
1714
1754
  ] });
1715
1755
  };
1756
+ function UserMenuDropdown({
1757
+ displayLabel,
1758
+ children,
1759
+ className = ""
1760
+ }) {
1761
+ return /* @__PURE__ */ jsxRuntime.jsxs("details", { className: `group relative ${className}`, children: [
1762
+ /* @__PURE__ */ jsxRuntime.jsxs("summary", { className: "flex cursor-pointer items-center gap-2 rounded-lg px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50 transition-colors list-none border border-transparent hover:border-gray-200", children: [
1763
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { className: "h-4 w-4" }),
1764
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: displayLabel }),
1765
+ /* @__PURE__ */ jsxRuntime.jsx(
1766
+ "svg",
1767
+ {
1768
+ xmlns: "http://www.w3.org/2000/svg",
1769
+ width: "16",
1770
+ height: "16",
1771
+ viewBox: "0 0 24 24",
1772
+ fill: "none",
1773
+ stroke: "currentColor",
1774
+ strokeWidth: "2",
1775
+ strokeLinecap: "round",
1776
+ strokeLinejoin: "round",
1777
+ className: "h-4 w-4 text-gray-500 transition-transform group-open:rotate-180",
1778
+ children: /* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "6 9 12 15 18 9" })
1779
+ }
1780
+ )
1781
+ ] }),
1782
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute right-0 mt-2 w-52 rounded-lg border border-gray-200 bg-white py-1.5 shadow-xl z-50", children })
1783
+ ] });
1784
+ }
1785
+ function UserMenuItem({ href, children }) {
1786
+ return /* @__PURE__ */ jsxRuntime.jsx(
1787
+ Link__default.default,
1788
+ {
1789
+ href,
1790
+ className: "block w-full px-4 py-2.5 text-sm text-gray-700 hover:bg-gray-50 transition-colors",
1791
+ children
1792
+ }
1793
+ );
1794
+ }
1716
1795
  var defaultTopNavLinks = [
1717
1796
  {
1718
1797
  label: "Dashboard",
@@ -2009,65 +2088,11 @@ var TopNav = async ({
2009
2088
  ),
2010
2089
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xl font-bold text-gray-900", children: brandTitle || "Enterprise Portal" })
2011
2090
  ] }),
2012
- /* @__PURE__ */ jsxRuntime.jsxs("details", { className: "group relative", children: [
2013
- /* @__PURE__ */ jsxRuntime.jsxs("summary", { className: "flex cursor-pointer items-center gap-2 text-sm font-medium text-gray-600 hover:text-gray-900 list-none", children: [
2014
- /* @__PURE__ */ jsxRuntime.jsxs(
2015
- "svg",
2016
- {
2017
- xmlns: "http://www.w3.org/2000/svg",
2018
- width: "16",
2019
- height: "16",
2020
- viewBox: "0 0 24 24",
2021
- fill: "none",
2022
- stroke: "currentColor",
2023
- strokeWidth: "2",
2024
- strokeLinecap: "round",
2025
- strokeLinejoin: "round",
2026
- className: "text-gray-500",
2027
- children: [
2028
- /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }),
2029
- /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "7", r: "4" })
2030
- ]
2031
- }
2032
- ),
2033
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: displayLabel }),
2034
- /* @__PURE__ */ jsxRuntime.jsx(
2035
- "svg",
2036
- {
2037
- xmlns: "http://www.w3.org/2000/svg",
2038
- width: "16",
2039
- height: "16",
2040
- viewBox: "0 0 24 24",
2041
- fill: "none",
2042
- stroke: "currentColor",
2043
- strokeWidth: "2",
2044
- strokeLinecap: "round",
2045
- strokeLinejoin: "round",
2046
- className: "text-gray-500",
2047
- children: /* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "6 9 12 15 18 9" })
2048
- }
2049
- )
2050
- ] }),
2051
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "absolute right-0 mt-2 w-48 rounded-md border border-gray-200 bg-white py-2 text-sm text-gray-700 shadow-lg z-50", children: [
2052
- /* @__PURE__ */ jsxRuntime.jsx(
2053
- Link__default.default,
2054
- {
2055
- href: "/user-settings",
2056
- className: "block w-full px-4 py-2 text-left hover:bg-gray-100",
2057
- children: "User settings"
2058
- }
2059
- ),
2060
- /* @__PURE__ */ jsxRuntime.jsx(
2061
- Link__default.default,
2062
- {
2063
- href: "/team-settings",
2064
- className: "block w-full px-4 py-2 text-left hover:bg-gray-100",
2065
- children: "Team settings"
2066
- }
2067
- ),
2068
- userMenuChildren,
2069
- logoutButton
2070
- ] })
2091
+ /* @__PURE__ */ jsxRuntime.jsxs(UserMenuDropdown, { displayLabel, children: [
2092
+ /* @__PURE__ */ jsxRuntime.jsx(UserMenuItem, { href: "/user-settings", children: "User settings" }),
2093
+ /* @__PURE__ */ jsxRuntime.jsx(UserMenuItem, { href: "/team-settings", children: "Team settings" }),
2094
+ userMenuChildren,
2095
+ logoutButton
2071
2096
  ] })
2072
2097
  ] }),
2073
2098
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 flex flex-wrap gap-3 pb-2 text-sm font-medium text-gray-500", children: resolvedLinks.map(({ label, icon, href }) => {
@@ -2334,7 +2359,7 @@ var TeamsSection = ({
2334
2359
  "svg",
2335
2360
  {
2336
2361
  className: "h-4 w-4",
2337
- style: { color: primaryColor || DEFAULT_SECONDARY_COLOR },
2362
+ style: { color: primaryColor || DEFAULT_PRIMARY_COLOR },
2338
2363
  fill: "none",
2339
2364
  viewBox: "0 0 24 24",
2340
2365
  stroke: "currentColor",
@@ -2358,7 +2383,7 @@ var TeamsSection = ({
2358
2383
  "svg",
2359
2384
  {
2360
2385
  className: "h-4 w-4",
2361
- style: { color: primaryColor || DEFAULT_SECONDARY_COLOR },
2386
+ style: { color: primaryColor || DEFAULT_PRIMARY_COLOR },
2362
2387
  fill: "none",
2363
2388
  viewBox: "0 0 24 24",
2364
2389
  stroke: "currentColor",
@@ -2424,8 +2449,8 @@ var ProfileSection = ({
2424
2449
  setIsEditing(true);
2425
2450
  };
2426
2451
  const buttonStyle = {
2427
- backgroundColor: primaryColor || DEFAULT_SECONDARY_COLOR,
2428
- borderColor: primaryColor || DEFAULT_SECONDARY_COLOR
2452
+ backgroundColor: primaryColor || DEFAULT_PRIMARY_COLOR,
2453
+ borderColor: primaryColor || DEFAULT_PRIMARY_COLOR
2429
2454
  };
2430
2455
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-2xl border border-gray-200 bg-white p-6 shadow-sm", children: [
2431
2456
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4", children: [