@netless/fastboard-ui 0.3.0-canary.4 → 0.3.0-canary.5

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.
@@ -8713,10 +8713,6 @@ function instance54($$self, $$props, $$invalidate) {
8713
8713
  $:
8714
8714
  $$subscribe_status($$invalidate(15, status = app == null ? void 0 : app.appsStatus));
8715
8715
  }
8716
- if ($$self.$$.dirty[0] & 536870944 | $$self.$$.dirty[1] & 1) {
8717
- $:
8718
- max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
8719
- }
8720
8716
  if ($$self.$$.dirty[0] & 192) {
8721
8717
  $:
8722
8718
  if (applianceShapes.includes(appliance)) {
@@ -8725,6 +8721,10 @@ function instance54($$self, $$props, $$invalidate) {
8725
8721
  $$invalidate(9, last_shape = shape);
8726
8722
  }
8727
8723
  }
8724
+ if ($$self.$$.dirty[0] & 536870944 | $$self.$$.dirty[1] & 1) {
8725
+ $:
8726
+ max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
8727
+ }
8728
8728
  };
8729
8729
  return [
8730
8730
  app,
@@ -10182,6 +10182,7 @@ import {
10182
10182
  transition_in as transition_in12,
10183
10183
  transition_out as transition_out12
10184
10184
  } from "svelte/internal";
10185
+ import { onMount } from "svelte";
10185
10186
  function create_fragment58(ctx) {
10186
10187
  let div4;
10187
10188
  let div0;
@@ -10348,6 +10349,15 @@ function instance58($$self, $$props, $$invalidate) {
10348
10349
  let { language = "en" } = $$props;
10349
10350
  let { containerRef = void 0 } = $$props;
10350
10351
  let container;
10352
+ onMount(() => {
10353
+ if (containerRef) {
10354
+ containerRef(container);
10355
+ return () => {
10356
+ if (containerRef)
10357
+ containerRef(null);
10358
+ };
10359
+ }
10360
+ });
10351
10361
  function div0_binding($$value) {
10352
10362
  binding_callbacks4[$$value ? "unshift" : "push"](() => {
10353
10363
  container = $$value;
@@ -10370,11 +10380,6 @@ function instance58($$self, $$props, $$invalidate) {
10370
10380
  if (app && container)
10371
10381
  app.bindContainer(container);
10372
10382
  }
10373
- if ($$self.$$.dirty & 24) {
10374
- $:
10375
- if (containerRef)
10376
- containerRef(container || null);
10377
- }
10378
10383
  };
10379
10384
  return [app, theme, language, container, containerRef, div0_binding];
10380
10385
  }