@100mslive/roomkit-react 0.3.22-alpha.1 → 0.3.22-alpha.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/ConferenceScreen-CSVWECB5.js +1778 -0
- package/dist/ConferenceScreen-CSVWECB5.js.map +7 -0
- package/dist/ConferenceScreen-YRURU3RV.css +2780 -0
- package/dist/{HLSView-Z2JID2W7.css.map → ConferenceScreen-YRURU3RV.css.map} +1 -1
- package/dist/EmbedView-N2E4DZQA.js +17 -0
- package/dist/EmbedView-N2E4DZQA.js.map +7 -0
- package/dist/EmbedView-S54NTHF5.css +2780 -0
- package/dist/EmbedView-S54NTHF5.css.map +7 -0
- package/dist/EmojiReaction-3X4ST4AU.js +11 -0
- package/dist/EmojiReaction-3X4ST4AU.js.map +7 -0
- package/dist/{HLSView-LCFZPBH3.js → HLSView-EYGGK6BH.js} +38 -24
- package/dist/HLSView-EYGGK6BH.js.map +7 -0
- package/dist/{HLSView-Z2JID2W7.css → HLSView-LBTFLMI4.css} +3 -3
- package/dist/HLSView-LBTFLMI4.css.map +7 -0
- package/dist/LeaveScreen-D6XU64JL.js +556 -0
- package/dist/LeaveScreen-D6XU64JL.js.map +7 -0
- package/dist/LeaveScreen-ZAG5UJZL.css +2780 -0
- package/dist/LeaveScreen-ZAG5UJZL.css.map +7 -0
- package/dist/MoreSettings-R7B4BSNT.css +2780 -0
- package/dist/MoreSettings-R7B4BSNT.css.map +7 -0
- package/dist/MoreSettings-TBJVM7OY.js +16 -0
- package/dist/MoreSettings-TBJVM7OY.js.map +7 -0
- package/dist/PDFView-JOIJDP65.js +84 -0
- package/dist/PDFView-JOIJDP65.js.map +7 -0
- package/dist/PDFView-RMR33QH4.css +2780 -0
- package/dist/PDFView-RMR33QH4.css.map +7 -0
- package/dist/Polls-IN3V2HFI.js +1584 -0
- package/dist/Polls-IN3V2HFI.js.map +7 -0
- package/dist/Polls-JW7JWGTE.css +2780 -0
- package/dist/Polls-JW7JWGTE.css.map +7 -0
- package/dist/Prebuilt/components/Notifications/RoleChangeNotification.d.ts +1 -0
- package/dist/RaiseHand-WES4KKMD.js +10 -0
- package/dist/RaiseHand-WES4KKMD.js.map +7 -0
- package/dist/RoleProminence-4ZBDBCMU.css +2780 -0
- package/dist/RoleProminence-4ZBDBCMU.css.map +7 -0
- package/dist/RoleProminence-PB32DLIB.js +116 -0
- package/dist/RoleProminence-PB32DLIB.js.map +7 -0
- package/dist/RoomDetailsPane-CZH2SNLE.js +53 -0
- package/dist/RoomDetailsPane-CZH2SNLE.js.map +7 -0
- package/dist/RoomDetailsPane-XWH2KEFI.css +2780 -0
- package/dist/RoomDetailsPane-XWH2KEFI.css.map +7 -0
- package/dist/ScreenshareLayout-XVENPVK3.js +358 -0
- package/dist/ScreenshareLayout-XVENPVK3.js.map +7 -0
- package/dist/ScreenshareLayout-YUW3KHAB.css +2780 -0
- package/dist/ScreenshareLayout-YUW3KHAB.css.map +7 -0
- package/dist/SidePaneTabs-QXCDHOGG.js +1354 -0
- package/dist/SidePaneTabs-QXCDHOGG.js.map +7 -0
- package/dist/SidePaneTabs-WQGVOWRP.css +2780 -0
- package/dist/SidePaneTabs-WQGVOWRP.css.map +7 -0
- package/dist/VBPicker-XN74N67R.js +322 -0
- package/dist/VBPicker-XN74N67R.js.map +7 -0
- package/dist/VBPicker-YDM2YIOM.css +2780 -0
- package/dist/VBPicker-YDM2YIOM.css.map +7 -0
- package/dist/WaitingView-77PRTIBV.js +10 -0
- package/dist/WaitingView-77PRTIBV.js.map +7 -0
- package/dist/WhiteboardLayout-FZC7SOSG.js +96 -0
- package/dist/WhiteboardLayout-FZC7SOSG.js.map +7 -0
- package/dist/WhiteboardLayout-MNTUWEVK.css +2780 -0
- package/dist/WhiteboardLayout-MNTUWEVK.css.map +7 -0
- package/dist/android-perm-1.png +0 -0
- package/dist/audio-level.png +0 -0
- package/dist/chunk-26D5FDBW.js +16812 -0
- package/dist/chunk-26D5FDBW.js.map +7 -0
- package/dist/chunk-2J5WS52X.js +2595 -0
- package/dist/chunk-2J5WS52X.js.map +7 -0
- package/dist/chunk-2LWOQMYY.js +30 -0
- package/dist/chunk-2LWOQMYY.js.map +7 -0
- package/dist/chunk-3MRQJSIY.js +171 -0
- package/dist/chunk-3MRQJSIY.js.map +7 -0
- package/dist/chunk-4X4WB7X3.js +98 -0
- package/dist/chunk-4X4WB7X3.js.map +7 -0
- package/dist/chunk-7QZJMUHM.js +90 -0
- package/dist/chunk-7QZJMUHM.js.map +7 -0
- package/dist/chunk-ABCV7TX5.js +71 -0
- package/dist/chunk-ABCV7TX5.js.map +7 -0
- package/dist/chunk-BQOT4DK7.js +418 -0
- package/dist/chunk-BQOT4DK7.js.map +7 -0
- package/dist/chunk-ENHSO6YN.js +6337 -0
- package/dist/chunk-ENHSO6YN.js.map +7 -0
- package/dist/chunk-JKWX7W4K.js +161 -0
- package/dist/chunk-JKWX7W4K.js.map +7 -0
- package/dist/chunk-LO4BXA4G.js +114 -0
- package/dist/chunk-LO4BXA4G.js.map +7 -0
- package/dist/chunk-MRVWNFXC.js +59 -0
- package/dist/chunk-MRVWNFXC.js.map +7 -0
- package/dist/chunk-OA4HW7HW.js +262 -0
- package/dist/chunk-OA4HW7HW.js.map +7 -0
- package/dist/chunk-PJQSPAFZ.js +178 -0
- package/dist/chunk-PJQSPAFZ.js.map +7 -0
- package/dist/chunk-QHQKY35W.js +830 -0
- package/dist/chunk-QHQKY35W.js.map +7 -0
- package/dist/chunk-QKXHQ6DV.js +254 -0
- package/dist/chunk-QKXHQ6DV.js.map +7 -0
- package/dist/chunk-RTWNTT77.js +62 -0
- package/dist/chunk-RTWNTT77.js.map +7 -0
- package/dist/chunk-TBXRX6MK.js +576 -0
- package/dist/chunk-TBXRX6MK.js.map +7 -0
- package/dist/chunk-TCOPR3BK.js +487 -0
- package/dist/chunk-TCOPR3BK.js.map +7 -0
- package/dist/chunk-VKORP2LF.js +41 -0
- package/dist/chunk-VKORP2LF.js.map +7 -0
- package/dist/chunk-YYVDCP5Z.js +136 -0
- package/dist/chunk-YYVDCP5Z.js.map +7 -0
- package/dist/empty-chat.svg +12 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +17888 -17792
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +25 -15
- package/dist/ios-perm-0.png +0 -0
- package/dist/meta.cjs.json +5326 -5184
- package/dist/meta.esbuild.json +8960 -6320
- package/dist/pdf-share.png +0 -0
- package/dist/screen-share.png +0 -0
- package/dist/transaction_error.svg +12 -0
- package/package.json +7 -7
- package/src/Prebuilt/App.tsx +6 -2
- package/src/Prebuilt/components/Chat/Chat.tsx +12 -8
- package/src/Prebuilt/components/Chat/ChatFooter.tsx +1 -1
- package/src/Prebuilt/components/Notifications/Notifications.tsx +2 -0
- package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +0 -14
- package/src/Prebuilt/components/Notifications/RoleChangeNotification.tsx +24 -0
- package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +43 -31
- package/src/Prebuilt/layouts/HLSView.jsx +1 -0
- package/src/Prebuilt/layouts/PDFView.jsx +1 -0
- package/src/Prebuilt/layouts/SidePane.tsx +12 -6
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +35 -34
- package/dist/HLSView-LCFZPBH3.js.map +0 -7
- package/dist/chunk-CRGZUJSX.js +0 -34811
- package/dist/chunk-CRGZUJSX.js.map +0 -7
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["<define:process.env>", "../src/Prebuilt/common/constants.ts", "../src/Theme/stitches.config.ts", "../src/Theme/base.config.ts"],
|
4
|
+
"sourcesContent": ["", "import { parsedUserAgent } from '@100mslive/react-sdk';\n\nexport const QUERY_PARAM_SKIP_PREVIEW = 'skip_preview';\nexport const QUERY_PARAM_SKIP_PREVIEW_HEADFUL = 'skip_preview_headful';\nexport const QUERY_PARAM_NAME = 'name';\nexport const QUERY_PARAM_VIEW_MODE = 'ui_mode';\nexport const QUERY_PARAM_PREVIEW_AS_ROLE = 'preview_as_role';\nexport const UI_MODE_GRID = 'grid';\nexport const MAX_TOASTS = 5;\nexport const RTMP_RECORD_RESOLUTION_MIN = 480;\nexport const RTMP_RECORD_RESOLUTION_MAX = 1280;\nexport const RTMP_RECORD_DEFAULT_RESOLUTION = {\n width: 1280,\n height: 720,\n};\nexport const EMOJI_REACTION_TYPE = 'EMOJI_REACTION';\n\nexport const CHAT_SELECTOR = {\n PEER: 'peer',\n ROLE: 'role',\n EVERYONE: 'Everyone',\n};\n\nexport const APP_DATA = {\n uiSettings: 'uiSettings',\n chatOpen: 'chatOpen',\n chatSelector: 'chatSelector',\n chatDraft: 'chatDraft',\n appConfig: 'appConfig',\n sidePane: 'sidePane',\n hlsStats: 'hlsStats',\n subscribedNotifications: 'subscribedNotifications',\n logo: 'logo',\n hlsStarted: 'hlsStarted',\n rtmpStarted: 'rtmpStarted',\n recordingStarted: 'recordingStarted',\n embedConfig: 'embedConfig',\n pinnedTrackId: 'pinnedTrackId',\n dropdownList: 'dropdownList',\n authToken: 'authToken',\n pdfConfig: 'pdfConfig',\n minimiseInset: 'minimiseInset',\n activeScreensharePeerId: 'activeScreensharePeerId',\n disableNotifications: 'disableNotifications',\n pollState: 'pollState',\n background: 'background',\n sheet: 'sheet',\n caption: 'caption',\n loadingEffects: 'loadingEffects',\n noiseCancellation: 'noiseCancellation',\n};\n\nexport const UI_SETTINGS = {\n isAudioOnly: 'isAudioOnly',\n maxTileCount: 'maxTileCount',\n uiViewMode: 'uiViewMode',\n layoutMode: 'layoutMode',\n showStatsOnTiles: 'showStatsOnTiles',\n enableAmbientMusic: 'enableAmbientMusic',\n mirrorLocalVideo: 'mirrorLocalVideo',\n};\n\nexport const SIDE_PANE_OPTIONS = {\n PARTICIPANTS: 'Participants',\n CHAT: 'Chat',\n STREAMING: 'STREAMING',\n POLLS: 'POLLS',\n VB: 'VB',\n ROOM_DETAILS: 'ROOM_DETAILS',\n};\n\nexport type SidePaneOption = (typeof SIDE_PANE_OPTIONS)[keyof typeof SIDE_PANE_OPTIONS];\n\nexport const SHEET_OPTIONS = {\n ROOM_DETAILS: 'ROOM_DETAILS',\n};\n\nexport const POLL_STATE = {\n pollInView: 'pollInView',\n view: 'view',\n};\n\nexport const POLL_VIEWS = {\n CREATE_POLL_QUIZ: 'CREATE_POLL_QUIZ',\n CREATE_QUESTIONS: 'CREATE_QUESTIONS',\n VOTE: 'VOTE',\n RESULTS: 'RESULTS',\n};\n\nexport const CAPTION_TOAST = {\n captionToast: 'captionToast',\n};\nexport const SUBSCRIBED_NOTIFICATIONS = {\n PEER_JOINED: 'PEER_JOINED',\n PEER_LEFT: 'PEER_LEFT',\n METADATA_UPDATED: 'METADATA_UPDATED',\n NEW_MESSAGE: 'NEW_MESSAGE',\n ERROR: 'ERROR',\n};\n\nexport const CREATE_ROOM_DOC_URL = 'https://github.com/100mslive/100ms-web/wiki/Creating-and-joining-a-room';\nexport const HLS_TIMED_METADATA_DOC_URL =\n 'https://www.100ms.live/docs/javascript/v2/how--to-guides/record-and-live-stream/hls/hls-timed-metadata';\n\nexport const REMOTE_STOP_SCREENSHARE_TYPE = 'REMOTE_STOP_SCREENSHARE';\n\nexport const isChrome = parsedUserAgent.getBrowser()?.name?.toLowerCase() === 'chrome';\nexport const isFirefox = parsedUserAgent.getBrowser()?.name?.toLowerCase() === 'firefox';\nexport const isSafari = parsedUserAgent.getBrowser()?.name?.toLowerCase() === 'safari';\nexport const isIOS = parsedUserAgent.getOS()?.name?.toLowerCase() === 'ios';\nexport const isMacOS = parsedUserAgent.getOS()?.name?.toLowerCase() === 'mac os';\nexport const isAndroid = parsedUserAgent.getOS()?.name?.toLowerCase() === 'android';\nexport const isIPadOS = false;\n// typeof navigator !== \"undefined\" &&\n// navigator?.maxTouchPoints &&\n// navigator?.maxTouchPoints > 2 &&\n// navigator?.userAgent?.match(/Mac/);\n\nexport enum SESSION_STORE_KEY {\n TRANSCRIPTION_STATE = 'transcriptionState',\n PINNED_MESSAGES = 'pinnedMessages',\n SPOTLIGHT = 'spotlight',\n CHAT_PEER_BLACKLIST = 'chatPeerBlacklist',\n CHAT_MESSAGE_BLACKLIST = 'chatMessageBlacklist',\n CHAT_STATE = 'chatState',\n}\n\nexport enum INTERACTION_TYPE {\n POLL = 'Poll',\n QUIZ = 'Quiz',\n}\n\nexport enum QUESTION_TYPE_TITLE {\n 'single-choice' = 'Single Choice',\n 'multiple-choice' = 'Multiple Choice',\n // 'short-answer' = 'Short Answer',\n // 'long-answer' = 'Long Answer',\n}\n\nexport enum QUESTION_TYPE {\n SINGLE_CHOICE = 'single-choice',\n MULTIPLE_CHOICE = 'multiple-choice',\n // SHORT_ANSWER = 'short-answer',\n // LONG_ANSWER = 'long-answer',\n}\n\nexport const ROLE_CHANGE_DECLINED = 'role_change_declined';\n\nexport const DEFAULT_PORTAL_CONTAINER = '.prebuilt-container';\n\nexport const TEST_AUDIO_URL = 'https://100ms.live/test-audio.wav';\n", "import type * as Stitches from '@stitches/react';\nimport { createStitches } from '@stitches/react';\nimport merge from 'lodash.merge';\nimport { baseConfig, defaultMedia, defaultThemeMap, defaultUtils } from './base.config';\nimport { DEFAULT_PORTAL_CONTAINER } from '../Prebuilt/common/constants';\n\nconst HmsStitches = createStitches({\n prefix: 'hms-ui',\n theme: {\n ...baseConfig.theme,\n colors: {\n ...baseConfig.theme.colors,\n },\n },\n media: defaultMedia,\n utils: defaultUtils,\n themeMap: defaultThemeMap,\n});\n\nexport const {\n theme,\n createTheme: createThemeBase,\n styled,\n globalCss,\n keyframes,\n css,\n getCssText,\n config,\n} = HmsStitches;\n\nexport const globalStyles = globalCss({\n [`${DEFAULT_PORTAL_CONTAINER} *`]: {\n fontFamily: '$sans',\n boxSizing: 'border-box',\n },\n '::-webkit-scrollbar-track': {\n WebkitBoxShadow: 'inset 0 0 6px rgba(0, 0, 0, 0.3)',\n boxShadow: 'inset 0 0 6px rgba(0, 0, 0, 0.3)',\n backgroundColor: 'transparent',\n },\n '::-webkit-scrollbar': {\n width: '6px',\n height: '6px',\n backgroundColor: 'transparent',\n },\n '::-webkit-scrollbar-thumb': {\n backgroundColor: '#657080',\n borderRadius: '5px',\n },\n /**\n * needed for safari. Safari\n * adds background color on its own\n * on hls-viewer on fullscreen\n */\n '#hls-viewer-dark:fullscreen': {\n backgroundColor: 'black !important',\n },\n\n '#hls-viewer-light:fullscreen': {\n backgroundColor: 'white !important',\n },\n});\n\nexport type ThemeType = 'default';\nexport type Theme = typeof HmsStitches.theme;\n\n/**\n * This method will be used to create custom themes or update any theme values\n * @param { type: ThemeType; className: string; theme: Theme }\n * @returns\n */\nexport const createTheme = ({\n themeType,\n theme,\n className,\n}: {\n themeType: string;\n className?: string;\n theme?: Partial<Theme>;\n}) => {\n if (!themeType) {\n throw new Error('Theme type is required');\n }\n const mergedTheme = merge(baseConfig.theme, theme || {});\n return createThemeBase(className || `${themeType}-theme`, mergedTheme);\n};\n\nexport type CSS = Stitches.CSS<typeof HmsStitches>;\n", "import type * as Stitches from '@stitches/react';\nimport { defaultThemeMap as defaultStitchesThemeMap } from '@stitches/react';\n\nexport const baseConfig = {\n theme: {\n colors: {\n primary_default: '#2572ED',\n primary_bright: '#538DFF',\n primary_dim: '#002D6D',\n primary_disabled: '#004299',\n on_primary_high: 'rgba(245, 249, 255, 0.95)',\n on_primary_medium: 'rgba(224, 236, 255, 0.8)',\n on_primary_low: 'rgba(194, 208, 229, 0.5)',\n secondary_default: '#444954',\n secondary_bright: '#70778B',\n secondary_dim: '#293042',\n secondary_disabled: '#404759',\n on_secondary_high: '#FFFFFF',\n on_secondary_medium: '#D3D9F0',\n on_secondary_low: '#A4ABC0',\n background_default: '#0B0E15',\n background_dim: '#000000',\n surface_default: '#191B23',\n surface_bright: '#272A31',\n surface_brighter: '#2E3038',\n surface_dim: '#11131A',\n on_surface_high: '#EFF0FA',\n on_surface_medium: '#C5C6D0',\n on_surface_low: '#8F9099',\n border_default: '#1D1F27',\n border_bright: '#272A31',\n alert_success: '#36B37E',\n alert_warning: '#FFAB00',\n alert_error_default: '#C74E5B',\n alert_error_bright: '#FFB2B6',\n alert_error_brighter: '#FFEDEC',\n alert_error_dim: '#270005',\n },\n shadows: {\n sm: '0 0 4px 0 #0000004D',\n md: '0 0 8px 0 #0000004D',\n },\n fonts: {\n sans: 'Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif',\n },\n fontSizes: {\n h1: '6rem',\n h2: '3.75rem',\n h3: '3rem',\n h4: '2.125rem',\n h5: '1.5rem',\n h6: '1.25rem',\n tiny: '0.625rem',\n xs: '0.75rem',\n sm: '0.875rem',\n md: '1rem',\n lg: '1.125rem',\n },\n fontWeights: {\n semiBold: 600,\n medium: 500,\n regular: 400,\n },\n lineHeights: {\n h1: '5.75rem',\n h2: '3.5rem',\n h3: '3.25rem',\n h4: '2.5rem',\n h5: '2rem',\n h6: '1.5rem',\n tiny: '1rem',\n xs: '1rem',\n sm: '1.25rem',\n md: '1.5rem',\n },\n radii: {\n '0': '0.25rem',\n '1': '0.5rem',\n '2': '0.75rem',\n '3': '1rem',\n '4': '1.5rem',\n round: '100rem',\n },\n space: {\n 0: '0rem',\n xs: '0.5rem',\n sm: '0.75rem',\n md: '1rem',\n lg: '1.25rem',\n xl: '2.25rem',\n px: '1px',\n 1: '0.125rem',\n 2: '0.25rem',\n 3: '0.375rem',\n 4: '0.5rem',\n 5: '0.625rem',\n 6: '0.75rem',\n 7: '0.875rem',\n 8: '1rem',\n 9: '1.25rem',\n 10: '1.5rem',\n 11: '1.75rem',\n 12: '2rem',\n 13: '2.25rem',\n 14: '2.5rem',\n 15: '2.75rem',\n 16: '3rem',\n 17: '3.5rem',\n 18: '4rem',\n 19: '4.25rem',\n 20: '5rem',\n 24: '6rem',\n 28: '7rem',\n 32: '8rem',\n 36: '9rem',\n 40: '10rem',\n 44: '11rem',\n 48: '12rem',\n 52: '13rem',\n 56: '14rem',\n 60: '15rem',\n 64: '16rem',\n 72: '18rem',\n 80: '20rem',\n 96: '24rem',\n 100: '25rem',\n },\n borderWidths: {\n light: '1px',\n normal: '2px',\n bold: '3px',\n extrabold: '4px',\n black: '5px',\n },\n },\n};\n\nexport const defaultUtils = {\n bg: (value: Stitches.PropertyValue<'backgroundColor'>) => ({\n backgroundColor: value,\n }),\n c: (value: Stitches.PropertyValue<'color'>) => ({\n color: value,\n }),\n r: (value: Stitches.ScaleValue<'radii'>) => ({\n borderRadius: value,\n }),\n fs: (value: Stitches.PropertyValue<'fontSize'> | number | string) => ({\n fontSize: value,\n }),\n size: (value: Stitches.ScaleValue<'space'> | number | string) => ({\n height: value,\n width: value,\n }),\n w: (value: Stitches.ScaleValue<'space'> | number | string) => ({\n width: value,\n }),\n h: (value: Stitches.ScaleValue<'space'> | number | string) => ({\n height: value,\n }),\n p: (value: Stitches.ScaleValue<'space'> | number | string) => ({\n padding: value,\n }),\n pt: (value: Stitches.ScaleValue<'space'> | number | string) => ({\n paddingTop: value,\n }),\n pr: (value: Stitches.ScaleValue<'space'> | number | string) => ({\n paddingRight: value,\n }),\n pb: (value: Stitches.ScaleValue<'space'> | number | string) => ({\n paddingBottom: value,\n }),\n pl: (value: Stitches.ScaleValue<'space'> | number | string) => ({\n paddingLeft: value,\n }),\n px: (value: Stitches.ScaleValue<'space'> | number | string) => ({\n paddingLeft: value,\n paddingRight: value,\n }),\n py: (value: Stitches.ScaleValue<'space'> | number | string) => ({\n paddingTop: value,\n paddingBottom: value,\n }),\n m: (value: Stitches.ScaleValue<'space'> | number | string) => ({\n margin: value,\n }),\n mt: (value: Stitches.ScaleValue<'space'> | number | string) => ({\n marginTop: value,\n }),\n mr: (value: Stitches.ScaleValue<'space'> | number | string) => ({\n marginRight: value,\n }),\n mb: (value: Stitches.ScaleValue<'space'> | number | string) => ({\n marginBottom: value,\n }),\n ml: (value: Stitches.ScaleValue<'space'> | number | string) => ({\n marginLeft: value,\n }),\n mx: (value: Stitches.ScaleValue<'space'> | number | string) => ({\n marginLeft: value,\n marginRight: value,\n }),\n my: (value: Stitches.ScaleValue<'space'> | number | string) => ({\n marginTop: value,\n marginBottom: value,\n }),\n};\n\nexport const defaultMedia = {\n allowMotion: '(prefers-reduced-motion: no-preference)',\n sm: '(max-width: 640px)',\n md: '(max-width: 768px)',\n lg: '(max-width: 1024px)',\n xl: '(max-width: 1280px)',\n '2xl': '(max-width: 1536px)',\n ls: '(max-width: 1024px) and (orientation: landscape)',\n};\n\nexport const defaultThemeMap = {\n ...defaultStitchesThemeMap,\n width: 'space',\n height: 'space',\n minWidth: 'space',\n maxWidth: 'space',\n minHeight: 'space',\n maxHeight: 'space',\n flexBasis: 'space',\n gridTemplateColumns: 'space',\n gridTemplateRows: 'space',\n blockSize: 'space',\n minBlockSize: 'space',\n maxBlockSize: 'space',\n inlineSize: 'space',\n minInlineSize: 'space',\n maxInlineSize: 'space',\n};\n"],
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,mCAAC,cAAe,iGAAgG,qCAAsC,WAAU,yCAA0C,aAAY,iCAAkC,oBAAmB,+BAAgC,uBAAsB,WAAY,QAAO,qBAAsB,eAAc,eAAgB,KAAI,qCAAsC,UAAS,0CAA2C,UAAS,iDAAkD,SAAQ,oDAAqD,kBAAiB,MAAO,UAAS,kCAAmC,UAAS,iCAAkC,QAAO,uBAAwB,8CAA6C,wBAAyB,IAAG,mBAAoB,uCAAsC,2BAA4B,gCAA+B,IAAK,QAAO,8CAA+C,UAAS,sBAAuB,QAAO,wBAAyB,IAAG,+CAAgD,SAAQ,+CAAgD,mBAAkB,oBAAqB,iBAAgB,YAAa,8FAA6F,WAAY,aAAY,mBAAoB,kDAAiD,yBAA0B,SAAQ,4CAA6C,UAAS,2CA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,mBACH,WAAW,MAAM;AAAA,EAExB;AAAA,EACA,OAAO;AAAA,EACP,OAAO;AAAA,EACP,UAAU;AACZ,CAAC;AAEM,IAAM;AAAA,EACX;AAAA,EACA,aAAa;AAAA,EACb;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,IAAI;AAEG,IAAM,eAAe,UAAU;AAAA,EACpC,CAAC,GAAG,wBAAwB,IAAI,GAAG;AAAA,IACjC,YAAY;AAAA,IACZ,WAAW;AAAA,EACb;AAAA,EACA,6BAA6B;AAAA,IAC3B,iBAAiB;AAAA,IACjB,WAAW;AAAA,IACX,iBAAiB;AAAA,EACnB;AAAA,EACA,uBAAuB;AAAA,IACrB,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,iBAAiB;AAAA,EACnB;AAAA,EACA,6BAA6B;AAAA,IAC3B,iBAAiB;AAAA,IACjB,cAAc;AAAA,EAChB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,+BAA+B;AAAA,IAC7B,iBAAiB;AAAA,EACnB;AAAA,EAEA,gCAAgC;AAAA,IAC9B,iBAAiB;AAAA,EACnB;AACF,CAAC;AAUM,IAAM,cAAc,CAAC;AAAA,EAC1B;AAAA,EACA,OAAAC;AAAA,EACA;AACF,MAIM;AACJ,MAAI,CAAC,WAAW;AACd,UAAM,IAAI,MAAM,wBAAwB;AAAA,EAC1C;AACA,QAAM,cAAc,MAAM,WAAW,OAAOA,UAAS,CAAC,CAAC;AACvD,SAAO,gBAAgB,aAAa,GAAG,SAAS,UAAU,WAAW;AACvE;",
|
6
|
+
"names": ["_a", "_b", "QUESTION_TYPE_TITLE", "theme"]
|
7
|
+
}
|
@@ -0,0 +1,487 @@
|
|
1
|
+
import {
|
2
|
+
Button,
|
3
|
+
Dialog,
|
4
|
+
Sheet,
|
5
|
+
useIsSidepaneTypeOpen,
|
6
|
+
useSidepaneToggle
|
7
|
+
} from "./chunk-26D5FDBW.js";
|
8
|
+
import {
|
9
|
+
Text
|
10
|
+
} from "./chunk-JKWX7W4K.js";
|
11
|
+
import {
|
12
|
+
Dropdown,
|
13
|
+
ToastManager,
|
14
|
+
useDropdownList,
|
15
|
+
useLandscapeHLSStream,
|
16
|
+
useMobileHLSStream
|
17
|
+
} from "./chunk-BQOT4DK7.js";
|
18
|
+
import {
|
19
|
+
Box,
|
20
|
+
Flex
|
21
|
+
} from "./chunk-7QZJMUHM.js";
|
22
|
+
import {
|
23
|
+
IconButton,
|
24
|
+
IconButton_default,
|
25
|
+
Tooltip,
|
26
|
+
useRoomLayoutConferencingScreen
|
27
|
+
} from "./chunk-ENHSO6YN.js";
|
28
|
+
import {
|
29
|
+
SIDE_PANE_OPTIONS,
|
30
|
+
__async,
|
31
|
+
__spreadValues,
|
32
|
+
config,
|
33
|
+
init_define_process_env,
|
34
|
+
styled
|
35
|
+
} from "./chunk-TBXRX6MK.js";
|
36
|
+
|
37
|
+
// src/Prebuilt/components/Leave/LeaveRoom.tsx
|
38
|
+
init_define_process_env();
|
39
|
+
import React6 from "react";
|
40
|
+
import { useMedia } from "react-use";
|
41
|
+
import {
|
42
|
+
selectHLSState,
|
43
|
+
selectIsConnectedToRoom as selectIsConnectedToRoom3,
|
44
|
+
selectPeersByCondition,
|
45
|
+
selectPermissions as selectPermissions3,
|
46
|
+
selectRolesMap,
|
47
|
+
useHMSActions,
|
48
|
+
useHMSStore as useHMSStore3
|
49
|
+
} from "@100mslive/react-sdk";
|
50
|
+
|
51
|
+
// src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx
|
52
|
+
init_define_process_env();
|
53
|
+
import React4, { Fragment, useState } from "react";
|
54
|
+
import { selectIsConnectedToRoom, selectPermissions, useHMSStore, useRecordingStreaming } from "@100mslive/react-sdk";
|
55
|
+
import { ExitIcon, StopIcon, VerticalMenuIcon } from "@100mslive/react-icons";
|
56
|
+
|
57
|
+
// src/Prebuilt/components/Leave/EndSessionContent.tsx
|
58
|
+
init_define_process_env();
|
59
|
+
import React from "react";
|
60
|
+
import { AlertTriangleIcon, CrossIcon } from "@100mslive/react-icons";
|
61
|
+
var EndSessionContent = ({
|
62
|
+
setShowEndStreamAlert,
|
63
|
+
leaveRoom,
|
64
|
+
isModal = false,
|
65
|
+
isStreamingOn = false
|
66
|
+
}) => {
|
67
|
+
return /* @__PURE__ */ React.createElement(Box, null, /* @__PURE__ */ React.createElement(
|
68
|
+
Flex,
|
69
|
+
{
|
70
|
+
css: {
|
71
|
+
color: "$alert_error_default",
|
72
|
+
display: "flex",
|
73
|
+
alignItems: "center"
|
74
|
+
}
|
75
|
+
},
|
76
|
+
/* @__PURE__ */ React.createElement(AlertTriangleIcon, { style: { marginRight: "0.5rem" } }),
|
77
|
+
/* @__PURE__ */ React.createElement(Text, { variant: "lg", css: { color: "inherit", fontWeight: "$semiBold" } }, "End ", isStreamingOn ? "Stream" : "Session"),
|
78
|
+
isModal ? null : /* @__PURE__ */ React.createElement(Box, { css: { color: "$on_surface_high", ml: "auto" }, onClick: () => setShowEndStreamAlert(false) }, /* @__PURE__ */ React.createElement(CrossIcon, null))
|
79
|
+
), /* @__PURE__ */ React.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", mb: "$8", mt: "$4" } }, "The ", isStreamingOn ? "stream" : "session", " will end for everyone. You can't undo this action."), /* @__PURE__ */ React.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ React.createElement(
|
80
|
+
Button,
|
81
|
+
{
|
82
|
+
outlined: true,
|
83
|
+
variant: "standard",
|
84
|
+
css: { w: "100%", "@md": { display: "none" } },
|
85
|
+
onClick: () => setShowEndStreamAlert(false)
|
86
|
+
},
|
87
|
+
"Cancel"
|
88
|
+
), /* @__PURE__ */ React.createElement(
|
89
|
+
Button,
|
90
|
+
{
|
91
|
+
variant: "danger",
|
92
|
+
css: { w: "100%" },
|
93
|
+
onClick: () => __async(void 0, null, function* () {
|
94
|
+
yield leaveRoom({ endStream: true });
|
95
|
+
setShowEndStreamAlert(false);
|
96
|
+
}),
|
97
|
+
id: "stopStream",
|
98
|
+
"data-testid": "stop_stream_btn"
|
99
|
+
},
|
100
|
+
"End ",
|
101
|
+
isStreamingOn ? "Stream" : "Session"
|
102
|
+
)));
|
103
|
+
};
|
104
|
+
|
105
|
+
// src/Prebuilt/components/Leave/LeaveAtoms.tsx
|
106
|
+
init_define_process_env();
|
107
|
+
var LeaveIconButton = styled(IconButton, {
|
108
|
+
color: "$on_primary_high",
|
109
|
+
h: "$14",
|
110
|
+
px: "$4",
|
111
|
+
r: "$1",
|
112
|
+
bg: "$alert_error_default",
|
113
|
+
"&:not([disabled]):hover": {
|
114
|
+
bg: "$alert_error_bright"
|
115
|
+
},
|
116
|
+
"&:not([disabled]):active": {
|
117
|
+
bg: "$alert_error_default"
|
118
|
+
},
|
119
|
+
"@md": {
|
120
|
+
mx: 0
|
121
|
+
}
|
122
|
+
});
|
123
|
+
var MenuTriggerButton = styled(LeaveIconButton, {
|
124
|
+
borderLeft: "1px solid $alert_error_dim",
|
125
|
+
borderTopLeftRadius: 0,
|
126
|
+
borderBottomLeftRadius: 0,
|
127
|
+
px: "$2"
|
128
|
+
});
|
129
|
+
|
130
|
+
// src/Prebuilt/components/Leave/LeaveCard.tsx
|
131
|
+
init_define_process_env();
|
132
|
+
import React2 from "react";
|
133
|
+
var LeaveCard = ({
|
134
|
+
icon,
|
135
|
+
title,
|
136
|
+
subtitle,
|
137
|
+
onClick,
|
138
|
+
bg,
|
139
|
+
titleColor,
|
140
|
+
css = {}
|
141
|
+
}) => {
|
142
|
+
return /* @__PURE__ */ React2.createElement(Flex, { css: __spreadValues({ p: "$10", flexGrow: 1, gap: "$8", bg }, css), onClick }, /* @__PURE__ */ React2.createElement(Box, { css: { color: titleColor } }, icon), /* @__PURE__ */ React2.createElement(Box, { css: { gap: "$2" } }, /* @__PURE__ */ React2.createElement(Text, { variant: "lg", css: { color: titleColor } }, title), /* @__PURE__ */ React2.createElement(Text, { variant: "sm", css: { c: "inherit" } }, subtitle)));
|
143
|
+
};
|
144
|
+
|
145
|
+
// src/Prebuilt/components/Leave/LeaveSessionContent.tsx
|
146
|
+
init_define_process_env();
|
147
|
+
import React3 from "react";
|
148
|
+
import { AlertTriangleIcon as AlertTriangleIcon2, CrossIcon as CrossIcon2 } from "@100mslive/react-icons";
|
149
|
+
var LeaveSessionContent = ({
|
150
|
+
setShowLeaveRoomAlert,
|
151
|
+
leaveRoom,
|
152
|
+
isModal = false
|
153
|
+
}) => {
|
154
|
+
return /* @__PURE__ */ React3.createElement(Box, null, /* @__PURE__ */ React3.createElement(
|
155
|
+
Flex,
|
156
|
+
{
|
157
|
+
css: {
|
158
|
+
color: "$alert_error_default",
|
159
|
+
display: "flex",
|
160
|
+
alignItems: "center"
|
161
|
+
}
|
162
|
+
},
|
163
|
+
/* @__PURE__ */ React3.createElement(AlertTriangleIcon2, { style: { marginRight: "0.5rem" } }),
|
164
|
+
/* @__PURE__ */ React3.createElement(Text, { variant: "lg", css: { color: "inherit", fontWeight: "$semiBold" } }, "Leave"),
|
165
|
+
isModal ? null : /* @__PURE__ */ React3.createElement(Box, { css: { color: "$on_surface_high", ml: "auto" }, onClick: () => setShowLeaveRoomAlert(false) }, /* @__PURE__ */ React3.createElement(CrossIcon2, null))
|
166
|
+
), /* @__PURE__ */ React3.createElement(Text, { variant: "sm", css: { color: "$on_surface_low", mb: "$8", mt: "$4" } }, "Others will continue after you leave. You can join the session again."), /* @__PURE__ */ React3.createElement(Flex, { align: "center", justify: "between", css: { w: "100%", gap: "$8" } }, /* @__PURE__ */ React3.createElement(
|
167
|
+
Button,
|
168
|
+
{
|
169
|
+
outlined: true,
|
170
|
+
variant: "standard",
|
171
|
+
css: { w: "100%", "@md": { display: "none" } },
|
172
|
+
onClick: () => setShowLeaveRoomAlert(false)
|
173
|
+
},
|
174
|
+
"Cancel"
|
175
|
+
), /* @__PURE__ */ React3.createElement(
|
176
|
+
Button,
|
177
|
+
{
|
178
|
+
variant: "danger",
|
179
|
+
css: { w: "100%" },
|
180
|
+
onClick: () => __async(void 0, null, function* () {
|
181
|
+
yield leaveRoom();
|
182
|
+
}),
|
183
|
+
id: "leaveRoom",
|
184
|
+
"data-testid": "leave_room"
|
185
|
+
},
|
186
|
+
"Leave Session"
|
187
|
+
)));
|
188
|
+
};
|
189
|
+
|
190
|
+
// src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx
|
191
|
+
var DesktopLeaveRoom = ({
|
192
|
+
leaveRoom,
|
193
|
+
screenType,
|
194
|
+
endRoom,
|
195
|
+
container
|
196
|
+
}) => {
|
197
|
+
const [open, setOpen] = useState(false);
|
198
|
+
const [showLeaveRoomAlert, setShowLeaveRoomAlert] = useState(false);
|
199
|
+
const [showEndStreamAlert, setShowEndStreamAlert] = useState(false);
|
200
|
+
const isConnected = useHMSStore(selectIsConnectedToRoom);
|
201
|
+
const permissions = useHMSStore(selectPermissions);
|
202
|
+
const { isStreamingOn } = useRecordingStreaming();
|
203
|
+
const showStream = screenType !== "hls_live_streaming" && isStreamingOn && (permissions == null ? void 0 : permissions.hlsStreaming);
|
204
|
+
const showLeaveOptions = (permissions == null ? void 0 : permissions.hlsStreaming) && isStreamingOn || (permissions == null ? void 0 : permissions.endRoom);
|
205
|
+
useDropdownList({ open: open || showEndStreamAlert || showLeaveRoomAlert, name: "LeaveRoom" });
|
206
|
+
if (!permissions || !isConnected) {
|
207
|
+
return null;
|
208
|
+
}
|
209
|
+
return /* @__PURE__ */ React4.createElement(Fragment, null, showLeaveOptions ? /* @__PURE__ */ React4.createElement(Flex, null, /* @__PURE__ */ React4.createElement(
|
210
|
+
LeaveIconButton,
|
211
|
+
{
|
212
|
+
key: "LeaveRoom",
|
213
|
+
"data-testid": "leave_room_btn",
|
214
|
+
css: {
|
215
|
+
borderTopRightRadius: 0,
|
216
|
+
borderBottomRightRadius: 0
|
217
|
+
},
|
218
|
+
onClick: () => setShowLeaveRoomAlert(true)
|
219
|
+
},
|
220
|
+
/* @__PURE__ */ React4.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React4.createElement(Box, null, /* @__PURE__ */ React4.createElement(ExitIcon, { style: { transform: "rotate(180deg)" } })))
|
221
|
+
), /* @__PURE__ */ React4.createElement(Dropdown.Root, { open, onOpenChange: setOpen, modal: false }, /* @__PURE__ */ React4.createElement(
|
222
|
+
Dropdown.Trigger,
|
223
|
+
{
|
224
|
+
asChild: true,
|
225
|
+
css: {
|
226
|
+
'&[data-state="open"]': {
|
227
|
+
bg: "$alert_error_dim"
|
228
|
+
}
|
229
|
+
}
|
230
|
+
},
|
231
|
+
/* @__PURE__ */ React4.createElement(MenuTriggerButton, { "data-testid": "leave_end_dropdown_trigger" }, /* @__PURE__ */ React4.createElement(VerticalMenuIcon, null))
|
232
|
+
), /* @__PURE__ */ React4.createElement(Dropdown.Portal, { container }, /* @__PURE__ */ React4.createElement(Dropdown.Content, { css: { p: 0, w: "$100" }, alignOffset: -50, sideOffset: 10 }, /* @__PURE__ */ React4.createElement(
|
233
|
+
Dropdown.Item,
|
234
|
+
{
|
235
|
+
css: {
|
236
|
+
bg: "$surface_dim",
|
237
|
+
color: "$on_surface_medium",
|
238
|
+
"&:hover": { bg: "$surface_default", color: "$on_surface_high" },
|
239
|
+
p: "0"
|
240
|
+
},
|
241
|
+
"data-testid": "just_leave_btn"
|
242
|
+
},
|
243
|
+
/* @__PURE__ */ React4.createElement(
|
244
|
+
LeaveCard,
|
245
|
+
{
|
246
|
+
title: showStream ? "Leave Stream" : "Leave Session",
|
247
|
+
subtitle: `Others will continue after you leave. You can join the ${showStream ? "stream" : "session"} again.`,
|
248
|
+
bg: "",
|
249
|
+
titleColor: "$on_surface_high",
|
250
|
+
icon: /* @__PURE__ */ React4.createElement(ExitIcon, { height: 24, width: 24, style: { transform: "rotate(180deg)" } }),
|
251
|
+
onClick: () => __async(void 0, null, function* () {
|
252
|
+
return yield leaveRoom();
|
253
|
+
}),
|
254
|
+
css: { p: "$8 $4" }
|
255
|
+
}
|
256
|
+
)
|
257
|
+
), /* @__PURE__ */ React4.createElement(
|
258
|
+
Dropdown.Item,
|
259
|
+
{
|
260
|
+
css: {
|
261
|
+
bg: "$alert_error_dim",
|
262
|
+
color: "$alert_error_bright",
|
263
|
+
"&:hover": { bg: "$alert_error_dim", color: "$alert_error_brighter" },
|
264
|
+
p: "0"
|
265
|
+
},
|
266
|
+
"data-testid": "end_room_btn"
|
267
|
+
},
|
268
|
+
/* @__PURE__ */ React4.createElement(
|
269
|
+
LeaveCard,
|
270
|
+
{
|
271
|
+
title: showStream ? "End Stream" : "End Session",
|
272
|
+
subtitle: `The ${showStream ? "stream" : "session"} will end for everyone. You can't undo this action.`,
|
273
|
+
bg: "",
|
274
|
+
titleColor: "$alert_error_brighter",
|
275
|
+
icon: /* @__PURE__ */ React4.createElement(StopIcon, { height: 24, width: 24 }),
|
276
|
+
onClick: () => {
|
277
|
+
setOpen(false);
|
278
|
+
setShowEndStreamAlert(true);
|
279
|
+
},
|
280
|
+
css: { p: "$8 $4" }
|
281
|
+
}
|
282
|
+
)
|
283
|
+
))))) : /* @__PURE__ */ React4.createElement(
|
284
|
+
LeaveIconButton,
|
285
|
+
{
|
286
|
+
onClick: () => {
|
287
|
+
setShowLeaveRoomAlert(true);
|
288
|
+
},
|
289
|
+
key: "LeaveRoom",
|
290
|
+
"data-testid": "leave_room_btn"
|
291
|
+
},
|
292
|
+
/* @__PURE__ */ React4.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React4.createElement(Box, null, /* @__PURE__ */ React4.createElement(ExitIcon, { style: { transform: "rotate(180deg)" } })))
|
293
|
+
), /* @__PURE__ */ React4.createElement(Dialog.Root, { open: showEndStreamAlert, modal: false }, /* @__PURE__ */ React4.createElement(Dialog.Portal, null, /* @__PURE__ */ React4.createElement(Dialog.Overlay, null), /* @__PURE__ */ React4.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ React4.createElement(
|
294
|
+
EndSessionContent,
|
295
|
+
{
|
296
|
+
setShowEndStreamAlert,
|
297
|
+
leaveRoom: isStreamingOn ? () => leaveRoom({ endStream: true }) : endRoom,
|
298
|
+
isStreamingOn,
|
299
|
+
isModal: true
|
300
|
+
}
|
301
|
+
)))), /* @__PURE__ */ React4.createElement(Dialog.Root, { open: showLeaveRoomAlert, modal: false }, /* @__PURE__ */ React4.createElement(Dialog.Portal, null, /* @__PURE__ */ React4.createElement(Dialog.Overlay, null), /* @__PURE__ */ React4.createElement(Dialog.Content, { css: { w: "min(420px, 90%)", p: "$8", bg: "$surface_dim" } }, /* @__PURE__ */ React4.createElement(LeaveSessionContent, { setShowLeaveRoomAlert, leaveRoom, isModal: true })))));
|
302
|
+
};
|
303
|
+
|
304
|
+
// src/Prebuilt/components/Leave/MwebLeaveRoom.tsx
|
305
|
+
init_define_process_env();
|
306
|
+
import React5, { Fragment as Fragment2, useState as useState2 } from "react";
|
307
|
+
import { selectIsConnectedToRoom as selectIsConnectedToRoom2, selectPermissions as selectPermissions2, useHMSStore as useHMSStore2, useRecordingStreaming as useRecordingStreaming2 } from "@100mslive/react-sdk";
|
308
|
+
import { CrossIcon as CrossIcon3, ExitIcon as ExitIcon2, StopIcon as StopIcon2 } from "@100mslive/react-icons";
|
309
|
+
var MwebLeaveRoom = ({
|
310
|
+
leaveRoom,
|
311
|
+
endRoom,
|
312
|
+
container
|
313
|
+
}) => {
|
314
|
+
const [open, setOpen] = useState2(false);
|
315
|
+
const { screenType } = useRoomLayoutConferencingScreen();
|
316
|
+
const [showLeaveRoomAlert, setShowLeaveRoomAlert] = useState2(false);
|
317
|
+
const [showEndStreamAlert, setShowEndStreamAlert] = useState2(false);
|
318
|
+
const isConnected = useHMSStore2(selectIsConnectedToRoom2);
|
319
|
+
const permissions = useHMSStore2(selectPermissions2);
|
320
|
+
const { isStreamingOn } = useRecordingStreaming2();
|
321
|
+
const showStream = screenType !== "hls_live_streaming" && isStreamingOn && (permissions == null ? void 0 : permissions.hlsStreaming);
|
322
|
+
const showLeaveOptions = (permissions == null ? void 0 : permissions.hlsStreaming) && isStreamingOn || (permissions == null ? void 0 : permissions.endRoom);
|
323
|
+
useDropdownList({ open, name: "LeaveRoom" });
|
324
|
+
if (!permissions || !isConnected) {
|
325
|
+
return null;
|
326
|
+
}
|
327
|
+
return /* @__PURE__ */ React5.createElement(Fragment2, null, showLeaveOptions ? /* @__PURE__ */ React5.createElement(Sheet.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React5.createElement(Sheet.Trigger, { asChild: true }, /* @__PURE__ */ React5.createElement(
|
328
|
+
LeaveButton,
|
329
|
+
{
|
330
|
+
onClick: () => {
|
331
|
+
setOpen((open2) => !open2);
|
332
|
+
}
|
333
|
+
}
|
334
|
+
)), /* @__PURE__ */ React5.createElement(Sheet.Content, { container }, /* @__PURE__ */ React5.createElement(
|
335
|
+
LeaveCard,
|
336
|
+
{
|
337
|
+
title: showStream ? "Leave Stream" : "Leave Session",
|
338
|
+
subtitle: `Others will continue after you leave. You can join the ${showStream ? "stream" : "session"} again.`,
|
339
|
+
bg: "$surface_default",
|
340
|
+
titleColor: "$on_surface_high",
|
341
|
+
icon: /* @__PURE__ */ React5.createElement(ExitIcon2, { height: 24, width: 24, style: { transform: "rotate(180deg)" } }),
|
342
|
+
onClick: () => __async(void 0, null, function* () {
|
343
|
+
return yield leaveRoom();
|
344
|
+
}),
|
345
|
+
css: { pt: 0, mt: "$10", color: "$on_surface_low", "&:hover": { color: "$on_surface_high" } }
|
346
|
+
}
|
347
|
+
), /* @__PURE__ */ React5.createElement(
|
348
|
+
LeaveCard,
|
349
|
+
{
|
350
|
+
title: showStream ? "End Stream" : "End Session",
|
351
|
+
subtitle: `The will end the ${showStream ? "stream" : "session"} for everyone. You can't undo this action.`,
|
352
|
+
bg: "$alert_error_dim",
|
353
|
+
titleColor: "$alert_error_brighter",
|
354
|
+
css: { color: "$alert_error_bright", "&:hover": { color: "$alert_error_brighter" } },
|
355
|
+
icon: /* @__PURE__ */ React5.createElement(StopIcon2, { height: 24, width: 24 }),
|
356
|
+
onClick: () => {
|
357
|
+
setOpen(false);
|
358
|
+
setShowEndStreamAlert(true);
|
359
|
+
}
|
360
|
+
}
|
361
|
+
))) : /* @__PURE__ */ React5.createElement(LeaveButton, { onClick: () => setShowLeaveRoomAlert(true) }), /* @__PURE__ */ React5.createElement(Sheet.Root, { open: showEndStreamAlert, onOpenChange: setShowEndStreamAlert }, /* @__PURE__ */ React5.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" }, container }, /* @__PURE__ */ React5.createElement(
|
362
|
+
EndSessionContent,
|
363
|
+
{
|
364
|
+
setShowEndStreamAlert,
|
365
|
+
leaveRoom: isStreamingOn ? leaveRoom : endRoom,
|
366
|
+
isStreamingOn
|
367
|
+
}
|
368
|
+
))), /* @__PURE__ */ React5.createElement(Sheet.Root, { open: showLeaveRoomAlert, onOpenChange: setShowLeaveRoomAlert }, /* @__PURE__ */ React5.createElement(Sheet.Content, { css: { bg: "$surface_dim", p: "$10", pb: "$12" }, container }, /* @__PURE__ */ React5.createElement(LeaveSessionContent, { setShowLeaveRoomAlert, leaveRoom }))));
|
369
|
+
};
|
370
|
+
var LeaveButton = ({ onClick }) => {
|
371
|
+
const isMobileHLSStream = useMobileHLSStream();
|
372
|
+
const isLandscapeHLSStream = useLandscapeHLSStream();
|
373
|
+
return isMobileHLSStream || isLandscapeHLSStream ? /* @__PURE__ */ React5.createElement(IconButton, { key: "LeaveRoom", "data-testid": "leave_room_btn", onClick }, /* @__PURE__ */ React5.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React5.createElement(Box, null, /* @__PURE__ */ React5.createElement(CrossIcon3, null)))) : /* @__PURE__ */ React5.createElement(
|
374
|
+
LeaveIconButton,
|
375
|
+
{
|
376
|
+
key: "LeaveRoom",
|
377
|
+
"data-testid": "leave_room_btn",
|
378
|
+
css: {
|
379
|
+
borderTopRightRadius: "$1",
|
380
|
+
borderBottomRightRadius: "$1"
|
381
|
+
},
|
382
|
+
onClick
|
383
|
+
},
|
384
|
+
/* @__PURE__ */ React5.createElement(Tooltip, { title: "Leave Room" }, /* @__PURE__ */ React5.createElement(Box, null, /* @__PURE__ */ React5.createElement(ExitIcon2, { style: { transform: "rotate(180deg)" } })))
|
385
|
+
);
|
386
|
+
};
|
387
|
+
|
388
|
+
// src/Prebuilt/components/Leave/LeaveRoom.tsx
|
389
|
+
var LeaveRoom = ({
|
390
|
+
screenType,
|
391
|
+
container
|
392
|
+
}) => {
|
393
|
+
const isConnected = useHMSStore3(selectIsConnectedToRoom3);
|
394
|
+
const permissions = useHMSStore3(selectPermissions3);
|
395
|
+
const isMobile = useMedia(config.media.md);
|
396
|
+
const rolesMap = useHMSStore3(selectRolesMap);
|
397
|
+
const streamingPermissionRoles = Object.keys(rolesMap).filter((roleName) => {
|
398
|
+
const roleObj = rolesMap[roleName];
|
399
|
+
return roleObj.permissions.hlsStreaming;
|
400
|
+
});
|
401
|
+
const peersWithStreamingRights = useHMSStore3(
|
402
|
+
selectPeersByCondition((peer) => streamingPermissionRoles.includes(peer.roleName || ""))
|
403
|
+
);
|
404
|
+
const hlsState = useHMSStore3(selectHLSState);
|
405
|
+
const hmsActions = useHMSActions();
|
406
|
+
const isMobileHLSStream = useMobileHLSStream();
|
407
|
+
const isLandscapeHLSStream = useLandscapeHLSStream();
|
408
|
+
const stopStream = () => __async(void 0, null, function* () {
|
409
|
+
try {
|
410
|
+
if (permissions == null ? void 0 : permissions.hlsStreaming) {
|
411
|
+
console.log("Stopping HLS stream");
|
412
|
+
yield hmsActions.stopHLSStreaming();
|
413
|
+
ToastManager.addToast({ title: "Stopping the stream" });
|
414
|
+
}
|
415
|
+
} catch (e) {
|
416
|
+
console.error("Error stopping stream", e);
|
417
|
+
ToastManager.addToast({ title: "Error in stopping the stream", type: "error" });
|
418
|
+
}
|
419
|
+
});
|
420
|
+
const endRoom = () => __async(void 0, null, function* () {
|
421
|
+
yield hmsActions.endRoom(false, "End Room");
|
422
|
+
});
|
423
|
+
const leaveRoom = (..._0) => __async(void 0, [..._0], function* (options = { endStream: false }) {
|
424
|
+
if (options.endStream || hlsState.running && peersWithStreamingRights.length === 1) {
|
425
|
+
yield stopStream();
|
426
|
+
}
|
427
|
+
yield hmsActions.leave();
|
428
|
+
});
|
429
|
+
if (!permissions || !isConnected) {
|
430
|
+
return null;
|
431
|
+
}
|
432
|
+
if (isMobileHLSStream || isLandscapeHLSStream) {
|
433
|
+
return /* @__PURE__ */ React6.createElement(MwebLeaveRoom, { leaveRoom, endRoom, container });
|
434
|
+
}
|
435
|
+
return isMobile ? /* @__PURE__ */ React6.createElement(MwebLeaveRoom, { leaveRoom, endRoom, container }) : /* @__PURE__ */ React6.createElement(DesktopLeaveRoom, { leaveRoom, screenType, endRoom, container });
|
436
|
+
};
|
437
|
+
|
438
|
+
// src/Prebuilt/components/Footer/ChatToggle.tsx
|
439
|
+
init_define_process_env();
|
440
|
+
import React7 from "react";
|
441
|
+
import { selectUnreadHMSMessagesCount, useHMSStore as useHMSStore4 } from "@100mslive/react-sdk";
|
442
|
+
import { ChatIcon } from "@100mslive/react-icons";
|
443
|
+
var ChatToggle = ({ onClick }) => {
|
444
|
+
const countUnreadMessages = useHMSStore4(selectUnreadHMSMessagesCount);
|
445
|
+
const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
|
446
|
+
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
447
|
+
return /* @__PURE__ */ React7.createElement(
|
448
|
+
Box,
|
449
|
+
{
|
450
|
+
css: {
|
451
|
+
position: "relative"
|
452
|
+
}
|
453
|
+
},
|
454
|
+
/* @__PURE__ */ React7.createElement(Tooltip, { key: "chat", title: `${isChatOpen ? "Close" : "Open"} chat` }, /* @__PURE__ */ React7.createElement(
|
455
|
+
IconButton_default,
|
456
|
+
{
|
457
|
+
onClick: () => onClick ? onClick() : toggleChat(),
|
458
|
+
css: { bg: isChatOpen ? "$surface_brighter" : "" },
|
459
|
+
"data-testid": "chat_btn"
|
460
|
+
},
|
461
|
+
/* @__PURE__ */ React7.createElement(ChatIcon, null)
|
462
|
+
)),
|
463
|
+
countUnreadMessages > 0 && /* @__PURE__ */ React7.createElement(
|
464
|
+
Flex,
|
465
|
+
{
|
466
|
+
css: {
|
467
|
+
height: "$8",
|
468
|
+
p: "$4 4.5px",
|
469
|
+
justifyContent: "center",
|
470
|
+
alignItems: "center",
|
471
|
+
position: "absolute",
|
472
|
+
top: "-$4",
|
473
|
+
right: "-$4",
|
474
|
+
borderRadius: "$space$14",
|
475
|
+
background: "$primary_default"
|
476
|
+
}
|
477
|
+
},
|
478
|
+
/* @__PURE__ */ React7.createElement(Text, { variant: "overline" }, countUnreadMessages > 99 ? "99+" : countUnreadMessages)
|
479
|
+
)
|
480
|
+
);
|
481
|
+
};
|
482
|
+
|
483
|
+
export {
|
484
|
+
LeaveRoom,
|
485
|
+
ChatToggle
|
486
|
+
};
|
487
|
+
//# sourceMappingURL=chunk-TCOPR3BK.js.map
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../src/Prebuilt/components/Leave/LeaveRoom.tsx", "../src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx", "../src/Prebuilt/components/Leave/EndSessionContent.tsx", "../src/Prebuilt/components/Leave/LeaveAtoms.tsx", "../src/Prebuilt/components/Leave/LeaveCard.tsx", "../src/Prebuilt/components/Leave/LeaveSessionContent.tsx", "../src/Prebuilt/components/Leave/MwebLeaveRoom.tsx", "../src/Prebuilt/components/Footer/ChatToggle.tsx"],
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { useMedia } from 'react-use';\nimport { ConferencingScreen } from '@100mslive/types-prebuilt';\nimport {\n HMSPeer,\n HMSRole,\n selectHLSState,\n selectIsConnectedToRoom,\n selectPeersByCondition,\n selectPermissions,\n selectRolesMap,\n useHMSActions,\n useHMSStore,\n} from '@100mslive/react-sdk';\nimport { config as cssConfig } from '../../../Theme';\n// @ts-ignore: No implicit Any\nimport { ToastManager } from '../Toast/ToastManager';\nimport { DesktopLeaveRoom } from './DesktopLeaveRoom';\nimport { MwebLeaveRoom } from './MwebLeaveRoom';\nimport { useLandscapeHLSStream, useMobileHLSStream } from '../../common/hooks';\n\nexport const LeaveRoom = ({\n screenType,\n container,\n}: {\n screenType: keyof ConferencingScreen;\n container?: HTMLElement;\n}) => {\n const isConnected = useHMSStore(selectIsConnectedToRoom);\n const permissions = useHMSStore(selectPermissions);\n const isMobile = useMedia(cssConfig.media.md);\n const rolesMap: Record<string, HMSRole> = useHMSStore(selectRolesMap);\n const streamingPermissionRoles = Object.keys(rolesMap).filter(roleName => {\n const roleObj = rolesMap[roleName];\n return roleObj.permissions.hlsStreaming;\n });\n const peersWithStreamingRights = useHMSStore(\n selectPeersByCondition((peer: HMSPeer) => streamingPermissionRoles.includes(peer.roleName || '')),\n );\n const hlsState = useHMSStore(selectHLSState);\n const hmsActions = useHMSActions();\n const isMobileHLSStream = useMobileHLSStream();\n const isLandscapeHLSStream = useLandscapeHLSStream();\n\n const stopStream = async () => {\n try {\n if (permissions?.hlsStreaming) {\n console.log('Stopping HLS stream');\n await hmsActions.stopHLSStreaming();\n ToastManager.addToast({ title: 'Stopping the stream' });\n }\n } catch (e) {\n console.error('Error stopping stream', e);\n ToastManager.addToast({ title: 'Error in stopping the stream', type: 'error' });\n }\n };\n\n const endRoom = async () => {\n await hmsActions.endRoom(false, 'End Room');\n };\n\n const leaveRoom = async (options: { endStream?: boolean } = { endStream: false }) => {\n if (options.endStream || (hlsState.running && peersWithStreamingRights.length === 1)) {\n await stopStream();\n }\n await hmsActions.leave();\n };\n\n if (!permissions || !isConnected) {\n return null;\n }\n if (isMobileHLSStream || isLandscapeHLSStream) {\n return <MwebLeaveRoom leaveRoom={leaveRoom} endRoom={endRoom} container={container} />;\n }\n return isMobile ? (\n <MwebLeaveRoom leaveRoom={leaveRoom} endRoom={endRoom} container={container} />\n ) : (\n <DesktopLeaveRoom leaveRoom={leaveRoom} screenType={screenType} endRoom={endRoom} container={container} />\n );\n};\n", "import React, { Fragment, useState } from 'react';\nimport { ConferencingScreen } from '@100mslive/types-prebuilt';\nimport { selectIsConnectedToRoom, selectPermissions, useHMSStore, useRecordingStreaming } from '@100mslive/react-sdk';\nimport { ExitIcon, StopIcon, VerticalMenuIcon } from '@100mslive/react-icons';\nimport { Dropdown } from '../../../Dropdown';\nimport { Box, Flex } from '../../../Layout';\nimport { Dialog } from '../../../Modal';\nimport { Tooltip } from '../../../Tooltip';\nimport { EndSessionContent } from './EndSessionContent';\nimport { LeaveIconButton, MenuTriggerButton } from './LeaveAtoms';\nimport { LeaveCard } from './LeaveCard';\nimport { LeaveSessionContent } from './LeaveSessionContent';\n// @ts-ignore: No implicit Any\nimport { useDropdownList } from '../hooks/useDropdownList';\n\nexport const DesktopLeaveRoom = ({\n leaveRoom,\n screenType,\n endRoom,\n container,\n}: {\n leaveRoom: (options?: { endStream?: boolean }) => Promise<void>;\n screenType: keyof ConferencingScreen;\n endRoom: () => Promise<void>;\n container?: HTMLElement;\n}) => {\n const [open, setOpen] = useState(false);\n const [showLeaveRoomAlert, setShowLeaveRoomAlert] = useState(false);\n const [showEndStreamAlert, setShowEndStreamAlert] = useState(false);\n const isConnected = useHMSStore(selectIsConnectedToRoom);\n const permissions = useHMSStore(selectPermissions);\n const { isStreamingOn } = useRecordingStreaming();\n const showStream = screenType !== 'hls_live_streaming' && isStreamingOn && permissions?.hlsStreaming;\n const showLeaveOptions = (permissions?.hlsStreaming && isStreamingOn) || permissions?.endRoom;\n\n useDropdownList({ open: open || showEndStreamAlert || showLeaveRoomAlert, name: 'LeaveRoom' });\n\n if (!permissions || !isConnected) {\n return null;\n }\n\n return (\n <Fragment>\n {showLeaveOptions ? (\n <Flex>\n <LeaveIconButton\n key=\"LeaveRoom\"\n data-testid=\"leave_room_btn\"\n css={{\n borderTopRightRadius: 0,\n borderBottomRightRadius: 0,\n }}\n onClick={() => setShowLeaveRoomAlert(true)}\n >\n <Tooltip title=\"Leave Room\">\n <Box>\n <ExitIcon style={{ transform: 'rotate(180deg)' }} />\n </Box>\n </Tooltip>\n </LeaveIconButton>\n <Dropdown.Root open={open} onOpenChange={setOpen} modal={false}>\n <Dropdown.Trigger\n asChild\n css={{\n '&[data-state=\"open\"]': {\n bg: '$alert_error_dim',\n },\n }}\n >\n <MenuTriggerButton data-testid=\"leave_end_dropdown_trigger\">\n <VerticalMenuIcon />\n </MenuTriggerButton>\n </Dropdown.Trigger>\n <Dropdown.Portal container={container}>\n <Dropdown.Content css={{ p: 0, w: '$100' }} alignOffset={-50} sideOffset={10}>\n <Dropdown.Item\n css={{\n bg: '$surface_dim',\n color: '$on_surface_medium',\n '&:hover': { bg: '$surface_default', color: '$on_surface_high' },\n p: '0',\n }}\n data-testid=\"just_leave_btn\"\n >\n <LeaveCard\n title={showStream ? 'Leave Stream' : 'Leave Session'}\n subtitle={`Others will continue after you leave. You can join the ${\n showStream ? 'stream' : 'session'\n } again.`}\n bg=\"\"\n titleColor=\"$on_surface_high\"\n icon={<ExitIcon height={24} width={24} style={{ transform: 'rotate(180deg)' }} />}\n onClick={async () => await leaveRoom()}\n css={{ p: '$8 $4' }}\n />\n </Dropdown.Item>\n\n <Dropdown.Item\n css={{\n bg: '$alert_error_dim',\n color: '$alert_error_bright',\n '&:hover': { bg: '$alert_error_dim', color: '$alert_error_brighter' },\n p: '0',\n }}\n data-testid=\"end_room_btn\"\n >\n <LeaveCard\n title={showStream ? 'End Stream' : 'End Session'}\n subtitle={`The ${\n showStream ? 'stream' : 'session'\n } will end for everyone. You can't undo this action.`}\n bg=\"\"\n titleColor=\"$alert_error_brighter\"\n icon={<StopIcon height={24} width={24} />}\n onClick={() => {\n setOpen(false);\n setShowEndStreamAlert(true);\n }}\n css={{ p: '$8 $4' }}\n />\n </Dropdown.Item>\n </Dropdown.Content>\n </Dropdown.Portal>\n </Dropdown.Root>\n </Flex>\n ) : (\n <LeaveIconButton\n onClick={() => {\n setShowLeaveRoomAlert(true);\n }}\n key=\"LeaveRoom\"\n data-testid=\"leave_room_btn\"\n >\n <Tooltip title=\"Leave Room\">\n <Box>\n <ExitIcon style={{ transform: 'rotate(180deg)' }} />\n </Box>\n </Tooltip>\n </LeaveIconButton>\n )}\n\n <Dialog.Root open={showEndStreamAlert} modal={false}>\n <Dialog.Portal>\n <Dialog.Overlay />\n <Dialog.Content css={{ w: 'min(420px, 90%)', p: '$8', bg: '$surface_dim' }}>\n <EndSessionContent\n setShowEndStreamAlert={setShowEndStreamAlert}\n leaveRoom={isStreamingOn ? () => leaveRoom({ endStream: true }) : endRoom}\n isStreamingOn={isStreamingOn}\n isModal\n />\n </Dialog.Content>\n </Dialog.Portal>\n </Dialog.Root>\n\n <Dialog.Root open={showLeaveRoomAlert} modal={false}>\n <Dialog.Portal>\n <Dialog.Overlay />\n <Dialog.Content css={{ w: 'min(420px, 90%)', p: '$8', bg: '$surface_dim' }}>\n <LeaveSessionContent setShowLeaveRoomAlert={setShowLeaveRoomAlert} leaveRoom={leaveRoom} isModal />\n </Dialog.Content>\n </Dialog.Portal>\n </Dialog.Root>\n </Fragment>\n );\n};\n", "import React from 'react';\nimport { AlertTriangleIcon, CrossIcon } from '@100mslive/react-icons';\nimport { Button } from '../../../Button';\nimport { Box, Flex } from '../../../Layout';\nimport { Text } from '../../../Text';\n\nexport const EndSessionContent = ({\n setShowEndStreamAlert,\n leaveRoom,\n isModal = false,\n isStreamingOn = false,\n}: {\n setShowEndStreamAlert: (value: boolean) => void;\n leaveRoom: (options?: { endStream?: boolean }) => Promise<void>;\n isModal?: boolean;\n isStreamingOn: boolean;\n}) => {\n return (\n <Box>\n <Flex\n css={{\n color: '$alert_error_default',\n display: 'flex',\n alignItems: 'center',\n }}\n >\n <AlertTriangleIcon style={{ marginRight: '0.5rem' }} />\n <Text variant=\"lg\" css={{ color: 'inherit', fontWeight: '$semiBold' }}>\n End {isStreamingOn ? 'Stream' : 'Session'}\n </Text>\n {isModal ? null : (\n <Box css={{ color: '$on_surface_high', ml: 'auto' }} onClick={() => setShowEndStreamAlert(false)}>\n <CrossIcon />\n </Box>\n )}\n </Flex>\n <Text variant=\"sm\" css={{ color: '$on_surface_medium', mb: '$8', mt: '$4' }}>\n The {isStreamingOn ? 'stream' : 'session'} will end for everyone. You can't undo this action.\n </Text>\n <Flex align=\"center\" justify=\"between\" css={{ w: '100%', gap: '$8' }}>\n <Button\n outlined\n variant=\"standard\"\n css={{ w: '100%', '@md': { display: 'none' } }}\n onClick={() => setShowEndStreamAlert(false)}\n >\n Cancel\n </Button>\n <Button\n variant=\"danger\"\n css={{ w: '100%' }}\n onClick={async () => {\n await leaveRoom({ endStream: true });\n setShowEndStreamAlert(false);\n }}\n id=\"stopStream\"\n data-testid=\"stop_stream_btn\"\n >\n End {isStreamingOn ? 'Stream' : 'Session'}\n </Button>\n </Flex>\n </Box>\n );\n};\n", "import { IconButton } from '../../../IconButton';\nimport { styled } from '../../../Theme';\n\nexport const LeaveIconButton = styled(IconButton, {\n color: '$on_primary_high',\n h: '$14',\n px: '$4',\n r: '$1',\n bg: '$alert_error_default',\n '&:not([disabled]):hover': {\n bg: '$alert_error_bright',\n },\n '&:not([disabled]):active': {\n bg: '$alert_error_default',\n },\n '@md': {\n mx: 0,\n },\n});\n\nexport const MenuTriggerButton = styled(LeaveIconButton, {\n borderLeft: '1px solid $alert_error_dim',\n borderTopLeftRadius: 0,\n borderBottomLeftRadius: 0,\n px: '$2',\n});\n", "import React from 'react';\nimport { Box, Flex } from '../../../Layout';\nimport { Text } from '../../../Text';\nimport { CSS } from '../../../Theme';\n\nexport const LeaveCard = ({\n icon,\n title,\n subtitle,\n onClick,\n bg,\n titleColor,\n css = {},\n}: {\n icon: React.JSX.Element;\n title: string;\n subtitle: string;\n onClick: () => void;\n titleColor: string;\n bg: string;\n css?: CSS;\n}) => {\n return (\n <Flex css={{ p: '$10', flexGrow: 1, gap: '$8', bg, ...css }} onClick={onClick}>\n <Box css={{ color: titleColor }}>{icon}</Box>\n <Box css={{ gap: '$2' }}>\n <Text variant=\"lg\" css={{ color: titleColor }}>\n {title}\n </Text>\n <Text variant=\"sm\" css={{ c: 'inherit' }}>\n {subtitle}\n </Text>\n </Box>\n </Flex>\n );\n};\n", "import React from 'react';\nimport { AlertTriangleIcon, CrossIcon } from '@100mslive/react-icons';\nimport { Button } from '../../../Button';\nimport { Box, Flex } from '../../../Layout';\nimport { Text } from '../../../Text';\n\nexport const LeaveSessionContent = ({\n setShowLeaveRoomAlert,\n leaveRoom,\n isModal = false,\n}: {\n setShowLeaveRoomAlert: (value: boolean) => void;\n leaveRoom: (options?: { endStream?: boolean }) => Promise<void>;\n isModal?: boolean;\n}) => {\n return (\n <Box>\n <Flex\n css={{\n color: '$alert_error_default',\n display: 'flex',\n alignItems: 'center',\n }}\n >\n <AlertTriangleIcon style={{ marginRight: '0.5rem' }} />\n <Text variant=\"lg\" css={{ color: 'inherit', fontWeight: '$semiBold' }}>\n Leave\n </Text>\n {isModal ? null : (\n <Box css={{ color: '$on_surface_high', ml: 'auto' }} onClick={() => setShowLeaveRoomAlert(false)}>\n <CrossIcon />\n </Box>\n )}\n </Flex>\n <Text variant=\"sm\" css={{ color: '$on_surface_low', mb: '$8', mt: '$4' }}>\n Others will continue after you leave. You can join the session again.\n </Text>\n <Flex align=\"center\" justify=\"between\" css={{ w: '100%', gap: '$8' }}>\n <Button\n outlined\n variant=\"standard\"\n css={{ w: '100%', '@md': { display: 'none' } }}\n onClick={() => setShowLeaveRoomAlert(false)}\n >\n Cancel\n </Button>\n <Button\n variant=\"danger\"\n css={{ w: '100%' }}\n onClick={async () => {\n await leaveRoom();\n }}\n id=\"leaveRoom\"\n data-testid=\"leave_room\"\n >\n Leave Session\n </Button>\n </Flex>\n </Box>\n );\n};\n", "import React, { Fragment, useState } from 'react';\n// @ts-ignore: No implicit Any\nimport { selectIsConnectedToRoom, selectPermissions, useHMSStore, useRecordingStreaming } from '@100mslive/react-sdk';\n// @ts-ignore: No implicit Any\nimport { CrossIcon, ExitIcon, StopIcon } from '@100mslive/react-icons';\nimport { IconButton } from '../../../IconButton';\nimport { Box } from '../../../Layout';\nimport { Sheet } from '../../../Sheet';\nimport { Tooltip } from '../../../Tooltip';\nimport { EndSessionContent } from './EndSessionContent';\nimport { LeaveIconButton } from './LeaveAtoms';\nimport { LeaveCard } from './LeaveCard';\nimport { LeaveSessionContent } from './LeaveSessionContent';\nimport { useRoomLayoutConferencingScreen } from '../../provider/roomLayoutProvider/hooks/useRoomLayoutScreen';\n// @ts-ignore: No implicit Any\nimport { useDropdownList } from '../hooks/useDropdownList';\nimport { useLandscapeHLSStream, useMobileHLSStream } from '../../common/hooks';\n\nexport const MwebLeaveRoom = ({\n leaveRoom,\n endRoom,\n container,\n}: {\n leaveRoom: (options?: { endStream?: boolean }) => Promise<void>;\n endRoom: () => Promise<void>;\n container?: HTMLElement;\n}) => {\n const [open, setOpen] = useState(false);\n const { screenType } = useRoomLayoutConferencingScreen();\n const [showLeaveRoomAlert, setShowLeaveRoomAlert] = useState(false);\n const [showEndStreamAlert, setShowEndStreamAlert] = useState(false);\n const isConnected = useHMSStore(selectIsConnectedToRoom);\n const permissions = useHMSStore(selectPermissions);\n const { isStreamingOn } = useRecordingStreaming();\n const showStream = screenType !== 'hls_live_streaming' && isStreamingOn && permissions?.hlsStreaming;\n const showLeaveOptions = (permissions?.hlsStreaming && isStreamingOn) || permissions?.endRoom;\n\n useDropdownList({ open, name: 'LeaveRoom' });\n\n if (!permissions || !isConnected) {\n return null;\n }\n\n return (\n <Fragment>\n {showLeaveOptions ? (\n <Sheet.Root open={open} onOpenChange={setOpen}>\n <Sheet.Trigger asChild>\n <LeaveButton\n onClick={() => {\n setOpen(open => !open);\n }}\n />\n </Sheet.Trigger>\n <Sheet.Content container={container}>\n <LeaveCard\n title={showStream ? 'Leave Stream' : 'Leave Session'}\n subtitle={`Others will continue after you leave. You can join the ${\n showStream ? 'stream' : 'session'\n } again.`}\n bg=\"$surface_default\"\n titleColor=\"$on_surface_high\"\n icon={<ExitIcon height={24} width={24} style={{ transform: 'rotate(180deg)' }} />}\n onClick={async () => await leaveRoom()}\n css={{ pt: 0, mt: '$10', color: '$on_surface_low', '&:hover': { color: '$on_surface_high' } }}\n />\n\n <LeaveCard\n title={showStream ? 'End Stream' : 'End Session'}\n subtitle={`The will end the ${\n showStream ? 'stream' : 'session'\n } for everyone. You can't undo this action.`}\n bg=\"$alert_error_dim\"\n titleColor=\"$alert_error_brighter\"\n css={{ color: '$alert_error_bright', '&:hover': { color: '$alert_error_brighter' } }}\n icon={<StopIcon height={24} width={24} />}\n onClick={() => {\n setOpen(false);\n setShowEndStreamAlert(true);\n }}\n />\n </Sheet.Content>\n </Sheet.Root>\n ) : (\n <LeaveButton onClick={() => setShowLeaveRoomAlert(true)} />\n )}\n <Sheet.Root open={showEndStreamAlert} onOpenChange={setShowEndStreamAlert}>\n <Sheet.Content css={{ bg: '$surface_dim', p: '$10', pb: '$12' }} container={container}>\n <EndSessionContent\n setShowEndStreamAlert={setShowEndStreamAlert}\n leaveRoom={isStreamingOn ? leaveRoom : endRoom}\n isStreamingOn={isStreamingOn}\n />\n </Sheet.Content>\n </Sheet.Root>\n\n <Sheet.Root open={showLeaveRoomAlert} onOpenChange={setShowLeaveRoomAlert}>\n <Sheet.Content css={{ bg: '$surface_dim', p: '$10', pb: '$12' }} container={container}>\n <LeaveSessionContent setShowLeaveRoomAlert={setShowLeaveRoomAlert} leaveRoom={leaveRoom} />\n </Sheet.Content>\n </Sheet.Root>\n </Fragment>\n );\n};\n\nconst LeaveButton = ({ onClick }: { onClick: () => void }) => {\n const isMobileHLSStream = useMobileHLSStream();\n const isLandscapeHLSStream = useLandscapeHLSStream();\n\n return isMobileHLSStream || isLandscapeHLSStream ? (\n <IconButton key=\"LeaveRoom\" data-testid=\"leave_room_btn\" onClick={onClick}>\n <Tooltip title=\"Leave Room\">\n <Box>\n <CrossIcon />\n </Box>\n </Tooltip>\n </IconButton>\n ) : (\n <LeaveIconButton\n key=\"LeaveRoom\"\n data-testid=\"leave_room_btn\"\n css={{\n borderTopRightRadius: '$1',\n borderBottomRightRadius: '$1',\n }}\n onClick={onClick}\n >\n <Tooltip title=\"Leave Room\">\n <Box>\n <ExitIcon style={{ transform: 'rotate(180deg)' }} />\n </Box>\n </Tooltip>\n </LeaveIconButton>\n );\n};\n", "import React from 'react';\nimport { selectUnreadHMSMessagesCount, useHMSStore } from '@100mslive/react-sdk';\nimport { ChatIcon } from '@100mslive/react-icons';\nimport { Box, Flex, Text, Tooltip } from '../../..';\n// @ts-ignore: No implicit Any\nimport IconButton from '../../IconButton';\n// @ts-ignore: No implicit Any\nimport { useIsSidepaneTypeOpen, useSidepaneToggle } from '../AppData/useSidepane';\n// @ts-ignore: No implicit Any\nimport { SIDE_PANE_OPTIONS } from '../../common/constants';\n\nexport const ChatToggle = ({ onClick }: { onClick?: () => void }) => {\n const countUnreadMessages = useHMSStore(selectUnreadHMSMessagesCount);\n const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);\n const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);\n\n return (\n <Box\n css={{\n position: 'relative',\n }}\n >\n <Tooltip key=\"chat\" title={`${isChatOpen ? 'Close' : 'Open'} chat`}>\n <IconButton\n onClick={() => (onClick ? onClick() : toggleChat())}\n css={{ bg: isChatOpen ? '$surface_brighter' : '' }}\n data-testid=\"chat_btn\"\n >\n <ChatIcon />\n </IconButton>\n </Tooltip>\n {countUnreadMessages > 0 && (\n <Flex\n css={{\n height: '$8',\n p: '$4 4.5px',\n justifyContent: 'center',\n alignItems: 'center',\n position: 'absolute',\n top: '-$4',\n right: '-$4',\n borderRadius: '$space$14',\n background: '$primary_default',\n }}\n >\n <Text variant=\"overline\">{countUnreadMessages > 99 ? '99+' : countUnreadMessages}</Text>\n </Flex>\n )}\n </Box>\n );\n};\n"],
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,SACE,gBAAAC,OAAA;AAAA,IAAC;AAAA;AAAA,MACC,KAAK;AAAA,QACH,UAAU;AAAA,MACZ;AAAA;AAAA,IAEA,gBAAAA,OAAA,cAAC,WAAQ,KAAI,QAAO,OAAO,GAAG,aAAa,UAAU,MAAM,WACzD,gBAAAA,OAAA;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,MAAO,UAAU,QAAQ,IAAI,WAAW;AAAA,QACjD,KAAK,EAAE,IAAI,aAAa,sBAAsB,GAAG;AAAA,QACjD,eAAY;AAAA;AAAA,MAEZ,gBAAAA,OAAA,cAAC,cAAS;AAAA,IACZ,CACF;AAAA,IACC,sBAAsB,KACrB,gBAAAA,OAAA;AAAA,MAAC;AAAA;AAAA,QACC,KAAK;AAAA,UACH,QAAQ;AAAA,UACR,GAAG;AAAA,UACH,gBAAgB;AAAA,UAChB,YAAY;AAAA,UACZ,UAAU;AAAA,UACV,KAAK;AAAA,UACL,OAAO;AAAA,UACP,cAAc;AAAA,UACd,YAAY;AAAA,QACd;AAAA;AAAA,MAEA,gBAAAA,OAAA,cAAC,QAAK,SAAQ,cAAY,sBAAsB,KAAK,QAAQ,mBAAoB;AAAA,IACnF;AAAA,EAEJ;AAEJ;",
|
6
|
+
"names": ["React", "selectIsConnectedToRoom", "selectPermissions", "useHMSStore", "React", "React", "React", "React", "AlertTriangleIcon", "CrossIcon", "React", "AlertTriangleIcon", "CrossIcon", "React", "React", "Fragment", "useState", "selectIsConnectedToRoom", "selectPermissions", "useHMSStore", "useRecordingStreaming", "CrossIcon", "ExitIcon", "StopIcon", "useState", "useHMSStore", "selectIsConnectedToRoom", "selectPermissions", "useRecordingStreaming", "React", "Fragment", "open", "ExitIcon", "StopIcon", "CrossIcon", "useHMSStore", "selectIsConnectedToRoom", "selectPermissions", "React", "React", "useHMSStore", "useHMSStore", "React"]
|
7
|
+
}
|