@netless/fastboard 0.3.2 → 0.3.4-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/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 | undefined): void;
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 | undefined): void;
14
+ update(props?: ReplayProps): void;
15
15
  destroy(): void;
16
16
  };
17
17
 
package/dist/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ 'use strict';
2
+
1
3
  var __defProp = Object.defineProperty;
2
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
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"],"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;","names":[]}
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
- export {
63
- mount,
64
- replay
65
- };
59
+
60
+ export { mount, replay };
66
61
  //# sourceMappingURL=index.mjs.map
@@ -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"],"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;","names":[]}
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.2",
3
+ "version": "0.3.4-canary.1",
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.2",
13
- "@netless/fastboard-ui": "0.3.2"
12
+ "@netless/fastboard-core": "0.3.4-canary.1",
13
+ "@netless/fastboard-ui": "0.3.4-canary.1"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@netless/esbuild-plugin-inline-sass": "0.1.0"
@@ -22,6 +22,5 @@
22
22
  "dev": "vite"
23
23
  },
24
24
  "module": "dist/index.mjs",
25
- "types": "dist/index.d.ts",
26
- "readme": "## @netless/fastboard\n\nA tiny wrapper of white-web-sdk and @netless/window-manager.\n\n## Usage\n\n```js\nimport { createFastboard, mount } from \"@netless/fastboard\";\n\ncreateFastboard({\n sdkConfig: {\n appIdentifier: \"whiteboard_app_id\",\n },\n joinRoom: {\n uid: \"unique_user_id\",\n uuid: \"room-uuid\",\n roomToken: \"NETLESSROOM_...\",\n },\n managerConfig: {\n cursor: true,\n },\n}).then(app => {\n mount(app, document.getElementById(\"app\"));\n});\n```\n\n### License\n\nMIT @ [netless](https://github.com/netless-io)\n"
25
+ "types": "dist/index.d.ts"
27
26
  }