@cloudflare/realtimekit-ui 2.0.1 → 2.0.2-staging.1

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 (924) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/ChatHead-DzH-mYX1.js +11 -0
  3. package/dist/cjs/{TextMessage-492778db.js → TextMessage-5iqcrDk9.js} +9 -11
  4. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +10 -0
  5. package/dist/cjs/breakout-rooms-46jWgGiL.js +72 -0
  6. package/dist/cjs/breakout-rooms-manager-Bgk5FEK1.js +303 -0
  7. package/dist/cjs/{chat-4f5c28ca.js → chat-CiRLOYTj.js} +1 -1
  8. package/dist/cjs/{config-705c8f2c.js → config-Dr-kt-RY.js} +6 -5
  9. package/dist/cjs/debounce-BgZ6dvDk.js +659 -0
  10. package/dist/cjs/{debounce-7fa6354d.js → debounce-padcVDRF.js} +4 -6
  11. package/dist/cjs/{file-0b9afa34.js → file-BfaJmhHW.js} +1 -1
  12. package/dist/cjs/{floating-ui.dom.esm-9d940028.js → floating-ui.dom-D8vZii24.js} +3 -310
  13. package/dist/cjs/hark-qJk9qiLr.js +322 -0
  14. package/dist/cjs/{index-4366eb3b.js → index-BOQMsbCN.js} +2 -2
  15. package/dist/cjs/{index-2e5758b6.js → index-Bi2L8zQ7.js} +1202 -555
  16. package/dist/cjs/{index-6f8c1928.js → index-Ck9E7Wf2.js} +22 -31
  17. package/dist/cjs/index.cjs.js +14 -13
  18. package/dist/cjs/livestream-B1z1fq_f.js +78 -0
  19. package/dist/cjs/loader.cjs.js +3 -5
  20. package/dist/cjs/{merge-79537b1d.js → merge-CSoi4R44.js} +136 -17
  21. package/dist/cjs/{notification-8f4db150.js → notification-BM6CUHyL.js} +1 -1
  22. package/dist/cjs/realtimekit-ui.cjs.js +7 -7
  23. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +8 -9
  24. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +15 -14
  25. package/dist/cjs/rtk-ai_3.cjs.entry.js +19 -17
  26. package/dist/cjs/rtk-audio-grid.cjs.entry.js +12 -10
  27. package/dist/cjs/rtk-audio-tile.cjs.entry.js +13 -10
  28. package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +26 -23
  29. package/dist/cjs/rtk-avatar_26.cjs.entry.js +120 -123
  30. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +33 -27
  31. package/dist/cjs/rtk-breakout-rooms-manager_9.cjs.entry.js +38 -41
  32. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +11 -11
  33. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +20 -15
  34. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +8 -9
  35. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +11 -9
  36. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +9 -9
  37. package/dist/cjs/rtk-chat-message.cjs.entry.js +8 -8
  38. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +16 -12
  39. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +8 -8
  40. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +9 -9
  41. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +16 -12
  42. package/dist/cjs/rtk-clock.cjs.entry.js +11 -10
  43. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +5 -8
  44. package/dist/cjs/rtk-controlbar.cjs.entry.js +9 -9
  45. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +42 -48
  46. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +5 -8
  47. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +9 -10
  48. package/dist/cjs/rtk-dialog.cjs.entry.js +5 -8
  49. package/dist/cjs/rtk-ended-screen.cjs.entry.js +11 -9
  50. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +8 -8
  51. package/dist/cjs/rtk-file-message_3.cjs.entry.js +11 -14
  52. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +6 -9
  53. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +17 -15
  54. package/dist/cjs/rtk-grid.cjs.entry.js +28 -19
  55. package/dist/cjs/rtk-header.cjs.entry.js +9 -9
  56. package/dist/cjs/rtk-idle-screen.cjs.entry.js +14 -10
  57. package/dist/cjs/rtk-image-viewer.cjs.entry.js +7 -10
  58. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +8 -8
  59. package/dist/cjs/rtk-leave-button.cjs.entry.js +5 -8
  60. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +41 -52
  61. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +10 -10
  62. package/dist/cjs/rtk-logo.cjs.entry.js +14 -10
  63. package/dist/cjs/rtk-meeting-title.cjs.entry.js +5 -8
  64. package/dist/cjs/rtk-message-list-view.cjs.entry.js +12 -10
  65. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +8 -9
  66. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +16 -13
  67. package/dist/cjs/rtk-more-toggle.cjs.entry.js +5 -8
  68. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +11 -9
  69. package/dist/cjs/rtk-name-tag.cjs.entry.js +9 -10
  70. package/dist/cjs/rtk-network-indicator.cjs.entry.js +11 -9
  71. package/dist/cjs/rtk-notification.cjs.entry.js +13 -12
  72. package/dist/cjs/rtk-notifications.cjs.entry.js +22 -16
  73. package/dist/cjs/rtk-participant-count.cjs.entry.js +11 -11
  74. package/dist/cjs/rtk-participant-setup.cjs.entry.js +14 -10
  75. package/dist/cjs/rtk-participant_2.cjs.entry.js +29 -28
  76. package/dist/cjs/rtk-participants-audio.cjs.entry.js +11 -11
  77. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +33 -24
  78. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +16 -12
  79. package/dist/cjs/rtk-participants.cjs.entry.js +15 -11
  80. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +11 -9
  81. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +11 -13
  82. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +16 -12
  83. package/dist/cjs/rtk-poll_2.cjs.entry.js +8 -12
  84. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +16 -12
  85. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +8 -9
  86. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +8 -9
  87. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +8 -9
  88. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +9 -10
  89. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +10 -12
  90. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +5 -8
  91. package/dist/cjs/rtk-settings.cjs.entry.js +8 -9
  92. package/dist/cjs/rtk-setup-screen.cjs.entry.js +11 -12
  93. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +11 -9
  94. package/dist/cjs/rtk-sidebar.cjs.entry.js +17 -13
  95. package/dist/cjs/rtk-simple-grid.cjs.entry.js +11 -12
  96. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +7 -10
  97. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +8 -9
  98. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +11 -9
  99. package/dist/cjs/rtk-stage.cjs.entry.js +5 -8
  100. package/dist/cjs/rtk-transcript.cjs.entry.js +8 -9
  101. package/dist/cjs/rtk-transcripts.cjs.entry.js +14 -10
  102. package/dist/cjs/rtk-ui-provider.cjs.entry.js +28 -18
  103. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +8 -8
  104. package/dist/cjs/{sidebar-3d8abb05.js → sidebar-CaEYxWaS.js} +2 -2
  105. package/dist/cjs/{ui-store-b1ac9e83.js → ui-store-CTof0Q5V.js} +100 -813
  106. package/dist/collection/collection-manifest.json +3 -2
  107. package/dist/collection/components/rtk-ai/rtk-ai.js +16 -10
  108. package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +18 -11
  109. package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +9 -5
  110. package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +16 -10
  111. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +18 -11
  112. package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +15 -11
  113. package/dist/collection/components/rtk-avatar/rtk-avatar.js +15 -10
  114. package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +18 -13
  115. package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +7 -4
  116. package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +19 -12
  117. package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +12 -7
  118. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +11 -6
  119. package/dist/collection/components/rtk-button/rtk-button.js +9 -8
  120. package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +12 -8
  121. package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +16 -10
  122. package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +20 -12
  123. package/dist/collection/components/rtk-chat/rtk-chat.js +19 -11
  124. package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +16 -11
  125. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +16 -14
  126. package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +34 -26
  127. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +20 -14
  128. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +24 -14
  129. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +11 -8
  130. package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +20 -12
  131. package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +10 -8
  132. package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +18 -11
  133. package/dist/collection/components/rtk-clock/rtk-clock.js +8 -5
  134. package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +11 -6
  135. package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +17 -11
  136. package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.js +16 -14
  137. package/dist/collection/components/rtk-counter/rtk-counter.js +12 -9
  138. package/dist/collection/components/rtk-debugger/rtk-debugger.js +15 -9
  139. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +13 -8
  140. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +13 -8
  141. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +13 -8
  142. package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +18 -11
  143. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +13 -8
  144. package/dist/collection/components/rtk-dialog/rtk-dialog.js +18 -12
  145. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +17 -10
  146. package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +5 -3
  147. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +6 -4
  148. package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +7 -5
  149. package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +15 -9
  150. package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +5 -3
  151. package/dist/collection/components/rtk-file-message/rtk-file-message.js +9 -6
  152. package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +8 -7
  153. package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +13 -10
  154. package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +16 -10
  155. package/dist/collection/components/rtk-grid/rtk-grid.js +22 -15
  156. package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +14 -9
  157. package/dist/collection/components/rtk-header/rtk-header.js +17 -11
  158. package/dist/collection/components/rtk-icon/rtk-icon.js +6 -5
  159. package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +11 -6
  160. package/dist/collection/components/rtk-image-message/rtk-image-message.js +11 -7
  161. package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +7 -5
  162. package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +11 -7
  163. package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +2 -1
  164. package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +17 -10
  165. package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +14 -9
  166. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +11 -6
  167. package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +11 -7
  168. package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +11 -7
  169. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +16 -10
  170. package/dist/collection/components/rtk-logo/rtk-logo.js +9 -6
  171. package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.js +4 -4
  172. package/dist/collection/components/rtk-meeting/rtk-meeting.js +27 -19
  173. package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +7 -4
  174. package/dist/collection/components/rtk-menu/rtk-menu.js +13 -9
  175. package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +10 -7
  176. package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +6 -4
  177. package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +5 -4
  178. package/dist/collection/components/rtk-message-view/rtk-message-view.js +19 -17
  179. package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +16 -10
  180. package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +12 -8
  181. package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +31 -19
  182. package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +13 -8
  183. package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +16 -10
  184. package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +11 -6
  185. package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +16 -11
  186. package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +11 -7
  187. package/dist/collection/components/rtk-notification/rtk-notification.js +13 -9
  188. package/dist/collection/components/rtk-notifications/rtk-notifications.js +15 -9
  189. package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +11 -6
  190. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +14 -11
  191. package/dist/collection/components/rtk-participant/rtk-participant.js +15 -9
  192. package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +11 -7
  193. package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +19 -13
  194. package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +26 -17
  195. package/dist/collection/components/rtk-participants/rtk-participants.js +18 -11
  196. package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +7 -4
  197. package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +20 -13
  198. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +16 -10
  199. package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +18 -11
  200. package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +18 -12
  201. package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +16 -10
  202. package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +11 -6
  203. package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +9 -5
  204. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +20 -12
  205. package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +10 -6
  206. package/dist/collection/components/rtk-plugins/rtk-plugins.js +15 -9
  207. package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +18 -11
  208. package/dist/collection/components/rtk-poll/rtk-poll.js +12 -8
  209. package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +7 -4
  210. package/dist/collection/components/rtk-polls/rtk-polls.js +13 -8
  211. package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +18 -11
  212. package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +11 -7
  213. package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +15 -10
  214. package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +18 -11
  215. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +21 -14
  216. package/dist/collection/components/rtk-settings/rtk-settings.js +15 -9
  217. package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +15 -9
  218. package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +16 -10
  219. package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +15 -9
  220. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +17 -10
  221. package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +23 -14
  222. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +9 -8
  223. package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +19 -12
  224. package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +14 -9
  225. package/dist/collection/components/rtk-spinner/rtk-spinner.js +5 -3
  226. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +27 -17
  227. package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +11 -7
  228. package/dist/collection/components/rtk-stage/rtk-stage.js +7 -4
  229. package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +18 -11
  230. package/dist/collection/components/rtk-switch/rtk-switch.js +8 -6
  231. package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +18 -11
  232. package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +13 -11
  233. package/dist/collection/components/rtk-text-message/rtk-text-message.js +9 -6
  234. package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +3 -3
  235. package/dist/collection/components/rtk-tooltip/rtk-tooltip.js +13 -11
  236. package/dist/collection/components/rtk-transcript/rtk-transcript.js +5 -3
  237. package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +9 -5
  238. package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +18 -11
  239. package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +8 -5
  240. package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +6 -4
  241. package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +9 -5
  242. package/dist/collection/utils/livestream.js +1 -1
  243. package/dist/collection/utils/sync-with-store/ui-store.js +1 -1
  244. package/dist/components/index.d.ts +2 -0
  245. package/dist/components/index.js +1 -247
  246. package/dist/components/p-1sLF61J1.js +1 -0
  247. package/dist/components/p-7zlNLqpS.js +1 -0
  248. package/dist/components/p-B-k80wnP.js +1 -0
  249. package/dist/components/p-B1SWgSTZ.js +1 -0
  250. package/dist/components/p-B1wrArJr.js +1 -0
  251. package/dist/components/p-B4TnXODX.js +1 -0
  252. package/dist/components/p-B5-LNbkp.js +1 -0
  253. package/dist/components/p-B9MPybze.js +1 -0
  254. package/dist/components/p-BA_UY9k8.js +1 -0
  255. package/dist/components/p-BBHQOrFK.js +2 -0
  256. package/dist/{realtimekit-ui/p-598b792e.js → components/p-BCuMxcZN.js} +1 -1
  257. package/dist/components/p-BEOq_QN5.js +1 -0
  258. package/dist/components/p-BFTU3MAI.js +1 -0
  259. package/dist/components/p-BJKSFJeB.js +1 -0
  260. package/dist/components/p-BOYkqKBb.js +1 -0
  261. package/dist/components/p-BRbb3tLk.js +1 -0
  262. package/dist/components/p-BWNToYSb.js +1 -0
  263. package/dist/components/p-BYIBbfJ8.js +1 -0
  264. package/dist/components/p-BbJzI1u1.js +1 -0
  265. package/dist/components/p-BcCYogfR.js +1 -0
  266. package/dist/components/p-Bf4LuZWa.js +1 -0
  267. package/dist/{realtimekit-ui/p-1e62d63b.js → components/p-Bj1kNPpe.js} +1 -1
  268. package/dist/components/p-BjF9F_tX.js +1 -0
  269. package/dist/components/p-BoGbJ5PX.js +1 -0
  270. package/dist/components/p-BuZhKlht.js +1 -0
  271. package/dist/{realtimekit-ui/p-fa9759f4.js → components/p-Bx38FZhs.js} +1 -1
  272. package/dist/components/p-C-OVY3ug.js +1 -0
  273. package/dist/components/p-C0H4DNJM.js +1 -0
  274. package/dist/components/p-C0vp-Q7v.js +1 -0
  275. package/dist/components/p-C3Z3GLQh.js +1 -0
  276. package/dist/components/p-C4IJ0f9O.js +1 -0
  277. package/dist/components/p-C9EBo56b.js +1 -0
  278. package/dist/components/p-CABfszIM.js +1 -0
  279. package/dist/components/p-CB5hzEOM.js +1 -0
  280. package/dist/components/p-CBJjerDR.js +1 -0
  281. package/dist/components/p-CBLUz_2s.js +1 -0
  282. package/dist/components/p-CJsXePY3.js +1 -0
  283. package/dist/components/p-CKX6X8es.js +1 -0
  284. package/dist/components/p-COEreDeR.js +1 -0
  285. package/dist/components/p-COZSdc5O.js +1 -0
  286. package/dist/components/p-CQAMoQlr.js +1 -0
  287. package/dist/components/p-Cd-WpR0J.js +1 -0
  288. package/dist/components/p-CdV0xzjB.js +1 -0
  289. package/dist/components/p-Ce-9kgl0.js +1 -0
  290. package/dist/components/p-ChuKD7QS.js +1 -0
  291. package/dist/components/p-Cj44pA_c.js +1 -0
  292. package/dist/components/p-Cmu_4ZYL.js +1 -0
  293. package/dist/components/p-CnJQLwM-.js +1 -0
  294. package/dist/components/p-CpOL3OJd.js +1 -0
  295. package/dist/components/p-CphAED3J.js +1 -0
  296. package/dist/components/p-CqEcYX16.js +1 -0
  297. package/dist/components/p-CrExxJHe.js +1 -0
  298. package/dist/components/p-D0bZYAmS.js +1 -0
  299. package/dist/components/p-D1zAGrQ9.js +1 -0
  300. package/dist/components/p-D6vw6bT2.js +1 -0
  301. package/dist/{realtimekit-ui/p-6befaf17.js → components/p-D9HGXWKc.js} +1 -1
  302. package/dist/components/p-DBjcFAtV.js +1 -0
  303. package/dist/components/p-DCEjf6bL.js +1 -0
  304. package/dist/components/p-DD3_OTZn.js +1 -0
  305. package/dist/{realtimekit-ui/p-40be18ee.js → components/p-DDaHXyCC.js} +1 -1
  306. package/dist/components/p-DEOaS443.js +1 -0
  307. package/dist/components/p-DHSRRtn3.js +1 -0
  308. package/dist/components/p-DKjr_UXt.js +1 -0
  309. package/dist/components/p-DLocSBO3.js +1 -0
  310. package/dist/components/p-DNkzP2hS.js +1 -0
  311. package/dist/components/p-DP4RUNa1.js +1 -0
  312. package/dist/components/p-DU5mNJqK.js +1 -0
  313. package/dist/components/p-DY8ll5IU.js +1 -0
  314. package/dist/components/p-DZC8m5f_.js +1 -0
  315. package/dist/components/p-Daj_55_i.js +1 -0
  316. package/dist/components/p-DbHOlaHU.js +1 -0
  317. package/dist/components/p-De8YQHVd.js +1 -0
  318. package/dist/components/p-Deo_3EhX.js +1 -0
  319. package/dist/components/p-Df2S0-LE.js +1 -0
  320. package/dist/components/p-DfWuSKCq.js +1 -0
  321. package/dist/components/p-Dguuxuf6.js +1 -0
  322. package/dist/components/p-Dkd2PDJ-.js +1 -0
  323. package/dist/components/p-DlKMnwxL.js +1 -0
  324. package/dist/components/p-DmVA5ArE.js +1 -0
  325. package/dist/components/p-DnQYtb0h.js +1 -0
  326. package/dist/components/p-DuOnRaMu.js +1 -0
  327. package/dist/components/p-DxDYE5-a.js +1 -0
  328. package/dist/components/p-EuNHmu13.js +1 -0
  329. package/dist/components/p-FVFlyS1y.js +1 -0
  330. package/dist/components/p-FdeAvICb.js +1 -0
  331. package/dist/components/p-J1kxEVHe.js +1 -0
  332. package/dist/components/p-JyC3dswA.js +1 -0
  333. package/dist/components/p-KpmupjxR.js +1 -0
  334. package/dist/components/p-L9yK33Cu.js +1 -0
  335. package/dist/components/p-PXVZ-Szx.js +1 -0
  336. package/dist/components/p-ViKGg-Ct.js +1 -0
  337. package/dist/components/p-aS2wpIc0.js +1 -0
  338. package/dist/components/p-ak2clYhw.js +1 -0
  339. package/dist/components/p-e-OVL-Mg.js +1 -0
  340. package/dist/components/p-j2J2Tn1F.js +1 -0
  341. package/dist/components/p-oXrlIvqH.js +1 -0
  342. package/dist/components/p-pb5wDMuJ.js +1 -0
  343. package/dist/components/p-s-jAl7lc.js +1 -0
  344. package/dist/components/p-sSs7a3Ms.js +1 -0
  345. package/dist/components/p-t72veIFj.js +1 -0
  346. package/dist/components/p-uOh9MOi7.js +1 -0
  347. package/dist/components/p-wemYeTS7.js +1 -0
  348. package/dist/components/p-wl6GEzgG.js +1 -0
  349. package/dist/components/p-zBoy9v8V.js +1 -0
  350. package/dist/components/rtk-ai-toggle.js +1 -122
  351. package/dist/components/rtk-ai-transcriptions.js +1 -6
  352. package/dist/components/rtk-ai.js +1 -6
  353. package/dist/components/rtk-audio-grid.js +1 -145
  354. package/dist/components/rtk-audio-tile.js +1 -184
  355. package/dist/components/rtk-audio-visualizer.js +1 -6
  356. package/dist/components/rtk-avatar.js +1 -6
  357. package/dist/components/rtk-breakout-room-manager.js +1 -6
  358. package/dist/components/rtk-breakout-room-participants.js +1 -6
  359. package/dist/components/rtk-breakout-rooms-manager.js +1 -6
  360. package/dist/components/rtk-breakout-rooms-toggle.js +1 -128
  361. package/dist/components/rtk-broadcast-message-modal.js +1 -6
  362. package/dist/components/rtk-button.js +1 -6
  363. package/dist/components/rtk-camera-selector.js +1 -6
  364. package/dist/components/rtk-camera-toggle.js +1 -236
  365. package/dist/components/rtk-caption-toggle.js +1 -131
  366. package/dist/components/rtk-chat-composer-ui.js +1 -363
  367. package/dist/components/rtk-chat-composer-view.js +1 -6
  368. package/dist/components/rtk-chat-header.js +1 -6
  369. package/dist/components/rtk-chat-message.js +1 -6
  370. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -6
  371. package/dist/components/rtk-chat-messages-ui.js +1 -313
  372. package/dist/components/rtk-chat-search-results.js +1 -147
  373. package/dist/components/rtk-chat-selector-ui.js +1 -108
  374. package/dist/components/rtk-chat-selector.js +1 -6
  375. package/dist/components/rtk-chat-toggle.js +1 -181
  376. package/dist/components/rtk-chat.js +1 -6
  377. package/dist/components/rtk-clock.js +1 -128
  378. package/dist/components/rtk-confirmation-modal.js +1 -6
  379. package/dist/components/rtk-controlbar-button.js +1 -6
  380. package/dist/components/rtk-controlbar.js +1 -91
  381. package/dist/components/rtk-counter.js +1 -6
  382. package/dist/components/rtk-debugger-audio.js +1 -6
  383. package/dist/components/rtk-debugger-screenshare.js +1 -6
  384. package/dist/components/rtk-debugger-system.js +1 -6
  385. package/dist/components/rtk-debugger-toggle.js +1 -98
  386. package/dist/components/rtk-debugger-video.js +1 -6
  387. package/dist/components/rtk-debugger.js +1 -6
  388. package/dist/components/rtk-dialog-manager.js +1 -310
  389. package/dist/components/rtk-dialog.js +1 -6
  390. package/dist/components/rtk-draft-attachment-view.js +1 -6
  391. package/dist/components/rtk-emoji-picker-button.js +1 -6
  392. package/dist/components/rtk-emoji-picker.js +1 -6
  393. package/dist/components/rtk-ended-screen.js +1 -150
  394. package/dist/components/rtk-file-dropzone.js +1 -87
  395. package/dist/components/rtk-file-message-view.js +1 -6
  396. package/dist/components/rtk-file-message.js +1 -6
  397. package/dist/components/rtk-file-picker-button.js +1 -6
  398. package/dist/components/rtk-fullscreen-toggle.js +1 -6
  399. package/dist/components/rtk-grid-pagination.js +1 -206
  400. package/dist/components/rtk-grid.js +1 -468
  401. package/dist/components/rtk-header.js +1 -91
  402. package/dist/components/rtk-icon.js +1 -6
  403. package/dist/components/rtk-idle-screen.js +1 -139
  404. package/dist/components/rtk-image-message-view.js +1 -6
  405. package/dist/components/rtk-image-message.js +1 -6
  406. package/dist/components/rtk-image-viewer.js +1 -91
  407. package/dist/components/rtk-information-tooltip.js +1 -61
  408. package/dist/components/rtk-join-stage.js +1 -6
  409. package/dist/components/rtk-leave-button.js +1 -87
  410. package/dist/components/rtk-leave-meeting.js +1 -6
  411. package/dist/components/rtk-livestream-indicator.js +1 -6
  412. package/dist/components/rtk-livestream-player.js +1 -6
  413. package/dist/components/rtk-livestream-toggle.js +1 -181
  414. package/dist/components/rtk-logo.js +1 -6
  415. package/dist/components/rtk-markdown-view.js +1 -6
  416. package/dist/components/rtk-meeting-title.js +1 -74
  417. package/dist/components/rtk-meeting.js +1 -533
  418. package/dist/components/rtk-menu-item.js +1 -6
  419. package/dist/components/rtk-menu-list.js +1 -6
  420. package/dist/components/rtk-menu.js +1 -6
  421. package/dist/components/rtk-message-list-view.js +1 -324
  422. package/dist/components/rtk-message-view.js +1 -6
  423. package/dist/components/rtk-mic-toggle.js +1 -234
  424. package/dist/components/rtk-microphone-selector.js +1 -6
  425. package/dist/components/rtk-mixed-grid.js +1 -300
  426. package/dist/components/rtk-more-toggle.js +1 -112
  427. package/dist/components/rtk-mute-all-button.js +1 -127
  428. package/dist/components/rtk-mute-all-confirmation.js +1 -6
  429. package/dist/components/rtk-name-tag.js +1 -6
  430. package/dist/components/rtk-network-indicator.js +1 -117
  431. package/dist/components/rtk-notification.js +1 -6
  432. package/dist/components/rtk-notifications.js +1 -637
  433. package/dist/components/rtk-overlay-modal.js +1 -6
  434. package/dist/components/rtk-paginated-list.js +1 -6
  435. package/dist/components/rtk-participant-count.js +1 -118
  436. package/dist/components/rtk-participant-setup.js +1 -149
  437. package/dist/components/rtk-participant-tile.js +1 -6
  438. package/dist/components/rtk-participant.js +1 -6
  439. package/dist/components/rtk-participants-audio.js +1 -249
  440. package/dist/components/rtk-participants-stage-list.js +1 -6
  441. package/dist/components/rtk-participants-stage-queue.js +1 -6
  442. package/dist/components/rtk-participants-toggle.js +1 -195
  443. package/dist/components/rtk-participants-viewer-list.js +1 -6
  444. package/dist/components/rtk-participants-waiting-list.js +1 -6
  445. package/dist/components/rtk-participants.js +1 -306
  446. package/dist/components/rtk-permissions-message.js +1 -6
  447. package/dist/components/rtk-pinned-message-selector.js +1 -6
  448. package/dist/components/rtk-pip-toggle.js +1 -135
  449. package/dist/components/rtk-plugin-main.js +1 -6
  450. package/dist/components/rtk-plugins-toggle.js +1 -148
  451. package/dist/components/rtk-plugins.js +1 -6
  452. package/dist/components/rtk-poll-form.js +1 -6
  453. package/dist/components/rtk-poll.js +1 -6
  454. package/dist/components/rtk-polls-toggle.js +1 -160
  455. package/dist/components/rtk-polls.js +1 -6
  456. package/dist/components/rtk-recording-indicator.js +1 -96
  457. package/dist/components/rtk-recording-toggle.js +1 -203
  458. package/dist/components/rtk-screen-share-toggle.js +1 -317
  459. package/dist/components/rtk-screenshare-view.js +1 -194
  460. package/dist/components/rtk-settings-audio.js +1 -6
  461. package/dist/components/rtk-settings-toggle.js +1 -93
  462. package/dist/components/rtk-settings-video.js +1 -6
  463. package/dist/components/rtk-settings.js +1 -208
  464. package/dist/components/rtk-setup-screen.js +1 -215
  465. package/dist/components/rtk-sidebar-ui.js +1 -6
  466. package/dist/components/rtk-sidebar.js +1 -253
  467. package/dist/components/rtk-simple-grid.js +1 -149
  468. package/dist/components/rtk-speaker-selector.js +1 -6
  469. package/dist/components/rtk-spinner.js +1 -6
  470. package/dist/components/rtk-spotlight-grid.js +1 -135
  471. package/dist/components/rtk-spotlight-indicator.js +1 -6
  472. package/dist/components/rtk-stage-toggle.js +1 -195
  473. package/dist/components/rtk-stage.js +1 -61
  474. package/dist/components/rtk-switch.js +1 -6
  475. package/dist/components/rtk-tab-bar.js +1 -6
  476. package/dist/components/rtk-text-composer-view.js +1 -6
  477. package/dist/components/rtk-text-message-view.js +1 -6
  478. package/dist/components/rtk-text-message.js +1 -6
  479. package/dist/components/rtk-tooltip.js +1 -6
  480. package/dist/components/rtk-transcript.js +1 -6
  481. package/dist/components/rtk-transcripts.js +1 -199
  482. package/dist/components/rtk-ui-provider.js +1 -281
  483. package/dist/components/rtk-viewer-count.js +1 -6
  484. package/dist/components/rtk-virtualized-participant-list.js +1 -6
  485. package/dist/components/rtk-waiting-screen.js +1 -77
  486. package/dist/docs/docs-components.d.ts +37 -0
  487. package/dist/docs/docs-components.json +5693 -3069
  488. package/dist/docs/docs-vscode.json +78 -78
  489. package/dist/esm/ChatHead-BV_pLIJ6.js +9 -0
  490. package/dist/{components/p-1a950769.js → esm/TextMessage-DRvjfMBy.js} +9 -11
  491. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +7 -0
  492. package/dist/esm/breakout-rooms-Daj_55_i.js +64 -0
  493. package/dist/esm/breakout-rooms-manager-B1Qky9zO.js +301 -0
  494. package/dist/esm/{chat-1107a64f.js → chat-Zou036qQ.js} +1 -1
  495. package/dist/{components/p-9f0c9162.js → esm/config-BYcrCEso.js} +5 -4
  496. package/dist/esm/debounce-BLQbB67V.js +657 -0
  497. package/dist/{components/p-1dca17d1.js → esm/debounce-BYqYBLuN.js} +4 -6
  498. package/dist/{components/p-47314bc7.js → esm/file-6Fkktc2w.js} +1 -1
  499. package/dist/esm/{floating-ui.dom.esm-78a1e61c.js → floating-ui.dom-B1SWgSTZ.js} +3 -310
  500. package/dist/esm/hark-Dwnntwzh.js +320 -0
  501. package/dist/{components/p-bd10fae6.js → esm/index-7w76SzJW.js} +2 -2
  502. package/dist/{components/p-88bd1053.js → esm/index-BUsisVB6.js} +22 -31
  503. package/dist/esm/{index-55463a54.js → index-gJCRRBX0.js} +1198 -549
  504. package/dist/esm/index.js +13 -10
  505. package/dist/esm/livestream-C0vp-Q7v.js +73 -0
  506. package/dist/esm/loader.js +3614 -2781
  507. package/dist/{components/p-556de366.js → esm/merge-CiWMx7_3.js} +133 -15
  508. package/dist/{components/p-598b792e.js → esm/notification-DcR6dHfn.js} +1 -1
  509. package/dist/esm/realtimekit-ui.js +6 -5
  510. package/dist/esm/rtk-ai-toggle.entry.js +8 -7
  511. package/dist/esm/rtk-ai-transcriptions.entry.js +15 -12
  512. package/dist/esm/rtk-ai_3.entry.js +19 -15
  513. package/dist/esm/rtk-audio-grid.entry.js +12 -8
  514. package/dist/esm/rtk-audio-tile.entry.js +13 -8
  515. package/dist/esm/rtk-audio-visualizer_4.entry.js +26 -21
  516. package/dist/esm/rtk-avatar_26.entry.js +116 -117
  517. package/dist/esm/rtk-breakout-room-manager_3.entry.js +25 -17
  518. package/dist/esm/rtk-breakout-rooms-manager_9.entry.js +33 -34
  519. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +9 -7
  520. package/dist/esm/rtk-camera-selector_2.entry.js +20 -13
  521. package/dist/esm/rtk-camera-toggle.entry.js +8 -7
  522. package/dist/esm/rtk-caption-toggle.entry.js +11 -7
  523. package/dist/esm/rtk-chat-composer-ui.entry.js +9 -7
  524. package/dist/esm/rtk-chat-message.entry.js +8 -6
  525. package/dist/esm/rtk-chat-messages-ui.entry.js +16 -10
  526. package/dist/esm/rtk-chat-search-results.entry.js +8 -6
  527. package/dist/esm/rtk-chat-selector-ui.entry.js +9 -7
  528. package/dist/esm/rtk-chat-toggle.entry.js +16 -10
  529. package/dist/esm/rtk-clock.entry.js +11 -8
  530. package/dist/esm/rtk-controlbar-button.entry.js +5 -6
  531. package/dist/esm/rtk-controlbar.entry.js +9 -7
  532. package/dist/esm/rtk-debugger-audio_4.entry.js +42 -46
  533. package/dist/esm/rtk-debugger-toggle.entry.js +5 -6
  534. package/dist/esm/rtk-dialog-manager.entry.js +9 -8
  535. package/dist/esm/rtk-dialog.entry.js +5 -6
  536. package/dist/esm/rtk-ended-screen.entry.js +11 -7
  537. package/dist/esm/rtk-file-dropzone.entry.js +8 -6
  538. package/dist/esm/rtk-file-message_3.entry.js +11 -12
  539. package/dist/esm/rtk-fullscreen-toggle.entry.js +6 -7
  540. package/dist/esm/rtk-grid-pagination.entry.js +17 -13
  541. package/dist/esm/rtk-grid.entry.js +27 -16
  542. package/dist/esm/rtk-header.entry.js +9 -7
  543. package/dist/esm/rtk-idle-screen.entry.js +14 -8
  544. package/dist/esm/rtk-image-viewer.entry.js +7 -8
  545. package/dist/esm/rtk-information-tooltip.entry.js +8 -6
  546. package/dist/esm/rtk-leave-button.entry.js +5 -6
  547. package/dist/esm/rtk-livestream-indicator_3.entry.js +26 -35
  548. package/dist/esm/rtk-livestream-toggle.entry.js +9 -7
  549. package/dist/esm/rtk-logo.entry.js +14 -8
  550. package/dist/esm/rtk-meeting-title.entry.js +5 -6
  551. package/dist/esm/rtk-message-list-view.entry.js +12 -8
  552. package/dist/esm/rtk-mic-toggle.entry.js +8 -7
  553. package/dist/esm/rtk-mixed-grid.entry.js +16 -11
  554. package/dist/esm/rtk-more-toggle.entry.js +5 -6
  555. package/dist/esm/rtk-mute-all-button.entry.js +11 -7
  556. package/dist/esm/rtk-name-tag.entry.js +9 -8
  557. package/dist/esm/rtk-network-indicator.entry.js +11 -7
  558. package/dist/esm/rtk-notification.entry.js +13 -10
  559. package/dist/esm/rtk-notifications.entry.js +21 -13
  560. package/dist/esm/rtk-participant-count.entry.js +9 -7
  561. package/dist/esm/rtk-participant-setup.entry.js +14 -8
  562. package/dist/esm/rtk-participant_2.entry.js +24 -21
  563. package/dist/esm/rtk-participants-audio.entry.js +10 -8
  564. package/dist/esm/rtk-participants-stage-list_4.entry.js +33 -22
  565. package/dist/esm/rtk-participants-toggle.entry.js +16 -10
  566. package/dist/esm/rtk-participants.entry.js +15 -9
  567. package/dist/esm/rtk-pip-toggle.entry.js +11 -7
  568. package/dist/esm/rtk-plugin-main_2.entry.js +11 -11
  569. package/dist/esm/rtk-plugins-toggle.entry.js +16 -10
  570. package/dist/esm/rtk-poll_2.entry.js +8 -10
  571. package/dist/esm/rtk-polls-toggle.entry.js +16 -10
  572. package/dist/esm/rtk-recording-indicator.entry.js +8 -7
  573. package/dist/esm/rtk-recording-toggle.entry.js +8 -7
  574. package/dist/esm/rtk-screen-share-toggle.entry.js +8 -7
  575. package/dist/esm/rtk-screenshare-view.entry.js +9 -8
  576. package/dist/esm/rtk-settings-audio_2.entry.js +10 -10
  577. package/dist/esm/rtk-settings-toggle.entry.js +5 -6
  578. package/dist/esm/rtk-settings.entry.js +8 -7
  579. package/dist/esm/rtk-setup-screen.entry.js +11 -10
  580. package/dist/esm/rtk-sidebar-ui.entry.js +11 -7
  581. package/dist/esm/rtk-sidebar.entry.js +17 -11
  582. package/dist/esm/rtk-simple-grid.entry.js +11 -10
  583. package/dist/esm/rtk-spotlight-grid.entry.js +7 -8
  584. package/dist/esm/rtk-spotlight-indicator.entry.js +8 -7
  585. package/dist/esm/rtk-stage-toggle.entry.js +11 -7
  586. package/dist/esm/rtk-stage.entry.js +5 -6
  587. package/dist/esm/rtk-transcript.entry.js +8 -7
  588. package/dist/esm/rtk-transcripts.entry.js +14 -8
  589. package/dist/esm/rtk-ui-provider.entry.js +28 -16
  590. package/dist/esm/rtk-waiting-screen.entry.js +8 -6
  591. package/dist/{components/p-a3fc952e.js → esm/sidebar-B3trLKC3.js} +1 -1
  592. package/dist/{components/p-d5a12339.js → esm/ui-store-BtrgoOOT.js} +258 -762
  593. package/dist/realtimekit-ui/index.esm.js +1 -1
  594. package/dist/realtimekit-ui/p-04237239.entry.js +1 -0
  595. package/dist/realtimekit-ui/p-070294a1.entry.js +1 -0
  596. package/dist/realtimekit-ui/p-088325e7.entry.js +1 -0
  597. package/dist/realtimekit-ui/p-0d5719ea.entry.js +1 -0
  598. package/dist/realtimekit-ui/p-0fe1ced3.entry.js +1 -0
  599. package/dist/realtimekit-ui/p-105e4115.entry.js +1 -0
  600. package/dist/realtimekit-ui/{p-30fa04e9.entry.js → p-117f34c2.entry.js} +1 -1
  601. package/dist/realtimekit-ui/p-12fdd525.entry.js +1 -0
  602. package/dist/realtimekit-ui/{p-069cc080.entry.js → p-149c0b9c.entry.js} +1 -1
  603. package/dist/realtimekit-ui/p-15d96f62.entry.js +1 -0
  604. package/dist/realtimekit-ui/p-16fe4fca.entry.js +1 -0
  605. package/dist/realtimekit-ui/p-17690ef8.entry.js +1 -0
  606. package/dist/realtimekit-ui/p-1ae8c9ea.entry.js +1 -0
  607. package/dist/realtimekit-ui/p-1f114cc0.entry.js +1 -0
  608. package/dist/realtimekit-ui/{p-d93b1e9c.entry.js → p-213b9942.entry.js} +1 -1
  609. package/dist/realtimekit-ui/p-243e3c22.entry.js +1 -0
  610. package/dist/realtimekit-ui/p-25374ae7.entry.js +1 -0
  611. package/dist/realtimekit-ui/{p-71a44776.entry.js → p-26ba0489.entry.js} +1 -1
  612. package/dist/realtimekit-ui/p-27dcaef7.entry.js +1 -0
  613. package/dist/realtimekit-ui/p-2906e52d.entry.js +1 -0
  614. package/dist/realtimekit-ui/{p-58b2f1a1.entry.js → p-2baa2443.entry.js} +1 -1
  615. package/dist/realtimekit-ui/p-2bd8f726.entry.js +1 -0
  616. package/dist/realtimekit-ui/p-2c5a9a4d.entry.js +1 -0
  617. package/dist/realtimekit-ui/p-2f438543.entry.js +1 -0
  618. package/dist/realtimekit-ui/{p-b5f0c31d.entry.js → p-34ebceb7.entry.js} +1 -1
  619. package/dist/realtimekit-ui/p-3df3b56b.entry.js +1 -0
  620. package/dist/realtimekit-ui/{p-03db9946.entry.js → p-3f297e22.entry.js} +1 -1
  621. package/dist/realtimekit-ui/p-405addc8.entry.js +1 -0
  622. package/dist/realtimekit-ui/p-450803e1.entry.js +1 -0
  623. package/dist/realtimekit-ui/p-49f22238.entry.js +1 -0
  624. package/dist/realtimekit-ui/{p-4b9450d3.entry.js → p-49feda1f.entry.js} +1 -1
  625. package/dist/realtimekit-ui/p-4c1b7ee2.entry.js +1 -0
  626. package/dist/realtimekit-ui/{p-234a709e.entry.js → p-4f264d60.entry.js} +1 -1
  627. package/dist/realtimekit-ui/{p-64b59d46.entry.js → p-560dcff9.entry.js} +1 -1
  628. package/dist/realtimekit-ui/p-56261662.entry.js +1 -0
  629. package/dist/realtimekit-ui/p-5a1918a1.entry.js +1 -0
  630. package/dist/realtimekit-ui/p-5bd05c88.entry.js +1 -0
  631. package/dist/realtimekit-ui/p-5c5ca185.entry.js +1 -0
  632. package/dist/realtimekit-ui/p-6092b383.entry.js +1 -0
  633. package/dist/realtimekit-ui/p-650339c3.entry.js +1 -0
  634. package/dist/realtimekit-ui/p-65c856c3.entry.js +1 -0
  635. package/dist/realtimekit-ui/p-69ddb3a9.entry.js +1 -0
  636. package/dist/realtimekit-ui/p-6bc7af7a.entry.js +1 -0
  637. package/dist/realtimekit-ui/p-73bd1b57.entry.js +1 -0
  638. package/dist/realtimekit-ui/p-768c3c20.entry.js +1 -0
  639. package/dist/realtimekit-ui/p-779bd93e.entry.js +1 -0
  640. package/dist/realtimekit-ui/{p-72461b1f.entry.js → p-7d4e36b0.entry.js} +1 -1
  641. package/dist/realtimekit-ui/{p-1b26c15d.entry.js → p-7ff08b19.entry.js} +1 -1
  642. package/dist/realtimekit-ui/p-836455f1.entry.js +1 -0
  643. package/dist/realtimekit-ui/p-8dcf542b.entry.js +1 -0
  644. package/dist/realtimekit-ui/{p-91795fd7.entry.js → p-9810aada.entry.js} +1 -1
  645. package/dist/realtimekit-ui/p-9b089f06.entry.js +1 -0
  646. package/dist/realtimekit-ui/p-9b93c273.entry.js +1 -0
  647. package/dist/realtimekit-ui/p-9c5cf5a3.entry.js +1 -0
  648. package/dist/realtimekit-ui/p-9cb3685c.entry.js +1 -0
  649. package/dist/realtimekit-ui/p-B1SWgSTZ.js +1 -0
  650. package/dist/realtimekit-ui/{p-7e3c2d64.js → p-BCaKYPpD.js} +1 -1
  651. package/dist/realtimekit-ui/p-BCuMxcZN.js +1 -0
  652. package/dist/realtimekit-ui/p-BFTU3MAI.js +1 -0
  653. package/dist/realtimekit-ui/p-BIplIdLH.js +1 -0
  654. package/dist/realtimekit-ui/p-BJvHNbaa.js +1 -0
  655. package/dist/realtimekit-ui/p-BSWYrdZA.js +1 -0
  656. package/dist/realtimekit-ui/p-BWNToYSb.js +1 -0
  657. package/dist/realtimekit-ui/p-Bbls2zyp.js +1 -0
  658. package/dist/realtimekit-ui/p-C0vp-Q7v.js +1 -0
  659. package/dist/realtimekit-ui/p-C5Ah4uY5.js +1 -0
  660. package/dist/realtimekit-ui/p-CAqYddlg.js +1 -0
  661. package/dist/realtimekit-ui/{p-eccb6d78.js → p-CTFO-5XH.js} +1 -1
  662. package/dist/realtimekit-ui/p-CmmyVCoN.js +1 -0
  663. package/dist/realtimekit-ui/p-CqWk07gT.js +1 -0
  664. package/dist/realtimekit-ui/p-D9HGXWKc.js +1 -0
  665. package/dist/realtimekit-ui/p-Daj_55_i.js +1 -0
  666. package/dist/realtimekit-ui/p-Dg4b2aZr.js +1 -0
  667. package/dist/realtimekit-ui/p-DpAk_WQ6.js +1 -0
  668. package/dist/realtimekit-ui/p-DxDYE5-a.js +1 -0
  669. package/dist/realtimekit-ui/p-FdeAvICb.js +1 -0
  670. package/dist/realtimekit-ui/p-GSFejkz7.js +1 -0
  671. package/dist/realtimekit-ui/{p-3306b122.entry.js → p-a060fa07.entry.js} +1 -1
  672. package/dist/realtimekit-ui/{p-e0426f17.entry.js → p-a8b77530.entry.js} +1 -1
  673. package/dist/realtimekit-ui/p-ae94a77b.entry.js +1 -0
  674. package/dist/realtimekit-ui/p-b77aab62.entry.js +1 -0
  675. package/dist/realtimekit-ui/p-b81bfd1b.entry.js +1 -0
  676. package/dist/realtimekit-ui/p-bb7b542e.entry.js +1 -0
  677. package/dist/realtimekit-ui/p-c0fb33e4.entry.js +1 -0
  678. package/dist/realtimekit-ui/{p-88a01a0c.entry.js → p-c25c6602.entry.js} +1 -1
  679. package/dist/realtimekit-ui/p-d0baf267.entry.js +1 -0
  680. package/dist/realtimekit-ui/p-d39bd2e9.entry.js +1 -0
  681. package/dist/realtimekit-ui/p-d5ccf7d6.entry.js +1 -0
  682. package/dist/realtimekit-ui/{p-b89873a4.entry.js → p-d75ea8a3.entry.js} +1 -1
  683. package/dist/realtimekit-ui/p-db957a5c.entry.js +1 -0
  684. package/dist/realtimekit-ui/{p-d4a2594a.entry.js → p-ddd3808d.entry.js} +1 -1
  685. package/dist/realtimekit-ui/p-e0837ae7.entry.js +1 -0
  686. package/dist/realtimekit-ui/p-e12de42e.entry.js +1 -0
  687. package/dist/realtimekit-ui/p-e2f9a4fc.entry.js +1 -0
  688. package/dist/realtimekit-ui/{p-20390946.entry.js → p-e5293ed6.entry.js} +1 -1
  689. package/dist/realtimekit-ui/p-e87aa0f9.entry.js +1 -0
  690. package/dist/realtimekit-ui/p-e8823daa.entry.js +1 -0
  691. package/dist/realtimekit-ui/p-f101d6f9.entry.js +1 -0
  692. package/dist/realtimekit-ui/p-f4c228c8.entry.js +1 -0
  693. package/dist/realtimekit-ui/p-f5688e34.entry.js +1 -0
  694. package/dist/realtimekit-ui/p-fb973221.entry.js +1 -0
  695. package/dist/realtimekit-ui/p-fcde019e.entry.js +1 -0
  696. package/dist/realtimekit-ui/p-fd29249a.entry.js +1 -0
  697. package/dist/realtimekit-ui/p-gJCRRBX0.js +2 -0
  698. package/dist/realtimekit-ui/p-jvwnrxra.js +1 -0
  699. package/dist/realtimekit-ui/p-t72veIFj.js +1 -0
  700. package/dist/realtimekit-ui/p-uIA60Puf.js +1 -0
  701. package/dist/realtimekit-ui/p-vBfDtD_u.js +1 -0
  702. package/dist/realtimekit-ui/p-wWDkfcFk.js +1 -0
  703. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  704. package/dist/types/components/rtk-chat/rtk-chat.d.ts +1 -1
  705. package/dist/types/components.d.ts +1752 -255
  706. package/dist/types/stencil-public-runtime.d.ts +193 -12
  707. package/dist/types/utils/livestream.d.ts +60 -0
  708. package/dist/types/utils/sync-with-store/ui-store.d.ts +1 -1
  709. package/package.json +2 -3
  710. package/dist/cjs/ChatHead-777e6a2d.js +0 -13
  711. package/dist/cjs/debounce-6080cc73.js +0 -544
  712. package/dist/cjs/hark-c97d0a59.js +0 -301
  713. package/dist/components/p-00568bea.js +0 -159
  714. package/dist/components/p-026049ee.js +0 -81
  715. package/dist/components/p-03e354cd.js +0 -82
  716. package/dist/components/p-04ac37d4.js +0 -69
  717. package/dist/components/p-0529c72c.js +0 -218
  718. package/dist/components/p-084f7d6c.js +0 -95
  719. package/dist/components/p-08e39399.js +0 -199
  720. package/dist/components/p-0db812c2.js +0 -189
  721. package/dist/components/p-0e02697c.js +0 -85
  722. package/dist/components/p-1a7dd46a.js +0 -390
  723. package/dist/components/p-1cb276df.js +0 -104
  724. package/dist/components/p-240d48d1.js +0 -96
  725. package/dist/components/p-278a613b.js +0 -115
  726. package/dist/components/p-29e60132.js +0 -437
  727. package/dist/components/p-2f2b07a1.js +0 -168
  728. package/dist/components/p-303a7f1f.js +0 -122
  729. package/dist/components/p-32b95100.js +0 -128
  730. package/dist/components/p-32f14b1a.js +0 -260
  731. package/dist/components/p-36ad7fe2.js +0 -98
  732. package/dist/components/p-38d22d57.js +0 -11
  733. package/dist/components/p-3ae130f7.js +0 -178
  734. package/dist/components/p-3e0452c4.js +0 -48
  735. package/dist/components/p-3eedb9db.js +0 -68
  736. package/dist/components/p-3f882e7c.js +0 -299
  737. package/dist/components/p-42c2e598.js +0 -103
  738. package/dist/components/p-4351785c.js +0 -103
  739. package/dist/components/p-467abb0c.js +0 -159
  740. package/dist/components/p-48b6fb95.js +0 -327
  741. package/dist/components/p-4e02ee0f.js +0 -131
  742. package/dist/components/p-51b6f520.js +0 -43
  743. package/dist/components/p-549ab58f.js +0 -108
  744. package/dist/components/p-5654365f.js +0 -94
  745. package/dist/components/p-592cd396.js +0 -105
  746. package/dist/components/p-5995471c.js +0 -125
  747. package/dist/components/p-5c55e43b.js +0 -115
  748. package/dist/components/p-5d3174d1.js +0 -127
  749. package/dist/components/p-632cbbe7.js +0 -164
  750. package/dist/components/p-695e5dc5.js +0 -223
  751. package/dist/components/p-6a0a1a25.js +0 -101
  752. package/dist/components/p-6bd3b29c.js +0 -97
  753. package/dist/components/p-6c6cefb0.js +0 -224
  754. package/dist/components/p-70c0c7ce.js +0 -179
  755. package/dist/components/p-78db5933.js +0 -92
  756. package/dist/components/p-7d8d9693.js +0 -119
  757. package/dist/components/p-8133c228.js +0 -79
  758. package/dist/components/p-82df4307.js +0 -114
  759. package/dist/components/p-84deab1d.js +0 -126
  760. package/dist/components/p-85587a5c.js +0 -50
  761. package/dist/components/p-92ac782c.js +0 -37205
  762. package/dist/components/p-95721bd2.js +0 -159
  763. package/dist/components/p-96be6716.js +0 -120
  764. package/dist/components/p-9c89d7b1.js +0 -131
  765. package/dist/components/p-9f5d24b0.js +0 -191
  766. package/dist/components/p-a0a863fa.js +0 -61
  767. package/dist/components/p-a3c85ced.js +0 -177
  768. package/dist/components/p-a6cf88b5.js +0 -146
  769. package/dist/components/p-a83ccdbd.js +0 -40
  770. package/dist/components/p-a9d577bb.js +0 -271
  771. package/dist/components/p-ab37c121.js +0 -181
  772. package/dist/components/p-ae373651.js +0 -4028
  773. package/dist/components/p-b1a93be0.js +0 -1945
  774. package/dist/components/p-b1a9a7c4.js +0 -214
  775. package/dist/components/p-b1aeb013.js +0 -113
  776. package/dist/components/p-b29d03cf.js +0 -77
  777. package/dist/components/p-b4068392.js +0 -60
  778. package/dist/components/p-b75297d7.js +0 -299
  779. package/dist/components/p-b98fd0eb.js +0 -102
  780. package/dist/components/p-bece0226.js +0 -141
  781. package/dist/components/p-bf64e0af.js +0 -76
  782. package/dist/components/p-c3c8f309.js +0 -127
  783. package/dist/components/p-c82e13b1.js +0 -92
  784. package/dist/components/p-c9f704c4.js +0 -349
  785. package/dist/components/p-cbdd7a99.js +0 -542
  786. package/dist/components/p-cedfbbd4.js +0 -105
  787. package/dist/components/p-cf1903b1.js +0 -60
  788. package/dist/components/p-d411c80b.js +0 -463
  789. package/dist/components/p-d48b4170.js +0 -159
  790. package/dist/components/p-d83124b1.js +0 -86
  791. package/dist/components/p-de0b23a0.js +0 -210
  792. package/dist/components/p-e0129657.js +0 -201
  793. package/dist/components/p-e8809896.js +0 -147
  794. package/dist/components/p-ea359bb7.js +0 -90
  795. package/dist/components/p-ea4aa3bf.js +0 -86
  796. package/dist/components/p-ed0fad6d.js +0 -166
  797. package/dist/components/p-efabd2ce.js +0 -58
  798. package/dist/components/p-f179a6ff.js +0 -80
  799. package/dist/components/p-f867ebba.js +0 -122
  800. package/dist/components/p-f9cbb223.js +0 -127
  801. package/dist/components/p-f9f08610.js +0 -157
  802. package/dist/esm/ChatHead-148558a8.js +0 -11
  803. package/dist/esm/ResizeObserver.es-02979d4e.js +0 -928
  804. package/dist/esm/TextMessage-0ab2db20.js +0 -67
  805. package/dist/esm/browser-24d8ab3e.js +0 -3
  806. package/dist/esm/config-f3f01b9a.js +0 -352
  807. package/dist/esm/date-b1f78dea.js +0 -32
  808. package/dist/esm/debounce-0169a54d.js +0 -542
  809. package/dist/esm/debounce-430cbf00.js +0 -329
  810. package/dist/esm/file-6114f1a9.js +0 -57
  811. package/dist/esm/full-screen-d36ffc68.js +0 -50
  812. package/dist/esm/grid-a3ca5a3e.js +0 -96
  813. package/dist/esm/hark-6327d91e.js +0 -299
  814. package/dist/esm/index-3f51790f.js +0 -224
  815. package/dist/esm/index-b81ca899.js +0 -92
  816. package/dist/esm/init-error-ff5ead9a.js +0 -26
  817. package/dist/esm/join-error-e87be64a.js +0 -29
  818. package/dist/esm/merge-201ecd5c.js +0 -820
  819. package/dist/esm/notification-1ebf7700.js +0 -37
  820. package/dist/esm/scroll-2d8e810c.js +0 -13
  821. package/dist/esm/sidebar-a13dc215.js +0 -49
  822. package/dist/esm/ui-store-1bc7abc6.js +0 -4033
  823. package/dist/realtimekit-ui/p-012cd22a.entry.js +0 -1
  824. package/dist/realtimekit-ui/p-026e8157.entry.js +0 -1
  825. package/dist/realtimekit-ui/p-083e53cc.entry.js +0 -1
  826. package/dist/realtimekit-ui/p-0bd95245.entry.js +0 -1
  827. package/dist/realtimekit-ui/p-1e19ef2c.entry.js +0 -1
  828. package/dist/realtimekit-ui/p-217dcd9f.entry.js +0 -1
  829. package/dist/realtimekit-ui/p-26ffb189.entry.js +0 -1
  830. package/dist/realtimekit-ui/p-3540d2b0.entry.js +0 -1
  831. package/dist/realtimekit-ui/p-3707f1e0.entry.js +0 -1
  832. package/dist/realtimekit-ui/p-39c48b22.entry.js +0 -1
  833. package/dist/realtimekit-ui/p-3f882e7c.js +0 -1
  834. package/dist/realtimekit-ui/p-41fa7b4f.js +0 -1
  835. package/dist/realtimekit-ui/p-44fb5d40.entry.js +0 -1
  836. package/dist/realtimekit-ui/p-4564c9ff.entry.js +0 -1
  837. package/dist/realtimekit-ui/p-4ec77793.js +0 -1
  838. package/dist/realtimekit-ui/p-548f72ee.entry.js +0 -1
  839. package/dist/realtimekit-ui/p-5564adad.entry.js +0 -1
  840. package/dist/realtimekit-ui/p-5623d82e.entry.js +0 -1
  841. package/dist/realtimekit-ui/p-5862bcba.entry.js +0 -1
  842. package/dist/realtimekit-ui/p-62c4d1ba.entry.js +0 -1
  843. package/dist/realtimekit-ui/p-667c84b1.js +0 -1
  844. package/dist/realtimekit-ui/p-6b177ee6.entry.js +0 -1
  845. package/dist/realtimekit-ui/p-6c9a2464.entry.js +0 -1
  846. package/dist/realtimekit-ui/p-7649168e.entry.js +0 -1
  847. package/dist/realtimekit-ui/p-76f87172.entry.js +0 -1
  848. package/dist/realtimekit-ui/p-79060698.entry.js +0 -1
  849. package/dist/realtimekit-ui/p-7bdd688b.entry.js +0 -1
  850. package/dist/realtimekit-ui/p-7e4a3510.entry.js +0 -1
  851. package/dist/realtimekit-ui/p-80be0156.entry.js +0 -1
  852. package/dist/realtimekit-ui/p-85818728.entry.js +0 -1
  853. package/dist/realtimekit-ui/p-873a645c.entry.js +0 -1
  854. package/dist/realtimekit-ui/p-8c971978.entry.js +0 -1
  855. package/dist/realtimekit-ui/p-8cc4f116.entry.js +0 -1
  856. package/dist/realtimekit-ui/p-8edfe6fa.entry.js +0 -1
  857. package/dist/realtimekit-ui/p-8fa0ea33.entry.js +0 -1
  858. package/dist/realtimekit-ui/p-91c8f9d1.entry.js +0 -1
  859. package/dist/realtimekit-ui/p-93f88675.entry.js +0 -1
  860. package/dist/realtimekit-ui/p-9727a165.js +0 -1
  861. package/dist/realtimekit-ui/p-a0471508.entry.js +0 -1
  862. package/dist/realtimekit-ui/p-a056fd35.entry.js +0 -1
  863. package/dist/realtimekit-ui/p-a2693bee.entry.js +0 -1
  864. package/dist/realtimekit-ui/p-a47c017b.entry.js +0 -1
  865. package/dist/realtimekit-ui/p-a599f720.js +0 -2
  866. package/dist/realtimekit-ui/p-a9ab826e.entry.js +0 -1
  867. package/dist/realtimekit-ui/p-ae0bb894.js +0 -1
  868. package/dist/realtimekit-ui/p-b1a93be0.js +0 -1
  869. package/dist/realtimekit-ui/p-b27886ff.entry.js +0 -1
  870. package/dist/realtimekit-ui/p-b3f1ad3b.entry.js +0 -1
  871. package/dist/realtimekit-ui/p-b86e3e01.entry.js +0 -1
  872. package/dist/realtimekit-ui/p-bde05d24.entry.js +0 -1
  873. package/dist/realtimekit-ui/p-c57e0778.entry.js +0 -1
  874. package/dist/realtimekit-ui/p-c6a8ef1e.entry.js +0 -1
  875. package/dist/realtimekit-ui/p-c8bc3bb1.entry.js +0 -1
  876. package/dist/realtimekit-ui/p-c8f7b427.entry.js +0 -1
  877. package/dist/realtimekit-ui/p-c9d62ba7.entry.js +0 -1
  878. package/dist/realtimekit-ui/p-cbdd7a99.js +0 -1
  879. package/dist/realtimekit-ui/p-d0959773.entry.js +0 -1
  880. package/dist/realtimekit-ui/p-d59e0ecc.entry.js +0 -1
  881. package/dist/realtimekit-ui/p-d790f2be.entry.js +0 -1
  882. package/dist/realtimekit-ui/p-d7fd359f.entry.js +0 -1
  883. package/dist/realtimekit-ui/p-daf01d45.entry.js +0 -1
  884. package/dist/realtimekit-ui/p-db2a6aed.entry.js +0 -1
  885. package/dist/realtimekit-ui/p-de170ad4.entry.js +0 -1
  886. package/dist/realtimekit-ui/p-de31f5b0.entry.js +0 -1
  887. package/dist/realtimekit-ui/p-deaae495.entry.js +0 -1
  888. package/dist/realtimekit-ui/p-e59cc7d0.entry.js +0 -1
  889. package/dist/realtimekit-ui/p-ea03b1a0.entry.js +0 -1
  890. package/dist/realtimekit-ui/p-ede50497.entry.js +0 -1
  891. package/dist/realtimekit-ui/p-f47d4fe8.js +0 -1
  892. package/dist/realtimekit-ui/p-f52fdfb4.entry.js +0 -1
  893. package/dist/realtimekit-ui/p-fd80c28e.entry.js +0 -1
  894. package/dist/realtimekit-ui/p-ff971eea.entry.js +0 -1
  895. package/loader/package.json +0 -11
  896. /package/dist/cjs/{ResizeObserver.es-ba961f16.js → ResizeObserver.es-26EdCpEA.js} +0 -0
  897. /package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -0
  898. /package/dist/cjs/{browser-5538db4d.js → browser-qKzDfwbO.js} +0 -0
  899. /package/dist/cjs/{date-61ffcd0a.js → date-CObAPgSZ.js} +0 -0
  900. /package/dist/cjs/{full-screen-b02d13dd.js → full-screen-BRlJJI9n.js} +0 -0
  901. /package/dist/cjs/{grid-edc342a7.js → grid-D_7WOWNI.js} +0 -0
  902. /package/dist/cjs/{init-error-70ccf3b6.js → init-error-DIWXbjwA.js} +0 -0
  903. /package/dist/cjs/{join-error-c1eed98e.js → join-error-CZSJQxsP.js} +0 -0
  904. /package/dist/cjs/{scroll-c6404609.js → scroll-uQ4eWvC-.js} +0 -0
  905. /package/dist/cjs/{string-9bce3253.js → string-C1A6N-tA.js} +0 -0
  906. /package/dist/{realtimekit-ui/p-0752f2ba.js → components/p-BIplIdLH.js} +0 -0
  907. /package/dist/{realtimekit-ui/p-05186172.js → components/p-CAqYddlg.js} +0 -0
  908. /package/dist/{realtimekit-ui/p-b13ddb7d.js → components/p-CmmyVCoN.js} +0 -0
  909. /package/dist/{realtimekit-ui/p-3974d97a.js → components/p-GSFejkz7.js} +0 -0
  910. /package/dist/{realtimekit-ui/p-382270d8.js → components/p-jvwnrxra.js} +0 -0
  911. /package/dist/{realtimekit-ui/p-f7c2daba.js → components/p-vBfDtD_u.js} +0 -0
  912. /package/dist/{realtimekit-ui/p-cfa0b5c7.js → components/p-wWDkfcFk.js} +0 -0
  913. /package/dist/{components/p-f47d4fe8.js → esm/ResizeObserver.es-FdeAvICb.js} +0 -0
  914. /package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
  915. /package/dist/{components/p-05186172.js → esm/browser-CAqYddlg.js} +0 -0
  916. /package/dist/{components/p-382270d8.js → esm/date-jvwnrxra.js} +0 -0
  917. /package/dist/{components/p-3974d97a.js → esm/full-screen-GSFejkz7.js} +0 -0
  918. /package/dist/{components/p-b13ddb7d.js → esm/grid-CmmyVCoN.js} +0 -0
  919. /package/dist/{components/p-cfa0b5c7.js → esm/init-error-wWDkfcFk.js} +0 -0
  920. /package/dist/{components/p-f7c2daba.js → esm/join-error-vBfDtD_u.js} +0 -0
  921. /package/dist/{components/p-0752f2ba.js → esm/scroll-BIplIdLH.js} +0 -0
  922. /package/dist/esm/{string-068ce30a.js → string-vBD2htwQ.js} +0 -0
  923. /package/dist/realtimekit-ui/{p-e1255160.js → p-DQuL1Twl.js} +0 -0
  924. /package/dist/realtimekit-ui/{p-6f211c3e.js → p-vBD2htwQ.js} +0 -0
@@ -1,1945 +0,0 @@
1
- /**
2
- * Custom positioning reference element.
3
- * @see https://floating-ui.com/docs/virtual-elements
4
- */
5
-
6
- const sides = ['top', 'right', 'bottom', 'left'];
7
- const alignments = ['start', 'end'];
8
- const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
9
- const min = Math.min;
10
- const max = Math.max;
11
- const round = Math.round;
12
- const createCoords = v => ({
13
- x: v,
14
- y: v
15
- });
16
- const oppositeSideMap = {
17
- left: 'right',
18
- right: 'left',
19
- bottom: 'top',
20
- top: 'bottom'
21
- };
22
- function clamp(start, value, end) {
23
- return max(start, min(value, end));
24
- }
25
- function evaluate(value, param) {
26
- return typeof value === 'function' ? value(param) : value;
27
- }
28
- function getSide(placement) {
29
- return placement.split('-')[0];
30
- }
31
- function getAlignment(placement) {
32
- return placement.split('-')[1];
33
- }
34
- function getOppositeAxis(axis) {
35
- return axis === 'x' ? 'y' : 'x';
36
- }
37
- function getAxisLength(axis) {
38
- return axis === 'y' ? 'height' : 'width';
39
- }
40
- function getSideAxis(placement) {
41
- const firstChar = placement[0];
42
- return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';
43
- }
44
- function getAlignmentAxis(placement) {
45
- return getOppositeAxis(getSideAxis(placement));
46
- }
47
- function getAlignmentSides(placement, rects, rtl) {
48
- if (rtl === void 0) {
49
- rtl = false;
50
- }
51
- const alignment = getAlignment(placement);
52
- const alignmentAxis = getAlignmentAxis(placement);
53
- const length = getAxisLength(alignmentAxis);
54
- let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
55
- if (rects.reference[length] > rects.floating[length]) {
56
- mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
57
- }
58
- return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
59
- }
60
- function getExpandedPlacements(placement) {
61
- const oppositePlacement = getOppositePlacement(placement);
62
- return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
63
- }
64
- function getOppositeAlignmentPlacement(placement) {
65
- return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');
66
- }
67
- const lrPlacement = ['left', 'right'];
68
- const rlPlacement = ['right', 'left'];
69
- const tbPlacement = ['top', 'bottom'];
70
- const btPlacement = ['bottom', 'top'];
71
- function getSideList(side, isStart, rtl) {
72
- switch (side) {
73
- case 'top':
74
- case 'bottom':
75
- if (rtl) return isStart ? rlPlacement : lrPlacement;
76
- return isStart ? lrPlacement : rlPlacement;
77
- case 'left':
78
- case 'right':
79
- return isStart ? tbPlacement : btPlacement;
80
- default:
81
- return [];
82
- }
83
- }
84
- function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
85
- const alignment = getAlignment(placement);
86
- let list = getSideList(getSide(placement), direction === 'start', rtl);
87
- if (alignment) {
88
- list = list.map(side => side + "-" + alignment);
89
- if (flipAlignment) {
90
- list = list.concat(list.map(getOppositeAlignmentPlacement));
91
- }
92
- }
93
- return list;
94
- }
95
- function getOppositePlacement(placement) {
96
- const side = getSide(placement);
97
- return oppositeSideMap[side] + placement.slice(side.length);
98
- }
99
- function expandPaddingObject(padding) {
100
- return {
101
- top: 0,
102
- right: 0,
103
- bottom: 0,
104
- left: 0,
105
- ...padding
106
- };
107
- }
108
- function getPaddingObject(padding) {
109
- return typeof padding !== 'number' ? expandPaddingObject(padding) : {
110
- top: padding,
111
- right: padding,
112
- bottom: padding,
113
- left: padding
114
- };
115
- }
116
- function rectToClientRect(rect) {
117
- const {
118
- x,
119
- y,
120
- width,
121
- height
122
- } = rect;
123
- return {
124
- width,
125
- height,
126
- top: y,
127
- left: x,
128
- right: x + width,
129
- bottom: y + height,
130
- x,
131
- y
132
- };
133
- }
134
-
135
- function computeCoordsFromPlacement(_ref, placement, rtl) {
136
- let {
137
- reference,
138
- floating
139
- } = _ref;
140
- const sideAxis = getSideAxis(placement);
141
- const alignmentAxis = getAlignmentAxis(placement);
142
- const alignLength = getAxisLength(alignmentAxis);
143
- const side = getSide(placement);
144
- const isVertical = sideAxis === 'y';
145
- const commonX = reference.x + reference.width / 2 - floating.width / 2;
146
- const commonY = reference.y + reference.height / 2 - floating.height / 2;
147
- const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
148
- let coords;
149
- switch (side) {
150
- case 'top':
151
- coords = {
152
- x: commonX,
153
- y: reference.y - floating.height
154
- };
155
- break;
156
- case 'bottom':
157
- coords = {
158
- x: commonX,
159
- y: reference.y + reference.height
160
- };
161
- break;
162
- case 'right':
163
- coords = {
164
- x: reference.x + reference.width,
165
- y: commonY
166
- };
167
- break;
168
- case 'left':
169
- coords = {
170
- x: reference.x - floating.width,
171
- y: commonY
172
- };
173
- break;
174
- default:
175
- coords = {
176
- x: reference.x,
177
- y: reference.y
178
- };
179
- }
180
- switch (getAlignment(placement)) {
181
- case 'start':
182
- coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
183
- break;
184
- case 'end':
185
- coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
186
- break;
187
- }
188
- return coords;
189
- }
190
-
191
- /**
192
- * Resolves with an object of overflow side offsets that determine how much the
193
- * element is overflowing a given clipping boundary on each side.
194
- * - positive = overflowing the boundary by that number of pixels
195
- * - negative = how many pixels left before it will overflow
196
- * - 0 = lies flush with the boundary
197
- * @see https://floating-ui.com/docs/detectOverflow
198
- */
199
- async function detectOverflow(state, options) {
200
- var _await$platform$isEle;
201
- if (options === void 0) {
202
- options = {};
203
- }
204
- const {
205
- x,
206
- y,
207
- platform,
208
- rects,
209
- elements,
210
- strategy
211
- } = state;
212
- const {
213
- boundary = 'clippingAncestors',
214
- rootBoundary = 'viewport',
215
- elementContext = 'floating',
216
- altBoundary = false,
217
- padding = 0
218
- } = evaluate(options, state);
219
- const paddingObject = getPaddingObject(padding);
220
- const altContext = elementContext === 'floating' ? 'reference' : 'floating';
221
- const element = elements[altBoundary ? altContext : elementContext];
222
- const clippingClientRect = rectToClientRect(await platform.getClippingRect({
223
- element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
224
- boundary,
225
- rootBoundary,
226
- strategy
227
- }));
228
- const rect = elementContext === 'floating' ? {
229
- x,
230
- y,
231
- width: rects.floating.width,
232
- height: rects.floating.height
233
- } : rects.reference;
234
- const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
235
- const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
236
- x: 1,
237
- y: 1
238
- } : {
239
- x: 1,
240
- y: 1
241
- };
242
- const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
243
- elements,
244
- rect,
245
- offsetParent,
246
- strategy
247
- }) : rect);
248
- return {
249
- top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
250
- bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
251
- left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
252
- right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
253
- };
254
- }
255
-
256
- // Maximum number of resets that can occur before bailing to avoid infinite reset loops.
257
- const MAX_RESET_COUNT = 50;
258
-
259
- /**
260
- * Computes the `x` and `y` coordinates that will place the floating element
261
- * next to a given reference element.
262
- *
263
- * This export does not have any `platform` interface logic. You will need to
264
- * write one for the platform you are using Floating UI with.
265
- */
266
- const computePosition$1 = async (reference, floating, config) => {
267
- const {
268
- placement = 'bottom',
269
- strategy = 'absolute',
270
- middleware = [],
271
- platform
272
- } = config;
273
- const platformWithDetectOverflow = platform.detectOverflow ? platform : {
274
- ...platform,
275
- detectOverflow
276
- };
277
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
278
- let rects = await platform.getElementRects({
279
- reference,
280
- floating,
281
- strategy
282
- });
283
- let {
284
- x,
285
- y
286
- } = computeCoordsFromPlacement(rects, placement, rtl);
287
- let statefulPlacement = placement;
288
- let resetCount = 0;
289
- const middlewareData = {};
290
- for (let i = 0; i < middleware.length; i++) {
291
- const currentMiddleware = middleware[i];
292
- if (!currentMiddleware) {
293
- continue;
294
- }
295
- const {
296
- name,
297
- fn
298
- } = currentMiddleware;
299
- const {
300
- x: nextX,
301
- y: nextY,
302
- data,
303
- reset
304
- } = await fn({
305
- x,
306
- y,
307
- initialPlacement: placement,
308
- placement: statefulPlacement,
309
- strategy,
310
- middlewareData,
311
- rects,
312
- platform: platformWithDetectOverflow,
313
- elements: {
314
- reference,
315
- floating
316
- }
317
- });
318
- x = nextX != null ? nextX : x;
319
- y = nextY != null ? nextY : y;
320
- middlewareData[name] = {
321
- ...middlewareData[name],
322
- ...data
323
- };
324
- if (reset && resetCount < MAX_RESET_COUNT) {
325
- resetCount++;
326
- if (typeof reset === 'object') {
327
- if (reset.placement) {
328
- statefulPlacement = reset.placement;
329
- }
330
- if (reset.rects) {
331
- rects = reset.rects === true ? await platform.getElementRects({
332
- reference,
333
- floating,
334
- strategy
335
- }) : reset.rects;
336
- }
337
- ({
338
- x,
339
- y
340
- } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
341
- }
342
- i = -1;
343
- }
344
- }
345
- return {
346
- x,
347
- y,
348
- placement: statefulPlacement,
349
- strategy,
350
- middlewareData
351
- };
352
- };
353
-
354
- /**
355
- * Provides data to position an inner element of the floating element so that it
356
- * appears centered to the reference element.
357
- * @see https://floating-ui.com/docs/arrow
358
- */
359
- const arrow$1 = options => ({
360
- name: 'arrow',
361
- options,
362
- async fn(state) {
363
- const {
364
- x,
365
- y,
366
- placement,
367
- rects,
368
- platform,
369
- elements,
370
- middlewareData
371
- } = state;
372
- // Since `element` is required, we don't Partial<> the type.
373
- const {
374
- element,
375
- padding = 0
376
- } = evaluate(options, state) || {};
377
- if (element == null) {
378
- return {};
379
- }
380
- const paddingObject = getPaddingObject(padding);
381
- const coords = {
382
- x,
383
- y
384
- };
385
- const axis = getAlignmentAxis(placement);
386
- const length = getAxisLength(axis);
387
- const arrowDimensions = await platform.getDimensions(element);
388
- const isYAxis = axis === 'y';
389
- const minProp = isYAxis ? 'top' : 'left';
390
- const maxProp = isYAxis ? 'bottom' : 'right';
391
- const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
392
- const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
393
- const startDiff = coords[axis] - rects.reference[axis];
394
- const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
395
- let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
396
-
397
- // DOM platform can return `window` as the `offsetParent`.
398
- if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
399
- clientSize = elements.floating[clientProp] || rects.floating[length];
400
- }
401
- const centerToReference = endDiff / 2 - startDiff / 2;
402
-
403
- // If the padding is large enough that it causes the arrow to no longer be
404
- // centered, modify the padding so that it is centered.
405
- const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
406
- const minPadding = min(paddingObject[minProp], largestPossiblePadding);
407
- const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
408
-
409
- // Make sure the arrow doesn't overflow the floating element if the center
410
- // point is outside the floating element's bounds.
411
- const min$1 = minPadding;
412
- const max = clientSize - arrowDimensions[length] - maxPadding;
413
- const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
414
- const offset = clamp(min$1, center, max);
415
-
416
- // If the reference is small enough that the arrow's padding causes it to
417
- // to point to nothing for an aligned placement, adjust the offset of the
418
- // floating element itself. To ensure `shift()` continues to take action,
419
- // a single reset is performed when this is true.
420
- const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
421
- const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
422
- return {
423
- [axis]: coords[axis] + alignmentOffset,
424
- data: {
425
- [axis]: offset,
426
- centerOffset: center - offset - alignmentOffset,
427
- ...(shouldAddOffset && {
428
- alignmentOffset
429
- })
430
- },
431
- reset: shouldAddOffset
432
- };
433
- }
434
- });
435
-
436
- function getPlacementList(alignment, autoAlignment, allowedPlacements) {
437
- const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
438
- return allowedPlacementsSortedByAlignment.filter(placement => {
439
- if (alignment) {
440
- return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
441
- }
442
- return true;
443
- });
444
- }
445
- /**
446
- * Optimizes the visibility of the floating element by choosing the placement
447
- * that has the most space available automatically, without needing to specify a
448
- * preferred placement. Alternative to `flip`.
449
- * @see https://floating-ui.com/docs/autoPlacement
450
- */
451
- const autoPlacement$1 = function (options) {
452
- if (options === void 0) {
453
- options = {};
454
- }
455
- return {
456
- name: 'autoPlacement',
457
- options,
458
- async fn(state) {
459
- var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
460
- const {
461
- rects,
462
- middlewareData,
463
- placement,
464
- platform,
465
- elements
466
- } = state;
467
- const {
468
- crossAxis = false,
469
- alignment,
470
- allowedPlacements = placements,
471
- autoAlignment = true,
472
- ...detectOverflowOptions
473
- } = evaluate(options, state);
474
- const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
475
- const overflow = await platform.detectOverflow(state, detectOverflowOptions);
476
- const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
477
- const currentPlacement = placements$1[currentIndex];
478
- if (currentPlacement == null) {
479
- return {};
480
- }
481
- const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
482
-
483
- // Make `computeCoords` start from the right place.
484
- if (placement !== currentPlacement) {
485
- return {
486
- reset: {
487
- placement: placements$1[0]
488
- }
489
- };
490
- }
491
- const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
492
- const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
493
- placement: currentPlacement,
494
- overflows: currentOverflows
495
- }];
496
- const nextPlacement = placements$1[currentIndex + 1];
497
-
498
- // There are more placements to check.
499
- if (nextPlacement) {
500
- return {
501
- data: {
502
- index: currentIndex + 1,
503
- overflows: allOverflows
504
- },
505
- reset: {
506
- placement: nextPlacement
507
- }
508
- };
509
- }
510
- const placementsSortedByMostSpace = allOverflows.map(d => {
511
- const alignment = getAlignment(d.placement);
512
- return [d.placement, alignment && crossAxis ?
513
- // Check along the mainAxis and main crossAxis side.
514
- d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
515
- // Check only the mainAxis.
516
- d.overflows[0], d.overflows];
517
- }).sort((a, b) => a[1] - b[1]);
518
- const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
519
- // Aligned placements should not check their opposite crossAxis
520
- // side.
521
- getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
522
- const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
523
- if (resetPlacement !== placement) {
524
- return {
525
- data: {
526
- index: currentIndex + 1,
527
- overflows: allOverflows
528
- },
529
- reset: {
530
- placement: resetPlacement
531
- }
532
- };
533
- }
534
- return {};
535
- }
536
- };
537
- };
538
-
539
- /**
540
- * Optimizes the visibility of the floating element by flipping the `placement`
541
- * in order to keep it in view when the preferred placement(s) will overflow the
542
- * clipping boundary. Alternative to `autoPlacement`.
543
- * @see https://floating-ui.com/docs/flip
544
- */
545
- const flip$1 = function (options) {
546
- if (options === void 0) {
547
- options = {};
548
- }
549
- return {
550
- name: 'flip',
551
- options,
552
- async fn(state) {
553
- var _middlewareData$arrow, _middlewareData$flip;
554
- const {
555
- placement,
556
- middlewareData,
557
- rects,
558
- initialPlacement,
559
- platform,
560
- elements
561
- } = state;
562
- const {
563
- mainAxis: checkMainAxis = true,
564
- crossAxis: checkCrossAxis = true,
565
- fallbackPlacements: specifiedFallbackPlacements,
566
- fallbackStrategy = 'bestFit',
567
- fallbackAxisSideDirection = 'none',
568
- flipAlignment = true,
569
- ...detectOverflowOptions
570
- } = evaluate(options, state);
571
-
572
- // If a reset by the arrow was caused due to an alignment offset being
573
- // added, we should skip any logic now since `flip()` has already done its
574
- // work.
575
- // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
576
- if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
577
- return {};
578
- }
579
- const side = getSide(placement);
580
- const initialSideAxis = getSideAxis(initialPlacement);
581
- const isBasePlacement = getSide(initialPlacement) === initialPlacement;
582
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
583
- const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
584
- const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
585
- if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
586
- fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
587
- }
588
- const placements = [initialPlacement, ...fallbackPlacements];
589
- const overflow = await platform.detectOverflow(state, detectOverflowOptions);
590
- const overflows = [];
591
- let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
592
- if (checkMainAxis) {
593
- overflows.push(overflow[side]);
594
- }
595
- if (checkCrossAxis) {
596
- const sides = getAlignmentSides(placement, rects, rtl);
597
- overflows.push(overflow[sides[0]], overflow[sides[1]]);
598
- }
599
- overflowsData = [...overflowsData, {
600
- placement,
601
- overflows
602
- }];
603
-
604
- // One or more sides is overflowing.
605
- if (!overflows.every(side => side <= 0)) {
606
- var _middlewareData$flip2, _overflowsData$filter;
607
- const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
608
- const nextPlacement = placements[nextIndex];
609
- if (nextPlacement) {
610
- const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
611
- if (!ignoreCrossAxisOverflow ||
612
- // We leave the current main axis only if every placement on that axis
613
- // overflows the main axis.
614
- overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
615
- // Try next placement and re-run the lifecycle.
616
- return {
617
- data: {
618
- index: nextIndex,
619
- overflows: overflowsData
620
- },
621
- reset: {
622
- placement: nextPlacement
623
- }
624
- };
625
- }
626
- }
627
-
628
- // First, find the candidates that fit on the mainAxis side of overflow,
629
- // then find the placement that fits the best on the main crossAxis side.
630
- let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
631
-
632
- // Otherwise fallback.
633
- if (!resetPlacement) {
634
- switch (fallbackStrategy) {
635
- case 'bestFit':
636
- {
637
- var _overflowsData$filter2;
638
- const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
639
- if (hasFallbackAxisSideDirection) {
640
- const currentSideAxis = getSideAxis(d.placement);
641
- return currentSideAxis === initialSideAxis ||
642
- // Create a bias to the `y` side axis due to horizontal
643
- // reading directions favoring greater width.
644
- currentSideAxis === 'y';
645
- }
646
- return true;
647
- }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
648
- if (placement) {
649
- resetPlacement = placement;
650
- }
651
- break;
652
- }
653
- case 'initialPlacement':
654
- resetPlacement = initialPlacement;
655
- break;
656
- }
657
- }
658
- if (placement !== resetPlacement) {
659
- return {
660
- reset: {
661
- placement: resetPlacement
662
- }
663
- };
664
- }
665
- }
666
- return {};
667
- }
668
- };
669
- };
670
-
671
- function getSideOffsets(overflow, rect) {
672
- return {
673
- top: overflow.top - rect.height,
674
- right: overflow.right - rect.width,
675
- bottom: overflow.bottom - rect.height,
676
- left: overflow.left - rect.width
677
- };
678
- }
679
- function isAnySideFullyClipped(overflow) {
680
- return sides.some(side => overflow[side] >= 0);
681
- }
682
- /**
683
- * Provides data to hide the floating element in applicable situations, such as
684
- * when it is not in the same clipping context as the reference element.
685
- * @see https://floating-ui.com/docs/hide
686
- */
687
- const hide$1 = function (options) {
688
- if (options === void 0) {
689
- options = {};
690
- }
691
- return {
692
- name: 'hide',
693
- options,
694
- async fn(state) {
695
- const {
696
- rects,
697
- platform
698
- } = state;
699
- const {
700
- strategy = 'referenceHidden',
701
- ...detectOverflowOptions
702
- } = evaluate(options, state);
703
- switch (strategy) {
704
- case 'referenceHidden':
705
- {
706
- const overflow = await platform.detectOverflow(state, {
707
- ...detectOverflowOptions,
708
- elementContext: 'reference'
709
- });
710
- const offsets = getSideOffsets(overflow, rects.reference);
711
- return {
712
- data: {
713
- referenceHiddenOffsets: offsets,
714
- referenceHidden: isAnySideFullyClipped(offsets)
715
- }
716
- };
717
- }
718
- case 'escaped':
719
- {
720
- const overflow = await platform.detectOverflow(state, {
721
- ...detectOverflowOptions,
722
- altBoundary: true
723
- });
724
- const offsets = getSideOffsets(overflow, rects.floating);
725
- return {
726
- data: {
727
- escapedOffsets: offsets,
728
- escaped: isAnySideFullyClipped(offsets)
729
- }
730
- };
731
- }
732
- default:
733
- {
734
- return {};
735
- }
736
- }
737
- }
738
- };
739
- };
740
-
741
- function getBoundingRect(rects) {
742
- const minX = min(...rects.map(rect => rect.left));
743
- const minY = min(...rects.map(rect => rect.top));
744
- const maxX = max(...rects.map(rect => rect.right));
745
- const maxY = max(...rects.map(rect => rect.bottom));
746
- return {
747
- x: minX,
748
- y: minY,
749
- width: maxX - minX,
750
- height: maxY - minY
751
- };
752
- }
753
- function getRectsByLine(rects) {
754
- const sortedRects = rects.slice().sort((a, b) => a.y - b.y);
755
- const groups = [];
756
- let prevRect = null;
757
- for (let i = 0; i < sortedRects.length; i++) {
758
- const rect = sortedRects[i];
759
- if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {
760
- groups.push([rect]);
761
- } else {
762
- groups[groups.length - 1].push(rect);
763
- }
764
- prevRect = rect;
765
- }
766
- return groups.map(rect => rectToClientRect(getBoundingRect(rect)));
767
- }
768
- /**
769
- * Provides improved positioning for inline reference elements that can span
770
- * over multiple lines, such as hyperlinks or range selections.
771
- * @see https://floating-ui.com/docs/inline
772
- */
773
- const inline = function (options) {
774
- if (options === void 0) {
775
- options = {};
776
- }
777
- return {
778
- name: 'inline',
779
- options,
780
- async fn(state) {
781
- const {
782
- placement,
783
- elements,
784
- rects,
785
- platform,
786
- strategy
787
- } = state;
788
- // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
789
- // ClientRect's bounds, despite the event listener being triggered. A
790
- // padding of 2 seems to handle this issue.
791
- const {
792
- padding = 2,
793
- x,
794
- y
795
- } = evaluate(options, state);
796
- const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
797
- const clientRects = getRectsByLine(nativeClientRects);
798
- const fallback = rectToClientRect(getBoundingRect(nativeClientRects));
799
- const paddingObject = getPaddingObject(padding);
800
- function getBoundingClientRect() {
801
- // There are two rects and they are disjoined.
802
- if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
803
- // Find the first rect in which the point is fully inside.
804
- return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
805
- }
806
-
807
- // There are 2 or more connected rects.
808
- if (clientRects.length >= 2) {
809
- if (getSideAxis(placement) === 'y') {
810
- const firstRect = clientRects[0];
811
- const lastRect = clientRects[clientRects.length - 1];
812
- const isTop = getSide(placement) === 'top';
813
- const top = firstRect.top;
814
- const bottom = lastRect.bottom;
815
- const left = isTop ? firstRect.left : lastRect.left;
816
- const right = isTop ? firstRect.right : lastRect.right;
817
- const width = right - left;
818
- const height = bottom - top;
819
- return {
820
- top,
821
- bottom,
822
- left,
823
- right,
824
- width,
825
- height,
826
- x: left,
827
- y: top
828
- };
829
- }
830
- const isLeftSide = getSide(placement) === 'left';
831
- const maxRight = max(...clientRects.map(rect => rect.right));
832
- const minLeft = min(...clientRects.map(rect => rect.left));
833
- const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
834
- const top = measureRects[0].top;
835
- const bottom = measureRects[measureRects.length - 1].bottom;
836
- const left = minLeft;
837
- const right = maxRight;
838
- const width = right - left;
839
- const height = bottom - top;
840
- return {
841
- top,
842
- bottom,
843
- left,
844
- right,
845
- width,
846
- height,
847
- x: left,
848
- y: top
849
- };
850
- }
851
- return fallback;
852
- }
853
- const resetRects = await platform.getElementRects({
854
- reference: {
855
- getBoundingClientRect
856
- },
857
- floating: elements.floating,
858
- strategy
859
- });
860
- if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {
861
- return {
862
- reset: {
863
- rects: resetRects
864
- }
865
- };
866
- }
867
- return {};
868
- }
869
- };
870
- };
871
-
872
- const originSides = /*#__PURE__*/new Set(['left', 'top']);
873
-
874
- // For type backwards-compatibility, the `OffsetOptions` type was also
875
- // Derivable.
876
-
877
- async function convertValueToCoords(state, options) {
878
- const {
879
- placement,
880
- platform,
881
- elements
882
- } = state;
883
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
884
- const side = getSide(placement);
885
- const alignment = getAlignment(placement);
886
- const isVertical = getSideAxis(placement) === 'y';
887
- const mainAxisMulti = originSides.has(side) ? -1 : 1;
888
- const crossAxisMulti = rtl && isVertical ? -1 : 1;
889
- const rawValue = evaluate(options, state);
890
-
891
- // eslint-disable-next-line prefer-const
892
- let {
893
- mainAxis,
894
- crossAxis,
895
- alignmentAxis
896
- } = typeof rawValue === 'number' ? {
897
- mainAxis: rawValue,
898
- crossAxis: 0,
899
- alignmentAxis: null
900
- } : {
901
- mainAxis: rawValue.mainAxis || 0,
902
- crossAxis: rawValue.crossAxis || 0,
903
- alignmentAxis: rawValue.alignmentAxis
904
- };
905
- if (alignment && typeof alignmentAxis === 'number') {
906
- crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
907
- }
908
- return isVertical ? {
909
- x: crossAxis * crossAxisMulti,
910
- y: mainAxis * mainAxisMulti
911
- } : {
912
- x: mainAxis * mainAxisMulti,
913
- y: crossAxis * crossAxisMulti
914
- };
915
- }
916
-
917
- /**
918
- * Modifies the placement by translating the floating element along the
919
- * specified axes.
920
- * A number (shorthand for `mainAxis` or distance), or an axes configuration
921
- * object may be passed.
922
- * @see https://floating-ui.com/docs/offset
923
- */
924
- const offset$1 = function (options) {
925
- if (options === void 0) {
926
- options = 0;
927
- }
928
- return {
929
- name: 'offset',
930
- options,
931
- async fn(state) {
932
- var _middlewareData$offse, _middlewareData$arrow;
933
- const {
934
- x,
935
- y,
936
- placement,
937
- middlewareData
938
- } = state;
939
- const diffCoords = await convertValueToCoords(state, options);
940
-
941
- // If the placement is the same and the arrow caused an alignment offset
942
- // then we don't need to change the positioning coordinates.
943
- if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
944
- return {};
945
- }
946
- return {
947
- x: x + diffCoords.x,
948
- y: y + diffCoords.y,
949
- data: {
950
- ...diffCoords,
951
- placement
952
- }
953
- };
954
- }
955
- };
956
- };
957
-
958
- /**
959
- * Optimizes the visibility of the floating element by shifting it in order to
960
- * keep it in view when it will overflow the clipping boundary.
961
- * @see https://floating-ui.com/docs/shift
962
- */
963
- const shift$1 = function (options) {
964
- if (options === void 0) {
965
- options = {};
966
- }
967
- return {
968
- name: 'shift',
969
- options,
970
- async fn(state) {
971
- const {
972
- x,
973
- y,
974
- placement,
975
- platform
976
- } = state;
977
- const {
978
- mainAxis: checkMainAxis = true,
979
- crossAxis: checkCrossAxis = false,
980
- limiter = {
981
- fn: _ref => {
982
- let {
983
- x,
984
- y
985
- } = _ref;
986
- return {
987
- x,
988
- y
989
- };
990
- }
991
- },
992
- ...detectOverflowOptions
993
- } = evaluate(options, state);
994
- const coords = {
995
- x,
996
- y
997
- };
998
- const overflow = await platform.detectOverflow(state, detectOverflowOptions);
999
- const crossAxis = getSideAxis(getSide(placement));
1000
- const mainAxis = getOppositeAxis(crossAxis);
1001
- let mainAxisCoord = coords[mainAxis];
1002
- let crossAxisCoord = coords[crossAxis];
1003
- if (checkMainAxis) {
1004
- const minSide = mainAxis === 'y' ? 'top' : 'left';
1005
- const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
1006
- const min = mainAxisCoord + overflow[minSide];
1007
- const max = mainAxisCoord - overflow[maxSide];
1008
- mainAxisCoord = clamp(min, mainAxisCoord, max);
1009
- }
1010
- if (checkCrossAxis) {
1011
- const minSide = crossAxis === 'y' ? 'top' : 'left';
1012
- const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
1013
- const min = crossAxisCoord + overflow[minSide];
1014
- const max = crossAxisCoord - overflow[maxSide];
1015
- crossAxisCoord = clamp(min, crossAxisCoord, max);
1016
- }
1017
- const limitedCoords = limiter.fn({
1018
- ...state,
1019
- [mainAxis]: mainAxisCoord,
1020
- [crossAxis]: crossAxisCoord
1021
- });
1022
- return {
1023
- ...limitedCoords,
1024
- data: {
1025
- x: limitedCoords.x - x,
1026
- y: limitedCoords.y - y,
1027
- enabled: {
1028
- [mainAxis]: checkMainAxis,
1029
- [crossAxis]: checkCrossAxis
1030
- }
1031
- }
1032
- };
1033
- }
1034
- };
1035
- };
1036
- /**
1037
- * Built-in `limiter` that will stop `shift()` at a certain point.
1038
- */
1039
- const limitShift = function (options) {
1040
- if (options === void 0) {
1041
- options = {};
1042
- }
1043
- return {
1044
- options,
1045
- fn(state) {
1046
- const {
1047
- x,
1048
- y,
1049
- placement,
1050
- rects,
1051
- middlewareData
1052
- } = state;
1053
- const {
1054
- offset = 0,
1055
- mainAxis: checkMainAxis = true,
1056
- crossAxis: checkCrossAxis = true
1057
- } = evaluate(options, state);
1058
- const coords = {
1059
- x,
1060
- y
1061
- };
1062
- const crossAxis = getSideAxis(placement);
1063
- const mainAxis = getOppositeAxis(crossAxis);
1064
- let mainAxisCoord = coords[mainAxis];
1065
- let crossAxisCoord = coords[crossAxis];
1066
- const rawOffset = evaluate(offset, state);
1067
- const computedOffset = typeof rawOffset === 'number' ? {
1068
- mainAxis: rawOffset,
1069
- crossAxis: 0
1070
- } : {
1071
- mainAxis: 0,
1072
- crossAxis: 0,
1073
- ...rawOffset
1074
- };
1075
- if (checkMainAxis) {
1076
- const len = mainAxis === 'y' ? 'height' : 'width';
1077
- const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
1078
- const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
1079
- if (mainAxisCoord < limitMin) {
1080
- mainAxisCoord = limitMin;
1081
- } else if (mainAxisCoord > limitMax) {
1082
- mainAxisCoord = limitMax;
1083
- }
1084
- }
1085
- if (checkCrossAxis) {
1086
- var _middlewareData$offse, _middlewareData$offse2;
1087
- const len = mainAxis === 'y' ? 'width' : 'height';
1088
- const isOriginSide = originSides.has(getSide(placement));
1089
- const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
1090
- const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
1091
- if (crossAxisCoord < limitMin) {
1092
- crossAxisCoord = limitMin;
1093
- } else if (crossAxisCoord > limitMax) {
1094
- crossAxisCoord = limitMax;
1095
- }
1096
- }
1097
- return {
1098
- [mainAxis]: mainAxisCoord,
1099
- [crossAxis]: crossAxisCoord
1100
- };
1101
- }
1102
- };
1103
- };
1104
-
1105
- /**
1106
- * Provides data that allows you to change the size of the floating element —
1107
- * for instance, prevent it from overflowing the clipping boundary or match the
1108
- * width of the reference element.
1109
- * @see https://floating-ui.com/docs/size
1110
- */
1111
- const size = function (options) {
1112
- if (options === void 0) {
1113
- options = {};
1114
- }
1115
- return {
1116
- name: 'size',
1117
- options,
1118
- async fn(state) {
1119
- var _state$middlewareData, _state$middlewareData2;
1120
- const {
1121
- placement,
1122
- rects,
1123
- platform,
1124
- elements
1125
- } = state;
1126
- const {
1127
- apply = () => {},
1128
- ...detectOverflowOptions
1129
- } = evaluate(options, state);
1130
- const overflow = await platform.detectOverflow(state, detectOverflowOptions);
1131
- const side = getSide(placement);
1132
- const alignment = getAlignment(placement);
1133
- const isYAxis = getSideAxis(placement) === 'y';
1134
- const {
1135
- width,
1136
- height
1137
- } = rects.floating;
1138
- let heightSide;
1139
- let widthSide;
1140
- if (side === 'top' || side === 'bottom') {
1141
- heightSide = side;
1142
- widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
1143
- } else {
1144
- widthSide = side;
1145
- heightSide = alignment === 'end' ? 'top' : 'bottom';
1146
- }
1147
- const maximumClippingHeight = height - overflow.top - overflow.bottom;
1148
- const maximumClippingWidth = width - overflow.left - overflow.right;
1149
- const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
1150
- const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
1151
- const noShift = !state.middlewareData.shift;
1152
- let availableHeight = overflowAvailableHeight;
1153
- let availableWidth = overflowAvailableWidth;
1154
- if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
1155
- availableWidth = maximumClippingWidth;
1156
- }
1157
- if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
1158
- availableHeight = maximumClippingHeight;
1159
- }
1160
- if (noShift && !alignment) {
1161
- const xMin = max(overflow.left, 0);
1162
- const xMax = max(overflow.right, 0);
1163
- const yMin = max(overflow.top, 0);
1164
- const yMax = max(overflow.bottom, 0);
1165
- if (isYAxis) {
1166
- availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
1167
- } else {
1168
- availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
1169
- }
1170
- }
1171
- await apply({
1172
- ...state,
1173
- availableWidth,
1174
- availableHeight
1175
- });
1176
- const nextDimensions = await platform.getDimensions(elements.floating);
1177
- if (width !== nextDimensions.width || height !== nextDimensions.height) {
1178
- return {
1179
- reset: {
1180
- rects: true
1181
- }
1182
- };
1183
- }
1184
- return {};
1185
- }
1186
- };
1187
- };
1188
-
1189
- function hasWindow() {
1190
- return typeof window !== 'undefined';
1191
- }
1192
- function getNodeName(node) {
1193
- if (isNode(node)) {
1194
- return (node.nodeName || '').toLowerCase();
1195
- }
1196
- // Mocked nodes in testing environments may not be instances of Node. By
1197
- // returning `#document` an infinite loop won't occur.
1198
- // https://github.com/floating-ui/floating-ui/issues/2317
1199
- return '#document';
1200
- }
1201
- function getWindow(node) {
1202
- var _node$ownerDocument;
1203
- return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
1204
- }
1205
- function getDocumentElement(node) {
1206
- var _ref;
1207
- return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
1208
- }
1209
- function isNode(value) {
1210
- if (!hasWindow()) {
1211
- return false;
1212
- }
1213
- return value instanceof Node || value instanceof getWindow(value).Node;
1214
- }
1215
- function isElement(value) {
1216
- if (!hasWindow()) {
1217
- return false;
1218
- }
1219
- return value instanceof Element || value instanceof getWindow(value).Element;
1220
- }
1221
- function isHTMLElement(value) {
1222
- if (!hasWindow()) {
1223
- return false;
1224
- }
1225
- return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
1226
- }
1227
- function isShadowRoot(value) {
1228
- if (!hasWindow() || typeof ShadowRoot === 'undefined') {
1229
- return false;
1230
- }
1231
- return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
1232
- }
1233
- function isOverflowElement(element) {
1234
- const {
1235
- overflow,
1236
- overflowX,
1237
- overflowY,
1238
- display
1239
- } = getComputedStyle$1(element);
1240
- return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';
1241
- }
1242
- function isTableElement(element) {
1243
- return /^(table|td|th)$/.test(getNodeName(element));
1244
- }
1245
- function isTopLayer(element) {
1246
- try {
1247
- if (element.matches(':popover-open')) {
1248
- return true;
1249
- }
1250
- } catch (_e) {
1251
- // no-op
1252
- }
1253
- try {
1254
- return element.matches(':modal');
1255
- } catch (_e) {
1256
- return false;
1257
- }
1258
- }
1259
- const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
1260
- const containRe = /paint|layout|strict|content/;
1261
- const isNotNone = value => !!value && value !== 'none';
1262
- let isWebKitValue;
1263
- function isContainingBlock(elementOrCss) {
1264
- const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
1265
-
1266
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1267
- // https://drafts.csswg.org/css-transforms-2/#individual-transforms
1268
- return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');
1269
- }
1270
- function getContainingBlock(element) {
1271
- let currentNode = getParentNode(element);
1272
- while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
1273
- if (isContainingBlock(currentNode)) {
1274
- return currentNode;
1275
- } else if (isTopLayer(currentNode)) {
1276
- return null;
1277
- }
1278
- currentNode = getParentNode(currentNode);
1279
- }
1280
- return null;
1281
- }
1282
- function isWebKit() {
1283
- if (isWebKitValue == null) {
1284
- isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');
1285
- }
1286
- return isWebKitValue;
1287
- }
1288
- function isLastTraversableNode(node) {
1289
- return /^(html|body|#document)$/.test(getNodeName(node));
1290
- }
1291
- function getComputedStyle$1(element) {
1292
- return getWindow(element).getComputedStyle(element);
1293
- }
1294
- function getNodeScroll(element) {
1295
- if (isElement(element)) {
1296
- return {
1297
- scrollLeft: element.scrollLeft,
1298
- scrollTop: element.scrollTop
1299
- };
1300
- }
1301
- return {
1302
- scrollLeft: element.scrollX,
1303
- scrollTop: element.scrollY
1304
- };
1305
- }
1306
- function getParentNode(node) {
1307
- if (getNodeName(node) === 'html') {
1308
- return node;
1309
- }
1310
- const result =
1311
- // Step into the shadow DOM of the parent of a slotted node.
1312
- node.assignedSlot ||
1313
- // DOM Element detected.
1314
- node.parentNode ||
1315
- // ShadowRoot detected.
1316
- isShadowRoot(node) && node.host ||
1317
- // Fallback.
1318
- getDocumentElement(node);
1319
- return isShadowRoot(result) ? result.host : result;
1320
- }
1321
- function getNearestOverflowAncestor(node) {
1322
- const parentNode = getParentNode(node);
1323
- if (isLastTraversableNode(parentNode)) {
1324
- return node.ownerDocument ? node.ownerDocument.body : node.body;
1325
- }
1326
- if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
1327
- return parentNode;
1328
- }
1329
- return getNearestOverflowAncestor(parentNode);
1330
- }
1331
- function getOverflowAncestors(node, list, traverseIframes) {
1332
- var _node$ownerDocument2;
1333
- if (list === void 0) {
1334
- list = [];
1335
- }
1336
- if (traverseIframes === void 0) {
1337
- traverseIframes = true;
1338
- }
1339
- const scrollableAncestor = getNearestOverflowAncestor(node);
1340
- const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
1341
- const win = getWindow(scrollableAncestor);
1342
- if (isBody) {
1343
- const frameElement = getFrameElement(win);
1344
- return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
1345
- } else {
1346
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
1347
- }
1348
- }
1349
- function getFrameElement(win) {
1350
- return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
1351
- }
1352
-
1353
- function getCssDimensions(element) {
1354
- const css = getComputedStyle$1(element);
1355
- // In testing environments, the `width` and `height` properties are empty
1356
- // strings for SVG elements, returning NaN. Fallback to `0` in this case.
1357
- let width = parseFloat(css.width) || 0;
1358
- let height = parseFloat(css.height) || 0;
1359
- const hasOffset = isHTMLElement(element);
1360
- const offsetWidth = hasOffset ? element.offsetWidth : width;
1361
- const offsetHeight = hasOffset ? element.offsetHeight : height;
1362
- const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
1363
- if (shouldFallback) {
1364
- width = offsetWidth;
1365
- height = offsetHeight;
1366
- }
1367
- return {
1368
- width,
1369
- height,
1370
- $: shouldFallback
1371
- };
1372
- }
1373
-
1374
- function unwrapElement(element) {
1375
- return !isElement(element) ? element.contextElement : element;
1376
- }
1377
-
1378
- function getScale(element) {
1379
- const domElement = unwrapElement(element);
1380
- if (!isHTMLElement(domElement)) {
1381
- return createCoords(1);
1382
- }
1383
- const rect = domElement.getBoundingClientRect();
1384
- const {
1385
- width,
1386
- height,
1387
- $
1388
- } = getCssDimensions(domElement);
1389
- let x = ($ ? round(rect.width) : rect.width) / width;
1390
- let y = ($ ? round(rect.height) : rect.height) / height;
1391
-
1392
- // 0, NaN, or Infinity should always fallback to 1.
1393
-
1394
- if (!x || !Number.isFinite(x)) {
1395
- x = 1;
1396
- }
1397
- if (!y || !Number.isFinite(y)) {
1398
- y = 1;
1399
- }
1400
- return {
1401
- x,
1402
- y
1403
- };
1404
- }
1405
-
1406
- const noOffsets = /*#__PURE__*/createCoords(0);
1407
- function getVisualOffsets(element) {
1408
- const win = getWindow(element);
1409
- if (!isWebKit() || !win.visualViewport) {
1410
- return noOffsets;
1411
- }
1412
- return {
1413
- x: win.visualViewport.offsetLeft,
1414
- y: win.visualViewport.offsetTop
1415
- };
1416
- }
1417
- function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
1418
- if (isFixed === void 0) {
1419
- isFixed = false;
1420
- }
1421
- if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
1422
- return false;
1423
- }
1424
- return isFixed;
1425
- }
1426
-
1427
- function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
1428
- if (includeScale === void 0) {
1429
- includeScale = false;
1430
- }
1431
- if (isFixedStrategy === void 0) {
1432
- isFixedStrategy = false;
1433
- }
1434
- const clientRect = element.getBoundingClientRect();
1435
- const domElement = unwrapElement(element);
1436
- let scale = createCoords(1);
1437
- if (includeScale) {
1438
- if (offsetParent) {
1439
- if (isElement(offsetParent)) {
1440
- scale = getScale(offsetParent);
1441
- }
1442
- } else {
1443
- scale = getScale(element);
1444
- }
1445
- }
1446
- const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
1447
- let x = (clientRect.left + visualOffsets.x) / scale.x;
1448
- let y = (clientRect.top + visualOffsets.y) / scale.y;
1449
- let width = clientRect.width / scale.x;
1450
- let height = clientRect.height / scale.y;
1451
- if (domElement) {
1452
- const win = getWindow(domElement);
1453
- const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
1454
- let currentWin = win;
1455
- let currentIFrame = getFrameElement(currentWin);
1456
- while (currentIFrame && offsetParent && offsetWin !== currentWin) {
1457
- const iframeScale = getScale(currentIFrame);
1458
- const iframeRect = currentIFrame.getBoundingClientRect();
1459
- const css = getComputedStyle$1(currentIFrame);
1460
- const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
1461
- const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
1462
- x *= iframeScale.x;
1463
- y *= iframeScale.y;
1464
- width *= iframeScale.x;
1465
- height *= iframeScale.y;
1466
- x += left;
1467
- y += top;
1468
- currentWin = getWindow(currentIFrame);
1469
- currentIFrame = getFrameElement(currentWin);
1470
- }
1471
- }
1472
- return rectToClientRect({
1473
- width,
1474
- height,
1475
- x,
1476
- y
1477
- });
1478
- }
1479
-
1480
- // If <html> has a CSS width greater than the viewport, then this will be
1481
- // incorrect for RTL.
1482
- function getWindowScrollBarX(element, rect) {
1483
- const leftScroll = getNodeScroll(element).scrollLeft;
1484
- if (!rect) {
1485
- return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
1486
- }
1487
- return rect.left + leftScroll;
1488
- }
1489
-
1490
- function getHTMLOffset(documentElement, scroll) {
1491
- const htmlRect = documentElement.getBoundingClientRect();
1492
- const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
1493
- const y = htmlRect.top + scroll.scrollTop;
1494
- return {
1495
- x,
1496
- y
1497
- };
1498
- }
1499
-
1500
- function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
1501
- let {
1502
- elements,
1503
- rect,
1504
- offsetParent,
1505
- strategy
1506
- } = _ref;
1507
- const isFixed = strategy === 'fixed';
1508
- const documentElement = getDocumentElement(offsetParent);
1509
- const topLayer = elements ? isTopLayer(elements.floating) : false;
1510
- if (offsetParent === documentElement || topLayer && isFixed) {
1511
- return rect;
1512
- }
1513
- let scroll = {
1514
- scrollLeft: 0,
1515
- scrollTop: 0
1516
- };
1517
- let scale = createCoords(1);
1518
- const offsets = createCoords(0);
1519
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
1520
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1521
- if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1522
- scroll = getNodeScroll(offsetParent);
1523
- }
1524
- if (isOffsetParentAnElement) {
1525
- const offsetRect = getBoundingClientRect(offsetParent);
1526
- scale = getScale(offsetParent);
1527
- offsets.x = offsetRect.x + offsetParent.clientLeft;
1528
- offsets.y = offsetRect.y + offsetParent.clientTop;
1529
- }
1530
- }
1531
- const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
1532
- return {
1533
- width: rect.width * scale.x,
1534
- height: rect.height * scale.y,
1535
- x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
1536
- y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
1537
- };
1538
- }
1539
-
1540
- function getClientRects(element) {
1541
- return Array.from(element.getClientRects());
1542
- }
1543
-
1544
- // Gets the entire size of the scrollable document area, even extending outside
1545
- // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
1546
- function getDocumentRect(element) {
1547
- const html = getDocumentElement(element);
1548
- const scroll = getNodeScroll(element);
1549
- const body = element.ownerDocument.body;
1550
- const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
1551
- const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
1552
- let x = -scroll.scrollLeft + getWindowScrollBarX(element);
1553
- const y = -scroll.scrollTop;
1554
- if (getComputedStyle$1(body).direction === 'rtl') {
1555
- x += max(html.clientWidth, body.clientWidth) - width;
1556
- }
1557
- return {
1558
- width,
1559
- height,
1560
- x,
1561
- y
1562
- };
1563
- }
1564
-
1565
- // Safety check: ensure the scrollbar space is reasonable in case this
1566
- // calculation is affected by unusual styles.
1567
- // Most scrollbars leave 15-18px of space.
1568
- const SCROLLBAR_MAX = 25;
1569
- function getViewportRect(element, strategy) {
1570
- const win = getWindow(element);
1571
- const html = getDocumentElement(element);
1572
- const visualViewport = win.visualViewport;
1573
- let width = html.clientWidth;
1574
- let height = html.clientHeight;
1575
- let x = 0;
1576
- let y = 0;
1577
- if (visualViewport) {
1578
- width = visualViewport.width;
1579
- height = visualViewport.height;
1580
- const visualViewportBased = isWebKit();
1581
- if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
1582
- x = visualViewport.offsetLeft;
1583
- y = visualViewport.offsetTop;
1584
- }
1585
- }
1586
- const windowScrollbarX = getWindowScrollBarX(html);
1587
- // <html> `overflow: hidden` + `scrollbar-gutter: stable` reduces the
1588
- // visual width of the <html> but this is not considered in the size
1589
- // of `html.clientWidth`.
1590
- if (windowScrollbarX <= 0) {
1591
- const doc = html.ownerDocument;
1592
- const body = doc.body;
1593
- const bodyStyles = getComputedStyle(body);
1594
- const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
1595
- const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
1596
- if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
1597
- width -= clippingStableScrollbarWidth;
1598
- }
1599
- } else if (windowScrollbarX <= SCROLLBAR_MAX) {
1600
- // If the <body> scrollbar is on the left, the width needs to be extended
1601
- // by the scrollbar amount so there isn't extra space on the right.
1602
- width += windowScrollbarX;
1603
- }
1604
- return {
1605
- width,
1606
- height,
1607
- x,
1608
- y
1609
- };
1610
- }
1611
-
1612
- // Returns the inner client rect, subtracting scrollbars if present.
1613
- function getInnerBoundingClientRect(element, strategy) {
1614
- const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
1615
- const top = clientRect.top + element.clientTop;
1616
- const left = clientRect.left + element.clientLeft;
1617
- const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
1618
- const width = element.clientWidth * scale.x;
1619
- const height = element.clientHeight * scale.y;
1620
- const x = left * scale.x;
1621
- const y = top * scale.y;
1622
- return {
1623
- width,
1624
- height,
1625
- x,
1626
- y
1627
- };
1628
- }
1629
- function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
1630
- let rect;
1631
- if (clippingAncestor === 'viewport') {
1632
- rect = getViewportRect(element, strategy);
1633
- } else if (clippingAncestor === 'document') {
1634
- rect = getDocumentRect(getDocumentElement(element));
1635
- } else if (isElement(clippingAncestor)) {
1636
- rect = getInnerBoundingClientRect(clippingAncestor, strategy);
1637
- } else {
1638
- const visualOffsets = getVisualOffsets(element);
1639
- rect = {
1640
- x: clippingAncestor.x - visualOffsets.x,
1641
- y: clippingAncestor.y - visualOffsets.y,
1642
- width: clippingAncestor.width,
1643
- height: clippingAncestor.height
1644
- };
1645
- }
1646
- return rectToClientRect(rect);
1647
- }
1648
- function hasFixedPositionAncestor(element, stopNode) {
1649
- const parentNode = getParentNode(element);
1650
- if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
1651
- return false;
1652
- }
1653
- return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
1654
- }
1655
-
1656
- // A "clipping ancestor" is an `overflow` element with the characteristic of
1657
- // clipping (or hiding) child elements. This returns all clipping ancestors
1658
- // of the given element up the tree.
1659
- function getClippingElementAncestors(element, cache) {
1660
- const cachedResult = cache.get(element);
1661
- if (cachedResult) {
1662
- return cachedResult;
1663
- }
1664
- let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
1665
- let currentContainingBlockComputedStyle = null;
1666
- const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
1667
- let currentNode = elementIsFixed ? getParentNode(element) : element;
1668
-
1669
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1670
- while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
1671
- const computedStyle = getComputedStyle$1(currentNode);
1672
- const currentNodeIsContaining = isContainingBlock(currentNode);
1673
- if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
1674
- currentContainingBlockComputedStyle = null;
1675
- }
1676
- const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === 'absolute' || currentContainingBlockComputedStyle.position === 'fixed') || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
1677
- if (shouldDropCurrentNode) {
1678
- // Drop non-containing blocks.
1679
- result = result.filter(ancestor => ancestor !== currentNode);
1680
- } else {
1681
- // Record last containing block for next iteration.
1682
- currentContainingBlockComputedStyle = computedStyle;
1683
- }
1684
- currentNode = getParentNode(currentNode);
1685
- }
1686
- cache.set(element, result);
1687
- return result;
1688
- }
1689
-
1690
- // Gets the maximum area that the element is visible in due to any number of
1691
- // clipping ancestors.
1692
- function getClippingRect(_ref) {
1693
- let {
1694
- element,
1695
- boundary,
1696
- rootBoundary,
1697
- strategy
1698
- } = _ref;
1699
- const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
1700
- const clippingAncestors = [...elementClippingAncestors, rootBoundary];
1701
- const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
1702
- let top = firstRect.top;
1703
- let right = firstRect.right;
1704
- let bottom = firstRect.bottom;
1705
- let left = firstRect.left;
1706
- for (let i = 1; i < clippingAncestors.length; i++) {
1707
- const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
1708
- top = max(rect.top, top);
1709
- right = min(rect.right, right);
1710
- bottom = min(rect.bottom, bottom);
1711
- left = max(rect.left, left);
1712
- }
1713
- return {
1714
- width: right - left,
1715
- height: bottom - top,
1716
- x: left,
1717
- y: top
1718
- };
1719
- }
1720
-
1721
- function getDimensions(element) {
1722
- const {
1723
- width,
1724
- height
1725
- } = getCssDimensions(element);
1726
- return {
1727
- width,
1728
- height
1729
- };
1730
- }
1731
-
1732
- function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
1733
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
1734
- const documentElement = getDocumentElement(offsetParent);
1735
- const isFixed = strategy === 'fixed';
1736
- const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
1737
- let scroll = {
1738
- scrollLeft: 0,
1739
- scrollTop: 0
1740
- };
1741
- const offsets = createCoords(0);
1742
-
1743
- // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
1744
- // Firefox with layout.scrollbar.side = 3 in about:config to test this.
1745
- function setLeftRTLScrollbarOffset() {
1746
- offsets.x = getWindowScrollBarX(documentElement);
1747
- }
1748
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1749
- if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1750
- scroll = getNodeScroll(offsetParent);
1751
- }
1752
- if (isOffsetParentAnElement) {
1753
- const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
1754
- offsets.x = offsetRect.x + offsetParent.clientLeft;
1755
- offsets.y = offsetRect.y + offsetParent.clientTop;
1756
- } else if (documentElement) {
1757
- setLeftRTLScrollbarOffset();
1758
- }
1759
- }
1760
- if (isFixed && !isOffsetParentAnElement && documentElement) {
1761
- setLeftRTLScrollbarOffset();
1762
- }
1763
- const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
1764
- const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
1765
- const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
1766
- return {
1767
- x,
1768
- y,
1769
- width: rect.width,
1770
- height: rect.height
1771
- };
1772
- }
1773
-
1774
- function isStaticPositioned(element) {
1775
- return getComputedStyle$1(element).position === 'static';
1776
- }
1777
-
1778
- function getTrueOffsetParent(element, polyfill) {
1779
- if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
1780
- return null;
1781
- }
1782
- if (polyfill) {
1783
- return polyfill(element);
1784
- }
1785
- let rawOffsetParent = element.offsetParent;
1786
-
1787
- // Firefox returns the <html> element as the offsetParent if it's non-static,
1788
- // while Chrome and Safari return the <body> element. The <body> element must
1789
- // be used to perform the correct calculations even if the <html> element is
1790
- // non-static.
1791
- if (getDocumentElement(element) === rawOffsetParent) {
1792
- rawOffsetParent = rawOffsetParent.ownerDocument.body;
1793
- }
1794
- return rawOffsetParent;
1795
- }
1796
-
1797
- // Gets the closest ancestor positioned element. Handles some edge cases,
1798
- // such as table ancestors and cross browser bugs.
1799
- function getOffsetParent(element, polyfill) {
1800
- const win = getWindow(element);
1801
- if (isTopLayer(element)) {
1802
- return win;
1803
- }
1804
- if (!isHTMLElement(element)) {
1805
- let svgOffsetParent = getParentNode(element);
1806
- while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
1807
- if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
1808
- return svgOffsetParent;
1809
- }
1810
- svgOffsetParent = getParentNode(svgOffsetParent);
1811
- }
1812
- return win;
1813
- }
1814
- let offsetParent = getTrueOffsetParent(element, polyfill);
1815
- while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
1816
- offsetParent = getTrueOffsetParent(offsetParent, polyfill);
1817
- }
1818
- if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
1819
- return win;
1820
- }
1821
- return offsetParent || getContainingBlock(element) || win;
1822
- }
1823
-
1824
- const getElementRects = async function (data) {
1825
- const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
1826
- const getDimensionsFn = this.getDimensions;
1827
- const floatingDimensions = await getDimensionsFn(data.floating);
1828
- return {
1829
- reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
1830
- floating: {
1831
- x: 0,
1832
- y: 0,
1833
- width: floatingDimensions.width,
1834
- height: floatingDimensions.height
1835
- }
1836
- };
1837
- };
1838
-
1839
- function isRTL(element) {
1840
- return getComputedStyle$1(element).direction === 'rtl';
1841
- }
1842
-
1843
- const platform = {
1844
- convertOffsetParentRelativeRectToViewportRelativeRect,
1845
- getDocumentElement,
1846
- getClippingRect,
1847
- getOffsetParent,
1848
- getElementRects,
1849
- getClientRects,
1850
- getDimensions,
1851
- getScale,
1852
- isElement,
1853
- isRTL
1854
- };
1855
-
1856
- /**
1857
- * Modifies the placement by translating the floating element along the
1858
- * specified axes.
1859
- * A number (shorthand for `mainAxis` or distance), or an axes configuration
1860
- * object may be passed.
1861
- * @see https://floating-ui.com/docs/offset
1862
- */
1863
- const offset = offset$1;
1864
-
1865
- /**
1866
- * Optimizes the visibility of the floating element by choosing the placement
1867
- * that has the most space available automatically, without needing to specify a
1868
- * preferred placement. Alternative to `flip`.
1869
- * @see https://floating-ui.com/docs/autoPlacement
1870
- */
1871
- const autoPlacement = autoPlacement$1;
1872
-
1873
- /**
1874
- * Optimizes the visibility of the floating element by shifting it in order to
1875
- * keep it in view when it will overflow the clipping boundary.
1876
- * @see https://floating-ui.com/docs/shift
1877
- */
1878
- const shift = shift$1;
1879
-
1880
- /**
1881
- * Optimizes the visibility of the floating element by flipping the `placement`
1882
- * in order to keep it in view when the preferred placement(s) will overflow the
1883
- * clipping boundary. Alternative to `autoPlacement`.
1884
- * @see https://floating-ui.com/docs/flip
1885
- */
1886
- const flip = flip$1;
1887
-
1888
- /**
1889
- * Provides data that allows you to change the size of the floating element —
1890
- * for instance, prevent it from overflowing the clipping boundary or match the
1891
- * width of the reference element.
1892
- * @see https://floating-ui.com/docs/size
1893
- */
1894
- size;
1895
-
1896
- /**
1897
- * Provides data to hide the floating element in applicable situations, such as
1898
- * when it is not in the same clipping context as the reference element.
1899
- * @see https://floating-ui.com/docs/hide
1900
- */
1901
- const hide = hide$1;
1902
-
1903
- /**
1904
- * Provides data to position an inner element of the floating element so that it
1905
- * appears centered to the reference element.
1906
- * @see https://floating-ui.com/docs/arrow
1907
- */
1908
- const arrow = arrow$1;
1909
-
1910
- /**
1911
- * Provides improved positioning for inline reference elements that can span
1912
- * over multiple lines, such as hyperlinks or range selections.
1913
- * @see https://floating-ui.com/docs/inline
1914
- */
1915
- inline;
1916
-
1917
- /**
1918
- * Built-in `limiter` that will stop `shift()` at a certain point.
1919
- */
1920
- limitShift;
1921
-
1922
- /**
1923
- * Computes the `x` and `y` coordinates that will place the floating element
1924
- * next to a given reference element.
1925
- */
1926
- const computePosition = (reference, floating, options) => {
1927
- // This caches the expensive `getClippingElementAncestors` function so that
1928
- // multiple lifecycle resets re-use the same result. It only lives for a
1929
- // single call. If other functions become expensive, we can add them as well.
1930
- const cache = new Map();
1931
- const mergedOptions = {
1932
- platform,
1933
- ...options
1934
- };
1935
- const platformWithCache = {
1936
- ...mergedOptions.platform,
1937
- _c: cache
1938
- };
1939
- return computePosition$1(reference, floating, {
1940
- ...mergedOptions,
1941
- platform: platformWithCache
1942
- });
1943
- };
1944
-
1945
- export { arrow as a, autoPlacement as b, computePosition as c, flip as f, hide as h, offset as o, shift as s };