Socket
Socket
Sign inDemoInstall

@tauri-apps/api

Package Overview
Dependencies
Maintainers
5
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tauri-apps/api - npm Package Compare versions

Comparing version 2.0.0-beta.11 to 2.0.0-beta.12

2

event.d.ts

@@ -134,3 +134,3 @@ type EventTarget = {

*
* @since 1.0.0
* @since 2.0.0
*/

@@ -137,0 +137,0 @@ declare function emitTo(target: EventTarget | string, event: string, payload?: unknown): Promise<void>;

@@ -146,3 +146,3 @@ import { invoke, transformCallback } from './core.js';

*
* @since 1.0.0
* @since 2.0.0
*/

@@ -149,0 +149,0 @@ async function emitTo(target, event, payload) {

@@ -100,9 +100,9 @@ import { MenuItemBase } from './base';

SmartBadge = "SmartBadge",
/** Small green indicator, similar to iChat’s available image. */
/** Small green indicator, similar to iChat's available image. */
StatusAvailable = "StatusAvailable",
/** Small clear indicator. */
StatusNone = "StatusNone",
/** Small yellow indicator, similar to iChat’s idle image. */
/** Small yellow indicator, similar to iChat's idle image. */
StatusPartiallyAvailable = "StatusPartiallyAvailable",
/** Small red indicator, similar to iChat’s unavailable image. */
/** Small red indicator, similar to iChat's unavailable image. */
StatusUnavailable = "StatusUnavailable",

@@ -109,0 +109,0 @@ /** A stop progress template image. */

@@ -105,9 +105,9 @@ import { MenuItemBase, newMenu } from './base.js';

NativeIcon["SmartBadge"] = "SmartBadge";
/** Small green indicator, similar to iChat’s available image. */
/** Small green indicator, similar to iChat's available image. */
NativeIcon["StatusAvailable"] = "StatusAvailable";
/** Small clear indicator. */
NativeIcon["StatusNone"] = "StatusNone";
/** Small yellow indicator, similar to iChat’s idle image. */
/** Small yellow indicator, similar to iChat's idle image. */
NativeIcon["StatusPartiallyAvailable"] = "StatusPartiallyAvailable";
/** Small red indicator, similar to iChat’s unavailable image. */
/** Small red indicator, similar to iChat's unavailable image. */
NativeIcon["StatusUnavailable"] = "StatusUnavailable";

@@ -114,0 +114,0 @@ /** A stop progress template image. */

@@ -30,3 +30,3 @@ import { MenuItemOptions, SubmenuOptions, IconMenuItemOptions, PredefinedMenuItemOptions, CheckMenuItemOptions } from '../menu';

*
* ## Platform-spcific:
* ## Platform-specific:
*

@@ -39,3 +39,3 @@ * - **macOS:** Only {@linkcode Submenu}s can be added to a {@linkcode Menu}.

*
* ## Platform-spcific:
* ## Platform-specific:
*

@@ -48,3 +48,3 @@ * - **macOS:** Only {@linkcode Submenu}s can be added to a {@linkcode Menu}.

*
* ## Platform-spcific:
* ## Platform-specific:
*

@@ -51,0 +51,0 @@ * - **macOS:** Only {@linkcode Submenu}s can be added to a {@linkcode Menu}.

@@ -54,3 +54,3 @@ import { MenuItem } from './menuItem.js';

*
* ## Platform-spcific:
* ## Platform-specific:
*

@@ -69,3 +69,3 @@ * - **macOS:** Only {@linkcode Submenu}s can be added to a {@linkcode Menu}.

*
* ## Platform-spcific:
* ## Platform-specific:
*

@@ -84,3 +84,3 @@ * - **macOS:** Only {@linkcode Submenu}s can be added to a {@linkcode Menu}.

*
* ## Platform-spcific:
* ## Platform-specific:
*

@@ -87,0 +87,0 @@ * - **macOS:** Only {@linkcode Submenu}s can be added to a {@linkcode Menu}.

@@ -27,3 +27,3 @@ import { IconMenuItemOptions, PredefinedMenuItemOptions, CheckMenuItemOptions } from '../menu';

*
* ## Platform-spcific:
* ## Platform-specific:
*

@@ -36,3 +36,3 @@ * - **macOS:** Only {@linkcode Submenu}s can be added to a {@linkcode Menu}.

*
* ## Platform-spcific:
* ## Platform-specific:
*

@@ -45,3 +45,3 @@ * - **macOS:** Only {@linkcode Submenu}s can be added to a {@linkcode Menu}.

*
* ## Platform-spcific:
* ## Platform-specific:
*

@@ -48,0 +48,0 @@ * - **macOS:** Only {@linkcode Submenu}s can be added to a {@linkcode Menu}.

@@ -72,3 +72,3 @@ import { MenuItem } from './menuItem.js';

*
* ## Platform-spcific:
* ## Platform-specific:
*

@@ -87,3 +87,3 @@ * - **macOS:** Only {@linkcode Submenu}s can be added to a {@linkcode Menu}.

*
* ## Platform-spcific:
* ## Platform-specific:
*

@@ -102,3 +102,3 @@ * - **macOS:** Only {@linkcode Submenu}s can be added to a {@linkcode Menu}.

*
* ## Platform-spcific:
* ## Platform-specific:
*

@@ -105,0 +105,0 @@ * - **macOS:** Only {@linkcode Submenu}s can be added to a {@linkcode Menu}.

{
"name": "@tauri-apps/api",
"version": "2.0.0-beta.11",
"version": "2.0.0-beta.12",
"description": "Tauri API definitions",

@@ -5,0 +5,0 @@ "funding": {

@@ -396,3 +396,3 @@ /**

/**
* Gets the window’s native maximize button state.
* Gets the window's native maximize button state.
*

@@ -413,3 +413,3 @@ * #### Platform-specific

/**
* Gets the window’s native minimize button state.
* Gets the window's native minimize button state.
*

@@ -430,3 +430,3 @@ * #### Platform-specific

/**
* Gets the window’s native close button state.
* Gets the window's native close button state.
*

@@ -1465,2 +1465,13 @@ * #### Platform-specific

/**
* Returns the monitor that contains the given point. Returns `null` if can't find any.
* @example
* ```typescript
* import { monitorFromPoint } from '@tauri-apps/api/window';
* const monitor = monitorFromPoint();
* ```
*
* @since 1.0.0
*/
declare function monitorFromPoint(x: number, y: number): Promise<Monitor | null>;
/**
* Returns the list of all the monitors available on the system.

@@ -1487,3 +1498,3 @@ * @example

declare function cursorPosition(): Promise<PhysicalPosition>;
export { Window, CloseRequestedEvent, getCurrent, getAll, LogicalSize, PhysicalSize, LogicalPosition, PhysicalPosition, UserAttentionType, Effect, EffectState, currentMonitor, primaryMonitor, availableMonitors, cursorPosition };
export { Window, CloseRequestedEvent, getCurrent, getAll, LogicalSize, PhysicalSize, LogicalPosition, PhysicalPosition, UserAttentionType, Effect, EffectState, currentMonitor, monitorFromPoint, primaryMonitor, availableMonitors, cursorPosition };
export type { Effects, Theme, TitleBarStyle, ScaleFactorChanged, WindowOptions, Color, DragDropEvent, DragDropPayload };

@@ -510,3 +510,3 @@ import { PhysicalPosition, PhysicalSize } from './dpi.js';

/**
* Gets the window’s native maximize button state.
* Gets the window's native maximize button state.
*

@@ -531,3 +531,3 @@ * #### Platform-specific

/**
* Gets the window’s native minimize button state.
* Gets the window's native minimize button state.
*

@@ -552,3 +552,3 @@ * #### Platform-specific

/**
* Gets the window’s native close button state.
* Gets the window's native close button state.
*

@@ -1794,2 +1794,18 @@ * #### Platform-specific

/**
* Returns the monitor that contains the given point. Returns `null` if can't find any.
* @example
* ```typescript
* import { monitorFromPoint } from '@tauri-apps/api/window';
* const monitor = monitorFromPoint();
* ```
*
* @since 1.0.0
*/
async function monitorFromPoint(x, y) {
return invoke('plugin:window|monitor_from_point', {
x,
y
}).then(mapMonitor);
}
/**
* Returns the list of all the monitors available on the system.

@@ -1821,2 +1837,2 @@ * @example

export { CloseRequestedEvent, Effect, EffectState, PhysicalPosition, PhysicalSize, ProgressBarStatus, UserAttentionType, Window, availableMonitors, currentMonitor, cursorPosition, getAll, getCurrent, primaryMonitor };
export { CloseRequestedEvent, Effect, EffectState, PhysicalPosition, PhysicalSize, ProgressBarStatus, UserAttentionType, Window, availableMonitors, currentMonitor, cursorPosition, getAll, getCurrent, monitorFromPoint, primaryMonitor };

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc