@netless/fastboard-ui 0.3.0-canary.1 → 0.3.0-canary.4
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.d.ts +2 -2
- package/dist/index.js +47 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +47 -14
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +49 -14
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +3 -3
- package/src/components/Fastboard/Fastboard.svelte +4 -3
- package/src/components/Fastboard/Fastboard.svelte.ts +1 -1
- package/src/components/Fastboard/ReplayFastboard.svelte +4 -3
- package/src/components/Fastboard/ReplayFastboard.svelte.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3506,6 +3506,13 @@ var tippy = function(node, props) {
|
|
|
3506
3506
|
}
|
|
3507
3507
|
};
|
|
3508
3508
|
};
|
|
3509
|
+
function tippy_hide_all() {
|
|
3510
|
+
document.querySelectorAll("[data-tippy-root]").forEach((el) => {
|
|
3511
|
+
const instance59 = el._tippy;
|
|
3512
|
+
if (instance59)
|
|
3513
|
+
instance59.hide();
|
|
3514
|
+
});
|
|
3515
|
+
}
|
|
3509
3516
|
var tippy_menu = {
|
|
3510
3517
|
delay: 0,
|
|
3511
3518
|
placement: "right-start",
|
|
@@ -9801,6 +9808,8 @@ function create_fragment57(ctx) {
|
|
|
9801
9808
|
let div1_class_value;
|
|
9802
9809
|
let div2_class_value;
|
|
9803
9810
|
let current;
|
|
9811
|
+
let mounted;
|
|
9812
|
+
let dispose;
|
|
9804
9813
|
playercontrol = new PlayerControl_default({
|
|
9805
9814
|
props: {
|
|
9806
9815
|
player: ctx[0],
|
|
@@ -9828,6 +9837,10 @@ function create_fragment57(ctx) {
|
|
|
9828
9837
|
append(div2, div1);
|
|
9829
9838
|
mount_component(playercontrol, div1, null);
|
|
9830
9839
|
current = true;
|
|
9840
|
+
if (!mounted) {
|
|
9841
|
+
dispose = listen(div0, "touchstart", tippy_hide_all, true);
|
|
9842
|
+
mounted = true;
|
|
9843
|
+
}
|
|
9831
9844
|
},
|
|
9832
9845
|
p(ctx2, [dirty]) {
|
|
9833
9846
|
const playercontrol_changes = {};
|
|
@@ -9857,6 +9870,8 @@ function create_fragment57(ctx) {
|
|
|
9857
9870
|
detach(div2);
|
|
9858
9871
|
ctx[5](null);
|
|
9859
9872
|
destroy_component(playercontrol);
|
|
9873
|
+
mounted = false;
|
|
9874
|
+
dispose();
|
|
9860
9875
|
}
|
|
9861
9876
|
};
|
|
9862
9877
|
}
|
|
@@ -9865,7 +9880,7 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
9865
9880
|
let { player = null } = $$props;
|
|
9866
9881
|
let { theme = "light" } = $$props;
|
|
9867
9882
|
let { language = "en" } = $$props;
|
|
9868
|
-
let {
|
|
9883
|
+
let { containerRef = void 0 } = $$props;
|
|
9869
9884
|
let container;
|
|
9870
9885
|
function div0_binding($$value) {
|
|
9871
9886
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
@@ -9880,8 +9895,8 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
9880
9895
|
$$invalidate(1, theme = $$props2.theme);
|
|
9881
9896
|
if ("language" in $$props2)
|
|
9882
9897
|
$$invalidate(2, language = $$props2.language);
|
|
9883
|
-
if ("
|
|
9884
|
-
$$invalidate(4,
|
|
9898
|
+
if ("containerRef" in $$props2)
|
|
9899
|
+
$$invalidate(4, containerRef = $$props2.containerRef);
|
|
9885
9900
|
};
|
|
9886
9901
|
$$self.$$.update = () => {
|
|
9887
9902
|
if ($$self.$$.dirty & 9) {
|
|
@@ -9891,16 +9906,21 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
9891
9906
|
}
|
|
9892
9907
|
if ($$self.$$.dirty & 24) {
|
|
9893
9908
|
$:
|
|
9894
|
-
if (
|
|
9895
|
-
|
|
9909
|
+
if (containerRef)
|
|
9910
|
+
containerRef(container || null);
|
|
9896
9911
|
}
|
|
9897
9912
|
};
|
|
9898
|
-
return [player, theme, language, container,
|
|
9913
|
+
return [player, theme, language, container, containerRef, div0_binding];
|
|
9899
9914
|
}
|
|
9900
9915
|
var ReplayFastboard = class extends SvelteComponent {
|
|
9901
9916
|
constructor(options) {
|
|
9902
9917
|
super();
|
|
9903
|
-
init(this, options, instance57, create_fragment57, safe_not_equal, {
|
|
9918
|
+
init(this, options, instance57, create_fragment57, safe_not_equal, {
|
|
9919
|
+
player: 0,
|
|
9920
|
+
theme: 1,
|
|
9921
|
+
language: 2,
|
|
9922
|
+
containerRef: 4
|
|
9923
|
+
});
|
|
9904
9924
|
}
|
|
9905
9925
|
};
|
|
9906
9926
|
var ReplayFastboard_default = ReplayFastboard;
|
|
@@ -9926,6 +9946,8 @@ function create_fragment58(ctx) {
|
|
|
9926
9946
|
let div3_class_value;
|
|
9927
9947
|
let div4_class_value;
|
|
9928
9948
|
let current;
|
|
9949
|
+
let mounted;
|
|
9950
|
+
let dispose;
|
|
9929
9951
|
toolbar = new Toolbar_default({
|
|
9930
9952
|
props: {
|
|
9931
9953
|
app: ctx[0],
|
|
@@ -9992,6 +10014,10 @@ function create_fragment58(ctx) {
|
|
|
9992
10014
|
append(div4, div3);
|
|
9993
10015
|
mount_component(pagecontrol, div3, null);
|
|
9994
10016
|
current = true;
|
|
10017
|
+
if (!mounted) {
|
|
10018
|
+
dispose = listen(div0, "touchstart", tippy_hide_all, true);
|
|
10019
|
+
mounted = true;
|
|
10020
|
+
}
|
|
9995
10021
|
},
|
|
9996
10022
|
p(ctx2, [dirty]) {
|
|
9997
10023
|
const toolbar_changes = {};
|
|
@@ -10054,6 +10080,8 @@ function create_fragment58(ctx) {
|
|
|
10054
10080
|
destroy_component(redoundo);
|
|
10055
10081
|
destroy_component(zoomcontrol);
|
|
10056
10082
|
destroy_component(pagecontrol);
|
|
10083
|
+
mounted = false;
|
|
10084
|
+
dispose();
|
|
10057
10085
|
}
|
|
10058
10086
|
};
|
|
10059
10087
|
}
|
|
@@ -10062,7 +10090,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10062
10090
|
let { app = null } = $$props;
|
|
10063
10091
|
let { theme = "light" } = $$props;
|
|
10064
10092
|
let { language = "en" } = $$props;
|
|
10065
|
-
let {
|
|
10093
|
+
let { containerRef = void 0 } = $$props;
|
|
10066
10094
|
let container;
|
|
10067
10095
|
function div0_binding($$value) {
|
|
10068
10096
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
@@ -10077,8 +10105,8 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10077
10105
|
$$invalidate(1, theme = $$props2.theme);
|
|
10078
10106
|
if ("language" in $$props2)
|
|
10079
10107
|
$$invalidate(2, language = $$props2.language);
|
|
10080
|
-
if ("
|
|
10081
|
-
$$invalidate(4,
|
|
10108
|
+
if ("containerRef" in $$props2)
|
|
10109
|
+
$$invalidate(4, containerRef = $$props2.containerRef);
|
|
10082
10110
|
};
|
|
10083
10111
|
$$self.$$.update = () => {
|
|
10084
10112
|
if ($$self.$$.dirty & 9) {
|
|
@@ -10088,16 +10116,21 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10088
10116
|
}
|
|
10089
10117
|
if ($$self.$$.dirty & 24) {
|
|
10090
10118
|
$:
|
|
10091
|
-
if (
|
|
10092
|
-
|
|
10119
|
+
if (containerRef)
|
|
10120
|
+
containerRef(container || null);
|
|
10093
10121
|
}
|
|
10094
10122
|
};
|
|
10095
|
-
return [app, theme, language, container,
|
|
10123
|
+
return [app, theme, language, container, containerRef, div0_binding];
|
|
10096
10124
|
}
|
|
10097
10125
|
var Fastboard = class extends SvelteComponent {
|
|
10098
10126
|
constructor(options) {
|
|
10099
10127
|
super();
|
|
10100
|
-
init(this, options, instance58, create_fragment58, safe_not_equal, {
|
|
10128
|
+
init(this, options, instance58, create_fragment58, safe_not_equal, {
|
|
10129
|
+
app: 0,
|
|
10130
|
+
theme: 1,
|
|
10131
|
+
language: 2,
|
|
10132
|
+
containerRef: 4
|
|
10133
|
+
});
|
|
10101
10134
|
}
|
|
10102
10135
|
};
|
|
10103
10136
|
var Fastboard_default = Fastboard;
|