@100mslive/react-native-hms 1.9.8 → 1.9.10

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 (212) hide show
  1. package/README.md +5 -4
  2. package/android/local.properties +8 -1
  3. package/android/src/main/java/com/reactnativehmssdk/HMSDecoder.kt +2 -0
  4. package/android/src/main/java/com/reactnativehmssdk/HMSManager.kt +98 -4
  5. package/android/src/main/java/com/reactnativehmssdk/HMSRNSDK.kt +14 -7
  6. package/android/src/main/java/com/reactnativehmssdk/Interactivity/HMSInteractivityDecoder.kt +328 -0
  7. package/android/src/main/java/com/reactnativehmssdk/Interactivity/HMSInteractivityHelper.kt +352 -0
  8. package/android/src/main/java/com/reactnativehmssdk/Interactivity/HMSRNInteractivityCenter.kt +184 -0
  9. package/ios/HMSConstants.swift +1 -0
  10. package/ios/HMSDecoder.swift +3 -1
  11. package/ios/HMSInteractivityDecoder.swift +223 -0
  12. package/ios/HMSInteractivityHelper.swift +169 -0
  13. package/ios/HMSManager.m +17 -0
  14. package/ios/HMSManager.swift +30 -1
  15. package/ios/HMSRNInteractivityCenter.swift +89 -0
  16. package/ios/HMSRNSDK.swift +10 -4
  17. package/ios/Hmssdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  18. package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  19. package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcuserdata/jatinnagar.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  20. package/ios/Hmssdk.xcodeproj/xcuserdata/jatinnagar.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
  21. package/lib/commonjs/classes/HMSInteractivityCenter.js +93 -0
  22. package/lib/commonjs/classes/HMSInteractivityCenter.js.map +1 -0
  23. package/lib/commonjs/classes/HMSInteractivityEncoder.js +33 -0
  24. package/lib/commonjs/classes/HMSInteractivityEncoder.js.map +1 -0
  25. package/lib/commonjs/classes/HMSPermissions.js +4 -0
  26. package/lib/commonjs/classes/HMSPermissions.js.map +1 -1
  27. package/lib/commonjs/classes/HMSPollsListenerActions.js +11 -0
  28. package/lib/commonjs/classes/HMSPollsListenerActions.js.map +1 -0
  29. package/lib/commonjs/classes/HMSSDK.js +8 -0
  30. package/lib/commonjs/classes/HMSSDK.js.map +1 -1
  31. package/lib/commonjs/classes/polls/HMSPoll.js +6 -0
  32. package/lib/commonjs/classes/polls/HMSPoll.js.map +1 -0
  33. package/lib/commonjs/classes/polls/HMSPollCategory.js +12 -0
  34. package/lib/commonjs/classes/polls/HMSPollCategory.js.map +1 -0
  35. package/lib/commonjs/classes/polls/HMSPollCreateParams.js +6 -0
  36. package/lib/commonjs/classes/polls/HMSPollCreateParams.js.map +1 -0
  37. package/lib/commonjs/classes/polls/HMSPollQuestion.js +6 -0
  38. package/lib/commonjs/classes/polls/HMSPollQuestion.js.map +1 -0
  39. package/lib/commonjs/classes/polls/HMSPollQuestionAnswer.js +2 -0
  40. package/lib/commonjs/classes/polls/HMSPollQuestionAnswer.js.map +1 -0
  41. package/lib/commonjs/classes/polls/HMSPollQuestionCreateParams.js +6 -0
  42. package/lib/commonjs/classes/polls/HMSPollQuestionCreateParams.js.map +1 -0
  43. package/lib/commonjs/classes/polls/HMSPollQuestionOption.js +2 -0
  44. package/lib/commonjs/classes/polls/HMSPollQuestionOption.js.map +1 -0
  45. package/lib/commonjs/classes/polls/HMSPollQuestionOptionCreateParams.js +6 -0
  46. package/lib/commonjs/classes/polls/HMSPollQuestionOptionCreateParams.js.map +1 -0
  47. package/lib/commonjs/classes/polls/HMSPollQuestionQuizOptionCreateParams.js +6 -0
  48. package/lib/commonjs/classes/polls/HMSPollQuestionQuizOptionCreateParams.js.map +1 -0
  49. package/lib/commonjs/classes/polls/HMSPollQuestionResponse.js +6 -0
  50. package/lib/commonjs/classes/polls/HMSPollQuestionResponse.js.map +1 -0
  51. package/lib/commonjs/classes/polls/HMSPollQuestionResponseCreateParams.js +6 -0
  52. package/lib/commonjs/classes/polls/HMSPollQuestionResponseCreateParams.js.map +1 -0
  53. package/lib/commonjs/classes/polls/HMSPollQuestionResponseResult.js +2 -0
  54. package/lib/commonjs/classes/polls/HMSPollQuestionResponseResult.js.map +1 -0
  55. package/lib/commonjs/classes/polls/HMSPollQuestionResult.js +2 -0
  56. package/lib/commonjs/classes/polls/HMSPollQuestionResult.js.map +1 -0
  57. package/lib/commonjs/classes/polls/HMSPollQuestionType.js +14 -0
  58. package/lib/commonjs/classes/polls/HMSPollQuestionType.js.map +1 -0
  59. package/lib/commonjs/classes/polls/HMSPollResponsePeerInfo.js +2 -0
  60. package/lib/commonjs/classes/polls/HMSPollResponsePeerInfo.js.map +1 -0
  61. package/lib/commonjs/classes/polls/HMSPollResult.js +6 -0
  62. package/lib/commonjs/classes/polls/HMSPollResult.js.map +1 -0
  63. package/lib/commonjs/classes/polls/HMSPollState.js +13 -0
  64. package/lib/commonjs/classes/polls/HMSPollState.js.map +1 -0
  65. package/lib/commonjs/classes/polls/HMSPollType.js +12 -0
  66. package/lib/commonjs/classes/polls/HMSPollType.js.map +1 -0
  67. package/lib/commonjs/classes/polls/HMSPollUpdateType.js +13 -0
  68. package/lib/commonjs/classes/polls/HMSPollUpdateType.js.map +1 -0
  69. package/lib/commonjs/classes/polls/HMSPollUserTrackingMode.js +13 -0
  70. package/lib/commonjs/classes/polls/HMSPollUserTrackingMode.js.map +1 -0
  71. package/lib/commonjs/hooks/polls.js +17 -0
  72. package/lib/commonjs/hooks/polls.js.map +1 -0
  73. package/lib/commonjs/index.js +68 -0
  74. package/lib/commonjs/index.js.map +1 -1
  75. package/lib/commonjs/stores/hms-interactivity-store.js +21 -0
  76. package/lib/commonjs/stores/hms-interactivity-store.js.map +1 -0
  77. package/lib/commonjs/stores/hms-polls-slice.js +19 -0
  78. package/lib/commonjs/stores/hms-polls-slice.js.map +1 -0
  79. package/lib/commonjs/stores/types.js.map +1 -1
  80. package/lib/commonjs/utils/emitter/EventEmitter.js +19 -0
  81. package/lib/commonjs/utils/emitter/EventEmitter.js.map +1 -1
  82. package/lib/commonjs/utils/windowController.js +30 -0
  83. package/lib/commonjs/utils/windowController.js.map +1 -0
  84. package/lib/module/classes/HMSInteractivityCenter.js +85 -0
  85. package/lib/module/classes/HMSInteractivityCenter.js.map +1 -0
  86. package/lib/module/classes/HMSInteractivityEncoder.js +26 -0
  87. package/lib/module/classes/HMSInteractivityEncoder.js.map +1 -0
  88. package/lib/module/classes/HMSPermissions.js +4 -0
  89. package/lib/module/classes/HMSPermissions.js.map +1 -1
  90. package/lib/module/classes/HMSPollsListenerActions.js +5 -0
  91. package/lib/module/classes/HMSPollsListenerActions.js.map +1 -0
  92. package/lib/module/classes/HMSSDK.js +8 -0
  93. package/lib/module/classes/HMSSDK.js.map +1 -1
  94. package/lib/module/classes/polls/HMSPoll.js +2 -0
  95. package/lib/module/classes/polls/HMSPoll.js.map +1 -0
  96. package/lib/module/classes/polls/HMSPollCategory.js +6 -0
  97. package/lib/module/classes/polls/HMSPollCategory.js.map +1 -0
  98. package/lib/module/classes/polls/HMSPollCreateParams.js +2 -0
  99. package/lib/module/classes/polls/HMSPollCreateParams.js.map +1 -0
  100. package/lib/module/classes/polls/HMSPollQuestion.js +2 -0
  101. package/lib/module/classes/polls/HMSPollQuestion.js.map +1 -0
  102. package/lib/module/classes/polls/HMSPollQuestionAnswer.js +2 -0
  103. package/lib/module/classes/polls/HMSPollQuestionAnswer.js.map +1 -0
  104. package/lib/module/classes/polls/HMSPollQuestionCreateParams.js +2 -0
  105. package/lib/module/classes/polls/HMSPollQuestionCreateParams.js.map +1 -0
  106. package/lib/module/classes/polls/HMSPollQuestionOption.js +2 -0
  107. package/lib/module/classes/polls/HMSPollQuestionOption.js.map +1 -0
  108. package/lib/module/classes/polls/HMSPollQuestionOptionCreateParams.js +2 -0
  109. package/lib/module/classes/polls/HMSPollQuestionOptionCreateParams.js.map +1 -0
  110. package/lib/module/classes/polls/HMSPollQuestionQuizOptionCreateParams.js +2 -0
  111. package/lib/module/classes/polls/HMSPollQuestionQuizOptionCreateParams.js.map +1 -0
  112. package/lib/module/classes/polls/HMSPollQuestionResponse.js +2 -0
  113. package/lib/module/classes/polls/HMSPollQuestionResponse.js.map +1 -0
  114. package/lib/module/classes/polls/HMSPollQuestionResponseCreateParams.js +2 -0
  115. package/lib/module/classes/polls/HMSPollQuestionResponseCreateParams.js.map +1 -0
  116. package/lib/module/classes/polls/HMSPollQuestionResponseResult.js +2 -0
  117. package/lib/module/classes/polls/HMSPollQuestionResponseResult.js.map +1 -0
  118. package/lib/module/classes/polls/HMSPollQuestionResult.js +2 -0
  119. package/lib/module/classes/polls/HMSPollQuestionResult.js.map +1 -0
  120. package/lib/module/classes/polls/HMSPollQuestionType.js +8 -0
  121. package/lib/module/classes/polls/HMSPollQuestionType.js.map +1 -0
  122. package/lib/module/classes/polls/HMSPollResponsePeerInfo.js +2 -0
  123. package/lib/module/classes/polls/HMSPollResponsePeerInfo.js.map +1 -0
  124. package/lib/module/classes/polls/HMSPollResult.js +2 -0
  125. package/lib/module/classes/polls/HMSPollResult.js.map +1 -0
  126. package/lib/module/classes/polls/HMSPollState.js +7 -0
  127. package/lib/module/classes/polls/HMSPollState.js.map +1 -0
  128. package/lib/module/classes/polls/HMSPollType.js +6 -0
  129. package/lib/module/classes/polls/HMSPollType.js.map +1 -0
  130. package/lib/module/classes/polls/HMSPollUpdateType.js +7 -0
  131. package/lib/module/classes/polls/HMSPollUpdateType.js.map +1 -0
  132. package/lib/module/classes/polls/HMSPollUserTrackingMode.js +7 -0
  133. package/lib/module/classes/polls/HMSPollUserTrackingMode.js.map +1 -0
  134. package/lib/module/hooks/polls.js +12 -0
  135. package/lib/module/hooks/polls.js.map +1 -0
  136. package/lib/module/index.js +8 -0
  137. package/lib/module/index.js.map +1 -1
  138. package/lib/module/stores/hms-interactivity-store.js +15 -0
  139. package/lib/module/stores/hms-interactivity-store.js.map +1 -0
  140. package/lib/module/stores/hms-polls-slice.js +12 -0
  141. package/lib/module/stores/hms-polls-slice.js.map +1 -0
  142. package/lib/module/stores/types.js.map +1 -1
  143. package/lib/module/utils/emitter/EventEmitter.js +19 -0
  144. package/lib/module/utils/emitter/EventEmitter.js.map +1 -1
  145. package/lib/module/utils/windowController.js +22 -0
  146. package/lib/module/utils/windowController.js.map +1 -0
  147. package/lib/typescript/classes/HMSInteractivityCenter.d.ts +35 -0
  148. package/lib/typescript/classes/HMSInteractivityEncoder.d.ts +4 -0
  149. package/lib/typescript/classes/HMSPermissions.d.ts +4 -0
  150. package/lib/typescript/classes/HMSPollsListenerActions.d.ts +3 -0
  151. package/lib/typescript/classes/HMSSDK.d.ts +3 -0
  152. package/lib/typescript/classes/polls/HMSPoll.d.ts +81 -0
  153. package/lib/typescript/classes/polls/HMSPollCategory.d.ts +10 -0
  154. package/lib/typescript/classes/polls/HMSPollCreateParams.d.ts +6 -0
  155. package/lib/typescript/classes/polls/HMSPollQuestion.d.ts +61 -0
  156. package/lib/typescript/classes/polls/HMSPollQuestionAnswer.d.ts +17 -0
  157. package/lib/typescript/classes/polls/HMSPollQuestionCreateParams.d.ts +25 -0
  158. package/lib/typescript/classes/polls/HMSPollQuestionOption.d.ts +21 -0
  159. package/lib/typescript/classes/polls/HMSPollQuestionOptionCreateParams.d.ts +3 -0
  160. package/lib/typescript/classes/polls/HMSPollQuestionQuizOptionCreateParams.d.ts +4 -0
  161. package/lib/typescript/classes/polls/HMSPollQuestionResponse.d.ts +47 -0
  162. package/lib/typescript/classes/polls/HMSPollQuestionResponseCreateParams.d.ts +2 -0
  163. package/lib/typescript/classes/polls/HMSPollQuestionResponseResult.d.ts +17 -0
  164. package/lib/typescript/classes/polls/HMSPollQuestionResult.d.ts +29 -0
  165. package/lib/typescript/classes/polls/HMSPollQuestionType.d.ts +18 -0
  166. package/lib/typescript/classes/polls/HMSPollResponsePeerInfo.d.ts +21 -0
  167. package/lib/typescript/classes/polls/HMSPollResult.d.ts +22 -0
  168. package/lib/typescript/classes/polls/HMSPollState.d.ts +14 -0
  169. package/lib/typescript/classes/polls/HMSPollType.d.ts +4 -0
  170. package/lib/typescript/classes/polls/HMSPollUpdateType.d.ts +5 -0
  171. package/lib/typescript/classes/polls/HMSPollUserTrackingMode.d.ts +14 -0
  172. package/lib/typescript/hooks/polls.d.ts +3 -0
  173. package/lib/typescript/index.d.ts +9 -0
  174. package/lib/typescript/stores/hms-interactivity-store.d.ts +9 -0
  175. package/lib/typescript/stores/hms-polls-slice.d.ts +5 -0
  176. package/lib/typescript/stores/types.d.ts +6 -0
  177. package/lib/typescript/utils/emitter/EventEmitter.d.ts +7 -0
  178. package/lib/typescript/utils/windowController.d.ts +10 -0
  179. package/package.json +1 -1
  180. package/sdk-versions.json +2 -2
  181. package/src/classes/HMSInteractivityCenter.ts +126 -0
  182. package/src/classes/HMSInteractivityEncoder.ts +29 -0
  183. package/src/classes/HMSPermissions.ts +6 -0
  184. package/src/classes/HMSPollsListenerActions.ts +3 -0
  185. package/src/classes/HMSSDK.tsx +10 -0
  186. package/src/classes/polls/HMSPoll.ts +108 -0
  187. package/src/classes/polls/HMSPollCategory.ts +11 -0
  188. package/src/classes/polls/HMSPollCreateParams.ts +19 -0
  189. package/src/classes/polls/HMSPollQuestion.ts +92 -0
  190. package/src/classes/polls/HMSPollQuestionAnswer.ts +29 -0
  191. package/src/classes/polls/HMSPollQuestionCreateParams.ts +36 -0
  192. package/src/classes/polls/HMSPollQuestionOption.ts +24 -0
  193. package/src/classes/polls/HMSPollQuestionOptionCreateParams.ts +8 -0
  194. package/src/classes/polls/HMSPollQuestionQuizOptionCreateParams.ts +6 -0
  195. package/src/classes/polls/HMSPollQuestionResponse.ts +72 -0
  196. package/src/classes/polls/HMSPollQuestionResponseCreateParams.ts +6 -0
  197. package/src/classes/polls/HMSPollQuestionResponseResult.ts +19 -0
  198. package/src/classes/polls/HMSPollQuestionResult.ts +41 -0
  199. package/src/classes/polls/HMSPollQuestionType.ts +21 -0
  200. package/src/classes/polls/HMSPollResponsePeerInfo.ts +24 -0
  201. package/src/classes/polls/HMSPollResult.ts +26 -0
  202. package/src/classes/polls/HMSPollState.ts +16 -0
  203. package/src/classes/polls/HMSPollType.ts +4 -0
  204. package/src/classes/polls/HMSPollUpdateType.ts +5 -0
  205. package/src/classes/polls/HMSPollUserTrackingMode.ts +16 -0
  206. package/src/hooks/polls.ts +14 -0
  207. package/src/index.ts +10 -0
  208. package/src/stores/hms-interactivity-store.ts +18 -0
  209. package/src/stores/hms-polls-slice.ts +20 -0
  210. package/src/stores/types.ts +20 -3
  211. package/src/utils/emitter/EventEmitter.ts +26 -0
  212. package/src/utils/windowController.ts +23 -0
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=HMSPoll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["HMSPoll.ts"],"sourcesContent":["import type { HMSPollState } from './HMSPollState';\nimport type { HMSPollQuestion } from './HMSPollQuestion';\nimport type { HMSPollResult } from './HMSPollResult';\nimport type { HMSRole } from '../HMSRole';\nimport type { HMSPollUserTrackingMode } from './HMSPollUserTrackingMode';\nimport type { HMSPollType } from './HMSPollType';\nimport type { HMSPeer } from '../HMSPeer';\n\ntype HMSPeerSubset = {\n peerID: HMSPeer['peerID'];\n name: HMSPeer['name'];\n};\n\ntype HMSRoleSubset = {\n name: HMSRole['name'];\n};\n\nexport interface HMSPoll {\n /**\n The unique identifier of the poll.\n */\n pollId: string;\n\n /**\n The title of the poll.\n */\n title: string;\n\n /**\n The duration of the poll in seconds.\n */\n duration?: number;\n\n /**\n A flag indicating whether the poll is anonymous or not.\n */\n anonymous?: boolean;\n\n /**\n The tracking mode for user participation in the poll.\n */\n mode?: HMSPollUserTrackingMode;\n\n /**\n The roles that can vote in the poll.\n */\n rolesThatCanVote?: HMSRoleSubset[];\n\n /**\n The roles that can view the poll responses.\n */\n rolesThatCanViewResponses?: HMSRoleSubset[];\n\n /**\n The peer who started the poll.\n */\n startedBy?: HMSPeerSubset;\n\n /**\n The peer who stopped the poll.\n */\n stoppedBy?: HMSPeerSubset;\n\n /**\n The peer who created the poll.\n */\n createdBy?: HMSPeerSubset;\n\n /**\n The date and time when the poll was started.\n */\n startedAt?: Date;\n\n /**\n The date and time when the poll was stopped.\n */\n stoppedAt?: Date;\n\n /**\n The type of the poll.\n */\n type: HMSPollType;\n\n /**\n The current state of the poll.\n */\n state?: HMSPollState;\n\n /**\n The list of questions in the poll.\n */\n questions?: HMSPollQuestion[];\n\n /**\n The result of the poll.\n */\n result?: HMSPollResult;\n\n // /**\n // The visiblity of the poll. (Not available on iOS)\n // */\n // visibility?: boolean;\n\n // /**\n // * Is poll locked currently? (Not available on iOS)\n // */\n // locked?: boolean;\n}\n"],"mappings":""}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HMSPollCategory = void 0;
7
+ let HMSPollCategory = exports.HMSPollCategory = /*#__PURE__*/function (HMSPollCategory) {
8
+ HMSPollCategory[HMSPollCategory["poll"] = 0] = "poll";
9
+ HMSPollCategory[HMSPollCategory["quiz"] = 1] = "quiz";
10
+ return HMSPollCategory;
11
+ }({});
12
+ //# sourceMappingURL=HMSPollCategory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["HMSPollCategory","exports"],"sources":["HMSPollCategory.ts"],"sourcesContent":["export enum HMSPollCategory {\n /**\n The poll is a standard poll.\n */\n poll,\n\n /**\n The poll is a quiz.\n */\n quiz,\n}\n"],"mappings":";;;;;;IAAYA,eAAe,GAAAC,OAAA,CAAAD,eAAA,0BAAfA,eAAe;EAAfA,eAAe,CAAfA,eAAe;EAAfA,eAAe,CAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=HMSPollCreateParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["HMSPollCreateParams.ts"],"sourcesContent":["import type { HMSPoll } from './HMSPoll';\nimport type { HMSPollQuestionCreateParams } from './HMSPollQuestionCreateParams';\n\nexport interface HMSPollCreateParams\n extends Pick<\n HMSPoll,\n | 'title'\n | 'type'\n | 'duration'\n | 'anonymous'\n // | 'visibility'\n // | 'locked'\n | 'mode'\n | 'rolesThatCanVote'\n | 'rolesThatCanViewResponses'\n > {\n pollId?: HMSPoll['pollId'];\n questions?: HMSPollQuestionCreateParams[];\n}\n"],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=HMSPollQuestion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["HMSPollQuestion.ts"],"sourcesContent":["import type { HMSPollQuestionAnswer } from './HMSPollQuestionAnswer';\nimport type { HMSPollQuestionOption } from './HMSPollQuestionOption';\nimport type { HMSPollQuestionResponse } from './HMSPollQuestionResponse';\nimport type { HMSPollQuestionType } from './HMSPollQuestionType';\n\n/**\n Represents a question in a poll.\n */\nexport interface HMSPollQuestion {\n /**\n The index of the question within the poll.\n */\n index: number;\n\n /**\n The text of the question.\n */\n text: string;\n\n /**\n A flag indicating whether the question is skippable or not.\n */\n skippable: boolean;\n\n /**\n The duration hint of the question in seconds. Can be used for setting a timeframe withing which a question can be responded to. Not enforced by the server.\n */\n duration: number;\n\n /**\n A flag indicating whether the question can be answered only once.\n */\n once: boolean;\n\n /**\n The weight of the question in scoring.\n */\n weight: number;\n\n /**\n The minimum length of the answer (if applicable).\n */\n answerMinLen?: number;\n\n /**\n The maximum length of the answer (if applicable).\n */\n answerMaxLen?: number;\n\n /**\n The type of the question.\n */\n type: HMSPollQuestionType;\n\n /**\n The list of options for the question (if applicable).\n */\n options?: HMSPollQuestionOption[];\n\n /**\n The answer for the question (if it is a quiz).\n */\n answer?: HMSPollQuestionAnswer;\n\n /**\n The list of responses for the question.\n */\n responses?: HMSPollQuestionResponse[];\n\n /**\n The responses provided by the current user for the question.\n */\n myResponses: HMSPollQuestionResponse[];\n}\n\n// Web Inteface -\n// export interface HMSPollQuestion {\n// index: number;\n// text: string;\n// type: HMSPollQuestionType;\n// skippable?: boolean;\n// duration?: number;\n// once?: boolean;\n// weight?: number;\n// negative?: boolean;\n// answerMinLen?: number;\n// answerMaxLen?: number;\n// options?: HMSPollQuestionOption[];\n// answer?: HMSPollQuestionAnswer;\n// responses?: HMSPollQuestionResponse[];\n// result?: HMSPollQuestionResult;\n// }\n"],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=HMSPollQuestionAnswer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["HMSPollQuestionAnswer.ts"],"sourcesContent":["/**\n Provides the correct answer for a quiz question to check users' responses against.\n */\nexport interface HMSPollQuestionAnswer {\n /**\n A flag indicating whether the answer should be hidden or not.\n */\n hidden: boolean;\n\n /**\n The index of the selected option (in case of single choice question).\n */\n option?: number;\n\n /**\n The list of indexes of selected options (in case of multiple choice question).\n */\n options?: number[];\n}\n\n// Web Inteface -\n// export interface HMSPollQuestionAnswer {\n// hidden: boolean; // if true answer will not be returned when poll is running\n// option?: number; // option index for correct answer, in case of single choice\n// options?: number[]; // list of options that shoould be in answer\n// text?: string; // answer text for answer.\n// case?: boolean; // if false case is ignored when comparing.\n// trim?: boolean; // if true, empty space is trimmer from start and end of asnwer.\n// }\n"],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=HMSPollQuestionCreateParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["HMSPollQuestionCreateParams.ts"],"sourcesContent":["import type { HMSPollQuestion } from './HMSPollQuestion';\nimport type { HMSPollQuestionOptionCreateParams } from './HMSPollQuestionOptionCreateParams';\nimport type { HMSPollQuestionQuizOptionCreateParams } from './HMSPollQuestionQuizOptionCreateParams';\n\nexport interface HMSPollQuestionCreateParams\n extends Pick<\n HMSPollQuestion,\n 'text' | 'skippable' | 'type' | 'answerMinLen' | 'answerMaxLen'\n > {\n /**\n * A flag indicating whether the question can be answered only once.\n */\n once?: HMSPollQuestion['once'];\n\n /**\n * The duration hint of the question in seconds. Can be used for setting a timeframe withing which a question can be responded to. Not enforced by the server.\n */\n duration?: HMSPollQuestion['duration'];\n\n /**\n * The index of the question within the poll.\n */\n index?: HMSPollQuestion['index'];\n\n /**\n * The options of the question.\n */\n options?:\n | HMSPollQuestionOptionCreateParams[]\n | HMSPollQuestionQuizOptionCreateParams[];\n\n /**\n * The weight of the question in scoring.\n */\n weight?: number;\n}\n"],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=HMSPollQuestionOption.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["HMSPollQuestionOption.ts"],"sourcesContent":["/**\n Represents an option for a poll question.\n */\nexport interface HMSPollQuestionOption {\n /**\n The index of the option within the question.\n */\n index: number;\n\n /**\n The text of the option.\n */\n text: string;\n\n /**\n The weight of the option in scoring.\n */\n weight: number; // (optional on web)\n\n /**\n The count of votes received for the option. `0` is the default value.\n */\n voteCount: number; // (optional on web)\n}\n"],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=HMSPollQuestionOptionCreateParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["HMSPollQuestionOptionCreateParams.ts"],"sourcesContent":["import type { HMSPollQuestionOption } from './HMSPollQuestionOption';\n\nexport interface HMSPollQuestionOptionCreateParams\n extends Pick<\n HMSPollQuestionOption,\n 'text'\n // | 'weight' // `weight` field is not required as of now\n > {}\n"],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=HMSPollQuestionQuizOptionCreateParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["HMSPollQuestionQuizOptionCreateParams.ts"],"sourcesContent":["import type { HMSPollQuestionOptionCreateParams } from './HMSPollQuestionOptionCreateParams';\n\nexport interface HMSPollQuestionQuizOptionCreateParams\n extends HMSPollQuestionOptionCreateParams {\n isCorrectAnswer: boolean;\n}\n"],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=HMSPollQuestionResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["HMSPollQuestionResponse.ts"],"sourcesContent":["import type { HMSPollQuestionType } from './HMSPollQuestionType';\nimport type { HMSPollResponsePeerInfo } from './HMSPollResponsePeerInfo';\n\n/**\n Represents a response for a poll question.\n */\nexport interface HMSPollQuestionResponse {\n /**\n The ID of the question associated with the response.\n */\n questionID: number;\n\n /**\n The type of the question associated with the response.\n */\n type: HMSPollQuestionType;\n\n /**\n A flag indicating whether the question was skipped or not.\n */\n skipped: boolean;\n\n /**\n The index of the selected option (in case of single choice question).\n */\n option: number;\n\n /**\n The list of indexes of selected options (in case of multiple choice question).\n */\n options?: number[];\n\n /**\n The text answer provided (in case of short/long answer question).\n */\n text: string;\n\n /**\n A flag indicating whether the response was updated from previous response.\n */\n update: boolean;\n\n /**\n Time taken to respond.\n */\n duration: number;\n\n /**\n The peer information associated with the response. Depends on the tracking type selected for poll.\n */\n peer?: HMSPollResponsePeerInfo;\n\n /**\n A flag indicating whether the response is final in case multiple responses were sent for this question.\n */\n responseFinal?: boolean;\n}\n\n// Web Interface -\n// export interface HMSPollQuestionResponse {\n// id?: string;\n// questionIndex: number;\n// peer?: HMSPollResponsePeerInfo;\n// type?: HMSPollQuestionType;\n// skipped?: boolean;\n// option?: number;\n// options?: number[];\n// text?: string;\n// update?: boolean; // SDK Needs to track whether we previously answered and set accordingly\n// duration?: number; // Time it took to answer the question for leaderboard\n// responseFinal?: boolean; // Indicates whether this is last update when fetching responses\n// }\n"],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=HMSPollQuestionResponseCreateParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["HMSPollQuestionResponseCreateParams.ts"],"sourcesContent":["import type { HMSPollQuestionResponse } from './HMSPollQuestionResponse';\n\nexport type HMSPollQuestionResponseCreateParams = Omit<\n HMSPollQuestionResponse,\n 'type' | 'peer' | 'update' | 'responseFinal'\n>;\n"],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=HMSPollQuestionResponseResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["HMSPollQuestionResponseResult.ts"],"sourcesContent":["/**\n * Represents the result of a poll question response.\n */\nexport interface HMSPollQuestionResponse {\n /**\n * The ID of the question associated with the response result.\n */\n question: number;\n\n /**\n * A flag indicating whether the response was correct or not in case of quiz.\n */\n correct?: boolean;\n\n /**\n * An error associated with the response result (if any).\n */\n error?: string;\n}\n"],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=HMSPollQuestionResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["HMSPollQuestionResult.ts"],"sourcesContent":["/**\n Represents the result of a poll question within a poll result.\n */\nexport interface HMSPollQuestionResult {\n /**\n The ID of the question associated with the result.\n */\n question: number;\n\n /**\n The type of the question associated with the result.\n */\n type: string;\n\n /**\n The vote counts for each option of the question.\n */\n optionVoteCounts: number[];\n\n /**\n The number of correct votes for the question.\n */\n correctVotes: number;\n\n /**\n The number of skipped votes for the question.\n */\n skippedVotes: number;\n\n /**\n The total number of votes received for the question.\n */\n totalVotes: number;\n}\n\n// Web Interface -\n// export interface HMSPollQuestionResult {\n// correctResponses?: number;\n// skippedCount?: number;\n// totalResponses?: number;\n// }\n"],"mappings":""}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HMSPollQuestionType = void 0;
7
+ let HMSPollQuestionType = exports.HMSPollQuestionType = /*#__PURE__*/function (HMSPollQuestionType) {
8
+ HMSPollQuestionType[HMSPollQuestionType["singleChoice"] = 0] = "singleChoice";
9
+ HMSPollQuestionType[HMSPollQuestionType["multipleChoice"] = 1] = "multipleChoice";
10
+ HMSPollQuestionType[HMSPollQuestionType["shortAnswer"] = 2] = "shortAnswer";
11
+ HMSPollQuestionType[HMSPollQuestionType["longAnswer"] = 3] = "longAnswer";
12
+ return HMSPollQuestionType;
13
+ }({});
14
+ //# sourceMappingURL=HMSPollQuestionType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["HMSPollQuestionType","exports"],"sources":["HMSPollQuestionType.ts"],"sourcesContent":["export enum HMSPollQuestionType {\n /**\n The question allows for a single choice answer.\n */\n singleChoice,\n\n /**\n The question allows for multiple choice answers.\n */\n multipleChoice,\n\n /**\n The question expects a short text answer.\n */\n shortAnswer,\n\n /**\n The question expects a long text answer.\n */\n longAnswer,\n}\n"],"mappings":";;;;;;IAAYA,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,0BAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAA,OAAnBA,mBAAmB;AAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=HMSPollResponsePeerInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["HMSPollResponsePeerInfo.ts"],"sourcesContent":["/**\n Represents the peer information associated with a poll response. The properties are filled according to HMSPollUserTrackingMode selected for the poll.\n */\nexport interface HMSPollResponsePeerInfo {\n /**\n The user hash associated with the peer.\n */\n userHash?: string;\n\n /**\n The peer ID associated with the response.\n */\n peerId?: string;\n\n /**\n The user ID associated with the peer.\n */\n customerUserId?: string;\n\n /**\n The username associated with the peer.\n */\n userName?: string;\n}\n"],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=HMSPollResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["HMSPollResult.ts"],"sourcesContent":["import type { HMSPollQuestionResult } from './HMSPollQuestionResult';\n\n/**\n Represents the result of a poll.\n */\nexport interface HMSPollResult {\n /**\n The total number of responses received for the poll.\n */\n totalResponse: number; // totalResponses?: number; (on web)\n\n /**\n The number of unique users who responded to the poll.\n */\n userCount: number; // totalUsers?: number; (on web)\n\n /**\n The maximum number of users in the room during the poll.\n */\n maxUserCount: number; // maxUsers?: number; (on web)\n\n /**\n The list of question results for the poll.\n */\n questions: HMSPollQuestionResult[];\n}\n"],"mappings":""}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HMSPollState = void 0;
7
+ let HMSPollState = exports.HMSPollState = /*#__PURE__*/function (HMSPollState) {
8
+ HMSPollState[HMSPollState["created"] = 0] = "created";
9
+ HMSPollState[HMSPollState["started"] = 1] = "started";
10
+ HMSPollState[HMSPollState["stopped"] = 2] = "stopped";
11
+ return HMSPollState;
12
+ }({});
13
+ //# sourceMappingURL=HMSPollState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["HMSPollState","exports"],"sources":["HMSPollState.ts"],"sourcesContent":["export enum HMSPollState {\n /**\n The poll is created but not started yet.\n */\n created,\n\n /**\n The poll has started and is currently active.\n */\n started,\n\n /**\n The poll has been stopped and is no longer active.\n */\n stopped,\n}\n"],"mappings":";;;;;;IAAYA,YAAY,GAAAC,OAAA,CAAAD,YAAA,0BAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HMSPollType = void 0;
7
+ let HMSPollType = exports.HMSPollType = /*#__PURE__*/function (HMSPollType) {
8
+ HMSPollType[HMSPollType["poll"] = 0] = "poll";
9
+ HMSPollType[HMSPollType["quiz"] = 1] = "quiz";
10
+ return HMSPollType;
11
+ }({});
12
+ //# sourceMappingURL=HMSPollType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["HMSPollType","exports"],"sources":["HMSPollType.ts"],"sourcesContent":["export enum HMSPollType {\n poll,\n quiz,\n}\n"],"mappings":";;;;;;IAAYA,WAAW,GAAAC,OAAA,CAAAD,WAAA,0BAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HMSPollUpdateType = void 0;
7
+ let HMSPollUpdateType = exports.HMSPollUpdateType = /*#__PURE__*/function (HMSPollUpdateType) {
8
+ HMSPollUpdateType[HMSPollUpdateType["started"] = 0] = "started";
9
+ HMSPollUpdateType[HMSPollUpdateType["resultsUpdated"] = 1] = "resultsUpdated";
10
+ HMSPollUpdateType[HMSPollUpdateType["stopped"] = 2] = "stopped";
11
+ return HMSPollUpdateType;
12
+ }({});
13
+ //# sourceMappingURL=HMSPollUpdateType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["HMSPollUpdateType","exports"],"sources":["HMSPollUpdateType.ts"],"sourcesContent":["export enum HMSPollUpdateType {\n started,\n resultsUpdated,\n stopped,\n}\n"],"mappings":";;;;;;IAAYA,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,0BAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HMSPollUserTrackingMode = void 0;
7
+ let HMSPollUserTrackingMode = exports.HMSPollUserTrackingMode = /*#__PURE__*/function (HMSPollUserTrackingMode) {
8
+ HMSPollUserTrackingMode[HMSPollUserTrackingMode["peerID"] = 0] = "peerID";
9
+ HMSPollUserTrackingMode[HMSPollUserTrackingMode["customerUserID"] = 1] = "customerUserID";
10
+ HMSPollUserTrackingMode[HMSPollUserTrackingMode["userName"] = 2] = "userName";
11
+ return HMSPollUserTrackingMode;
12
+ }({});
13
+ //# sourceMappingURL=HMSPollUserTrackingMode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["HMSPollUserTrackingMode","exports"],"sources":["HMSPollUserTrackingMode.ts"],"sourcesContent":["export enum HMSPollUserTrackingMode {\n /**\n User tracking is based on the peer ID.\n */\n peerID,\n\n /**\n User tracking is based on the customer ID.\n */\n customerUserID,\n\n /**\n User tracking is based on the username.\n */\n userName,\n}\n"],"mappings":";;;;;;IAAYA,uBAAuB,GAAAC,OAAA,CAAAD,uBAAA,0BAAvBA,uBAAuB;EAAvBA,uBAAuB,CAAvBA,uBAAuB;EAAvBA,uBAAuB,CAAvBA,uBAAuB;EAAvBA,uBAAuB,CAAvBA,uBAAuB;EAAA,OAAvBA,uBAAuB;AAAA"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.usePollsState = exports.setPollsState = void 0;
7
+ var _hmsInteractivityStore = require("../stores/hms-interactivity-store");
8
+ // use latest state (with component rerender)
9
+
10
+ const usePollsState = pollId => {
11
+ return (0, _hmsInteractivityStore.useHMSInteractivityStore)(state => pollId ? state.polls[pollId] : state.polls);
12
+ };
13
+
14
+ // state setters
15
+ exports.usePollsState = usePollsState;
16
+ const setPollsState = exports.setPollsState = _hmsInteractivityStore.useHMSInteractivityStore.getState().setPolls;
17
+ //# sourceMappingURL=polls.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_hmsInteractivityStore","require","usePollsState","pollId","useHMSInteractivityStore","state","polls","exports","setPollsState","getState","setPolls"],"sources":["polls.ts"],"sourcesContent":["import type { HMSPoll } from '../classes/polls/HMSPoll';\nimport { useHMSInteractivityStore } from '../stores/hms-interactivity-store';\n\n// use latest state (with component rerender)\n\nexport const usePollsState = (pollId?: HMSPoll['pollId']) => {\n return useHMSInteractivityStore((state) =>\n pollId ? state.polls[pollId] : state.polls\n );\n};\n\n// state setters\n\nexport const setPollsState = useHMSInteractivityStore.getState().setPolls;\n"],"mappings":";;;;;;AACA,IAAAA,sBAAA,GAAAC,OAAA;AAEA;;AAEO,MAAMC,aAAa,GAAIC,MAA0B,IAAK;EAC3D,OAAO,IAAAC,+CAAwB,EAAEC,KAAK,IACpCF,MAAM,GAAGE,KAAK,CAACC,KAAK,CAACH,MAAM,CAAC,GAAGE,KAAK,CAACC,KACvC,CAAC;AACH,CAAC;;AAED;AAAAC,OAAA,CAAAL,aAAA,GAAAA,aAAA;AAEO,MAAMM,aAAa,GAAAD,OAAA,CAAAC,aAAA,GAAGJ,+CAAwB,CAACK,QAAQ,CAAC,CAAC,CAACC,QAAQ"}
@@ -5,6 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  var _exportNames = {
7
7
  HMSRecordingState: true,
8
+ HMSPollQuestionType: true,
9
+ HMSPollType: true,
10
+ HMSPollUserTrackingMode: true,
11
+ HMSPollUpdateType: true,
12
+ HMSPollState: true,
13
+ HMSPollQuestion: true,
14
+ HMSPollQuestionOption: true,
8
15
  HMSManagerModule: true,
9
16
  useHmsViewsResolutionsState: true,
10
17
  checkNotifications: true
@@ -15,6 +22,48 @@ Object.defineProperty(exports, "HMSManagerModule", {
15
22
  return _HMSManagerModule.default;
16
23
  }
17
24
  });
