@netless/window-manager 0.4.0-canary.7 → 0.4.0-canary.8

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.
Files changed (40) hide show
  1. package/dist/{src/App → App}/Storage/StorageEvent.d.ts +0 -0
  2. package/dist/{src/App → App}/Storage/index.d.ts +0 -0
  3. package/dist/{src/App → App}/Storage/typings.d.ts +0 -0
  4. package/dist/{src/App → App}/Storage/utils.d.ts +0 -0
  5. package/dist/{src/AppContext.d.ts → AppContext.d.ts} +0 -0
  6. package/dist/{src/AppListener.d.ts → AppListener.d.ts} +0 -0
  7. package/dist/{src/AppManager.d.ts → AppManager.d.ts} +0 -0
  8. package/dist/{src/AppProxy.d.ts → AppProxy.d.ts} +0 -0
  9. package/dist/{src/AttributesDelegate.d.ts → AttributesDelegate.d.ts} +0 -0
  10. package/dist/{src/Base → Base}/Context.d.ts +0 -0
  11. package/dist/{src/Base → Base}/index.d.ts +0 -0
  12. package/dist/{src/BoxManager.d.ts → BoxManager.d.ts} +0 -0
  13. package/dist/{src/BuiltinApps.d.ts → BuiltinApps.d.ts} +0 -0
  14. package/dist/{src/ContainerResizeObserver.d.ts → ContainerResizeObserver.d.ts} +0 -0
  15. package/dist/{src/Cursor → Cursor}/Cursor.d.ts +0 -0
  16. package/dist/{src/Cursor → Cursor}/icons.d.ts +0 -0
  17. package/dist/{src/Cursor → Cursor}/index.d.ts +0 -0
  18. package/dist/{src/Helper.d.ts → Helper.d.ts} +0 -0
  19. package/dist/{src/ReconnectRefresher.d.ts → ReconnectRefresher.d.ts} +0 -0
  20. package/dist/{src/Register → Register}/index.d.ts +0 -0
  21. package/dist/{src/Register → Register}/loader.d.ts +0 -0
  22. package/dist/{src/Register → Register}/storage.d.ts +0 -0
  23. package/dist/{src/Utils → Utils}/Common.d.ts +0 -0
  24. package/dist/{src/Utils → Utils}/Reactive.d.ts +0 -0
  25. package/dist/{src/Utils → Utils}/RoomHacker.d.ts +0 -0
  26. package/dist/{src/Utils → Utils}/error.d.ts +0 -0
  27. package/dist/{src/Utils → Utils}/log.d.ts +0 -0
  28. package/dist/{src/View → View}/MainView.d.ts +0 -0
  29. package/dist/{src/View → View}/ViewManager.d.ts +0 -0
  30. package/dist/{src/constants.d.ts → constants.d.ts} +0 -0
  31. package/dist/{src/index.d.ts → index.d.ts} +0 -0
  32. package/dist/index.es.js +1 -1
  33. package/dist/index.es.js.map +1 -1
  34. package/dist/index.umd.js +1 -1
  35. package/dist/index.umd.js.map +1 -1
  36. package/dist/{src/typings.d.ts → typings.d.ts} +0 -0
  37. package/package.json +1 -1
  38. package/src/index.ts +1 -2
  39. package/src/shim.d.ts +4 -0
  40. package/vite.config.js +4 -1
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/window-manager",
3
- "version": "0.4.0-canary.7",
3
+ "version": "0.4.0-canary.8",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "module": "dist/index.es.js",
package/src/index.ts CHANGED
@@ -14,7 +14,6 @@ import { ReconnectRefresher } from "./ReconnectRefresher";
14
14
  import { replaceRoomFunction } from "./Utils/RoomHacker";
15
15
  import { setupBuiltin } from "./BuiltinApps";
16
16
  import { setupWrapper } from "./Helper";
17
- import { version } from "../package.json";
18
17
  import "./style.css";
19
18
  import "@netless/telebox-insider/dist/style.css";
20
19
  import {
@@ -183,7 +182,7 @@ export class WindowManager extends InvisiblePlugin<WindowMangerAttributes> {
183
182
  public static containerSizeRatio = DEFAULT_CONTAINER_RATIO;
184
183
  private static isCreated = false;
185
184
 
186
- public version = version;
185
+ public version = __APP_VERSION__;
187
186
 
188
187
  public appListeners?: AppListeners;
189
188
 
package/src/shim.d.ts CHANGED
@@ -4,3 +4,7 @@ declare module "*.svelte" {
4
4
  const app: SvelteComponent;
5
5
  export default app;
6
6
  }
7
+
8
+ declare global {
9
+ const __APP_VERSION__: string;
10
+ }
package/vite.config.js CHANGED
@@ -1,13 +1,16 @@
1
1
  import path from "path";
2
2
  import { defineConfig } from "vite";
3
3
  import { svelte } from "@sveltejs/vite-plugin-svelte";
4
- import { dependencies ,peerDependencies } from "./package.json"
4
+ import { dependencies ,peerDependencies, version } from "./package.json"
5
5
 
6
6
 
7
7
  export default defineConfig(({ mode }) => {
8
8
  const isProd = mode === "production";
9
9
 
10
10
  return {
11
+ define: {
12
+ __APP_VERSION__: JSON.stringify(version),
13
+ },
11
14
  plugins: [
12
15
  svelte({
13
16
  emitCss: false,