dphelper 3.2.7 → 3.2.9

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.
Files changed (106) hide show
  1. package/README.md +19 -7
  2. package/index.cjs +1 -0
  3. package/index.js +1 -163
  4. package/package.json +53 -27
  5. package/types/dphelper.d.ts +665 -0
  6. package/CODE_OF_CONDUCT.md +0 -108
  7. package/FUNDING.yml +0 -12
  8. package/dphelper.umd.js +0 -163
  9. package/tools/ai/interface.d.ts +0 -12
  10. package/tools/anchor/interface.d.ts +0 -7
  11. package/tools/array/interface.d.ts +0 -22
  12. package/tools/audio/interface.d.ts +0 -11
  13. package/tools/avoid/interface.d.ts +0 -3
  14. package/tools/browser/interface.d.ts +0 -11
  15. package/tools/check/interface.d.ts +0 -5
  16. package/tools/color/interface.d.ts +0 -7
  17. package/tools/cookie/interface.d.ts +0 -13
  18. package/tools/coords/interface.d.ts +0 -9
  19. package/tools/credits/interface.d.ts +0 -12
  20. package/tools/date/interface.d.ts +0 -26
  21. package/tools/disable/interface.d.ts +0 -9
  22. package/tools/dispatch/interface.d.ts +0 -5
  23. package/tools/elements/interface.d.ts +0 -4
  24. package/tools/events/interface.d.ts +0 -7
  25. package/tools/fetch/interface.d.ts +0 -16
  26. package/tools/form/interface.d.ts +0 -14
  27. package/tools/format/interface.d.ts +0 -4
  28. package/tools/json/interface.d.ts +0 -9
  29. package/tools/load/interface.d.ts +0 -9
  30. package/tools/logging/interface.d.ts +0 -9
  31. package/tools/math/interface.d.ts +0 -14
  32. package/tools/memory/interface.d.ts +0 -4
  33. package/tools/navigation/interface.d.ts +0 -5
  34. package/tools/objects/interface.d.ts +0 -16
  35. package/tools/path/interface.d.ts +0 -5
  36. package/tools/promise/interface.d.ts +0 -4
  37. package/tools/sanitize/interface.d.ts +0 -3
  38. package/tools/screen/interface.d.ts +0 -12
  39. package/tools/scrollbar/interface.d.ts +0 -10
  40. package/tools/security/interface.d.ts +0 -16
  41. package/tools/shortcut/interface.d.ts +0 -3
  42. package/tools/socket/interface.d.ts +0 -13
  43. package/tools/sse/interface.d.ts +0 -9
  44. package/tools/svg/interface.d.ts +0 -13
  45. package/tools/sync/interface.d.ts +0 -14
  46. package/tools/system/interface.d.ts +0 -3
  47. package/tools/text/interface.d.ts +0 -13
  48. package/tools/timer/interface.d.ts +0 -4
  49. package/tools/tools/interface.d.ts +0 -6
  50. package/tools/translators/interface.d.ts +0 -3
  51. package/tools/triggers/interface.d.ts +0 -44
  52. package/tools/types/interface.d.ts +0 -6
  53. package/tools/ui/interface.d.ts +0 -4
  54. package/tools/window/interface.d.ts +0 -10
  55. package/types/index.d.ts +0 -2
  56. package/types/scripts/generate-imports.d.ts +0 -1
  57. package/types/scripts/over.d.ts +0 -1
  58. package/types/scripts/setProps.d.ts +0 -1
  59. package/types/scripts/setupGlobal.d.ts +0 -1
  60. package/types/tools/ai/index.d.ts +0 -1
  61. package/types/tools/anchor/index.d.ts +0 -1
  62. package/types/tools/array/index.d.ts +0 -1
  63. package/types/tools/audio/index.d.ts +0 -1
  64. package/types/tools/avoid/index.d.ts +0 -1
  65. package/types/tools/browser/index.d.ts +0 -1
  66. package/types/tools/check/index.d.ts +0 -1
  67. package/types/tools/color/index.d.ts +0 -1
  68. package/types/tools/cookie/index.d.ts +0 -1
  69. package/types/tools/coords/index.d.ts +0 -1
  70. package/types/tools/credits/index.d.ts +0 -1
  71. package/types/tools/date/index.d.ts +0 -1
  72. package/types/tools/disable/index.d.ts +0 -1
  73. package/types/tools/dispatch/index.d.ts +0 -1
  74. package/types/tools/elements/index.d.ts +0 -1
  75. package/types/tools/events/index.d.ts +0 -1
  76. package/types/tools/fetch/index.d.ts +0 -1
  77. package/types/tools/form/index.d.ts +0 -1
  78. package/types/tools/format/index.d.ts +0 -1
  79. package/types/tools/json/index.d.ts +0 -1
  80. package/types/tools/load/index.d.ts +0 -1
  81. package/types/tools/logging/index.d.ts +0 -1
  82. package/types/tools/math/index.d.ts +0 -1
  83. package/types/tools/memory/index.d.ts +0 -1
  84. package/types/tools/navigation/index.d.ts +0 -1
  85. package/types/tools/objects/index.d.ts +0 -1
  86. package/types/tools/path/index.d.ts +0 -1
  87. package/types/tools/promise/index.d.ts +0 -1
  88. package/types/tools/sanitize/index.d.ts +0 -1
  89. package/types/tools/screen/index.d.ts +0 -1
  90. package/types/tools/screen/popupManager.d.ts +0 -32
  91. package/types/tools/scrollbar/index.d.ts +0 -1
  92. package/types/tools/security/index.d.ts +0 -1
  93. package/types/tools/shortcut/index.d.ts +0 -1
  94. package/types/tools/socket/index.d.ts +0 -1
  95. package/types/tools/sse/index.d.ts +0 -1
  96. package/types/tools/svg/index.d.ts +0 -1
  97. package/types/tools/sync/index.d.ts +0 -1
  98. package/types/tools/system/index.d.ts +0 -1
  99. package/types/tools/text/index.d.ts +0 -1
  100. package/types/tools/timer/index.d.ts +0 -1
  101. package/types/tools/tools/index.d.ts +0 -1
  102. package/types/tools/translators/index.d.ts +0 -1
  103. package/types/tools/triggers/index.d.ts +0 -1
  104. package/types/tools/types/index.d.ts +0 -1
  105. package/types/tools/ui/index.d.ts +0 -1
  106. package/types/tools/window/index.d.ts +0 -1
