@netless/fastboard-ui 0.3.14 → 0.3.15-canary.1

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/lite.d.ts CHANGED
@@ -23,6 +23,9 @@ interface ToolbarConfig {
23
23
  placement?: "left" | "right";
24
24
  /** @default ["clicker", "selector", "pencil", "text", "shapes", "eraser", "clear"] */
25
25
  items?: ToolbarItem[];
26
+ /** @default false */
27
+ collapsed?: boolean;
28
+ /** Control the last button which opens apps stock on toolbar. */
26
29
  apps?: {
27
30
  enable?: boolean;
28
31
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/fastboard-ui",
3
- "version": "0.3.14",
3
+ "version": "0.3.15-canary.1",
4
4
  "description": "The front-end of @netless/fastboard-core.",
5
5
  "main": "dist/index.js",
6
6
  "svelte": "dist/index.svelte.mjs",
@@ -11,15 +11,15 @@
11
11
  ],
12
12
  "repository": "netless-io/fastboard",
13
13
  "peerDependencies": {
14
- "@netless/fastboard-core": "0.3.14"
14
+ "@netless/fastboard-core": "0.3.15-canary.1"
15
15
  },
16
16
  "dependencies": {
17
17
  "tippy.js": "^6.3.7"
18
18
  },
19
19
  "devDependencies": {
20
- "@netless/fastboard-core": "0.3.14",
21
- "@netless/esbuild-plugin-inline-sass": "0.1.0",
22
- "@netless/buildtool": "0.1.0"
20
+ "@netless/buildtool": "0.1.0",
21
+ "@netless/fastboard-core": "0.3.15-canary.1",
22
+ "@netless/esbuild-plugin-inline-sass": "0.1.0"
23
23
  },
24
24
  "scripts": {
25
25
  "cleanup": "rimraf dist",
@@ -19,7 +19,7 @@
19
19
  $: phase = app?.phase;
20
20
  $: disabled = !($writable && $phase === "connected");
21
21
 
22
- let collapsed = false;
22
+ let collapsed = config.collapsed;
23
23
  let container_height = svelte_writable(0);
24
24
  let scroll_height = svelte_writable(0);
25
25
 
package/src/typings.ts CHANGED
@@ -39,6 +39,9 @@ export interface ToolbarConfig {
39
39
  placement?: "left" | "right";
40
40
  /** @default ["clicker", "selector", "pencil", "text", "shapes", "eraser", "clear"] */
41
41
  items?: ToolbarItem[];
42
+ /** @default false */
43
+ collapsed?: boolean;
44
+ /** Control the last button which opens apps stock on toolbar. */
42
45
  apps?: { enable?: boolean };
43
46
  }
44
47