bigbluebutton-html-plugin-sdk 0.0.22 → 0.0.24
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.
- package/README.md +20 -7
- package/dist/cjs/core/api/BbbPluginSdk.d.ts +36 -0
- package/dist/cjs/core/api/BbbPluginSdk.js +90 -0
- package/dist/cjs/core/api/BbbPluginSdk.js.map +1 -0
- package/dist/cjs/core/api/types.d.ts +106 -0
- package/dist/cjs/core/api/types.js.map +1 -0
- package/dist/cjs/core/auxiliar/join-url/getter.d.ts +1 -0
- package/dist/cjs/core/auxiliar/join-url/getter.js +70 -0
- package/dist/cjs/core/auxiliar/join-url/getter.js.map +1 -0
- package/dist/cjs/core/auxiliar/join-url/types.d.ts +1 -0
- package/dist/cjs/{data-consumption/types/presentation.js → core/auxiliar/join-url/types.js} +1 -1
- package/dist/cjs/core/auxiliar/join-url/types.js.map +1 -0
- package/dist/cjs/core/auxiliar/session-token/getter.d.ts +1 -0
- package/dist/cjs/core/auxiliar/session-token/getter.js +9 -0
- package/dist/cjs/core/auxiliar/session-token/getter.js.map +1 -0
- package/dist/cjs/core/auxiliar/session-token/types.d.ts +1 -0
- package/dist/cjs/core/auxiliar/session-token/types.js +3 -0
- package/dist/cjs/core/auxiliar/session-token/types.js.map +1 -0
- package/dist/cjs/core/enum.d.ts +12 -0
- package/dist/cjs/core/enum.js +18 -0
- package/dist/cjs/core/enum.js.map +1 -0
- package/dist/cjs/core/index.d.ts +3 -1
- package/dist/cjs/core/index.js +3 -15
- package/dist/cjs/core/index.js.map +1 -1
- package/dist/cjs/core/types.d.ts +33 -0
- package/dist/cjs/core/types.js +3 -0
- package/dist/cjs/core/types.js.map +1 -0
- package/dist/cjs/data-channel/enums.d.ts +10 -0
- package/dist/cjs/data-channel/enums.js +16 -0
- package/dist/cjs/data-channel/enums.js.map +1 -0
- package/dist/cjs/data-channel/hooks.d.ts +3 -0
- package/dist/cjs/data-channel/{useDatachannel.js → hooks.js} +13 -13
- package/dist/cjs/data-channel/hooks.js.map +1 -0
- package/dist/cjs/data-channel/index.d.ts +2 -2
- package/dist/cjs/data-channel/index.js +3 -16
- package/dist/cjs/data-channel/index.js.map +1 -1
- package/dist/cjs/data-channel/types.d.ts +15 -5
- package/dist/cjs/data-consumption/domain/presentations/current-presentation/hooks.d.ts +2 -0
- package/dist/cjs/data-consumption/domain/presentations/current-presentation/hooks.js +8 -0
- package/dist/cjs/data-consumption/domain/presentations/current-presentation/hooks.js.map +1 -0
- package/dist/cjs/data-consumption/{types/presentation.d.ts → domain/presentations/current-presentation/types.d.ts} +3 -1
- package/dist/cjs/data-consumption/domain/presentations/current-presentation/types.js +3 -0
- package/dist/cjs/data-consumption/domain/presentations/current-presentation/types.js.map +1 -0
- package/dist/cjs/data-consumption/domain/presentations/index.d.ts +1 -0
- package/dist/cjs/data-consumption/domain/presentations/index.js +3 -0
- package/dist/cjs/data-consumption/domain/presentations/index.js.map +1 -0
- package/dist/cjs/data-consumption/domain/shared/custom-subscription/hooks.d.ts +2 -0
- package/dist/cjs/data-consumption/domain/shared/custom-subscription/hooks.js +11 -0
- package/dist/cjs/data-consumption/domain/shared/custom-subscription/hooks.js.map +1 -0
- package/dist/cjs/data-consumption/domain/shared/custom-subscription/types.d.ts +9 -0
- package/dist/cjs/data-consumption/domain/shared/custom-subscription/types.js +3 -0
- package/dist/cjs/data-consumption/domain/shared/custom-subscription/types.js.map +1 -0
- package/dist/cjs/data-consumption/domain/shared/index.d.ts +1 -0
- package/dist/cjs/data-consumption/domain/shared/index.js +3 -0
- package/dist/cjs/data-consumption/domain/shared/index.js.map +1 -0
- package/dist/cjs/data-consumption/domain/users/current-user/hooks.d.ts +2 -0
- package/dist/cjs/data-consumption/domain/users/current-user/hooks.js +8 -0
- package/dist/cjs/data-consumption/domain/users/current-user/hooks.js.map +1 -0
- package/dist/cjs/data-consumption/domain/users/current-user/types.d.ts +8 -0
- package/dist/cjs/data-consumption/domain/users/current-user/types.js +3 -0
- package/dist/cjs/data-consumption/domain/users/current-user/types.js.map +1 -0
- package/dist/cjs/data-consumption/domain/users/index.d.ts +3 -0
- package/dist/cjs/data-consumption/domain/users/index.js +3 -0
- package/dist/cjs/data-consumption/domain/users/index.js.map +1 -0
- package/dist/cjs/data-consumption/domain/users/loaded-user-list/hooks.d.ts +2 -0
- package/dist/cjs/data-consumption/domain/users/loaded-user-list/hooks.js +8 -0
- package/dist/cjs/data-consumption/domain/users/loaded-user-list/hooks.js.map +1 -0
- package/dist/cjs/data-consumption/domain/users/loaded-user-list/types.d.ts +7 -0
- package/dist/cjs/data-consumption/domain/users/loaded-user-list/types.js +3 -0
- package/dist/cjs/data-consumption/domain/users/loaded-user-list/types.js.map +1 -0
- package/dist/cjs/data-consumption/domain/users/users-basic-info/hooks.d.ts +2 -0
- package/dist/cjs/data-consumption/domain/users/users-basic-info/hooks.js +8 -0
- package/dist/cjs/data-consumption/domain/users/users-basic-info/hooks.js.map +1 -0
- package/dist/cjs/data-consumption/domain/users/users-basic-info/queries.d.ts +1 -0
- package/dist/cjs/data-consumption/domain/users/users-basic-info/queries.js +5 -0
- package/dist/cjs/data-consumption/domain/users/users-basic-info/queries.js.map +1 -0
- package/dist/cjs/data-consumption/domain/users/users-basic-info/types.d.ts +10 -0
- package/dist/cjs/data-consumption/domain/users/users-basic-info/types.js +3 -0
- package/dist/cjs/data-consumption/domain/users/users-basic-info/types.js.map +1 -0
- package/dist/cjs/data-consumption/factory/hookCreator.d.ts +4 -0
- package/dist/cjs/data-consumption/factory/hookCreator.js +84 -0
- package/dist/cjs/data-consumption/factory/hookCreator.js.map +1 -0
- package/dist/cjs/data-consumption/index.d.ts +3 -0
- package/dist/cjs/data-consumption/{hooks/index.js → index.js} +3 -3
- package/dist/cjs/data-consumption/index.js.map +1 -0
- package/dist/cjs/data-consumption/utils.d.ts +6 -0
- package/dist/cjs/data-consumption/utils.js +25 -0
- package/dist/cjs/data-consumption/utils.js.map +1 -0
- package/dist/cjs/extensible-areas/action-button-dropdown-item/component.d.ts +30 -0
- package/dist/cjs/extensible-areas/action-button-dropdown-item/component.js +47 -0
- package/dist/cjs/extensible-areas/action-button-dropdown-item/component.js.map +1 -0
- package/dist/cjs/extensible-areas/action-button-dropdown-item/enums.d.ts +4 -0
- package/dist/cjs/extensible-areas/action-button-dropdown-item/enums.js +10 -0
- package/dist/cjs/extensible-areas/action-button-dropdown-item/enums.js.map +1 -0
- package/dist/cjs/extensible-areas/action-button-dropdown-item/index.d.ts +2 -0
- package/dist/cjs/extensible-areas/action-button-dropdown-item/index.js +7 -0
- package/dist/cjs/extensible-areas/action-button-dropdown-item/index.js.map +1 -0
- package/dist/cjs/extensible-areas/action-button-dropdown-item/types.d.ts +13 -0
- package/dist/cjs/extensible-areas/action-button-dropdown-item/types.js +3 -0
- package/dist/cjs/extensible-areas/action-button-dropdown-item/types.js.map +1 -0
- package/dist/cjs/extensible-areas/actions-bar-item/component.d.ts +38 -0
- package/dist/cjs/extensible-areas/actions-bar-item/component.js +56 -0
- package/dist/cjs/extensible-areas/actions-bar-item/component.js.map +1 -0
- package/dist/cjs/extensible-areas/actions-bar-item/enums.d.ts +11 -0
- package/dist/cjs/extensible-areas/actions-bar-item/enums.js +18 -0
- package/dist/cjs/extensible-areas/actions-bar-item/enums.js.map +1 -0
- package/dist/cjs/extensible-areas/actions-bar-item/index.d.ts +3 -0
- package/dist/cjs/extensible-areas/actions-bar-item/index.js +9 -0
- package/dist/cjs/extensible-areas/actions-bar-item/index.js.map +1 -0
- package/dist/cjs/extensible-areas/actions-bar-item/types.d.ts +17 -0
- package/dist/cjs/extensible-areas/actions-bar-item/types.js +3 -0
- package/dist/cjs/extensible-areas/actions-bar-item/types.js.map +1 -0
- package/dist/cjs/extensible-areas/audio-settings-dropdown-item/component.d.ts +36 -0
- package/dist/cjs/extensible-areas/audio-settings-dropdown-item/component.js +53 -0
- package/dist/cjs/extensible-areas/audio-settings-dropdown-item/component.js.map +1 -0
- package/dist/cjs/extensible-areas/audio-settings-dropdown-item/enums.d.ts +4 -0
- package/dist/cjs/extensible-areas/audio-settings-dropdown-item/enums.js +10 -0
- package/dist/cjs/extensible-areas/audio-settings-dropdown-item/enums.js.map +1 -0
- package/dist/cjs/extensible-areas/audio-settings-dropdown-item/index.d.ts +2 -0
- package/dist/cjs/extensible-areas/audio-settings-dropdown-item/index.js +7 -0
- package/dist/cjs/extensible-areas/audio-settings-dropdown-item/index.js.map +1 -0
- package/dist/cjs/extensible-areas/audio-settings-dropdown-item/types.d.ts +15 -0
- package/dist/cjs/extensible-areas/audio-settings-dropdown-item/types.js +3 -0
- package/dist/cjs/extensible-areas/audio-settings-dropdown-item/types.js.map +1 -0
- package/dist/cjs/extensible-areas/base.d.ts +19 -0
- package/dist/cjs/{data-consumption/types/user.js → extensible-areas/base.js} +1 -1
- package/dist/cjs/extensible-areas/base.js.map +1 -0
- package/dist/cjs/extensible-areas/camera-settings-dropdown-item/component.d.ts +36 -0
- package/dist/cjs/extensible-areas/camera-settings-dropdown-item/component.js +53 -0
- package/dist/cjs/extensible-areas/camera-settings-dropdown-item/component.js.map +1 -0
- package/dist/cjs/extensible-areas/camera-settings-dropdown-item/enums.d.ts +4 -0
- package/dist/cjs/extensible-areas/camera-settings-dropdown-item/enums.js +10 -0
- package/dist/cjs/extensible-areas/camera-settings-dropdown-item/enums.js.map +1 -0
- package/dist/cjs/extensible-areas/camera-settings-dropdown-item/index.d.ts +2 -0
- package/dist/cjs/extensible-areas/camera-settings-dropdown-item/index.js +7 -0
- package/dist/cjs/extensible-areas/camera-settings-dropdown-item/index.js.map +1 -0
- package/dist/cjs/extensible-areas/camera-settings-dropdown-item/types.d.ts +15 -0
- package/dist/cjs/extensible-areas/camera-settings-dropdown-item/types.js +3 -0
- package/dist/cjs/extensible-areas/camera-settings-dropdown-item/types.js.map +1 -0
- package/dist/cjs/extensible-areas/index.d.ts +11 -0
- package/dist/cjs/{types → extensible-areas}/index.js +11 -3
- package/dist/cjs/extensible-areas/index.js.map +1 -0
- package/dist/cjs/extensible-areas/nav-bar-item/component.d.ts +52 -0
- package/dist/cjs/extensible-areas/nav-bar-item/component.js +70 -0
- package/dist/cjs/extensible-areas/nav-bar-item/component.js.map +1 -0
- package/dist/cjs/extensible-areas/nav-bar-item/enums.d.ts +12 -0
- package/dist/cjs/extensible-areas/nav-bar-item/enums.js +19 -0
- package/dist/cjs/extensible-areas/nav-bar-item/enums.js.map +1 -0
- package/dist/cjs/extensible-areas/nav-bar-item/index.d.ts +3 -0
- package/dist/cjs/extensible-areas/nav-bar-item/index.js +9 -0
- package/dist/cjs/extensible-areas/nav-bar-item/index.js.map +1 -0
- package/dist/cjs/extensible-areas/nav-bar-item/types.d.ts +20 -0
- package/dist/cjs/extensible-areas/nav-bar-item/types.js +3 -0
- package/dist/cjs/extensible-areas/nav-bar-item/types.js.map +1 -0
- package/dist/cjs/extensible-areas/options-dropdown-item/component.d.ts +33 -0
- package/dist/cjs/extensible-areas/options-dropdown-item/component.js +50 -0
- package/dist/cjs/extensible-areas/options-dropdown-item/component.js.map +1 -0
- package/dist/cjs/extensible-areas/options-dropdown-item/enums.d.ts +4 -0
- package/dist/cjs/extensible-areas/options-dropdown-item/enums.js +10 -0
- package/dist/cjs/extensible-areas/options-dropdown-item/enums.js.map +1 -0
- package/dist/cjs/extensible-areas/options-dropdown-item/index.d.ts +2 -0
- package/dist/cjs/extensible-areas/options-dropdown-item/index.js +7 -0
- package/dist/cjs/extensible-areas/options-dropdown-item/index.js.map +1 -0
- package/dist/cjs/extensible-areas/options-dropdown-item/types.d.ts +15 -0
- package/dist/cjs/extensible-areas/options-dropdown-item/types.js +3 -0
- package/dist/cjs/extensible-areas/options-dropdown-item/types.js.map +1 -0
- package/dist/cjs/extensible-areas/presentation-dropdown-item/component.d.ts +34 -0
- package/dist/cjs/extensible-areas/presentation-dropdown-item/component.js +51 -0
- package/dist/cjs/extensible-areas/presentation-dropdown-item/component.js.map +1 -0
- package/dist/cjs/extensible-areas/presentation-dropdown-item/enums.d.ts +4 -0
- package/dist/cjs/extensible-areas/presentation-dropdown-item/enums.js +10 -0
- package/dist/cjs/extensible-areas/presentation-dropdown-item/enums.js.map +1 -0
- package/dist/cjs/extensible-areas/presentation-dropdown-item/index.d.ts +2 -0
- package/dist/cjs/extensible-areas/presentation-dropdown-item/index.js +7 -0
- package/dist/cjs/extensible-areas/presentation-dropdown-item/index.js.map +1 -0
- package/dist/cjs/extensible-areas/presentation-dropdown-item/types.d.ts +15 -0
- package/dist/cjs/extensible-areas/presentation-dropdown-item/types.js +3 -0
- package/dist/cjs/extensible-areas/presentation-dropdown-item/types.js.map +1 -0
- package/dist/cjs/extensible-areas/presentation-toolbar-item/component.d.ts +45 -0
- package/dist/cjs/extensible-areas/presentation-toolbar-item/component.js +68 -0
- package/dist/cjs/extensible-areas/presentation-toolbar-item/component.js.map +1 -0
- package/dist/cjs/extensible-areas/presentation-toolbar-item/enums.d.ts +5 -0
- package/dist/cjs/extensible-areas/presentation-toolbar-item/enums.js +11 -0
- package/dist/cjs/extensible-areas/presentation-toolbar-item/enums.js.map +1 -0
- package/dist/cjs/extensible-areas/presentation-toolbar-item/index.d.ts +2 -0
- package/dist/cjs/extensible-areas/presentation-toolbar-item/index.js +8 -0
- package/dist/cjs/extensible-areas/presentation-toolbar-item/index.js.map +1 -0
- package/dist/cjs/extensible-areas/presentation-toolbar-item/types.d.ts +11 -0
- package/dist/cjs/extensible-areas/presentation-toolbar-item/types.js +3 -0
- package/dist/cjs/extensible-areas/presentation-toolbar-item/types.js.map +1 -0
- package/dist/cjs/extensible-areas/user-camera-dropdown-item/component.d.ts +33 -0
- package/dist/cjs/extensible-areas/user-camera-dropdown-item/component.js +50 -0
- package/dist/cjs/extensible-areas/user-camera-dropdown-item/component.js.map +1 -0
- package/dist/cjs/extensible-areas/user-camera-dropdown-item/enums.d.ts +4 -0
- package/dist/cjs/extensible-areas/user-camera-dropdown-item/enums.js +10 -0
- package/dist/cjs/extensible-areas/user-camera-dropdown-item/enums.js.map +1 -0
- package/dist/cjs/extensible-areas/user-camera-dropdown-item/index.d.ts +2 -0
- package/dist/cjs/extensible-areas/user-camera-dropdown-item/index.js +7 -0
- package/dist/cjs/extensible-areas/user-camera-dropdown-item/index.js.map +1 -0
- package/dist/cjs/extensible-areas/user-camera-dropdown-item/types.d.ts +14 -0
- package/dist/cjs/extensible-areas/user-camera-dropdown-item/types.js +3 -0
- package/dist/cjs/extensible-areas/user-camera-dropdown-item/types.js.map +1 -0
- package/dist/cjs/extensible-areas/user-list-dropdown-item/component.d.ts +72 -0
- package/dist/cjs/extensible-areas/user-list-dropdown-item/component.js +97 -0
- package/dist/cjs/extensible-areas/user-list-dropdown-item/component.js.map +1 -0
- package/dist/cjs/extensible-areas/user-list-dropdown-item/enums.d.ts +5 -0
- package/dist/cjs/extensible-areas/user-list-dropdown-item/enums.js +11 -0
- package/dist/cjs/extensible-areas/user-list-dropdown-item/enums.js.map +1 -0
- package/dist/cjs/extensible-areas/user-list-dropdown-item/index.d.ts +2 -0
- package/dist/cjs/extensible-areas/user-list-dropdown-item/index.js +8 -0
- package/dist/cjs/extensible-areas/user-list-dropdown-item/index.js.map +1 -0
- package/dist/cjs/extensible-areas/user-list-dropdown-item/types.d.ts +30 -0
- package/dist/cjs/extensible-areas/user-list-dropdown-item/types.js +3 -0
- package/dist/cjs/extensible-areas/user-list-dropdown-item/types.js.map +1 -0
- package/dist/cjs/extensible-areas/user-list-item-additional-information/component.d.ts +42 -0
- package/dist/cjs/extensible-areas/user-list-item-additional-information/component.js +60 -0
- package/dist/cjs/extensible-areas/user-list-item-additional-information/component.js.map +1 -0
- package/dist/cjs/extensible-areas/user-list-item-additional-information/enums.d.ts +4 -0
- package/dist/cjs/extensible-areas/user-list-item-additional-information/enums.js +10 -0
- package/dist/cjs/extensible-areas/user-list-item-additional-information/enums.js.map +1 -0
- package/dist/cjs/extensible-areas/user-list-item-additional-information/index.d.ts +2 -0
- package/dist/cjs/extensible-areas/user-list-item-additional-information/index.js +7 -0
- package/dist/cjs/extensible-areas/user-list-item-additional-information/index.js.map +1 -0
- package/dist/cjs/extensible-areas/user-list-item-additional-information/types.d.ts +21 -0
- package/dist/cjs/extensible-areas/user-list-item-additional-information/types.js +3 -0
- package/dist/cjs/extensible-areas/user-list-item-additional-information/types.js.map +1 -0
- package/dist/cjs/index.d.ts +2 -3
- package/dist/cjs/index.js +2 -3
- package/dist/cjs/index.js.map +1 -1
- package/package.json +6 -3
- package/dist/cjs/core/getPluginApi.d.ts +0 -4
- package/dist/cjs/core/getPluginApi.js +0 -40
- package/dist/cjs/core/getPluginApi.js.map +0 -1
- package/dist/cjs/data-channel/useDatachannel.d.ts +0 -4
- package/dist/cjs/data-channel/useDatachannel.js.map +0 -1
- package/dist/cjs/data-consumption/hooks/index.d.ts +0 -3
- package/dist/cjs/data-consumption/hooks/index.js.map +0 -1
- package/dist/cjs/data-consumption/hooks/presentation.d.ts +0 -3
- package/dist/cjs/data-consumption/hooks/presentation.js +0 -28
- package/dist/cjs/data-consumption/hooks/presentation.js.map +0 -1
- package/dist/cjs/data-consumption/hooks/useUsersOverview/index.d.ts +0 -2
- package/dist/cjs/data-consumption/hooks/useUsersOverview/index.js +0 -19
- package/dist/cjs/data-consumption/hooks/useUsersOverview/index.js.map +0 -1
- package/dist/cjs/data-consumption/hooks/useUsersOverview/types.d.ts +0 -5
- package/dist/cjs/data-consumption/hooks/useUsersOverview/types.js.map +0 -1
- package/dist/cjs/data-consumption/hooks/useUsersOverview/useUsersOverview.d.ts +0 -2
- package/dist/cjs/data-consumption/hooks/useUsersOverview/useUsersOverview.js +0 -28
- package/dist/cjs/data-consumption/hooks/useUsersOverview/useUsersOverview.js.map +0 -1
- package/dist/cjs/data-consumption/hooks/user.d.ts +0 -4
- package/dist/cjs/data-consumption/hooks/user.js +0 -50
- package/dist/cjs/data-consumption/hooks/user.js.map +0 -1
- package/dist/cjs/data-consumption/types/presentation.js.map +0 -1
- package/dist/cjs/data-consumption/types/user.d.ts +0 -62
- package/dist/cjs/data-consumption/types/user.js.map +0 -1
- package/dist/cjs/enums.d.ts +0 -80
- package/dist/cjs/enums.js +0 -112
- package/dist/cjs/enums.js.map +0 -1
- package/dist/cjs/types/common.d.ts +0 -392
- package/dist/cjs/types/common.js +0 -372
- package/dist/cjs/types/common.js.map +0 -1
- package/dist/cjs/types/index.d.ts +0 -3
- package/dist/cjs/types/index.js.map +0 -1
- /package/dist/cjs/{data-consumption/hooks/useUsersOverview → core/api}/types.js +0 -0
package/README.md
CHANGED
|
@@ -6,21 +6,34 @@ SDK for developing BigBlueButton plugins, examples of implementations can be fou
|
|
|
6
6
|
|
|
7
7
|
## API
|
|
8
8
|
### Extensible UI areas
|
|
9
|
-
- Presentation toolbar items (button, separator, spinner)
|
|
10
|
-
|
|
11
|
-
- User list dropdown items (option, separator)
|
|
12
|
-
|
|
13
9
|
- Action bar items (button, separator)
|
|
14
10
|
|
|
15
11
|
- Action Button Dropdown Items (option, separator)
|
|
16
12
|
|
|
17
13
|
- Audio settings dropdown items (option, separator)
|
|
18
14
|
|
|
15
|
+
- Camera settings dropdown items (option, separator)
|
|
16
|
+
|
|
17
|
+
- Nav bar items (button, info)
|
|
18
|
+
|
|
19
19
|
- Presentation dropdown items (option, separator)
|
|
20
20
|
|
|
21
|
-
-
|
|
21
|
+
- Presentation toolbar items (button, separator, spinner)
|
|
22
|
+
|
|
23
|
+
- User camera settings dropdown items (option, separator)
|
|
24
|
+
|
|
25
|
+
- User list dropdown items (option, separator)
|
|
26
|
+
|
|
27
|
+
- User list item additional information (item, label)
|
|
22
28
|
|
|
23
29
|
### Realtime data consumption
|
|
24
|
-
- `useCurrentPresentation` hook: provides information regarding the current presentation
|
|
30
|
+
- `useCurrentPresentation` hook: provides information regarding the current presentation;
|
|
31
|
+
|
|
32
|
+
- `useLoadedUserList` hook: provides information regarding the loaded user list (displayed in the screen);
|
|
33
|
+
|
|
34
|
+
- `useCurrentUser` hook: provides information regarding the current user;
|
|
35
|
+
|
|
36
|
+
- `useUsersBasicInfo` hook: provides information regarding all users (only crucial information: userId, name and role);
|
|
25
37
|
|
|
26
|
-
|
|
38
|
+
### Real time data exchange
|
|
39
|
+
- `useDataChannel` hook: this will allow you to exchange information (Send and receive) amongst different users through the same plugin;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PluginApi } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Class responsible for either initialize or get the PluginApi
|
|
4
|
+
*
|
|
5
|
+
* This PluginApi, is the object with which the developer can control
|
|
6
|
+
* things in the plugin, such as the extensible areas or the hooks
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class BbbPluginSdk {
|
|
10
|
+
/**
|
|
11
|
+
* Method responsible for initializing the hooks use it from the plugin-side if you are using
|
|
12
|
+
* one of the hooks, see complete list in the README.md
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* This method is part of the BbbPluginSdk abstract class.
|
|
16
|
+
*
|
|
17
|
+
* @param uuid - The UUID generated by the html5 in which the developer can get with
|
|
18
|
+
* `document.currentScript?.getAttribute('uuid')` see any sample
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
static initialize(uuid: string): void;
|
|
22
|
+
/**
|
|
23
|
+
* Returns the PluginApi. Use the PluginApi to access the hooks or setters functions for all the
|
|
24
|
+
* extensible areas. For a complete list of those, see README.md
|
|
25
|
+
*
|
|
26
|
+
* @param uuid - The UUID generated by the html5 in which the developer can get with
|
|
27
|
+
* `document.currentScript?.getAttribute('uuid')` see any sample.
|
|
28
|
+
*
|
|
29
|
+
* @param pluginName - The PluginName given by the html5 in which the developer can get with
|
|
30
|
+
* `document.currentScript?.getAttribute('pluginName')` see any sample.
|
|
31
|
+
*
|
|
32
|
+
* @returns The PluginApi object
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
static getPluginApi(uuid: string, pluginName?: string): PluginApi;
|
|
36
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BbbPluginSdk = void 0;
|
|
4
|
+
var hooks_1 = require("../../data-channel/hooks");
|
|
5
|
+
var hooks_2 = require("../../data-consumption/domain/presentations/current-presentation/hooks");
|
|
6
|
+
var hooks_3 = require("../../data-consumption/domain/shared/custom-subscription/hooks");
|
|
7
|
+
var hooks_4 = require("../../data-consumption/domain/users/loaded-user-list/hooks");
|
|
8
|
+
var hooks_5 = require("../../data-consumption/domain/users/current-user/hooks");
|
|
9
|
+
var hooks_6 = require("../../data-consumption/domain/users/users-basic-info/hooks");
|
|
10
|
+
var getter_1 = require("../auxiliar/session-token/getter");
|
|
11
|
+
var getter_2 = require("../auxiliar/join-url/getter");
|
|
12
|
+
/**
|
|
13
|
+
* Class responsible for either initialize or get the PluginApi
|
|
14
|
+
*
|
|
15
|
+
* This PluginApi, is the object with which the developer can control
|
|
16
|
+
* things in the plugin, such as the extensible areas or the hooks
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
var BbbPluginSdk = /** @class */ (function () {
|
|
20
|
+
function BbbPluginSdk() {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Method responsible for initializing the hooks use it from the plugin-side if you are using
|
|
24
|
+
* one of the hooks, see complete list in the README.md
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* This method is part of the BbbPluginSdk abstract class.
|
|
28
|
+
*
|
|
29
|
+
* @param uuid - The UUID generated by the html5 in which the developer can get with
|
|
30
|
+
* `document.currentScript?.getAttribute('uuid')` see any sample
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
BbbPluginSdk.initialize = function (uuid) {
|
|
34
|
+
var pluginApi = window.bbb_plugins[uuid];
|
|
35
|
+
pluginApi.useCustomSubscription = (function (query, variablesObjectWrapper) { return (0, hooks_3.useCustomSubscription)(query, variablesObjectWrapper); });
|
|
36
|
+
pluginApi.useCurrentPresentation = (function () { return (0, hooks_2.useCurrentPresentation)(); });
|
|
37
|
+
pluginApi.useLoadedUserList = (function () { return (0, hooks_4.useLoadedUserList)(); });
|
|
38
|
+
pluginApi.useCurrentUser = (function () { return (0, hooks_5.useCurrentUser)(); });
|
|
39
|
+
pluginApi.useUsersBasicInfo = (function () { return (0, hooks_6.useUsersBasicInfo)(); });
|
|
40
|
+
var pluginName = pluginApi === null || pluginApi === void 0 ? void 0 : pluginApi.pluginName;
|
|
41
|
+
if (pluginName) {
|
|
42
|
+
pluginApi.useDataChannel = (function (channelName) { return (0, hooks_1.useDataChannel)(channelName, pluginName, window.bbb_plugins[uuid]); });
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
throw new Error('Plugin name not set');
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Returns the PluginApi. Use the PluginApi to access the hooks or setters functions for all the
|
|
50
|
+
* extensible areas. For a complete list of those, see README.md
|
|
51
|
+
*
|
|
52
|
+
* @param uuid - The UUID generated by the html5 in which the developer can get with
|
|
53
|
+
* `document.currentScript?.getAttribute('uuid')` see any sample.
|
|
54
|
+
*
|
|
55
|
+
* @param pluginName - The PluginName given by the html5 in which the developer can get with
|
|
56
|
+
* `document.currentScript?.getAttribute('pluginName')` see any sample.
|
|
57
|
+
*
|
|
58
|
+
* @returns The PluginApi object
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
BbbPluginSdk.getPluginApi = function (uuid, pluginName) {
|
|
62
|
+
if (!window.bbb_plugins)
|
|
63
|
+
window.bbb_plugins = {};
|
|
64
|
+
if (Object.keys(window.bbb_plugins).indexOf(uuid) === -1) {
|
|
65
|
+
window.bbb_plugins[uuid] = {
|
|
66
|
+
setUserListDropdownItems: function () { },
|
|
67
|
+
setPresentationToolbarItems: function () { },
|
|
68
|
+
setActionButtonDropdownItems: function () { },
|
|
69
|
+
setActionsBarItems: function () { },
|
|
70
|
+
setAudioSettingsDropdownItems: function () { },
|
|
71
|
+
setPresentationDropdownItems: function () { },
|
|
72
|
+
setNavBarItems: function () { },
|
|
73
|
+
setOptionsDropdownItems: function () { },
|
|
74
|
+
setCameraSettingsDropdownItems: function () { },
|
|
75
|
+
setUserCameraDropdownItems: function () { },
|
|
76
|
+
setUserListItemAdditionalInformation: function () { },
|
|
77
|
+
mapOfDispatchers: {
|
|
78
|
+
'': function () { },
|
|
79
|
+
},
|
|
80
|
+
getSessionToken: function () { return (0, getter_1.getSessionToken)(); },
|
|
81
|
+
getJoinUrl: function (params) { return (0, getter_2.getJoinUrl)(params); },
|
|
82
|
+
pluginName: pluginName,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
return window.bbb_plugins[uuid];
|
|
86
|
+
};
|
|
87
|
+
return BbbPluginSdk;
|
|
88
|
+
}());
|
|
89
|
+
exports.BbbPluginSdk = BbbPluginSdk;
|
|
90
|
+
//# sourceMappingURL=BbbPluginSdk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BbbPluginSdk.js","sourceRoot":"","sources":["../../../../src/core/api/BbbPluginSdk.ts"],"names":[],"mappings":";;;AAoBA,kDAA0D;AAC1D,gGAEgF;AAChF,wFAEwE;AACxE,oFAA+F;AAC/F,gFAAwF;AACxF,oFAA+F;AAC/F,2DAAmE;AACnE,sDAAyD;AAIzD;;;;;;GAMG;AACH;IAAA;IAyEA,CAAC;IAxEC;;;;;;;;;;OAUG;IACW,uBAAU,GAAxB,UAAyB,IAAY;QACnC,IAAM,SAAS,GAAc,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACtD,SAAS,CAAC,qBAAqB,GAAG,CAAC,UACjC,KAAa,EACb,sBAAsD,IACnD,OAAA,IAAA,6BAAqB,EAAC,KAAK,EAAE,sBAAsB,CAAC,EAApD,CAAoD,CAAkC,CAAC;QAC5F,SAAS,CAAC,sBAAsB,GAAG,CACjC,cAAM,OAAA,IAAA,8BAAsB,GAAE,EAAxB,CAAwB,CAAmC,CAAC;QACpE,SAAS,CAAC,iBAAiB,GAAG,CAAC,cAAM,OAAA,IAAA,yBAAiB,GAAE,EAAnB,CAAmB,CAA8B,CAAC;QACvF,SAAS,CAAC,cAAc,GAAG,CAAC,cAAM,OAAA,IAAA,sBAAc,GAAE,EAAhB,CAAgB,CAA2B,CAAC;QAC9E,SAAS,CAAC,iBAAiB,GAAG,CAAC,cAAM,OAAA,IAAA,yBAAiB,GAAE,EAAnB,CAAmB,CAA8B,CAAC;QACvF,IAAM,UAAU,GAAG,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,UAAU,CAAC;QACzC,IAAI,UAAU,EAAE;YACd,SAAS,CAAC,cAAc,GAAG,CAAC,UAC1B,WAAmB,IAChB,OAAA,IAAA,sBAAc,EAAC,WAAW,EAAE,UAAU,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,EAAjE,CAAiE,CAChC,CAAC;SACxC;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;SACxC;IACH,CAAC;IAED;;;;;;;;;;;;OAYG;IACW,yBAAY,GAA1B,UAA2B,IAAY,EAAE,UAAmB;QAC1D,IAAI,CAAC,MAAM,CAAC,WAAW;YAAE,MAAM,CAAC,WAAW,GAAG,EAAE,CAAC;QACjD,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE;YACxD,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG;gBACzB,wBAAwB,EAAE,cAAO,CAAC;gBAClC,2BAA2B,EAAE,cAAO,CAAC;gBACrC,4BAA4B,EAAE,cAAO,CAAC;gBACtC,kBAAkB,EAAE,cAAO,CAAC;gBAC5B,6BAA6B,EAAE,cAAO,CAAC;gBACvC,4BAA4B,EAAE,cAAO,CAAC;gBACtC,cAAc,EAAE,cAAO,CAAC;gBACxB,uBAAuB,EAAE,cAAO,CAAC;gBACjC,8BAA8B,EAAE,cAAO,CAAC;gBACxC,0BAA0B,EAAE,cAAO,CAAC;gBACpC,oCAAoC,EAAE,cAAO,CAAC;gBAC9C,gBAAgB,EAAE;oBAChB,EAAE,EAAE,cAAO,CAAC;iBACb;gBACD,eAAe,EAAE,cAAM,OAAA,IAAA,wBAAe,GAAE,EAAjB,CAAiB;gBACxC,UAAU,EAAE,UAAC,MAAM,IAAK,OAAA,IAAA,mBAAU,EAAC,MAAM,CAAC,EAAlB,CAAkB;gBAC1C,UAAU,YAAA;aACX,CAAC;SACH;QAED,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IACH,mBAAC;AAAD,CAAC,AAzED,IAyEC;AAzEqB,oCAAY"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { ActionButtonDropdownItem } from '../../extensible-areas/action-button-dropdown-item/types';
|
|
2
|
+
import { ActionsBarItem } from '../../extensible-areas/actions-bar-item/types';
|
|
3
|
+
import { AudioSettingsDropdownItem } from '../../extensible-areas/audio-settings-dropdown-item/types';
|
|
4
|
+
import { CameraSettingsDropdownItem } from '../../extensible-areas/camera-settings-dropdown-item/types';
|
|
5
|
+
import { NavBarItem } from '../../extensible-areas/nav-bar-item/types';
|
|
6
|
+
import { OptionsDropdownItem } from '../../extensible-areas/options-dropdown-item/types';
|
|
7
|
+
import { PresentationDropdownItem } from '../../extensible-areas/presentation-dropdown-item/types';
|
|
8
|
+
import { UserCameraDropdownItem } from '../../extensible-areas/user-camera-dropdown-item/types';
|
|
9
|
+
import { UserListDropdownItem } from '../../extensible-areas/user-list-dropdown-item/types';
|
|
10
|
+
import { UserListItemAdditionalInformation } from '../../extensible-areas/user-list-item-additional-information/types';
|
|
11
|
+
import { PresentationToolbarItem } from '../../extensible-areas/presentation-toolbar-item/types';
|
|
12
|
+
import { UseCurrentPresentationFunction } from '../../data-consumption/domain/presentations/current-presentation/types';
|
|
13
|
+
import { UseLoadedUserListFunction } from '../../data-consumption/domain/users/loaded-user-list/types';
|
|
14
|
+
import { UseCurrentUserFunction } from '../../data-consumption/domain/users/current-user/types';
|
|
15
|
+
import { UseUsersBasicInfoFunction } from '../../data-consumption/domain/users/users-basic-info/types';
|
|
16
|
+
import { UseCustomSubscriptionFunction } from '../../data-consumption/domain/shared/custom-subscription/types';
|
|
17
|
+
import { MapOfDispatchers, UseDataChannelFunctionFromPluginApi } from '../../data-channel/types';
|
|
18
|
+
import { GetSessionTokenFunction } from '../auxiliar/session-token/types';
|
|
19
|
+
import { GetJoinUrlFunction } from '../auxiliar/join-url/types';
|
|
20
|
+
export type SetPresentationToolbarItems = (presentationToolbarItem: PresentationToolbarItem[]) => void;
|
|
21
|
+
export type SetUserListDropdownItems = (userListDropdownItem: UserListDropdownItem[]) => void;
|
|
22
|
+
export type SetActionButtonDropdownItems = (actionButtonDropdownItem: ActionButtonDropdownItem[]) => void;
|
|
23
|
+
export type SetActionsBarItems = (actionsBarItems: ActionsBarItem[]) => void;
|
|
24
|
+
export type SetAudioSettingsDropdownItems = (audioSettingsDropdownItem: AudioSettingsDropdownItem[]) => void;
|
|
25
|
+
export type SetPresentationDropdownItems = (userListDropdownItem: PresentationDropdownItem[]) => void;
|
|
26
|
+
export type SetNavBarItems = (userListDropdownItem: NavBarItem[]) => void;
|
|
27
|
+
export type SetOptionsDropdownItems = (optionsDropdownItem: OptionsDropdownItem[]) => void;
|
|
28
|
+
export type SetCameraSettingsDropdownItems = (cameraSettingsDropdownItem: CameraSettingsDropdownItem[]) => void;
|
|
29
|
+
export type SetUserCameraDropdownItems = (userCameraDropdownItem: UserCameraDropdownItem[]) => void;
|
|
30
|
+
export type SetUserListItemAdditionalInformation = (userListItemAdditionalInformation: UserListItemAdditionalInformation[]) => void;
|
|
31
|
+
/**
|
|
32
|
+
* Object that makes plugin hooks and extensible area setters available for developers to use.
|
|
33
|
+
*/
|
|
34
|
+
export interface PluginApi {
|
|
35
|
+
pluginName?: string;
|
|
36
|
+
setPresentationToolbarItems: SetPresentationToolbarItems;
|
|
37
|
+
setUserListDropdownItems: SetUserListDropdownItems;
|
|
38
|
+
setActionButtonDropdownItems: SetActionButtonDropdownItems;
|
|
39
|
+
setActionsBarItems: SetActionsBarItems;
|
|
40
|
+
setAudioSettingsDropdownItems: SetAudioSettingsDropdownItems;
|
|
41
|
+
setPresentationDropdownItems: SetPresentationDropdownItems;
|
|
42
|
+
setNavBarItems: SetNavBarItems;
|
|
43
|
+
setOptionsDropdownItems: SetOptionsDropdownItems;
|
|
44
|
+
setCameraSettingsDropdownItems: SetCameraSettingsDropdownItems;
|
|
45
|
+
setUserCameraDropdownItems: SetUserCameraDropdownItems;
|
|
46
|
+
setUserListItemAdditionalInformation: SetUserListItemAdditionalInformation;
|
|
47
|
+
/**
|
|
48
|
+
* Returns an object containing the data on the current presentation being displayed
|
|
49
|
+
* in the presentation area, and its current page.
|
|
50
|
+
*
|
|
51
|
+
* @returns `GraphqlResponseWrapper` with the CurrentPresentation in the `data` field
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
useCurrentPresentation?: UseCurrentPresentationFunction;
|
|
55
|
+
/**
|
|
56
|
+
* Returns an object containing the data on the currently loaded user list (
|
|
57
|
+
* the one being displayed in that moment).
|
|
58
|
+
*
|
|
59
|
+
* @returns `GraphqlResponseWrapper` with the LoadedUserList type.
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
useLoadedUserList?: UseLoadedUserListFunction;
|
|
63
|
+
/**
|
|
64
|
+
* Returns an object containing the data on the current user, i.e. the user on which the
|
|
65
|
+
* plugin is running.
|
|
66
|
+
*
|
|
67
|
+
* @returns `GraphqlResponseWrapper` with the CurrentUser type.
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
useCurrentUser?: UseCurrentUserFunction;
|
|
71
|
+
/**
|
|
72
|
+
* Returns an object containing the brief data on every user in te meeting.
|
|
73
|
+
*
|
|
74
|
+
* @returns `GraphqlResponseWrapper` with the UserBasicInfo type.
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
useUsersBasicInfo?: UseUsersBasicInfoFunction;
|
|
78
|
+
/**
|
|
79
|
+
* Returns an object containing the data on the current presentation being displayed
|
|
80
|
+
* in the presentation area, and its current page.
|
|
81
|
+
*
|
|
82
|
+
* @returns `GraphqlResponseWrapper` with the data type specified in the generic type.
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
useCustomSubscription?: UseCustomSubscriptionFunction;
|
|
86
|
+
/**
|
|
87
|
+
* Returns an array with tha data wrapped in the `GraphqlResponseWrapper` in the first
|
|
88
|
+
* position of the array and the dispatcher function in which one plugin can inform
|
|
89
|
+
* the others.
|
|
90
|
+
*
|
|
91
|
+
* This is used for the different plugins in the meeting to communicate.
|
|
92
|
+
*
|
|
93
|
+
* @param channelName - the channel name in which you want to communicate
|
|
94
|
+
* @returns The array of data wrapped in the `GraphqlResponseWrapper` and the dispatcher function
|
|
95
|
+
*
|
|
96
|
+
*/
|
|
97
|
+
useDataChannel?: UseDataChannelFunctionFromPluginApi;
|
|
98
|
+
mapOfDispatchers: MapOfDispatchers;
|
|
99
|
+
getSessionToken?: GetSessionTokenFunction;
|
|
100
|
+
getJoinUrl?: GetJoinUrlFunction;
|
|
101
|
+
}
|
|
102
|
+
export interface PluginBrowserWindow extends Window {
|
|
103
|
+
bbb_plugins: {
|
|
104
|
+
[key: string]: PluginApi;
|
|
105
|
+
};
|
|
106
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/core/api/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getJoinUrl(parameters: Map<string, string>): Promise<string>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.getJoinUrl = void 0;
|
|
40
|
+
var getter_1 = require("../session-token/getter");
|
|
41
|
+
function objectToUrlParameters(parameters) {
|
|
42
|
+
var queryString = Object.entries(parameters)
|
|
43
|
+
.map(function (_a) {
|
|
44
|
+
var key = _a[0], value = _a[1];
|
|
45
|
+
return "".concat(encodeURIComponent(key), "=").concat(encodeURIComponent(value));
|
|
46
|
+
})
|
|
47
|
+
.join('&');
|
|
48
|
+
return queryString;
|
|
49
|
+
}
|
|
50
|
+
function getJoinUrl(parameters) {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
52
|
+
var urlParameters, url, response, responseUrl;
|
|
53
|
+
return __generator(this, function (_a) {
|
|
54
|
+
switch (_a.label) {
|
|
55
|
+
case 0:
|
|
56
|
+
urlParameters = objectToUrlParameters(parameters);
|
|
57
|
+
url = "".concat(document.location.origin, "/bigbluebutton/api/getJoinUrl?sessionToken=").concat((0, getter_1.getSessionToken)(), "&").concat(urlParameters);
|
|
58
|
+
return [4 /*yield*/, fetch(url)];
|
|
59
|
+
case 1:
|
|
60
|
+
response = _a.sent();
|
|
61
|
+
return [4 /*yield*/, response.json()];
|
|
62
|
+
case 2:
|
|
63
|
+
responseUrl = _a.sent();
|
|
64
|
+
return [2 /*return*/, responseUrl.response.url];
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
exports.getJoinUrl = getJoinUrl;
|
|
70
|
+
//# sourceMappingURL=getter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getter.js","sourceRoot":"","sources":["../../../../../src/core/auxiliar/join-url/getter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0D;AAE1D,SAAS,qBAAqB,CAAC,UAA+B;IAC5D,IAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;SAC3C,GAAG,CAAC,UAAC,EAAY;YAAX,GAAG,QAAA,EAAE,KAAK,QAAA;QAAM,OAAA,UAAG,kBAAkB,CAAC,GAAG,CAAC,cAAI,kBAAkB,CAAC,KAAK,CAAC,CAAE;IAAzD,CAAyD,CAAC;SAChF,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,SAAsB,UAAU,CAAC,UAA+B;;;;;;oBACxD,aAAa,GAAG,qBAAqB,CAAC,UAAU,CAAC,CAAC;oBAClD,GAAG,GAAG,UAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,wDAA8C,IAAA,wBAAe,GAAE,cAAI,aAAa,CAAE,CAAC;oBACzG,qBAAM,KAAK,CAAC,GAAG,CAAC,EAAA;;oBAA3B,QAAQ,GAAG,SAAgB;oBACb,qBAAM,QAAQ,CAAC,IAAI,EAAE,EAAA;;oBAAnC,WAAW,GAAG,SAAqB;oBACzC,sBAAO,WAAW,CAAC,QAAQ,CAAC,GAAa,EAAC;;;;CAC3C;AAND,gCAMC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GetJoinUrlFunction = (params: Map<string, string>) => Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/core/auxiliar/join-url/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getSessionToken(): string | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSessionToken = void 0;
|
|
4
|
+
function getSessionToken() {
|
|
5
|
+
var params = new URLSearchParams(window.location.search);
|
|
6
|
+
return params.get('sessionToken') || undefined;
|
|
7
|
+
}
|
|
8
|
+
exports.getSessionToken = getSessionToken;
|
|
9
|
+
//# sourceMappingURL=getter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getter.js","sourceRoot":"","sources":["../../../../../src/core/auxiliar/session-token/getter.ts"],"names":[],"mappings":";;;AAAA,SAAgB,eAAe;IAC7B,IAAM,MAAM,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3D,OAAO,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,SAAS,CAAC;AACjD,CAAC;AAHD,0CAGC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GetSessionTokenFunction = () => string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/core/auxiliar/session-token/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum HookEvents {
|
|
2
|
+
UPDATED = "HOOK_DATA_UPDATED",
|
|
3
|
+
SUBSCRIBED = "PLUGIN_SUBSCRIBED_TO_HOOK",
|
|
4
|
+
UNSUBSCRIBED = "PLUGIN_UNSUBSCRIBED_FROM_HOOK"
|
|
5
|
+
}
|
|
6
|
+
export declare enum Hooks {
|
|
7
|
+
CURRENT_PRESENTATION = "Hooks::UseCurrentPresentation",
|
|
8
|
+
LOADED_USER_LIST = "Hooks::UseLoadedUserList",
|
|
9
|
+
CURRENT_USER = "Hooks::UseCurrentUser",
|
|
10
|
+
CUSTOM_SUBSCRIPTION = "Hooks::CustomSubscription",
|
|
11
|
+
DATA_CHANNEL = "Hooks::DataChannel"
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Hooks = exports.HookEvents = void 0;
|
|
4
|
+
var HookEvents;
|
|
5
|
+
(function (HookEvents) {
|
|
6
|
+
HookEvents["UPDATED"] = "HOOK_DATA_UPDATED";
|
|
7
|
+
HookEvents["SUBSCRIBED"] = "PLUGIN_SUBSCRIBED_TO_HOOK";
|
|
8
|
+
HookEvents["UNSUBSCRIBED"] = "PLUGIN_UNSUBSCRIBED_FROM_HOOK";
|
|
9
|
+
})(HookEvents || (exports.HookEvents = HookEvents = {}));
|
|
10
|
+
var Hooks;
|
|
11
|
+
(function (Hooks) {
|
|
12
|
+
Hooks["CURRENT_PRESENTATION"] = "Hooks::UseCurrentPresentation";
|
|
13
|
+
Hooks["LOADED_USER_LIST"] = "Hooks::UseLoadedUserList";
|
|
14
|
+
Hooks["CURRENT_USER"] = "Hooks::UseCurrentUser";
|
|
15
|
+
Hooks["CUSTOM_SUBSCRIPTION"] = "Hooks::CustomSubscription";
|
|
16
|
+
Hooks["DATA_CHANNEL"] = "Hooks::DataChannel";
|
|
17
|
+
})(Hooks || (exports.Hooks = Hooks = {}));
|
|
18
|
+
//# sourceMappingURL=enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../src/core/enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,2CAA6B,CAAA;IAC7B,sDAAwC,CAAA;IACxC,4DAA8C,CAAA;AAChD,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AAED,IAAY,KAMX;AAND,WAAY,KAAK;IACf,+DAAsD,CAAA;IACtD,sDAA6C,CAAA;IAC7C,+CAAsC,CAAA;IACtC,0DAAiD,CAAA;IACjD,4CAAmC,CAAA;AACrC,CAAC,EANW,KAAK,qBAAL,KAAK,QAMhB"}
|
package/dist/cjs/core/index.d.ts
CHANGED
package/dist/cjs/core/index.js
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
3
|
+
exports.BbbPluginSdk = void 0;
|
|
4
|
+
var BbbPluginSdk_1 = require("./api/BbbPluginSdk");
|
|
5
|
+
Object.defineProperty(exports, "BbbPluginSdk", { enumerable: true, get: function () { return BbbPluginSdk_1.BbbPluginSdk; } });
|
|
18
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":";;;AAAA,mDAAkD;AAAzC,4GAAA,YAAY,OAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ApolloError } from '@apollo/client';
|
|
2
|
+
import { CustomSubscriptionArguments } from '../data-consumption/domain/shared/custom-subscription/types';
|
|
3
|
+
import { Hooks } from './enum';
|
|
4
|
+
import { DataChannelArguments } from '../data-channel/types';
|
|
5
|
+
/**
|
|
6
|
+
* Wrapper for the data that comes from the core. With this more complex object
|
|
7
|
+
* it is also possible to know whether the data is still loading, of even if something
|
|
8
|
+
* wrong happened.
|
|
9
|
+
*
|
|
10
|
+
* @typeParam TData - Data that the developer will be expecting from the core.
|
|
11
|
+
*/
|
|
12
|
+
export interface GraphqlResponseWrapper<TData> {
|
|
13
|
+
loading: boolean;
|
|
14
|
+
data?: TData;
|
|
15
|
+
error?: ApolloError;
|
|
16
|
+
}
|
|
17
|
+
export type HookArguments = CustomSubscriptionArguments | DataChannelArguments;
|
|
18
|
+
export interface UpdatedEventDetails<T> {
|
|
19
|
+
hook: Hooks;
|
|
20
|
+
hookArguments?: HookArguments;
|
|
21
|
+
data: T;
|
|
22
|
+
}
|
|
23
|
+
export interface SubscribedEventDetails {
|
|
24
|
+
hook: Hooks;
|
|
25
|
+
hookArguments?: HookArguments;
|
|
26
|
+
}
|
|
27
|
+
export interface UnsubscribedEventDetails {
|
|
28
|
+
hook: Hooks;
|
|
29
|
+
hookArguments?: HookArguments;
|
|
30
|
+
}
|
|
31
|
+
export interface HookEventWrapper<T> extends Event {
|
|
32
|
+
detail: UpdatedEventDetails<T> | SubscribedEventDetails | UnsubscribedEventDetails;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/core/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum for each role in possible for a user to assume in the meeting
|
|
3
|
+
* The developer can specify them when dispatching data with the dispatcher function
|
|
4
|
+
* returned from the `pluginApi.useChannel`.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum DataChannelDispatcherUserRole {
|
|
7
|
+
PRESENTER = "PRESENTER",
|
|
8
|
+
MODERATOR = "MODERATOR",
|
|
9
|
+
VIEWER = "VIEWER"
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DataChannelDispatcherUserRole = void 0;
|
|
4
|
+
// Role
|
|
5
|
+
/**
|
|
6
|
+
* Enum for each role in possible for a user to assume in the meeting
|
|
7
|
+
* The developer can specify them when dispatching data with the dispatcher function
|
|
8
|
+
* returned from the `pluginApi.useChannel`.
|
|
9
|
+
*/
|
|
10
|
+
var DataChannelDispatcherUserRole;
|
|
11
|
+
(function (DataChannelDispatcherUserRole) {
|
|
12
|
+
DataChannelDispatcherUserRole["PRESENTER"] = "PRESENTER";
|
|
13
|
+
DataChannelDispatcherUserRole["MODERATOR"] = "MODERATOR";
|
|
14
|
+
DataChannelDispatcherUserRole["VIEWER"] = "VIEWER";
|
|
15
|
+
})(DataChannelDispatcherUserRole || (exports.DataChannelDispatcherUserRole = DataChannelDispatcherUserRole = {}));
|
|
16
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/data-channel/enums.ts"],"names":[],"mappings":";;;AAAA,OAAO;AACP;;;;GAIG;AACH,IAAY,6BAIX;AAJD,WAAY,6BAA6B;IACvC,wDAAuB,CAAA;IACvB,wDAAuB,CAAA;IACvB,kDAAiB,CAAA;AACnB,CAAC,EAJW,6BAA6B,6CAA7B,6BAA6B,QAIxC"}
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useDataChannel = exports.createChannelIdentifier = void 0;
|
|
4
4
|
var react_1 = require("react");
|
|
5
|
-
var
|
|
5
|
+
var enum_1 = require("../core/enum");
|
|
6
6
|
var createChannelIdentifier = function (channelName, pluginName) { return "".concat(channelName, "::").concat(pluginName); };
|
|
7
7
|
exports.createChannelIdentifier = createChannelIdentifier;
|
|
8
|
-
|
|
9
|
-
var _a = (0, react_1.useState)(), data = _a[0], setData = _a[1];
|
|
8
|
+
exports.useDataChannel = (function (channelName, pluginName, pluginApi) {
|
|
9
|
+
var _a = (0, react_1.useState)({ loading: true }), data = _a[0], setData = _a[1];
|
|
10
10
|
var _b = (0, react_1.useState)(), dispatcherFunction = _b[0], setDispatcherFunction = _b[1];
|
|
11
|
-
var channelIdentifier = createChannelIdentifier(channelName, pluginName);
|
|
11
|
+
var channelIdentifier = (0, exports.createChannelIdentifier)(channelName, pluginName);
|
|
12
12
|
var handleDataChange = (function (customEvent) {
|
|
13
|
-
|
|
13
|
+
var eventDetail = customEvent.detail;
|
|
14
|
+
setData(eventDetail.data);
|
|
14
15
|
});
|
|
15
16
|
var handleListenToChangeDisPatcherFunction = (function () {
|
|
16
17
|
setDispatcherFunction(function () { return pluginApi.mapOfDispatchers[channelIdentifier]; });
|
|
@@ -19,17 +20,17 @@ var useDataChannel = (function (channelName, pluginName, pluginApi) {
|
|
|
19
20
|
(0, react_1.useEffect)(function () {
|
|
20
21
|
window.addEventListener(channelIdentifier, handleDataChange);
|
|
21
22
|
window.addEventListener("".concat(channelIdentifier, "::dispatcherFunction"), handleListenToChangeDisPatcherFunction);
|
|
22
|
-
window.dispatchEvent(new CustomEvent(
|
|
23
|
+
window.dispatchEvent(new CustomEvent(enum_1.HookEvents.SUBSCRIBED, {
|
|
23
24
|
detail: {
|
|
24
|
-
hook:
|
|
25
|
-
|
|
25
|
+
hook: enum_1.Hooks.DATA_CHANNEL,
|
|
26
|
+
hookArguments: { channelName: channelName, pluginName: pluginName },
|
|
26
27
|
},
|
|
27
28
|
}));
|
|
28
29
|
return function () {
|
|
29
|
-
window.dispatchEvent(new CustomEvent(
|
|
30
|
+
window.dispatchEvent(new CustomEvent(enum_1.HookEvents.UNSUBSCRIBED, {
|
|
30
31
|
detail: {
|
|
31
|
-
hook:
|
|
32
|
-
|
|
32
|
+
hook: enum_1.Hooks.DATA_CHANNEL,
|
|
33
|
+
hookArguments: { channelName: channelName, pluginName: pluginName },
|
|
33
34
|
},
|
|
34
35
|
}));
|
|
35
36
|
window.removeEventListener(channelIdentifier, handleDataChange);
|
|
@@ -37,5 +38,4 @@ var useDataChannel = (function (channelName, pluginName, pluginApi) {
|
|
|
37
38
|
}, []);
|
|
38
39
|
return [data, dispatcherFunction];
|
|
39
40
|
});
|
|
40
|
-
|
|
41
|
-
//# sourceMappingURL=useDatachannel.js.map
|
|
41
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data-channel/hooks.ts"],"names":[],"mappings":";;;AAAA,+BAA4C;AAQ5C,qCAEsB;AAMf,IAAM,uBAAuB,GAAG,UAAC,WAAmB,EAAE,UAAkB,IAAK,OAAA,UAAG,WAAW,eAAK,UAAU,CAAE,EAA/B,CAA+B,CAAC;AAAvG,QAAA,uBAAuB,2BAAgF;AAEvG,QAAA,cAAc,GAAG,CAAC,UAAI,WAAmB,EACpD,UAAkB,EAAE,SAAoB;IAElC,IAAA,KAAkB,IAAA,gBAAQ,EAA4B,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAvE,IAAI,QAAA,EAAE,OAAO,QAA0D,CAAC;IACzE,IAAA,KAA8C,IAAA,gBAAQ,GAAsB,EAA3E,kBAAkB,QAAA,EAAE,qBAAqB,QAAkC,CAAC;IAEnF,IAAM,iBAAiB,GAAG,IAAA,+BAAuB,EAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IAE3E,IAAM,gBAAgB,GAAkB,CAAC,UACvC,WAAwD;QAExD,IAAM,WAAW,GAAG,WAAW,CAAC,MAAwD,CAAC;QACzF,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,CAAkB,CAAC;IAEpB,IAAM,sCAAsC,GAAkB,CAC5D;QACE,qBAAqB,CAAC,cAAM,OAAA,SAAS,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,EAA7C,CAA6C,CAAC,CAAC;QAC3E,MAAM,CAAC,mBAAmB,CACxB,UAAG,iBAAiB,yBAAsB,EAC1C,sCAAsC,CACvC,CAAC;IACJ,CAAC,CAAkB,CAAC;IACtB,IAAA,iBAAS,EAAC;QACR,MAAM,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,CAAC;QAC7D,MAAM,CAAC,gBAAgB,CACrB,UAAG,iBAAiB,yBAAsB,EAC1C,sCAAsC,CACvC,CAAC;QAEF,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAAyB,iBAAU,CAAC,UAAU,EAAE;YAClF,MAAM,EAAE;gBACN,IAAI,EAAE,YAAK,CAAC,YAAY;gBACxB,aAAa,EAAE,EAAE,WAAW,aAAA,EAAE,UAAU,YAAA,EAAE;aAC3C;SACF,CAAC,CAAC,CAAC;QACJ,OAAO;YACL,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAA2B,iBAAU,CAAC,YAAY,EAAE;gBACtF,MAAM,EAAE;oBACN,IAAI,EAAE,YAAK,CAAC,YAAY;oBACxB,aAAa,EAAE,EAAE,WAAW,aAAA,EAAE,UAAU,YAAA,EAAE;iBAC3C;aACF,CAAC,CAAC,CAAC;YACJ,MAAM,CAAC,mBAAmB,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,CAAC;QAClE,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;AACpC,CAAC,CAAiC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { DataChannelDispatcherUserRole } from './enums';
|
|
2
|
+
export { ToUserId, ToRole } from './types';
|