@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.mjs
CHANGED
|
@@ -20,7 +20,7 @@ var __spreadValues = (a, b) => {
|
|
|
20
20
|
};
|
|
21
21
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
22
|
|
|
23
|
-
// ../../node_modules/.pnpm/svelte@3.
|
|
23
|
+
// ../../node_modules/.pnpm/svelte@3.49.0/node_modules/svelte/internal/index.mjs
|
|
24
24
|
function noop() {
|
|
25
25
|
}
|
|
26
26
|
function assign(tar, src) {
|
|
@@ -312,6 +312,8 @@ function transition_out(block, local, detach2, callback) {
|
|
|
312
312
|
}
|
|
313
313
|
});
|
|
314
314
|
block.o(local);
|
|
315
|
+
} else if (callback) {
|
|
316
|
+
callback();
|
|
315
317
|
}
|
|
316
318
|
}
|
|
317
319
|
function destroy_block(block, lookup) {
|
|
@@ -5371,7 +5373,7 @@ var ZoomControl = class extends SvelteComponent {
|
|
|
5371
5373
|
};
|
|
5372
5374
|
var ZoomControl_default = ZoomControl;
|
|
5373
5375
|
|
|
5374
|
-
// ../../node_modules/.pnpm/svelte@3.
|
|
5376
|
+
// ../../node_modules/.pnpm/svelte@3.49.0/node_modules/svelte/store/index.mjs
|
|
5375
5377
|
var subscriber_queue = [];
|
|
5376
5378
|
function writable(value, start = noop) {
|
|
5377
5379
|
let stop;
|
|
@@ -9930,13 +9932,13 @@ function create_fragment57(ctx) {
|
|
|
9930
9932
|
m(target, anchor) {
|
|
9931
9933
|
insert(target, div2, anchor);
|
|
9932
9934
|
append(div2, div0);
|
|
9933
|
-
ctx[
|
|
9935
|
+
ctx[7](div0);
|
|
9934
9936
|
append(div2, t);
|
|
9935
9937
|
append(div2, div1);
|
|
9936
9938
|
mount_component(playercontrol, div1, null);
|
|
9937
9939
|
current = true;
|
|
9938
9940
|
if (!mounted) {
|
|
9939
|
-
dispose = listen(div0, "touchstart",
|
|
9941
|
+
dispose = listen(div0, "touchstart", ctx[4], { passive: true, capture: true });
|
|
9940
9942
|
mounted = true;
|
|
9941
9943
|
}
|
|
9942
9944
|
},
|
|
@@ -9966,7 +9968,7 @@ function create_fragment57(ctx) {
|
|
|
9966
9968
|
d(detaching) {
|
|
9967
9969
|
if (detaching)
|
|
9968
9970
|
detach(div2);
|
|
9969
|
-
ctx[
|
|
9971
|
+
ctx[7](null);
|
|
9970
9972
|
destroy_component(playercontrol);
|
|
9971
9973
|
mounted = false;
|
|
9972
9974
|
dispose();
|
|
@@ -9990,6 +9992,11 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
9990
9992
|
};
|
|
9991
9993
|
}
|
|
9992
9994
|
});
|
|
9995
|
+
function focus_me() {
|
|
9996
|
+
tippy_hide_all();
|
|
9997
|
+
let a = document.activeElement;
|
|
9998
|
+
a && a.blur && a.blur();
|
|
9999
|
+
}
|
|
9993
10000
|
function div0_binding($$value) {
|
|
9994
10001
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
9995
10002
|
container = $$value;
|
|
@@ -10004,27 +10011,36 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
10004
10011
|
if ("language" in $$props2)
|
|
10005
10012
|
$$invalidate(2, language = $$props2.language);
|
|
10006
10013
|
if ("containerRef" in $$props2)
|
|
10007
|
-
$$invalidate(
|
|
10014
|
+
$$invalidate(5, containerRef = $$props2.containerRef);
|
|
10008
10015
|
};
|
|
10009
10016
|
$$self.$$.update = () => {
|
|
10010
10017
|
if ($$self.$$.dirty & 9) {
|
|
10011
10018
|
try {
|
|
10012
10019
|
if (player && container) {
|
|
10013
10020
|
player.bindContainer(container);
|
|
10014
|
-
$$invalidate(
|
|
10021
|
+
$$invalidate(6, mounted = true);
|
|
10015
10022
|
}
|
|
10016
10023
|
} catch (err) {
|
|
10017
10024
|
console.error("[fastboard] An error occurred while binding container");
|
|
10018
10025
|
console.error(err);
|
|
10019
10026
|
}
|
|
10020
10027
|
}
|
|
10021
|
-
if ($$self.$$.dirty &
|
|
10028
|
+
if ($$self.$$.dirty & 67) {
|
|
10022
10029
|
if (player && theme && mounted) {
|
|
10023
10030
|
player.manager.setPrefersColorScheme(theme);
|
|
10024
10031
|
}
|
|
10025
10032
|
}
|
|
10026
10033
|
};
|
|
10027
|
-
return [
|
|
10034
|
+
return [
|
|
10035
|
+
player,
|
|
10036
|
+
theme,
|
|
10037
|
+
language,
|
|
10038
|
+
container,
|
|
10039
|
+
focus_me,
|
|
10040
|
+
containerRef,
|
|
10041
|
+
mounted,
|
|
10042
|
+
div0_binding
|
|
10043
|
+
];
|
|
10028
10044
|
}
|
|
10029
10045
|
var ReplayFastboard = class extends SvelteComponent {
|
|
10030
10046
|
constructor(options) {
|
|
@@ -10033,7 +10049,7 @@ var ReplayFastboard = class extends SvelteComponent {
|
|
|
10033
10049
|
player: 0,
|
|
10034
10050
|
theme: 1,
|
|
10035
10051
|
language: 2,
|
|
10036
|
-
containerRef:
|
|
10052
|
+
containerRef: 5
|
|
10037
10053
|
});
|
|
10038
10054
|
}
|
|
10039
10055
|
};
|
|
@@ -10265,7 +10281,7 @@ function create_fragment58(ctx) {
|
|
|
10265
10281
|
m(target, anchor) {
|
|
10266
10282
|
insert(target, div4, anchor);
|
|
10267
10283
|
append(div4, div0);
|
|
10268
|
-
ctx[
|
|
10284
|
+
ctx[15](div0);
|
|
10269
10285
|
append(div4, t0);
|
|
10270
10286
|
append(div4, div1);
|
|
10271
10287
|
if (if_block0)
|
|
@@ -10283,7 +10299,7 @@ function create_fragment58(ctx) {
|
|
|
10283
10299
|
if_block3.m(div3, null);
|
|
10284
10300
|
current = true;
|
|
10285
10301
|
if (!mounted) {
|
|
10286
|
-
dispose = listen(div0, "touchstart",
|
|
10302
|
+
dispose = listen(div0, "touchstart", ctx[9], { passive: true, capture: true });
|
|
10287
10303
|
mounted = true;
|
|
10288
10304
|
}
|
|
10289
10305
|
},
|
|
@@ -10397,7 +10413,7 @@ function create_fragment58(ctx) {
|
|
|
10397
10413
|
d(detaching) {
|
|
10398
10414
|
if (detaching)
|
|
10399
10415
|
detach(div4);
|
|
10400
|
-
ctx[
|
|
10416
|
+
ctx[15](null);
|
|
10401
10417
|
if (if_block0)
|
|
10402
10418
|
if_block0.d();
|
|
10403
10419
|
if (if_block1)
|
|
@@ -10416,9 +10432,9 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10416
10432
|
let writable2;
|
|
10417
10433
|
let boxState;
|
|
10418
10434
|
let focusedApp;
|
|
10419
|
-
let $focusedApp, $$unsubscribe_focusedApp = noop, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe(focusedApp, ($$value) => $$invalidate(
|
|
10420
|
-
let $boxState, $$unsubscribe_boxState = noop, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe(boxState, ($$value) => $$invalidate(
|
|
10421
|
-
let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(
|
|
10435
|
+
let $focusedApp, $$unsubscribe_focusedApp = noop, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe(focusedApp, ($$value) => $$invalidate(12, $focusedApp = $$value)), focusedApp);
|
|
10436
|
+
let $boxState, $$unsubscribe_boxState = noop, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe(boxState, ($$value) => $$invalidate(13, $boxState = $$value)), boxState);
|
|
10437
|
+
let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(14, $writable = $$value)), writable2);
|
|
10422
10438
|
$$self.$$.on_destroy.push(() => $$unsubscribe_focusedApp());
|
|
10423
10439
|
$$self.$$.on_destroy.push(() => $$unsubscribe_boxState());
|
|
10424
10440
|
$$self.$$.on_destroy.push(() => $$unsubscribe_writable());
|
|
@@ -10440,6 +10456,11 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10440
10456
|
};
|
|
10441
10457
|
}
|
|
10442
10458
|
});
|
|
10459
|
+
function focus_me() {
|
|
10460
|
+
tippy_hide_all();
|
|
10461
|
+
let a = document.activeElement;
|
|
10462
|
+
a && a.blur && a.blur();
|
|
10463
|
+
}
|
|
10443
10464
|
function div0_binding($$value) {
|
|
10444
10465
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
10445
10466
|
container = $$value;
|
|
@@ -10454,7 +10475,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10454
10475
|
if ("language" in $$props2)
|
|
10455
10476
|
$$invalidate(2, language = $$props2.language);
|
|
10456
10477
|
if ("containerRef" in $$props2)
|
|
10457
|
-
$$invalidate(
|
|
10478
|
+
$$invalidate(10, containerRef = $$props2.containerRef);
|
|
10458
10479
|
if ("config" in $$props2)
|
|
10459
10480
|
$$invalidate(3, config = $$props2.config);
|
|
10460
10481
|
};
|
|
@@ -10468,7 +10489,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10468
10489
|
if ($$self.$$.dirty & 1) {
|
|
10469
10490
|
$$subscribe_focusedApp($$invalidate(6, focusedApp = app == null ? void 0 : app.focusedApp));
|
|
10470
10491
|
}
|
|
10471
|
-
if ($$self.$$.dirty &
|
|
10492
|
+
if ($$self.$$.dirty & 28672) {
|
|
10472
10493
|
if (!$writable) {
|
|
10473
10494
|
$$invalidate(5, layout = "hidden");
|
|
10474
10495
|
} else if ($boxState === "maximized") {
|
|
@@ -10485,14 +10506,14 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10485
10506
|
try {
|
|
10486
10507
|
if (app && container) {
|
|
10487
10508
|
app.bindContainer(container);
|
|
10488
|
-
$$invalidate(
|
|
10509
|
+
$$invalidate(11, mounted = true);
|
|
10489
10510
|
}
|
|
10490
10511
|
} catch (err) {
|
|
10491
10512
|
console.error("[fastboard] An error occurred while binding container");
|
|
10492
10513
|
console.error(err);
|
|
10493
10514
|
}
|
|
10494
10515
|
}
|
|
10495
|
-
if ($$self.$$.dirty &
|
|
10516
|
+
if ($$self.$$.dirty & 2051) {
|
|
10496
10517
|
if (app && theme && mounted) {
|
|
10497
10518
|
app.manager.setPrefersColorScheme(theme);
|
|
10498
10519
|
}
|
|
@@ -10508,6 +10529,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10508
10529
|
focusedApp,
|
|
10509
10530
|
boxState,
|
|
10510
10531
|
writable2,
|
|
10532
|
+
focus_me,
|
|
10511
10533
|
containerRef,
|
|
10512
10534
|
mounted,
|
|
10513
10535
|
$focusedApp,
|
|
@@ -10523,7 +10545,7 @@ var Fastboard = class extends SvelteComponent {
|
|
|
10523
10545
|
app: 0,
|
|
10524
10546
|
theme: 1,
|
|
10525
10547
|
language: 2,
|
|
10526
|
-
containerRef:
|
|
10548
|
+
containerRef: 10,
|
|
10527
10549
|
config: 3
|
|
10528
10550
|
});
|
|
10529
10551
|
}
|