@netless/fastboard-ui 0.3.15-canary.0 → 0.3.15

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
@@ -23,6 +23,13 @@ interface ToolbarConfig {
23
23
  placement?: "left" | "right";
24
24
  /** @default ["clicker", "selector", "pencil", "text", "shapes", "eraser", "clear"] */
25
25
  items?: ToolbarItem[];
26
+ /**
27
+ * Note: updating this option does not take effect when the element was mounted.
28
+ * Make sure to set this option in `UI.mount(div, { configs: { toolbar: { collapsed: true } } })`.
29
+ * @default false
30
+ */
31
+ collapsed?: boolean;
32
+ /** Control the last button which opens apps stock on toolbar. */
26
33
  apps?: {
27
34
  enable?: boolean;
28
35
  };
@@ -106,6 +113,10 @@ declare interface FastboardProps {
106
113
  app?: FastboardApp | null;
107
114
  theme?: Theme;
108
115
  language?: Language;
116
+ /**
117
+ * Note: updating this option does not take effect when the element was mounted.
118
+ * Make sure to set this option in `UI.mount(div, { containerRef })`.
119
+ */
109
120
  containerRef?: (container: HTMLDivElement | null) => void;
110
121
  config?: FastboardUIConfig;
111
122
  }
package/dist/index.js CHANGED
@@ -13351,7 +13351,7 @@ function instance68($$self, $$props, $$invalidate) {
13351
13351
  let { language = "en" } = $$props;
13352
13352
  let { config = {} } = $$props;
13353
13353
  const extra_height = (32 + 4 + 4) * 2;
13354
- let collapsed = false;
13354
+ let collapsed = config.collapsed;
13355
13355
  let container_height = writable(0);
13356
13356
  component_subscribe($$self, container_height, (value) => $$invalidate(15, $container_height = value));
13357
13357
  let scroll_height = writable(0);