From cf5864266e2e0fe465af5f01d36214b7de66b528 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sat, 27 May 2023 05:20:09 -0700 Subject: [PATCH] chore(window): fix package name on documentation (#408) --- plugins/window/guest-js/index.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/window/guest-js/index.ts b/plugins/window/guest-js/index.ts index 4b88f194..f1ae5e0d 100644 --- a/plugins/window/guest-js/index.ts +++ b/plugins/window/guest-js/index.ts @@ -9,7 +9,7 @@ * * Events can be listened to using `appWindow.listen`: * ```typescript - * import { appWindow } from "@tauri-apps/window"; + * import { appWindow } from "@tauri-apps/plugin-window"; * appWindow.listen("my-window-event", ({ event, payload }) => { }); * ``` * @@ -1378,7 +1378,7 @@ class WindowManager extends WebviewWindowHandle { * * @example * ```typescript - * import { appWindow } from "@tauri-apps/window"; + * import { appWindow } from "@tauri-apps/plugin-window"; * const unlisten = await appWindow.onResized(({ payload: size }) => { * console.log('Window resized', size); * }); @@ -1404,7 +1404,7 @@ class WindowManager extends WebviewWindowHandle { * * @example * ```typescript - * import { appWindow } from "@tauri-apps/window"; + * import { appWindow } from "@tauri-apps/plugin-window"; * const unlisten = await appWindow.onMoved(({ payload: position }) => { * console.log('Window moved', position); * }); @@ -1430,7 +1430,7 @@ class WindowManager extends WebviewWindowHandle { * * @example * ```typescript - * import { appWindow } from "@tauri-apps/window"; + * import { appWindow } from "@tauri-apps/plugin-window"; * import { confirm } from '@tauri-apps/api/dialog'; * const unlisten = await appWindow.onCloseRequested(async (event) => { * const confirmed = await confirm('Are you sure?'); @@ -1469,7 +1469,7 @@ class WindowManager extends WebviewWindowHandle { * * @example * ```typescript - * import { appWindow } from "@tauri-apps/window"; + * import { appWindow } from "@tauri-apps/plugin-window"; * const unlisten = await appWindow.onFocusChanged(({ payload: focused }) => { * console.log('Focus changed, window is focused? ' + focused); * }); @@ -1511,7 +1511,7 @@ class WindowManager extends WebviewWindowHandle { * * @example * ```typescript - * import { appWindow } from "@tauri-apps/window"; + * import { appWindow } from "@tauri-apps/plugin-window"; * const unlisten = await appWindow.onScaleChanged(({ payload }) => { * console.log('Scale changed', payload.scaleFactor, payload.size); * }); @@ -1539,7 +1539,7 @@ class WindowManager extends WebviewWindowHandle { * * @example * ```typescript - * import { appWindow } from "@tauri-apps/window"; + * import { appWindow } from "@tauri-apps/plugin-window"; * const unlisten = await appWindow.onMenuClicked(({ payload: menuId }) => { * console.log('Menu clicked: ' + menuId); * }); @@ -1564,7 +1564,7 @@ class WindowManager extends WebviewWindowHandle { * * @example * ```typescript - * import { appWindow } from "@tauri-apps/window"; + * import { appWindow } from "@tauri-apps/plugin-window"; * const unlisten = await appWindow.onFileDropEvent((event) => { * if (event.payload.type === 'hover') { * console.log('User hovering', event.payload.paths); @@ -1620,7 +1620,7 @@ class WindowManager extends WebviewWindowHandle { * * @example * ```typescript - * import { appWindow } from "@tauri-apps/window"; + * import { appWindow } from "@tauri-apps/plugin-window"; * const unlisten = await appWindow.onThemeChanged(({ payload: theme }) => { * console.log('New theme: ' + theme); * });