* feat: Add extensibility for tmtv and segmentation modes * Fixes for ordering issues on laod * Remove unnecessary reference lookup * Chane side panel timing to fix tests * PR comments - change how mode definitions get created * Improvements to mode customizations * Start organizing customizations * Misc fixes for a customization demo page * Security fixes * PR requested changes to naming
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
import { id } from './id';
|
|
import getHangingProtocolModule from './getHangingProtocolModule';
|
|
import getPanelModule from './getPanelModule';
|
|
import init from './init';
|
|
import commandsModule from './commandsModule';
|
|
import getToolbarModule from './getToolbarModule';
|
|
import getCustomizationModule from './getCustomizationModule';
|
|
import { toolGroupIds } from './toolGroupIds';
|
|
|
|
/**
|
|
*
|
|
*/
|
|
const tmtvExtension = {
|
|
/**
|
|
* Only required property. Should be a unique value across all extensions.
|
|
*/
|
|
id,
|
|
preRegistration({ servicesManager, commandsManager, extensionManager, configuration = {} }) {
|
|
init({ servicesManager, commandsManager, extensionManager, configuration });
|
|
},
|
|
getToolbarModule,
|
|
getPanelModule,
|
|
getHangingProtocolModule,
|
|
getCustomizationModule,
|
|
getCommandsModule({ servicesManager, commandsManager, extensionManager }) {
|
|
return commandsModule({
|
|
servicesManager,
|
|
commandsManager,
|
|
extensionManager,
|
|
});
|
|
},
|
|
};
|
|
|
|
export default tmtvExtension;
|
|
export { toolGroupIds };
|