@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.mjs
CHANGED
|
@@ -9823,7 +9823,7 @@ function create_fragment57(ctx) {
|
|
|
9823
9823
|
m(target, anchor) {
|
|
9824
9824
|
insert(target, div2, anchor);
|
|
9825
9825
|
append(div2, div0);
|
|
9826
|
-
ctx[
|
|
9826
|
+
ctx[5](div0);
|
|
9827
9827
|
append(div2, t);
|
|
9828
9828
|
append(div2, div1);
|
|
9829
9829
|
mount_component(playercontrol, div1, null);
|
|
@@ -9855,7 +9855,7 @@ function create_fragment57(ctx) {
|
|
|
9855
9855
|
d(detaching) {
|
|
9856
9856
|
if (detaching)
|
|
9857
9857
|
detach(div2);
|
|
9858
|
-
ctx[
|
|
9858
|
+
ctx[5](null);
|
|
9859
9859
|
destroy_component(playercontrol);
|
|
9860
9860
|
}
|
|
9861
9861
|
};
|
|
@@ -9865,6 +9865,7 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
9865
9865
|
let { player = null } = $$props;
|
|
9866
9866
|
let { theme = "light" } = $$props;
|
|
9867
9867
|
let { language = "en" } = $$props;
|
|
9868
|
+
let { ref = void 0 } = $$props;
|
|
9868
9869
|
let container;
|
|
9869
9870
|
function div0_binding($$value) {
|
|
9870
9871
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
@@ -9879,6 +9880,8 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
9879
9880
|
$$invalidate(1, theme = $$props2.theme);
|
|
9880
9881
|
if ("language" in $$props2)
|
|
9881
9882
|
$$invalidate(2, language = $$props2.language);
|
|
9883
|
+
if ("ref" in $$props2)
|
|
9884
|
+
$$invalidate(4, ref = $$props2.ref);
|
|
9882
9885
|
};
|
|
9883
9886
|
$$self.$$.update = () => {
|
|
9884
9887
|
if ($$self.$$.dirty & 9) {
|
|
@@ -9886,13 +9889,18 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
9886
9889
|
if (player && container)
|
|
9887
9890
|
player.bindContainer(container);
|
|
9888
9891
|
}
|
|
9892
|
+
if ($$self.$$.dirty & 24) {
|
|
9893
|
+
$:
|
|
9894
|
+
if (ref && container)
|
|
9895
|
+
ref(container);
|
|
9896
|
+
}
|
|
9889
9897
|
};
|
|
9890
|
-
return [player, theme, language, container, div0_binding];
|
|
9898
|
+
return [player, theme, language, container, ref, div0_binding];
|
|
9891
9899
|
}
|
|
9892
9900
|
var ReplayFastboard = class extends SvelteComponent {
|
|
9893
9901
|
constructor(options) {
|
|
9894
9902
|
super();
|
|
9895
|
-
init(this, options, instance57, create_fragment57, safe_not_equal, { player: 0, theme: 1, language: 2 });
|
|
9903
|
+
init(this, options, instance57, create_fragment57, safe_not_equal, { player: 0, theme: 1, language: 2, ref: 4 });
|
|
9896
9904
|
}
|
|
9897
9905
|
};
|
|
9898
9906
|
var ReplayFastboard_default = ReplayFastboard;
|
|
@@ -9971,7 +9979,7 @@ function create_fragment58(ctx) {
|
|
|
9971
9979
|
m(target, anchor) {
|
|
9972
9980
|
insert(target, div4, anchor);
|
|
9973
9981
|
append(div4, div0);
|
|
9974
|
-
ctx[
|
|
9982
|
+
ctx[5](div0);
|
|
9975
9983
|
append(div4, t0);
|
|
9976
9984
|
append(div4, div1);
|
|
9977
9985
|
mount_component(toolbar, div1, null);
|
|
@@ -10041,7 +10049,7 @@ function create_fragment58(ctx) {
|
|
|
10041
10049
|
d(detaching) {
|
|
10042
10050
|
if (detaching)
|
|
10043
10051
|
detach(div4);
|
|
10044
|
-
ctx[
|
|
10052
|
+
ctx[5](null);
|
|
10045
10053
|
destroy_component(toolbar);
|
|
10046
10054
|
destroy_component(redoundo);
|
|
10047
10055
|
destroy_component(zoomcontrol);
|
|
@@ -10054,6 +10062,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10054
10062
|
let { app = null } = $$props;
|
|
10055
10063
|
let { theme = "light" } = $$props;
|
|
10056
10064
|
let { language = "en" } = $$props;
|
|
10065
|
+
let { ref = void 0 } = $$props;
|
|
10057
10066
|
let container;
|
|
10058
10067
|
function div0_binding($$value) {
|
|
10059
10068
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
@@ -10068,6 +10077,8 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10068
10077
|
$$invalidate(1, theme = $$props2.theme);
|
|
10069
10078
|
if ("language" in $$props2)
|
|
10070
10079
|
$$invalidate(2, language = $$props2.language);
|
|
10080
|
+
if ("ref" in $$props2)
|
|
10081
|
+
$$invalidate(4, ref = $$props2.ref);
|
|
10071
10082
|
};
|
|
10072
10083
|
$$self.$$.update = () => {
|
|
10073
10084
|
if ($$self.$$.dirty & 9) {
|
|
@@ -10075,13 +10086,18 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10075
10086
|
if (app && container)
|
|
10076
10087
|
app.bindContainer(container);
|
|
10077
10088
|
}
|
|
10089
|
+
if ($$self.$$.dirty & 24) {
|
|
10090
|
+
$:
|
|
10091
|
+
if (ref && container)
|
|
10092
|
+
ref(container);
|
|
10093
|
+
}
|
|
10078
10094
|
};
|
|
10079
|
-
return [app, theme, language, container, div0_binding];
|
|
10095
|
+
return [app, theme, language, container, ref, div0_binding];
|
|
10080
10096
|
}
|
|
10081
10097
|
var Fastboard = class extends SvelteComponent {
|
|
10082
10098
|
constructor(options) {
|
|
10083
10099
|
super();
|
|
10084
|
-
init(this, options, instance58, create_fragment58, safe_not_equal, { app: 0, theme: 1, language: 2 });
|
|
10100
|
+
init(this, options, instance58, create_fragment58, safe_not_equal, { app: 0, theme: 1, language: 2, ref: 4 });
|
|
10085
10101
|
}
|
|
10086
10102
|
};
|
|
10087
10103
|
var Fastboard_default = Fastboard;
|