@@ -1,3 +0,0 @@
1
- interface AvoidTool {
2
- cache: (uri: string) => string
3
- }
@@ -1,11 +0,0 @@
1
- interface BrowserTool {
2
- state(state: any, title: any, url: any): void
3
- forw(times: number): void
4
- back(times: number): void
5
- reload(): void
6
- href(url: string): void
7
- offLine(text?: string): void
8
- zoom(): number
9
- status(code: number): string
10
- interlock(onUpdate: (tabs: number) => void): void
11
- }
@@ -1,5 +0,0 @@
1
- interface CheckTool {
2
- url: (url: string) => any
3
- version: (v1: string, v2: string, opts?: any) => any
4
- npmVer: (npm: string) => any
5
- }
@@ -1,7 +0,0 @@
1
- interface ColorTool {
2
- hex: (c: any) => string
3
- toHex: (rgb: any) => string
4
- toRGB: (c: any) => number[]
5
- oleColor: (c: any) => string
6
- gradient: (colorStart: any, colorEnd: any, colorCount: any) => any
7
- }
@@ -1,13 +0,0 @@
1
- interface CookieTool {
2
- set: (pars: {
3
- name: any,
4
- value: any,
5
- time?: any,
6
- path?: string,
7
- sameSite?: string,
8
- secure?: string
9
- }) => any
10
- get: (name: string) => any
11
- delete: (name: string) => any
12
- removeAll: () => any
13
- }
@@ -1,9 +0,0 @@
1
- interface CoordsTool {
2
- degreesToRadians: (degrees: any) => any
3
- latToMeters: (points: any) => any
4
- toVector: (points: any) => any
5
- convertToDecDegrees: (deg: any, minutes: any, sec: any, direction: any) => any
6
- distance: (point1: any, point2: any) => any
7
- polarToCartesian: (centerX: any, centerY: any, radius: any, angleInDegrees: any) => any
8
- mapDegreesToPixels: (degree: number, minDegree: number, maxDegree: number, minPixel: number, maxPixel: number, padding: number) => number
9
- }
@@ -1,12 +0,0 @@
1
- interface Credits {
2
- name: string
3
- version: string
4
- description: string
5
- license: string
6
- author: {
7
- name: string
8
- email: string
9
- }
10
- }
11
-
12
- type CreditsTool = (props: Credits) => void
@@ -1,26 +0,0 @@
1
- interface DateTool {
2
- days: (lang?: string) => string[]
3
- months: (lang?: string) => string[]
4
- year: () => number
5
- toIso: (value: any, int?: string) => string | null
6
- toMMDDYYYY: (value: any) => string
7
- toYYYYMMDD: (value: any) => string | undefined
8
- toHuman: (value: any) => string
9
- convert: (value: any, format: string[]) => string | null
10
- iso2Epoch: (value: any) => number
11
- localIsoTime: (value: any) => string
12
- utc: () => string
13
- parse: (value: any, separator?: string) => string | null
14
- addDays: (date: any, days: number) => Date
15
- dateTimeToString: (dateObject: any) => string
16
- isoToHuman: (value: any, symbol?: string) => string | null
17
- fullDate: () => string
18
- epoch: () => number
19
- diffInDays: (d1: any, d2: any) => number
20
- diffInWeeks: (d1: any, d2: any) => number
21
- diffInMonths: (d1: any, d2: any) => number
22
- diffInYears: (d1: any, d2: any) => number
23
- dateToYMD: (date: any) => string
24
- collection: (params: { date?: Date; type: string; locale?: string }) => string | undefined
25
- timeZones: () => string[]
26
- }
@@ -1,9 +0,0 @@
1
- interface DisableTool {
2
- select: (el?: string) => void
3
- spellCheck: (tmr?: number) => void
4
- rightClick: (el?: string) => void
5
- copy: (el?: string) => void
6
- paste: (el?: string) => void
7
- cut: (el?: string) => void
8
- drag: (el?: string) => void
9
- }
@@ -1,5 +0,0 @@
1
- interface DispatchTool {
2
- set: (name: string, value?: any) => void
3
- listen: (name: string, cb?: (e: Event) => void, flag?: boolean) => void
4
- remove: (name: string) => void
5
- }
@@ -1,4 +0,0 @@
1
- interface ElementsTool {
2
- fitScale: (el: any, scale?: number, fit?: boolean) => void
3
- scaleBasedOnWindow: (elm: any, scale: number, fit: boolean) => void
4
- }
@@ -1,7 +0,0 @@
1
- interface EventsTool {
2
- list: (el: Element) => any
3
- multi: (element: Element, eventNames: string, listener: EventListener) => void
4
- copy: (el: string) => void
5
- onDrag: (elem: string) => void
6
- keys: (e: KeyboardEvent) => { key: string; ctrl: boolean; alt: boolean; shift: boolean }
7
- }
@@ -1,16 +0,0 @@
1
- interface FetchTool {
2
- /**
3
- * Perform a resilient fetch with automatic retries and exponential backoff.
4
- */
5
- (url: string, options?: any, retries?: number, backoff?: number): Promise<Response>
6
-
7
- /**
8
- * Perform a GET request.
9
- */
10
- get: (url: string, options?: any) => Promise<Response>
11
-
12
- /**
13
- * Perform a POST request with optional JSON body auto-serialization.
14
- */
15
- post: (url: string, body: any, options?: any) => Promise<Response>
16
- }
@@ -1,14 +0,0 @@
1
- interface FormTool {
2
- serialize: (form: HTMLFormElement) => { [key: string]: any }
3
- confirmType: (type: string, value: any) => boolean
4
- required: (value: any) => string | undefined
5
- minLength: (value: any, num?: number) => string | undefined
6
- maxLength: (value: any, num?: number) => string | undefined
7
- maxPhoneNumber: (value: any, num?: number) => string | undefined
8
- isNumeric: (value: any) => boolean
9
- isEmail: (value: any) => boolean
10
- pattern: (e: Event) => void
11
- noSpecialChars: (e: Event) => void
12
- table: (size: [number, number], id: string, elem: HTMLElement) => void
13
- sanitize: (str: string) => string | undefined
14
- }
@@ -1,4 +0,0 @@
1
- interface FormatTool {
2
- currency: (value: number, locale?: string, currency?: string) => string
3
- phoneNumber: (value: string, countryCode?: string) => string
4
- }
@@ -1,9 +0,0 @@
1
- interface JsonTool {
2
- counter: (json: any, key?: string, val?: any) => number | null
3
- toCsv: (jsonInput: any) => string
4
- saveCsvAs: (csvData: string, fileName: string) => void
5
- is: (str: string) => boolean
6
- parse: (file: string) => any
7
- sanitize: (str: string) => string
8
- sanitizeJsonValue: (str: string) => string
9
- }
@@ -1,9 +0,0 @@
1
- interface LoadTool {
2
- all: (context: any, cacheName?: string) => void
3
- file: (filePath: string) => Promise<string>
4
- fileToElement: (elementSelector: string, filePath: string) => Promise<void>
5
- json: (filePath: string) => Promise<any>
6
- remote: (path: string, method?: string, headers?: HeadersInit) => Promise<any>
7
- script: (scripts: string[], elementSelector?: string) => void
8
- toJson: (context: any, cacheName?: string) => void
9
- }
@@ -1,9 +0,0 @@
1
- interface LoggingTool {
2
- list: {
3
- type: string
4
- message: string
5
- }[]
6
- reg: (txt: string) => void
7
- debug: (txt: string) => void
8
- error: (txt: string) => void
9
- }
@@ -1,14 +0,0 @@
1
- interface MathTool {
2
- rnd: () => number
3
- tmr: () => number
4
- add: (a: number, b: number) => number
5
- sub: (a: number, b: number) => number
6
- multi: (a: number, b: number) => number
7
- div: (a: number, b: number) => number
8
- rem: (a: number, b: number) => number
9
- exp: (a: number, b: number) => number
10
- isOdd: (a: number) => boolean
11
- float2int: (a: number) => number
12
- percent: (n: number, tot: number) => number
13
- isPrime: (n: number) => boolean
14
- }
@@ -1,4 +0,0 @@
1
- interface MemoryTool {
2
- lock: (obj: string) => void
3
- unlock: (obj: string) => void
4
- }
@@ -1,5 +0,0 @@
1
- interface NavigationTool {
2
- load(url: string): Promise<void>
3
- ajax(): void
4
- ajax_running?: boolean
5
- }
@@ -1,16 +0,0 @@
1
- interface ObjectsTool {
2
- toArray: (object: Record<string, any>) => [string, any][]
3
- replaceNullObjects: (data: Record<string, any>) => Record<string, any>
4
- serialize: (value: any) => any
5
- deSerialize: (valueNew: any) => any
6
- sort: (o: Record<string, any>) => Record<string, any>
7
- toXML: (obj: Record<string, any>) => string
8
- find: (array: any[], key: string, value: any) => any
9
- instance: (obj: any) => any
10
- updateByKey: (obj: Record<string, any>, key: string, newValue: any) => Record<string, any>
11
- findindex: (array: any[], key: string) => number
12
- parse: (val: any) => any
13
- isObject: (val: any) => boolean
14
- diff: (obj1: Record<string, any>, obj2: Record<string, any>) => Record<string, { obj1: any, obj2: any }>
15
- path: (prop: string, array: string[], separator?: string) => string
16
- }
@@ -1,5 +0,0 @@
1
- interface PathTool {
2
- rail: () => string[]
3
- hash: () => string[]
4
- query: (url: string) => Record<string, string>
5
- }
@@ -1,4 +0,0 @@
1
- interface PromiseTool {
2
- check: (p: any) => boolean
3
- resolve: (data: any) => Promise<any>
4
- }
@@ -1,3 +0,0 @@
1
- interface SanitizeTool {
2
- html: (s: string) => string
3
- }
@@ -1,12 +0,0 @@
1
- interface ScreenTool {
2
- fullScreen: (el: string) => void
3
- toggle: (el: string) => void
4
- info: () => {
5
- width: number
6
- height: number
7
- availWidth: number
8
- availHeight: number
9
- colorDepth: number
10
- pixelDepth: number
11
- }
12
- }
@@ -1,10 +0,0 @@
1
- interface ScrollbarTool {
2
- custom: (el: string, options: any) => void
3
- indicator: (props: any) => void
4
- position: {
5
- get: (el: any) => void
6
- set: (el: any) => void
7
- }
8
- smooth: (target: any, speed: any, smooth: any) => void
9
- scrollTo: (container: string, element: string, gap?: number) => void
10
- }
@@ -1,16 +0,0 @@
1
- interface SecurityTool {
2
- uuid: {
3
- byVal: (string: string) => string
4
- v4: string
5
- v5: string
6
- }
7
- hashPass: (u: string, p: string, t?: string) => Promise<string>
8
- crypt: (u: string, p: string, mode?: string) => string
9
- deCrypt: (u: string, p: string, mode?: string) => string
10
- AES_KeyGen: (passKey?: string) => string
11
- SHA256_Hex: (passKey: string) => string
12
- ulid: () => string
13
- fingerprint: () => string
14
- saveEncrypted: (key: string, value: string, secret: string) => void
15
- getEncrypted: (key: string, secret: string) => string | null
16
- }
@@ -1,3 +0,0 @@
1
- interface ShortcutTool {
2
- keys: (e: any, trigger: any) => void
3
- }
@@ -1,13 +0,0 @@
1
- interface SocketTool {
2
- info: () => string
3
- start: (element: any, server: any, name: string) => void
4
- conn: (id: any, server: any, name: string) => void
5
- connect: (server: any, name: string) => void
6
- open: (id: any, server: any, name: string) => void
7
- send: (mex: any, type?: string) => void
8
- ping: (name: string) => void
9
- receive: (el?: any, name?: string) => void
10
- keepAlive: (name: string) => void
11
- check: () => void
12
- list: () => WebSocket[]
13
- }
@@ -1,9 +0,0 @@
1
- interface SseTool {
2
- /**
3
- * Opens an SSE connection with support for custom fetch options (POST, Headers, etc).
4
- */
5
- open(url: string, options?: any): {
6
- on(event: "message" | "error" | "open", cb: (data: any) => void): void
7
- close(): void
8
- }
9
- }
@@ -1,13 +0,0 @@
1
- interface SvgTool {
2
- init: (container: HTMLElement, source1: [HTMLElement, string], source2: [HTMLElement, string], cb?: Function) => void
3
- check: () => boolean
4
- update: (rect1: HTMLElement, rect2: HTMLElement, cxn: HTMLElement) => void
5
- getCurve: (p1: [number, number], p2: [number, number], dx: number) => string
6
- getIntersection: (dx: number, dy: number, cx: number, cy: number, w: number, h: number) => [number, number]
7
- setConnector: (source: HTMLElement, side: string) => HTMLElement
8
- removeConnection: (container: HTMLElement) => void
9
- makeScrollable: (svgContainer: HTMLElement, scrollContainer: HTMLElement, elm1: HTMLElement, elm2: HTMLElement, rect1: HTMLElement, rect2: HTMLElement) => void
10
- makeDraggable: (evt: Event) => void
11
- toggle: (evt: Event, container: HTMLElement, source1: HTMLElement, source2: HTMLElement) => void
12
- convert: (options: any) => string | void
13
- }
@@ -1,14 +0,0 @@
1
- interface SyncTool {
2
- /**
3
- * Synchronize data between tabs using BroadcastChannel.
4
- */
5
- tab: (channelName: string, callback: (data: any) => void) => { post: (data: any) => void, close: () => void }
6
- /**
7
- * Create a Proxy object linked to localStorage for auto-sync with optional encryption.
8
- */
9
- storageProxy: <T extends object>(key: string, initialValue: T, secret?: string) => T
10
- /**
11
- * Low-latency cross-tab event bus.
12
- */
13
- pulse: (channelName: string, callback: (data: any) => void) => { emit: (data: any) => void, stop: () => void }
14
- }
@@ -1,3 +0,0 @@
1
- interface SystemTool {
2
- multiSplit: () => any
3
- }
@@ -1,13 +0,0 @@
1
- interface TextTool {
2
- trim(s: string, c: string, b: number, e: number): string
3
- capitalize(txt: string): string
4
- lower(txt: string): string
5
- upper(txt: string): string
6
- nl2br(str: string): string
7
- sanitize(str: string): string
8
- camelCase: {
9
- toSpace(string: string): string
10
- toUnderscore(string: string): string
11
- }
12
- fitContainer(el: string): void
13
- }
@@ -1,4 +0,0 @@
1
- interface TimerTool {
2
- sleep(ms: number): Promise<void>
3
- percentage(start: string, end: string): string
4
- }
@@ -1,6 +0,0 @@
1
- interface ToolsTool {
2
- getip(): Promise<void>
3
- byteSize(bytes: number): string
4
- zIndex(): number
5
- zeroToFalse(value: number): boolean | number
6
- }
@@ -1,3 +0,0 @@
1
- interface TranslatorsTool {
2
- convertMatrixToScale(values: any): number
3
- }
@@ -1,44 +0,0 @@
1
- interface TriggersTool {
2
- /**
3
- * Add a trigger for custom events.
4
- * @param event - The event name
5
- * @param callback - The callback to execute when the event is triggered
6
- */
7
- add: (event: string, callback: (...args: any[]) => void) => void
8
-
9
- /**
10
- * Listen for a trigger event (alias for add).
11
- */
12
- on: (event: string, callback: (...args: any[]) => void) => void
13
-
14
- /**
15
- * Emit a trigger event and call all registered callbacks.
16
- * @param event - The event name
17
- * @param args - Arguments to pass to the callbacks
18
- */
19
- emit: (event: string, ...args: any[]) => void
20
-
21
- /**
22
- * Remove a trigger event and all its callbacks.
23
- * @param event - The event name
24
- */
25
- remove: (event: string) => void
26
-
27
- /**
28
- * Remove a specific callback from an event.
29
- * @param event - The event name
30
- * @param callback - The callback to remove
31
- */
32
- off: (event: string, callback: (...args: any[]) => void) => void
33
-
34
- /**
35
- * Clear all triggers.
36
- */
37
- clear: () => void
38
-
39
- /**
40
- * List all registered trigger events.
41
- * @returns Array of event names
42
- */
43
- list: () => string[]
44
- }
@@ -1,6 +0,0 @@
1
- interface TypesTool {
2
- of(p: any): string
3
- instOfObj(p: any): boolean
4
- isNull(p: any): (p: any) => boolean
5
- isBool(val: any): boolean
6
- }
@@ -1,4 +0,0 @@
1
- interface UiTool {
2
- anchorContext(): void
3
- [key: string]: any
4
- }
@@ -1,10 +0,0 @@
1
- interface WindowTool {
2
- enhancement(): void
3
- animationframe(): any
4
- center(params: { url: string; title: string; name: string; w: number; h: number }): void
5
- onBeforeUnLoad(e: any): void
6
- purge(d?: Document, time?: number): void
7
- stopZoomWheel(e: any): void
8
- setZoom(element?: string, zoom?: number): string
9
- getZoom(element?: string): number
10
- }
package/types/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- /// <reference path="./dphelper.d.ts" />
2
- export default dphelper;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,32 +0,0 @@
1
- interface MonitorInfo {
2
- id: string;
3
- width: number;
4
- height: number;
5
- left: number;
6
- top: number;
7
- isPrimary: boolean;
8
- }
9
- interface PopupState {
10
- id: string;
11
- monitorId: string;
12
- left: number;
13
- top: number;
14
- width: number;
15
- height: number;
16
- monitorFingerprint: string;
17
- }
18
- export declare const popupManager: {
19
- save: (id: string, win?: Window) => void;
20
- restore: (id: string) => {
21
- left: number;
22
- top: number;
23
- width: number;
24
- height: number;
25
- } | null;
26
- remove: (id: string) => void;
27
- list: () => Record<string, PopupState>;
28
- clear: () => void;
29
- getMonitors: () => MonitorInfo[];
30
- getCurrentMonitor: () => MonitorInfo;
31
- };
32
- export default popupManager;
@@ -1 +0,0 @@
1
- export {};