@netless/fastboard-ui 0.3.0-canary.0 → 0.3.0-canary.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -0
- package/dist/index.js +34 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +34 -8
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +34 -8
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +4 -3
- package/src/components/Fastboard/Fastboard.svelte +2 -0
- package/src/components/Fastboard/Fastboard.svelte.ts +1 -0
- package/src/components/Fastboard/ReplayFastboard.svelte +2 -0
- package/src/components/Fastboard/ReplayFastboard.svelte.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netless/fastboard-ui",
|
|
3
|
-
"version": "0.3.0-canary.
|
|
3
|
+
"version": "0.3.0-canary.3",
|
|
4
4
|
"description": "The front-end of @netless/fastboard-core.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"svelte": "dist/index.svelte.mjs",
|
|
@@ -8,15 +8,16 @@
|
|
|
8
8
|
"src",
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
|
+
"repository": "netless-io/fastboard",
|
|
11
12
|
"peerDependencies": {
|
|
12
|
-
"@netless/fastboard-core": "0.3.0-canary.
|
|
13
|
+
"@netless/fastboard-core": "0.3.0-canary.3"
|
|
13
14
|
},
|
|
14
15
|
"dependencies": {
|
|
15
16
|
"tippy.js": "^6.3.7"
|
|
16
17
|
},
|
|
17
18
|
"devDependencies": {
|
|
18
19
|
"@netless/esbuild-plugin-inline-sass": "0.1.0",
|
|
19
|
-
"@netless/fastboard-core": "0.3.0-canary.
|
|
20
|
+
"@netless/fastboard-core": "0.3.0-canary.3"
|
|
20
21
|
},
|
|
21
22
|
"scripts": {
|
|
22
23
|
"cleanup": "rimraf dist",
|
|
@@ -9,12 +9,14 @@
|
|
|
9
9
|
export let app: FastboardApp | null | undefined = null;
|
|
10
10
|
export let theme: Theme = "light";
|
|
11
11
|
export let language: Language = "en";
|
|
12
|
+
export let containerRef: ((element: HTMLDivElement | null) => void) | undefined = undefined;
|
|
12
13
|
|
|
13
14
|
const name = "fastboard";
|
|
14
15
|
|
|
15
16
|
let container: HTMLDivElement;
|
|
16
17
|
|
|
17
18
|
$: if (app && container) app.bindContainer(container);
|
|
19
|
+
$: if (containerRef) containerRef(container || null);
|
|
18
20
|
</script>
|
|
19
21
|
|
|
20
22
|
<div class="{name}-root" class:loading={!app}>
|
|
@@ -6,12 +6,14 @@
|
|
|
6
6
|
export let player: FastboardPlayer | null | undefined = null;
|
|
7
7
|
export let theme: Theme = "light";
|
|
8
8
|
export let language: Language = "en";
|
|
9
|
+
export let containerRef: ((element: HTMLDivElement | null) => void) | undefined = undefined;
|
|
9
10
|
|
|
10
11
|
const name = "fastboard";
|
|
11
12
|
|
|
12
13
|
let container: HTMLDivElement;
|
|
13
14
|
|
|
14
15
|
$: if (player && container) player.bindContainer(container);
|
|
16
|
+
$: if (containerRef) containerRef(container || null);
|
|
15
17
|
</script>
|
|
16
18
|
|
|
17
19
|
<div class="{name}-root" class:loading={!player}>
|
|
@@ -6,6 +6,7 @@ export declare interface ReplayFastboardProps {
|
|
|
6
6
|
player?: FastboardPlayer | null;
|
|
7
7
|
theme?: Theme;
|
|
8
8
|
language?: Language;
|
|
9
|
+
containerRef?: (container: HTMLDivElement | null) => void;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
declare class ReplayFastboard extends SvelteComponentTyped<ReplayFastboardProps> {}
|