@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.
@@ -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[4](div0);
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[4](null);
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 { containerRef = 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 ("containerRef" in $$props2)
10120
+ $$invalidate(4, containerRef = $$props2.containerRef);
10118
10121
  };
10119
10122
  $$self.$$.update = () => {
10120
10123
  if ($$self.$$.dirty & 9) {
@@ -10122,13 +10125,23 @@ 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 (containerRef)
10131
+ containerRef(container || null);
10132
+ }
10125
10133
  };
10126
- return [player, theme, language, container, div0_binding];
10134
+ return [player, theme, language, container, containerRef, 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, {
10140
+ player: 0,
10141
+ theme: 1,
10142
+ language: 2,
10143
+ containerRef: 4
10144
+ });
10132
10145
  }
10133
10146
  };
10134
10147
  var ReplayFastboard_default = ReplayFastboard;
@@ -10225,7 +10238,7 @@ function create_fragment58(ctx) {
10225
10238
  m(target, anchor) {
10226
10239
  insert57(target, div4, anchor);
10227
10240
  append57(div4, div0);
10228
- ctx[4](div0);
10241
+ ctx[5](div0);
10229
10242
  append57(div4, t0);
10230
10243
  append57(div4, div1);
10231
10244
  mount_component10(toolbar, div1, null);
@@ -10295,7 +10308,7 @@ function create_fragment58(ctx) {
10295
10308
  d(detaching) {
10296
10309
  if (detaching)
10297
10310
  detach57(div4);
10298
- ctx[4](null);
10311
+ ctx[5](null);
10299
10312
  destroy_component10(toolbar);
10300
10313
  destroy_component10(redoundo);
10301
10314
  destroy_component10(zoomcontrol);
@@ -10308,6 +10321,7 @@ function instance58($$self, $$props, $$invalidate) {
10308
10321
  let { app = null } = $$props;
10309
10322
  let { theme = "light" } = $$props;
10310
10323
  let { language = "en" } = $$props;
10324
+ let { containerRef = void 0 } = $$props;
10311
10325
  let container;
10312
10326
  function div0_binding($$value) {
10313
10327
  binding_callbacks4[$$value ? "unshift" : "push"](() => {
@@ -10322,6 +10336,8 @@ function instance58($$self, $$props, $$invalidate) {
10322
10336
  $$invalidate(1, theme = $$props2.theme);
10323
10337
  if ("language" in $$props2)
10324
10338
  $$invalidate(2, language = $$props2.language);
10339
+ if ("containerRef" in $$props2)
10340
+ $$invalidate(4, containerRef = $$props2.containerRef);
10325
10341
  };
10326
10342
  $$self.$$.update = () => {
10327
10343
  if ($$self.$$.dirty & 9) {
@@ -10329,13 +10345,23 @@ function instance58($$self, $$props, $$invalidate) {
10329
10345
  if (app && container)
10330
10346
  app.bindContainer(container);
10331
10347
  }
10348
+ if ($$self.$$.dirty & 24) {
10349
+ $:
10350
+ if (containerRef)
10351
+ containerRef(container || null);
10352
+ }
10332
10353
  };
10333
- return [app, theme, language, container, div0_binding];
10354
+ return [app, theme, language, container, containerRef, div0_binding];
10334
10355
  }
10335
10356
  var Fastboard = class extends SvelteComponent58 {
10336
10357
  constructor(options) {
10337
10358
  super();
10338
- init58(this, options, instance58, create_fragment58, safe_not_equal58, { app: 0, theme: 1, language: 2 });
10359
+ init58(this, options, instance58, create_fragment58, safe_not_equal58, {
10360
+ app: 0,
10361
+ theme: 1,
10362
+ language: 2,
10363
+ containerRef: 4
10364
+ });
10339
10365
  }
10340
10366
  };
10341
10367
  var Fastboard_default = Fastboard;