Skip to content

Commit

Permalink
working exports
Browse files Browse the repository at this point in the history
  • Loading branch information
timephy committed Aug 10, 2024
1 parent e999d22 commit d124ea2
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 10 deletions.
39 changes: 33 additions & 6 deletions packages/tui-components-svelte/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@timephy/tui-components-svelte",
"version": "0.0.5",
"version": "0.0.6",
"description": "",
"homepage": "https://github.com/timephy/tui/tree/main/tui-components-svelte#readme",
"scripts": {
Expand Down Expand Up @@ -39,22 +39,49 @@
"dist/"
],
"exports": {
".": "./dist/index.js",
"./localStorage": "./dist/localStorage/index.svelte.js",
"./call": "./dist/call/index.js",
"./Select.svelte": {
"./call/CallControls": {
"types": "./dist/call/ui/CallControls.svelte.d.ts",
"svelte": "./dist/call/ui/CallControls.svelte"
},
"./call/Stats": {
"types": "./dist/call/ui/Stats.svelte.d.ts",
"svelte": "./dist/call/ui/Stats.svelte"
},
"./call/Video": {
"types": "./dist/call/ui/Video.svelte.d.ts",
"svelte": "./dist/call/ui/Video.svelte"
},
"./media/MediaControls": {
"types": "./dist/media/ui/MediaControls.svelte.d.ts",
"svelte": "./dist/media/ui/MediaControls.svelte"
},
"./media/MediaState": {
"types": "./dist/media/ui/MediaState.svelte.d.ts",
"svelte": "./dist/media/ui/MediaState.svelte"
},
"./media/MediaSettingsSelect": {
"types": "./dist/media/ui/settings/MediaSettingsSelect.svelte.d.ts",
"svelte": "./dist/media/ui/settings/MediaSettingsSelect.svelte"
},
"./media/MediaSettingsVolume": {
"types": "./dist/media/ui/settings/MediaSettingsVolume.svelte.d.ts",
"svelte": "./dist/media/ui/settings/MediaSettingsVolume.svelte"
},
"./Select": {
"types": "./dist/ui/Select.svelte.d.ts",
"svelte": "./dist/ui/Select.svelte"
},
"./Slider.svelte": {
"./Slider": {
"types": "./dist/ui/Slider.svelte.d.ts",
"svelte": "./dist/ui/Slider.svelte"
},
"./Switch.svelte": {
"./Switch": {
"types": "./dist/ui/Switch.svelte.d.ts",
"svelte": "./dist/ui/Switch.svelte"
},
"./SwitchLabel.svelte": {
"./SwitchLabel": {
"types": "./dist/ui/SwitchLabel.svelte.d.ts",
"svelte": "./dist/ui/SwitchLabel.svelte"
}
Expand Down
6 changes: 6 additions & 0 deletions packages/tui-components-svelte/src/lib/call/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export * from "./Call.svelte"
export * from "./MeshCall.svelte"
export * from "./Stats.svelte"

export * from "./peer/Peer.svelte"
export * from "./peer/PeerConnection.svelte"
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AudioPipeline } from "../../media/AudioPipeline.svelte"
import { PeerConnection, type PeerConnectionOptions } from "./PeerConnection.svelte"
import { DEFAULT_MEDIA_STATE, type MediaState } from "../../media/MediaState"
import { Stats } from "../Stats.svelte"
import type { Signal } from "../../call/components/debug/DebugSignaling.svelte"
import type { Signal } from "../ui/debug/DebugSignaling.svelte"
import type { Display } from "../Call.svelte"

/* ============================================================================================== */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script lang="ts">
import { page } from "$app/stores"
import CallControls from "$lib/call/components/CallControls.svelte"
import CallControls from "$lib/call/ui/CallControls.svelte"
import MediaState from "$lib/media/ui/MediaState.svelte"
import MediaSelect from "$lib/media/ui/settings/MediaSettingsSelect.svelte"
import MediaVolume from "$lib/media/ui/settings/MediaSettingsVolume.svelte"
import Video from "$lib/call/components/Video.svelte"
import DebugPeer from "$lib/call/components/debug/DebugPeer.svelte"
import Video from "$lib/call/ui/Video.svelte"
import DebugPeer from "$lib/call/ui/debug/DebugPeer.svelte"
import { MeshCallClientDemo } from "$lib/examples/call/MeshCallClientDemo.svelte"
import { onDestroy, onMount } from "svelte"
Expand Down

0 comments on commit d124ea2

Please sign in to comment.