Compare commits
2 Commits
e35c83635d
...
b3a1419ed3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b3a1419ed3 | ||
|
|
7a5cbcb9c6 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@svelte-toolkit/jitsi",
|
"name": "@svelte-toolkit/jitsi",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitea.auvem.com/svelte-toolkit/jitsi.git"
|
"url": "https://gitea.auvem.com/svelte-toolkit/jitsi.git"
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
import { type JitsiMeetExternalAPIOptions, JitsiMeetExternalAPI } from './jitsi-iframe-api.js';
|
import { type JitsiMeetExternalAPIOptions, JitsiMeetExternalAPI } from './jitsi-iframe-api.js';
|
||||||
|
import type { ClassValue } from 'svelte/elements';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
/**
|
/**
|
||||||
@@ -13,9 +14,13 @@
|
|||||||
* The options to be passed to the Jitsi Meet External API.
|
* The options to be passed to the Jitsi Meet External API.
|
||||||
*/
|
*/
|
||||||
options: JitsiMeetExternalAPIOptions;
|
options: JitsiMeetExternalAPIOptions;
|
||||||
|
/**
|
||||||
|
* Additional CSS classes to apply to the Jitsi container.
|
||||||
|
*/
|
||||||
|
class?: ClassValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
let { domain = 'https://meet.jit.si', options }: Props = $props();
|
let { domain = 'https://meet.jit.si', options, class: classValue }: Props = $props();
|
||||||
|
|
||||||
const src = $derived(`${new URL('external_api.js', domain).toString()}`);
|
const src = $derived(`${new URL('external_api.js', domain).toString()}`);
|
||||||
|
|
||||||
@@ -48,4 +53,4 @@
|
|||||||
<script {src}></script>
|
<script {src}></script>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<div id="jitsi-container" bind:this={container}></div>
|
<div id="jitsi-container" bind:this={container} class={[classValue]}></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user