@replicated/portal-components 0.0.12 → 0.0.14

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 (53) hide show
  1. package/components/metadata/registry.json +2 -2
  2. package/components/metadata/registry.md +2 -2
  3. package/dist/actions/index.d.mts +26 -4
  4. package/dist/actions/index.d.ts +26 -4
  5. package/dist/actions/index.js +171 -124
  6. package/dist/actions/index.js.map +1 -1
  7. package/dist/airgap-instances.js.map +1 -1
  8. package/dist/esm/actions/index.js +170 -124
  9. package/dist/esm/actions/index.js.map +1 -1
  10. package/dist/esm/airgap-instances.js.map +1 -1
  11. package/dist/esm/helm-install-wizard.js +15 -9
  12. package/dist/esm/helm-install-wizard.js.map +1 -1
  13. package/dist/esm/index.js +127 -108
  14. package/dist/esm/index.js.map +1 -1
  15. package/dist/esm/install-actions.js +42 -47
  16. package/dist/esm/install-actions.js.map +1 -1
  17. package/dist/esm/instance-card.js.map +1 -1
  18. package/dist/esm/license-details.js +20 -10
  19. package/dist/esm/license-details.js.map +1 -1
  20. package/dist/esm/linux-install-wizard.js +26 -47
  21. package/dist/esm/linux-install-wizard.js.map +1 -1
  22. package/dist/esm/online-instance-list.js.map +1 -1
  23. package/dist/esm/support-card.js +18 -49
  24. package/dist/esm/support-card.js.map +1 -1
  25. package/dist/esm/top-nav.js +13 -31
  26. package/dist/esm/top-nav.js.map +1 -1
  27. package/dist/esm/update-layout.js +13 -31
  28. package/dist/esm/update-layout.js.map +1 -1
  29. package/dist/esm/utils/index.js +14 -10
  30. package/dist/esm/utils/index.js.map +1 -1
  31. package/dist/helm-install-wizard.js +15 -9
  32. package/dist/helm-install-wizard.js.map +1 -1
  33. package/dist/index.d.mts +1 -1
  34. package/dist/index.d.ts +1 -1
  35. package/dist/index.js +126 -106
  36. package/dist/index.js.map +1 -1
  37. package/dist/install-actions.js +43 -48
  38. package/dist/install-actions.js.map +1 -1
  39. package/dist/instance-card.js.map +1 -1
  40. package/dist/license-details.js +20 -10
  41. package/dist/license-details.js.map +1 -1
  42. package/dist/linux-install-wizard.js +26 -47
  43. package/dist/linux-install-wizard.js.map +1 -1
  44. package/dist/online-instance-list.js.map +1 -1
  45. package/dist/support-card.js +18 -49
  46. package/dist/support-card.js.map +1 -1
  47. package/dist/top-nav.js +13 -31
  48. package/dist/top-nav.js.map +1 -1
  49. package/dist/update-layout.js +13 -31
  50. package/dist/update-layout.js.map +1 -1
  51. package/dist/utils/index.js +14 -10
  52. package/dist/utils/index.js.map +1 -1
  53. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.0.12",