25
+ Object.defineProperty(exports, "HMSPollQuestion", {
26
+ enumerable: true,
27
+ get: function () {
28
+ return _HMSPollQuestion.HMSPollQuestion;
29
+ }
30
+ });
31
+ Object.defineProperty(exports, "HMSPollQuestionOption", {
32
+ enumerable: true,
33
+ get: function () {
34
+ return _HMSPollQuestionOption.HMSPollQuestionOption;
35
+ }
36
+ });
37
+ Object.defineProperty(exports, "HMSPollQuestionType", {
38
+ enumerable: true,
39
+ get: function () {
40
+ return _HMSPollQuestionType.HMSPollQuestionType;
41
+ }
42
+ });
43
+ Object.defineProperty(exports, "HMSPollState", {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _HMSPollState.HMSPollState;
47
+ }
48
+ });
49
+ Object.defineProperty(exports, "HMSPollType", {
50
+ enumerable: true,
51
+ get: function () {
52
+ return _HMSPollType.HMSPollType;
53
+ }
54
+ });
55
+ Object.defineProperty(exports, "HMSPollUpdateType", {
56
+ enumerable: true,
57
+ get: function () {
58
+ return _HMSPollUpdateType.HMSPollUpdateType;
59
+ }
60
+ });
61
+ Object.defineProperty(exports, "HMSPollUserTrackingMode", {
62
+ enumerable: true,
63
+ get: function () {
64
+ return _HMSPollUserTrackingMode.HMSPollUserTrackingMode;
65
+ }
66
+ });
18
67
  Object.defineProperty(exports, "HMSRecordingState", {
19
68
  enumerable: true,
20
69
  get: function () {
@@ -1042,6 +1091,13 @@ Object.keys(_HMSStreamingState).forEach(function (key) {
1042
1091
  }
1043
1092
  });
1044
1093
  });
