@netless/fastboard 0.3.3 → 0.3.4-canary.0
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 +2 -2
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -6,12 +6,12 @@ export { GenericIcon, Language, Theme } from '@netless/fastboard-ui';
|
|
|
6
6
|
|
|
7
7
|
declare type MountProps = Omit<FastboardProps, "app">;
|
|
8
8
|
declare function mount(app: FastboardApp, div: HTMLDivElement, options?: MountProps): {
|
|
9
|
-
update(props?: MountProps
|
|
9
|
+
update(props?: MountProps): void;
|
|
10
10
|
destroy(): void;
|
|
11
11
|
};
|
|
12
12
|
declare type ReplayProps = Omit<ReplayFastboardProps, "player">;
|
|
13
13
|
declare function replay(player: FastboardPlayer, div: HTMLDivElement, options?: ReplayProps): {
|
|
14
|
-
update(props?: ReplayProps
|
|
14
|
+
update(props?: ReplayProps): void;
|
|
15
15
|
destroy(): void;
|
|
16
16
|
};
|
|
17
17
|
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type { FastboardApp, FastboardPlayer } from \"@netless/fastboard-core\";\nimport type {\n FastboardProps,\n GenericIcon,\n Language,\n ReplayFastboardProps,\n Theme,\n} from \"@netless/fastboard-ui\";\n\nimport { Fastboard, ReplayFastboard } from \"@netless/fastboard-ui\";\n\nimport \"./style.scss\";\n\nexport * from \"@netless/fastboard-core\";\nexport * from \"@netless/fastboard-ui\";\nexport type { Theme, Language, GenericIcon };\n\nexport type MountProps = Omit<FastboardProps, \"app\">;\n\nexport function mount(app: FastboardApp, div: HTMLDivElement, options?: MountProps) {\n const fastboard = new Fastboard({ target: div, props: { app, ...options } });\n\n return {\n update(props?: MountProps) {\n fastboard.$set(props);\n },\n destroy() {\n fastboard.$destroy();\n },\n };\n}\n\nexport type ReplayProps = Omit<ReplayFastboardProps, \"player\">;\n\nexport function replay(player: FastboardPlayer, div: HTMLDivElement, options?: ReplayProps) {\n const replayFastboard = new ReplayFastboard({ target: div, props: { player, ...options } });\n\n return {\n update(props?: ReplayProps) {\n replayFastboard.$set(props);\n },\n destroy() {\n replayFastboard.$destroy();\n },\n };\n}\n"]
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,0BAA2C;;;;;;;;;;;;;;;;;;;AAI3C,wBAAc,oCAbd;AAcA,wBAAc,kCAdd;AAmBO,eAAe,KAAmB,KAAqB,SAAsB;AAClF,QAAM,YAAY,IAAI,8BAAU,EAAE,QAAQ,KAAK,OAAO,iBAAE,OAAQ,SAAU,CAAC;AAE3E,SAAO;AAAA,IACL,OAAO,OAAoB;AACzB,gBAAU,KAAK,KAAK;AAAA,IACtB;AAAA,IACA,UAAU;AACR,gBAAU,SAAS;AAAA,IACrB;AAAA,EACF;AACF;AAIO,gBAAgB,QAAyB,KAAqB,SAAuB;AAC1F,QAAM,kBAAkB,IAAI,oCAAgB,EAAE,QAAQ,KAAK,OAAO,iBAAE,UAAW,SAAU,CAAC;AAE1F,SAAO;AAAA,IACL,OAAO,OAAqB;AAC1B,sBAAgB,KAAK,KAAK;AAAA,IAC5B;AAAA,IACA,UAAU;AACR,sBAAgB,SAAS;AAAA,IAC3B;AAAA,EACF;AACF","sourcesContent":["import type { FastboardApp, FastboardPlayer } from \"@netless/fastboard-core\";\nimport type {\n FastboardProps,\n GenericIcon,\n Language,\n ReplayFastboardProps,\n Theme,\n} from \"@netless/fastboard-ui\";\n\nimport { Fastboard, ReplayFastboard } from \"@netless/fastboard-ui\";\n\nimport \"./style.scss\";\n\nexport * from \"@netless/fastboard-core\";\nexport * from \"@netless/fastboard-ui\";\nexport type { Theme, Language, GenericIcon };\n\nexport type MountProps = Omit<FastboardProps, \"app\">;\n\nexport function mount(app: FastboardApp, div: HTMLDivElement, options?: MountProps) {\n const fastboard = new Fastboard({ target: div, props: { app, ...options } });\n\n return {\n update(props?: MountProps) {\n fastboard.$set(props);\n },\n destroy() {\n fastboard.$destroy();\n },\n };\n}\n\nexport type ReplayProps = Omit<ReplayFastboardProps, \"player\">;\n\nexport function replay(player: FastboardPlayer, div: HTMLDivElement, options?: ReplayProps) {\n const replayFastboard = new ReplayFastboard({ target: div, props: { player, ...options } });\n\n return {\n update(props?: ReplayProps) {\n replayFastboard.$set(props);\n },\n destroy() {\n replayFastboard.$destroy();\n },\n };\n}\n"]}
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { Fastboard, ReplayFastboard } from '@netless/fastboard-ui';
|
|
2
|
+
export * from '@netless/fastboard-ui';
|
|
3
|
+
export * from '@netless/fastboard-core';
|
|
4
|
+
|
|
1
5
|
var __defProp = Object.defineProperty;
|
|
2
6
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -15,9 +19,6 @@ var __spreadValues = (a, b) => {
|
|
|
15
19
|
return a;
|
|
16
20
|
};
|
|
17
21
|
|
|
18
|
-
// src/index.ts
|
|
19
|
-
import { Fastboard, ReplayFastboard } from "@netless/fastboard-ui";
|
|
20
|
-
|
|
21
22
|
// inline-sass-helper:inline-sass-style-helper.js
|
|
22
23
|
function injectStyle(text) {
|
|
23
24
|
if (typeof document !== "undefined") {
|
|
@@ -33,10 +34,6 @@ var style_default = '@charset "UTF-8";.vjs-modal-dialog .vjs-modal-dialog-conten
|
|
|
33
34
|
|
|
34
35
|
// inline-sass-stub:./src/style.scss
|
|
35
36
|
injectStyle(style_default);
|
|
36
|
-
|
|
37
|
-
// src/index.ts
|
|
38
|
-
export * from "@netless/fastboard-core";
|
|
39
|
-
export * from "@netless/fastboard-ui";
|
|
40
37
|
function mount(app, div, options) {
|
|
41
38
|
const fastboard = new Fastboard({ target: div, props: __spreadValues({ app }, options) });
|
|
42
39
|
return {
|
|
@@ -59,8 +56,6 @@ function replay(player, div, options) {
|
|
|
59
56
|
}
|
|
60
57
|
};
|
|
61
58
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
replay
|
|
65
|
-
};
|
|
59
|
+
|
|
60
|
+
export { mount, replay };
|
|
66
61
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type { FastboardApp, FastboardPlayer } from \"@netless/fastboard-core\";\nimport type {\n FastboardProps,\n GenericIcon,\n Language,\n ReplayFastboardProps,\n Theme,\n} from \"@netless/fastboard-ui\";\n\nimport { Fastboard, ReplayFastboard } from \"@netless/fastboard-ui\";\n\nimport \"./style.scss\";\n\nexport * from \"@netless/fastboard-core\";\nexport * from \"@netless/fastboard-ui\";\nexport type { Theme, Language, GenericIcon };\n\nexport type MountProps = Omit<FastboardProps, \"app\">;\n\nexport function mount(app: FastboardApp, div: HTMLDivElement, options?: MountProps) {\n const fastboard = new Fastboard({ target: div, props: { app, ...options } });\n\n return {\n update(props?: MountProps) {\n fastboard.$set(props);\n },\n destroy() {\n fastboard.$destroy();\n },\n };\n}\n\nexport type ReplayProps = Omit<ReplayFastboardProps, \"player\">;\n\nexport function replay(player: FastboardPlayer, div: HTMLDivElement, options?: ReplayProps) {\n const replayFastboard = new ReplayFastboard({ target: div, props: { player, ...options } });\n\n return {\n update(props?: ReplayProps) {\n replayFastboard.$set(props);\n },\n destroy() {\n replayFastboard.$destroy();\n },\n };\n}\n"]
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AASA;;;;;;;;;;;;;;;;;;;AAIA;AACA;AAKO,eAAe,KAAmB,KAAqB,SAAsB;AAClF,QAAM,YAAY,IAAI,UAAU,EAAE,QAAQ,KAAK,OAAO,iBAAE,OAAQ,SAAU,CAAC;AAE3E,SAAO;AAAA,IACL,OAAO,OAAoB;AACzB,gBAAU,KAAK,KAAK;AAAA,IACtB;AAAA,IACA,UAAU;AACR,gBAAU,SAAS;AAAA,IACrB;AAAA,EACF;AACF;AAIO,gBAAgB,QAAyB,KAAqB,SAAuB;AAC1F,QAAM,kBAAkB,IAAI,gBAAgB,EAAE,QAAQ,KAAK,OAAO,iBAAE,UAAW,SAAU,CAAC;AAE1F,SAAO;AAAA,IACL,OAAO,OAAqB;AAC1B,sBAAgB,KAAK,KAAK;AAAA,IAC5B;AAAA,IACA,UAAU;AACR,sBAAgB,SAAS;AAAA,IAC3B;AAAA,EACF;AACF","sourcesContent":["import type { FastboardApp, FastboardPlayer } from \"@netless/fastboard-core\";\nimport type {\n FastboardProps,\n GenericIcon,\n Language,\n ReplayFastboardProps,\n Theme,\n} from \"@netless/fastboard-ui\";\n\nimport { Fastboard, ReplayFastboard } from \"@netless/fastboard-ui\";\n\nimport \"./style.scss\";\n\nexport * from \"@netless/fastboard-core\";\nexport * from \"@netless/fastboard-ui\";\nexport type { Theme, Language, GenericIcon };\n\nexport type MountProps = Omit<FastboardProps, \"app\">;\n\nexport function mount(app: FastboardApp, div: HTMLDivElement, options?: MountProps) {\n const fastboard = new Fastboard({ target: div, props: { app, ...options } });\n\n return {\n update(props?: MountProps) {\n fastboard.$set(props);\n },\n destroy() {\n fastboard.$destroy();\n },\n };\n}\n\nexport type ReplayProps = Omit<ReplayFastboardProps, \"player\">;\n\nexport function replay(player: FastboardPlayer, div: HTMLDivElement, options?: ReplayProps) {\n const replayFastboard = new ReplayFastboard({ target: div, props: { player, ...options } });\n\n return {\n update(props?: ReplayProps) {\n replayFastboard.$set(props);\n },\n destroy() {\n replayFastboard.$destroy();\n },\n };\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netless/fastboard",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4-canary.0",
|
|
4
4
|
"description": "A tiny wrapper of white-web-sdk and @netless/window-manager.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
],
|
|
10
10
|
"repository": "netless-io/fastboard",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@netless/fastboard-core": "0.3.
|
|
13
|
-
"@netless/fastboard-ui": "0.3.
|
|
12
|
+
"@netless/fastboard-core": "0.3.4-canary.0",
|
|
13
|
+
"@netless/fastboard-ui": "0.3.4-canary.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@netless/esbuild-plugin-inline-sass": "0.1.0"
|