@100mslive/roomkit-react 0.3.22-alpha.2 → 0.3.22-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Accordion/Accordion.d.ts +322 -134
- package/dist/Accordion/index.d.ts +322 -134
- package/dist/Avatar/Avatar.d.ts +141 -47
- package/dist/Button/Button.d.ts +141 -47
- package/dist/Checkbox/Checkbox.d.ts +322 -134
- package/dist/Collapsible/Collapsible.d.ts +483 -201
- package/dist/Divider/Divider.d.ts +322 -134
- package/dist/Dropdown/Dropdown.d.ts +1932 -804
- package/dist/Fieldset/Fieldset.d.ts +141 -47
- package/dist/Footer/Footer.d.ts +1288 -536
- package/dist/{HLSView-XRGOWFRB.js → HLSView-CSOBLYBP.js} +24 -38
- package/dist/HLSView-CSOBLYBP.js.map +7 -0
- package/dist/{PDFView-RJK44WVO.css → HLSView-QZMIDGI4.css} +3 -3
- package/dist/{EmbedView-Y24VRONT.css.map → HLSView-QZMIDGI4.css.map} +1 -1
- package/dist/IconButton/IconButton.d.ts +141 -47
- package/dist/Input/Input.d.ts +926 -362
- package/dist/Label/Label.d.ts +141 -47
- package/dist/Layout/Box.d.ts +141 -47
- package/dist/Layout/Flex.d.ts +141 -47
- package/dist/Link/Link.d.ts +141 -47
- package/dist/Modal/Dialog.d.ts +987 -329
- package/dist/Modal/DialogContent.d.ts +1127 -469
- package/dist/Pagination/StyledPagination.d.ts +644 -268
- package/dist/Popover/index.d.ts +483 -201
- package/dist/Prebuilt/IconButton.d.ts +322 -134
- package/dist/Prebuilt/components/Chat/ChatBody.d.ts +322 -134
- package/dist/Prebuilt/components/Leave/LeaveAtoms.d.ts +805 -335
- package/dist/Prebuilt/components/Settings/common.d.ts +322 -134
- package/dist/Progress/index.d.ts +322 -134
- package/dist/RadioGroup/RadioGroup.d.ts +483 -201
- package/dist/ReactSelect/ReactSelect.d.ts +1610 -670
- package/dist/Select/Select.d.ts +483 -201
- package/dist/Sheet/Sheet.d.ts +987 -329
- package/dist/Slider/Slider.d.ts +141 -47
- package/dist/Stats/StyledStats.d.ts +966 -402
- package/dist/Switch/Switch.d.ts +141 -47
- package/dist/Tabs/Tabs.d.ts +644 -268
- package/dist/Text/Text.d.ts +141 -47
- package/dist/TextArea/TextArea.d.ts +141 -47
- package/dist/Theme/base.config.d.ts +78 -26
- package/dist/Theme/stitches.config.d.ts +1514 -1067
- package/dist/TileMenu/StyledMenuTile.d.ts +1127 -469
- package/dist/Toast/Toast.d.ts +946 -382
- package/dist/Video/Video.d.ts +141 -47
- package/dist/VideoList/StyledVideoList.d.ts +483 -201
- package/dist/VideoTile/StyledVideoTile.d.ts +1610 -670
- package/dist/chunk-4VBHLZDR.js +34747 -0
- package/dist/chunk-4VBHLZDR.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +22687 -22873
- 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 +15 -25
- package/dist/meta.cjs.json +5125 -5444
- package/dist/meta.esbuild.json +6238 -9055
- package/package.json +8 -8
- package/src/Avatar/Avatar.tsx +1 -1
- package/src/Popover/Popover.stories.tsx +1 -1
- package/src/Prebuilt/App.tsx +2 -6
- package/src/Prebuilt/components/Chat/Chat.tsx +8 -12
- package/src/Prebuilt/components/Chat/ChatFooter.tsx +1 -1
- package/src/Prebuilt/components/Notifications/Notifications.tsx +159 -11
- package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +2 -23
- package/src/Prebuilt/components/Notifications/ReconnectNotifications.tsx +5 -1
- package/src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx +5 -7
- package/src/Prebuilt/components/Notifications/TrackNotifications.tsx +1 -23
- package/src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx +5 -13
- package/src/Prebuilt/components/StatsForNerds.jsx +3 -32
- package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +31 -43
- package/src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx +2 -2
- package/src/Prebuilt/components/VirtualBackground/VBOption.tsx +1 -3
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +0 -6
- package/src/Prebuilt/layouts/HLSView.jsx +0 -1
- package/src/Prebuilt/layouts/PDFView.jsx +0 -1
- package/src/Prebuilt/layouts/SidePane.tsx +6 -12
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +34 -35
- package/dist/ConferenceScreen-5G5WGPIO.css +0 -2780
- package/dist/ConferenceScreen-5G5WGPIO.css.map +0 -7
- package/dist/ConferenceScreen-KS5URW6Z.js +0 -1778
- package/dist/ConferenceScreen-KS5URW6Z.js.map +0 -7
- package/dist/EmbedView-BCRQ3GHV.js +0 -17
- package/dist/EmbedView-BCRQ3GHV.js.map +0 -7
- package/dist/EmbedView-Y24VRONT.css +0 -2780
- package/dist/EmojiReaction-NA5F5DWN.js +0 -11
- package/dist/EmojiReaction-NA5F5DWN.js.map +0 -7
- package/dist/HLSView-DC43TOIW.css +0 -2780
- package/dist/HLSView-DC43TOIW.css.map +0 -7
- package/dist/HLSView-XRGOWFRB.js.map +0 -7
- package/dist/LeaveScreen-3OZN3MU3.css +0 -2780
- package/dist/LeaveScreen-3OZN3MU3.css.map +0 -7
- package/dist/LeaveScreen-PC4KB6OG.js +0 -556
- package/dist/LeaveScreen-PC4KB6OG.js.map +0 -7
- package/dist/MoreSettings-KTRYHDB2.css +0 -2780
- package/dist/MoreSettings-KTRYHDB2.css.map +0 -7
- package/dist/MoreSettings-XLNYT7PW.js +0 -16
- package/dist/MoreSettings-XLNYT7PW.js.map +0 -7
- package/dist/PDFView-LJ7I3K3H.js +0 -84
- package/dist/PDFView-LJ7I3K3H.js.map +0 -7
- package/dist/PDFView-RJK44WVO.css.map +0 -7
- package/dist/Polls-AULCHMLW.js +0 -1584
- package/dist/Polls-AULCHMLW.js.map +0 -7
- package/dist/Polls-K4GO5ZOC.css +0 -2780
- package/dist/Polls-K4GO5ZOC.css.map +0 -7
- package/dist/Prebuilt/components/Notifications/DeviceChangeNotifications.d.ts +0 -1
- package/dist/Prebuilt/components/Notifications/ErrorNotifications.d.ts +0 -1
- package/dist/Prebuilt/components/Notifications/MessageNotifications.d.ts +0 -1
- package/dist/Prebuilt/components/Notifications/PollNotificationModal.d.ts +0 -1
- package/dist/RaiseHand-E4OVMBW6.js +0 -10
- package/dist/RaiseHand-E4OVMBW6.js.map +0 -7
- package/dist/RoleProminence-LHUXHLVI.css +0 -2780
- package/dist/RoleProminence-LHUXHLVI.css.map +0 -7
- package/dist/RoleProminence-RWJP2Z36.js +0 -116
- package/dist/RoleProminence-RWJP2Z36.js.map +0 -7
- package/dist/RoomDetailsPane-6BM2FPWW.css +0 -2780
- package/dist/RoomDetailsPane-6BM2FPWW.css.map +0 -7
- package/dist/RoomDetailsPane-7OP2CNJW.js +0 -53
- package/dist/RoomDetailsPane-7OP2CNJW.js.map +0 -7
- package/dist/ScreenshareLayout-RHTD2PQT.css +0 -2780
- package/dist/ScreenshareLayout-RHTD2PQT.css.map +0 -7
- package/dist/ScreenshareLayout-TM7DLYLH.js +0 -358
- package/dist/ScreenshareLayout-TM7DLYLH.js.map +0 -7
- package/dist/SidePaneTabs-T7BKZ2AT.js +0 -1354
- package/dist/SidePaneTabs-T7BKZ2AT.js.map +0 -7
- package/dist/SidePaneTabs-TBUPHNAU.css +0 -2780
- package/dist/SidePaneTabs-TBUPHNAU.css.map +0 -7
- package/dist/VBPicker-M5VYFEUB.css +0 -2780
- package/dist/VBPicker-M5VYFEUB.css.map +0 -7
- package/dist/VBPicker-TQLIL3NC.js +0 -322
- package/dist/VBPicker-TQLIL3NC.js.map +0 -7
- package/dist/WaitingView-TLJ52XYA.js +0 -10
- package/dist/WaitingView-TLJ52XYA.js.map +0 -7
- package/dist/WhiteboardLayout-PZZTM2FW.css +0 -2780
- package/dist/WhiteboardLayout-PZZTM2FW.css.map +0 -7
- package/dist/WhiteboardLayout-YYZ5UVGG.js +0 -96
- package/dist/WhiteboardLayout-YYZ5UVGG.js.map +0 -7
- package/dist/android-perm-1.png +0 -0
- package/dist/audio-level.png +0 -0
- package/dist/chunk-42XPBCZO.js +0 -487
- package/dist/chunk-42XPBCZO.js.map +0 -7
- package/dist/chunk-4BQ3AMVG.js +0 -16802
- package/dist/chunk-4BQ3AMVG.js.map +0 -7
- package/dist/chunk-4L5OKEIV.js +0 -90
- package/dist/chunk-4L5OKEIV.js.map +0 -7
- package/dist/chunk-6BX3VCVC.js +0 -6337
- package/dist/chunk-6BX3VCVC.js.map +0 -7
- package/dist/chunk-A3COGXMF.js +0 -114
- package/dist/chunk-A3COGXMF.js.map +0 -7
- package/dist/chunk-B3HHL3ND.js +0 -178
- package/dist/chunk-B3HHL3ND.js.map +0 -7
- package/dist/chunk-B5NLX6N6.js +0 -41
- package/dist/chunk-B5NLX6N6.js.map +0 -7
- package/dist/chunk-BXBPZGSP.js +0 -161
- package/dist/chunk-BXBPZGSP.js.map +0 -7
- package/dist/chunk-DVVFWHQG.js +0 -136
- package/dist/chunk-DVVFWHQG.js.map +0 -7
- package/dist/chunk-GV2DTYSU.js +0 -262
- package/dist/chunk-GV2DTYSU.js.map +0 -7
- package/dist/chunk-KF2YEUWU.js +0 -254
- package/dist/chunk-KF2YEUWU.js.map +0 -7
- package/dist/chunk-KQXTIHI6.js +0 -59
- package/dist/chunk-KQXTIHI6.js.map +0 -7
- package/dist/chunk-MR3HE7HV.js +0 -830
- package/dist/chunk-MR3HE7HV.js.map +0 -7
- package/dist/chunk-OQBTPJPO.js +0 -71
- package/dist/chunk-OQBTPJPO.js.map +0 -7
- package/dist/chunk-P7OOTR7P.js +0 -2595
- package/dist/chunk-P7OOTR7P.js.map +0 -7
- package/dist/chunk-THDU2DKP.js +0 -30
- package/dist/chunk-THDU2DKP.js.map +0 -7
- package/dist/chunk-U4QYH2BP.js +0 -98
- package/dist/chunk-U4QYH2BP.js.map +0 -7
- package/dist/chunk-USEEH3QW.js +0 -418
- package/dist/chunk-USEEH3QW.js.map +0 -7
- package/dist/chunk-UZW3C3ML.js +0 -171
- package/dist/chunk-UZW3C3ML.js.map +0 -7
- package/dist/chunk-YDIB6WKJ.js +0 -576
- package/dist/chunk-YDIB6WKJ.js.map +0 -7
- package/dist/chunk-ZFTULCCP.js +0 -62
- package/dist/chunk-ZFTULCCP.js.map +0 -7
- package/dist/empty-chat.svg +0 -12
- package/dist/ios-perm-0.png +0 -0
- package/dist/pdf-share.png +0 -0
- package/dist/screen-share.png +0 -0
- package/dist/transaction_error.svg +0 -12
- package/src/Prebuilt/components/Notifications/DeviceChangeNotifications.tsx +0 -18
- package/src/Prebuilt/components/Notifications/ErrorNotifications.tsx +0 -56
- package/src/Prebuilt/components/Notifications/MessageNotifications.tsx +0 -24
- package/src/Prebuilt/components/Notifications/PollNotificationModal.tsx +0 -71
@@ -1,7 +0,0 @@
|
|
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,2CAA4C,UAAS,4DAA6D,mBAAkB,iBAAkB,oCAAmC,iBAAkB,2BAA0B,OAAQ,KAAI,kDAAmD,SAAQ,kDAAmD,SAAQ,oDAAqD,WAAU,oCAAqC,oBAAmB,oDAAqD,WAAU,qBAAsB,QAAO,MAAO,gBAAe,uDAAwD,UAAS,iDAAkD,SAAQ,iDAAkD,UAAS,qBAAsB,OAAM,kCAAmC,0BAAyB,aAAc,2BAA0B,mBAAoB,uDAAsD,gCAAiC,4CAA2C,0CAA2C,WAAU,kBAAmB,qCAAoC,cAAe,iBAAgB,yBAA0B,aAAY,0BAA2B,QAAO,qDAAsD,WAAU,yBAA0B,OAAM,aAAc,4BA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;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
|
-
}
|
package/dist/chunk-ZFTULCCP.js
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
__async,
|
3
|
-
init_define_process_env
|
4
|
-
} from "./chunk-YDIB6WKJ.js";
|
5
|
-
|
6
|
-
// src/Prebuilt/components/hooks/useMetadata.tsx
|
7
|
-
init_define_process_env();
|
8
|
-
import { useCallback } from "react";
|
9
|
-
import {
|
10
|
-
selectHasPeerHandRaised,
|
11
|
-
selectLocalPeerID,
|
12
|
-
selectPeerMetadata,
|
13
|
-
useHMSActions,
|
14
|
-
useHMSStore,
|
15
|
-
useHMSVanillaStore
|
16
|
-
} from "@100mslive/react-sdk";
|
17
|
-
var useMyMetadata = () => {
|
18
|
-
const hmsActions = useHMSActions();
|
19
|
-
const localPeerId = useHMSStore(selectLocalPeerID);
|
20
|
-
const vanillaStore = useHMSVanillaStore();
|
21
|
-
const metaData = useHMSStore(selectPeerMetadata(localPeerId));
|
22
|
-
const isHandRaised = useHMSStore(selectHasPeerHandRaised(localPeerId));
|
23
|
-
const update = (updatedFields) => __async(void 0, null, function* () {
|
24
|
-
try {
|
25
|
-
const currentMetadata = vanillaStore.getState(selectPeerMetadata(localPeerId));
|
26
|
-
yield hmsActions.changeMetadata(Object.assign(currentMetadata, updatedFields));
|
27
|
-
return true;
|
28
|
-
} catch (error) {
|
29
|
-
console.error("failed to update metadata ", updatedFields);
|
30
|
-
}
|
31
|
-
return false;
|
32
|
-
});
|
33
|
-
const toggleHandRaise = useCallback(() => __async(void 0, null, function* () {
|
34
|
-
if (isHandRaised) {
|
35
|
-
yield hmsActions.lowerLocalPeerHand();
|
36
|
-
yield update({ handRaisedAt: void 0 });
|
37
|
-
} else {
|
38
|
-
yield hmsActions.raiseLocalPeerHand();
|
39
|
-
yield update({ isBRBOn: false, handRaisedAt: Date.now() });
|
40
|
-
}
|
41
|
-
}), [isHandRaised]);
|
42
|
-
const toggleBRB = useCallback(() => __async(void 0, null, function* () {
|
43
|
-
const newValue = !(metaData == null ? void 0 : metaData.isBRBOn);
|
44
|
-
yield update({ isBRBOn: newValue });
|
45
|
-
if (newValue) {
|
46
|
-
yield hmsActions.lowerLocalPeerHand();
|
47
|
-
}
|
48
|
-
}), [metaData == null ? void 0 : metaData.isBRBOn]);
|
49
|
-
return {
|
50
|
-
isHandRaised,
|
51
|
-
isBRBOn: !!(metaData == null ? void 0 : metaData.isBRBOn),
|
52
|
-
metaData,
|
53
|
-
updateMetaData: update,
|
54
|
-
toggleHandRaise,
|
55
|
-
toggleBRB
|
56
|
-
};
|
57
|
-
};
|
58
|
-
|
59
|
-
export {
|
60
|
-
useMyMetadata
|
61
|
-
};
|
62
|
-
//# sourceMappingURL=chunk-ZFTULCCP.js.map
|
@@ -1,7 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../src/Prebuilt/components/hooks/useMetadata.tsx"],
|
4
|
-
"sourcesContent": ["import { useCallback } from 'react';\nimport {\n selectHasPeerHandRaised,\n selectLocalPeerID,\n selectPeerMetadata,\n useHMSActions,\n useHMSStore,\n useHMSVanillaStore,\n} from '@100mslive/react-sdk';\n\nexport const useMyMetadata = () => {\n const hmsActions = useHMSActions();\n const localPeerId = useHMSStore(selectLocalPeerID);\n const vanillaStore = useHMSVanillaStore();\n const metaData = useHMSStore(selectPeerMetadata(localPeerId));\n const isHandRaised = useHMSStore(selectHasPeerHandRaised(localPeerId));\n\n const update = async (updatedFields: Record<string, any>) => {\n try {\n // get current state from store and merge updated fields\n const currentMetadata = vanillaStore.getState(selectPeerMetadata(localPeerId));\n await hmsActions.changeMetadata(Object.assign(currentMetadata, updatedFields));\n return true;\n } catch (error) {\n console.error('failed to update metadata ', updatedFields);\n }\n return false;\n };\n\n const toggleHandRaise = useCallback(async () => {\n if (isHandRaised) {\n await hmsActions.lowerLocalPeerHand();\n await update({ handRaisedAt: undefined });\n } else {\n await hmsActions.raiseLocalPeerHand();\n await update({ isBRBOn: false, handRaisedAt: Date.now() });\n }\n }, [isHandRaised]); //eslint-disable-line\n\n const toggleBRB = useCallback(async () => {\n const newValue = !metaData?.isBRBOn;\n await update({ isBRBOn: newValue });\n if (newValue) {\n await hmsActions.lowerLocalPeerHand();\n }\n }, [metaData?.isBRBOn]); //eslint-disable-line\n\n return {\n isHandRaised,\n isBRBOn: !!metaData?.isBRBOn,\n metaData,\n updateMetaData: update,\n toggleHandRaise,\n toggleBRB,\n };\n};\n"],
|
5
|
-
"mappings": ";;;;;;AAAA;AAAA,SAAS,mBAAmB;AAC5B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEA,IAAM,gBAAgB,MAAM;AACjC,QAAM,aAAa,cAAc;AACjC,QAAM,cAAc,YAAY,iBAAiB;AACjD,QAAM,eAAe,mBAAmB;AACxC,QAAM,WAAW,YAAY,mBAAmB,WAAW,CAAC;AAC5D,QAAM,eAAe,YAAY,wBAAwB,WAAW,CAAC;AAErE,QAAM,SAAS,CAAO,kBAAuC;AAC3D,QAAI;AAEF,YAAM,kBAAkB,aAAa,SAAS,mBAAmB,WAAW,CAAC;AAC7E,YAAM,WAAW,eAAe,OAAO,OAAO,iBAAiB,aAAa,CAAC;AAC7E,aAAO;AAAA,IACT,SAAS,OAAO;AACd,cAAQ,MAAM,8BAA8B,aAAa;AAAA,IAC3D;AACA,WAAO;AAAA,EACT;AAEA,QAAM,kBAAkB,YAAY,MAAY;AAC9C,QAAI,cAAc;AAChB,YAAM,WAAW,mBAAmB;AACpC,YAAM,OAAO,EAAE,cAAc,OAAU,CAAC;AAAA,IAC1C,OAAO;AACL,YAAM,WAAW,mBAAmB;AACpC,YAAM,OAAO,EAAE,SAAS,OAAO,cAAc,KAAK,IAAI,EAAE,CAAC;AAAA,IAC3D;AAAA,EACF,IAAG,CAAC,YAAY,CAAC;AAEjB,QAAM,YAAY,YAAY,MAAY;AACxC,UAAM,WAAW,EAAC,qCAAU;AAC5B,UAAM,OAAO,EAAE,SAAS,SAAS,CAAC;AAClC,QAAI,UAAU;AACZ,YAAM,WAAW,mBAAmB;AAAA,IACtC;AAAA,EACF,IAAG,CAAC,qCAAU,OAAO,CAAC;AAEtB,SAAO;AAAA,IACL;AAAA,IACA,SAAS,CAAC,EAAC,qCAAU;AAAA,IACrB;AAAA,IACA,gBAAgB;AAAA,IAChB;AAAA,IACA;AAAA,EACF;AACF;",
|
6
|
-
"names": []
|
7
|
-
}
|
package/dist/empty-chat.svg
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
<svg width="184" height="133" viewBox="0 0 184 133" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M144.885 91.3998C145.318 91.023 145.861 90.7947 146.433 90.7483L146.446 90.7473L169.355 89.1614C169.702 89.1376 170.049 89.2101 170.358 89.3712C170.662 89.5305 170.918 89.7702 171.096 90.0642C171.098 90.0672 171.1 90.0703 171.102 90.0734L171.104 90.0766C171.281 90.3744 171.373 90.7154 171.369 91.062C171.365 91.4097 171.265 91.7496 171.08 92.044L158.85 111.504C158.539 111.986 158.081 112.356 157.544 112.56C157.007 112.764 156.419 112.791 155.866 112.636C155.313 112.482 154.823 112.155 154.469 111.703C154.115 111.25 153.915 110.697 153.898 110.123C153.898 110.109 153.898 110.094 153.898 110.08L153.996 100.307L145.347 95.7858C145.334 95.779 145.321 95.7721 145.308 95.7649C144.811 95.4785 144.417 95.0404 144.186 94.5146C143.955 93.9888 143.898 93.4029 144.024 92.8425C144.15 92.2821 144.451 91.7765 144.885 91.3998ZM167.441 91.0088L146.603 92.8952C146.49 92.9053 146.383 92.9508 146.298 93.0251C146.211 93.1005 146.151 93.2016 146.125 93.3137C146.1 93.4257 146.112 93.5429 146.158 93.6481C146.202 93.7484 146.276 93.8327 146.369 93.89L155.26 98.296L167.441 91.0088ZM156.32 100.171L168.547 92.8564L157.039 110.339C156.976 110.434 156.886 110.506 156.78 110.547C156.673 110.587 156.555 110.593 156.444 110.562C156.334 110.531 156.236 110.466 156.165 110.375C156.097 110.289 156.058 110.184 156.052 110.075L156.32 100.171Z" fill="#444954"/>
|
3
|
-
<path d="M83.3248 35.4156C71.7182 47.1017 51.2098 75.5175 62.0292 95.6918C75.5536 120.91 140.453 79.2983 115.364 67.6657C90.2756 56.0331 65.8818 122.018 101.568 120.391C116.398 118.62 131.221 114.699 145.703 105.512" stroke="#293042" stroke-width="2.25" stroke-dasharray="6 6"/>
|
4
|
-
<rect x="0.00256348" y="0.5" width="173.524" height="58.3398" rx="29.1699" fill="#272A31"/>
|
5
|
-
<g opacity="0.4">
|
6
|
-
<rect x="24.7526" y="20.9312" width="111" height="4.5" rx="2.25" fill="#444954"/>
|
7
|
-
</g>
|
8
|
-
<g opacity="0.4">
|
9
|
-
<rect x="38.2526" y="34.4312" width="110.25" height="4.5" rx="2.25" fill="#444954"/>
|
10
|
-
</g>
|
11
|
-
<path d="M40.3918 71.5547L28.4246 55.0999L52.3589 55.0999L40.3918 71.5547Z" fill="#272A31"/>
|
12
|
-
</svg>
|
package/dist/ios-perm-0.png
DELETED
Binary file
|
package/dist/pdf-share.png
DELETED
Binary file
|
package/dist/screen-share.png
DELETED
Binary file
|
@@ -1,12 +0,0 @@
|
|
1
|
-
<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path d="M70 68.3333V26.6667C70 24.825 68.5083 23.3333 66.6667 23.3333H13.3333C11.4917 23.3333 10 24.825 10 26.6667V68.3333C10 70.175 11.4917 71.6667 13.3333 71.6667H66.6667C68.5083 71.6667 70 70.175 70 68.3333Z" fill="#272A31"/>
|
3
|
-
<path d="M20 31.6667H60C61.8417 31.6667 63.3333 33.1583 63.3333 35C63.3333 36.8417 61.8417 38.3333 60 38.3333H20C18.1583 38.3333 16.6667 36.8417 16.6667 35C16.6667 33.1583 18.1583 31.6667 20 31.6667Z" fill="#8F9099"/>
|
4
|
-
<path d="M58.3333 36.6667V10C58.3333 9.08 57.5867 8.33334 56.6667 8.33334H55C55 9.25334 54.2533 10 53.3333 10C52.4133 10 51.6667 9.25334 51.6667 8.33334H48.3333C48.3333 9.25334 47.5867 10 46.6667 10C45.7467 10 45 9.25334 45 8.33334H41.6667C41.6667 9.25334 40.92 10 40 10C39.08 10 38.3333 9.25334 38.3333 8.33334H35C35 9.25334 34.2533 10 33.3333 10C32.4133 10 31.6667 9.25334 31.6667 8.33334H28.3333C28.3333 9.25334 27.5867 10 26.6667 10C25.7467 10 25 9.25334 25 8.33334H23.3333C22.4133 8.33334 21.6667 9.08 21.6667 10V36.6667H58.3333Z" fill="#C74E5B"/>
|
5
|
-
<path d="M21.6667 43.3333H58.3333C60.175 43.3333 61.6667 44.825 61.6667 46.6667V50C61.6667 51.8417 60.175 53.3333 58.3333 53.3333H21.6667C19.825 53.3333 18.3333 51.8417 18.3333 50V46.6667C18.3333 44.825 19.825 43.3333 21.6667 43.3333Z" fill="#C5C6D0"/>
|
6
|
-
<path d="M60 66.6667H55C54.08 66.6667 53.3333 65.92 53.3333 65V60C53.3333 59.08 54.08 58.3333 55 58.3333H60C60.92 58.3333 61.6667 59.08 61.6667 60V65C61.6667 65.92 60.92 66.6667 60 66.6667Z" fill="#C5C6D0"/>
|
7
|
-
<path d="M25 66.6667H20C19.08 66.6667 18.3333 65.92 18.3333 65V60C18.3333 59.08 19.08 58.3333 20 58.3333H25C25.92 58.3333 26.6667 59.08 26.6667 60V65C26.6667 65.92 25.92 66.6667 25 66.6667ZM36.6667 66.6667H31.6667C30.7467 66.6667 30 65.92 30 65V60C30 59.08 30.7467 58.3333 31.6667 58.3333H36.6667C37.5867 58.3333 38.3333 59.08 38.3333 60V65C38.3333 65.92 37.5867 66.6667 36.6667 66.6667ZM48.3333 66.6667H43.3333C42.4133 66.6667 41.6667 65.92 41.6667 65V60C41.6667 59.08 42.4133 58.3333 43.3333 58.3333H48.3333C49.2533 58.3333 50 59.08 50 60V65C50 65.92 49.2533 66.6667 48.3333 66.6667Z" fill="#C5C6D0"/>
|
8
|
-
<path d="M58.3333 35H21.6667V38.3333H58.3333V35Z" fill="#C74E5B"/>
|
9
|
-
<path opacity="0.05" d="M45.3033 32.315C44.6383 32.315 44.01 32.0567 43.5367 31.585L40 28.0467L36.465 31.5817C35.9917 32.0533 35.365 32.3133 34.6967 32.3133C34.0283 32.3133 33.4 32.0533 32.9267 31.58L31.75 30.4033C31.2783 29.9333 31.0183 29.3033 31.0183 28.6333C31.0183 27.9667 31.2783 27.3383 31.75 26.8667L35.2867 23.3333L31.7517 19.7983C31.28 19.3283 31.02 18.7 31.02 18.0317C31.02 17.3617 31.28 16.7333 31.7517 16.2617L32.93 15.0833C33.4017 14.6117 34.0283 14.3517 34.6983 14.3517C35.3633 14.3517 35.9917 14.61 36.465 15.0817L40 18.62L43.535 15.0833C44.0083 14.6117 44.635 14.3517 45.3033 14.3517C45.9683 14.3517 46.5967 14.61 47.07 15.0817L48.25 16.2617C48.7217 16.7317 48.9817 17.3617 48.9817 18.0317C48.9817 18.6983 48.7217 19.3267 48.25 19.7983L44.7117 23.3333L48.2483 26.87C49.2217 27.84 49.2233 29.425 48.2517 30.4017L47.07 31.5833C46.5983 32.055 45.9717 32.315 45.3033 32.315Z" fill="black"/>
|
10
|
-
<path opacity="0.07" d="M45.3033 31.4817C44.8583 31.4817 44.44 31.3083 44.125 30.995L40 26.8683L35.875 30.9933C35.56 31.3083 35.1417 31.48 34.6967 31.48C34.25 31.48 33.8317 31.3067 33.5183 30.9917L32.34 29.8133C32.025 29.4983 31.8517 29.08 31.8517 28.6333C31.8517 28.1883 32.025 27.77 32.34 27.455L36.465 23.3333L32.34 19.2083C32.0267 18.895 31.8517 18.4767 31.8517 18.0317C31.8517 17.585 32.025 17.1667 32.34 16.8517L33.5183 15.6733C33.8317 15.36 34.25 15.1867 34.6967 15.1867C35.1417 15.1867 35.56 15.36 35.875 15.6733L40 19.7983L44.125 15.6717C44.44 15.3567 44.8583 15.185 45.3033 15.185C45.7483 15.185 46.1667 15.3583 46.4817 15.6717L47.66 16.8517C47.975 17.1667 48.1483 17.585 48.1483 18.0317C48.1483 18.4767 47.975 18.895 47.66 19.21L43.5333 23.3333L47.66 27.46C48.31 28.1067 48.31 29.1633 47.6617 29.815L46.4817 30.995C46.1667 31.3083 45.7483 31.4817 45.3033 31.4817Z" fill="black"/>
|
11
|
-
<path d="M42.3567 23.3333L47.0717 18.6183C47.3967 18.2933 47.3967 17.765 47.0717 17.44L45.8933 16.2617C45.5667 15.9367 45.04 15.9367 44.715 16.2617L40 20.9767L35.2867 16.2633C34.9617 15.9383 34.4333 15.9383 34.1083 16.2633L32.93 17.4417C32.605 17.7667 32.605 18.295 32.93 18.62L37.6433 23.3333L32.93 28.0467C32.605 28.3717 32.605 28.9 32.93 29.225L34.1083 30.4033C34.4333 30.7283 34.9617 30.7283 35.2867 30.4033L40 25.69L44.715 30.405C45.04 30.73 45.5683 30.73 45.8933 30.405L47.0717 29.2267C47.3967 28.9 47.3967 28.3733 47.0717 28.0483L42.3567 23.3333Z" fill="#FFEDEC"/>
|
12
|
-
</svg>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { useEffect } from 'react';
|
2
|
-
import { HMSNotificationTypes, useHMSNotifications } from '@100mslive/react-sdk';
|
3
|
-
// @ts-ignore: No implicit Any
|
4
|
-
import { ToastManager } from '../Toast/ToastManager';
|
5
|
-
|
6
|
-
export const DeviceChangeNotifications = () => {
|
7
|
-
const notification = useHMSNotifications(HMSNotificationTypes.DEVICE_CHANGE_UPDATE);
|
8
|
-
|
9
|
-
useEffect(() => {
|
10
|
-
if (notification) {
|
11
|
-
ToastManager.addToast({
|
12
|
-
title: notification.message,
|
13
|
-
});
|
14
|
-
}
|
15
|
-
}, [notification]);
|
16
|
-
|
17
|
-
return null;
|
18
|
-
};
|
@@ -1,56 +0,0 @@
|
|
1
|
-
import React, { useEffect } from 'react';
|
2
|
-
import { HMSNotificationTypes, useHMSNotifications } from '@100mslive/react-sdk';
|
3
|
-
import { GroupIcon } from '@100mslive/react-icons';
|
4
|
-
import { Box } from '../../../Layout';
|
5
|
-
// @ts-ignore: No implicit Any
|
6
|
-
import { ToastManager } from '../Toast/ToastManager';
|
7
|
-
// @ts-ignore: No implicit Any
|
8
|
-
import { useSubscribedNotifications } from '../AppData/useUISettings';
|
9
|
-
|
10
|
-
export const ErrorNotifications = () => {
|
11
|
-
const notification = useHMSNotifications(HMSNotificationTypes.ERROR);
|
12
|
-
const subscribedNotifications = useSubscribedNotifications() || {};
|
13
|
-
|
14
|
-
useEffect(() => {
|
15
|
-
if (!notification || !notification.data) return;
|
16
|
-
|
17
|
-
const { isTerminal, action, code, message, description } = notification.data;
|
18
|
-
|
19
|
-
if (isTerminal && action !== 'INIT') {
|
20
|
-
if ([500, 6008].includes(code)) {
|
21
|
-
ToastManager.addToast({
|
22
|
-
title: `Error: ${message}`,
|
23
|
-
});
|
24
|
-
} else if (message === 'role limit reached') {
|
25
|
-
ToastManager.addToast({
|
26
|
-
title: 'The room is currently full, try joining later',
|
27
|
-
close: true,
|
28
|
-
icon: (
|
29
|
-
<Box css={{ color: '$alert_error_default' }}>
|
30
|
-
<GroupIcon />
|
31
|
-
</Box>
|
32
|
-
),
|
33
|
-
});
|
34
|
-
} else {
|
35
|
-
ToastManager.addToast({
|
36
|
-
title: message || 'We couldn’t reconnect you. When you’re back online, try joining the room.',
|
37
|
-
close: false,
|
38
|
-
});
|
39
|
-
}
|
40
|
-
return;
|
41
|
-
}
|
42
|
-
// Autoplay error or user denied screen share (cancelled browser pop-up)
|
43
|
-
if ([3008, 3001, 3011].includes(code)) {
|
44
|
-
return;
|
45
|
-
}
|
46
|
-
if (action === 'INIT') {
|
47
|
-
return;
|
48
|
-
}
|
49
|
-
if (!subscribedNotifications.ERROR) return;
|
50
|
-
ToastManager.addToast({
|
51
|
-
title: `Error: ${message} - ${description}`,
|
52
|
-
});
|
53
|
-
}, [notification, subscribedNotifications.ERROR]);
|
54
|
-
|
55
|
-
return null;
|
56
|
-
};
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { useEffect } from 'react';
|
2
|
-
import { HMSNotificationTypes, selectIsLocalScreenShared } from '@100mslive/hms-video-store';
|
3
|
-
import { useAwayNotifications, useHMSNotifications, useHMSStore } from '@100mslive/react-sdk';
|
4
|
-
import { useRoomLayout } from '../../provider/roomLayoutProvider';
|
5
|
-
import { usePIPWindow } from '../PIP/usePIPWindow';
|
6
|
-
|
7
|
-
export const MessageNotifications = () => {
|
8
|
-
const notification = useHMSNotifications(HMSNotificationTypes.NEW_MESSAGE);
|
9
|
-
const amIScreenSharing = useHMSStore(selectIsLocalScreenShared);
|
10
|
-
const logoURL = useRoomLayout()?.logo?.url;
|
11
|
-
const { pipWindow } = usePIPWindow();
|
12
|
-
const { showNotification } = useAwayNotifications();
|
13
|
-
|
14
|
-
useEffect(() => {
|
15
|
-
if (notification && amIScreenSharing && !notification.data?.ignored && !pipWindow) {
|
16
|
-
showNotification(`New message from ${notification.data.senderName}`, {
|
17
|
-
body: notification.data.message,
|
18
|
-
icon: logoURL,
|
19
|
-
});
|
20
|
-
}
|
21
|
-
}, [notification]);
|
22
|
-
|
23
|
-
return null;
|
24
|
-
};
|
@@ -1,71 +0,0 @@
|
|
1
|
-
import React, { useEffect } from 'react';
|
2
|
-
import {
|
3
|
-
HMSNotificationTypes,
|
4
|
-
selectLocalPeerID,
|
5
|
-
selectPeerNameByID,
|
6
|
-
useHMSNotifications,
|
7
|
-
useHMSStore,
|
8
|
-
useHMSVanillaStore,
|
9
|
-
} from '@100mslive/react-sdk';
|
10
|
-
import { Button } from '../../../Button';
|
11
|
-
// @ts-ignore: No implicit Any
|
12
|
-
import { ToastManager } from '../Toast/ToastManager';
|
13
|
-
import { useRoomLayoutConferencingScreen } from '../../provider/roomLayoutProvider/hooks/useRoomLayoutScreen';
|
14
|
-
// @ts-ignore: No implicit Any
|
15
|
-
import { usePollViewToggle } from '../AppData/useSidepane';
|
16
|
-
|
17
|
-
const notificationTypes = [HMSNotificationTypes.POLL_STARTED, HMSNotificationTypes.POLL_STOPPED];
|
18
|
-
|
19
|
-
const pollToastKey: Record<string, string> = {};
|
20
|
-
|
21
|
-
export const PollNotificationModal = () => {
|
22
|
-
const togglePollView = usePollViewToggle();
|
23
|
-
const localPeerID = useHMSStore(selectLocalPeerID);
|
24
|
-
const vanillaStore = useHMSVanillaStore();
|
25
|
-
const screenProps = useRoomLayoutConferencingScreen();
|
26
|
-
|
27
|
-
const notification = useHMSNotifications(notificationTypes);
|
28
|
-
|
29
|
-
useEffect(() => {
|
30
|
-
switch (notification?.type) {
|
31
|
-
case HMSNotificationTypes.POLL_STARTED:
|
32
|
-
if (notification.data.startedBy !== localPeerID && screenProps.screenType !== 'hls_live_streaming') {
|
33
|
-
const pollStartedBy = vanillaStore.getState(selectPeerNameByID(notification.data.startedBy)) || 'Participant';
|
34
|
-
|
35
|
-
const pollToastID = ToastManager.addToast({
|
36
|
-
title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
|
37
|
-
action: (
|
38
|
-
<Button
|
39
|
-
onClick={() => togglePollView(notification.data.id)}
|
40
|
-
variant="standard"
|
41
|
-
css={{
|
42
|
-
backgroundColor: '$surface_bright',
|
43
|
-
fontWeight: '$semiBold',
|
44
|
-
color: '$on_surface_high',
|
45
|
-
p: '$xs $md',
|
46
|
-
}}
|
47
|
-
>
|
48
|
-
{notification.data.type === 'quiz' ? 'Answer' : 'Vote'}
|
49
|
-
</Button>
|
50
|
-
),
|
51
|
-
duration: Infinity,
|
52
|
-
});
|
53
|
-
pollToastKey[notification.data.id] = pollToastID;
|
54
|
-
}
|
55
|
-
break;
|
56
|
-
case HMSNotificationTypes.POLL_STOPPED:
|
57
|
-
{
|
58
|
-
const pollID = notification?.data.id;
|
59
|
-
if (pollID && pollToastKey?.[pollID]) {
|
60
|
-
ToastManager.removeToast(pollToastKey?.[notification.data.id]);
|
61
|
-
delete pollToastKey[notification?.data.id];
|
62
|
-
}
|
63
|
-
}
|
64
|
-
break;
|
65
|
-
default:
|
66
|
-
break;
|
67
|
-
}
|
68
|
-
}, [notification]);
|
69
|
-
|
70
|
-
return null;
|
71
|
-
};
|