@nativedesktop/react 0.4.44 → 0.4.45
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.
|
@@ -225,7 +225,7 @@ export interface DoubleClickParams {
|
|
|
225
225
|
testId?: string;
|
|
226
226
|
window?: number;
|
|
227
227
|
}
|
|
228
|
-
/** Actionability-checked right-click at the widget's center via real input synthesis; opens native context menus where the widget has one (dismiss with keys "escape").
|
|
228
|
+
/** Actionability-checked right-click at the widget's center via real input synthesis; opens native context menus where the widget has one (dismiss with keys "escape"). On GTK, which cannot synthesise input, it opens the node's own contextMenu at its centre and is otherwise unsupported (-32003). Target by exactly one of ref / testId. */
|
|
229
229
|
export interface RightClickParams {
|
|
230
230
|
ref?: number;
|
|
231
231
|
testId?: string;
|
|
@@ -291,7 +291,7 @@ export interface PaletteLayoutParams {
|
|
|
291
291
|
testId?: string;
|
|
292
292
|
window?: number;
|
|
293
293
|
}
|
|
294
|
-
/** Reads a menu owner's live native menu back, flattened in draw order, so a drive can assert what the user would actually see instead of what the React tree says. Targets a Menubar node (the installed app menu, including the platform's default menus on AppKit), a MenuButton/SplitButton, or a
|
|
294
|
+
/** Reads a menu owner's live native menu back, flattened in draw order, so a drive can assert what the user would actually see instead of what the React tree says. Targets a Menubar node (the installed app menu, including the platform's default menus on AppKit), a MenuButton/SplitButton, a TrayItem, or on GTK a node whose contextMenu is open; a Menu node answers -32602, since a <menu> only ever draws inside one of those owners. Target by exactly one of ref / testId. */
|
|
295
295
|
export interface MenuModelParams {
|
|
296
296
|
ref?: number;
|
|
297
297
|
testId?: string;
|
|
@@ -14,7 +14,7 @@ export type { DialogButton, ShowAlertOptions, AlertResult, OpenFileOptions as Wi
|
|
|
14
14
|
export { showToast, dismissToast, onToastButtonClicked, onToastDismissed } from "./toast.ts";
|
|
15
15
|
export type { ToastPriority, ShowToastOptions, ToastResult } from "./toast.ts";
|
|
16
16
|
export type { Instance } from "./host-config.ts";
|
|
17
|
-
export type { NdNodeRef, WidgetType, TableColumn, TableRow, TreeNode, SourceTreeAction, SourceTreeNode, CommandPaletteItem, ChartPoint, ChartSeries, CodeDiagnostic, } from "./generated/intrinsics.ts";
|
|
17
|
+
export type { NdNodeRef, WidgetType, TableColumn, TableRow, TreeNode, SourceTreeAction, SourceTreeNode, CommandPaletteItem, ChartPoint, ChartSeries, CodeDiagnostic, MenuEntry, } from "./generated/intrinsics.ts";
|
|
18
18
|
export { performRefresh, registerExports, fullReload } from "./hmr.ts";
|
|
19
19
|
export { useState, useEffect, useLayoutEffect, useMemo, useCallback, useRef, useContext, useReducer, useTransition, useDeferredValue, useSyncExternalStore, useId, use, startTransition, memo, forwardRef, createContext, Suspense, Fragment, Activity, } from "./dev-react.ts";
|
|
20
20
|
export { dialog, clipboard, notifications, recentDocuments, credentials, app, system, audio, webviewEngine } from "./system.ts";
|