@replicated/portal-components 0.0.13 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/metadata/registry.json +2 -2
- package/components/metadata/registry.md +2 -2
- package/dist/actions/index.d.mts +20 -16
- package/dist/actions/index.d.ts +20 -16
- package/dist/actions/index.js +31 -0
- package/dist/actions/index.js.map +1 -1
- package/dist/esm/actions/index.js +31 -1
- package/dist/esm/actions/index.js.map +1 -1
- package/dist/esm/helm-install-wizard.js.map +1 -1
- package/dist/esm/index.js +32 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/install-actions.js.map +1 -1
- package/dist/esm/license-details.js.map +1 -1
- package/dist/esm/linux-install-wizard.js.map +1 -1
- package/dist/esm/security-card.js +38 -30
- package/dist/esm/security-card.js.map +1 -1
- package/dist/esm/support-card.js.map +1 -1
- package/dist/esm/top-nav.js.map +1 -1
- package/dist/esm/update-layout.js.map +1 -1
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/helm-install-wizard.js.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +32 -1
- package/dist/index.js.map +1 -1
- package/dist/install-actions.js.map +1 -1
- package/dist/license-details.js.map +1 -1
- package/dist/linux-install-wizard.js.map +1 -1
- package/dist/security-card.d.mts +10 -5
- package/dist/security-card.d.ts +10 -5
- package/dist/security-card.js +38 -30
- package/dist/security-card.js.map +1 -1
- package/dist/support-card.js.map +1 -1
- package/dist/top-nav.js.map +1 -1
- package/dist/update-layout.js.map +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import Link from 'next/link';
|
|
|
10
10
|
|
|
11
11
|
// package.json
|
|
12
12
|
var package_default = {
|
|
13
|
-
version: "0.0.
|
|
13
|
+
version: "0.0.15"};
|
|
14
14
|
|
|
15
15
|
// src/tokens/index.ts
|
|
16
16
|
var baseTokens = {
|
|
@@ -1029,6 +1029,36 @@ var getSecurityInfoSBOM = defineServerAction({
|
|
|
1029
1029
|
return envelope.data;
|
|
1030
1030
|
}
|
|
1031
1031
|
});
|
|
1032
|
+
var downloadSecuritySBOM = defineServerAction({
|
|
1033
|
+
id: "security/download-sbom",
|
|
1034
|
+
description: "Downloads the full SBOM file for a specific release",
|
|
1035
|
+
visibility: "customer",
|
|
1036
|
+
tags: ["security", "sbom", "download"],
|
|
1037
|
+
async run({ token, installType, channelSequence, isAirgap = false }, context) {
|
|
1038
|
+
if (!token || typeof token !== "string") {
|
|
1039
|
+
throw new Error("Security SBOM download requires a session token");
|
|
1040
|
+
}
|
|
1041
|
+
const params = new URLSearchParams({
|
|
1042
|
+
install_type: installType,
|
|
1043
|
+
channel_sequence: channelSequence.toString(),
|
|
1044
|
+
is_airgap: isAirgap.toString()
|
|
1045
|
+
});
|
|
1046
|
+
const url = `${getApiOrigin()}/enterprise-portal/security-sbom/download?${params.toString()}`;
|
|
1047
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1048
|
+
console.debug("[portal-components] downloading security SBOM via %s", url);
|
|
1049
|
+
}
|
|
1050
|
+
const response = await authenticatedFetch(url, {
|
|
1051
|
+
token,
|
|
1052
|
+
signal: context?.signal
|
|
1053
|
+
});
|
|
1054
|
+
if (!response.ok) {
|
|
1055
|
+
throw new Error(
|
|
1056
|
+
`Security SBOM download failed (${response.status} ${response.statusText})`
|
|
1057
|
+
);
|
|
1058
|
+
}
|
|
1059
|
+
return await response.text();
|
|
1060
|
+
}
|
|
1061
|
+
});
|
|
1032
1062
|
var fetchDashboardComposite = defineServerAction({
|
|
1033
1063
|
id: "dashboard/fetch-composite",
|
|
1034
1064
|
description: "Fetches all dashboard data from the composite Enterprise Portal API endpoint",
|
|
@@ -2425,6 +2455,6 @@ UpdateLayout.displayName = "UpdateLayout";
|
|
|
2425
2455
|
// src/index.ts
|
|
2426
2456
|
var portalComponentsVersion = package_default.version;
|
|
2427
2457
|
|
|
2428
|
-
export { Button, LicenseDetails, SupportCard, TeamSettingsCard, TopNav, UpdateLayout, UpdatesCard, UserSettings, UserSettingsCard, createPortalTheme, decodeJwtPayload, defaultTopNavLinks, defineServerAction, deleteSupportBundle, downloadSupportBundle, fetchCurrentUser, fetchCustomBranding, fetchDashboardComposite, fetchLicenseDetails, fetchNotifications, getCustomerIdFromToken, getSecurityInfo, getSecurityInfoDiff, getSecurityInfoSBOM, getSupportBundleUploadUrl, initiateLogin, listReleases, listSupportBundles, portalComponentsVersion, portalThemeTokens, updateNotifications, updateUser, uploadSupportBundle, verifyMagicLink };
|
|
2458
|
+
export { Button, LicenseDetails, SupportCard, TeamSettingsCard, TopNav, UpdateLayout, UpdatesCard, UserSettings, UserSettingsCard, createPortalTheme, decodeJwtPayload, defaultTopNavLinks, defineServerAction, deleteSupportBundle, downloadSecuritySBOM, downloadSupportBundle, fetchCurrentUser, fetchCustomBranding, fetchDashboardComposite, fetchLicenseDetails, fetchNotifications, getCustomerIdFromToken, getSecurityInfo, getSecurityInfoDiff, getSecurityInfoSBOM, getSupportBundleUploadUrl, initiateLogin, listReleases, listSupportBundles, portalComponentsVersion, portalThemeTokens, updateNotifications, updateUser, uploadSupportBundle, verifyMagicLink };
|
|
2429
2459
|
//# sourceMappingURL=index.js.map
|
|
2430
2460
|
//# sourceMappingURL=index.js.map
|