custom-electron-titlebar 4.2.8 → 4.4.1
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/README.md +32 -12
- package/index.d.mts +684 -0
- package/index.d.ts +684 -3
- package/index.js +5207 -175
- package/index.js.map +1 -0
- package/index.mjs +5219 -0
- package/index.mjs.map +1 -0
- package/main/index.d.mts +21 -0
- package/main/index.d.ts +21 -3
- package/main/index.js +793 -175
- package/main/index.js.map +1 -0
- package/main/index.mjs +785 -0
- package/main/index.mjs.map +1 -0
- package/package.json +40 -32
- package/base/browser/browser.d.ts +0 -26
- package/base/browser/browser.js +0 -317
- package/base/browser/event.d.ts +0 -12
- package/base/browser/event.js +0 -215
- package/base/browser/keyboardEvent.d.ts +0 -38
- package/base/browser/keyboardEvent.js +0 -462
- package/base/browser/mouseEvent.d.ts +0 -61
- package/base/browser/mouseEvent.js +0 -327
- package/base/browser/touch.d.ts +0 -39
- package/base/browser/touch.js +0 -454
- package/base/common/arrays.d.ts +0 -10
- package/base/common/arrays.js +0 -210
- package/base/common/async.d.ts +0 -35
- package/base/common/async.js +0 -280
- package/base/common/charCode.d.ts +0 -405
- package/base/common/charCode.js +0 -9
- package/base/common/color.d.ts +0 -159
- package/base/common/color.js +0 -708
- package/base/common/decorators.d.ts +0 -6
- package/base/common/decorators.js +0 -300
- package/base/common/dom.d.ts +0 -221
- package/base/common/dom.js +0 -1476
- package/base/common/event.d.ts +0 -213
- package/base/common/event.js +0 -804
- package/base/common/iterator.d.ts +0 -69
- package/base/common/iterator.js +0 -380
- package/base/common/keyCodes.d.ts +0 -478
- package/base/common/keyCodes.js +0 -477
- package/base/common/lifecycle.d.ts +0 -17
- package/base/common/lifecycle.js +0 -258
- package/base/common/linkedList.d.ts +0 -17
- package/base/common/linkedList.js +0 -319
- package/base/common/platform.d.ts +0 -36
- package/base/common/platform.js +0 -314
- package/base/common/strings.d.ts +0 -23
- package/base/common/strings.js +0 -273
- package/consts.d.ts +0 -58
- package/consts.js +0 -317
- package/main/attach-titlebar-to-window.d.ts +0 -3
- package/main/attach-titlebar-to-window.js +0 -210
- package/main/setup-titlebar.d.ts +0 -2
- package/main/setup-titlebar.js +0 -255
- package/menubar/index.d.ts +0 -86
- package/menubar/index.js +0 -1119
- package/menubar/menu/index.d.ts +0 -46
- package/menubar/menu/index.js +0 -565
- package/menubar/menu/item.d.ts +0 -67
- package/menubar/menu/item.js +0 -575
- package/menubar/menu/separator.d.ts +0 -11
- package/menubar/menu/separator.js +0 -213
- package/menubar/menu/submenu.d.ts +0 -32
- package/menubar/menu/submenu.js +0 -372
- package/menubar/menubar-options.d.ts +0 -47
- package/menubar/menubar-options.js +0 -9
- package/titlebar/index.d.ts +0 -105
- package/titlebar/index.js +0 -703
- package/titlebar/options.d.ts +0 -89
- package/titlebar/options.js +0 -9
- package/titlebar/themebar.d.ts +0 -20
- package/titlebar/themebar.js +0 -267
package/main/index.d.mts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BrowserWindow } from 'electron';
|
|
2
|
+
|
|
3
|
+
interface AttachTitlebarToWindowOptions {
|
|
4
|
+
minWidth?: number;
|
|
5
|
+
minHeight?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Absolute path to a theme config JSON file to load in main and deliver to renderer.
|
|
8
|
+
*/
|
|
9
|
+
themeConfigPath?: string;
|
|
10
|
+
}
|
|
11
|
+
type DetachListeners = () => void;
|
|
12
|
+
declare const _default$1: (browserWindow: BrowserWindow, options?: AttachTitlebarToWindowOptions) => DetachListeners;
|
|
13
|
+
|
|
14
|
+
declare const _default: () => void;
|
|
15
|
+
|
|
16
|
+
interface SetupAndAttachTitlebarOptions extends AttachTitlebarToWindowOptions {
|
|
17
|
+
setupGlobal?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare function setupTitlebarAndAttachToWindow(browserWindow: BrowserWindow, options?: SetupAndAttachTitlebarOptions): Promise<() => void>;
|
|
20
|
+
|
|
21
|
+
export { type AttachTitlebarToWindowOptions, type SetupAndAttachTitlebarOptions, _default$1 as attachTitlebarToWindow, _default as setupTitlebar, setupTitlebarAndAttachToWindow };
|
package/main/index.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { BrowserWindow } from 'electron';
|
|
2
|
+
|
|
3
|
+
interface AttachTitlebarToWindowOptions {
|
|
4
|
+
minWidth?: number;
|
|
5
|
+
minHeight?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Absolute path to a theme config JSON file to load in main and deliver to renderer.
|
|
8
|
+
*/
|
|
9
|
+
themeConfigPath?: string;
|
|
10
|
+
}
|
|
11
|
+
type DetachListeners = () => void;
|
|
12
|
+
declare const _default$1: (browserWindow: BrowserWindow, options?: AttachTitlebarToWindowOptions) => DetachListeners;
|
|
13
|
+
|
|
14
|
+
declare const _default: () => void;
|
|
15
|
+
|
|
16
|
+
interface SetupAndAttachTitlebarOptions extends AttachTitlebarToWindowOptions {
|
|
17
|
+
setupGlobal?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare function setupTitlebarAndAttachToWindow(browserWindow: BrowserWindow, options?: SetupAndAttachTitlebarOptions): Promise<() => void>;
|
|
20
|
+
|
|
21
|
+
export { type AttachTitlebarToWindowOptions, type SetupAndAttachTitlebarOptions, _default$1 as attachTitlebarToWindow, _default as setupTitlebar, setupTitlebarAndAttachToWindow };
|