@netless/fastboard-ui 0.3.2-canary.0 → 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 +23 -1
- package/dist/index.js +306 -99
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +306 -99
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +308 -99
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +4 -4
- package/src/components/Fastboard/Fastboard.svelte +14 -5
- package/src/components/Fastboard/Fastboard.svelte.ts +2 -1
- package/src/components/Toolbar/Toolbar.scss +7 -0
- package/src/index.ts +1 -1
- package/src/typings.ts +15 -0
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 };
|