@lntvow/vite-plugin 1.1.12 → 1.1.13
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/dist/index.d.ts +13 -12
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,11 +9,6 @@ import { Arrayable } from '@lntvow/utils';
|
|
|
9
9
|
* This is useful for tracking deployment versions and build times in frontend projects,
|
|
10
10
|
* making it easier to identify which version is currently deployed and when it was built.
|
|
11
11
|
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* - Automatically reads version from package.json if not provided
|
|
14
|
-
* - Supports custom timezone for build time formatting
|
|
15
|
-
* - Configurable localStorage key name
|
|
16
|
-
* - Supports multiple entry files
|
|
17
12
|
*
|
|
18
13
|
* You can customize the localStorage key, version, timezone, and the entry files to inject via plugin options.
|
|
19
14
|
*
|
|
@@ -25,6 +20,12 @@ import { Arrayable } from '@lntvow/utils';
|
|
|
25
20
|
* vitePluginVersionLog(),
|
|
26
21
|
* ],
|
|
27
22
|
* }
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* - Automatically reads version from package.json if not provided
|
|
26
|
+
* - Supports custom timezone for build time formatting
|
|
27
|
+
* - Configurable localStorage key name
|
|
28
|
+
* - Supports multiple entry files
|
|
28
29
|
*/
|
|
29
30
|
declare function vitePluginVersionLog(options?: VersionLogOptions): PluginOption;
|
|
30
31
|
interface VersionLogOptions {
|
|
@@ -67,13 +68,6 @@ interface VersionLogOptions {
|
|
|
67
68
|
*
|
|
68
69
|
* The ribbon will NOT be injected when the current mode is 'production'.
|
|
69
70
|
*
|
|
70
|
-
* @remarks
|
|
71
|
-
* - Automatically displays current environment mode
|
|
72
|
-
* - Customizable appearance (size, colors, position)
|
|
73
|
-
* - Environment label mapping support
|
|
74
|
-
* - Non-intrusive design (no pointer events)
|
|
75
|
-
* - Production-safe (automatically disabled)
|
|
76
|
-
*
|
|
77
71
|
* @example
|
|
78
72
|
* import { vitePluginEnvRibbon } from '@lntvow/vite-plugin'
|
|
79
73
|
*
|
|
@@ -82,6 +76,13 @@ interface VersionLogOptions {
|
|
|
82
76
|
* vitePluginEnvRibbon(),
|
|
83
77
|
* ],
|
|
84
78
|
* }
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
* - Automatically displays current environment mode
|
|
82
|
+
* - Customizable appearance (size, colors, position)
|
|
83
|
+
* - Environment label mapping support
|
|
84
|
+
* - Non-intrusive design (no pointer events)
|
|
85
|
+
* - Production-safe (automatically disabled)
|
|
85
86
|
*/
|
|
86
87
|
declare function vitePluginEnvRibbon(options?: EnvRibbonOptions): PluginOption;
|
|
87
88
|
interface EnvRibbonOptions {
|