feat: Add slashcommand api

This commit is contained in:
2026-06-05 17:12:26 +02:00
parent 4070ef6caf
commit 8ecfc9a1fe
101 changed files with 3526 additions and 147 deletions

View File

@@ -111,6 +111,7 @@
[klipyEnabled]="klipyEnabled()"
[klipySignalSource]="null"
[textareaTestId]="'dm-input'"
[commandSurface]="'direct'"
(messageSubmitted)="handleMessageSubmitted($event)"
(typingStarted)="handleTypingStarted()"
(replyCleared)="clearReply()"

View File

@@ -19,7 +19,7 @@ import { DmChatComponent } from '../dm-chat/dm-chat.component';
templateUrl: './dm-chat-panel.component.html'
})
export class DmChatPanelComponent {
private readonly theme = inject(ThemeService);
readonly chatPanelStyles = computed(() => this.theme.getLayoutItemStyles('dmChatPanel'));
private readonly theme = inject(ThemeService);
}

View File

@@ -40,10 +40,7 @@ function createHarness(options: HarnessOptions = {}) {
dispatch: vi.fn()
} as unknown as Store;
const injector = Injector.create({
providers: [
FindPeopleComponent,
{ provide: Store, useValue: store }
]
providers: [FindPeopleComponent, { provide: Store, useValue: store }]
});
const component = runInInjectionContext(injector, () => injector.get(FindPeopleComponent));