@netless/fastboard-ui 0.3.2-canary.2 → 0.3.2-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.d.ts CHANGED
@@ -1,6 +1,12 @@
1
1
  import { FastboardApp, FastboardPlayer } from '@netless/fastboard-core';
2
2
  import { SvelteComponentTyped } from 'svelte';
3
3
 
4
+ interface SvelteAction<T = void> {
5
+ (node: HTMLElement, parameters: T): void | {
6
+ update?: (parameters: T) => void;
7
+ destroy?: () => void;
8
+ };
9
+ }
4
10
  declare type Theme = "light" | "dark";
5
11
  declare type Language = "en" | "zh-CN";
6
12
  declare type IconType = "normal" | "disable";
@@ -9,6 +15,21 @@ declare type GenericIcon<K extends string, E extends string = IconType> = {
9
15
  [kind in E]: string;
10
16
  };
11
17
  };
18
+ declare type I18nData<T extends string> = Record<Language, Record<T, string>>;
19
+ interface FastboardUIConfig {
20
+ toolbar?: {
21
+ enable?: boolean;
22
+ };
23
+ redo_undo?: {
24
+ enable?: boolean;
25
+ };
26
+ zoom_control?: {
27
+ enable?: boolean;
28
+ };
29
+ page_control?: {
30
+ enable?: boolean;
31
+ };
32
+ }
12
33
 
