@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.svelte.mjs
CHANGED
|
@@ -9269,13 +9269,13 @@ function create_fragment57(ctx) {
|
|
|
9269
9269
|
m(target, anchor) {
|
|
9270
9270
|
insert(target, div2, anchor);
|
|
9271
9271
|
append(div2, div0);
|
|
9272
|
-
ctx[
|
|
9272
|
+
ctx[7](div0);
|
|
9273
9273
|
append(div2, t);
|
|
9274
9274
|
append(div2, div1);
|
|
9275
9275
|
mount_component(playercontrol, div1, null);
|
|
9276
9276
|
current = true;
|
|
9277
9277
|
if (!mounted) {
|
|
9278
|
-
dispose = listen(div0, "touchstart",
|
|
9278
|
+
dispose = listen(div0, "touchstart", ctx[4], { passive: true, capture: true });
|
|
9279
9279
|
mounted = true;
|
|
9280
9280
|
}
|
|
9281
9281
|
},
|
|
@@ -9305,7 +9305,7 @@ function create_fragment57(ctx) {
|
|
|
9305
9305
|
d(detaching) {
|
|
9306
9306
|
if (detaching)
|
|
9307
9307
|
detach(div2);
|
|
9308
|
-
ctx[
|
|
9308
|
+
ctx[7](null);
|
|
9309
9309
|
destroy_component(playercontrol);
|
|
9310
9310
|
mounted = false;
|
|
9311
9311
|
dispose();
|
|
@@ -9329,6 +9329,11 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
9329
9329
|
};
|
|
9330
9330
|
}
|
|
9331
9331
|
});
|
|
9332
|
+
function focus_me() {
|
|
9333
|
+
tippy_hide_all();
|
|
9334
|
+
let a = document.activeElement;
|
|
9335
|
+
a && a.blur && a.blur();
|
|
9336
|
+
}
|
|
9332
9337
|
function div0_binding($$value) {
|
|
9333
9338
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
9334
9339
|
container = $$value;
|
|
@@ -9343,27 +9348,36 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
9343
9348
|
if ("language" in $$props2)
|
|
9344
9349
|
$$invalidate(2, language = $$props2.language);
|
|
9345
9350
|
if ("containerRef" in $$props2)
|
|
9346
|
-
$$invalidate(
|
|
9351
|
+
$$invalidate(5, containerRef = $$props2.containerRef);
|
|
9347
9352
|
};
|
|
9348
9353
|
$$self.$$.update = () => {
|
|
9349
9354
|
if ($$self.$$.dirty & 9) {
|
|
9350
9355
|
try {
|
|
9351
9356
|
if (player && container) {
|
|
9352
9357
|
player.bindContainer(container);
|
|
9353
|
-
$$invalidate(
|
|
9358
|
+
$$invalidate(6, mounted = true);
|
|
9354
9359
|
}
|
|
9355
9360
|
} catch (err) {
|
|
9356
9361
|
console.error("[fastboard] An error occurred while binding container");
|
|
9357
9362
|
console.error(err);
|
|
9358
9363
|
}
|
|
9359
9364
|
}
|
|
9360
|
-
if ($$self.$$.dirty &
|
|
9365
|
+
if ($$self.$$.dirty & 67) {
|
|
9361
9366
|
if (player && theme && mounted) {
|
|
9362
9367
|
player.manager.setPrefersColorScheme(theme);
|
|
9363
9368
|
}
|
|
9364
9369
|
}
|
|
9365
9370
|
};
|
|
9366
|
-
return [
|
|
9371
|
+
return [
|
|
9372
|
+
player,
|
|
9373
|
+
theme,
|
|
9374
|
+
language,
|
|
9375
|
+
container,
|
|
9376
|
+
focus_me,
|
|
9377
|
+
containerRef,
|
|
9378
|
+
mounted,
|
|
9379
|
+
div0_binding
|
|
9380
|
+
];
|
|
9367
9381
|
}
|
|
9368
9382
|
var ReplayFastboard = class extends SvelteComponent {
|
|
9369
9383
|
constructor(options) {
|
|
@@ -9372,7 +9386,7 @@ var ReplayFastboard = class extends SvelteComponent {
|
|
|
9372
9386
|
player: 0,
|
|
9373
9387
|
theme: 1,
|
|
9374
9388
|
language: 2,
|
|
9375
|
-
containerRef:
|
|
9389
|
+
containerRef: 5
|
|
9376
9390
|
});
|
|
9377
9391
|
}
|
|
9378
9392
|
};
|
|
@@ -9602,7 +9616,7 @@ function create_fragment58(ctx) {
|
|
|
9602
9616
|
m(target, anchor) {
|
|
9603
9617
|
insert(target, div4, anchor);
|
|
9604
9618
|
append(div4, div0);
|
|
9605
|
-
ctx[
|
|
9619
|
+
ctx[15](div0);
|
|
9606
9620
|
append(div4, t0);
|
|
9607
9621
|
append(div4, div1);
|
|
9608
9622
|
if (if_block0)
|
|
@@ -9620,7 +9634,7 @@ function create_fragment58(ctx) {
|
|
|
9620
9634
|
if_block3.m(div3, null);
|
|
9621
9635
|
current = true;
|
|
9622
9636
|
if (!mounted) {
|
|
9623
|
-
dispose = listen(div0, "touchstart",
|
|
9637
|
+
dispose = listen(div0, "touchstart", ctx[9], { passive: true, capture: true });
|
|
9624
9638
|
mounted = true;
|
|
9625
9639
|
}
|
|
9626
9640
|
},
|
|
@@ -9734,7 +9748,7 @@ function create_fragment58(ctx) {
|
|
|
9734
9748
|
d(detaching) {
|
|
9735
9749
|
if (detaching)
|
|
9736
9750
|
detach(div4);
|
|
9737
|
-
ctx[
|
|
9751
|
+
ctx[15](null);
|
|
9738
9752
|
if (if_block0)
|
|
9739
9753
|
if_block0.d();
|
|
9740
9754
|
if (if_block1)
|
|
@@ -9753,9 +9767,9 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
9753
9767
|
let writable2;
|
|
9754
9768
|
let boxState;
|
|
9755
9769
|
let focusedApp;
|
|
9756
|
-
let $focusedApp, $$unsubscribe_focusedApp = noop, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe(focusedApp, ($$value) => $$invalidate(
|
|
9757
|
-
let $boxState, $$unsubscribe_boxState = noop, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe(boxState, ($$value) => $$invalidate(
|
|
9758
|
-
let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(
|
|
9770
|
+
let $focusedApp, $$unsubscribe_focusedApp = noop, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe(focusedApp, ($$value) => $$invalidate(12, $focusedApp = $$value)), focusedApp);
|
|
9771
|
+
let $boxState, $$unsubscribe_boxState = noop, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe(boxState, ($$value) => $$invalidate(13, $boxState = $$value)), boxState);
|
|
9772
|
+
let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(14, $writable = $$value)), writable2);
|
|
9759
9773
|
$$self.$$.on_destroy.push(() => $$unsubscribe_focusedApp());
|
|
9760
9774
|
$$self.$$.on_destroy.push(() => $$unsubscribe_boxState());
|
|
9761
9775
|
$$self.$$.on_destroy.push(() => $$unsubscribe_writable());
|
|
@@ -9777,6 +9791,11 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
9777
9791
|
};
|
|
9778
9792
|
}
|
|
9779
9793
|
});
|
|
9794
|
+
function focus_me() {
|
|
9795
|
+
tippy_hide_all();
|
|
9796
|
+
let a = document.activeElement;
|
|
9797
|
+
a && a.blur && a.blur();
|
|
9798
|
+
}
|
|
9780
9799
|
function div0_binding($$value) {
|
|
9781
9800
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
9782
9801
|
container = $$value;
|
|
@@ -9791,7 +9810,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
9791
9810
|
if ("language" in $$props2)
|
|
9792
9811
|
$$invalidate(2, language = $$props2.language);
|
|
9793
9812
|
if ("containerRef" in $$props2)
|
|
9794
|
-
$$invalidate(
|
|
9813
|
+
$$invalidate(10, containerRef = $$props2.containerRef);
|
|
9795
9814
|
if ("config" in $$props2)
|
|
9796
9815
|
$$invalidate(3, config = $$props2.config);
|
|
9797
9816
|
};
|
|
@@ -9805,7 +9824,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
9805
9824
|
if ($$self.$$.dirty & 1) {
|
|
9806
9825
|
$$subscribe_focusedApp($$invalidate(6, focusedApp = app == null ? void 0 : app.focusedApp));
|
|
9807
9826
|
}
|
|
9808
|
-
if ($$self.$$.dirty &
|
|
9827
|
+
if ($$self.$$.dirty & 28672) {
|
|
9809
9828
|
if (!$writable) {
|
|
9810
9829
|
$$invalidate(5, layout = "hidden");
|
|
9811
9830
|
} else if ($boxState === "maximized") {
|
|
@@ -9822,14 +9841,14 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
9822
9841
|
try {
|
|
9823
9842
|
if (app && container) {
|
|
9824
9843
|
app.bindContainer(container);
|
|
9825
|
-
$$invalidate(
|
|
9844
|
+
$$invalidate(11, mounted = true);
|
|
9826
9845
|
}
|
|
9827
9846
|
} catch (err) {
|
|
9828
9847
|
console.error("[fastboard] An error occurred while binding container");
|
|
9829
9848
|
console.error(err);
|
|
9830
9849
|
}
|
|
9831
9850
|
}
|
|
9832
|
-
if ($$self.$$.dirty &
|
|
9851
|
+
if ($$self.$$.dirty & 2051) {
|
|
9833
9852
|
if (app && theme && mounted) {
|
|
9834
9853
|
app.manager.setPrefersColorScheme(theme);
|
|
9835
9854
|
}
|
|
@@ -9845,6 +9864,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
9845
9864
|
focusedApp,
|
|
9846
9865
|
boxState,
|
|
9847
9866
|
writable2,
|
|
9867
|
+
focus_me,
|
|
9848
9868
|
containerRef,
|
|
9849
9869
|
mounted,
|
|
9850
9870
|
$focusedApp,
|
|
@@ -9860,7 +9880,7 @@ var Fastboard = class extends SvelteComponent {
|
|
|
9860
9880
|
app: 0,
|
|
9861
9881
|
theme: 1,
|
|
9862
9882
|
language: 2,
|
|
9863
|
-
containerRef:
|
|
9883
|
+
containerRef: 10,
|
|
9864
9884
|
config: 3
|
|
9865
9885
|
});
|
|
9866
9886
|
}
|