@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.
- package/dist/{src/App → App}/Storage/StorageEvent.d.ts +0 -0
- package/dist/{src/App → App}/Storage/index.d.ts +0 -0
- package/dist/{src/App → App}/Storage/typings.d.ts +0 -0
- package/dist/{src/App → App}/Storage/utils.d.ts +0 -0
- package/dist/{src/AppContext.d.ts → AppContext.d.ts} +0 -0
- package/dist/{src/AppListener.d.ts → AppListener.d.ts} +0 -0
- package/dist/{src/AppManager.d.ts → AppManager.d.ts} +0 -0
- package/dist/{src/AppProxy.d.ts → AppProxy.d.ts} +0 -0
- package/dist/{src/AttributesDelegate.d.ts → AttributesDelegate.d.ts} +0 -0
- package/dist/{src/Base → Base}/Context.d.ts +0 -0
- package/dist/{src/Base → Base}/index.d.ts +0 -0
- package/dist/{src/BoxManager.d.ts → BoxManager.d.ts} +0 -0
- package/dist/{src/BuiltinApps.d.ts → BuiltinApps.d.ts} +0 -0
- package/dist/{src/ContainerResizeObserver.d.ts → ContainerResizeObserver.d.ts} +0 -0
- package/dist/{src/Cursor → Cursor}/Cursor.d.ts +0 -0
- package/dist/{src/Cursor → Cursor}/icons.d.ts +0 -0
- package/dist/{src/Cursor → Cursor}/index.d.ts +0 -0
- package/dist/{src/Helper.d.ts → Helper.d.ts} +0 -0
- package/dist/{src/ReconnectRefresher.d.ts → ReconnectRefresher.d.ts} +0 -0
- package/dist/{src/Register → Register}/index.d.ts +0 -0
- package/dist/{src/Register → Register}/loader.d.ts +0 -0
- package/dist/{src/Register → Register}/storage.d.ts +0 -0
- package/dist/{src/Utils → Utils}/Common.d.ts +0 -0
- package/dist/{src/Utils → Utils}/Reactive.d.ts +0 -0
- package/dist/{src/Utils → Utils}/RoomHacker.d.ts +0 -0
- package/dist/{src/Utils → Utils}/error.d.ts +0 -0
- package/dist/{src/Utils → Utils}/log.d.ts +0 -0
- package/dist/{src/View → View}/MainView.d.ts +0 -0
- package/dist/{src/View → View}/ViewManager.d.ts +0 -0
- package/dist/{src/constants.d.ts → constants.d.ts} +0 -0
- package/dist/{src/index.d.ts → index.d.ts} +0 -0
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/{src/typings.d.ts → typings.d.ts} +0 -0
- package/package.json +1 -1
- package/src/index.ts +1 -2
- package/src/shim.d.ts +4 -0
- package/vite.config.js +4 -1
File without changes
|
package/package.json
CHANGED
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 =
|
185
|
+
public version = __APP_VERSION__;
|
187
186
|
|
188
187
|
public appListeners?: AppListeners;
|
189
188
|
|
package/src/shim.d.ts
CHANGED
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,
|