angular/devtools/projects/ng-devtools-backend/src/lib/ng-debug-api/supported-apis.ts
hawkgs 863401b858 refactor(devtools): add property show graph button (#62853)
Add "Show graph" button to the signal properties in the side pane only for Angular apps. This required storing the signal graph in a separate service.

PR Close #62853
2025-08-20 09:04:24 +00:00

40 lines
1.2 KiB
TypeScript

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {SupportedApis} from '../../../../protocol';
import {
ngDebugDependencyInjectionApiIsSupported,
ngDebugProfilerApiIsSupported,
ngDebugRoutesApiIsSupported,
ngDebugSignalGraphApiIsSupported,
ngDebugSignalPropertiesInspectionApiIsSupported,
ngDebugTransferStateApiIsSupported,
} from './ng-debug-api';
/**
* Returns an object with all available Devtools APIs.
*
* @returns `SupportedApis`
*/
export function getSupportedApis(): SupportedApis {
const profiler = ngDebugProfilerApiIsSupported();
const dependencyInjection = ngDebugDependencyInjectionApiIsSupported();
const routes = ngDebugRoutesApiIsSupported();
const signals = ngDebugSignalGraphApiIsSupported();
const transferState = ngDebugTransferStateApiIsSupported();
const signalPropertiesInspection = ngDebugSignalPropertiesInspectionApiIsSupported();
return {
profiler,
dependencyInjection,
routes,
signals,
transferState,
signalPropertiesInspection,
};
}