1094
+ var _HMSPollQuestionType = require("./classes/polls/HMSPollQuestionType");
1095
+ var _HMSPollType = require("./classes/polls/HMSPollType");
1096
+ var _HMSPollUserTrackingMode = require("./classes/polls/HMSPollUserTrackingMode");
1097
+ var _HMSPollUpdateType = require("./classes/polls/HMSPollUpdateType");
1098
+ var _HMSPollState = require("./classes/polls/HMSPollState");
1099
+ var _HMSPollQuestion = require("./classes/polls/HMSPollQuestion");
1100
+ var _HMSPollQuestionOption = require("./classes/polls/HMSPollQuestionOption");
1045
1101
  var _HMSManagerModule = _interopRequireDefault(require("./modules/HMSManagerModule"));
1046
1102
  var _HMSHLSPlayer = require("./components/HMSHLSPlayer");
1047
1103
  Object.keys(_HMSHLSPlayer).forEach(function (key) {
@@ -1069,6 +1125,18 @@ Object.keys(_useHMSPeerUpdates).forEach(function (key) {
1069
1125
  });
1070
1126
  var _hmsviews = require("./hooks/hmsviews");
1071
1127
  var _notification = require("./utils/notification");
1128
+ var _windowController = require("./utils/windowController");
1129
+ Object.keys(_windowController).forEach(function (key) {
1130
+ if (key === "default" || key === "__esModule") return;
1131
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
1132
+ if (key in exports && exports[key] === _windowController[key]) return;
1133
+ Object.defineProperty(exports, key, {
1134
+ enumerable: true,
1135
+ get: function () {
1136
+ return _windowController[key];
1137
+ }
1138
+ });
1139
+ });
1072
1140
  var _keyboard = require("./utils/keyboard");
1073
1141
  Object.keys(_keyboard).forEach(function (key) {
1074
1142
  if (key === "default" || key === "__esModule") return;