@netless/fastboard-ui 0.3.4-canary.2 → 0.3.5-canary.1
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 +43 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -21
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +39 -19
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +3 -3
- package/src/components/Fastboard/Fastboard.svelte +8 -1
- package/src/components/Fastboard/ReplayFastboard.svelte +8 -1
package/dist/index.js
CHANGED
|
@@ -54,7 +54,7 @@ __export(src_exports, {
|
|
|
54
54
|
});
|
|
55
55
|
module.exports = __toCommonJS(src_exports);
|
|
56
56
|
|
|
57
|
-
// ../../node_modules/.pnpm/svelte@3.
|
|
57
|
+
// ../../node_modules/.pnpm/svelte@3.49.0/node_modules/svelte/internal/index.mjs
|
|
58
58
|
function noop() {
|
|
59
59
|
}
|
|
60
60
|
function assign(tar, src) {
|
|
@@ -346,6 +346,8 @@ function transition_out(block, local, detach2, callback) {
|
|
|
346
346
|
}
|
|
347
347
|
});
|
|
348
348
|
block.o(local);
|
|
349
|
+
} else if (callback) {
|
|
350
|
+
callback();
|
|
349
351
|
}
|
|
350
352
|
}
|
|
351
353
|
function destroy_block(block, lookup) {
|
|
@@ -5408,7 +5410,7 @@ var ZoomControl = class extends SvelteComponent {
|
|
|
5408
5410
|
};
|
|
5409
5411
|
var ZoomControl_default = ZoomControl;
|
|
5410
5412
|
|
|
5411
|
-
// ../../node_modules/.pnpm/svelte@3.
|
|
5413
|
+
// ../../node_modules/.pnpm/svelte@3.49.0/node_modules/svelte/store/index.mjs
|
|
5412
5414
|
var subscriber_queue = [];
|
|
5413
5415
|
function writable(value, start = noop) {
|
|
5414
5416
|
let stop;
|
|
@@ -9967,13 +9969,13 @@ function create_fragment57(ctx) {
|
|
|
9967
9969
|
m(target, anchor) {
|
|
9968
9970
|
insert(target, div2, anchor);
|
|
9969
9971
|
append(div2, div0);
|
|
9970
|
-
ctx[
|
|
9972
|
+
ctx[7](div0);
|
|
9971
9973
|
append(div2, t);
|
|
9972
9974
|
append(div2, div1);
|
|
9973
9975
|
mount_component(playercontrol, div1, null);
|
|
9974
9976
|
current = true;
|
|
9975
9977
|
if (!mounted) {
|
|
9976
|
-
dispose = listen(div0, "touchstart",
|
|
9978
|
+
dispose = listen(div0, "touchstart", ctx[4], { passive: true, capture: true });
|
|
9977
9979
|
mounted = true;
|
|
9978
9980
|
}
|
|
9979
9981
|
},
|
|
@@ -10003,7 +10005,7 @@ function create_fragment57(ctx) {
|
|
|
10003
10005
|
d(detaching) {
|
|
10004
10006
|
if (detaching)
|
|
10005
10007
|
detach(div2);
|
|
10006
|
-
ctx[
|
|
10008
|
+
ctx[7](null);
|
|
10007
10009
|
destroy_component(playercontrol);
|
|
10008
10010
|
mounted = false;
|
|
10009
10011
|
dispose();
|
|
@@ -10027,6 +10029,11 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
10027
10029
|
};
|
|
10028
10030
|
}
|
|
10029
10031
|
});
|
|
10032
|
+
function focus_me() {
|
|
10033
|
+
tippy_hide_all();
|
|
10034
|
+
let a = document.activeElement;
|
|
10035
|
+
a && a.blur && a.blur();
|
|
10036
|
+
}
|
|
10030
10037
|
function div0_binding($$value) {
|
|
10031
10038
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
10032
10039
|
container = $$value;
|
|
@@ -10041,27 +10048,36 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
10041
10048
|
if ("language" in $$props2)
|
|
10042
10049
|
$$invalidate(2, language = $$props2.language);
|
|
10043
10050
|
if ("containerRef" in $$props2)
|
|
10044
|
-
$$invalidate(
|
|
10051
|
+
$$invalidate(5, containerRef = $$props2.containerRef);
|
|
10045
10052
|
};
|
|
10046
10053
|
$$self.$$.update = () => {
|
|
10047
10054
|
if ($$self.$$.dirty & 9) {
|
|
10048
10055
|
try {
|
|
10049
10056
|
if (player && container) {
|
|
10050
10057
|
player.bindContainer(container);
|
|
10051
|
-
$$invalidate(
|
|
10058
|
+
$$invalidate(6, mounted = true);
|
|
10052
10059
|
}
|
|
10053
10060
|
} catch (err) {
|
|
10054
10061
|
console.error("[fastboard] An error occurred while binding container");
|
|
10055
10062
|
console.error(err);
|
|
10056
10063
|
}
|
|
10057
10064
|
}
|
|
10058
|
-
if ($$self.$$.dirty &
|
|
10065
|
+
if ($$self.$$.dirty & 67) {
|
|
10059
10066
|
if (player && theme && mounted) {
|
|
10060
10067
|
player.manager.setPrefersColorScheme(theme);
|
|
10061
10068
|
}
|
|
10062
10069
|
}
|
|
10063
10070
|
};
|
|
10064
|
-
return [
|
|
10071
|
+
return [
|
|
10072
|
+
player,
|
|
10073
|
+
theme,
|
|
10074
|
+
language,
|
|
10075
|
+
container,
|
|
10076
|
+
focus_me,
|
|
10077
|
+
containerRef,
|
|
10078
|
+
mounted,
|
|
10079
|
+
div0_binding
|
|
10080
|
+
];
|
|
10065
10081
|
}
|
|
10066
10082
|
var ReplayFastboard = class extends SvelteComponent {
|
|
10067
10083
|
constructor(options) {
|
|
@@ -10070,7 +10086,7 @@ var ReplayFastboard = class extends SvelteComponent {
|
|
|
10070
10086
|
player: 0,
|
|
10071
10087
|
theme: 1,
|
|
10072
10088
|
language: 2,
|
|
10073
|
-
containerRef:
|
|
10089
|
+
containerRef: 5
|
|
10074
10090
|
});
|
|
10075
10091
|
}
|
|
10076
10092
|
};
|
|
@@ -10302,7 +10318,7 @@ function create_fragment58(ctx) {
|
|
|
10302
10318
|
m(target, anchor) {
|
|
10303
10319
|
insert(target, div4, anchor);
|
|
10304
10320
|
append(div4, div0);
|
|
10305
|
-
ctx[
|
|
10321
|
+
ctx[15](div0);
|
|
10306
10322
|
append(div4, t0);
|
|
10307
10323
|
append(div4, div1);
|
|
10308
10324
|
if (if_block0)
|
|
@@ -10320,7 +10336,7 @@ function create_fragment58(ctx) {
|
|
|
10320
10336
|
if_block3.m(div3, null);
|
|
10321
10337
|
current = true;
|
|
10322
10338
|
if (!mounted) {
|
|
10323
|
-
dispose = listen(div0, "touchstart",
|
|
10339
|
+
dispose = listen(div0, "touchstart", ctx[9], { passive: true, capture: true });
|
|
10324
10340
|
mounted = true;
|
|
10325
10341
|
}
|
|
10326
10342
|
},
|
|
@@ -10434,7 +10450,7 @@ function create_fragment58(ctx) {
|
|
|
10434
10450
|
d(detaching) {
|
|
10435
10451
|
if (detaching)
|
|
10436
10452
|
detach(div4);
|
|
10437
|
-
ctx[
|
|
10453
|
+
ctx[15](null);
|
|
10438
10454
|
if (if_block0)
|
|
10439
10455
|
if_block0.d();
|
|
10440
10456
|
if (if_block1)
|
|
@@ -10453,9 +10469,9 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10453
10469
|
let writable2;
|
|
10454
10470
|
let boxState;
|
|
10455
10471
|
let focusedApp;
|
|
10456
|
-
let $focusedApp, $$unsubscribe_focusedApp = noop, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe(focusedApp, ($$value) => $$invalidate(
|
|
10457
|
-
let $boxState, $$unsubscribe_boxState = noop, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe(boxState, ($$value) => $$invalidate(
|
|
10458
|
-
let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(
|
|
10472
|
+
let $focusedApp, $$unsubscribe_focusedApp = noop, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe(focusedApp, ($$value) => $$invalidate(12, $focusedApp = $$value)), focusedApp);
|
|
10473
|
+
let $boxState, $$unsubscribe_boxState = noop, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe(boxState, ($$value) => $$invalidate(13, $boxState = $$value)), boxState);
|
|
10474
|
+
let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(14, $writable = $$value)), writable2);
|
|
10459
10475
|
$$self.$$.on_destroy.push(() => $$unsubscribe_focusedApp());
|
|
10460
10476
|
$$self.$$.on_destroy.push(() => $$unsubscribe_boxState());
|
|
10461
10477
|
$$self.$$.on_destroy.push(() => $$unsubscribe_writable());
|
|
@@ -10477,6 +10493,11 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10477
10493
|
};
|
|
10478
10494
|
}
|
|
10479
10495
|
});
|
|
10496
|
+
function focus_me() {
|
|
10497
|
+
tippy_hide_all();
|
|
10498
|
+
let a = document.activeElement;
|
|
10499
|
+
a && a.blur && a.blur();
|
|
10500
|
+
}
|
|
10480
10501
|
function div0_binding($$value) {
|
|
10481
10502
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
10482
10503
|
container = $$value;
|
|
@@ -10491,7 +10512,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10491
10512
|
if ("language" in $$props2)
|
|
10492
10513
|
$$invalidate(2, language = $$props2.language);
|
|
10493
10514
|
if ("containerRef" in $$props2)
|
|
10494
|
-
$$invalidate(
|
|
10515
|
+
$$invalidate(10, containerRef = $$props2.containerRef);
|
|
10495
10516
|
if ("config" in $$props2)
|
|
10496
10517
|
$$invalidate(3, config = $$props2.config);
|
|
10497
10518
|
};
|
|
@@ -10505,7 +10526,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10505
10526
|
if ($$self.$$.dirty & 1) {
|
|
10506
10527
|
$$subscribe_focusedApp($$invalidate(6, focusedApp = app == null ? void 0 : app.focusedApp));
|
|
10507
10528
|
}
|
|
10508
|
-
if ($$self.$$.dirty &
|
|
10529
|
+
if ($$self.$$.dirty & 28672) {
|
|
10509
10530
|
if (!$writable) {
|
|
10510
10531
|
$$invalidate(5, layout = "hidden");
|
|
10511
10532
|
} else if ($boxState === "maximized") {
|
|
@@ -10522,14 +10543,14 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10522
10543
|
try {
|
|
10523
10544
|
if (app && container) {
|
|
10524
10545
|
app.bindContainer(container);
|
|
10525
|
-
$$invalidate(
|
|
10546
|
+
$$invalidate(11, mounted = true);
|
|
10526
10547
|
}
|
|
10527
10548
|
} catch (err) {
|
|
10528
10549
|
console.error("[fastboard] An error occurred while binding container");
|
|
10529
10550
|
console.error(err);
|
|
10530
10551
|
}
|
|
10531
10552
|
}
|
|
10532
|
-
if ($$self.$$.dirty &
|
|
10553
|
+
if ($$self.$$.dirty & 2051) {
|
|
10533
10554
|
if (app && theme && mounted) {
|
|
10534
10555
|
app.manager.setPrefersColorScheme(theme);
|
|
10535
10556
|
}
|
|
@@ -10545,6 +10566,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10545
10566
|
focusedApp,
|
|
10546
10567
|
boxState,
|
|
10547
10568
|
writable2,
|
|
10569
|
+
focus_me,
|
|
10548
10570
|
containerRef,
|
|
10549
10571
|
mounted,
|
|
10550
10572
|
$focusedApp,
|
|
@@ -10560,7 +10582,7 @@ var Fastboard = class extends SvelteComponent {
|
|
|
10560
10582
|
app: 0,
|
|
10561
10583
|
theme: 1,
|
|
10562
10584
|
language: 2,
|
|
10563
|
-
containerRef:
|
|
10585
|
+
containerRef: 10,
|
|
10564
10586
|
config: 3
|
|
10565
10587
|
});
|
|
10566
10588
|
}
|