3
- "generatedAt": "2026-01-14T21:54:09.489Z",
2
+ "version": "0.0.14",
3
+ "generatedAt": "2026-01-19T22:09:34.383Z",
4
4
  "components": [
5
5
  {
6
6
  "name": "Button",
@@ -1,7 +1,7 @@
1
1
  # Component Registry
2
2
 
3
- - Version: 0.0.12
4
- - Generated: 2026-01-14T21:54:09.489Z
3
+ - Version: 0.0.14
4
+ - Generated: 2026-01-19T22:09:34.383Z
5
5
 
6
6
  ## Button
7
7
 
@@ -343,7 +343,27 @@ interface FetchDashboardInstancesResult {
343
343
  airgapCount: number;
344
344
  onlineUpdates: number;
345
345
  airgapUpdates: number;
346
+ license?: {
347
+ type: string;
348
+ expiresAt: string | null;
349
+ isEmbeddedClusterDownloadEnabled: boolean;
350
+ isHelmInstallEnabled: boolean;
351
+ };
352
+ teamStats?: {
353
+ userCount: number;
354
+ serviceAccountCount: number;
355
+ supportBundleCount: number;
356
+ };
346
357
  }
358
+ /**
359
+ * NEW: Fetches all dashboard data using the composite Enterprise Portal API endpoint.
360
+ * This replaces multiple v3 calls with a single call that returns:
361
+ * - Instances
362
+ * - Channel releases (for calculating updates)
363
+ * - Notifications
364
+ * - User/app/branding context
365
+ */
366
+ declare const fetchDashboardComposite: PortalServerActionDefinition<FetchDashboardInstancesInput, FetchDashboardInstancesResult>;
347
367
  /**
348
368
  * Fetches team statistics including user count and service account count.
349
369
  * Used by the Team Settings dashboard card.
@@ -415,11 +435,12 @@ interface TeamUser {
415
435
  createdAt?: string;
416
436
  }
417
437
  interface TeamUser {
438
+ id: string;
418
439
  emailAddress: string;
419
440
  firstAccessedAt?: string;
420
441
  lastAccessedAt?: string;
421
442
  viewCount?: number;
422
- pendingInvite?: boolean;
443
+ pendingInvite: boolean;
423
444
  }
424
445
  interface FetchTeamUsersInput {
425
446
  token: string;
@@ -439,7 +460,8 @@ interface InviteUserResult {
439
460
  }
440
461
  interface DeleteUserInput {
441
462
  token: string;
442
- email: string;
463
+ id: string;
464
+ isPendingInvite: boolean;
443
465
  }
444
466
  interface DeleteUserResult {
445
467
  success: boolean;
@@ -546,7 +568,7 @@ declare const fetchTeamUsers: PortalServerActionDefinition<FetchTeamUsersInput,
546
568
  */
547
569
  declare const inviteUser: PortalServerActionDefinition<InviteUserInput, InviteUserResult>;
548
570
  /**
549
- * Removes a user from the team.
571
+ * Removes a user or pending invite from the team by ID.
550
572
  */
551
573
  declare const deleteUser: PortalServerActionDefinition<DeleteUserInput, DeleteUserResult>;
552
574
  /**
@@ -608,4 +630,4 @@ interface RefreshInviteResult {
608
630
  */
609
631
  declare const refreshInvite: PortalServerActionDefinition<RefreshInviteInput, RefreshInviteResult>;
610
632
 
611
- export { type AcceptInviteError, type AcceptInviteInput, type AcceptInviteResult, type CreateServiceAccountInput, type CreateServiceAccountResult, type CustomBrandingResponse, type Customer, type DeleteSupportBundleInput, type DeleteSupportBundleResult, type DeleteUserInput, type DeleteUserResult, type DeprovisionSamlInput, type DeprovisionSamlResult, type DownloadSupportBundleInput, type DownloadSupportBundleResult, type FetchCurrentUserInput, type FetchCurrentUserResult, type FetchCustomersInput, type FetchCustomersResult, type FetchDashboardInstancesInput, type FetchDashboardInstancesResult, type FetchInstallOptionsInput, type FetchInstallOptionsResult, type FetchInstancesInput, type FetchInstancesResult, type FetchLicenseDetailsInput, type FetchLicenseDetailsResult, type FetchLicenseSummaryInput, type FetchLicenseSummaryResult, type FetchNotificationsInput, type FetchNotificationsResult, type FetchSamlConfigInput, type FetchSamlConfigResult, type FetchServiceAccountsInput, type FetchServiceAccountsResult, type FetchTeamStatsInput, type FetchTeamStatsResult, type FetchTeamUsersInput, type FetchTeamUsersResult, type GetSecurityInfoDiffInput, type GetSecurityInfoDiffResult, type GetSecurityInfoInput, type GetSecurityInfoResult, type GetSecurityInfoSBOMInput, type GetSecurityInfoSBOMResult, type InitiateLoginInput, type InitiateLoginResult, type Instance, type InviteUserInput, type InviteUserResult, type ListReleasesInput, type ListReleasesResult, type ListSupportBundlesInput, type ListSupportBundlesResult, type NotificationSetting, type PortalActionContext, type PortalActionVisibility, type PortalLicenseDetails, type PortalLicenseField, type PortalServerActionDefinition, type RefreshInviteInput, type RefreshInviteResult, type RevokeServiceAccountInput, type RevokeServiceAccountResult, type RotateServiceAccountTokenInput, type RotateServiceAccountTokenResult, type SAMLConfig, type SecurityInfoDiff, type SecurityInstallType, type SecurityReleaseImage, type SecurityScanSummary, type SecurityScanWrapper, type ServiceAccount, type ServiceAccountData, type ServiceAccountSummary, type SpdxCreationInfo, type SpdxDocument, type SupportBundleInsight, type SupportBundleSummary, type SwitchCustomerInput, type SwitchCustomerResult, type TeamUser, type ToggleSamlEnabledInput, type ToggleSamlEnabledResult, type UnifiedSbom, type UpdateNotificationsInput, type UpdateNotificationsResult, type UpdateSamlConfigInput, type UpdateSamlConfigResult, type UpdateUserInput, type UpdateUserResult, type UploadSupportBundleCompleteInput, type UploadSupportBundleCompleteResult, type UploadSupportBundleInput, type UploadSupportBundleResult, type UserProfile, type VerifyMagicLinkError, type VerifyMagicLinkInput, type VerifyMagicLinkResult, acceptInvite, createServiceAccount, decodeJwtPayload, defineServerAction, deleteSupportBundle, deleteUser, deprovisionSaml, downloadSupportBundle, fetchCurrentUser, fetchCustomBranding, fetchCustomers, fetchDashboardInstances, fetchInstallOptions, fetchInstances, fetchLicenseDetails, fetchLicenseSummary, fetchNotifications, fetchSamlConfig, fetchServiceAccounts, fetchTeamStats, fetchTeamUsers, getApiOrigin, getCustomerIdFromToken, getSecurityInfo, getSecurityInfoDiff, getSecurityInfoSBOM, getSupportBundleUploadUrl, initiateLogin, inviteUser, listReleases, listSupportBundles, refreshInvite, revokeServiceAccount, rotateServiceAccountToken, switchCustomer, toggleSamlEnabled, updateNotifications, updateSamlConfig, updateUser, uploadSupportBundle, verifyMagicLink };
633
+ export { type AcceptInviteError, type AcceptInviteInput, type AcceptInviteResult, type CreateServiceAccountInput, type CreateServiceAccountResult, type CustomBrandingResponse, type Customer, type DeleteSupportBundleInput, type DeleteSupportBundleResult, type DeleteUserInput, type DeleteUserResult, type DeprovisionSamlInput, type DeprovisionSamlResult, type DownloadSupportBundleInput, type DownloadSupportBundleResult, type FetchCurrentUserInput, type FetchCurrentUserResult, type FetchCustomersInput, type FetchCustomersResult, type FetchDashboardInstancesInput, type FetchDashboardInstancesResult, type FetchInstallOptionsInput, type FetchInstallOptionsResult, type FetchInstancesInput, type FetchInstancesResult, type FetchLicenseDetailsInput, type FetchLicenseDetailsResult, type FetchLicenseSummaryInput, type FetchLicenseSummaryResult, type FetchNotificationsInput, type FetchNotificationsResult, type FetchSamlConfigInput, type FetchSamlConfigResult, type FetchServiceAccountsInput, type FetchServiceAccountsResult, type FetchTeamStatsInput, type FetchTeamStatsResult, type FetchTeamUsersInput, type FetchTeamUsersResult, type GetSecurityInfoDiffInput, type GetSecurityInfoDiffResult, type GetSecurityInfoInput, type GetSecurityInfoResult, type GetSecurityInfoSBOMInput, type GetSecurityInfoSBOMResult, type InitiateLoginInput, type InitiateLoginResult, type Instance, type InviteUserInput, type InviteUserResult, type ListReleasesInput, type ListReleasesResult, type ListSupportBundlesInput, type ListSupportBundlesResult, type NotificationSetting, type PortalActionContext, type PortalActionVisibility, type PortalLicenseDetails, type PortalLicenseField, type PortalServerActionDefinition, type RefreshInviteInput, type RefreshInviteResult, type RevokeServiceAccountInput, type RevokeServiceAccountResult, type RotateServiceAccountTokenInput, type RotateServiceAccountTokenResult, type SAMLConfig, type SecurityInfoDiff, type SecurityInstallType, type SecurityReleaseImage, type SecurityScanSummary, type SecurityScanWrapper, type ServiceAccount, type ServiceAccountData, type ServiceAccountSummary, type SpdxCreationInfo, type SpdxDocument, type SupportBundleInsight, type SupportBundleSummary, type SwitchCustomerInput, type SwitchCustomerResult, type TeamUser, type ToggleSamlEnabledInput, type ToggleSamlEnabledResult, type UnifiedSbom, type UpdateNotificationsInput, type UpdateNotificationsResult, type UpdateSamlConfigInput, type UpdateSamlConfigResult, type UpdateUserInput, type UpdateUserResult, type UploadSupportBundleCompleteInput, type UploadSupportBundleCompleteResult, type UploadSupportBundleInput, type UploadSupportBundleResult, type UserProfile, type VerifyMagicLinkError, type VerifyMagicLinkInput, type VerifyMagicLinkResult, acceptInvite, createServiceAccount, decodeJwtPayload, defineServerAction, deleteSupportBundle, deleteUser, deprovisionSaml, downloadSupportBundle, fetchCurrentUser, fetchCustomBranding, fetchCustomers, fetchDashboardComposite, fetchDashboardInstances, fetchInstallOptions, fetchInstances, fetchLicenseDetails, fetchLicenseSummary, fetchNotifications, fetchSamlConfig, fetchServiceAccounts, fetchTeamStats, fetchTeamUsers, getApiOrigin, getCustomerIdFromToken, getSecurityInfo, getSecurityInfoDiff, getSecurityInfoSBOM, getSupportBundleUploadUrl, initiateLogin, inviteUser, listReleases, listSupportBundles, refreshInvite, revokeServiceAccount, rotateServiceAccountToken, switchCustomer, toggleSamlEnabled, updateNotifications, updateSamlConfig, updateUser, uploadSupportBundle, verifyMagicLink };
@@ -343,7 +343,27 @@ interface FetchDashboardInstancesResult {
343
343
  airgapCount: number;
344
344
  onlineUpdates: number;
345
345
  airgapUpdates: number;
346
+ license?: {
347
+ type: string;
348
+ expiresAt: string | null;
349
+ isEmbeddedClusterDownloadEnabled: boolean;
350
+ isHelmInstallEnabled: boolean;
351
+ };
352
+ teamStats?: {
353
+ userCount: number;
354
+ serviceAccountCount: number;
355
+ supportBundleCount: number;
356
+ };
346
357
  }
358
+ /**
359
+ * NEW: Fetches all dashboard data using the composite Enterprise Portal API endpoint.
360
+ * This replaces multiple v3 calls with a single call that returns:
361
+ * - Instances
362
+ * - Channel releases (for calculating updates)
363
+ * - Notifications
364
+ * - User/app/branding context
365
+ */
366
+ declare const fetchDashboardComposite: PortalServerActionDefinition<FetchDashboardInstancesInput, FetchDashboardInstancesResult>;
347
367
  /**
348
368
  * Fetches team statistics including user count and service account count.
349
369
  * Used by the Team Settings dashboard card.
@@ -415,11 +435,12 @@ interface TeamUser {
415
435
  createdAt?: string;
416
436
  }
417
437
  interface TeamUser {
438
+ id: string;
418
439
  emailAddress: string;
419
440
  firstAccessedAt?: string;
420
441
  lastAccessedAt?: string;
421
442
  viewCount?: number;
422
- pendingInvite?: boolean;
443
+ pendingInvite: boolean;
423
444
  }
424
445
  interface FetchTeamUsersInput {
425
446
  token: string;
@@ -439,7 +460,8 @@ interface InviteUserResult {
439
460
  }
440
461
  interface DeleteUserInput {
441
462
  token: string;
442
- email: string;
463
+ id: string;
464
+ isPendingInvite: boolean;
443
465
  }
444
466
  interface DeleteUserResult {
445
467
  success: boolean;
@@ -546,7 +568,7 @@ declare const fetchTeamUsers: PortalServerActionDefinition<FetchTeamUsersInput,
546
568
  */
547
569
  declare const inviteUser: PortalServerActionDefinition<InviteUserInput, InviteUserResult>;
548
570
  /**
549
- * Removes a user from the team.
571
+ * Removes a user or pending invite from the team by ID.
550
572
  */
551
573
  declare const deleteUser: PortalServerActionDefinition<DeleteUserInput, DeleteUserResult>;
552
574
  /**
@@ -608,4 +630,4 @@ interface RefreshInviteResult {
608
630
  */
609
631
  declare const refreshInvite: PortalServerActionDefinition<RefreshInviteInput, RefreshInviteResult>;
610
632
 
611
- export { type AcceptInviteError, type AcceptInviteInput, type AcceptInviteResult, type CreateServiceAccountInput, type CreateServiceAccountResult, type CustomBrandingResponse, type Customer, type DeleteSupportBundleInput, type DeleteSupportBundleResult, type DeleteUserInput, type DeleteUserResult, type DeprovisionSamlInput, type DeprovisionSamlResult, type DownloadSupportBundleInput, type DownloadSupportBundleResult, type FetchCurrentUserInput, type FetchCurrentUserResult, type FetchCustomersInput, type FetchCustomersResult, type FetchDashboardInstancesInput, type FetchDashboardInstancesResult, type FetchInstallOptionsInput, type FetchInstallOptionsResult, type FetchInstancesInput, type FetchInstancesResult, type FetchLicenseDetailsInput, type FetchLicenseDetailsResult, type FetchLicenseSummaryInput, type FetchLicenseSummaryResult, type FetchNotificationsInput, type FetchNotificationsResult, type FetchSamlConfigInput, type FetchSamlConfigResult, type FetchServiceAccountsInput, type FetchServiceAccountsResult, type FetchTeamStatsInput, type FetchTeamStatsResult, type FetchTeamUsersInput, type FetchTeamUsersResult, type GetSecurityInfoDiffInput, type GetSecurityInfoDiffResult, type GetSecurityInfoInput, type GetSecurityInfoResult, type GetSecurityInfoSBOMInput, type GetSecurityInfoSBOMResult, type InitiateLoginInput, type InitiateLoginResult, type Instance, type InviteUserInput, type InviteUserResult, type ListReleasesInput, type ListReleasesResult, type ListSupportBundlesInput, type ListSupportBundlesResult, type NotificationSetting, type PortalActionContext, type PortalActionVisibility, type PortalLicenseDetails, type PortalLicenseField, type PortalServerActionDefinition, type RefreshInviteInput, type RefreshInviteResult, type RevokeServiceAccountInput, type RevokeServiceAccountResult, type RotateServiceAccountTokenInput, type RotateServiceAccountTokenResult, type SAMLConfig, type SecurityInfoDiff, type SecurityInstallType, type SecurityReleaseImage, type SecurityScanSummary, type SecurityScanWrapper, type ServiceAccount, type ServiceAccountData, type ServiceAccountSummary, type SpdxCreationInfo, type SpdxDocument, type SupportBundleInsight, type SupportBundleSummary, type SwitchCustomerInput, type SwitchCustomerResult, type TeamUser, type ToggleSamlEnabledInput, type ToggleSamlEnabledResult, type UnifiedSbom, type UpdateNotificationsInput, type UpdateNotificationsResult, type UpdateSamlConfigInput, type UpdateSamlConfigResult, type UpdateUserInput, type UpdateUserResult, type UploadSupportBundleCompleteInput, type UploadSupportBundleCompleteResult, type UploadSupportBundleInput, type UploadSupportBundleResult, type UserProfile, type VerifyMagicLinkError, type VerifyMagicLinkInput, type VerifyMagicLinkResult, acceptInvite, createServiceAccount, decodeJwtPayload, defineServerAction, deleteSupportBundle, deleteUser, deprovisionSaml, downloadSupportBundle, fetchCurrentUser, fetchCustomBranding, fetchCustomers, fetchDashboardInstances, fetchInstallOptions, fetchInstances, fetchLicenseDetails, fetchLicenseSummary, fetchNotifications, fetchSamlConfig, fetchServiceAccounts, fetchTeamStats, fetchTeamUsers, getApiOrigin, getCustomerIdFromToken, getSecurityInfo, getSecurityInfoDiff, getSecurityInfoSBOM, getSupportBundleUploadUrl, initiateLogin, inviteUser, listReleases, listSupportBundles, refreshInvite, revokeServiceAccount, rotateServiceAccountToken, switchCustomer, toggleSamlEnabled, updateNotifications, updateSamlConfig, updateUser, uploadSupportBundle, verifyMagicLink };
633
+ export { type AcceptInviteError, type AcceptInviteInput, type AcceptInviteResult, type CreateServiceAccountInput, type CreateServiceAccountResult, type CustomBrandingResponse, type Customer, type DeleteSupportBundleInput, type DeleteSupportBundleResult, type DeleteUserInput, type DeleteUserResult, type DeprovisionSamlInput, type DeprovisionSamlResult, type DownloadSupportBundleInput, type DownloadSupportBundleResult, type FetchCurrentUserInput, type FetchCurrentUserResult, type FetchCustomersInput, type FetchCustomersResult, type FetchDashboardInstancesInput, type FetchDashboardInstancesResult, type FetchInstallOptionsInput, type FetchInstallOptionsResult, type FetchInstancesInput, type FetchInstancesResult, type FetchLicenseDetailsInput, type FetchLicenseDetailsResult, type FetchLicenseSummaryInput, type FetchLicenseSummaryResult, type FetchNotificationsInput, type FetchNotificationsResult, type FetchSamlConfigInput, type FetchSamlConfigResult, type FetchServiceAccountsInput, type FetchServiceAccountsResult, type FetchTeamStatsInput, type FetchTeamStatsResult, type FetchTeamUsersInput, type FetchTeamUsersResult, type GetSecurityInfoDiffInput, type GetSecurityInfoDiffResult, type GetSecurityInfoInput, type GetSecurityInfoResult, type GetSecurityInfoSBOMInput, type GetSecurityInfoSBOMResult, type InitiateLoginInput, type InitiateLoginResult, type Instance, type InviteUserInput, type InviteUserResult, type ListReleasesInput, type ListReleasesResult, type ListSupportBundlesInput, type ListSupportBundlesResult, type NotificationSetting, type PortalActionContext, type PortalActionVisibility, type PortalLicenseDetails, type PortalLicenseField, type PortalServerActionDefinition, type RefreshInviteInput, type RefreshInviteResult, type RevokeServiceAccountInput, type RevokeServiceAccountResult, type RotateServiceAccountTokenInput, type RotateServiceAccountTokenResult, type SAMLConfig, type SecurityInfoDiff, type SecurityInstallType, type SecurityReleaseImage, type SecurityScanSummary, type SecurityScanWrapper, type ServiceAccount, type ServiceAccountData, type ServiceAccountSummary, type SpdxCreationInfo, type SpdxDocument, type SupportBundleInsight, type SupportBundleSummary, type SwitchCustomerInput, type SwitchCustomerResult, type TeamUser, type ToggleSamlEnabledInput, type ToggleSamlEnabledResult, type UnifiedSbom, type UpdateNotificationsInput, type UpdateNotificationsResult, type UpdateSamlConfigInput, type UpdateSamlConfigResult, type UpdateUserInput, type UpdateUserResult, type UploadSupportBundleCompleteInput, type UploadSupportBundleCompleteResult, type UploadSupportBundleInput, type UploadSupportBundleResult, type UserProfile, type VerifyMagicLinkError, type VerifyMagicLinkInput, type VerifyMagicLinkResult, acceptInvite, createServiceAccount, decodeJwtPayload, defineServerAction, deleteSupportBundle, deleteUser, deprovisionSaml, downloadSupportBundle, fetchCurrentUser, fetchCustomBranding, fetchCustomers, fetchDashboardComposite, fetchDashboardInstances, fetchInstallOptions, fetchInstances, fetchLicenseDetails, fetchLicenseSummary, fetchNotifications, fetchSamlConfig, fetchServiceAccounts, fetchTeamStats, fetchTeamUsers, getApiOrigin, getCustomerIdFromToken, getSecurityInfo, getSecurityInfoDiff, getSecurityInfoSBOM, getSupportBundleUploadUrl, initiateLogin, inviteUser, listReleases, listSupportBundles, refreshInvite, revokeServiceAccount, rotateServiceAccountToken, switchCustomer, toggleSamlEnabled, updateNotifications, updateSamlConfig, updateUser, uploadSupportBundle, verifyMagicLink };