From 95e4c71ffa28245b81cc75360e65d59417a45359 Mon Sep 17 00:00:00 2001 From: raviteja83 Date: Wed, 28 Feb 2024 22:31:23 +0530 Subject: [PATCH 1/8] refactor: use ts-pattern to simplify conditions --- packages/roomkit-react/src/Prebuilt/App.tsx | 11 ++-- .../src/Prebuilt/AppStateContext.tsx | 38 ++++++++----- .../layouts/VideoStreamingSection.tsx | 54 +++++++++++-------- 3 files changed, 62 insertions(+), 41 deletions(-) diff --git a/packages/roomkit-react/src/Prebuilt/App.tsx b/packages/roomkit-react/src/Prebuilt/App.tsx index ddaaf9b58e..52988c7df1 100644 --- a/packages/roomkit-react/src/Prebuilt/App.tsx +++ b/packages/roomkit-react/src/Prebuilt/App.tsx @@ -1,6 +1,7 @@ import React, { MutableRefObject, useEffect, useRef } from 'react'; import { HMSStatsStoreWrapper, HMSStoreWrapper, IHMSNotifications } from '@100mslive/hms-video-store'; import { Layout, Logo, Screens, Theme, Typography } from '@100mslive/types-prebuilt'; +import { match } from 'ts-pattern'; import { HMSActions, HMSReactiveStore, @@ -251,12 +252,10 @@ const AppStates = ({ activeState }: { activeState: PrebuiltStates }) => { const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen(); useAutoStartStreaming(); - if (activeState === PrebuiltStates.PREVIEW && isPreviewScreenEnabled) { - return ; - } else if (activeState === PrebuiltStates.LEAVE && isLeaveScreenEnabled) { - return ; - } - return ; + return match({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }) + .with({ activeState: PrebuiltStates.PREVIEW, isPreviewScreenEnabled: true }, () => ) + .with({ activeState: PrebuiltStates.LEAVE, isLeaveScreenEnabled: true }, () => ) + .otherwise(() => ); }; const BackSwipe = () => { diff --git a/packages/roomkit-react/src/Prebuilt/AppStateContext.tsx b/packages/roomkit-react/src/Prebuilt/AppStateContext.tsx index 79f43bed4e..07df558d8f 100644 --- a/packages/roomkit-react/src/Prebuilt/AppStateContext.tsx +++ b/packages/roomkit-react/src/Prebuilt/AppStateContext.tsx @@ -1,5 +1,6 @@ import React, { useContext, useEffect } from 'react'; import { usePreviousDistinct } from 'react-use'; +import { match, P } from 'ts-pattern'; import { HMSRoomState, selectRoomState, useHMSStore } from '@100mslive/react-sdk'; import { VBHandler } from './components/VirtualBackground/VBHandler'; import { useRoomLayout } from './provider/roomLayoutProvider'; @@ -52,20 +53,29 @@ export const useAppStateManager = () => { if (!roomLayout) { return; } - if (roomState === HMSRoomState.Connected) { - setActiveState(PrebuiltStates.MEETING); - } else if ( - prevRoomState && - [HMSRoomState.Reconnecting, HMSRoomState.Connected, HMSRoomState.Connecting].includes(prevRoomState) && - [HMSRoomState.Disconnecting, HMSRoomState.Disconnected].includes(roomState) - ) { - const goTo = isPreviewScreenEnabled ? PrebuiltStates.PREVIEW : PrebuiltStates.MEETING; - setActiveState(isLeaveScreenEnabled ? PrebuiltStates.LEAVE : goTo); - VBHandler.reset(); - redirectToLeave(1000); // to clear toasts after 1 second - } else if (!prevRoomState && roomState === HMSRoomState.Disconnected) { - setActiveState(isPreviewScreenEnabled ? PrebuiltStates.PREVIEW : PrebuiltStates.MEETING); - } + match([roomState, prevRoomState]) + .with([HMSRoomState.Connected, P.any], () => setActiveState(PrebuiltStates.MEETING)) + .with( + [HMSRoomState.Disconnecting, HMSRoomState.Connected], + [HMSRoomState.Disconnecting, HMSRoomState.Connecting], + [HMSRoomState.Disconnecting, HMSRoomState.Reconnecting], + [HMSRoomState.Disconnected, HMSRoomState.Connected], + [HMSRoomState.Disconnected, HMSRoomState.Connecting], + [HMSRoomState.Disconnected, HMSRoomState.Reconnecting], + () => { + setActiveState( + match({ isLeaveScreenEnabled, isPreviewScreenEnabled }) + .with({ isLeaveScreenEnabled: true }, () => PrebuiltStates.LEAVE) + .with({ isPreviewScreenEnabled: true }, () => PrebuiltStates.PREVIEW) + .otherwise(() => PrebuiltStates.MEETING), + ); + VBHandler.reset(); + redirectToLeave(1000); // to clear toasts after 1 second + }, + ) + .with([HMSRoomState.Disconnected, P.not(P.nullish)], () => { + setActiveState(isPreviewScreenEnabled ? PrebuiltStates.PREVIEW : PrebuiltStates.MEETING); + }); }, [roomLayout, roomState, isLeaveScreenEnabled, isPreviewScreenEnabled, prevRoomState, redirectToLeave]); return { activeState, rejoin }; diff --git a/packages/roomkit-react/src/Prebuilt/layouts/VideoStreamingSection.tsx b/packages/roomkit-react/src/Prebuilt/layouts/VideoStreamingSection.tsx index d6b6cb5e37..71cca635e9 100644 --- a/packages/roomkit-react/src/Prebuilt/layouts/VideoStreamingSection.tsx +++ b/packages/roomkit-react/src/Prebuilt/layouts/VideoStreamingSection.tsx @@ -4,6 +4,7 @@ import { DefaultConferencingScreen_Elements, HLSLiveStreamingScreen_Elements, } from '@100mslive/types-prebuilt'; +import { match } from 'ts-pattern'; import { selectIsConnectedToRoom, selectLocalPeerRoleName, @@ -78,26 +79,6 @@ export const VideoStreamingSection = ({ return null; } - let ViewComponent; - if (screenType === 'hls_live_streaming') { - ViewComponent = ; - } else if (localPeerRole === waitingViewerRole) { - ViewComponent = ; - } else if (pdfAnnotatorActive) { - ViewComponent = ; - } else if (urlToIframe) { - ViewComponent = ; - } else if (peerSharing) { - // screen share should take preference over whiteboard - //@ts-ignore - ViewComponent = ; - } else if (isWhiteboardOpen) { - ViewComponent = ; - } else { - //@ts-ignore - ViewComponent = ; - } - return ( }> - {ViewComponent} + {match({ screenType, localPeerRole, pdfAnnotatorActive, urlToIframe, peerSharing, isWhiteboardOpen }) + .with( + { + screenType: 'hls_live_streaming', + }, + () => , + ) + .when( + ({ localPeerRole }) => localPeerRole === waitingViewerRole, + () => , + ) + .with({ pdfAnnotatorActive: true }, () => ) + .when( + ({ urlToIframe }) => !!urlToIframe, + () => , + ) + .when( + ({ peerSharing }) => !!peerSharing, + () => { + // @ts-ignore + return ; + }, + ) + .when( + ({ isWhiteboardOpen }) => !!isWhiteboardOpen, + () => , + ) + .otherwise(() => { + // @ts-ignore + return ; + })} + Date: Wed, 28 Feb 2024 22:51:25 +0530 Subject: [PATCH 2/8] fix: active state error --- packages/roomkit-react/src/Prebuilt/AppStateContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/roomkit-react/src/Prebuilt/AppStateContext.tsx b/packages/roomkit-react/src/Prebuilt/AppStateContext.tsx index 07df558d8f..070ff4edbf 100644 --- a/packages/roomkit-react/src/Prebuilt/AppStateContext.tsx +++ b/packages/roomkit-react/src/Prebuilt/AppStateContext.tsx @@ -73,7 +73,7 @@ export const useAppStateManager = () => { redirectToLeave(1000); // to clear toasts after 1 second }, ) - .with([HMSRoomState.Disconnected, P.not(P.nullish)], () => { + .with([HMSRoomState.Disconnected, P.nullish], () => { setActiveState(isPreviewScreenEnabled ? PrebuiltStates.PREVIEW : PrebuiltStates.MEETING); }); }, [roomLayout, roomState, isLeaveScreenEnabled, isPreviewScreenEnabled, prevRoomState, redirectToLeave]); From 32cd5915c3f24ba951bdc6a252df2c416b5cc76f Mon Sep 17 00:00:00 2001 From: raviteja83 Date: Wed, 28 Feb 2024 23:00:54 +0530 Subject: [PATCH 3/8] refactor: token error handling --- .../src/Prebuilt/components/AuthToken.jsx | 53 ++++++++++--------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/packages/roomkit-react/src/Prebuilt/components/AuthToken.jsx b/packages/roomkit-react/src/Prebuilt/components/AuthToken.jsx index 2cd66782eb..ccdf098a44 100644 --- a/packages/roomkit-react/src/Prebuilt/components/AuthToken.jsx +++ b/packages/roomkit-react/src/Prebuilt/components/AuthToken.jsx @@ -1,5 +1,6 @@ import React, { useEffect, useState } from 'react'; import { useSessionStorage } from 'react-use'; +import { match } from 'ts-pattern'; import { v4 as uuid } from 'uuid'; import { useHMSActions } from '@100mslive/react-sdk'; import { Dialog } from '../../Modal'; @@ -88,38 +89,38 @@ const convertError = error => { 'If you think this is a mistake on our side, please reach out to us over Discord:', 'https://discord.com/invite/kGdmszyzq2', ); - if (error.action === 'GET_TOKEN' && error.code === 403) { - return { + match([error.action, error.code]) + .with(['GET_TOKEN', 403], () => ({ title: 'Psst! This room is currently inactive.', body: 'Please feel free to join another open room for more conversations. Thanks for stopping by!', - }; - } else if (error.action === 'GET_TOKEN' && error.code === 404) { - return { + })) + + .with(['GET_TOKEN', 404], () => ({ title: 'Room code does not exist', body: 'We could not find a room code corresponding to this link.', - }; - } else if (error.action === 'GET_TOKEN' && error.code === 2003) { - return { + })) + .with(['GET_TOKEN', 2003], () => ({ title: 'Endpoint is not reachable', body: `Endpoint is not reachable. ${error.description}.`, - }; - } else if (error.response && error.response.status === 404) { - return { - title: 'Room does not exist', - body: 'We could not find a room corresponding to this link.', - }; - } else if (error.response && error.response.status === 403) { - return { - title: 'Accessing room using this link format is disabled', - body: 'You can re-enable this from the developer section in Dashboard.', - }; - } else { - console.error('Token API Error', error); - return { - title: 'Error fetching token', - body: 'An error occurred while fetching the app token. Please look into logs for more details.', - }; - } + })) + .otherwise(() => + match(error.response?.status) + .with(404, () => ({ + title: 'Room does not exist', + body: 'We could not find a room corresponding to this link.', + })) + .with(403, () => ({ + title: 'Accessing room using this link format is disabled', + body: 'You can re-enable this from the developer section in Dashboard.', + })) + .otherwise(() => { + console.error('Token API Error', error); + return { + title: 'Error fetching token', + body: 'An error occurred while fetching the app token. Please look into logs for more details.', + }; + }), + ); }; export default AuthToken; From 96979a98d51b4c4b59b94f90b16b18869bff84ef Mon Sep 17 00:00:00 2001 From: raviteja83 Date: Wed, 28 Feb 2024 23:03:23 +0530 Subject: [PATCH 4/8] fix: use otherwise --- packages/roomkit-react/src/Prebuilt/AppStateContext.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/roomkit-react/src/Prebuilt/AppStateContext.tsx b/packages/roomkit-react/src/Prebuilt/AppStateContext.tsx index 070ff4edbf..9ac776e607 100644 --- a/packages/roomkit-react/src/Prebuilt/AppStateContext.tsx +++ b/packages/roomkit-react/src/Prebuilt/AppStateContext.tsx @@ -75,6 +75,9 @@ export const useAppStateManager = () => { ) .with([HMSRoomState.Disconnected, P.nullish], () => { setActiveState(isPreviewScreenEnabled ? PrebuiltStates.PREVIEW : PrebuiltStates.MEETING); + }) + .otherwise(() => { + // do nothing }); }, [roomLayout, roomState, isLeaveScreenEnabled, isPreviewScreenEnabled, prevRoomState, redirectToLeave]); From 238231ff21765a3c565af06a842e504975fd9612 Mon Sep 17 00:00:00 2001 From: raviteja83 Date: Wed, 28 Feb 2024 23:04:41 +0530 Subject: [PATCH 5/8] fix: missing return --- packages/roomkit-react/src/Prebuilt/components/AuthToken.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/roomkit-react/src/Prebuilt/components/AuthToken.jsx b/packages/roomkit-react/src/Prebuilt/components/AuthToken.jsx index ccdf098a44..80e1a47ce5 100644 --- a/packages/roomkit-react/src/Prebuilt/components/AuthToken.jsx +++ b/packages/roomkit-react/src/Prebuilt/components/AuthToken.jsx @@ -89,7 +89,7 @@ const convertError = error => { 'If you think this is a mistake on our side, please reach out to us over Discord:', 'https://discord.com/invite/kGdmszyzq2', ); - match([error.action, error.code]) + return match([error.action, error.code]) .with(['GET_TOKEN', 403], () => ({ title: 'Psst! This room is currently inactive.', body: 'Please feel free to join another open room for more conversations. Thanks for stopping by!', From d823cfe7127b5f4b27ce90bc052587e8c5d14567 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 26 Mar 2024 15:55:12 +0530 Subject: [PATCH 6/8] build(deps): bump webpack-dev-middleware from 6.1.1 to 6.1.2 --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index e260b50eeb..d0253997d4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16955,9 +16955,9 @@ webidl-conversions@^6.1.0: integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== webpack-dev-middleware@^6.1.1: - version "6.1.1" - resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-6.1.1.tgz#6bbc257ec83ae15522de7a62f995630efde7cc3d" - integrity sha512-y51HrHaFeeWir0YO4f0g+9GwZawuigzcAdRNon6jErXy/SqV/+O6eaVAzDqE6t3e3NpGeR5CS+cCDaTC+V3yEQ== + version "6.1.2" + resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-6.1.2.tgz#0463232e59b7d7330fa154121528d484d36eb973" + integrity sha512-Wu+EHmX326YPYUpQLKmKbTyZZJIB8/n6R09pTmB03kJmnMsVPTo9COzHZFr01txwaCAuZvfBJE4ZCHRcKs5JaQ== dependencies: colorette "^2.0.10" memfs "^3.4.12" From 57cdd49d348aa1d86e01a12e899b76cad584d262 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 26 Mar 2024 15:58:07 +0530 Subject: [PATCH 7/8] build(deps): bump express from 4.18.2 to 4.19.2 --- yarn.lock | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/yarn.lock b/yarn.lock index d0253997d4..f1840d20df 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6953,13 +6953,13 @@ bluebird@^3.7.2: resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f" integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== -body-parser@1.20.1: - version "1.20.1" - resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.1.tgz#b1812a8912c195cd371a3ee5e66faa2338a5c668" - integrity sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw== +body-parser@1.20.2: + version "1.20.2" + resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.2.tgz#6feb0e21c4724d06de7ff38da36dad4f57a747fd" + integrity sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA== dependencies: bytes "3.1.2" - content-type "~1.0.4" + content-type "~1.0.5" debug "2.6.9" depd "2.0.0" destroy "1.2.0" @@ -6967,7 +6967,7 @@ body-parser@1.20.1: iconv-lite "0.4.24" on-finished "2.4.1" qs "6.11.0" - raw-body "2.5.1" + raw-body "2.5.2" type-is "~1.6.18" unpipe "1.0.0" @@ -7699,7 +7699,7 @@ content-disposition@0.5.4: dependencies: safe-buffer "5.2.1" -content-type@~1.0.4: +content-type@~1.0.4, content-type@~1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918" integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== @@ -7810,10 +7810,10 @@ cookie-signature@1.0.6: resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ== -cookie@0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.5.0.tgz#d1f5d71adec6558c58f389987c366aa47e994f8b" - integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw== +cookie@0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.6.0.tgz#2798b04b071b0ecbff0dbb62a505a8efa4e19051" + integrity sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw== copy-anything@^2.0.1: version "2.0.6" @@ -9396,16 +9396,16 @@ exponential-backoff@^3.1.1: integrity sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw== express@^4.17.3: - version "4.18.2" - resolved "https://registry.yarnpkg.com/express/-/express-4.18.2.tgz#3fabe08296e930c796c19e3c516979386ba9fd59" - integrity sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ== + version "4.19.2" + resolved "https://registry.yarnpkg.com/express/-/express-4.19.2.tgz#e25437827a3aa7f2a827bc8171bbbb664a356465" + integrity sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q== dependencies: accepts "~1.3.8" array-flatten "1.1.1" - body-parser "1.20.1" + body-parser "1.20.2" content-disposition "0.5.4" content-type "~1.0.4" - cookie "0.5.0" + cookie "0.6.0" cookie-signature "1.0.6" debug "2.6.9" depd "2.0.0" @@ -14330,10 +14330,10 @@ range-parser@^1.2.1, range-parser@~1.2.1: resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== -raw-body@2.5.1: - version "2.5.1" - resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.1.tgz#fe1b1628b181b700215e5fd42389f98b71392857" - integrity sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig== +raw-body@2.5.2: + version "2.5.2" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.2.tgz#99febd83b90e08975087e8f1f9419a149366b68a" + integrity sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA== dependencies: bytes "3.1.2" http-errors "2.0.0" From 7c3e871297668d3dc11759d88a888027967715ac Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 26 Mar 2024 15:59:01 +0530 Subject: [PATCH 8/8] build: update versions for release --- .../prebuilt-react-integration/package.json | 2 +- packages/hls-player/package.json | 4 +-- packages/hls-stats/package.json | 2 +- packages/hms-video-store/package.json | 2 +- packages/hms-virtual-background/package.json | 6 ++-- packages/react-icons/package.json | 2 +- packages/react-sdk/package.json | 4 +-- packages/roomkit-react/package.json | 10 +++--- packages/roomkit-web/package.json | 4 +-- yarn.lock | 31 +++++++++++++++++-- 10 files changed, 46 insertions(+), 21 deletions(-) diff --git a/examples/prebuilt-react-integration/package.json b/examples/prebuilt-react-integration/package.json index fc5b10ead4..484838a0d1 100644 --- a/examples/prebuilt-react-integration/package.json +++ b/examples/prebuilt-react-integration/package.json @@ -10,7 +10,7 @@ "preview": "vite preview" }, "dependencies": { - "@100mslive/roomkit-react": "0.3.3", + "@100mslive/roomkit-react": "0.3.4", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/packages/hls-player/package.json b/packages/hls-player/package.json index f26e100465..a9802f96a8 100644 --- a/packages/hls-player/package.json +++ b/packages/hls-player/package.json @@ -1,6 +1,6 @@ { "name": "@100mslive/hls-player", - "version": "0.3.3", + "version": "0.3.4", "description": "HLS client library which uses HTML5 Video element and Media Source Extension for playback", "main": "dist/index.cjs.js", "module": "dist/index.js", @@ -36,7 +36,7 @@ "author": "100ms", "license": "MIT", "dependencies": { - "@100mslive/hls-stats": "0.4.3", + "@100mslive/hls-stats": "0.4.4", "eventemitter2": "^6.4.9", "hls.js": "1.4.12" } diff --git a/packages/hls-stats/package.json b/packages/hls-stats/package.json index a7d782e43b..a4cd07224c 100644 --- a/packages/hls-stats/package.json +++ b/packages/hls-stats/package.json @@ -1,6 +1,6 @@ { "name": "@100mslive/hls-stats", - "version": "0.4.3", + "version": "0.4.4", "description": "A simple library that provides stats for your hls stream", "main": "dist/index.cjs.js", "module": "dist/index.js", diff --git a/packages/hms-video-store/package.json b/packages/hms-video-store/package.json index 7fc3032ae6..a0f14b6316 100644 --- a/packages/hms-video-store/package.json +++ b/packages/hms-video-store/package.json @@ -1,5 +1,5 @@ { - "version": "0.12.3", + "version": "0.12.4", "license": "MIT", "repository": { "type": "git", diff --git a/packages/hms-virtual-background/package.json b/packages/hms-virtual-background/package.json index 62b3478ae3..a4a48d8352 100755 --- a/packages/hms-virtual-background/package.json +++ b/packages/hms-virtual-background/package.json @@ -1,5 +1,5 @@ { - "version": "1.13.3", + "version": "1.13.4", "license": "MIT", "name": "@100mslive/hms-virtual-background", "author": "100ms", @@ -32,10 +32,10 @@ "format": "prettier --write src/**/*.ts" }, "peerDependencies": { - "@100mslive/hms-video-store": "0.12.3" + "@100mslive/hms-video-store": "0.12.4" }, "devDependencies": { - "@100mslive/hms-video-store": "0.12.3" + "@100mslive/hms-video-store": "0.12.4" }, "dependencies": { "@mediapipe/selfie_segmentation": "^0.1.1632777926", diff --git a/packages/react-icons/package.json b/packages/react-icons/package.json index 696c5a3588..904dba1b9e 100644 --- a/packages/react-icons/package.json +++ b/packages/react-icons/package.json @@ -4,7 +4,7 @@ "main": "dist/index.cjs.js", "module": "dist/index.js", "typings": "dist/index.d.ts", - "version": "0.10.3", + "version": "0.10.4", "author": "100ms", "license": "MIT", "repository": { diff --git a/packages/react-sdk/package.json b/packages/react-sdk/package.json index 64ee00917b..d4e1b19e42 100644 --- a/packages/react-sdk/package.json +++ b/packages/react-sdk/package.json @@ -4,7 +4,7 @@ "main": "dist/index.cjs.js", "module": "dist/index.js", "typings": "dist/index.d.ts", - "version": "0.10.3", + "version": "0.10.4", "author": "100ms", "license": "MIT", "repository": { @@ -48,7 +48,7 @@ "react": ">=16.8 <19.0.0" }, "dependencies": { - "@100mslive/hms-video-store": "0.12.3", + "@100mslive/hms-video-store": "0.12.4", "react-resize-detector": "^7.0.0", "zustand": "^3.6.2" } diff --git a/packages/roomkit-react/package.json b/packages/roomkit-react/package.json index 7ac88de753..1b13bf8536 100644 --- a/packages/roomkit-react/package.json +++ b/packages/roomkit-react/package.json @@ -10,7 +10,7 @@ "prebuilt", "roomkit" ], - "version": "0.3.3", + "version": "0.3.4", "author": "100ms", "license": "MIT", "repository": { @@ -82,11 +82,11 @@ "react": ">=17.0.2 <19.0.0" }, "dependencies": { - "@100mslive/hls-player": "0.3.3", + "@100mslive/hls-player": "0.3.4", "@100mslive/hms-noise-cancellation": "0.0.1", - "@100mslive/hms-virtual-background": "1.13.3", - "@100mslive/react-icons": "0.10.3", - "@100mslive/react-sdk": "0.10.3", + "@100mslive/hms-virtual-background": "1.13.4", + "@100mslive/react-icons": "0.10.4", + "@100mslive/react-sdk": "0.10.4", "@100mslive/types-prebuilt": "0.12.7", "@emoji-mart/data": "^1.0.6", "@emoji-mart/react": "^1.0.1", diff --git a/packages/roomkit-web/package.json b/packages/roomkit-web/package.json index 04498d01cf..d46cb6981b 100644 --- a/packages/roomkit-web/package.json +++ b/packages/roomkit-web/package.json @@ -1,6 +1,6 @@ { "name": "@100mslive/roomkit-web", - "version": "0.2.3", + "version": "0.2.4", "description": "A web component implementation of 100ms Prebuilt component", "keywords": [ "web-components", @@ -33,7 +33,7 @@ "build": "rm -rf dist && node ../../scripts/build-webapp" }, "dependencies": { - "@100mslive/roomkit-react": "0.3.3", + "@100mslive/roomkit-react": "0.3.4", "@r2wc/react-to-web-component": "2.0.2" } } diff --git a/yarn.lock b/yarn.lock index f1840d20df..f9a43a3259 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15781,7 +15781,16 @@ string-natural-compare@^3.0.1: resolved "https://registry.yarnpkg.com/string-natural-compare/-/string-natural-compare-3.0.1.tgz#7a42d58474454963759e8e8b7ae63d71c1e7fdf4" integrity sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw== -"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0": + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -15881,7 +15890,14 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1": + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -17178,7 +17194,7 @@ worker-timers@^7.0.40: worker-timers-broker "^6.0.95" worker-timers-worker "^7.0.59" -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -17196,6 +17212,15 @@ wrap-ansi@^6.0.1, wrap-ansi@^6.2.0: string-width "^4.1.0" strip-ansi "^6.0.0" +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + wrap-ansi@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"