Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @dyte-io/web
* @roerohan @palashgo @ravindra-cloudflare @ishita1805 @renandincer @cloudflare/realtimekit
5 changes: 0 additions & 5 deletions .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion .releaserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const baseConfig = {
},
],
],
repositoryUrl: 'https://github.com/dyte-io/realtimekit-ui',
repositoryUrl: 'https://github.com/cloudflare/realtimekit-ui',
};

const config = {
Expand Down
77 changes: 75 additions & 2 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,76 @@
# Code of Conduct
# Contributor Covenant Code of Conduct

All Dyte repos are governed by our Community Participation Guidelines, available [here](https://dyte.notion.site/dyte/Dyte-Community-Participation-Guidelines-CPG-4b3af58fdf3545c2a3065773a9154728).
## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [email protected]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2024 Dyte
Copyright 2025 Cloudflare

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -198,4 +198,4 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
53 changes: 0 additions & 53 deletions fastdev

This file was deleted.

4 changes: 2 additions & 2 deletions packages/angular-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"version": "0.0.0",
"repository": {
"type": "git",
"url": "git+https://github.com/dyte-io/realtimekit-ui.git"
"url": "git+https://github.com/cloudflare/realtimekit-ui.git"
},
"files": [
"*",
"!prepublish.js"
],
"bugs": {
"email": "[email protected]"
"url": "https://community.cloudflare.com"
},
"scripts": {
"ng": "ng",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"prepublishOnly": "node prepublish.js"
},
"bugs": {
"url": "https://realtime.cloudflare.com/issues"
"url": "https://community.cloudflare.com"
},
"homepage": "https://realtime.cloudflare.com"
}
5 changes: 0 additions & 5 deletions packages/core/.npmrc

This file was deleted.

4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@
"license": "UNLICENSED",
"repository": {
"type": "git",
"url": "git+https://github.com/dyte-io/realtimekit-ui.git"
"url": "git+https://github.com/cloudflare/realtimekit-ui.git"
},
"bugs": {
"url": "https://realtime.cloudflare.com/issues"
"url": "https://community.cloudflare.com"
},
"homepage": "https://realtime.cloudflare.com"
}
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ export class RtkBreakoutRoomsManager {
onParticipantsAdd={() => this.assignParticipantsToRoom(room['id'])}
onRoomJoin={() => this.joinRoom(room['id'])}
states={this.states}
room={{ ...room }} // NOTE(ravindra-dyte): this prevents cache
room={{ ...room }} // NOTE(ravindra-cloudflare): this prevents cache
iconPack={this.iconPack}
t={this.t}
allowDelete={false}
Expand Down Expand Up @@ -567,7 +567,7 @@ export class RtkBreakoutRoomsManager {
onRoomJoin={() => this.joinRoom(room['id'])}
onUpdate={this.onRoomUpdate}
states={this.states}
room={{ ...room }} // NOTE(ravindra-dyte): this prevents cache
room={{ ...room }} // NOTE(ravindra-cloudflare): this prevents cache
iconPack={this.iconPack}
t={this.t}
allowDelete={this.stateManager.allConnectedMeetings.length > MIN_ROOMS}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export class RtkLivestreamPlayer {
);
if (this.playbackUrl && this.livestreamState === 'LIVESTREAMING') {
/*
NOTE(ravindra-dyte): Maybe manifest is not ready,
NOTE(ravindra-cloudflare): Maybe manifest is not ready,
maybe levels are not available yet.
Keep on retrying every 5 seconds till either livestream is stopped or error is resolved.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class RtkPermissionsMessage {
const browser = browserName.toLowerCase() ?? 'others';
const os = osName ?? 'others';

/* NOTE(ravindra-dyte):
/* NOTE(ravindra-cloudflare):
If in case a unknown browser or os doesn't have a translation,
use the translation for `others`, instead of showing ugly error string,
such as `perm_denied.video.yandex browser.message`.
Expand All @@ -164,7 +164,9 @@ export class RtkPermissionsMessage {
function replaceAll(target, search, replacement) {
return target.split(search).join(replacement);
}
const svgReq = await fetch(`https://assets.dyte.io/ui-kit/permissions/${stepURL}`);
const svgReq = await fetch(
`https://rtk-assets.realtime.cloudflare.com/ui-kit/permissions/${stepURL}`
);
let svg = await svgReq.text();
svg = replaceAll(svg, 'yoursite.com', location.host);
svg = replaceAll(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class RtkSpeakerSelector {
<Host>
<audio
preload="auto"
src="https://assets.dyte.io/ui-kit/speaker-test.mp3"
src="https://rtk-assets.realtime.cloudflare.com/ui-kit/speaker-test.mp3"
ref={(el) => (this.testAudioEl = el)}
/>
<div class={'group ' + this.variant} part="speaker-selection">
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/lib/addons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface Addon {
* Register the addon, add event listeners, etc.
* @param config The current UIConfig
* @param meeting The meeting object
* @param getBuilder A function to get the DyteUIBuilder instance for the meeting UI config
* @param getBuilder A function to get the RtkUiBuilder instance for the meeting UI config
* @returns The updated UIConfig
*/
register: (
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/lib/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { Meeting } from '../types/rtk-client';
import { disableSettingSinkId } from '../utils/flags';

const SOUNDS = {
joined: 'https://dyte-uploads.s3.ap-south-1.amazonaws.com/notification_join.mp3',
left: 'https://dyte-uploads.s3.ap-south-1.amazonaws.com/notification_join.mp3',
message: 'https://dyte-uploads.s3.ap-south-1.amazonaws.com/notification_message.mp3',
joined: 'https://rtk-uploads.realtime.cloudflare.com/notification_join.mp3',
left: 'https://rtk-uploads.realtime.cloudflare.com/notification_join.mp3',
message: 'https://rtk-uploads.realtime.cloudflare.com/notification_message.mp3',
};

export type Sound = keyof typeof SOUNDS;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/utils/assets.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { EmojiMetaData } from '../types/props';

const EMOJI_ASSET_URL = 'https://cdn.dyte.in/assets/emojis-data.json';
const EMOJI_ASSET_URL = 'https://rtk-assets.realtime.cloudflare.com/assets/emojis-data.json';

let cachedEmojis: any;

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/utils/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const canViewChat = (meeting: Meeting) => {

return (
chatPublic.canSend ||
(chatPublic as any).canReceive || // TODO(ravindra-dyte): add web-core equivalent of chatPublic.canReceive, remove type casting
(chatPublic as any).canReceive || // TODO(ravindra-cloudflare): add web-core equivalent of chatPublic.canReceive, remove type casting
chatPublic.text ||
chatPublic.files ||
chatPrivate.canSend ||
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/utils/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const hasOnlyEmojis = (str: string) => {
export const sanitizeLink = (link: string) => {
// TODO: needs more work
if (link?.trim().toLowerCase().startsWith('javascript:')) {
return 'https://dyte.io';
return 'https://realtime.cloudflare.com';
}
return link;
};
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/utils/sync-with-store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
} from './ui-store';

export function SyncWithStore() {

Check failure on line 11 in packages/core/src/utils/sync-with-store/index.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `⏎`
return function (proto: ComponentInterface, propName: keyof RtkUiStore) {
const { connectedCallback, disconnectedCallback } = proto;

Expand All @@ -18,7 +18,7 @@
host[`_rtkStoreToCleanup-${propName}`] = legacyGlobalUIStore;

/**
* NOTE(ravindra-dyte):
* NOTE(ravindra-cloudflare):
* For backward compatibility, let's use global store.
* If rtk-ui-provider in parent hierarchy is available, we will use peer specific store.
* If provider is found, All states will be solely controlled by RtkUiProvider.
Expand All @@ -35,12 +35,12 @@
) => {
const requestId = (host as any)._storeRequestId;
if (event.detail.requestId === requestId) {

Check failure on line 38 in packages/core/src/utils/sync-with-store/index.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `⏎··········`
// Blindly put peer specific store's value for propName in host propName
const storeValue = event.detail.store.state[propName];
host.componentOnReady().then(() => {
/**
* NOTE(ravindra-dyte):
* NOTE(ravindra-cloudflare):
* https://stenciljs.com/docs/api#componentonready
* This psudo ready callback is to ensure that the component is ready to accept props
* Without this, changing the prop would not trigger @Watch of prop in the initial mount phase
Expand All @@ -50,7 +50,7 @@
appendElement(propName, host, event.detail.store);
host[`_rtkStoreToCleanup-${propName}`] = event.detail.store;
// Since peer specific store is available, remove element prop from global store
removeElement(propName, host, legacyGlobalUIStore as RtkUiStoreExtended)

Check failure on line 53 in packages/core/src/utils/sync-with-store/index.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `;`
}
};

Expand All @@ -71,7 +71,7 @@
});

host.dispatchEvent(requestEvent);

Check failure on line 74 in packages/core/src/utils/sync-with-store/index.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `······`
// Listen for peer specific store ready event to use the correct store
const storeReadyListener = () => {
// Re-request store (peer specific store should now be available)
Expand All @@ -82,7 +82,7 @@
bubbles: true,
composed: true,
});

Check failure on line 85 in packages/core/src/utils/sync-with-store/index.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `········`
host.dispatchEvent(retryRequestEvent);
};

Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/utils/sync-with-store/ui-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
config,
providerId,
iconPack,
t

Check failure on line 77 in packages/core/src/utils/sync-with-store/ui-store.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `,`
}: {
meeting: RealtimeKitClient;
config?: UIConfig;
Expand Down Expand Up @@ -130,7 +130,7 @@
const elementsMapToUse = targetStore.elementsMap;

if (!elementsMapToUse) {
console.error(`appendElement: No elementsMap found on store`, targetStore);

Check warning on line 133 in packages/core/src/utils/sync-with-store/ui-store.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
return;
}

Expand All @@ -140,20 +140,20 @@
try {
elementsMapToUse.set(propName, [element]);
} catch (error) {
console.error(`appendElement: Error setting new array:`, error);

Check warning on line 143 in packages/core/src/utils/sync-with-store/ui-store.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
}
} else {
try {
/**
* NOTE(ravindra-dyte):
* NOTE(ravindra-cloudflare):
* If the element+propName exists already, remove it first
* This could happen in https://github.com/dyte-io/react-samples/tree/main/samples/back-to-back-meetings,
* This could happen in https://github.com/cloudflare/realtimekit-web-examples/tree/main/react-examples/examples/back-to-back-meetings,
* where the same component is re-rendered multiple times under different providers
* */
removeElement(propName, element, targetStore);
elements.push(element);
} catch (error) {
console.error(`appendElement: Error adding element:`, error);

Check warning on line 156 in packages/core/src/utils/sync-with-store/ui-store.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/react-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"description": "Pre-built, ready-to-use React components, hooks and utilities for integrating with Cloudflare RealtimeKit",
"repository": {
"type": "git",
"url": "git+https://github.com/dyte-io/realtimekit-ui.git"
"url": "git+https://github.com/cloudflare/realtimekit-ui.git"
},
"bugs": {
"url": "https://realtime.cloudflare.com/issues"
"url": "https://community.cloudflare.com"
},
"homepage": "https://realtime.cloudflare.com",
"main": "./dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/vue-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"description": "Pre-built, ready-to-use Vue UI components and utilities for integrating with Cloudflare RealtimeKit",
"repository": {
"type": "git",
"url": "git+https://github.com/dyte-io/realtimekit-ui.git"
"url": "git+https://github.com/cloudflare/realtimekit-ui.git"
},
"bugs": {
"url": "https://realtime.cloudflare.com/issues"
"url": "https://community.cloudflare.com"
},
"homepage": "https://realtime.cloudflare.com",
"main": "dist/index.js",
Expand Down
Loading