@netless/fastboard-ui 0.3.0-canary.0 → 0.3.0-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.d.ts +2 -0
- package/dist/index.js +24 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -8
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +24 -8
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +4 -3
- package/src/components/Fastboard/Fastboard.svelte +2 -0
- package/src/components/Fastboard/Fastboard.svelte.ts +1 -0
- package/src/components/Fastboard/ReplayFastboard.svelte +2 -0
- package/src/components/Fastboard/ReplayFastboard.svelte.ts +1 -0
package/dist/index.svelte.mjs
CHANGED
|
@@ -10059,7 +10059,7 @@ function create_fragment57(ctx) {
|
|
|
10059
10059
|
m(target, anchor) {
|
|
10060
10060
|
insert56(target, div2, anchor);
|
|
10061
10061
|
append56(div2, div0);
|
|
10062
|
-
ctx[
|
|
10062
|
+
ctx[5](div0);
|
|
10063
10063
|
append56(div2, t);
|
|
10064
10064
|
append56(div2, div1);
|
|
10065
10065
|
mount_component9(playercontrol, div1, null);
|
|
@@ -10091,7 +10091,7 @@ function create_fragment57(ctx) {
|
|
|
10091
10091
|
d(detaching) {
|
|
10092
10092
|
if (detaching)
|
|
10093
10093
|
detach56(div2);
|
|
10094
|
-
ctx[
|
|
10094
|
+
ctx[5](null);
|
|
10095
10095
|
destroy_component9(playercontrol);
|
|
10096
10096
|
}
|
|
10097
10097
|
};
|
|
@@ -10101,6 +10101,7 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
10101
10101
|
let { player = null } = $$props;
|
|
10102
10102
|
let { theme = "light" } = $$props;
|
|
10103
10103
|
let { language = "en" } = $$props;
|
|
10104
|
+
let { ref = void 0 } = $$props;
|
|
10104
10105
|
let container;
|
|
10105
10106
|
function div0_binding($$value) {
|
|
10106
10107
|
binding_callbacks3[$$value ? "unshift" : "push"](() => {
|
|
@@ -10115,6 +10116,8 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
10115
10116
|
$$invalidate(1, theme = $$props2.theme);
|
|
10116
10117
|
if ("language" in $$props2)
|
|
10117
10118
|
$$invalidate(2, language = $$props2.language);
|
|
10119
|
+
if ("ref" in $$props2)
|
|
10120
|
+
$$invalidate(4, ref = $$props2.ref);
|
|
10118
10121
|
};
|
|
10119
10122
|
$$self.$$.update = () => {
|
|
10120
10123
|
if ($$self.$$.dirty & 9) {
|
|
@@ -10122,13 +10125,18 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
10122
10125
|
if (player && container)
|
|
10123
10126
|
player.bindContainer(container);
|
|
10124
10127
|
}
|
|
10128
|
+
if ($$self.$$.dirty & 24) {
|
|
10129
|
+
$:
|
|
10130
|
+
if (ref && container)
|
|
10131
|
+
ref(container);
|
|
10132
|
+
}
|
|
10125
10133
|
};
|
|
10126
|
-
return [player, theme, language, container, div0_binding];
|
|
10134
|
+
return [player, theme, language, container, ref, div0_binding];
|
|
10127
10135
|
}
|
|
10128
10136
|
var ReplayFastboard = class extends SvelteComponent57 {
|
|
10129
10137
|
constructor(options) {
|
|
10130
10138
|
super();
|
|
10131
|
-
init57(this, options, instance57, create_fragment57, safe_not_equal57, { player: 0, theme: 1, language: 2 });
|
|
10139
|
+
init57(this, options, instance57, create_fragment57, safe_not_equal57, { player: 0, theme: 1, language: 2, ref: 4 });
|
|
10132
10140
|
}
|
|
10133
10141
|
};
|
|
10134
10142
|
var ReplayFastboard_default = ReplayFastboard;
|
|
@@ -10225,7 +10233,7 @@ function create_fragment58(ctx) {
|
|
|
10225
10233
|
m(target, anchor) {
|
|
10226
10234
|
insert57(target, div4, anchor);
|
|
10227
10235
|
append57(div4, div0);
|
|
10228
|
-
ctx[
|
|
10236
|
+
ctx[5](div0);
|
|
10229
10237
|
append57(div4, t0);
|
|
10230
10238
|
append57(div4, div1);
|
|
10231
10239
|
mount_component10(toolbar, div1, null);
|
|
@@ -10295,7 +10303,7 @@ function create_fragment58(ctx) {
|
|
|
10295
10303
|
d(detaching) {
|
|
10296
10304
|
if (detaching)
|
|
10297
10305
|
detach57(div4);
|
|
10298
|
-
ctx[
|
|
10306
|
+
ctx[5](null);
|
|
10299
10307
|
destroy_component10(toolbar);
|
|
10300
10308
|
destroy_component10(redoundo);
|
|
10301
10309
|
destroy_component10(zoomcontrol);
|
|
@@ -10308,6 +10316,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10308
10316
|
let { app = null } = $$props;
|
|
10309
10317
|
let { theme = "light" } = $$props;
|
|
10310
10318
|
let { language = "en" } = $$props;
|
|
10319
|
+
let { ref = void 0 } = $$props;
|
|
10311
10320
|
let container;
|
|
10312
10321
|
function div0_binding($$value) {
|
|
10313
10322
|
binding_callbacks4[$$value ? "unshift" : "push"](() => {
|
|
@@ -10322,6 +10331,8 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10322
10331
|
$$invalidate(1, theme = $$props2.theme);
|
|
10323
10332
|
if ("language" in $$props2)
|
|
10324
10333
|
$$invalidate(2, language = $$props2.language);
|
|
10334
|
+
if ("ref" in $$props2)
|
|
10335
|
+
$$invalidate(4, ref = $$props2.ref);
|
|
10325
10336
|
};
|
|
10326
10337
|
$$self.$$.update = () => {
|
|
10327
10338
|
if ($$self.$$.dirty & 9) {
|
|
@@ -10329,13 +10340,18 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10329
10340
|
if (app && container)
|
|
10330
10341
|
app.bindContainer(container);
|
|
10331
10342
|
}
|
|
10343
|
+
if ($$self.$$.dirty & 24) {
|
|
10344
|
+
$:
|
|
10345
|
+
if (ref && container)
|
|
10346
|
+
ref(container);
|
|
10347
|
+
}
|
|
10332
10348
|
};
|
|
10333
|
-
return [app, theme, language, container, div0_binding];
|
|
10349
|
+
return [app, theme, language, container, ref, div0_binding];
|
|
10334
10350
|
}
|
|
10335
10351
|
var Fastboard = class extends SvelteComponent58 {
|
|
10336
10352
|
constructor(options) {
|
|
10337
10353
|
super();
|
|
10338
|
-
init58(this, options, instance58, create_fragment58, safe_not_equal58, { app: 0, theme: 1, language: 2 });
|
|
10354
|
+
init58(this, options, instance58, create_fragment58, safe_not_equal58, { app: 0, theme: 1, language: 2, ref: 4 });
|
|
10339
10355
|
}
|
|
10340
10356
|
};
|
|
10341
10357
|
var Fastboard_default = Fastboard;
|