@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.
- package/dist/index.js +16 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -9
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +14 -9
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +3 -3
- package/src/components/Fastboard/Fastboard.svelte +10 -1
- package/src/components/Toolbar/components/Contents.svelte +8 -6
package/dist/index.js
CHANGED
|
@@ -231,6 +231,9 @@ function get_current_component() {
|
|
|
231
231
|
throw new Error("Function called outside component initialization");
|
|
232
232
|
return current_component;
|
|
233
233
|
}
|
|
234
|
+
function onMount(fn) {
|
|
235
|
+
get_current_component().$$.on_mount.push(fn);
|
|
236
|
+
}
|
|
234
237
|
function createEventDispatcher() {
|
|
235
238
|
const component = get_current_component();
|
|
236
239
|
return (type, detail) => {
|
|
@@ -8560,10 +8563,6 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8560
8563
|
$:
|
|
8561
8564
|
$$subscribe_status($$invalidate(15, status = app == null ? void 0 : app.appsStatus));
|
|
8562
8565
|
}
|
|
8563
|
-
if ($$self.$$.dirty[0] & 536870944 | $$self.$$.dirty[1] & 1) {
|
|
8564
|
-
$:
|
|
8565
|
-
max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
|
|
8566
|
-
}
|
|
8567
8566
|
if ($$self.$$.dirty[0] & 192) {
|
|
8568
8567
|
$:
|
|
8569
8568
|
if (applianceShapes.includes(appliance)) {
|
|
@@ -8572,6 +8571,10 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8572
8571
|
$$invalidate(9, last_shape = shape);
|
|
8573
8572
|
}
|
|
8574
8573
|
}
|
|
8574
|
+
if ($$self.$$.dirty[0] & 536870944 | $$self.$$.dirty[1] & 1) {
|
|
8575
|
+
$:
|
|
8576
|
+
max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
|
|
8577
|
+
}
|
|
8575
8578
|
};
|
|
8576
8579
|
return [
|
|
8577
8580
|
app,
|
|
@@ -10130,6 +10133,15 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10130
10133
|
let { language = "en" } = $$props;
|
|
10131
10134
|
let { containerRef = void 0 } = $$props;
|
|
10132
10135
|
let container;
|
|
10136
|
+
onMount(() => {
|
|
10137
|
+
if (containerRef) {
|
|
10138
|
+
containerRef(container);
|
|
10139
|
+
return () => {
|
|
10140
|
+
if (containerRef)
|
|
10141
|
+
containerRef(null);
|
|
10142
|
+
};
|
|
10143
|
+
}
|
|
10144
|
+
});
|
|
10133
10145
|
function div0_binding($$value) {
|
|
10134
10146
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
10135
10147
|
container = $$value;
|
|
@@ -10152,11 +10164,6 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10152
10164
|
if (app && container)
|
|
10153
10165
|
app.bindContainer(container);
|
|
10154
10166
|
}
|
|
10155
|
-
if ($$self.$$.dirty & 24) {
|
|
10156
|
-
$:
|
|
10157
|
-
if (containerRef)
|
|
10158
|
-
containerRef(container || null);
|
|
10159
|
-
}
|
|
10160
10167
|
};
|
|
10161
10168
|
return [app, theme, language, container, containerRef, div0_binding];
|
|
10162
10169
|
}
|