bigbluebutton-html-plugin-sdk 0.0.27 → 0.0.29

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 (87) hide show
  1. package/README.md +12 -0
  2. package/dist/cjs/core/api/BbbPluginSdk.js +8 -2
  3. package/dist/cjs/core/api/BbbPluginSdk.js.map +1 -1
  4. package/dist/cjs/core/api/types.d.ts +26 -2
  5. package/dist/cjs/core/auxiliary/join-url/getter.js.map +1 -0
  6. package/dist/cjs/core/auxiliary/join-url/types.js.map +1 -0
  7. package/dist/cjs/core/auxiliary/session-token/getter.js.map +1 -0
  8. package/dist/cjs/core/auxiliary/session-token/types.js.map +1 -0
  9. package/dist/cjs/data-consumption/domain/settings/index.d.ts +1 -0
  10. package/dist/cjs/data-consumption/domain/settings/index.js +6 -0
  11. package/dist/cjs/data-consumption/domain/settings/index.js.map +1 -0
  12. package/dist/cjs/data-consumption/domain/settings/plugin-settings/hooks.d.ts +5 -0
  13. package/dist/cjs/data-consumption/domain/settings/plugin-settings/hooks.js +13 -0
  14. package/dist/cjs/data-consumption/domain/settings/plugin-settings/hooks.js.map +1 -0
  15. package/dist/cjs/data-consumption/domain/settings/plugin-settings/queries.d.ts +1 -0
  16. package/dist/cjs/data-consumption/domain/settings/plugin-settings/queries.js +5 -0
  17. package/dist/cjs/data-consumption/domain/settings/plugin-settings/queries.js.map +1 -0
  18. package/dist/cjs/data-consumption/domain/settings/plugin-settings/types.d.ts +10 -0
  19. package/dist/cjs/data-consumption/domain/settings/plugin-settings/types.js +3 -0
  20. package/dist/cjs/data-consumption/domain/settings/plugin-settings/types.js.map +1 -0
  21. package/dist/cjs/data-consumption/domain/settings/plugin-settings/utils.d.ts +7 -0
  22. package/dist/cjs/data-consumption/domain/settings/plugin-settings/utils.js +22 -0
  23. package/dist/cjs/data-consumption/domain/settings/plugin-settings/utils.js.map +1 -0
  24. package/dist/cjs/index.d.ts +1 -0
  25. package/dist/cjs/index.js +1 -0
  26. package/dist/cjs/index.js.map +1 -1
  27. package/dist/cjs/ui-commands/chat/commands.d.ts +6 -0
  28. package/dist/cjs/ui-commands/chat/commands.js +8 -0
  29. package/dist/cjs/ui-commands/chat/commands.js.map +1 -0
  30. package/dist/cjs/ui-commands/chat/form/commands.d.ts +14 -0
  31. package/dist/cjs/ui-commands/chat/form/commands.js +24 -0
  32. package/dist/cjs/ui-commands/chat/form/commands.js.map +1 -0
  33. package/dist/cjs/ui-commands/chat/form/enums.d.ts +4 -0
  34. package/dist/cjs/ui-commands/chat/form/enums.js +9 -0
  35. package/dist/cjs/ui-commands/chat/form/enums.js.map +1 -0
  36. package/dist/cjs/ui-commands/chat/form/types.d.ts +7 -0
  37. package/dist/cjs/ui-commands/chat/form/types.js +3 -0
  38. package/dist/cjs/ui-commands/chat/form/types.js.map +1 -0
  39. package/dist/cjs/ui-commands/chat/types.d.ts +4 -0
  40. package/dist/cjs/ui-commands/chat/types.js +3 -0
  41. package/dist/cjs/ui-commands/chat/types.js.map +1 -0
  42. package/dist/cjs/ui-commands/commands.d.ts +8 -0
  43. package/dist/cjs/ui-commands/commands.js +8 -0
  44. package/dist/cjs/ui-commands/commands.js.map +1 -0
  45. package/dist/cjs/ui-commands/types.d.ts +7 -0
  46. package/dist/cjs/ui-commands/types.js +3 -0
  47. package/dist/cjs/ui-commands/types.js.map +1 -0
  48. package/dist/cjs/ui-events/chat/form/enums.d.ts +5 -0
  49. package/dist/cjs/ui-events/chat/form/enums.js +10 -0
  50. package/dist/cjs/ui-events/chat/form/enums.js.map +1 -0
  51. package/dist/cjs/ui-events/chat/form/types.d.ts +8 -0
  52. package/dist/cjs/ui-events/chat/form/types.js +4 -0
  53. package/dist/cjs/ui-events/chat/form/types.js.map +1 -0
  54. package/dist/cjs/ui-events/chat/index.d.ts +1 -0
  55. package/dist/cjs/ui-events/chat/index.js +6 -0
  56. package/dist/cjs/ui-events/chat/index.js.map +1 -0
  57. package/dist/cjs/ui-events/hooks.d.ts +2 -0
  58. package/dist/cjs/ui-events/hooks.js +14 -0
  59. package/dist/cjs/ui-events/hooks.js.map +1 -0
  60. package/dist/cjs/ui-events/index.d.ts +3 -0
  61. package/dist/cjs/ui-events/index.js +19 -0
  62. package/dist/cjs/ui-events/index.js.map +1 -0
  63. package/dist/cjs/ui-events/types.d.ts +8 -0
  64. package/dist/cjs/ui-events/types.js +3 -0
  65. package/dist/cjs/ui-events/types.js.map +1 -0
  66. package/dist/cjs/ui-events/user-list/enums.d.ts +4 -0
  67. package/dist/cjs/ui-events/user-list/enums.js +9 -0
  68. package/dist/cjs/ui-events/user-list/enums.js.map +1 -0
  69. package/dist/cjs/ui-events/user-list/index.d.ts +1 -0
  70. package/dist/cjs/ui-events/user-list/index.js +6 -0
  71. package/dist/cjs/ui-events/user-list/index.js.map +1 -0
  72. package/dist/cjs/ui-events/user-list/types.d.ts +5 -0
  73. package/dist/cjs/ui-events/user-list/types.js +4 -0
  74. package/dist/cjs/ui-events/user-list/types.js.map +1 -0
  75. package/package.json +1 -1
  76. package/dist/cjs/core/auxiliar/join-url/getter.js.map +0 -1
  77. package/dist/cjs/core/auxiliar/join-url/types.js.map +0 -1
  78. package/dist/cjs/core/auxiliar/session-token/getter.js.map +0 -1
  79. package/dist/cjs/core/auxiliar/session-token/types.js.map +0 -1
  80. /package/dist/cjs/core/{auxiliar → auxiliary}/join-url/getter.d.ts +0 -0
  81. /package/dist/cjs/core/{auxiliar → auxiliary}/join-url/getter.js +0 -0
  82. /package/dist/cjs/core/{auxiliar → auxiliary}/join-url/types.d.ts +0 -0
  83. /package/dist/cjs/core/{auxiliar → auxiliary}/join-url/types.js +0 -0
  84. /package/dist/cjs/core/{auxiliar → auxiliary}/session-token/getter.d.ts +0 -0
  85. /package/dist/cjs/core/{auxiliar → auxiliary}/session-token/getter.js +0 -0
  86. /package/dist/cjs/core/{auxiliar → auxiliary}/session-token/types.d.ts +0 -0
  87. /package/dist/cjs/core/{auxiliar → auxiliary}/session-token/types.js +0 -0
