@netless/fastboard-ui 0.3.0-canary.5 → 0.3.0-canary.6
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.js +23 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -9
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +26 -11
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +3 -3
- package/src/components/Fastboard/Fastboard.svelte +6 -1
- package/src/components/Fastboard/ReplayFastboard.svelte +16 -2
package/dist/index.js
CHANGED
|
@@ -9923,6 +9923,15 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
9923
9923
|
let { language = "en" } = $$props;
|
|
9924
9924
|
let { containerRef = void 0 } = $$props;
|
|
9925
9925
|
let container;
|
|
9926
|
+
onMount(() => {
|
|
9927
|
+
if (containerRef) {
|
|
9928
|
+
containerRef(container);
|
|
9929
|
+
return () => {
|
|
9930
|
+
if (containerRef)
|
|
9931
|
+
containerRef(null);
|
|
9932
|
+
};
|
|
9933
|
+
}
|
|
9934
|
+
});
|
|
9926
9935
|
function div0_binding($$value) {
|
|
9927
9936
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
9928
9937
|
container = $$value;
|
|
@@ -9942,13 +9951,13 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
9942
9951
|
$$self.$$.update = () => {
|
|
9943
9952
|
if ($$self.$$.dirty & 9) {
|
|
9944
9953
|
$:
|
|
9945
|
-
|
|
9946
|
-
player
|
|
9947
|
-
|
|
9948
|
-
|
|
9949
|
-
|
|
9950
|
-
|
|
9951
|
-
|
|
9954
|
+
try {
|
|
9955
|
+
if (player && container)
|
|
9956
|
+
player.bindContainer(container);
|
|
9957
|
+
} catch (err) {
|
|
9958
|
+
console.error("[fastboard] An error occurred while binding container");
|
|
9959
|
+
console.error(err);
|
|
9960
|
+
}
|
|
9952
9961
|
}
|
|
9953
9962
|
};
|
|
9954
9963
|
return [player, theme, language, container, containerRef, div0_binding];
|
|
@@ -10161,8 +10170,13 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10161
10170
|
$$self.$$.update = () => {
|
|
10162
10171
|
if ($$self.$$.dirty & 9) {
|
|
10163
10172
|
$:
|
|
10164
|
-
|
|
10165
|
-
app
|
|
10173
|
+
try {
|
|
10174
|
+
if (app && container)
|
|
10175
|
+
app.bindContainer(container);
|
|
10176
|
+
} catch (err) {
|
|
10177
|
+
console.error("[fastboard] An error occurred while binding container");
|
|
10178
|
+
console.error(err);
|
|
10179
|
+
}
|
|
10166
10180
|
}
|
|
10167
10181
|
};
|
|
10168
10182
|
return [app, theme, language, container, containerRef, div0_binding];
|