@replicated/portal-components 0.0.14 → 0.0.16

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 (45) 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 +20 -16
  4. package/dist/actions/index.d.ts +20 -16
  5. package/dist/actions/index.js +31 -0
  6. package/dist/actions/index.js.map +1 -1
  7. package/dist/esm/actions/index.js +31 -1
  8. package/dist/esm/actions/index.js.map +1 -1
  9. package/dist/esm/helm-install-wizard.js.map +1 -1
  10. package/dist/esm/index.js +35 -11
  11. package/dist/esm/index.js.map +1 -1
  12. package/dist/esm/install-actions.js.map +1 -1
  13. package/dist/esm/license-details.js.map +1 -1
  14. package/dist/esm/linux-install-wizard.js.map +1 -1
  15. package/dist/esm/security-card.js +38 -30
  16. package/dist/esm/security-card.js.map +1 -1
  17. package/dist/esm/support-card.js.map +1 -1
  18. package/dist/esm/top-nav.js +3 -9
  19. package/dist/esm/top-nav.js.map +1 -1
  20. package/dist/esm/update-layout.js +3 -9
  21. package/dist/esm/update-layout.js.map +1 -1
  22. package/dist/esm/utils/index.js.map +1 -1
  23. package/dist/helm-install-wizard.js.map +1 -1
  24. package/dist/index.d.mts +2 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.js +35 -10
  27. package/dist/index.js.map +1 -1
  28. package/dist/install-actions.js.map +1 -1
  29. package/dist/license-details.js.map +1 -1
  30. package/dist/linux-install-wizard.js.map +1 -1
  31. package/dist/security-card.d.mts +10 -5
  32. package/dist/security-card.d.ts +10 -5
  33. package/dist/security-card.js +38 -30
  34. package/dist/security-card.js.map +1 -1
  35. package/dist/support-card.js.map +1 -1
  36. package/dist/{top-nav-0mb1K_H0.d.mts → top-nav-IRIn66wS.d.mts} +2 -1
  37. package/dist/{top-nav-0mb1K_H0.d.ts → top-nav-IRIn66wS.d.ts} +2 -1
  38. package/dist/top-nav.d.mts +1 -1
  39. package/dist/top-nav.d.ts +1 -1
  40. package/dist/top-nav.js +3 -9
  41. package/dist/top-nav.js.map +1 -1
  42. package/dist/update-layout.js +3 -9
  43. package/dist/update-layout.js.map +1 -1
  44. package/dist/utils/index.js.map +1 -1
  45. package/package.json +2 -1
@@ -1096,6 +1096,36 @@ var getSecurityInfoSBOM = defineServerAction({
1096
1096
  return envelope.data;
1097
1097
  }
1098
1098
  });
1099
+ var downloadSecuritySBOM = defineServerAction({
1100
+ id: "security/download-sbom",
1101
+ description: "Downloads the full SBOM file for a specific release",
1102
+ visibility: "customer",
1103
+ tags: ["security", "sbom", "download"],
1104
+ async run({ token, installType, channelSequence, isAirgap = false }, context) {
1105
+ if (!token || typeof token !== "string") {
1106
+ throw new Error("Security SBOM download requires a session token");
1107
+ }
1108
+ const params = new URLSearchParams({
1109
+ install_type: installType,
1110
+ channel_sequence: channelSequence.toString(),
1111
+ is_airgap: isAirgap.toString()
1112
+ });
1113
+ const url = `${getApiOrigin()}/enterprise-portal/security-sbom/download?${params.toString()}`;
1114
+ if (process.env.NODE_ENV !== "production") {
1115
+ console.debug("[portal-components] downloading security SBOM via %s", url);
1116
+ }
1117
+ const response = await authenticatedFetch(url, {
1118
+ token,
1119
+ signal: context?.signal
1120
+ });
1121
+ if (!response.ok) {
1122
+ throw new Error(
1123
+ `Security SBOM download failed (${response.status} ${response.statusText})`
1124
+ );
1125
+ }
1126
+ return await response.text();
1127
+ }
1128
+ });
1099
1129
  var fetchDashboardComposite = defineServerAction({
1100
1130
  id: "dashboard/fetch-composite",
1101
1131
  description: "Fetches all dashboard data from the composite Enterprise Portal API endpoint",
@@ -1943,6 +1973,6 @@ var refreshInvite = defineServerAction({
1943
1973
  }
1944
1974
  });
1945
1975
 
1946
- export { 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 };
1976
+ export { acceptInvite, createServiceAccount, decodeJwtPayload, defineServerAction, deleteSupportBundle, deleteUser, deprovisionSaml, downloadSecuritySBOM, 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 };
1947
1977
  //# sourceMappingURL=index.js.map
1948
1978
  //# sourceMappingURL=index.js.map