Skip to content

Commit

Permalink
revert(releases) change back to prefixed expected value (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
mihhu authored Oct 18, 2022
1 parent 29a10b8 commit fc88a22
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Optional. Information regarding the devices used during the call.
Optional. Details about the participant that started the meeting.

###### `release`
Optional. Information regarding the `stage.8x8.vc` or `8x8.vc` release version.
Optional. Information regarding the `stage.8x8.vc` or `8x8.vc` release version. Expects the following format: `release-1234`.

###### `spinner`
Optional. Custom loading view while the IFrame is loading.
Expand Down
2 changes: 1 addition & 1 deletion example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions example/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,12 @@ const App = () => {
<JaaSMeeting
roomName = { generateRoomName() }

// Update this with the version of interest
// Update this with the `8x8.vc` or `stage.8x8.vc` version of interest
// and avoid mixing up different domains and release versions
// on the same page at the same time, as only the first
// external api script will be loaded.
// release = '3446'
// release = 'release-1234'

useStaging = { true }
getIFrameRef = { handleJaaSIFrameRef } />
{renderButtons()}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jitsi/react-sdk",
"version": "1.1.0",
"version": "1.2.0",
"description": "React SDK for the Jitsi Meet IFrame",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/components/JitsiMeeting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const JitsiMeeting = ({
invitees,
devices,
userInfo,
...release ? { release: `release-${release}` } : {},
release,
parentNode: meetingRef.current
});
setLoading(false);
Expand Down
4 changes: 2 additions & 2 deletions src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const loadExternalApi = async (
}

const script: HTMLScriptElement = document.createElement('script');
const releaseParam: string = release ? `?release=release-${release}` : '';
const releaseParam: string = release ? `?release=${release}` : '';

script.async = true;
script.src = `https://${domain}/external_api.js${releaseParam}`;
Expand All @@ -30,7 +30,7 @@ let scriptPromise: Promise<JitsiMeetExternalApi>;
* with mixed domains and release version at the same time.
*
* @param {string} domain - The domain of the external API
* @param {string} release - The Jitsi Meet release
* @param {string} release - The Jitsi Meet release. Expected format: 'release-1234'
* @returns {Promise<JitsiMeetExternalApi>} - The JitsiMeetExternalAPI or an error
*/
export const fetchExternalApi = (
Expand Down
1 change: 1 addition & 0 deletions src/types/IMeetingProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export default interface IMeetingProps {

/**
* The `stage.8x8.vc` or `8x8.vc` release version to test.
* Expects the following format: `release-1234`.
*/
release?: string;

Expand Down
2 changes: 1 addition & 1 deletion src/types/JitsiMeetExternalApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export type JitsiMeetExternalApi = {

/**
* The `stage.8x8.vc` or `8x8.vc` release version to test.
* Expects the following format: `release-${string}`.
* Expects the following format: `release-1234`.
*/
release?: string,

Expand Down

0 comments on commit fc88a22

Please sign in to comment.