@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.svelte.mjs
CHANGED
|
@@ -3548,6 +3548,13 @@ var tippy = function(node, props) {
|
|
|
3548
3548
|
}
|
|
3549
3549
|
};
|
|
3550
3550
|
};
|
|
3551
|
+
function tippy_hide_all() {
|
|
3552
|
+
document.querySelectorAll("[data-tippy-root]").forEach((el) => {
|
|
3553
|
+
const instance59 = el._tippy;
|
|
3554
|
+
if (instance59)
|
|
3555
|
+
instance59.hide();
|
|
3556
|
+
});
|
|
3557
|
+
}
|
|
3551
3558
|
var tippy_menu = {
|
|
3552
3559
|
delay: 0,
|
|
3553
3560
|
placement: "right-start",
|
|
@@ -10020,6 +10027,7 @@ import {
|
|
|
10020
10027
|
element as element13,
|
|
10021
10028
|
init as init57,
|
|
10022
10029
|
insert as insert56,
|
|
10030
|
+
listen as listen7,
|
|
10023
10031
|
mount_component as mount_component9,
|
|
10024
10032
|
safe_not_equal as safe_not_equal57,
|
|
10025
10033
|
space as space10,
|
|
@@ -10037,6 +10045,8 @@ function create_fragment57(ctx) {
|
|
|
10037
10045
|
let div1_class_value;
|
|
10038
10046
|
let div2_class_value;
|
|
10039
10047
|
let current;
|
|
10048
|
+
let mounted;
|
|
10049
|
+
let dispose;
|
|
10040
10050
|
playercontrol = new PlayerControl_default({
|
|
10041
10051
|
props: {
|
|
10042
10052
|
player: ctx[0],
|
|
@@ -10064,6 +10074,10 @@ function create_fragment57(ctx) {
|
|
|
10064
10074
|
append56(div2, div1);
|
|
10065
10075
|
mount_component9(playercontrol, div1, null);
|
|
10066
10076
|
current = true;
|
|
10077
|
+
if (!mounted) {
|
|
10078
|
+
dispose = listen7(div0, "touchstart", tippy_hide_all, true);
|
|
10079
|
+
mounted = true;
|
|
10080
|
+
}
|
|
10067
10081
|
},
|
|
10068
10082
|
p(ctx2, [dirty]) {
|
|
10069
10083
|
const playercontrol_changes = {};
|
|
@@ -10093,6 +10107,8 @@ function create_fragment57(ctx) {
|
|
|
10093
10107
|
detach56(div2);
|
|
10094
10108
|
ctx[5](null);
|
|
10095
10109
|
destroy_component9(playercontrol);
|
|
10110
|
+
mounted = false;
|
|
10111
|
+
dispose();
|
|
10096
10112
|
}
|
|
10097
10113
|
};
|
|
10098
10114
|
}
|
|
@@ -10101,7 +10117,7 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
10101
10117
|
let { player = null } = $$props;
|
|
10102
10118
|
let { theme = "light" } = $$props;
|
|
10103
10119
|
let { language = "en" } = $$props;
|
|
10104
|
-
let {
|
|
10120
|
+
let { containerRef = void 0 } = $$props;
|
|
10105
10121
|
let container;
|
|
10106
10122
|
function div0_binding($$value) {
|
|
10107
10123
|
binding_callbacks3[$$value ? "unshift" : "push"](() => {
|
|
@@ -10116,8 +10132,8 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
10116
10132
|
$$invalidate(1, theme = $$props2.theme);
|
|
10117
10133
|
if ("language" in $$props2)
|
|
10118
10134
|
$$invalidate(2, language = $$props2.language);
|
|
10119
|
-
if ("
|
|
10120
|
-
$$invalidate(4,
|
|
10135
|
+
if ("containerRef" in $$props2)
|
|
10136
|
+
$$invalidate(4, containerRef = $$props2.containerRef);
|
|
10121
10137
|
};
|
|
10122
10138
|
$$self.$$.update = () => {
|
|
10123
10139
|
if ($$self.$$.dirty & 9) {
|
|
@@ -10127,16 +10143,21 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
10127
10143
|
}
|
|
10128
10144
|
if ($$self.$$.dirty & 24) {
|
|
10129
10145
|
$:
|
|
10130
|
-
if (
|
|
10131
|
-
|
|
10146
|
+
if (containerRef)
|
|
10147
|
+
containerRef(container || null);
|
|
10132
10148
|
}
|
|
10133
10149
|
};
|
|
10134
|
-
return [player, theme, language, container,
|
|
10150
|
+
return [player, theme, language, container, containerRef, div0_binding];
|
|
10135
10151
|
}
|
|
10136
10152
|
var ReplayFastboard = class extends SvelteComponent57 {
|
|
10137
10153
|
constructor(options) {
|
|
10138
10154
|
super();
|
|
10139
|
-
init57(this, options, instance57, create_fragment57, safe_not_equal57, {
|
|
10155
|
+
init57(this, options, instance57, create_fragment57, safe_not_equal57, {
|
|
10156
|
+
player: 0,
|
|
10157
|
+
theme: 1,
|
|
10158
|
+
language: 2,
|
|
10159
|
+
containerRef: 4
|
|
10160
|
+
});
|
|
10140
10161
|
}
|
|
10141
10162
|
};
|
|
10142
10163
|
var ReplayFastboard_default = ReplayFastboard;
|
|
@@ -10153,6 +10174,7 @@ import {
|
|
|
10153
10174
|
element as element14,
|
|
10154
10175
|
init as init58,
|
|
10155
10176
|
insert as insert57,
|
|
10177
|
+
listen as listen8,
|
|
10156
10178
|
mount_component as mount_component10,
|
|
10157
10179
|
safe_not_equal as safe_not_equal58,
|
|
10158
10180
|
space as space11,
|
|
@@ -10180,6 +10202,8 @@ function create_fragment58(ctx) {
|
|
|
10180
10202
|
let div3_class_value;
|
|
10181
10203
|
let div4_class_value;
|
|
10182
10204
|
let current;
|
|
10205
|
+
let mounted;
|
|
10206
|
+
let dispose;
|
|
10183
10207
|
toolbar = new Toolbar_default({
|
|
10184
10208
|
props: {
|
|
10185
10209
|
app: ctx[0],
|
|
@@ -10246,6 +10270,10 @@ function create_fragment58(ctx) {
|
|
|
10246
10270
|
append57(div4, div3);
|
|
10247
10271
|
mount_component10(pagecontrol, div3, null);
|
|
10248
10272
|
current = true;
|
|
10273
|
+
if (!mounted) {
|
|
10274
|
+
dispose = listen8(div0, "touchstart", tippy_hide_all, true);
|
|
10275
|
+
mounted = true;
|
|
10276
|
+
}
|
|
10249
10277
|
},
|
|
10250
10278
|
p(ctx2, [dirty]) {
|
|
10251
10279
|
const toolbar_changes = {};
|
|
@@ -10308,6 +10336,8 @@ function create_fragment58(ctx) {
|
|
|
10308
10336
|
destroy_component10(redoundo);
|
|
10309
10337
|
destroy_component10(zoomcontrol);
|
|
10310
10338
|
destroy_component10(pagecontrol);
|
|
10339
|
+
mounted = false;
|
|
10340
|
+
dispose();
|
|
10311
10341
|
}
|
|
10312
10342
|
};
|
|
10313
10343
|
}
|
|
@@ -10316,7 +10346,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10316
10346
|
let { app = null } = $$props;
|
|
10317
10347
|
let { theme = "light" } = $$props;
|
|
10318
10348
|
let { language = "en" } = $$props;
|
|
10319
|
-
let {
|
|
10349
|
+
let { containerRef = void 0 } = $$props;
|
|
10320
10350
|
let container;
|
|
10321
10351
|
function div0_binding($$value) {
|
|
10322
10352
|
binding_callbacks4[$$value ? "unshift" : "push"](() => {
|
|
@@ -10331,8 +10361,8 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10331
10361
|
$$invalidate(1, theme = $$props2.theme);
|
|
10332
10362
|
if ("language" in $$props2)
|
|
10333
10363
|
$$invalidate(2, language = $$props2.language);
|
|
10334
|
-
if ("
|
|
10335
|
-
$$invalidate(4,
|
|
10364
|
+
if ("containerRef" in $$props2)
|
|
10365
|
+
$$invalidate(4, containerRef = $$props2.containerRef);
|
|
10336
10366
|
};
|
|
10337
10367
|
$$self.$$.update = () => {
|
|
10338
10368
|
if ($$self.$$.dirty & 9) {
|
|
@@ -10342,16 +10372,21 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10342
10372
|
}
|
|
10343
10373
|
if ($$self.$$.dirty & 24) {
|
|
10344
10374
|
$:
|
|
10345
|
-
if (
|
|
10346
|
-
|
|
10375
|
+
if (containerRef)
|
|
10376
|
+
containerRef(container || null);
|
|
10347
10377
|
}
|
|
10348
10378
|
};
|
|
10349
|
-
return [app, theme, language, container,
|
|
10379
|
+
return [app, theme, language, container, containerRef, div0_binding];
|
|
10350
10380
|
}
|
|
10351
10381
|
var Fastboard = class extends SvelteComponent58 {
|
|
10352
10382
|
constructor(options) {
|
|
10353
10383
|
super();
|
|
10354
|
-
init58(this, options, instance58, create_fragment58, safe_not_equal58, {
|
|
10384
|
+
init58(this, options, instance58, create_fragment58, safe_not_equal58, {
|
|
10385
|
+
app: 0,
|
|
10386
|
+
theme: 1,
|
|
10387
|
+
language: 2,
|
|
10388
|
+
containerRef: 4
|
|
10389
|
+
});
|
|
10355
10390
|
}
|
|
10356
10391
|
};
|
|
10357
10392
|
var Fastboard_default = Fastboard;
|