bigbluebutton-html-plugin-sdk 0.0.59 → 0.0.60

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.
@@ -1,3 +1,4 @@
1
+ import * as ReactDOM from 'react-dom/client';
1
2
  import { FloatingWindowType } from './enums';
2
3
  import { FloatingWindowInterface, FloatingWindowProps } from './types';
3
4
  export declare class FloatingWindow implements FloatingWindowInterface {
@@ -8,19 +9,20 @@ export declare class FloatingWindow implements FloatingWindowInterface {
8
9
  movable: boolean;
9
10
  backgroundColor: string;
10
11
  boxShadow: string;
11
- contentFunction: (element: HTMLElement) => void;
12
+ contentFunction: (element: HTMLElement) => ReactDOM.Root;
12
13
  /**
13
14
  * Returns object to be used in the setter for the Floating Window
14
15
  *
15
16
  * @param top - position in which the the top left corner of the floating window is relative
16
- * to the top of the rendered window.
17
+ * to the top of the rendered window. It must return the root element where the floating window
18
+ * was rendered.
17
19
  * @param left - position in which the the top left corner of the floating window is relative
18
20
  * to the left of the rendered window.
19
21
  * @param movable - tells whether the floating window is movable or static.
20
22
  * @param backgroundColor - background color of the floating window.
21
23
  * @param boxShadow - box shadow to apply to the floating window
22
24
  * @param contentFunction - function that gives the html element to render the content of
23
- * the floating window
25
+ * the floating window. It must return the root element where the floating window was rendered.
24
26
  *
25
27
  * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
26
28
  */
@@ -8,14 +8,15 @@ var FloatingWindow = /** @class */ (function () {
8
8
  * Returns object to be used in the setter for the Floating Window
9
9
  *
10
10
  * @param top - position in which the the top left corner of the floating window is relative
11
- * to the top of the rendered window.
11
+ * to the top of the rendered window. It must return the root element where the floating window
12
+ * was rendered.
12
13
  * @param left - position in which the the top left corner of the floating window is relative
13
14
  * to the left of the rendered window.
14
15
  * @param movable - tells whether the floating window is movable or static.
15
16
  * @param backgroundColor - background color of the floating window.
16
17
  * @param boxShadow - box shadow to apply to the floating window
17
18
  * @param contentFunction - function that gives the html element to render the content of
18
- * the floating window
19
+ * the floating window. It must return the root element where the floating window was rendered.
19
20
  *
20
21
  * @returns Object that will be interpreted by the core of Bigbluebutton (HTML5).
21
22
  */
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/floating-window/component.ts"],"names":[],"mappings":";;;AAAA,iCAA6C;AAG7C,iCAAiC;AAEjC;IAiBE;;;;;;;;;;;;;;OAcG;IACH,wBAAY,EAOU;YANpB,GAAG,SAAA,EACH,IAAI,UAAA,EACJ,OAAO,aAAA,EACP,eAAe,qBAAA,EACf,SAAS,eAAA,EACT,eAAe,qBAAA;QANjB,iBAgBC;QA/CD,OAAE,GAAW,EAAE,CAAC;QAiDhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,yBAAkB,EAAE,CAAE,CAAC;QACnC,CAAC,CAAC;QAZA,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAE3B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,0BAAkB,CAAC,SAAS,CAAC;IAC3C,CAAC;IAKH,qBAAC;AAAD,CAAC,AArDD,IAqDC;AArDY,wCAAc"}
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/floating-window/component.ts"],"names":[],"mappings":";;;AACA,iCAA6C;AAG7C,iCAAiC;AAEjC;IAiBE;;;;;;;;;;;;;;;OAeG;IACH,wBAAY,EAOU;YANpB,GAAG,SAAA,EACH,IAAI,UAAA,EACJ,OAAO,aAAA,EACP,eAAe,qBAAA,EACf,SAAS,eAAA,EACT,eAAe,qBAAA;QANjB,iBAgBC;QAhDD,OAAE,GAAW,EAAE,CAAC;QAkDhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,yBAAkB,EAAE,CAAE,CAAC;QACnC,CAAC,CAAC;QAZA,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAE3B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,0BAAkB,CAAC,SAAS,CAAC;IAC3C,CAAC;IAKH,qBAAC;AAAD,CAAC,AAtDD,IAsDC;AAtDY,wCAAc"}
@@ -1,3 +1,4 @@
1
+ import * as ReactDOM from 'react-dom/client';
1
2
  import { PluginProvidedUiItemDescriptor } from '../base';
2
3
  export interface FloatingWindowInterface extends PluginProvidedUiItemDescriptor {
3
4
  }
@@ -7,6 +8,6 @@ export interface FloatingWindowProps {
7
8
  movable: boolean;
8
9
  backgroundColor: string;
9
10
  boxShadow: string;
10
- contentFunction: (element: HTMLElement) => void;
11
+ contentFunction: (element: HTMLElement) => ReactDOM.Root;
11
12
  }
12
13
  export type SetFloatingWindows = (FloatingWindows: FloatingWindowInterface[]) => void;
@@ -1,9 +1,10 @@
1
+ import * as ReactDOM from 'react-dom/client';
1
2
  import { GenericContentType } from './enums';
2
3
  import { GenericContentInterface, GenericContentMainAreaProps, GenericContentSidekickAreaProps } from './types';
3
4
  export declare class GenericContentMainArea implements GenericContentInterface {
4
5
  id: string;
5
6
  type: GenericContentType;
6
- contentFunction: (element: HTMLElement) => void;
7
+ contentFunction: (element: HTMLElement) => ReactDOM.Root;
7
8
  /**
8
9
  * Returns an object that when used in the setter as a generic content will be rendered
9
10
  * over the meeting main presentation.
@@ -23,7 +24,7 @@ export declare class GenericContentSidekickArea implements GenericContentInterfa
23
24
  section: string;
24
25
  buttonIcon: string;
25
26
  open: boolean;
26
- contentFunction: (element: HTMLElement) => void;
27
+ contentFunction: (element: HTMLElement) => ReactDOM.Root;
27
28
  /**
28
29
  * Returns an object that when used in the setter as a generic content will be rendered
29
30
  * in the sidekick panel. Every generic sidekick content has an intrinsic button associated,
@@ -31,7 +32,7 @@ export declare class GenericContentSidekickArea implements GenericContentInterfa
31
32
  * given generic sidekick content.
32
33
  *
33
34
  * @param contentFunction - function that gives the html element to render the content of
34
- * the generic component
35
+ * the generic content. It must return the root element where the generic content was rendered.
35
36
  * @param name - the label of the associated sidebar navigation button
36
37
  * @param section - section name under which the associated sidebar navigation button will be
37
38
  * displayed
@@ -34,7 +34,7 @@ var GenericContentSidekickArea = /** @class */ (function () {
34
34
  * given generic sidekick content.
35
35
  *
36
36
  * @param contentFunction - function that gives the html element to render the content of
37
- * the generic component
37
+ * the generic content. It must return the root element where the generic content was rendered.
38
38
  * @param name - the label of the associated sidebar navigation button
39
39
  * @param section - section name under which the associated sidebar navigation button will be
40
40
  * displayed
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/generic-content-item/component.ts"],"names":[],"mappings":";;;AAAA,iCAA6C;AAG7C,iCAAiC;AAEjC;IAOE;;;;;;;;OAQG;IACH,gCAAY,EAEkB;YAD5B,eAAe,qBAAA;QADjB,iBAKC;QApBD,OAAE,GAAW,EAAE,CAAC;QAsBhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACf,CAAC,CAAC;QANA,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,0BAAkB,CAAC,SAAS,CAAC;IAC3C,CAAC;IAKH,6BAAC;AAAD,CAAC,AA1BD,IA0BC;AA1BY,wDAAsB;AA4BnC;IAeE;;;;;;;;;;;;;;;OAeG;IACH,oCAAY,EAEsB;YADhC,eAAe,qBAAA,EAAE,IAAI,UAAA,EAAE,OAAO,aAAA,EAAE,UAAU,gBAAA,EAAE,IAAI,UAAA;QADlD,iBASC;QAvCD,OAAE,GAAW,EAAE,CAAC;QAIhB,SAAI,GAAW,EAAE,CAAC;QAElB,YAAO,GAAW,EAAE,CAAC;QAErB,eAAU,GAAW,EAAE,CAAC;QAExB,SAAI,GAAY,KAAK,CAAC;QA+BtB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACf,CAAC,CAAC;QAVA,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,0BAAkB,CAAC,aAAa,CAAC;QAC7C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAKH,iCAAC;AAAD,CAAC,AA7CD,IA6CC;AA7CY,gEAA0B"}
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../src/extensible-areas/generic-content-item/component.ts"],"names":[],"mappings":";;;AACA,iCAA6C;AAG7C,iCAAiC;AAEjC;IAOE;;;;;;;;OAQG;IACH,gCAAY,EAEkB;YAD5B,eAAe,qBAAA;QADjB,iBAKC;QApBD,OAAE,GAAW,EAAE,CAAC;QAsBhB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACf,CAAC,CAAC;QANA,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,0BAAkB,CAAC,SAAS,CAAC;IAC3C,CAAC;IAKH,6BAAC;AAAD,CAAC,AA1BD,IA0BC;AA1BY,wDAAsB;AA4BnC;IAeE;;;;;;;;;;;;;;;OAeG;IACH,oCAAY,EAEsB;YADhC,eAAe,qBAAA,EAAE,IAAI,UAAA,EAAE,OAAO,aAAA,EAAE,UAAU,gBAAA,EAAE,IAAI,UAAA;QADlD,iBASC;QAvCD,OAAE,GAAW,EAAE,CAAC;QAIhB,SAAI,GAAW,EAAE,CAAC;QAElB,YAAO,GAAW,EAAE,CAAC;QAErB,eAAU,GAAW,EAAE,CAAC;QAExB,SAAI,GAAY,KAAK,CAAC;QA+BtB,cAAS,GAAyB,UAAC,EAAU;YAC3C,KAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACf,CAAC,CAAC;QAVA,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,0BAAkB,CAAC,aAAa,CAAC;QAC7C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAKH,iCAAC;AAAD,CAAC,AA7CD,IA6CC;AA7CY,gEAA0B"}
@@ -1,11 +1,12 @@
1
+ import * as ReactDOM from 'react-dom/client';
1
2
  import { PluginProvidedUiItemDescriptor } from '../base';
2
3
  export interface GenericContentInterface extends PluginProvidedUiItemDescriptor {
3
4
  }
4
5
  export interface GenericContentMainAreaProps {
5
- contentFunction: (element: HTMLElement) => void;
6
+ contentFunction: (element: HTMLElement) => ReactDOM.Root;
6
7
  }
7
8
  export interface GenericContentSidekickAreaProps {
8
- contentFunction: (element: HTMLElement) => void;
9
+ contentFunction: (element: HTMLElement) => ReactDOM.Root;
9
10
  name: string;
10
11
  section: string;
11
12
  buttonIcon: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigbluebutton-html-plugin-sdk",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "homepage": "https://github.com/bigbluebutton/bigbluebutton-html-plugin-sdk",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",