layerpro 3.4.0 → 4.0.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 +284 -49
- package/SECURITY-HARDENING.md +265 -0
- package/SECURITY.md +8 -0
- package/global.cjs +1077 -0
- package/global.d.ts +27 -0
- package/global.js +1075 -0
- package/index.cjs +627 -492
- package/index.css +596 -503
- package/index.js +625 -492
- package/llms.txt +12 -5
- package/markdown/GUIDE.md +174 -25
- package/package.json +10 -4
- package/types/layerpro.d.ts +153 -143
package/global.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
///
|
|
2
|
+
// LAYERPRO GLOBAL ENTRY POINT TYPE DECLARATIONS
|
|
3
|
+
// Re-exports everything from ./index so consumers get full type support.
|
|
4
|
+
//
|
|
5
|
+
// Additionally, declares the Promise-based global overrides for
|
|
6
|
+
// `alert`, `confirm`, `prompt`, and `message` so that code using
|
|
7
|
+
// `import 'layerpro/global'` gets the correct return types.
|
|
8
|
+
///
|
|
9
|
+
|
|
10
|
+
export * from './index'
|
|
11
|
+
export { default } from './index'
|
|
12
|
+
|
|
13
|
+
import './types/layerpro.d.ts'
|
|
14
|
+
|
|
15
|
+
declare global {
|
|
16
|
+
/** LayerPro alert - returns a Promise that resolves when the popup closes. */
|
|
17
|
+
function alert(message?: string): Promise<void>
|
|
18
|
+
/** LayerPro confirm - returns a Promise that resolves to a boolean. */
|
|
19
|
+
function confirm(message: string): Promise<boolean>
|
|
20
|
+
/** LayerPro prompt - returns a Promise that resolves to the input string. */
|
|
21
|
+
function prompt(message: string, defaultValue?: string): Promise<string>
|
|
22
|
+
/** LayerPro message - returns a Promise that resolves when the popup closes. */
|
|
23
|
+
function message(message?: string): Promise<void>
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare var layerpro: _layerpro
|
|
27
|
+
declare var popup: _layerpro['popup']
|