@netless/fastboard-ui 0.3.0-canary.0 → 0.3.0-canary.3

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.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[4](div0);
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[4](null);
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 { containerRef = 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 ("containerRef" in $$props2)
9884
+ $$invalidate(4, containerRef = $$props2.containerRef);
9882
9885
  };
9883
9886
  $$self.$$.update = () => {
9884
9887
  if ($$self.$$.dirty & 9) {
@@ -9886,13 +9889,23 @@ 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 (containerRef)
9895
+ containerRef(container || null);
9896
+ }
9889
9897
  };
9890
- return [player, theme, language, container, div0_binding];
9898
+ return [player, theme, language, container, containerRef, 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, {
9904
+ player: 0,
9905
+ theme: 1,
9906
+ language: 2,
9907
+ containerRef: 4
9908
+ });
9896
9909
  }
9897
9910
  };
9898
9911
  var ReplayFastboard_default = ReplayFastboard;
@@ -9971,7 +9984,7 @@ function create_fragment58(ctx) {
9971
9984
  m(target, anchor) {
9972
9985
  insert(target, div4, anchor);
9973
9986
  append(div4, div0);
9974
- ctx[4](div0);
9987
+ ctx[5](div0);
9975
9988
  append(div4, t0);
9976
9989
  append(div4, div1);
9977
9990
  mount_component(toolbar, div1, null);
@@ -10041,7 +10054,7 @@ function create_fragment58(ctx) {
10041
10054
  d(detaching) {
10042
10055
  if (detaching)
10043
10056
  detach(div4);
10044
- ctx[4](null);
10057
+ ctx[5](null);
10045
10058
  destroy_component(toolbar);
10046
10059
  destroy_component(redoundo);
10047
10060
  destroy_component(zoomcontrol);
@@ -10054,6 +10067,7 @@ function instance58($$self, $$props, $$invalidate) {
10054
10067
  let { app = null } = $$props;
10055
10068
  let { theme = "light" } = $$props;
10056
10069
  let { language = "en" } = $$props;
10070
+ let { containerRef = void 0 } = $$props;
10057
10071
  let container;
10058
10072
  function div0_binding($$value) {
10059
10073
  binding_callbacks[$$value ? "unshift" : "push"](() => {
@@ -10068,6 +10082,8 @@ function instance58($$self, $$props, $$invalidate) {
10068
10082
  $$invalidate(1, theme = $$props2.theme);
10069
10083
  if ("language" in $$props2)
10070
10084
  $$invalidate(2, language = $$props2.language);
10085
+ if ("containerRef" in $$props2)
10086
+ $$invalidate(4, containerRef = $$props2.containerRef);
10071
10087
  };
10072
10088
  $$self.$$.update = () => {
10073
10089
  if ($$self.$$.dirty & 9) {
@@ -10075,13 +10091,23 @@ function instance58($$self, $$props, $$invalidate) {
10075
10091
  if (app && container)
10076
10092
  app.bindContainer(container);
10077
10093
  }
10094
+ if ($$self.$$.dirty & 24) {
10095
+ $:
10096
+ if (containerRef)
10097
+ containerRef(container || null);
10098
+ }
10078
10099
  };
10079
- return [app, theme, language, container, div0_binding];
10100
+ return [app, theme, language, container, containerRef, div0_binding];
10080
10101
  }
10081
10102
  var Fastboard = class extends SvelteComponent {
10082
10103
  constructor(options) {
10083
10104
  super();
10084
- init(this, options, instance58, create_fragment58, safe_not_equal, { app: 0, theme: 1, language: 2 });
10105
+ init(this, options, instance58, create_fragment58, safe_not_equal, {
10106
+ app: 0,
10107
+ theme: 1,
10108
+ language: 2,
10109
+ containerRef: 4
10110
+ });
10085
10111
  }
10086
10112
  };
10087
10113
  var Fastboard_default = Fastboard;