13
34
  declare interface RedoUndoProps {
14
35
  app?: FastboardApp | null;
@@ -68,6 +89,7 @@ declare interface FastboardProps {
68
89
  theme?: Theme;
69
90
  language?: Language;
70
91
  containerRef?: (container: HTMLDivElement | null) => void;
92
+ config?: FastboardUIConfig;
71
93
  }
72
94
  declare class Fastboard extends SvelteComponentTyped<FastboardProps> {
73
95
  }
@@ -92,4 +114,4 @@ declare class AppsInToolbar {
92
114
 
93
115
  declare const apps: AppsInToolbar;
94
116
 
95
- export { AppInToolbar, AppsInToolbar, Fastboard, FastboardProps, GenericIcon, Language, PageControl, PageControlProps, PlayerControl, PlayerControlProps, RedoUndo, RedoUndoProps, ReplayFastboard, ReplayFastboardProps, Theme, Toolbar, ToolbarProps, ZoomControl, ZoomControlProps, apps };
117
+ export { AppInToolbar, AppsInToolbar, Fastboard, FastboardProps, FastboardUIConfig, GenericIcon, I18nData, IconType, Language, PageControl, PageControlProps, PlayerControl, PlayerControlProps, RedoUndo, RedoUndoProps, ReplayFastboard, ReplayFastboardProps, SvelteAction, Theme, Toolbar, ToolbarProps, ZoomControl, ZoomControlProps, apps };
package/dist/index.js CHANGED
@@ -10011,28 +10011,9 @@ var ReplayFastboard = class extends SvelteComponent {
10011
10011
  var ReplayFastboard_default = ReplayFastboard;
10012
10012
 
10013
10013
  // src/components/Fastboard/Fastboard.svelte
10014
- function create_fragment58(ctx) {
10015
- let div4;
10016
- let div0;
10017
- let div0_class_value;
10018
- let t0;
10019
- let div1;
10014
+ function create_if_block_32(ctx) {
10020
10015
  let toolbar;
10021
- let div1_class_value;
10022
- let t1;
10023
- let div2;
10024
- let redoundo;
10025
- let t2;
10026
- let zoomcontrol;
10027
- let div2_class_value;
10028
- let t3;
10029
- let div3;
10030
- let pagecontrol;
10031
- let div3_class_value;
10032
- let div4_class_value;
10033
10016
  let current;
10034
- let mounted;
10035
- let dispose;
10036
10017
  toolbar = new Toolbar_default({
10037
10018
  props: {
10038
10019
  app: ctx[0],
@@ -10040,6 +10021,42 @@ function create_fragment58(ctx) {
10040
10021
  language: ctx[2]
10041
10022
  }
10042
10023
  });
10024
+ return {
10025
+ c() {
10026
+ create_component(toolbar.$$.fragment);
10027
+ },
10028
+ m(target, anchor) {
10029
+ mount_component(toolbar, target, anchor);
10030
+ current = true;
10031
+ },
10032
+ p(ctx2, dirty) {
10033
+ const toolbar_changes = {};
10034
+ if (dirty & 1)
10035
+ toolbar_changes.app = ctx2[0];
10036
+ if (dirty & 2)
10037
+ toolbar_changes.theme = ctx2[1];
10038
+ if (dirty & 4)
10039
+ toolbar_changes.language = ctx2[2];
10040
+ toolbar.$set(toolbar_changes);
10041
+ },
10042
+ i(local) {
10043
+ if (current)
10044
+ return;
10045
+ transition_in(toolbar.$$.fragment, local);
10046
+ current = true;
10047
+ },
10048
+ o(local) {
10049
+ transition_out(toolbar.$$.fragment, local);
10050
+ current = false;
10051
+ },
10052
+ d(detaching) {
10053
+ destroy_component(toolbar, detaching);
10054
+ }
10055
+ };
10056
+ }
10057
+ function create_if_block_23(ctx) {
10058
+ let redoundo;
10059
+ let current;
10043
10060
  redoundo = new RedoUndo_default({
10044
10061
  props: {
10045
10062
  app: ctx[0],
@@ -10047,6 +10064,42 @@ function create_fragment58(ctx) {
10047
10064
  language: ctx[2]
10048
10065
  }
10049
10066
  });
10067
+ return {
10068
+ c() {
10069
+ create_component(redoundo.$$.fragment);
10070
+ },
10071
+ m(target, anchor) {
10072
+ mount_component(redoundo, target, anchor);
10073
+ current = true;
10074
+ },
10075
+ p(ctx2, dirty) {
10076
+ const redoundo_changes = {};
10077
+ if (dirty & 1)
10078
+ redoundo_changes.app = ctx2[0];
10079
+ if (dirty & 2)
10080
+ redoundo_changes.theme = ctx2[1];
10081
+ if (dirty & 4)
10082
+ redoundo_changes.language = ctx2[2];
10083
+ redoundo.$set(redoundo_changes);
10084
+ },
10085
+ i(local) {
10086
+ if (current)
10087
+ return;
10088
+ transition_in(redoundo.$$.fragment, local);
10089
+ current = true;
10090
+ },
10091
+ o(local) {
10092
+ transition_out(redoundo.$$.fragment, local);
10093
+ current = false;
10094
+ },
10095
+ d(detaching) {
10096
+ destroy_component(redoundo, detaching);
10097
+ }
10098
+ };
10099
+ }
10100
+ function create_if_block_14(ctx) {
10101
+ let zoomcontrol;
10102
+ let current;
10050
10103
  zoomcontrol = new ZoomControl_default({
10051
10104
  props: {
10052
10105
  app: ctx[0],
@@ -10054,6 +10107,42 @@ function create_fragment58(ctx) {
10054
10107
  language: ctx[2]
10055
10108
  }
10056
10109
  });
10110
+ return {
10111
+ c() {
10112
+ create_component(zoomcontrol.$$.fragment);
10113
+ },
10114
+ m(target, anchor) {
10115
+ mount_component(zoomcontrol, target, anchor);
10116
+ current = true;
10117
+ },
10118
+ p(ctx2, dirty) {
10119
+ const zoomcontrol_changes = {};
10120
+ if (dirty & 1)
10121
+ zoomcontrol_changes.app = ctx2[0];
10122
+ if (dirty & 2)
10123
+ zoomcontrol_changes.theme = ctx2[1];
10124
+ if (dirty & 4)
10125
+ zoomcontrol_changes.language = ctx2[2];
10126
+ zoomcontrol.$set(zoomcontrol_changes);
10127
+ },
10128
+ i(local) {
10129
+ if (current)
10130
+ return;
10131
+ transition_in(zoomcontrol.$$.fragment, local);
10132
+ current = true;
10133
+ },
10134
+ o(local) {
10135
+ transition_out(zoomcontrol.$$.fragment, local);
10136
+ current = false;
10137
+ },
10138
+ d(detaching) {
10139
+ destroy_component(zoomcontrol, detaching);
10140
+ }
10141
+ };
10142
+ }
10143
+ function create_if_block9(ctx) {
10144
+ let pagecontrol;
10145
+ let current;
10057
10146
  pagecontrol = new PageControl_default({
10058
10147
  props: {
10059
10148
  app: ctx[0],
@@ -10061,46 +10150,110 @@ function create_fragment58(ctx) {
10061
10150
  language: ctx[2]
10062
10151
  }
10063
10152
  });
10153
+ return {
10154
+ c() {
10155
+ create_component(pagecontrol.$$.fragment);
10156
+ },
10157
+ m(target, anchor) {
10158
+ mount_component(pagecontrol, target, anchor);
10159
+ current = true;
10160
+ },
10161
+ p(ctx2, dirty) {
10162
+ const pagecontrol_changes = {};
10163
+ if (dirty & 1)
10164
+ pagecontrol_changes.app = ctx2[0];
10165
+ if (dirty & 2)
10166
+ pagecontrol_changes.theme = ctx2[1];
10167
+ if (dirty & 4)
10168
+ pagecontrol_changes.language = ctx2[2];
10169
+ pagecontrol.$set(pagecontrol_changes);
10170
+ },
10171
+ i(local) {
10172
+ if (current)
10173
+ return;
10174
+ transition_in(pagecontrol.$$.fragment, local);
10175
+ current = true;
10176
+ },
10177
+ o(local) {
10178
+ transition_out(pagecontrol.$$.fragment, local);
10179
+ current = false;
10180
+ },
10181
+ d(detaching) {
10182
+ destroy_component(pagecontrol, detaching);
10183
+ }
10184
+ };
10185
+ }
10186
+ function create_fragment58(ctx) {
10187
+ var _a, _b, _c, _d;
10188
+ let div4;
10189
+ let div0;
10190
+ let div0_class_value;
10191
+ let t0;
10192
+ let div1;
10193
+ let div1_class_value;
10194
+ let t1;
10195
+ let div2;
10196
+ let t2;
10197
+ let div2_class_value;
10198
+ let t3;
10199
+ let div3;
10200
+ let div3_class_value;
10201
+ let div4_class_value;
10202
+ let current;
10203
+ let mounted;
10204
+ let dispose;
10205
+ let if_block0 = ((_a = ctx[3].toolbar) == null ? void 0 : _a.enable) !== false && create_if_block_32(ctx);
10206
+ let if_block1 = ((_b = ctx[3].redo_undo) == null ? void 0 : _b.enable) !== false && create_if_block_23(ctx);
10207
+ let if_block2 = ((_c = ctx[3].zoom_control) == null ? void 0 : _c.enable) !== false && create_if_block_14(ctx);
10208
+ let if_block3 = ((_d = ctx[3].page_control) == null ? void 0 : _d.enable) !== false && create_if_block9(ctx);
10064
10209
  return {
10065
10210
  c() {
10066
10211
  div4 = element("div");
10067
10212
  div0 = element("div");
10068
10213
  t0 = space();
10069
10214
  div1 = element("div");
10070
- create_component(toolbar.$$.fragment);
10215
+ if (if_block0)
10216
+ if_block0.c();
10071
10217
  t1 = space();
10072
10218
  div2 = element("div");
10073
- create_component(redoundo.$$.fragment);
10219
+ if (if_block1)
10220
+ if_block1.c();
10074
10221
  t2 = space();
10075
- create_component(zoomcontrol.$$.fragment);
10222
+ if (if_block2)
10223
+ if_block2.c();
10076
10224
  t3 = space();
10077
10225
  div3 = element("div");
10078
- create_component(pagecontrol.$$.fragment);
10226
+ if (if_block3)
10227
+ if_block3.c();
10079
10228
  attr(div0, "class", div0_class_value = name9 + "-view");
10080
10229
  attr(div1, "class", div1_class_value = name9 + "-left");
10081
- toggle_class(div1, "hidden", !(ctx[4] === "visible" || ctx[4] === "toolbar-only"));
10230
+ toggle_class(div1, "hidden", !(ctx[5] === "visible" || ctx[5] === "toolbar-only"));
10082
10231
  attr(div2, "class", div2_class_value = name9 + "-bottom-left");
10083
- toggle_class(div2, "hidden", ctx[4] !== "visible");
10232
+ toggle_class(div2, "hidden", ctx[5] !== "visible");
10084
10233
  attr(div3, "class", div3_class_value = name9 + "-bottom-right");
10085
- toggle_class(div3, "hidden", ctx[4] !== "visible");
10234
+ toggle_class(div3, "hidden", ctx[5] !== "visible");
10086
10235
  attr(div4, "class", div4_class_value = name9 + "-root");
10087
10236
  toggle_class(div4, "loading", !ctx[0]);
10088
10237
  },
10089
10238
  m(target, anchor) {
10090
10239
  insert(target, div4, anchor);
10091
10240
  append(div4, div0);
10092
- ctx[12](div0);
10241
+ ctx[13](div0);
10093
10242
  append(div4, t0);
10094
10243
  append(div4, div1);
10095
- mount_component(toolbar, div1, null);
10244
+ if (if_block0)
10245
+ if_block0.m(div1, null);
10096
10246
  append(div4, t1);
10097
10247
  append(div4, div2);
10098
- mount_component(redoundo, div2, null);
10248
+ if (if_block1)
10249
+ if_block1.m(div2, null);
10099
10250
  append(div2, t2);
10100
- mount_component(zoomcontrol, div2, null);
10251
+ if (if_block2)
10252
+ if_block2.m(div2, null);
10101
10253
  append(div4, t3);
10102
10254
  append(div4, div3);
10103
- mount_component(pagecontrol, div3, null);
10255
+ if (if_block3)
10256
+ if_block3.m(div3, null);
10104
10257
  current = true;
10105
10258
  if (!mounted) {
10106
10259
  dispose = listen(div0, "touchstart", tippy_hide_all, true);
@@ -10108,46 +10261,91 @@ function create_fragment58(ctx) {
10108
10261
  }
10109
10262
  },
10110
10263
  p(ctx2, [dirty]) {
10111
- const toolbar_changes = {};
10112
- if (dirty & 1)
10113
- toolbar_changes.app = ctx2[0];
10114
- if (dirty & 2)
10115
- toolbar_changes.theme = ctx2[1];
10116
- if (dirty & 4)
10117
- toolbar_changes.language = ctx2[2];
10118
- toolbar.$set(toolbar_changes);
10119
- if (dirty & 16) {
10120
- toggle_class(div1, "hidden", !(ctx2[4] === "visible" || ctx2[4] === "toolbar-only"));
10264
+ var _a2, _b2, _c2, _d2;
10265
+ if (((_a2 = ctx2[3].toolbar) == null ? void 0 : _a2.enable) !== false) {
10266
+ if (if_block0) {
10267
+ if_block0.p(ctx2, dirty);
10268
+ if (dirty & 8) {
10269
+ transition_in(if_block0, 1);
10270
+ }
10271
+ } else {
10272
+ if_block0 = create_if_block_32(ctx2);
10273
+ if_block0.c();
10274
+ transition_in(if_block0, 1);
10275
+ if_block0.m(div1, null);
10276
+ }
10277
+ } else if (if_block0) {
10278
+ group_outros();
10279
+ transition_out(if_block0, 1, 1, () => {
10280
+ if_block0 = null;
10281
+ });
10282
+ check_outros();
10121
10283
  }
10122
- const redoundo_changes = {};
10123
- if (dirty & 1)
10124
- redoundo_changes.app = ctx2[0];
10125
- if (dirty & 2)
10126
- redoundo_changes.theme = ctx2[1];
10127
- if (dirty & 4)
10128
- redoundo_changes.language = ctx2[2];
10129
- redoundo.$set(redoundo_changes);
10130
- const zoomcontrol_changes = {};
10131
- if (dirty & 1)
10132
- zoomcontrol_changes.app = ctx2[0];
10133
- if (dirty & 2)
10134
- zoomcontrol_changes.theme = ctx2[1];
10135
- if (dirty & 4)
10136
- zoomcontrol_changes.language = ctx2[2];
10137
- zoomcontrol.$set(zoomcontrol_changes);
10138
- if (dirty & 16) {
10139
- toggle_class(div2, "hidden", ctx2[4] !== "visible");
10284
+ if (dirty & 32) {
10285
+ toggle_class(div1, "hidden", !(ctx2[5] === "visible" || ctx2[5] === "toolbar-only"));
10140
10286
  }
10141
- const pagecontrol_changes = {};
10142
- if (dirty & 1)
10143
- pagecontrol_changes.app = ctx2[0];
10144
- if (dirty & 2)
10145
- pagecontrol_changes.theme = ctx2[1];
10146
- if (dirty & 4)
10147
- pagecontrol_changes.language = ctx2[2];
10148
- pagecontrol.$set(pagecontrol_changes);
10149
- if (dirty & 16) {
10150
- toggle_class(div3, "hidden", ctx2[4] !== "visible");
10287
+ if (((_b2 = ctx2[3].redo_undo) == null ? void 0 : _b2.enable) !== false) {
10288
+ if (if_block1) {
10289
+ if_block1.p(ctx2, dirty);
10290
+ if (dirty & 8) {
10291
+ transition_in(if_block1, 1);
10292
+ }
10293
+ } else {
10294
+ if_block1 = create_if_block_23(ctx2);
10295
+ if_block1.c();
10296
+ transition_in(if_block1, 1);
10297
+ if_block1.m(div2, t2);
10298
+ }
10299
+ } else if (if_block1) {
10300
+ group_outros();
10301
+ transition_out(if_block1, 1, 1, () => {
10302
+ if_block1 = null;
10303
+ });
10304
+ check_outros();
10305
+ }
10306
+ if (((_c2 = ctx2[3].zoom_control) == null ? void 0 : _c2.enable) !== false) {
10307
+ if (if_block2) {
10308
+ if_block2.p(ctx2, dirty);
10309
+ if (dirty & 8) {
10310
+ transition_in(if_block2, 1);
10311
+ }
10312
+ } else {
10313
+ if_block2 = create_if_block_14(ctx2);
10314
+ if_block2.c();
10315
+ transition_in(if_block2, 1);
10316
+ if_block2.m(div2, null);
10317
+ }
10318
+ } else if (if_block2) {
10319
+ group_outros();
10320
+ transition_out(if_block2, 1, 1, () => {
10321
+ if_block2 = null;
10322
+ });
10323
+ check_outros();
10324
+ }
10325
+ if (dirty & 32) {
10326
+ toggle_class(div2, "hidden", ctx2[5] !== "visible");
10327
+ }
10328
+ if (((_d2 = ctx2[3].page_control) == null ? void 0 : _d2.enable) !== false) {
10329
+ if (if_block3) {
10330
+ if_block3.p(ctx2, dirty);
10331
+ if (dirty & 8) {
10332
+ transition_in(if_block3, 1);
10333
+ }
10334
+ } else {
10335
+ if_block3 = create_if_block9(ctx2);
10336
+ if_block3.c();
10337
+ transition_in(if_block3, 1);
10338
+ if_block3.m(div3, null);
10339
+ }
10340
+ } else if (if_block3) {
10341
+ group_outros();
10342
+ transition_out(if_block3, 1, 1, () => {
10343
+ if_block3 = null;
10344
+ });
10345
+ check_outros();
10346
+ }
10347
+ if (dirty & 32) {
10348
+ toggle_class(div3, "hidden", ctx2[5] !== "visible");
10151
10349
  }
10152
10350
  if (dirty & 1) {
10153
10351
  toggle_class(div4, "loading", !ctx2[0]);
@@ -10156,27 +10354,31 @@ function create_fragment58(ctx) {
10156
10354
  i(local) {
10157
10355
  if (current)
10158
10356
  return;
10159
- transition_in(toolbar.$$.fragment, local);
10160
- transition_in(redoundo.$$.fragment, local);
10161
- transition_in(zoomcontrol.$$.fragment, local);
10162
- transition_in(pagecontrol.$$.fragment, local);
10357
+ transition_in(if_block0);
10358
+ transition_in(if_block1);
10359
+ transition_in(if_block2);
10360
+ transition_in(if_block3);
10163
10361
  current = true;
10164
10362
  },
10165
10363
  o(local) {
10166
- transition_out(toolbar.$$.fragment, local);
10167
- transition_out(redoundo.$$.fragment, local);
10168
- transition_out(zoomcontrol.$$.fragment, local);
10169
- transition_out(pagecontrol.$$.fragment, local);
10364
+ transition_out(if_block0);
10365
+ transition_out(if_block1);
10366
+ transition_out(if_block2);
10367
+ transition_out(if_block3);
10170
10368
  current = false;
10171
10369
  },
10172
10370
  d(detaching) {
10173
10371
  if (detaching)
10174
10372
  detach(div4);
10175
- ctx[12](null);
10176
- destroy_component(toolbar);
10177
- destroy_component(redoundo);
10178
- destroy_component(zoomcontrol);
10179
- destroy_component(pagecontrol);
10373
+ ctx[13](null);
10374
+ if (if_block0)
10375
+ if_block0.d();
10376
+ if (if_block1)
10377
+ if_block1.d();
10378
+ if (if_block2)
10379
+ if_block2.d();
10380
+ if (if_block3)
10381
+ if_block3.d();
10180
10382
  mounted = false;
10181
10383
  dispose();
10182
10384
  }
@@ -10187,9 +10389,9 @@ function instance58($$self, $$props, $$invalidate) {
10187
10389
  let writable2;
10188
10390
  let boxState;
10189
10391
  let focusedApp;
10190
- let $focusedApp, $$unsubscribe_focusedApp = noop, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe(focusedApp, ($$value) => $$invalidate(9, $focusedApp = $$value)), focusedApp);
10191
- let $boxState, $$unsubscribe_boxState = noop, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe(boxState, ($$value) => $$invalidate(10, $boxState = $$value)), boxState);
10192
- let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(11, $writable = $$value)), writable2);
10392
+ let $focusedApp, $$unsubscribe_focusedApp = noop, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe(focusedApp, ($$value) => $$invalidate(10, $focusedApp = $$value)), focusedApp);
10393
+ let $boxState, $$unsubscribe_boxState = noop, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe(boxState, ($$value) => $$invalidate(11, $boxState = $$value)), boxState);
10394
+ let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(12, $writable = $$value)), writable2);
10193
10395
  $$self.$$.on_destroy.push(() => $$unsubscribe_focusedApp());
10194
10396
  $$self.$$.on_destroy.push(() => $$unsubscribe_boxState());
10195
10397
  $$self.$$.on_destroy.push(() => $$unsubscribe_writable());
@@ -10197,6 +10399,7 @@ function instance58($$self, $$props, $$invalidate) {
10197
10399
  let { theme = "light" } = $$props;
10198
10400
  let { language = "en" } = $$props;
10199
10401
  let { containerRef = void 0 } = $$props;
10402
+ let { config = {} } = $$props;
10200
10403
  const AppsShowToolbar = ["DocsViewer", "Slide"];
10201
10404
  let container;
10202
10405
  let layout = "hidden";
@@ -10212,7 +10415,7 @@ function instance58($$self, $$props, $$invalidate) {
10212
10415
  function div0_binding($$value) {
10213
10416
  binding_callbacks[$$value ? "unshift" : "push"](() => {
10214
10417
  container = $$value;
10215
- $$invalidate(3, container);
10418
+ $$invalidate(4, container);
10216
10419
  });
10217
10420
  }
10218
10421
  $$self.$$set = ($$props2) => {
@@ -10223,36 +10426,38 @@ function instance58($$self, $$props, $$invalidate) {
10223
10426
  if ("language" in $$props2)
10224
10427
  $$invalidate(2, language = $$props2.language);
10225
10428
  if ("containerRef" in $$props2)
10226
- $$invalidate(8, containerRef = $$props2.containerRef);
10429
+ $$invalidate(9, containerRef = $$props2.containerRef);
10430
+ if ("config" in $$props2)
10431
+ $$invalidate(3, config = $$props2.config);
10227
10432
  };
10228
10433
  $$self.$$.update = () => {
10229
10434
  if ($$self.$$.dirty & 1) {
10230
10435
  $:
10231
- $$subscribe_writable($$invalidate(7, writable2 = app == null ? void 0 : app.writable));
10436
+ $$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
10232
10437
  }
10233
10438
  if ($$self.$$.dirty & 1) {
10234
10439
  $:
10235
- $$subscribe_boxState($$invalidate(6, boxState = app == null ? void 0 : app.boxState));
10440
+ $$subscribe_boxState($$invalidate(7, boxState = app == null ? void 0 : app.boxState));
10236
10441
  }
10237
10442
  if ($$self.$$.dirty & 1) {
10238
10443
  $:
10239
- $$subscribe_focusedApp($$invalidate(5, focusedApp = app == null ? void 0 : app.focusedApp));
10444
+ $$subscribe_focusedApp($$invalidate(6, focusedApp = app == null ? void 0 : app.focusedApp));
10240
10445
  }
10241
- if ($$self.$$.dirty & 3584) {
10446
+ if ($$self.$$.dirty & 7168) {
10242
10447
  $:
10243
10448
  if (!$writable) {
10244
- $$invalidate(4, layout = "hidden");
10449
+ $$invalidate(5, layout = "hidden");
10245
10450
  } else if ($boxState === "maximized") {
10246
10451
  if ($focusedApp && AppsShowToolbar.some((kind) => ($focusedApp || "").includes(kind))) {
10247
- $$invalidate(4, layout = "toolbar-only");
10452
+ $$invalidate(5, layout = "toolbar-only");
10248
10453
  } else {
10249
- $$invalidate(4, layout = "hidden");
10454
+ $$invalidate(5, layout = "hidden");
10250
10455
  }
10251
10456
  } else {
10252
- $$invalidate(4, layout = "visible");
10457
+ $$invalidate(5, layout = "visible");
10253
10458
  }
10254
10459
  }
10255
- if ($$self.$$.dirty & 9) {
10460
+ if ($$self.$$.dirty & 17) {
10256
10461
  $:
10257
10462
  try {
10258
10463
  if (app && container)
@@ -10273,6 +10478,7 @@ function instance58($$self, $$props, $$invalidate) {
10273
10478
  app,
10274
10479
  theme,
10275
10480
  language,
10481
+ config,
10276
10482
  container,
10277
10483
  layout,
10278
10484
  focusedApp,
@@ -10292,7 +10498,8 @@ var Fastboard = class extends SvelteComponent {
10292
10498
  app: 0,
10293
10499
  theme: 1,
10294
10500
  language: 2,
10295
- containerRef: 8
10501
+ containerRef: 9,
10502
+ config: 3
10296
10503
  });
10297
10504
  }
10298
10505
  };