vite-userscript-plugin 1.10.0 → 2.0.0

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.
@@ -0,0 +1,149 @@
1
+ /**
2
+ * Minimal stubs so vendored Violentmonkey types stay self-contained.
3
+ * Official `@violentmonkey/types` references `@types/chrome` and
4
+ * `user-agent-data-types`; we do not ship those packages.
5
+ */
6
+
7
+ interface UADataValues {
8
+ brands?: { brand: string; version: string }[];
9
+ mobile?: boolean;
10
+ platform?: string;
11
+ architecture?: string;
12
+ bitness?: string;
13
+ model?: string;
14
+ platformVersion?: string;
15
+ uaFullVersion?: string;
16
+ wow64?: boolean;
17
+ fullVersionList?: { brand: string; version: string }[];
18
+ formFactors?: string[];
19
+ }
20
+
21
+ declare namespace chrome {
22
+ namespace cookies {
23
+ interface CookiePartitionKey {
24
+ topLevelSite?: string;
25
+ hasCrossSiteAncestor?: boolean;
26
+ }
27
+
28
+ interface Cookie {
29
+ name: string;
30
+ value: string;
31
+ domain: string;
32
+ hostOnly: boolean;
33
+ path: string;
34
+ secure: boolean;
35
+ httpOnly: boolean;
36
+ sameSite: string;
37
+ session: boolean;
38
+ expirationDate?: number;
39
+ storeId: string;
40
+ partitionKey?: CookiePartitionKey;
41
+ }
42
+
43
+ interface CookieDetails {
44
+ name: string;
45
+ url?: string;
46
+ storeId?: string;
47
+ partitionKey?: CookiePartitionKey;
48
+ }
49
+
50
+ interface GetAllDetails {
51
+ url?: string;
52
+ name?: string;
53
+ domain?: string;
54
+ path?: string;
55
+ secure?: boolean;
56
+ session?: boolean;
57
+ storeId?: string;
58
+ partitionKey?: CookiePartitionKey;
59
+ }
60
+
61
+ interface SetDetails {
62
+ url: string;
63
+ name?: string;
64
+ value?: string;
65
+ domain?: string;
66
+ path?: string;
67
+ secure?: boolean;
68
+ httpOnly?: boolean;
69
+ sameSite?: string;
70
+ expirationDate?: number;
71
+ storeId?: string;
72
+ partitionKey?: CookiePartitionKey;
73
+ }
74
+
75
+ function getAll(
76
+ details: GetAllDetails,
77
+ callback?: (cookies: Cookie[]) => void,
78
+ ): void;
79
+
80
+ function set(
81
+ details: SetDetails,
82
+ callback?: (cookie?: Cookie | null) => void,
83
+ ): void;
84
+ }
85
+ }
86
+
87
+ declare namespace browser {
88
+ namespace cookies {
89
+ interface PartitionKey {
90
+ topLevelSite?: string;
91
+ hasCrossSiteAncestor?: boolean;
92
+ }
93
+
94
+ interface Cookie {
95
+ name: string;
96
+ value: string;
97
+ domain: string;
98
+ hostOnly: boolean;
99
+ path: string;
100
+ secure: boolean;
101
+ httpOnly: boolean;
102
+ sameSite: string;
103
+ session: boolean;
104
+ expirationDate?: number;
105
+ storeId: string;
106
+ firstPartyDomain: string;
107
+ partitionKey?: PartitionKey;
108
+ }
109
+
110
+ interface _RemoveDetails {
111
+ url?: string;
112
+ name?: string;
113
+ storeId?: string;
114
+ firstPartyDomain?: string;
115
+ partitionKey?: PartitionKey;
116
+ }
117
+
118
+ interface _GetAllDetails {
119
+ url?: string;
120
+ name?: string;
121
+ domain?: string;
122
+ path?: string;
123
+ secure?: boolean;
124
+ session?: boolean;
125
+ storeId?: string;
126
+ firstPartyDomain?: string;
127
+ partitionKey?: PartitionKey;
128
+ }
129
+
130
+ interface _SetDetails {
131
+ url?: string;
132
+ name?: string;
133
+ value?: string;
134
+ domain?: string;
135
+ path?: string;
136
+ secure?: boolean;
137
+ httpOnly?: boolean;
138
+ expirationDate?: number;
139
+ storeId?: string;
140
+ firstPartyDomain?: string;
141
+ sameSite?: string;
142
+ partitionKey?: PartitionKey;
143
+ }
144
+ }
145
+
146
+ namespace downloads {
147
+ type FilenameConflictAction = "uniquify" | "overwrite" | "prompt";
148
+ }
149
+ }