@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.mjs
CHANGED
|
@@ -9885,6 +9885,15 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
9885
9885
|
let { language = "en" } = $$props;
|
|
9886
9886
|
let { containerRef = void 0 } = $$props;
|
|
9887
9887
|
let container;
|
|
9888
|
+
onMount(() => {
|
|
9889
|
+
if (containerRef) {
|
|
9890
|
+
containerRef(container);
|
|
9891
|
+
return () => {
|
|
9892
|
+
if (containerRef)
|
|
9893
|
+
containerRef(null);
|
|
9894
|
+
};
|
|
9895
|
+
}
|
|
9896
|
+
});
|
|
9888
9897
|
function div0_binding($$value) {
|
|
9889
9898
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
9890
9899
|
container = $$value;
|
|
@@ -9904,13 +9913,13 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
9904
9913
|
$$self.$$.update = () => {
|
|
9905
9914
|
if ($$self.$$.dirty & 9) {
|
|
9906
9915
|
$:
|
|
9907
|
-
|
|
9908
|
-
player
|
|
9909
|
-
|
|
9910
|
-
|
|
9911
|
-
|
|
9912
|
-
|
|
9913
|
-
|
|
9916
|
+
try {
|
|
9917
|
+
if (player && container)
|
|
9918
|
+
player.bindContainer(container);
|
|
9919
|
+
} catch (err) {
|
|
9920
|
+
console.error("[fastboard] An error occurred while binding container");
|
|
9921
|
+
console.error(err);
|
|
9922
|
+
}
|
|
9914
9923
|
}
|
|
9915
9924
|
};
|
|
9916
9925
|
return [player, theme, language, container, containerRef, div0_binding];
|
|
@@ -10123,8 +10132,13 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10123
10132
|
$$self.$$.update = () => {
|
|
10124
10133
|
if ($$self.$$.dirty & 9) {
|
|
10125
10134
|
$:
|
|
10126
|
-
|
|
10127
|
-
app
|
|
10135
|
+
try {
|
|
10136
|
+
if (app && container)
|
|
10137
|
+
app.bindContainer(container);
|
|
10138
|
+
} catch (err) {
|
|
10139
|
+
console.error("[fastboard] An error occurred while binding container");
|
|
10140
|
+
console.error(err);
|
|
10141
|
+
}
|
|
10128
10142
|
}
|
|
10129
10143
|
};
|
|
10130
10144
|
return [app, theme, language, container, containerRef, div0_binding];
|