@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.svelte.mjs
CHANGED
|
@@ -10035,6 +10035,7 @@ import {
|
|
|
10035
10035
|
transition_in as transition_in11,
|
|
10036
10036
|
transition_out as transition_out11
|
|
10037
10037
|
} from "svelte/internal";
|
|
10038
|
+
import { onMount } from "svelte";
|
|
10038
10039
|
function create_fragment57(ctx) {
|
|
10039
10040
|
let div2;
|
|
10040
10041
|
let div0;
|
|
@@ -10119,6 +10120,15 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
10119
10120
|
let { language = "en" } = $$props;
|
|
10120
10121
|
let { containerRef = void 0 } = $$props;
|
|
10121
10122
|
let container;
|
|
10123
|
+
onMount(() => {
|
|
10124
|
+
if (containerRef) {
|
|
10125
|
+
containerRef(container);
|
|
10126
|
+
return () => {
|
|
10127
|
+
if (containerRef)
|
|
10128
|
+
containerRef(null);
|
|
10129
|
+
};
|
|
10130
|
+
}
|
|
10131
|
+
});
|
|
10122
10132
|
function div0_binding($$value) {
|
|
10123
10133
|
binding_callbacks3[$$value ? "unshift" : "push"](() => {
|
|
10124
10134
|
container = $$value;
|
|
@@ -10138,13 +10148,13 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
10138
10148
|
$$self.$$.update = () => {
|
|
10139
10149
|
if ($$self.$$.dirty & 9) {
|
|
10140
10150
|
$:
|
|
10141
|
-
|
|
10142
|
-
player
|
|
10143
|
-
|
|
10144
|
-
|
|
10145
|
-
|
|
10146
|
-
|
|
10147
|
-
|
|
10151
|
+
try {
|
|
10152
|
+
if (player && container)
|
|
10153
|
+
player.bindContainer(container);
|
|
10154
|
+
} catch (err) {
|
|
10155
|
+
console.error("[fastboard] An error occurred while binding container");
|
|
10156
|
+
console.error(err);
|
|
10157
|
+
}
|
|
10148
10158
|
}
|
|
10149
10159
|
};
|
|
10150
10160
|
return [player, theme, language, container, containerRef, div0_binding];
|
|
@@ -10182,7 +10192,7 @@ import {
|
|
|
10182
10192
|
transition_in as transition_in12,
|
|
10183
10193
|
transition_out as transition_out12
|
|
10184
10194
|
} from "svelte/internal";
|
|
10185
|
-
import { onMount } from "svelte";
|
|
10195
|
+
import { onMount as onMount2 } from "svelte";
|
|
10186
10196
|
function create_fragment58(ctx) {
|
|
10187
10197
|
let div4;
|
|
10188
10198
|
let div0;
|
|
@@ -10349,7 +10359,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10349
10359
|
let { language = "en" } = $$props;
|
|
10350
10360
|
let { containerRef = void 0 } = $$props;
|
|
10351
10361
|
let container;
|
|
10352
|
-
|
|
10362
|
+
onMount2(() => {
|
|
10353
10363
|
if (containerRef) {
|
|
10354
10364
|
containerRef(container);
|
|
10355
10365
|
return () => {
|
|
@@ -10377,8 +10387,13 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10377
10387
|
$$self.$$.update = () => {
|
|
10378
10388
|
if ($$self.$$.dirty & 9) {
|
|
10379
10389
|
$:
|
|
10380
|
-
|
|
10381
|
-
app
|
|
10390
|
+
try {
|
|
10391
|
+
if (app && container)
|
|
10392
|
+
app.bindContainer(container);
|
|
10393
|
+
} catch (err) {
|
|
10394
|
+
console.error("[fastboard] An error occurred while binding container");
|
|
10395
|
+
console.error(err);
|
|
10396
|
+
}
|
|
10382
10397
|
}
|
|
10383
10398
|
};
|
|
10384
10399
|
return [app, theme, language, container, containerRef, div0_binding];
|