package/README.md CHANGED
@@ -42,5 +42,17 @@ SDK for developing BigBlueButton plugins, examples of implementations can be fou
42
42
 
43
43
  - `useCustomSubscription` hook: with this hook, the developer can query pretty much anything graphql can provide. Note: Make sure that, on BBB version change, the custom subscriptions you make will work as expected.
44
44
 
45
+ - `usePluginSettings` hook: it provides all the specific settings regarding the current plugin it's been loaded from.
46
+
45
47
  ### Real time data exchange
46
48
  - `useDataChannel` hook: this will allow you to exchange information (Send and receive) amongst different users through the same plugin;
49
+
50
+ ### Real time event reaction
51
+ - `useUiEvent` hook: this will allow you to react to certain events fired from the BBB core (refer to the sample-ui-events-plugin in the samples directory for example on how to use some of the events);
52
+
53
+ ### Ui Commands to automatize tasks in BBB
54
+ `uiCommands` object: It basically contains all the possible commands available to the developer to interact with the core BBB UI, see the ones implemented down below:
55
+ - chat:
56
+ - form:
57
+ - open: this function will open the sidebar chat panel automatically;
58
+ - fill: this function will fill the form input field of the chat passed in the argument as {text: string}
@@ -1,14 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BbbPluginSdk = void 0;
4
+ var commands_1 = require("../../ui-commands/commands");
4
5
  var hooks_1 = require("../../data-channel/hooks");
