Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(troubleshooter): added basic troubleshooter #29

Merged
merged 7 commits into from
Nov 4, 2024
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,125 @@ export class DyteCounter {
}
}

import type { States as IDyteDebuggerStates } from '@dytesdk/ui-kit';
export declare interface DyteDebugger extends Components.DyteDebugger {
/**
* Emits updated state data
*/
dyteStateUpdate: EventEmitter<CustomEvent<IDyteDebuggerStates>>;

}

@ProxyCmp({
defineCustomElementFn: undefined,
inputs: ['iconPack', 'meeting', 'size', 'states', 't']
})
@Component({
selector: 'dyte-debugger',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
inputs: ['iconPack', 'meeting', 'size', 'states', 't']
})
export class DyteDebugger {
protected el: HTMLElement;
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
c.detach();
this.el = r.nativeElement;
proxyOutputs(this, this.el, ['dyteStateUpdate']);
}
}


export declare interface DyteDebuggerAudio extends Components.DyteDebuggerAudio {}

@ProxyCmp({
defineCustomElementFn: undefined,
inputs: ['iconPack', 'meeting', 'size', 'states', 't']
})
@Component({
selector: 'dyte-debugger-audio',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
inputs: ['iconPack', 'meeting', 'size', 'states', 't']
})
export class DyteDebuggerAudio {
protected el: HTMLElement;
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
c.detach();
this.el = r.nativeElement;
}
}


export declare interface DyteDebuggerScreenshare extends Components.DyteDebuggerScreenshare {}

@ProxyCmp({
defineCustomElementFn: undefined,
inputs: ['iconPack', 'meeting', 'size', 'states', 't']
})
@Component({
selector: 'dyte-debugger-screenshare',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
inputs: ['iconPack', 'meeting', 'size', 'states', 't']
})
export class DyteDebuggerScreenshare {
protected el: HTMLElement;
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
c.detach();
this.el = r.nativeElement;
}
}

import type { States as IDyteDebuggerToggleStates } from '@dytesdk/ui-kit';
export declare interface DyteDebuggerToggle extends Components.DyteDebuggerToggle {
/**
* Emits updated state data
*/
dyteStateUpdate: EventEmitter<CustomEvent<IDyteDebuggerToggleStates>>;

}

@ProxyCmp({
defineCustomElementFn: undefined,
inputs: ['iconPack', 'meeting', 'size', 'states', 't', 'variant']
})
@Component({
selector: 'dyte-debugger-toggle',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
inputs: ['iconPack', 'meeting', 'size', 'states', 't', 'variant']
})
export class DyteDebuggerToggle {
protected el: HTMLElement;
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
c.detach();
this.el = r.nativeElement;
proxyOutputs(this, this.el, ['dyteStateUpdate']);
}
}


export declare interface DyteDebuggerVideo extends Components.DyteDebuggerVideo {}

@ProxyCmp({
defineCustomElementFn: undefined,
inputs: ['iconPack', 'meeting', 'size', 'states', 't']
})
@Component({
selector: 'dyte-debugger-video',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
inputs: ['iconPack', 'meeting', 'size', 'states', 't']
})
export class DyteDebuggerVideo {
protected el: HTMLElement;
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
c.detach();
this.el = r.nativeElement;
}
}


export declare interface DyteDialog extends Components.DyteDialog {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ export const DIRECTIVES = [
d.DyteControlbar,
d.DyteControlbarButton,
d.DyteCounter,
d.DyteDebugger,
d.DyteDebuggerAudio,
d.DyteDebuggerScreenshare,
d.DyteDebuggerToggle,
d.DyteDebuggerVideo,
d.DyteDialog,
d.DyteDialogManager,
d.DyteDraftAttachmentView,
Expand Down
Loading
Loading