mediasfu-angular 2.2.0 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/README.md +2288 -375
  2. package/dist/README.md +2288 -375
  3. package/dist/fesm2022/mediasfu-angular.mjs +9519 -4188
  4. package/dist/fesm2022/mediasfu-angular.mjs.map +1 -1
  5. package/dist/lib/@types/types.d.ts +6 -1
  6. package/dist/lib/@types/ui-overrides.types.d.ts +310 -0
  7. package/dist/lib/components/background-components/background-modal/background-modal.component.d.ts +1023 -2
  8. package/dist/lib/components/breakout-components/breakout-rooms-modal.component.d.ts +1069 -45
  9. package/dist/lib/components/breakout-components/edit-room-modal/edit-room-modal.component.d.ts +1054 -42
  10. package/dist/lib/components/co-host-components/co-host-modal/co-host-modal.component.d.ts +1067 -56
  11. package/dist/lib/components/display-components/alert-component/alert.component.component.d.ts +80 -24
  12. package/dist/lib/components/display-components/audio-grid/audio-grid.component.d.ts +83 -11
  13. package/dist/lib/components/display-components/flexible-grid/flexible-grid.component.d.ts +96 -33
  14. package/dist/lib/components/display-components/loading-modal/loading-modal.component.d.ts +16 -26
  15. package/dist/lib/components/display-components/main-aspect-component/main-aspect-component.component.d.ts +6 -2
  16. package/dist/lib/components/display-components/main-container-component/main-container-component.component.d.ts +6 -2
  17. package/dist/lib/components/display-components/main-grid-component/main-grid-component.component.d.ts +7 -13
  18. package/dist/lib/components/display-components/main-screen-component/main-screen-component.component.d.ts +508 -7
  19. package/dist/lib/components/display-components/other-grid-component/other-grid-component.component.d.ts +7 -1
  20. package/dist/lib/components/display-components/sub-aspect-component/sub-aspect-component.component.d.ts +7 -2
  21. package/dist/lib/components/display-settings-components/display-settings-modal.component.d.ts +1107 -27
  22. package/dist/lib/components/event-settings-components/event-settings-modal/event-settings-modal.component.d.ts +1134 -49
  23. package/dist/lib/components/exit-components/confirm-exit-modal/confirm-exit-modal.component.d.ts +94 -32
  24. package/dist/lib/components/media-settings-components/media-settings-modal/media-settings-modal.component.d.ts +1123 -47
  25. package/dist/lib/components/mediasfu-components/mediasfu-broadcast.component.d.ts +24966 -73
  26. package/dist/lib/components/mediasfu-components/mediasfu-chat.component.d.ts +276 -73
  27. package/dist/lib/components/mediasfu-components/mediasfu-conference.component.d.ts +18132 -93
  28. package/dist/lib/components/mediasfu-components/mediasfu-generic.component.d.ts +56344 -93
  29. package/dist/lib/components/mediasfu-components/mediasfu-webinar.component.d.ts +20849 -93
  30. package/dist/lib/components/menu-components/custom-buttons/custom-buttons.component.d.ts +23 -4
  31. package/dist/lib/components/menu-components/meeting-id-component/meeting-id-component.component.d.ts +78 -1
  32. package/dist/lib/components/menu-components/meeting-passcode-component/meeting-passcode-component.component.d.ts +37 -1
  33. package/dist/lib/components/menu-components/menu-modal/menu-modal.component.d.ts +689 -9
  34. package/dist/lib/components/menu-components/share-buttons-component/share-buttons-component.component.d.ts +46 -2
  35. package/dist/lib/components/message-components/messages-modal/messages-modal.component.d.ts +76 -13
  36. package/dist/lib/components/misc-components/confirm-here-modal/confirm-here-modal.component.d.ts +1113 -17
  37. package/dist/lib/components/misc-components/share-event-modal/share-event-modal.component.d.ts +1114 -29
  38. package/dist/lib/components/participants-components/participants-modal/participants-modal.component.d.ts +1084 -6
  39. package/dist/lib/components/polls-components/poll-modal/poll-modal.component.d.ts +1060 -21
  40. package/dist/lib/components/recording-components/recording-modal/recording-modal.component.d.ts +1054 -35
  41. package/dist/lib/components/requests-components/requests-modal/requests-modal.component.d.ts +1117 -45
  42. package/dist/lib/components/screenboard-components/screenboard-modal/screenboard-modal.component.d.ts +1059 -47
  43. package/dist/lib/components/waiting-components/waiting-room-modal.component.d.ts +1119 -46
  44. package/dist/lib/components/whiteboard-components/configure-whiteboard-modal/configure-whiteboard-modal.component.d.ts +1049 -16
  45. package/dist/lib/consumers/add-videos-grid.service.d.ts +3 -0
  46. package/dist/lib/consumers/connect-ips.service.d.ts +3 -1
  47. package/dist/lib/consumers/connect-recv-transport.service.d.ts +4 -1
  48. package/dist/lib/consumers/connect-send-transport-audio.service.d.ts +5 -1
  49. package/dist/lib/consumers/connect-send-transport-screen.service.d.ts +6 -1
  50. package/dist/lib/consumers/connect-send-transport-video.service.d.ts +6 -1
  51. package/dist/lib/consumers/connect-send-transport.service.d.ts +3 -1
  52. package/dist/lib/consumers/consumer-resume.service.d.ts +2 -1
  53. package/dist/lib/consumers/create-send-transport.service.d.ts +4 -1
  54. package/dist/lib/consumers/disconnect-send-transport-audio.service.d.ts +3 -1
  55. package/dist/lib/consumers/disconnect-send-transport-screen.service.d.ts +3 -1
  56. package/dist/lib/consumers/disconnect-send-transport-video.service.d.ts +3 -1
  57. package/dist/lib/consumers/prepopulate-user-media.service.d.ts +3 -0
  58. package/dist/lib/consumers/resume-send-transport-audio.service.d.ts +3 -1
  59. package/dist/lib/consumers/signal-new-consumer-transport.service.d.ts +3 -1
  60. package/dist/lib/consumers/socket-receive-methods/join-consume-room.service.d.ts +3 -1
  61. package/dist/lib/consumers/socket-receive-methods/new-pipe-producer.service.d.ts +3 -1
  62. package/dist/lib/consumers/stream-success-audio-switch.service.d.ts +5 -1
  63. package/dist/lib/consumers/stream-success-audio.service.d.ts +3 -1
  64. package/dist/lib/consumers/stream-success-video.service.d.ts +5 -1
  65. package/dist/lib/directives/with-override.directive.d.ts +76 -0
  66. package/dist/lib/methods/utils/initial-values.util.d.ts +7 -2
  67. package/dist/lib/methods/utils/mini-audio-player/mini-audio-player.component.d.ts +3 -1
  68. package/dist/lib/methods/utils/producer/a-params.service.d.ts +4 -1
  69. package/dist/lib/methods/utils/producer/h-params.service.d.ts +4 -1
  70. package/dist/lib/methods/utils/producer/screen-params.service.d.ts +4 -1
  71. package/dist/lib/methods/utils/producer/v-params.service.d.ts +4 -1
  72. package/dist/lib/methods/whiteboard-methods/capture-canvas-stream.service.d.ts +3 -1
  73. package/dist/lib/producer-client/producer-client-emits/create-device-client.service.d.ts +4 -1
  74. package/dist/lib/producer-client/producer-client-emits/update-room-parameters-client.service.d.ts +3 -1
  75. package/dist/lib/producers/producer-emits/join-con-room.service.d.ts +3 -1
  76. package/dist/lib/producers/socket-receive-methods/get-domains.service.d.ts +3 -1
  77. package/dist/lib/services/ui-override-resolver.service.d.ts +91 -0
  78. package/dist/public-api.d.ts +4 -0
  79. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { Injector, Type } from '@angular/core';