5
6
  var hooks_2 = require("../../data-consumption/domain/presentations/current-presentation/hooks");
6
7
  var hooks_3 = require("../../data-consumption/domain/shared/custom-subscription/hooks");
7
8
  var hooks_4 = require("../../data-consumption/domain/users/loaded-user-list/hooks");
8
9
  var hooks_5 = require("../../data-consumption/domain/users/current-user/hooks");
9
10
  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");
11
+ var getter_1 = require("../auxiliary/session-token/getter");
12
+ var getter_2 = require("../auxiliary/join-url/getter");
13
+ var settings_1 = require("../../data-consumption/domain/settings");
14
+ var hooks_7 = require("../../ui-events/hooks");
12
15
  /**
13
16
  * Class responsible for either initialize or get the PluginApi
14
17
  *
@@ -37,9 +40,12 @@ var BbbPluginSdk = /** @class */ (function () {
37
40
  pluginApi.useLoadedUserList = (function () { return (0, hooks_4.useLoadedUserList)(); });
38
41
  pluginApi.useCurrentUser = (function () { return (0, hooks_5.useCurrentUser)(); });
39
42
  pluginApi.useUsersBasicInfo = (function () { return (0, hooks_6.useUsersBasicInfo)(); });
43
+ pluginApi.useUiEvent = (function (eventName, callback) { return (0, hooks_7.useUiEvent)(eventName, callback); });
44
+ pluginApi.uiCommands = commands_1.uiCommands;
40
45
  var pluginName = pluginApi === null || pluginApi === void 0 ? void 0 : pluginApi.pluginName;
41
46
  if (pluginName) {
42
47
  pluginApi.useDataChannel = (function (channelName) { return (0, hooks_1.useDataChannel)(channelName, pluginName, window.bbb_plugins[uuid]); });
48
+ pluginApi.usePluginSettings = function () { return (0, settings_1.usePluginSettings)(pluginName); };
43
49
  }
44
50
  else {
45
51
  throw new Error('Plugin name not set');
@@ -1 +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,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,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,AAjFD,IAiFC;AAjFqB,oCAAY"}
@@ -1,3 +1,4 @@
1
+ import { UiCommands } from 'src/ui-commands/types';
1
2
  import { ActionButtonDropdownItem } from '../../extensible-areas/action-button-dropdown-item/types';
2
3
  import { ActionsBarItem } from '../../extensible-areas/actions-bar-item/types';
3
4
  import { AudioSettingsDropdownItem } from '../../extensible-areas/audio-settings-dropdown-item/types';
@@ -15,8 +16,10 @@ import { UseCurrentUserFunction } from '../../data-consumption/domain/users/curr
15
16
  import { UseUsersBasicInfoFunction } from '../../data-consumption/domain/users/users-basic-info/types';
16
17
  import { UseCustomSubscriptionFunction } from '../../data-consumption/domain/shared/custom-subscription/types';
17
18
  import { MapOfDispatchers, UseDataChannelFunctionFromPluginApi } from '../../data-channel/types';
18
- import { GetSessionTokenFunction } from '../auxiliar/session-token/types';
19
- import { GetJoinUrlFunction } from '../auxiliar/join-url/types';
19
+ import { GetSessionTokenFunction } from '../auxiliary/session-token/types';
20
+ import { GetJoinUrlFunction } from '../auxiliary/join-url/types';
21
+ import { UsePluginSettingsFunction } from '../../data-consumption/domain/settings/plugin-settings/types';
22
+ import { UseUiEventFunction } from '../../ui-events/types';
20
23
  export type SetPresentationToolbarItems = (presentationToolbarItem: PresentationToolbarItem[]) => void;
21
24
  export type SetUserListDropdownItems = (userListDropdownItem: UserListDropdownItem[]) => void;
22
25
  export type SetActionButtonDropdownItems = (actionButtonDropdownItem: ActionButtonDropdownItem[]) => void;
@@ -75,6 +78,15 @@ export interface PluginApi {
75
78
  *
76
79
  */
77
80
  useUsersBasicInfo?: UseUsersBasicInfoFunction;
81
+ /**
82
+ * Returns an object containing the settings for the current plugin (with pluginName
83
+ * defined in the pluginApi). It needs to be explicitly written in the client settings
84
+ * within the plugin's directive
85
+ *
86
+ * @returns `GraphqlResponseWrapper` with the plugin specific settings.
87
+ *
88
+ */
89
+ usePluginSettings?: UsePluginSettingsFunction;
78
90
  /**
79
91
  * Returns an object containing the data on the current presentation being displayed
80
92
  * in the presentation area, and its current page.
@@ -83,6 +95,17 @@ export interface PluginApi {
83
95
  *
84
96
  */
85
97
  useCustomSubscription?: UseCustomSubscriptionFunction;
98
+ /**
99
+ * Function to react to some event of your choice amongst the available. It does not
100
+ * return anything.
101
+ *
102
+ * @param eventName The name of the event chosen to react to.
103
+ *
104
+ * @param callback The callback function to call every time the event is fired from the
105
+ * core of BBB. The arguments of the callback is the payload of the event (if any).
106
+ *
107
+ */
108
+ useUiEvent?: UseUiEventFunction;
86
109
  /**
87
110
  * Returns an array with tha data wrapped in the `GraphqlResponseWrapper` in the first
88
111
  * position of the array and the dispatcher function in which one plugin can inform
@@ -96,6 +119,7 @@ export interface PluginApi {
96
119
  */
97
120
  useDataChannel?: UseDataChannelFunctionFromPluginApi;
98
121
  mapOfDispatchers: MapOfDispatchers;
122
+ uiCommands?: UiCommands;
99
123
  getSessionToken?: GetSessionTokenFunction;
100
124
  getJoinUrl?: GetJoinUrlFunction;
101
125
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getter.js","sourceRoot":"","sources":["../../../../../src/core/auxiliary/join-url/getter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0D;AAE1D,SAAS,qBAAqB,CAAC,UAAmC;IAChE,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,UAAmC;;;;;;oBAC5D,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
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/core/auxiliary/join-url/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getter.js","sourceRoot":"","sources":["../../../../../src/core/auxiliary/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
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/core/auxiliary/session-token/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export { usePluginSettings } from './plugin-settings/hooks';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.usePluginSettings = void 0;
4
+ var hooks_1 = require("./plugin-settings/hooks");
5
+ Object.defineProperty(exports, "usePluginSettings", { enumerable: true, get: function () { return hooks_1.usePluginSettings; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/data-consumption/domain/settings/index.ts"],"names":[],"mappings":";;;AAAA,iDAA4D;AAAnD,0GAAA,iBAAiB,OAAA"}
@@ -0,0 +1,5 @@
1
+ export declare const usePluginSettings: (pluginName: string) => {
2
+ data: import("./types").PluginSettingsData | undefined;
3
+ loading: boolean;
4
+ error?: import("@apollo/client").ApolloError | undefined;
5
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.usePluginSettings = void 0;
4
+ var hooks_1 = require("../../shared/custom-subscription/hooks");
5
+ var queries_1 = require("./queries");
6
+ var utils_1 = require("./utils");
7
+ var usePluginSettings = function (pluginName) { return (0, utils_1.filterPluginSpecificSettings)((0, hooks_1.useCustomSubscription)(queries_1.PLUGIN_SETTINGS_QUERY, {
8
+ variables: {
9
+ pluginName: pluginName,
10
+ },
11
+ })); };
12
+ exports.usePluginSettings = usePluginSettings;
13
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../../src/data-consumption/domain/settings/plugin-settings/hooks.ts"],"names":[],"mappings":";;;AAAA,gEAA+E;AAC/E,qCAAkD;AAElD,iCAAuD;AAEhD,IAAM,iBAAiB,GAAG,UAC/B,UAAkB,IACf,OAAA,IAAA,oCAA4B,EAAC,IAAA,6BAAqB,EACT,+BAAqB,EAAE;IAC/D,SAAS,EAAE;QACT,UAAU,YAAA;KACX;CACF,CAAC,CAAC,EALF,CAKE,CAAC;AAPK,QAAA,iBAAiB,qBAOtB"}
@@ -0,0 +1 @@
1
+ export declare const PLUGIN_SETTINGS_QUERY = "\nsubscription pluginSettingsSubscription ($pluginName: String!){\n meeting_clientPluginSettings(where: {name: {_eq: $pluginName}}) {\n settings\n }\n}\n";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PLUGIN_SETTINGS_QUERY = void 0;
4
+ exports.PLUGIN_SETTINGS_QUERY = "\nsubscription pluginSettingsSubscription ($pluginName: String!){\n meeting_clientPluginSettings(where: {name: {_eq: $pluginName}}) {\n settings\n }\n}\n";
5
+ //# sourceMappingURL=queries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../../../../src/data-consumption/domain/settings/plugin-settings/queries.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG,gKAMpC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { GraphqlResponseWrapper } from '../../../../core';
2
+ export interface PluginSettingsData {
3
+ [key: string]: object;
4
+ }
5
+ export interface PluginSettingsResponseFromGraphqlWrapper {
6
+ meeting_clientPluginSettings: {
7
+ settings: PluginSettingsData;
8
+ }[];
9
+ }
10
+ export type UsePluginSettingsFunction = () => GraphqlResponseWrapper<PluginSettingsData>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/data-consumption/domain/settings/plugin-settings/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { GraphqlResponseWrapper } from '../../../../core';
2
+ import { PluginSettingsResponseFromGraphqlWrapper } from './types';
3
+ export declare const filterPluginSpecificSettings: (completeSettings: GraphqlResponseWrapper<PluginSettingsResponseFromGraphqlWrapper>) => {
4
+ data: import("./types").PluginSettingsData | undefined;
5
+ loading: boolean;
6
+ error?: import("@apollo/client").ApolloError | undefined;
7
+ };
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.filterPluginSpecificSettings = void 0;
15
+ var filterPluginSpecificSettings = function (completeSettings) {
16
+ var _a;
17
+ var pluginSettings = (_a = completeSettings
18
+ .data) === null || _a === void 0 ? void 0 : _a.meeting_clientPluginSettings[0].settings;
19
+ return __assign(__assign({}, completeSettings), { data: pluginSettings });
20
+ };
21
+ exports.filterPluginSpecificSettings = filterPluginSpecificSettings;
22
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../src/data-consumption/domain/settings/plugin-settings/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAGO,IAAM,4BAA4B,GAAG,UAC1C,gBAAkF;;IAElF,IAAM,cAAc,GAAG,MAAA,gBAAgB;SACpC,IAAI,0CAAE,4BAA4B,CAAC,CAAC,EAAE,QAAQ,CAAC;IAClD,6BACK,gBAAgB,KACnB,IAAI,EAAE,cAAc,IACpB;AACJ,CAAC,CAAC;AATW,QAAA,4BAA4B,gCASvC"}
@@ -1,4 +1,5 @@
1
1
  export * from './extensible-areas';
2
2
  export * from './data-consumption';
3
3
  export * from './data-channel';
4
+ export * from './ui-events';
4
5
  export * from './core';
package/dist/cjs/index.js CHANGED
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./extensible-areas"), exports);
18
18
  __exportStar(require("./data-consumption"), exports);
19
19
  __exportStar(require("./data-channel"), exports);
20
+ __exportStar(require("./ui-events"), exports);
20
21
  __exportStar(require("./core"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AAEnC,qDAAmC;AAEnC,iDAA+B;AAE/B,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AAEnC,qDAAmC;AAEnC,iDAA+B;AAE/B,8CAA4B;AAE5B,yCAAuB"}
@@ -0,0 +1,6 @@
1
+ export declare const chat: {
2
+ form: {
3
+ open: () => void;
4
+ fill: (fillChatFormCommandArguments: import("./form/types").FillChatFormCommandArguments) => void;
5
+ };
6
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chat = void 0;
4
+ var commands_1 = require("./form/commands");
5
+ exports.chat = {
6
+ form: commands_1.form,
7
+ };
8
+ //# sourceMappingURL=commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../src/ui-commands/chat/commands.ts"],"names":[],"mappings":";;;AAAA,4CAAuC;AAE1B,QAAA,IAAI,GAAG;IAClB,IAAI,iBAAA;CACL,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { FillChatFormCommandArguments } from './types';
2
+ export declare const form: {
3
+ /**
4
+ * Opens the public chat panel automatically.
5
+ */
6
+ open: () => void;
7
+ /**
8
+ * Fills in the chat input when called.
9
+ *
10
+ * @param FillChatFormCommandArguments the text with which the method will fill the chat input.
11
+ * Refer to {@link FillChatFormCommandArguments} to understand the argument structure.
12
+ */
13
+ fill: (fillChatFormCommandArguments: FillChatFormCommandArguments) => void;
14
+ };
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.form = void 0;
4
+ var enums_1 = require("./enums");
5
+ exports.form = {
6
+ /**
7
+ * Opens the public chat panel automatically.
8
+ */
9
+ open: function () {
10
+ window.dispatchEvent(new Event(enums_1.ChatFormCommandsEnum.OPEN));
11
+ },
12
+ /**
13
+ * Fills in the chat input when called.
14
+ *
15
+ * @param FillChatFormCommandArguments the text with which the method will fill the chat input.
16
+ * Refer to {@link FillChatFormCommandArguments} to understand the argument structure.
17
+ */
18
+ fill: function (fillChatFormCommandArguments) {
19
+ window.dispatchEvent(new CustomEvent(enums_1.ChatFormCommandsEnum.FILL, {
20
+ detail: fillChatFormCommandArguments,
21
+ }));
22
+ },
23
+ };
24
+ //# sourceMappingURL=commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../../../src/ui-commands/chat/form/commands.ts"],"names":[],"mappings":";;;AAAA,iCAA+C;AAGlC,QAAA,IAAI,GAAG;IAClB;;OAEG;IACH,IAAI,EAAE;QACJ,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,4BAAoB,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;OAKG;IACH,IAAI,EAAE,UAAC,4BAA0D;QAC/D,MAAM,CAAC,aAAa,CAClB,IAAI,WAAW,CAEb,4BAAoB,CAAC,IAAI,EAAE;YAC3B,MAAM,EAAE,4BAA4B;SACrC,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare enum ChatFormCommandsEnum {
2
+ OPEN = "OPEN_CHAT_FORM_COMMAND",
3
+ FILL = "FILL_CHAT_FORM_COMMAND"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChatFormCommandsEnum = void 0;
4
+ var ChatFormCommandsEnum;
5
+ (function (ChatFormCommandsEnum) {
6
+ ChatFormCommandsEnum["OPEN"] = "OPEN_CHAT_FORM_COMMAND";
7
+ ChatFormCommandsEnum["FILL"] = "FILL_CHAT_FORM_COMMAND";
8
+ })(ChatFormCommandsEnum || (exports.ChatFormCommandsEnum = ChatFormCommandsEnum = {}));
9
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../../src/ui-commands/chat/form/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,uDAA+B,CAAA;IAC/B,uDAA+B,CAAA;AACjC,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B"}
@@ -0,0 +1,7 @@
1
+ export interface FillChatFormCommandArguments {
2
+ text: string;
3
+ }
4
+ export interface UiCommandsChatFormObject {
5
+ open: () => void;
6
+ fill: (FillChatFormCommandArguments: FillChatFormCommandArguments) => void;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/ui-commands/chat/form/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { UiCommandsChatFormObject } from './form/types';
2
+ export interface UiCommandsChatObject {
3
+ form: UiCommandsChatFormObject;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ui-commands/chat/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export declare const uiCommands: {
2
+ chat: {
3
+ form: {
4
+ open: () => void;
5
+ fill: (fillChatFormCommandArguments: import("./chat/form/types").FillChatFormCommandArguments) => void;
6
+ };
7
+ };
8
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.uiCommands = void 0;
4
+ var commands_1 = require("./chat/commands");
5
+ exports.uiCommands = {
6
+ chat: commands_1.chat,
7
+ };
8
+ //# sourceMappingURL=commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/ui-commands/commands.ts"],"names":[],"mappings":";;;AAAA,4CAAuC;AAE1B,QAAA,UAAU,GAAG;IACxB,IAAI,iBAAA;CACL,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { UiCommandsChatObject } from './chat/types';
2
+ export interface UiCommandsEventWrapper<T> extends Event {
3
+ detail: T;
4
+ }
5
+ export interface UiCommands {
6
+ chat: UiCommandsChatObject;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/ui-commands/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export declare enum ChatFormEventsNames {
2
+ CHAT_INPUT_TEXT_CHANGED = "CHAT_INPUT_USER_TYPED",
3
+ CHAT_INPUT_FOCUSED = "CHAT_INPUT_FOCUSED",
4
+ CHAT_INPUT_UNFOCUSED = "CHAT_INPUT_UNFOCUSED"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChatFormEventsNames = void 0;
4
+ var ChatFormEventsNames;
5
+ (function (ChatFormEventsNames) {
6
+ ChatFormEventsNames["CHAT_INPUT_TEXT_CHANGED"] = "CHAT_INPUT_USER_TYPED";
7
+ ChatFormEventsNames["CHAT_INPUT_FOCUSED"] = "CHAT_INPUT_FOCUSED";
8
+ ChatFormEventsNames["CHAT_INPUT_UNFOCUSED"] = "CHAT_INPUT_UNFOCUSED";
9
+ })(ChatFormEventsNames || (exports.ChatFormEventsNames = ChatFormEventsNames = {}));
10
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../../src/ui-events/chat/form/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,wEAAiD,CAAA;IACjD,gEAAyC,CAAA;IACzC,oEAA6C,CAAA;AAC/C,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B"}
@@ -0,0 +1,8 @@
1
+ import { ChatFormEventsNames } from './enums';
2
+ export type ChatFormEventPayloads = {
3
+ [ChatFormEventsNames.CHAT_INPUT_TEXT_CHANGED]: {
4
+ text: string;
5
+ };
6
+ [ChatFormEventsNames.CHAT_INPUT_FOCUSED]: void;
7
+ [ChatFormEventsNames.CHAT_INPUT_UNFOCUSED]: void;
8
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var enums_1 = require("./enums");
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/ui-events/chat/form/types.ts"],"names":[],"mappings":";;AAAA,iCAA8C"}
@@ -0,0 +1 @@
1
+ export { ChatFormEventsNames } from './form/enums';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChatFormEventsNames = void 0;
4
+ var enums_1 = require("./form/enums");
5
+ Object.defineProperty(exports, "ChatFormEventsNames", { enumerable: true, get: function () { return enums_1.ChatFormEventsNames; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui-events/chat/index.ts"],"names":[],"mappings":";;;AAAA,sCAAmD;AAA1C,4GAAA,mBAAmB,OAAA"}
@@ -0,0 +1,2 @@
1
+ import { EventPayloads, UiEventsHookEventWrapper } from './types';
2
+ export declare function useUiEvent<T extends keyof EventPayloads>(eventName: T, callback: (payload: UiEventsHookEventWrapper<EventPayloads[T]>) => void): void;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useUiEvent = void 0;
4
+ var react_1 = require("react");
5
+ function useUiEvent(eventName, callback) {
6
+ (0, react_1.useEffect)(function () {
7
+ window.addEventListener(eventName, callback);
8
+ return function () {
9
+ window.removeEventListener(eventName, callback);
10
+ };
11
+ }, []);
12
+ }
13
+ exports.useUiEvent = useUiEvent;
14
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/ui-events/hooks.ts"],"names":[],"mappings":";;;AAAA,+BAAkC;AAGlC,SAAgB,UAAU,CAExB,SAAY,EAAE,QAAuE;IACrF,IAAA,iBAAS,EAAC;QACR,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,QAAyB,CAAC,CAAC;QAC9D,OAAO;YACL,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,QAAyB,CAAC,CAAC;QACnE,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;AATD,gCASC"}
@@ -0,0 +1,3 @@
1
+ export { EventNames } from './types';
2
+ export * from './chat';
3
+ export * from './user-list';
@@ -0,0 +1,19 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./chat"), exports);
18
+ __exportStar(require("./user-list"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui-events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,yCAAuB;AAEvB,8CAA4B"}
@@ -0,0 +1,8 @@
1
+ import { ChatFormEventPayloads } from './chat/form/types';
2
+ import { UserListEventPayloads } from './user-list/types';
3
+ export type EventPayloads = ChatFormEventPayloads & UserListEventPayloads;
4
+ export type EventNames = keyof EventPayloads;
5
+ export interface UiEventsHookEventWrapper<T> extends Event {
6
+ detail: T;
7
+ }
8
+ export type UseUiEventFunction = <T extends keyof EventPayloads>(eventName: T, callback: (payload: UiEventsHookEventWrapper<EventPayloads[T]>) => void) => void;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/ui-events/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export declare enum UserListEventsNames {
2
+ USER_LIST_OPENED = "USER_LIST_OPENED",
3
+ USER_LIST_CLOSED = "USER_LIST_CLOSED"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserListEventsNames = void 0;
4
+ var UserListEventsNames;
5
+ (function (UserListEventsNames) {
6
+ UserListEventsNames["USER_LIST_OPENED"] = "USER_LIST_OPENED";
7
+ UserListEventsNames["USER_LIST_CLOSED"] = "USER_LIST_CLOSED";
8
+ })(UserListEventsNames || (exports.UserListEventsNames = UserListEventsNames = {}));
9
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/ui-events/user-list/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,4DAAqC,CAAA;IACrC,4DAAqC,CAAA;AACvC,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B"}
@@ -0,0 +1 @@
1
+ export { UserListEventsNames } from './enums';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserListEventsNames = void 0;
4
+ var enums_1 = require("./enums");
5
+ Object.defineProperty(exports, "UserListEventsNames", { enumerable: true, get: function () { return enums_1.UserListEventsNames; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui-events/user-list/index.ts"],"names":[],"mappings":";;;AAAA,iCAA8C;AAArC,4GAAA,mBAAmB,OAAA"}
@@ -0,0 +1,5 @@
1
+ import { UserListEventsNames } from './enums';
2
+ export type UserListEventPayloads = {
3
+ [UserListEventsNames.USER_LIST_OPENED]: void;
4
+ [UserListEventsNames.USER_LIST_CLOSED]: void;
5
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var enums_1 = require("./enums");
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ui-events/user-list/types.ts"],"names":[],"mappings":";;AAAA,iCAA8C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigbluebutton-html-plugin-sdk",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
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",
@@ -1 +0,0 @@
1
- {"version":3,"file":"getter.js","sourceRoot":"","sources":["../../../../../src/core/auxiliar/join-url/getter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0D;AAE1D,SAAS,qBAAqB,CAAC,UAAmC;IAChE,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,UAAmC;;;;;;oBAC5D,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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/core/auxiliar/join-url/types.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/core/auxiliar/session-token/types.ts"],"names":[],"mappings":""}