openvsx-webui-test 0.17.1 → 0.18.0-dev.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.
- package/lib/components/button-with-progress.d.ts +1 -0
- package/lib/components/button-with-progress.d.ts.map +1 -1
- package/lib/components/button-with-progress.js +1 -1
- package/lib/components/button-with-progress.js.map +1 -1
- package/lib/components/sanitized-markdown.d.ts.map +1 -1
- package/lib/components/sanitized-markdown.js +79 -1
- package/lib/components/sanitized-markdown.js.map +1 -1
- package/lib/components/scan-admin/common/auto-refresh.d.ts +21 -0
- package/lib/components/scan-admin/common/auto-refresh.d.ts.map +1 -0
- package/lib/components/scan-admin/common/auto-refresh.js +45 -0
- package/lib/components/scan-admin/common/auto-refresh.js.map +1 -0
- package/lib/components/scan-admin/common/conditional-tooltip.d.ts +24 -0
- package/lib/components/scan-admin/common/conditional-tooltip.d.ts.map +1 -0
- package/lib/components/scan-admin/common/conditional-tooltip.js +63 -0
- package/lib/components/scan-admin/common/conditional-tooltip.js.map +1 -0
- package/lib/components/scan-admin/common/file-table.d.ts +23 -0
- package/lib/components/scan-admin/common/file-table.d.ts.map +1 -0
- package/lib/components/scan-admin/common/file-table.js +350 -0
- package/lib/components/scan-admin/common/file-table.js.map +1 -0
- package/lib/components/scan-admin/common/index.d.ts +18 -0
- package/lib/components/scan-admin/common/index.d.ts.map +1 -0
- package/lib/components/scan-admin/common/index.js +18 -0
- package/lib/components/scan-admin/common/index.js.map +1 -0
- package/lib/components/scan-admin/common/tab-panel.d.ts +25 -0
- package/lib/components/scan-admin/common/tab-panel.d.ts.map +1 -0
- package/lib/components/scan-admin/common/tab-panel.js +22 -0
- package/lib/components/scan-admin/common/tab-panel.js.map +1 -0
- package/lib/components/scan-admin/common/utils.d.ts +15 -0
- package/lib/components/scan-admin/common/utils.d.ts.map +1 -0
- package/lib/components/scan-admin/common/utils.js +46 -0
- package/lib/components/scan-admin/common/utils.js.map +1 -0
- package/lib/components/scan-admin/dialogs/file-dialog.d.ts +19 -0
- package/lib/components/scan-admin/dialogs/file-dialog.d.ts.map +1 -0
- package/lib/components/scan-admin/dialogs/file-dialog.js +85 -0
- package/lib/components/scan-admin/dialogs/file-dialog.js.map +1 -0
- package/lib/components/scan-admin/dialogs/index.d.ts +15 -0
- package/lib/components/scan-admin/dialogs/index.d.ts.map +1 -0
- package/lib/components/scan-admin/dialogs/index.js +15 -0
- package/lib/components/scan-admin/dialogs/index.js.map +1 -0
- package/lib/components/scan-admin/dialogs/quarantine-dialog.d.ts +23 -0
- package/lib/components/scan-admin/dialogs/quarantine-dialog.d.ts.map +1 -0
- package/lib/components/scan-admin/dialogs/quarantine-dialog.js +192 -0
- package/lib/components/scan-admin/dialogs/quarantine-dialog.js.map +1 -0
- package/lib/components/scan-admin/index.d.ts +20 -0
- package/lib/components/scan-admin/index.d.ts.map +1 -0
- package/lib/components/scan-admin/index.js +25 -0
- package/lib/components/scan-admin/index.js.map +1 -0
- package/lib/components/scan-admin/scan-card/index.d.ts +20 -0
- package/lib/components/scan-admin/scan-card/index.d.ts.map +1 -0
- package/lib/components/scan-admin/scan-card/index.js +20 -0
- package/lib/components/scan-admin/scan-card/index.js.map +1 -0
- package/lib/components/scan-admin/scan-card/scan-card-content.d.ts +30 -0
- package/lib/components/scan-admin/scan-card/scan-card-content.d.ts.map +1 -0
- package/lib/components/scan-admin/scan-card/scan-card-content.js +232 -0
- package/lib/components/scan-admin/scan-card/scan-card-content.js.map +1 -0
- package/lib/components/scan-admin/scan-card/scan-card-expand-strip-badges.d.ts +26 -0
- package/lib/components/scan-admin/scan-card/scan-card-expand-strip-badges.d.ts.map +1 -0
- package/lib/components/scan-admin/scan-card/scan-card-expand-strip-badges.js +121 -0
- package/lib/components/scan-admin/scan-card/scan-card-expand-strip-badges.js.map +1 -0
- package/lib/components/scan-admin/scan-card/scan-card-expand-strip.d.ts +27 -0
- package/lib/components/scan-admin/scan-card/scan-card-expand-strip.d.ts.map +1 -0
- package/lib/components/scan-admin/scan-card/scan-card-expand-strip.js +66 -0
- package/lib/components/scan-admin/scan-card/scan-card-expand-strip.js.map +1 -0
- package/lib/components/scan-admin/scan-card/scan-card-expanded-content.d.ts +26 -0
- package/lib/components/scan-admin/scan-card/scan-card-expanded-content.d.ts.map +1 -0
- package/lib/components/scan-admin/scan-card/scan-card-expanded-content.js +151 -0
- package/lib/components/scan-admin/scan-card/scan-card-expanded-content.js.map +1 -0
- package/lib/components/scan-admin/scan-card/scan-card-header.d.ts +26 -0
- package/lib/components/scan-admin/scan-card/scan-card-header.d.ts.map +1 -0
- package/lib/components/scan-admin/scan-card/scan-card-header.js +101 -0
- package/lib/components/scan-admin/scan-card/scan-card-header.js.map +1 -0
- package/lib/components/scan-admin/scan-card/scan-card.d.ts +34 -0
- package/lib/components/scan-admin/scan-card/scan-card.d.ts.map +1 -0
- package/lib/components/scan-admin/scan-card/scan-card.js +90 -0
- package/lib/components/scan-admin/scan-card/scan-card.js.map +1 -0
- package/lib/components/scan-admin/scan-card/scan-detail-card.d.ts +38 -0
- package/lib/components/scan-admin/scan-card/scan-detail-card.d.ts.map +1 -0
- package/lib/components/scan-admin/scan-card/scan-detail-card.js +72 -0
- package/lib/components/scan-admin/scan-card/scan-detail-card.js.map +1 -0
- package/lib/components/scan-admin/scan-card/utils.d.ts +48 -0
- package/lib/components/scan-admin/scan-card/utils.d.ts.map +1 -0
- package/lib/components/scan-admin/scan-card/utils.js +166 -0
- package/lib/components/scan-admin/scan-card/utils.js.map +1 -0
- package/lib/components/scan-admin/tab-contents/allow-list-tab-content.d.ts +19 -0
- package/lib/components/scan-admin/tab-contents/allow-list-tab-content.d.ts.map +1 -0
- package/lib/components/scan-admin/tab-contents/allow-list-tab-content.js +55 -0
- package/lib/components/scan-admin/tab-contents/allow-list-tab-content.js.map +1 -0
- package/lib/components/scan-admin/tab-contents/auto-rejected-tab-content.d.ts +19 -0
- package/lib/components/scan-admin/tab-contents/auto-rejected-tab-content.d.ts.map +1 -0
- package/lib/components/scan-admin/tab-contents/auto-rejected-tab-content.js +43 -0
- package/lib/components/scan-admin/tab-contents/auto-rejected-tab-content.js.map +1 -0
- package/lib/components/scan-admin/tab-contents/block-list-tab-content.d.ts +19 -0
- package/lib/components/scan-admin/tab-contents/block-list-tab-content.d.ts.map +1 -0
- package/lib/components/scan-admin/tab-contents/block-list-tab-content.js +55 -0
- package/lib/components/scan-admin/tab-contents/block-list-tab-content.js.map +1 -0
- package/lib/components/scan-admin/tab-contents/index.d.ts +18 -0
- package/lib/components/scan-admin/tab-contents/index.d.ts.map +1 -0
- package/lib/components/scan-admin/tab-contents/index.js +18 -0
- package/lib/components/scan-admin/tab-contents/index.js.map +1 -0
- package/lib/components/scan-admin/tab-contents/quarantined-tab-content.d.ts +19 -0
- package/lib/components/scan-admin/tab-contents/quarantined-tab-content.d.ts.map +1 -0
- package/lib/components/scan-admin/tab-contents/quarantined-tab-content.js +78 -0
- package/lib/components/scan-admin/tab-contents/quarantined-tab-content.js.map +1 -0
- package/lib/components/scan-admin/tab-contents/scans-tab-content.d.ts +19 -0
- package/lib/components/scan-admin/tab-contents/scans-tab-content.d.ts.map +1 -0
- package/lib/components/scan-admin/tab-contents/scans-tab-content.js +52 -0
- package/lib/components/scan-admin/tab-contents/scans-tab-content.js.map +1 -0
- package/lib/components/scan-admin/toolbars/counts-toolbar.d.ts +35 -0
- package/lib/components/scan-admin/toolbars/counts-toolbar.d.ts.map +1 -0
- package/lib/components/scan-admin/toolbars/counts-toolbar.js +132 -0
- package/lib/components/scan-admin/toolbars/counts-toolbar.js.map +1 -0
- package/lib/components/scan-admin/toolbars/index.d.ts +16 -0
- package/lib/components/scan-admin/toolbars/index.d.ts.map +1 -0
- package/lib/components/scan-admin/toolbars/index.js +16 -0
- package/lib/components/scan-admin/toolbars/index.js.map +1 -0
- package/lib/components/scan-admin/toolbars/search-toolbar.d.ts +43 -0
- package/lib/components/scan-admin/toolbars/search-toolbar.d.ts.map +1 -0
- package/lib/components/scan-admin/toolbars/search-toolbar.js +106 -0
- package/lib/components/scan-admin/toolbars/search-toolbar.js.map +1 -0
- package/lib/components/scan-admin/toolbars/tab-toolbar.d.ts +25 -0
- package/lib/components/scan-admin/toolbars/tab-toolbar.d.ts.map +1 -0
- package/lib/components/scan-admin/toolbars/tab-toolbar.js +33 -0
- package/lib/components/scan-admin/toolbars/tab-toolbar.js.map +1 -0
- package/lib/context/scan-admin/index.d.ts +21 -0
- package/lib/context/scan-admin/index.d.ts.map +1 -0
- package/lib/context/scan-admin/index.js +27 -0
- package/lib/context/scan-admin/index.js.map +1 -0
- package/lib/context/scan-admin/scan-actions.d.ts +19 -0
- package/lib/context/scan-admin/scan-actions.d.ts.map +1 -0
- package/lib/context/scan-admin/scan-actions.js +64 -0
- package/lib/context/scan-admin/scan-actions.js.map +1 -0
- package/lib/context/scan-admin/scan-api-actions.d.ts +26 -0
- package/lib/context/scan-admin/scan-api-actions.d.ts.map +1 -0
- package/lib/context/scan-admin/scan-api-actions.js +118 -0
- package/lib/context/scan-admin/scan-api-actions.js.map +1 -0
- package/lib/context/scan-admin/scan-api-effects.d.ts +40 -0
- package/lib/context/scan-admin/scan-api-effects.d.ts.map +1 -0
- package/lib/context/scan-admin/scan-api-effects.js +446 -0
- package/lib/context/scan-admin/scan-api-effects.js.map +1 -0
- package/lib/context/scan-admin/scan-context-types.d.ts +69 -0
- package/lib/context/scan-admin/scan-context-types.d.ts.map +1 -0
- package/lib/context/scan-admin/scan-context-types.js +14 -0
- package/lib/context/scan-admin/scan-context-types.js.map +1 -0
- package/lib/context/scan-admin/scan-context.d.ts +17 -0
- package/lib/context/scan-admin/scan-context.d.ts.map +1 -0
- package/lib/context/scan-admin/scan-context.js +90 -0
- package/lib/context/scan-admin/scan-context.js.map +1 -0
- package/lib/context/scan-admin/scan-helpers.d.ts +28 -0
- package/lib/context/scan-admin/scan-helpers.d.ts.map +1 -0
- package/lib/context/scan-admin/scan-helpers.js +56 -0
- package/lib/context/scan-admin/scan-helpers.js.map +1 -0
- package/lib/context/scan-admin/scan-reducer.d.ts +18 -0
- package/lib/context/scan-admin/scan-reducer.d.ts.map +1 -0
- package/lib/context/scan-admin/scan-reducer.js +194 -0
- package/lib/context/scan-admin/scan-reducer.js.map +1 -0
- package/lib/context/scan-admin/scan-types.d.ts +292 -0
- package/lib/context/scan-admin/scan-types.d.ts.map +1 -0
- package/lib/context/scan-admin/scan-types.js +67 -0
- package/lib/context/scan-admin/scan-types.js.map +1 -0
- package/lib/default/page-settings.d.ts.map +1 -1
- package/lib/default/page-settings.js +3 -0
- package/lib/default/page-settings.js.map +1 -1
- package/lib/default/theme.d.ts +50 -12
- package/lib/default/theme.d.ts.map +1 -1
- package/lib/default/theme.js +42 -0
- package/lib/default/theme.js.map +1 -1
- package/lib/extension-registry-service.d.ts +85 -1
- package/lib/extension-registry-service.d.ts.map +1 -1
- package/lib/extension-registry-service.js +197 -0
- package/lib/extension-registry-service.js.map +1 -1
- package/lib/extension-registry-types.d.ts +140 -0
- package/lib/extension-registry-types.d.ts.map +1 -1
- package/lib/extension-registry-types.js.map +1 -1
- package/lib/hooks/scan-admin/index.d.ts +34 -0
- package/lib/hooks/scan-admin/index.d.ts.map +1 -0
- package/lib/hooks/scan-admin/index.js +28 -0
- package/lib/hooks/scan-admin/index.js.map +1 -0
- package/lib/hooks/scan-admin/use-auto-rejected-tab.d.ts +76 -0
- package/lib/hooks/scan-admin/use-auto-rejected-tab.d.ts.map +1 -0
- package/lib/hooks/scan-admin/use-auto-rejected-tab.js +79 -0
- package/lib/hooks/scan-admin/use-auto-rejected-tab.js.map +1 -0
- package/lib/hooks/scan-admin/use-dialogs.d.ts +43 -0
- package/lib/hooks/scan-admin/use-dialogs.d.ts.map +1 -0
- package/lib/hooks/scan-admin/use-dialogs.js +55 -0
- package/lib/hooks/scan-admin/use-dialogs.js.map +1 -0
- package/lib/hooks/scan-admin/use-file-list-tab.d.ts +208 -0
- package/lib/hooks/scan-admin/use-file-list-tab.d.ts.map +1 -0
- package/lib/hooks/scan-admin/use-file-list-tab.js +125 -0
- package/lib/hooks/scan-admin/use-file-list-tab.js.map +1 -0
- package/lib/hooks/scan-admin/use-pagination.d.ts +36 -0
- package/lib/hooks/scan-admin/use-pagination.d.ts.map +1 -0
- package/lib/hooks/scan-admin/use-pagination.js +79 -0
- package/lib/hooks/scan-admin/use-pagination.js.map +1 -0
- package/lib/hooks/scan-admin/use-quarantined-tab.d.ts +92 -0
- package/lib/hooks/scan-admin/use-quarantined-tab.d.ts.map +1 -0
- package/lib/hooks/scan-admin/use-quarantined-tab.js +125 -0
- package/lib/hooks/scan-admin/use-quarantined-tab.js.map +1 -0
- package/lib/hooks/scan-admin/use-scan-card-state.d.ts +29 -0
- package/lib/hooks/scan-admin/use-scan-card-state.d.ts.map +1 -0
- package/lib/hooks/scan-admin/use-scan-card-state.js +50 -0
- package/lib/hooks/scan-admin/use-scan-card-state.js.map +1 -0
- package/lib/hooks/scan-admin/use-scan-filters.d.ts +53 -0
- package/lib/hooks/scan-admin/use-scan-filters.d.ts.map +1 -0
- package/lib/hooks/scan-admin/use-scan-filters.js +75 -0
- package/lib/hooks/scan-admin/use-scan-filters.js.map +1 -0
- package/lib/hooks/scan-admin/use-scans-tab.d.ts +85 -0
- package/lib/hooks/scan-admin/use-scans-tab.d.ts.map +1 -0
- package/lib/hooks/scan-admin/use-scans-tab.js +87 -0
- package/lib/hooks/scan-admin/use-scans-tab.js.map +1 -0
- package/lib/hooks/scan-admin/use-search.d.ts +32 -0
- package/lib/hooks/scan-admin/use-search.d.ts.map +1 -0
- package/lib/hooks/scan-admin/use-search.js +48 -0
- package/lib/hooks/scan-admin/use-search.js.map +1 -0
- package/lib/hooks/scan-admin/use-tab-navigation.d.ts +96 -0
- package/lib/hooks/scan-admin/use-tab-navigation.d.ts.map +1 -0
- package/lib/hooks/scan-admin/use-tab-navigation.js +70 -0
- package/lib/hooks/scan-admin/use-tab-navigation.js.map +1 -0
- package/lib/hooks/scan-admin/use-url-sync.d.ts +22 -0
- package/lib/hooks/scan-admin/use-url-sync.d.ts.map +1 -0
- package/lib/hooks/scan-admin/use-url-sync.js +252 -0
- package/lib/hooks/scan-admin/use-url-sync.js.map +1 -0
- package/lib/page-settings.d.ts +4 -0
- package/lib/page-settings.d.ts.map +1 -1
- package/lib/pages/admin-dashboard/admin-dashboard.d.ts +1 -0
- package/lib/pages/admin-dashboard/admin-dashboard.d.ts.map +1 -1
- package/lib/pages/admin-dashboard/admin-dashboard.js +23 -3
- package/lib/pages/admin-dashboard/admin-dashboard.js.map +1 -1
- package/lib/pages/admin-dashboard/publisher-admin.js +1 -1
- package/lib/pages/admin-dashboard/publisher-admin.js.map +1 -1
- package/lib/pages/admin-dashboard/publisher-revoke-dialog.d.ts.map +1 -1
- package/lib/pages/admin-dashboard/publisher-revoke-dialog.js +1 -1
- package/lib/pages/admin-dashboard/publisher-revoke-dialog.js.map +1 -1
- package/lib/pages/admin-dashboard/scan-admin.d.ts +20 -0
- package/lib/pages/admin-dashboard/scan-admin.d.ts.map +1 -0
- package/lib/pages/admin-dashboard/scan-admin.js +66 -0
- package/lib/pages/admin-dashboard/scan-admin.js.map +1 -0
- package/lib/pages/admin-dashboard/welcome.d.ts.map +1 -1
- package/lib/pages/admin-dashboard/welcome.js +2 -1
- package/lib/pages/admin-dashboard/welcome.js.map +1 -1
- package/lib/pages/extension-detail/extension-detail-overview.d.ts.map +1 -1
- package/lib/pages/extension-detail/extension-detail-overview.js +9 -1
- package/lib/pages/extension-detail/extension-detail-overview.js.map +1 -1
- package/lib/pages/extension-detail/extension-detail-reviews.d.ts.map +1 -1
- package/lib/pages/extension-detail/extension-detail-reviews.js +67 -18
- package/lib/pages/extension-detail/extension-detail-reviews.js.map +1 -1
- package/lib/pages/extension-detail/extension-detail.js +2 -2
- package/lib/pages/extension-detail/extension-detail.js.map +1 -1
- package/lib/pages/extension-detail/extension-rating-stars.d.ts +2 -2
- package/lib/pages/extension-detail/extension-rating-stars.d.ts.map +1 -1
- package/lib/pages/extension-detail/extension-rating-stars.js +1 -1
- package/lib/pages/extension-detail/extension-rating-stars.js.map +1 -1
- package/lib/pages/extension-list/extension-list-item.js +2 -2
- package/lib/pages/extension-list/extension-list-item.js.map +1 -1
- package/lib/pages/user/user-namespace-extension-list-item.d.ts.map +1 -1
- package/lib/pages/user/user-namespace-extension-list-item.js +23 -9
- package/lib/pages/user/user-namespace-extension-list-item.js.map +1 -1
- package/lib/pages/user/user-publisher-agreement.d.ts.map +1 -1
- package/lib/pages/user/user-publisher-agreement.js +34 -13
- package/lib/pages/user/user-publisher-agreement.js.map +1 -1
- package/lib/pages/user/user-settings-profile.d.ts.map +1 -1
- package/lib/pages/user/user-settings-profile.js +10 -5
- package/lib/pages/user/user-settings-profile.js.map +1 -1
- package/lib/pages/user/user-settings-tokens.d.ts.map +1 -1
- package/lib/pages/user/user-settings-tokens.js +13 -5
- package/lib/pages/user/user-settings-tokens.js.map +1 -1
- package/package.json +10 -9
- package/src/components/button-with-progress.tsx +2 -1
- package/src/components/sanitized-markdown.tsx +81 -1
- package/src/components/scan-admin/common/auto-refresh.tsx +79 -0
- package/src/components/scan-admin/common/conditional-tooltip.tsx +74 -0
- package/src/components/scan-admin/common/file-table.tsx +508 -0
- package/src/components/scan-admin/common/index.ts +18 -0
- package/src/components/scan-admin/common/tab-panel.tsx +42 -0
- package/src/components/scan-admin/common/utils.ts +48 -0
- package/src/components/scan-admin/dialogs/file-dialog.tsx +137 -0
- package/src/components/scan-admin/dialogs/index.ts +15 -0
- package/src/components/scan-admin/dialogs/quarantine-dialog.tsx +270 -0
- package/src/components/scan-admin/index.ts +52 -0
- package/src/components/scan-admin/scan-card/index.ts +20 -0
- package/src/components/scan-admin/scan-card/scan-card-content.tsx +457 -0
- package/src/components/scan-admin/scan-card/scan-card-expand-strip-badges.tsx +186 -0
- package/src/components/scan-admin/scan-card/scan-card-expand-strip.tsx +104 -0
- package/src/components/scan-admin/scan-card/scan-card-expanded-content.tsx +262 -0
- package/src/components/scan-admin/scan-card/scan-card-header.tsx +176 -0
- package/src/components/scan-admin/scan-card/scan-card.tsx +152 -0
- package/src/components/scan-admin/scan-card/scan-detail-card.tsx +144 -0
- package/src/components/scan-admin/scan-card/utils.ts +199 -0
- package/src/components/scan-admin/tab-contents/allow-list-tab-content.tsx +119 -0
- package/src/components/scan-admin/tab-contents/auto-rejected-tab-content.tsx +106 -0
- package/src/components/scan-admin/tab-contents/block-list-tab-content.tsx +119 -0
- package/src/components/scan-admin/tab-contents/index.ts +18 -0
- package/src/components/scan-admin/tab-contents/quarantined-tab-content.tsx +158 -0
- package/src/components/scan-admin/tab-contents/scans-tab-content.tsx +113 -0
- package/src/components/scan-admin/toolbars/counts-toolbar.tsx +262 -0
- package/src/components/scan-admin/toolbars/index.ts +16 -0
- package/src/components/scan-admin/toolbars/search-toolbar.tsx +255 -0
- package/src/components/scan-admin/toolbars/tab-toolbar.tsx +56 -0
- package/src/context/scan-admin/index.ts +43 -0
- package/src/context/scan-admin/scan-actions.ts +87 -0
- package/src/context/scan-admin/scan-api-actions.ts +137 -0
- package/src/context/scan-admin/scan-api-effects.ts +491 -0
- package/src/context/scan-admin/scan-context-types.ts +102 -0
- package/src/context/scan-admin/scan-context.tsx +123 -0
- package/src/context/scan-admin/scan-helpers.ts +63 -0
- package/src/context/scan-admin/scan-reducer.ts +321 -0
- package/src/context/scan-admin/scan-types.ts +337 -0
- package/src/default/page-settings.tsx +3 -0
- package/src/default/theme.tsx +102 -13
- package/src/extension-registry-service.ts +216 -1
- package/src/extension-registry-types.ts +157 -0
- package/src/hooks/scan-admin/index.ts +48 -0
- package/src/hooks/scan-admin/use-auto-rejected-tab.ts +85 -0
- package/src/hooks/scan-admin/use-dialogs.ts +83 -0
- package/src/hooks/scan-admin/use-file-list-tab.ts +149 -0
- package/src/hooks/scan-admin/use-pagination.ts +90 -0
- package/src/hooks/scan-admin/use-quarantined-tab.ts +138 -0
- package/src/hooks/scan-admin/use-scan-card-state.ts +73 -0
- package/src/hooks/scan-admin/use-scan-filters.ts +83 -0
- package/src/hooks/scan-admin/use-scans-tab.ts +92 -0
- package/src/hooks/scan-admin/use-search.ts +54 -0
- package/src/hooks/scan-admin/use-tab-navigation.ts +82 -0
- package/src/hooks/scan-admin/use-url-sync.ts +293 -0
- package/src/page-settings.ts +4 -0
- package/src/pages/admin-dashboard/admin-dashboard.tsx +26 -2
- package/src/pages/admin-dashboard/publisher-admin.tsx +1 -1
- package/src/pages/admin-dashboard/publisher-revoke-dialog.tsx +2 -1
- package/src/pages/admin-dashboard/scan-admin.tsx +109 -0
- package/src/pages/admin-dashboard/welcome.tsx +1 -0
- package/src/pages/extension-detail/extension-detail-overview.tsx +16 -2
- package/src/pages/extension-detail/extension-detail-reviews.tsx +116 -30
- package/src/pages/extension-detail/extension-detail.tsx +2 -2
- package/src/pages/extension-detail/extension-rating-stars.tsx +2 -2
- package/src/pages/extension-list/extension-list-item.tsx +2 -2
- package/src/pages/user/user-namespace-extension-list-item.tsx +38 -13
- package/src/pages/user/user-publisher-agreement.tsx +30 -11
- package/src/pages/user/user-settings-profile.tsx +10 -6
- package/src/pages/user/user-settings-tokens.tsx +15 -6
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 Contributors to the Eclipse Foundation
|
|
3
|
+
*
|
|
4
|
+
* See the NOTICE file(s) distributed with this work for additional
|
|
5
|
+
* information regarding copyright ownership.
|
|
6
|
+
*
|
|
7
|
+
* This program and the accompanying materials are made available under the
|
|
8
|
+
* terms of the Eclipse Public License 2.0 which is available at
|
|
9
|
+
* https://www.eclipse.org/legal/epl-2.0
|
|
10
|
+
*
|
|
11
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
12
|
+
********************************************************************************/
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import { Dialog, DialogTitle, DialogContent, DialogActions, Button, Typography, List, ListItem, ListItemText, Box } from '@mui/material';
|
|
15
|
+
import { useDialogs } from '../../../hooks/scan-admin';
|
|
16
|
+
import { useTheme } from '@mui/material/styles';
|
|
17
|
+
/**
|
|
18
|
+
* Confirmation dialog for file-level allow/block/delete actions.
|
|
19
|
+
* Uses the useDialogs hook to consume context.
|
|
20
|
+
*/
|
|
21
|
+
export const FileDialog = () => {
|
|
22
|
+
const theme = useTheme();
|
|
23
|
+
const { fileDialog } = useDialogs();
|
|
24
|
+
return (React.createElement(Dialog, { open: fileDialog.isOpen, onClose: fileDialog.close, maxWidth: 'md', fullWidth: true },
|
|
25
|
+
React.createElement(DialogTitle, null, fileDialog.actionType === 'allow' ? 'Confirm Allow Files' : fileDialog.actionType === 'block' ? 'Confirm Block Files' : 'Confirm Delete Files'),
|
|
26
|
+
React.createElement(DialogContent, null,
|
|
27
|
+
React.createElement(Typography, { variant: 'body1', sx: { mb: 2 } },
|
|
28
|
+
"Are you sure you want to ",
|
|
29
|
+
fileDialog.actionType,
|
|
30
|
+
" ",
|
|
31
|
+
fileDialog.selectedFiles.length !== 1 ? 'these' : 'this',
|
|
32
|
+
" ",
|
|
33
|
+
fileDialog.selectedFiles.length,
|
|
34
|
+
" file",
|
|
35
|
+
fileDialog.selectedFiles.length !== 1 ? 's' : '',
|
|
36
|
+
"?"),
|
|
37
|
+
React.createElement(List, { sx: {
|
|
38
|
+
maxHeight: '400px',
|
|
39
|
+
overflow: 'auto',
|
|
40
|
+
border: `1px solid ${theme.palette.scanBackground.default}`,
|
|
41
|
+
borderRadius: 1,
|
|
42
|
+
} }, fileDialog.selectedFiles.map((file) => (React.createElement(ListItem, { key: file.id, sx: {
|
|
43
|
+
borderBottom: `1px solid ${theme.palette.scanBackground.dark}`,
|
|
44
|
+
'&:last-child': { borderBottom: 'none' },
|
|
45
|
+
} },
|
|
46
|
+
React.createElement(ListItemText, { primary: React.createElement(Typography, { variant: 'body1', sx: {
|
|
47
|
+
fontWeight: 500,
|
|
48
|
+
overflow: 'hidden',
|
|
49
|
+
textOverflow: 'ellipsis',
|
|
50
|
+
whiteSpace: 'nowrap',
|
|
51
|
+
} }, file.fileName), secondary: React.createElement(Box, { sx: { display: 'flex', flexDirection: 'column', gap: 0.25 } },
|
|
52
|
+
React.createElement(Typography, { variant: 'body2', color: 'text.secondary', sx: {
|
|
53
|
+
overflow: 'hidden',
|
|
54
|
+
textOverflow: 'ellipsis',
|
|
55
|
+
whiteSpace: 'nowrap',
|
|
56
|
+
} },
|
|
57
|
+
"Hash: ",
|
|
58
|
+
file.fileHash),
|
|
59
|
+
React.createElement(Typography, { variant: 'body2', color: 'text.secondary', sx: {
|
|
60
|
+
overflow: 'hidden',
|
|
61
|
+
textOverflow: 'ellipsis',
|
|
62
|
+
whiteSpace: 'nowrap',
|
|
63
|
+
} }, file.displayName),
|
|
64
|
+
React.createElement(Typography, { variant: 'body2', color: 'text.secondary', sx: {
|
|
65
|
+
overflow: 'hidden',
|
|
66
|
+
textOverflow: 'ellipsis',
|
|
67
|
+
whiteSpace: 'nowrap',
|
|
68
|
+
} },
|
|
69
|
+
file.namespace,
|
|
70
|
+
".",
|
|
71
|
+
file.extensionName),
|
|
72
|
+
React.createElement(Typography, { variant: 'body2', color: 'text.secondary', sx: {
|
|
73
|
+
overflow: 'hidden',
|
|
74
|
+
textOverflow: 'ellipsis',
|
|
75
|
+
whiteSpace: 'nowrap',
|
|
76
|
+
} },
|
|
77
|
+
"Version: ",
|
|
78
|
+
file.version)) })))))),
|
|
79
|
+
React.createElement(DialogActions, { sx: { px: 3, pb: 2 } },
|
|
80
|
+
React.createElement(Button, { onClick: fileDialog.close, color: 'inherit' }, "Cancel"),
|
|
81
|
+
React.createElement(Button, { onClick: fileDialog.execute, variant: 'contained', color: fileDialog.actionType === 'allow' ? 'success' : fileDialog.actionType === 'block' ? 'error' : 'secondary' },
|
|
82
|
+
"Confirm ",
|
|
83
|
+
fileDialog.actionType === 'allow' ? 'Allow' : fileDialog.actionType === 'block' ? 'Block' : 'Delete'))));
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=file-dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
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E,QAAQ;6BACvB,IAEA,IAAI,CAAC,WAAW,CACR;wBACb,oBAAC,UAAU,IACP,OAAO,EAAC,OAAO,EACf,KAAK,EAAC,gBAAgB,EACtB,EAAE,EAAE;gCACA,QAAQ,EAAE,QAAQ;gCAClB,YAAY,EAAE,UAAU;gCACxB,UAAU,EAAE,QAAQ;6BACvB;4BAEA,IAAI,CAAC,SAAS;;4BAAG,IAAI,CAAC,aAAa,CAC3B;wBACb,oBAAC,UAAU,IACP,OAAO,EAAC,OAAO,EACf,KAAK,EAAC,gBAAgB,EACtB,EAAE,EAAE;gCACA,QAAQ,EAAE,QAAQ;gCAClB,YAAY,EAAE,UAAU;gCACxB,UAAU,EAAE,QAAQ;6BACvB;;4BAES,IAAI,CAAC,OAAO,CACb,CACX,GAEZ,CACK,CACd,CAAC,CACC,CACK;QAChB,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE;YAC/B,oBAAC,MAAM,IAAC,OAAO,EAAE,UAAU,CAAC,KAAK,EAAE,KAAK,EAAC,SAAS,aAEzC;YACT,oBAAC,MAAM,IACH,OAAO,EAAE,UAAU,CAAC,OAAO,EAC3B,OAAO,EAAC,WAAW,EACnB,KAAK,EAAE,UAAU,CAAC,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW;;gBAEvG,UAAU,CAAC,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CACxG,CACG,CACX,CACZ,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 Contributors to the Eclipse Foundation
|
|
3
|
+
*
|
|
4
|
+
* See the NOTICE file(s) distributed with this work for additional
|
|
5
|
+
* information regarding copyright ownership.
|
|
6
|
+
*
|
|
7
|
+
* This program and the accompanying materials are made available under the
|
|
8
|
+
* terms of the Eclipse Public License 2.0 which is available at
|
|
9
|
+
* https://www.eclipse.org/legal/epl-2.0
|
|
10
|
+
*
|
|
11
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
12
|
+
********************************************************************************/
|
|
13
|
+
export { QuarantineDialog } from './quarantine-dialog';
|
|
14
|
+
export { FileDialog } from './file-dialog';
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/scan-admin/dialogs/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;kFAWkF;AAElF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 Contributors to the Eclipse Foundation
|
|
3
|
+
*
|
|
4
|
+
* See the NOTICE file(s) distributed with this work for additional
|
|
5
|
+
* information regarding copyright ownership.
|
|
6
|
+
*
|
|
7
|
+
* This program and the accompanying materials are made available under the
|
|
8
|
+
* terms of the Eclipse Public License 2.0 which is available at
|
|
9
|
+
* https://www.eclipse.org/legal/epl-2.0
|
|
10
|
+
*
|
|
11
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
12
|
+
********************************************************************************/
|
|
13
|
+
export { QuarantineDialog } from './quarantine-dialog';
|
|
14
|
+
export { FileDialog } from './file-dialog';
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/scan-admin/dialogs/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;kFAWkF;AAElF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 Contributors to the Eclipse Foundation
|
|
3
|
+
*
|
|
4
|
+
* See the NOTICE file(s) distributed with this work for additional
|
|
5
|
+
* information regarding copyright ownership.
|
|
6
|
+
*
|
|
7
|
+
* This program and the accompanying materials are made available under the
|
|
8
|
+
* terms of the Eclipse Public License 2.0 which is available at
|
|
9
|
+
* https://www.eclipse.org/legal/epl-2.0
|
|
10
|
+
*
|
|
11
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
12
|
+
********************************************************************************/
|
|
13
|
+
import { FunctionComponent } from 'react';
|
|
14
|
+
/**
|
|
15
|
+
* Confirmation dialog for extension-level allow/block actions.
|
|
16
|
+
* Uses the useDialogs hook to consume context.
|
|
17
|
+
*
|
|
18
|
+
* Only files from ENFORCED threats are actionable.
|
|
19
|
+
* Unenforced threats are informational only and
|
|
20
|
+
* should not have allow/block decisions made on them.
|
|
21
|
+
*/
|
|
22
|
+
export declare const QuarantineDialog: FunctionComponent;
|
|
23
|
+
//# sourceMappingURL=quarantine-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quarantine-dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/scan-admin/dialogs/quarantine-dialog.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;kFAWkF;AAElF,OAAc,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAqC1D;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,EAAE,iBAmN9B,CAAC"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 Contributors to the Eclipse Foundation
|
|
3
|
+
*
|
|
4
|
+
* See the NOTICE file(s) distributed with this work for additional
|
|
5
|
+
* information regarding copyright ownership.
|
|
6
|
+
*
|
|
7
|
+
* This program and the accompanying materials are made available under the
|
|
8
|
+
* terms of the Eclipse Public License 2.0 which is available at
|
|
9
|
+
* https://www.eclipse.org/legal/epl-2.0
|
|
10
|
+
*
|
|
11
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
12
|
+
********************************************************************************/
|
|
13
|
+
import React, { useMemo } from 'react';
|
|
14
|
+
import { Dialog, DialogTitle, DialogContent, DialogActions, Button, Typography, List, ListItem, ListItemText, Box, Tooltip } from '@mui/material';
|
|
15
|
+
import { Info as InfoIcon } from '@mui/icons-material';
|
|
16
|
+
import { useDialogs } from '../../../hooks/scan-admin';
|
|
17
|
+
import { useTheme } from '@mui/material/styles';
|
|
18
|
+
/**
|
|
19
|
+
* Get only the enforced threats from a scan.
|
|
20
|
+
*/
|
|
21
|
+
const getEnforcedThreats = (scan) => {
|
|
22
|
+
var _a;
|
|
23
|
+
return ((_a = scan.threats) === null || _a === void 0 ? void 0 : _a.filter(threat => threat.enforcedFlag)) || [];
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Get only the unenforced threats from a scan.
|
|
27
|
+
*/
|
|
28
|
+
const getUnenforcedThreats = (scan) => {
|
|
29
|
+
var _a;
|
|
30
|
+
return ((_a = scan.threats) === null || _a === void 0 ? void 0 : _a.filter(threat => !threat.enforcedFlag)) || [];
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Get actionable threats - enforced threats that have file information.
|
|
34
|
+
* Only these can be added to allow/block lists.
|
|
35
|
+
*/
|
|
36
|
+
const getActionableThreats = (scan) => {
|
|
37
|
+
var _a;
|
|
38
|
+
return ((_a = scan.threats) === null || _a === void 0 ? void 0 : _a.filter(threat => threat.enforcedFlag && threat.fileName)) || [];
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Get threats without file information (not actionable for allow/block).
|
|
42
|
+
* These are from scanners that don't report individual files.
|
|
43
|
+
*/
|
|
44
|
+
const getThreatsWithoutFileInfo = (scan) => {
|
|
45
|
+
var _a;
|
|
46
|
+
return ((_a = scan.threats) === null || _a === void 0 ? void 0 : _a.filter(threat => !threat.fileName)) || [];
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Confirmation dialog for extension-level allow/block actions.
|
|
50
|
+
* Uses the useDialogs hook to consume context.
|
|
51
|
+
*
|
|
52
|
+
* Only files from ENFORCED threats are actionable.
|
|
53
|
+
* Unenforced threats are informational only and
|
|
54
|
+
* should not have allow/block decisions made on them.
|
|
55
|
+
*/
|
|
56
|
+
export const QuarantineDialog = () => {
|
|
57
|
+
const theme = useTheme();
|
|
58
|
+
const { confirmDialog } = useDialogs();
|
|
59
|
+
// Check if any extension has unenforced threats (to show info message)
|
|
60
|
+
const hasAnyUnenforcedThreats = useMemo(() => {
|
|
61
|
+
return confirmDialog.selectedExtensions.some((scan) => getUnenforcedThreats(scan).length > 0);
|
|
62
|
+
}, [confirmDialog.selectedExtensions]);
|
|
63
|
+
// Check if any extension has threats without file info (not actionable)
|
|
64
|
+
const hasThreatsWithoutFileInfo = useMemo(() => {
|
|
65
|
+
return confirmDialog.selectedExtensions.some((scan) => getThreatsWithoutFileInfo(scan).length > 0);
|
|
66
|
+
}, [confirmDialog.selectedExtensions]);
|
|
67
|
+
// Calculate total actionable files across all selected extensions
|
|
68
|
+
// Only counts enforced threats that have file information
|
|
69
|
+
const totalActionableFiles = useMemo(() => {
|
|
70
|
+
return confirmDialog.selectedExtensions.reduce((total, scan) => total + getActionableThreats(scan).length, 0);
|
|
71
|
+
}, [confirmDialog.selectedExtensions]);
|
|
72
|
+
return (React.createElement(Dialog, { open: confirmDialog.isOpen, onClose: confirmDialog.close, maxWidth: 'md', fullWidth: true },
|
|
73
|
+
React.createElement(DialogTitle, null, confirmDialog.action === 'allow' ? 'Confirm Allow' : 'Confirm Block'),
|
|
74
|
+
React.createElement(DialogContent, null,
|
|
75
|
+
React.createElement(Typography, { variant: 'body1', sx: { mb: 2 } },
|
|
76
|
+
"Are you sure you want to ",
|
|
77
|
+
confirmDialog.action,
|
|
78
|
+
" ",
|
|
79
|
+
totalActionableFiles,
|
|
80
|
+
" file",
|
|
81
|
+
totalActionableFiles !== 1 ? 's' : '',
|
|
82
|
+
" from ",
|
|
83
|
+
confirmDialog.selectedExtensions.length !== 1 ? 'these' : 'this',
|
|
84
|
+
" ",
|
|
85
|
+
confirmDialog.selectedExtensions.length,
|
|
86
|
+
" extension",
|
|
87
|
+
confirmDialog.selectedExtensions.length !== 1 ? 's' : '',
|
|
88
|
+
"?"),
|
|
89
|
+
hasAnyUnenforcedThreats && (React.createElement(Box, { sx: {
|
|
90
|
+
display: 'flex',
|
|
91
|
+
alignItems: 'flex-start',
|
|
92
|
+
gap: 1,
|
|
93
|
+
mb: 2,
|
|
94
|
+
p: 1.5,
|
|
95
|
+
backgroundColor: theme.palette.info.dark + '20',
|
|
96
|
+
borderRadius: 1,
|
|
97
|
+
border: `1px solid ${theme.palette.info.dark}40`,
|
|
98
|
+
} },
|
|
99
|
+
React.createElement(InfoIcon, { sx: { fontSize: 18, color: theme.palette.info.main, mt: 0.25 } }),
|
|
100
|
+
React.createElement(Typography, { variant: 'body2', color: 'text.secondary' },
|
|
101
|
+
"Some extensions have unenforced threats. These are informational only and will not be added to the ",
|
|
102
|
+
confirmDialog.action === 'allow' ? 'allow' : 'block',
|
|
103
|
+
" list."))),
|
|
104
|
+
hasThreatsWithoutFileInfo && (React.createElement(Box, { sx: {
|
|
105
|
+
display: 'flex',
|
|
106
|
+
alignItems: 'flex-start',
|
|
107
|
+
gap: 1,
|
|
108
|
+
mb: 2,
|
|
109
|
+
p: 1.5,
|
|
110
|
+
backgroundColor: theme.palette.info.dark + '20',
|
|
111
|
+
borderRadius: 1,
|
|
112
|
+
border: `1px solid ${theme.palette.info.dark}40`,
|
|
113
|
+
} },
|
|
114
|
+
React.createElement(InfoIcon, { sx: { fontSize: 18, color: theme.palette.info.main, mt: 0.25 } }),
|
|
115
|
+
React.createElement(Typography, { variant: 'body2', color: 'text.secondary' }, "Some threats do not have file-level information (e.g., from scanners that analyze the whole package). These cannot be added to allow/block lists."))),
|
|
116
|
+
React.createElement(List, { sx: {
|
|
117
|
+
maxHeight: '400px',
|
|
118
|
+
overflow: 'auto',
|
|
119
|
+
border: `1px solid ${theme.palette.scanBackground.default}`,
|
|
120
|
+
borderRadius: 1,
|
|
121
|
+
} }, confirmDialog.selectedExtensions.map((scan) => {
|
|
122
|
+
const actionableThreats = getActionableThreats(scan);
|
|
123
|
+
const enforcedThreats = getEnforcedThreats(scan);
|
|
124
|
+
const unenforcedThreats = getUnenforcedThreats(scan);
|
|
125
|
+
return (React.createElement(ListItem, { key: scan.id, sx: {
|
|
126
|
+
borderBottom: `1px solid ${theme.palette.scanBackground.dark}`,
|
|
127
|
+
'&:last-child': { borderBottom: 'none' },
|
|
128
|
+
display: 'flex',
|
|
129
|
+
alignItems: 'flex-start',
|
|
130
|
+
gap: 2,
|
|
131
|
+
} },
|
|
132
|
+
React.createElement(ListItemText, { sx: { flex: 1, minWidth: 0 }, primary: React.createElement(Typography, { variant: 'body1', sx: {
|
|
133
|
+
fontWeight: 500,
|
|
134
|
+
overflow: 'hidden',
|
|
135
|
+
textOverflow: 'ellipsis',
|
|
136
|
+
whiteSpace: 'nowrap',
|
|
137
|
+
} }, scan.displayName), secondary: React.createElement(Box, { sx: { display: 'flex', flexDirection: 'column', gap: 0.25 } },
|
|
138
|
+
React.createElement(Typography, { variant: 'body2', color: 'text.secondary', sx: {
|
|
139
|
+
overflow: 'hidden',
|
|
140
|
+
textOverflow: 'ellipsis',
|
|
141
|
+
whiteSpace: 'nowrap',
|
|
142
|
+
} },
|
|
143
|
+
scan.namespace,
|
|
144
|
+
".",
|
|
145
|
+
scan.extensionName),
|
|
146
|
+
React.createElement(Typography, { variant: 'body2', color: 'text.secondary', sx: {
|
|
147
|
+
overflow: 'hidden',
|
|
148
|
+
textOverflow: 'ellipsis',
|
|
149
|
+
whiteSpace: 'nowrap',
|
|
150
|
+
} },
|
|
151
|
+
"Publisher: ",
|
|
152
|
+
scan.publisher),
|
|
153
|
+
React.createElement(Typography, { variant: 'body2', color: 'text.secondary', sx: {
|
|
154
|
+
overflow: 'hidden',
|
|
155
|
+
textOverflow: 'ellipsis',
|
|
156
|
+
whiteSpace: 'nowrap',
|
|
157
|
+
} },
|
|
158
|
+
"Version: ",
|
|
159
|
+
scan.version)) }),
|
|
160
|
+
React.createElement(Tooltip, { title: actionableThreats.length > 0 ? (React.createElement(Box, null,
|
|
161
|
+
React.createElement(Typography, { variant: 'caption', sx: { fontWeight: 600 } },
|
|
162
|
+
"Files to ",
|
|
163
|
+
confirmDialog.action,
|
|
164
|
+
":"),
|
|
165
|
+
React.createElement(Box, { sx: { whiteSpace: 'pre-line', mt: 0.5 } }, actionableThreats.map((threat, index) => (React.createElement("div", { key: index }, threat.fileName)))))) : ('No actionable files (no file-level info)'), arrow: true },
|
|
166
|
+
React.createElement(Box, { sx: {
|
|
167
|
+
flexShrink: 0,
|
|
168
|
+
alignSelf: 'flex-start',
|
|
169
|
+
mt: 0.5,
|
|
170
|
+
cursor: 'pointer',
|
|
171
|
+
textAlign: 'right',
|
|
172
|
+
} },
|
|
173
|
+
React.createElement(Typography, { variant: 'body2', color: 'text.secondary' },
|
|
174
|
+
actionableThreats.length,
|
|
175
|
+
" file",
|
|
176
|
+
actionableThreats.length !== 1 ? 's' : ''),
|
|
177
|
+
(enforcedThreats.length - actionableThreats.length) > 0 && (React.createElement(Typography, { variant: 'caption', sx: { color: 'text.disabled', display: 'block' } },
|
|
178
|
+
"+",
|
|
179
|
+
enforcedThreats.length - actionableThreats.length,
|
|
180
|
+
" without file info")),
|
|
181
|
+
unenforcedThreats.length > 0 && (React.createElement(Typography, { variant: 'caption', sx: { color: 'text.disabled', display: 'block' } },
|
|
182
|
+
"+",
|
|
183
|
+
unenforcedThreats.length,
|
|
184
|
+
" unenforced"))))));
|
|
185
|
+
}))),
|
|
186
|
+
React.createElement(DialogActions, { sx: { px: 3, pb: 2 } },
|
|
187
|
+
React.createElement(Button, { onClick: confirmDialog.close, color: 'inherit' }, "Cancel"),
|
|
188
|
+
React.createElement(Button, { onClick: confirmDialog.execute, variant: 'contained', color: confirmDialog.action === 'allow' ? 'success' : 'error' },
|
|
189
|
+
"Confirm ",
|
|
190
|
+
confirmDialog.action === 'allow' ? 'Allow' : 'Block'))));
|
|
191
|
+
};
|
|
192
|
+
//# sourceMappingURL=quarantine-dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quarantine-dialog.js","sourceRoot":"","sources":["../../../../src/components/scan-admin/dialogs/quarantine-dialog.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;kFAWkF;AAElF,OAAO,KAAK,EAAE,EAAqB,OAAO,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAClJ,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD;;GAEG;AACH,MAAM,kBAAkB,GAAG,CAAC,IAAgB,EAAE,EAAE;;IAC5C,OAAO,CAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,KAAI,EAAE,CAAC;AACrE,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,oBAAoB,GAAG,CAAC,IAAgB,EAAE,EAAE;;IAC9C,OAAO,CAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,MA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
|
+
* Copyright (c) 2026 Contributors to the Eclipse Foundation
|
|
3
|
+
*
|
|
4
|
+
* See the NOTICE file(s) distributed with this work for additional
|
|
5
|
+
* information regarding copyright ownership.
|
|
6
|
+
*
|
|
7
|
+
* This program and the accompanying materials are made available under the
|
|
8
|
+
* terms of the Eclipse Public License 2.0 which is available at
|
|
9
|
+
* https://www.eclipse.org/legal/epl-2.0
|
|
10
|
+
*
|
|
11
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
12
|
+
********************************************************************************/
|
|
13
|
+
export { ConditionalTooltip, FileTable, AutoRefresh, TabPanel, } from './common';
|
|
14
|
+
export { QuarantineDialog, FileDialog, } from './dialogs';
|
|
15
|
+
export { TabToolbar, SearchToolbar, CountsToolbar, } from './toolbars';
|
|
16
|
+
export { ScansTabContent, QuarantinedTabContent, AutoRejectedTabContent, AllowListTabContent, BlockListTabContent, } from './tab-contents';
|
|
17
|
+
export { ScanCard } from './scan-card';
|
|
18
|
+
export { ScanCardHeader, ScanCardContent, ScanCardExpandStrip, ScanCardExpandedContent, } from './scan-card';
|
|
19
|
+
export * from './scan-card/utils';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/scan-admin/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;kFAWkF;AAGlF,OAAO,EACH,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,QAAQ,GACX,MAAM,UAAU,CAAC;AAGlB,OAAO,EACH,gBAAgB,EAChB,UAAU,GACb,MAAM,WAAW,CAAC;AAGnB,OAAO,EACH,UAAU,EACV,aAAa,EACb,aAAa,GAChB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACH,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,GACtB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACH,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,uBAAuB,GAC1B,MAAM,aAAa,CAAC;AACrB,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 Contributors to the Eclipse Foundation
|
|
3
|
+
*
|
|
4
|
+
* See the NOTICE file(s) distributed with this work for additional
|
|
5
|
+
* information regarding copyright ownership.
|
|
6
|
+
*
|
|
7
|
+
* This program and the accompanying materials are made available under the
|
|
8
|
+
* terms of the Eclipse Public License 2.0 which is available at
|
|
9
|
+
* https://www.eclipse.org/legal/epl-2.0
|
|
10
|
+
*
|
|
11
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
12
|
+
********************************************************************************/
|
|
13
|
+
// Common components
|
|
14
|
+
export { ConditionalTooltip, FileTable, AutoRefresh, TabPanel, } from './common';
|
|
15
|
+
// Dialog components
|
|
16
|
+
export { QuarantineDialog, FileDialog, } from './dialogs';
|
|
17
|
+
// Toolbar components
|
|
18
|
+
export { TabToolbar, SearchToolbar, CountsToolbar, } from './toolbars';
|
|
19
|
+
// Tab content components
|
|
20
|
+
export { ScansTabContent, QuarantinedTabContent, AutoRejectedTabContent, AllowListTabContent, BlockListTabContent, } from './tab-contents';
|
|
21
|
+
// ScanCard components
|
|
22
|
+
export { ScanCard } from './scan-card';
|
|
23
|
+
export { ScanCardHeader, ScanCardContent, ScanCardExpandStrip, ScanCardExpandedContent, } from './scan-card';
|
|
24
|
+
export * from './scan-card/utils';
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/scan-admin/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;kFAWkF;AAElF,oBAAoB;AACpB,OAAO,EACH,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,QAAQ,GACX,MAAM,UAAU,CAAC;AAElB,oBAAoB;AACpB,OAAO,EACH,gBAAgB,EAChB,UAAU,GACb,MAAM,WAAW,CAAC;AAEnB,qBAAqB;AACrB,OAAO,EACH,UAAU,EACV,aAAa,EACb,aAAa,GAChB,MAAM,YAAY,CAAC;AAEpB,yBAAyB;AACzB,OAAO,EACH,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,GACtB,MAAM,gBAAgB,CAAC;AAExB,sBAAsB;AACtB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACH,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,uBAAuB,GAC1B,MAAM,aAAa,CAAC;AACrB,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 Contributors to the Eclipse Foundation
|
|
3
|
+
*
|
|
4
|
+
* See the NOTICE file(s) distributed with this work for additional
|
|
5
|
+
* information regarding copyright ownership.
|
|
6
|
+
*
|
|
7
|
+
* This program and the accompanying materials are made available under the
|
|
8
|
+
* terms of the Eclipse Public License 2.0 which is available at
|
|
9
|
+
* https://www.eclipse.org/legal/epl-2.0
|
|
10
|
+
*
|
|
11
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
12
|
+
********************************************************************************/
|
|
13
|
+
export { ScanCard } from './scan-card';
|
|
14
|
+
export { ScanCardHeader } from './scan-card-header';
|
|
15
|
+
export { ScanCardContent } from './scan-card-content';
|
|
16
|
+
export { ScanCardExpandStrip } from './scan-card-expand-strip';
|
|
17
|
+
export { ScanCardExpandedContent } from './scan-card-expanded-content';
|
|
18
|
+
export { ScanDetailCard } from './scan-detail-card';
|
|
19
|
+
export * from './utils';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/scan-admin/scan-card/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;kFAWkF;AAElF,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 Contributors to the Eclipse Foundation
|
|
3
|
+
*
|
|
4
|
+
* See the NOTICE file(s) distributed with this work for additional
|
|
5
|
+
* information regarding copyright ownership.
|
|
6
|
+
*
|
|
7
|
+
* This program and the accompanying materials are made available under the
|
|
8
|
+
* terms of the Eclipse Public License 2.0 which is available at
|
|
9
|
+
* https://www.eclipse.org/legal/epl-2.0
|
|
10
|
+
*
|
|
11
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
12
|
+
********************************************************************************/
|
|
13
|
+
export { ScanCard } from './scan-card';
|
|
14
|
+
export { ScanCardHeader } from './scan-card-header';
|
|
15
|
+
export { ScanCardContent } from './scan-card-content';
|
|
16
|
+
export { ScanCardExpandStrip } from './scan-card-expand-strip';
|
|
17
|
+
export { ScanCardExpandedContent } from './scan-card-expanded-content';
|
|
18
|
+
export { ScanDetailCard } from './scan-detail-card';
|
|
19
|
+
export * from './utils';
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/scan-admin/scan-card/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;kFAWkF;AAElF,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 Contributors to the Eclipse Foundation
|
|
3
|
+
*
|
|
4
|
+
* See the NOTICE file(s) distributed with this work for additional
|
|
5
|
+
* information regarding copyright ownership.
|
|
6
|
+
*
|
|
7
|
+
* This program and the accompanying materials are made available under the
|
|
8
|
+
* terms of the Eclipse Public License 2.0 which is available at
|
|
9
|
+
* https://www.eclipse.org/legal/epl-2.0
|
|
10
|
+
*
|
|
11
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
12
|
+
********************************************************************************/
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import { ScanResult } from '../../../context/scan-admin';
|
|
15
|
+
interface ScanCardContentProps {
|
|
16
|
+
scan: ScanResult;
|
|
17
|
+
showCheckbox?: boolean;
|
|
18
|
+
checked?: boolean;
|
|
19
|
+
onCheckboxChange?: (id: string, checked: boolean) => void;
|
|
20
|
+
liveDuration: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Content section of the ScanCard containing:
|
|
24
|
+
* - Publisher, Version, Download (Row 2)
|
|
25
|
+
* - Scan Start, Scan End, Duration, Decision Status (Row 3)
|
|
26
|
+
* - Checkbox for selection
|
|
27
|
+
*/
|
|
28
|
+
export declare const ScanCardContent: React.FC<ScanCardContentProps>;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=scan-card-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scan-card-content.d.ts","sourceRoot":"","sources":["../../../../src/components/scan-admin/scan-card/scan-card-content.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;kFAWkF;AAElF,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AASzD,UAAU,oBAAoB;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1D,YAAY,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA8Z1D,CAAC"}
|