1
+ import { Injector, Type, TemplateRef } from '@angular/core';
2
2
  import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
3
3
  import * as i0 from "@angular/core";
4
4
  export interface CustomComponent {
@@ -6,8 +6,8 @@ export interface CustomComponent {
6
6
  injector: Injector;
7
7
  }
8
8
  export interface CustomButton {
9
- action: () => void;
10
- show: boolean | (() => boolean);
9
+ action?: (() => void) | (() => Promise<void>);
10
+ show?: boolean | (() => boolean);
11
11
  backgroundColor?: string;
12
12
  disabled?: boolean;
13
13
  icon?: IconDefinition;
@@ -16,9 +16,23 @@ export interface CustomButton {
16
16
  textStyle?: Partial<CSSStyleDeclaration>;
17
17
  customComponent?: HTMLElement | CustomComponent | (() => HTMLElement | CustomComponent);
18
18
  injector?: Injector;
19
+ buttonAttributes?: {
20
+ [key: string]: any;
21
+ };
22
+ contentAttributes?: {
23
+ [key: string]: any;
24
+ };
25
+ iconAttributes?: {
26
+ [key: string]: any;
27
+ };
28
+ renderAsButton?: boolean;
19
29
  }
20
30
  export interface CustomButtonsOptions {
21
31
  buttons: CustomButton[];
32
+ containerAttributes?: {
33
+ [key: string]: any;
34
+ };
35
+ fallbackSpinner?: TemplateRef<any>;
22
36
  }
23
37
  export type CustomButtonsType = (options: CustomButtonsOptions) => HTMLElement;
24
38
  /**
@@ -72,10 +86,15 @@ export type CustomButtonsType = (options: CustomButtonsOptions) => HTMLElement;
72
86
  */
73
87
  export declare class CustomButtons {
74
88
  buttons: CustomButton[];
89
+ containerAttributes?: {
90
+ [key: string]: any;
91
+ };
92
+ fallbackSpinner?: TemplateRef<any>;
75
93
  faSpinner: IconDefinition;
76
94
  mergeStyles(defaultStyle: any, customStyle: any): any;
95
+ getButtonStyles(button: CustomButton): any;
77
96
  get customButtonIcon(): any;
78
97
  isCustomComponentConfig(obj: any): obj is CustomComponent;
79
98
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomButtons, never>;
80
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomButtons, "app-custom-buttons", never, { "buttons": { "alias": "buttons"; "required": false; }; }, {}, never, never, true, never>;
99
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomButtons, "app-custom-buttons", never, { "buttons": { "alias": "buttons"; "required": false; }; "containerAttributes": { "alias": "containerAttributes"; "required": false; }; "fallbackSpinner": { "alias": "fallbackSpinner"; "required": false; }; }, {}, never, never, true, never>;
81
100
  }
@@ -1,6 +1,43 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
1
3
  import * as i0 from "@angular/core";
4
+ export interface MeetingIdRenderContext {
5
+ isCopied: boolean;
6
+ meetingID: string;
7
+ }
2
8
  export interface MeetingIdComponentOptions {
3
9
  meetingID?: string;
10
+ labelText?: string;
11
+ containerAttributes?: {
12
+ [key: string]: any;
13
+ };
14
+ labelAttributes?: {
15
+ [key: string]: any;
16
+ };
17
+ inputContainerAttributes?: {
18
+ [key: string]: any;
19
+ };
20
+ inputAttributes?: {
21
+ [key: string]: any;
22
+ };
23
+ buttonAttributes?: {
24
+ [key: string]: any;
25
+ };
26
+ iconAttributes?: {
27
+ [key: string]: any;
28
+ };
29
+ copyIconColors?: {
30
+ default?: string;
31
+ copied?: string;
32
+ };
33
+ customIcon?: IconDefinition;
34
+ renderContainer?: TemplateRef<MeetingIdRenderContext>;
35
+ renderLabel?: TemplateRef<MeetingIdRenderContext>;
36
+ renderInput?: TemplateRef<MeetingIdRenderContext>;
37
+ renderCopyButton?: TemplateRef<MeetingIdRenderContext>;
38
+ renderIcon?: TemplateRef<MeetingIdRenderContext>;
39
+ renderInputGroup?: TemplateRef<MeetingIdRenderContext>;
40
+ renderContent?: TemplateRef<MeetingIdRenderContext>;
4
41
  }
5
42
  export type MeetingIdComponentType = (options: MeetingIdComponentOptions) => HTMLElement;
6
43
  /**
@@ -18,6 +55,46 @@ export type MeetingIdComponentType = (options: MeetingIdComponentOptions) => HTM
18
55
  */
19
56
  export declare class MeetingIdComponent {
20
57
  meetingID: string;
58
+ labelText?: string;
59
+ containerAttributes?: {
60
+ [key: string]: any;
61
+ };
62
+ labelAttributes?: {
63
+ [key: string]: any;
64
+ };
65
+ inputContainerAttributes?: {
66
+ [key: string]: any;
67
+ };
68
+ inputAttributes?: {
69
+ [key: string]: any;
70
+ };
71
+ buttonAttributes?: {
72
+ [key: string]: any;
73
+ };
74
+ iconAttributes?: {
75
+ [key: string]: any;
76
+ };
77
+ copyIconColors?: {
78
+ default?: string;
79
+ copied?: string;
80
+ };
81
+ customIcon?: IconDefinition;
82
+ renderContainer?: TemplateRef<MeetingIdRenderContext>;
83
+ renderLabel?: TemplateRef<MeetingIdRenderContext>;
84
+ renderInput?: TemplateRef<MeetingIdRenderContext>;
85
+ renderCopyButton?: TemplateRef<MeetingIdRenderContext>;
86
+ renderIcon?: TemplateRef<MeetingIdRenderContext>;
87
+ renderInputGroup?: TemplateRef<MeetingIdRenderContext>;
88
+ renderContent?: TemplateRef<MeetingIdRenderContext>;
89
+ isCopied: boolean;
90
+ readonly copyIcon: IconDefinition;
91
+ get renderContext(): MeetingIdRenderContext;
92
+ handleCopy(): Promise<void>;
93
+ getIconColor(): string;
94
+ getLabelText(): string;
95
+ getInputValue(): string;
96
+ getInputReadOnly(): boolean;
97
+ getIconStyle(): any;
21
98
  static ɵfac: i0.ɵɵFactoryDeclaration<MeetingIdComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<MeetingIdComponent, "app-meeting-id-component", never, { "meetingID": { "alias": "meetingID"; "required": false; }; }, {}, never, never, true, never>;
99
+ static ɵcmp: i0.ɵɵComponentDeclaration<MeetingIdComponent, "app-meeting-id-component", never, { "meetingID": { "alias": "meetingID"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "containerAttributes": { "alias": "containerAttributes"; "required": false; }; "labelAttributes": { "alias": "labelAttributes"; "required": false; }; "inputContainerAttributes": { "alias": "inputContainerAttributes"; "required": false; }; "inputAttributes": { "alias": "inputAttributes"; "required": false; }; "buttonAttributes": { "alias": "buttonAttributes"; "required": false; }; "iconAttributes": { "alias": "iconAttributes"; "required": false; }; "copyIconColors": { "alias": "copyIconColors"; "required": false; }; "customIcon": { "alias": "customIcon"; "required": false; }; "renderContainer": { "alias": "renderContainer"; "required": false; }; "renderLabel": { "alias": "renderLabel"; "required": false; }; "renderInput": { "alias": "renderInput"; "required": false; }; "renderCopyButton": { "alias": "renderCopyButton"; "required": false; }; "renderIcon": { "alias": "renderIcon"; "required": false; }; "renderInputGroup": { "alias": "renderInputGroup"; "required": false; }; "renderContent": { "alias": "renderContent"; "required": false; }; }, {}, never, never, true, never>;
23
100
  }
@@ -1,6 +1,24 @@
1
+ import { TemplateRef } from '@angular/core';
1
2
  import * as i0 from "@angular/core";
3
+ export interface MeetingPasscodeRenderContext {
4
+ meetingPasscode: string;
5
+ }
2
6
  export interface MeetingPasscodeComponentOptions {
3
7
  meetingPasscode: string;
8
+ labelText?: string;
9
+ containerAttributes?: {
10
+ [key: string]: any;
11
+ };
12
+ labelAttributes?: {
13
+ [key: string]: any;
14
+ };
15
+ inputAttributes?: {
16
+ [key: string]: any;
17
+ };
18
+ renderContainer?: TemplateRef<MeetingPasscodeRenderContext>;
19
+ renderLabel?: TemplateRef<MeetingPasscodeRenderContext>;
20
+ renderInput?: TemplateRef<MeetingPasscodeRenderContext>;
21
+ renderContent?: TemplateRef<MeetingPasscodeRenderContext>;
4
22
  }
5
23
  export type MeetingPasscodeComponentType = (options: MeetingPasscodeComponentOptions) => HTMLElement;
6
24
  /**
@@ -18,6 +36,24 @@ export type MeetingPasscodeComponentType = (options: MeetingPasscodeComponentOpt
18
36
  */
19
37
  export declare class MeetingPasscodeComponent {
20
38
  meetingPasscode: string;
39
+ labelText?: string;
40
+ containerAttributes?: {
41
+ [key: string]: any;
42
+ };
43
+ labelAttributes?: {
44
+ [key: string]: any;
45
+ };
46
+ inputAttributes?: {
47
+ [key: string]: any;
48
+ };
49
+ renderContainer?: TemplateRef<MeetingPasscodeRenderContext>;
50
+ renderLabel?: TemplateRef<MeetingPasscodeRenderContext>;
51
+ renderInput?: TemplateRef<MeetingPasscodeRenderContext>;
52
+ renderContent?: TemplateRef<MeetingPasscodeRenderContext>;
53
+ get renderContext(): MeetingPasscodeRenderContext;
54
+ getLabelText(): string;
55
+ getInputValue(): string;
56
+ getInputReadOnly(): boolean;
21
57
  static ɵfac: i0.ɵɵFactoryDeclaration<MeetingPasscodeComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<MeetingPasscodeComponent, "app-meeting-passcode-component", never, { "meetingPasscode": { "alias": "meetingPasscode"; "required": false; }; }, {}, never, never, true, never>;
58
+ static ɵcmp: i0.ɵɵComponentDeclaration<MeetingPasscodeComponent, "app-meeting-passcode-component", never, { "meetingPasscode": { "alias": "meetingPasscode"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "containerAttributes": { "alias": "containerAttributes"; "required": false; }; "labelAttributes": { "alias": "labelAttributes"; "required": false; }; "inputAttributes": { "alias": "inputAttributes"; "required": false; }; "renderContainer": { "alias": "renderContainer"; "required": false; }; "renderLabel": { "alias": "renderLabel"; "required": false; }; "renderInput": { "alias": "renderInput"; "required": false; }; "renderContent": { "alias": "renderContent"; "required": false; }; }, {}, never, never, true, never>;
23
59
  }