File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 * entity-tree — context menu entry in the entity tree
1010 * dashboard-widget — card in the tenant dashboard
1111 */
12- import type { ModuleViewerSlots } from '@nekazari/sdk ' ;
12+ import type { ModuleViewerSlots } from '../types/module-slots ' ;
1313import { ExampleSlot } from '../components/slots/ExampleSlot' ;
1414
1515const MODULE_ID = 'MODULE_NAME' ;
Original file line number Diff line number Diff line change 22 * Global type declarations for the Nekazari host runtime.
33 * These globals are injected by the host before module bundles execute.
44 */
5- import type { ModuleViewerSlots } from '@nekazari/sdk ' ;
5+ import type { ModuleViewerSlots } from './module-slots ' ;
66
77declare global {
88 interface Window {
Original file line number Diff line number Diff line change 1+ import type React from 'react' ;
2+
3+ export type SlotType =
4+ | 'entity-tree'
5+ | 'map-layer'
6+ | 'context-panel'
7+ | 'bottom-panel'
8+ | 'layer-toggle'
9+ | 'dashboard-widget'
10+ | 'admin-tab' ;
11+
12+ export interface SlotWidgetDefinition {
13+ id : string ;
14+ moduleId : string ;
15+ component : string ;
16+ localComponent ?: React . ComponentType < any > ;
17+ priority ?: number ;
18+ props ?: Record < string , unknown > ;
19+ }
20+
21+ export type ModuleViewerSlots = Partial < Record < SlotType , SlotWidgetDefinition [ ] > > ;
You can’t perform that action at this time.
0 commit comments