@fkn/lib 0.9.2 → 0.9.3
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/account.cjs +1 -1
- package/account.js +2 -2
- package/{api-CAZo3BT0.js → api-CtmJlpfo.js} +1 -1
- package/{api-BwrS6P0x.cjs → api-UzF-KbxK.cjs} +1 -1
- package/cloud/dgram.cjs +1 -1
- package/cloud/dgram.js +1 -1
- package/cloud/fs.cjs +1 -1
- package/cloud/fs.js +2 -2
- package/cloud/net.cjs +1 -1
- package/cloud/net.js +1 -1
- package/{cloud-BcpPsNs3.cjs → cloud-B_Q0iiCr.cjs} +1 -1
- package/{cloud-CzMjj2Ne.d.ts → cloud-CAOIpDIH.d.ts} +1 -1
- package/{cloud-DArHoBaw.js → cloud-CnddU57R.js} +20 -18
- package/cloud.cjs +1 -1
- package/cloud.d.ts +1 -1
- package/cloud.js +4 -4
- package/desktop.cjs +1 -1
- package/desktop.js +1 -1
- package/{dgram-C1yYxLEI.js → dgram-Bq_i0wX0.js} +2 -2
- package/{dgram-pCNllfov.cjs → dgram-C6ADuKcR.cjs} +1 -1
- package/dgram.cjs +1 -1
- package/dgram.js +1 -1
- package/dns.cjs +1 -1
- package/dns.js +2 -2
- package/extension-D7SSKewV.d.ts +16 -0
- package/extension-H9AUHZdt.js +73 -0
- package/extension-QRMx3Qhh.cjs +1 -0
- package/extension.cjs +1 -1
- package/extension.d.ts +3 -3
- package/extension.js +3 -3
- package/fs/promises.cjs +1 -1
- package/fs/promises.js +1 -1
- package/{fs-_59wCBU2.js → fs-DU9rph4j.js} +4 -4
- package/{fs-BrBsBqRz.cjs → fs-V_Sx6o9N.cjs} +1 -1
- package/fs.cjs +1 -1
- package/fs.js +1 -1
- package/http.cjs +1 -1
- package/http.js +2 -2
- package/{index-BJztAQIP.d.ts → index-pr5vLVVT.d.ts} +499 -406
- package/index.cjs +1 -1
- package/index.d.ts +4 -4
- package/index.js +28 -28
- package/{net-BOyLJ3mh.cjs → net-eFlsYreG.cjs} +1 -1
- package/{net-VAkfxAvn.js → net-kkSsmaSz.js} +2 -2
- package/net.cjs +1 -1
- package/net.js +1 -1
- package/{opfs-7_GmzQ93.js → opfs-BibrNGF0.js} +1 -1
- package/{opfs-uClkgnb5.cjs → opfs-CXMESVLc.cjs} +1 -1
- package/opfs.cjs +1 -1
- package/opfs.js +2 -2
- package/package.json +1 -1
- package/packages.cjs +1 -1
- package/packages.js +2 -2
- package/{proxy-B3rliZN8.js → proxy-8bvtaeNn.js} +505 -603
- package/proxy-D2cxusWD.cjs +53 -0
- package/rolldown-runtime-BIInC43l.cjs +1 -0
- package/{rolldown-runtime-DF993M8W.js → rolldown-runtime-Dy4uBu1J.js} +2 -2
- package/{storage-InqJHrkf.js → storage-YL0pIVoy.js} +2 -2
- package/{storage-C1BT8jwJ.cjs → storage-fSj65-d5.cjs} +1 -1
- package/background-DMESyLZ6.cjs +0 -1
- package/background-DxYR_JMs.js +0 -1028
- package/extension-3pxUYwrA.d.ts +0 -16
- package/extension-CjJNj5Yl.cjs +0 -1
- package/extension-Qs02HPzR.js +0 -67
- package/proxy-g2yknq7C.cjs +0 -53
- package/rolldown-runtime-Doa5O59j.cjs +0 -1
|
@@ -88,330 +88,524 @@ declare const setRequestHeaderRule: (rule: RequestHeaderRule) => Promise<{
|
|
|
88
88
|
}>;
|
|
89
89
|
declare const removeRequestHeaderRule: (ruleId: number) => Promise<void>;
|
|
90
90
|
//#endregion
|
|
91
|
-
//#region node_modules/@mfkn/
|
|
92
|
-
type
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
} ? A : never;
|
|
98
|
-
type ExtractOperationArgs<M> = M extends {
|
|
99
|
-
resolve: (context: any, ...args: infer A) => any;
|
|
100
|
-
} ? A : never;
|
|
101
|
-
type ExtractResolverReturn<M> = M extends {
|
|
102
|
-
resolve: (context: any, ...args: any[]) => infer R;
|
|
103
|
-
} ? R : never;
|
|
104
|
-
declare namespace locator_d_exports {
|
|
105
|
-
export { render$7 as render, resolve$17 as resolve, type$18 as type };
|
|
106
|
-
}
|
|
107
|
-
declare const type$18: 'locator';
|
|
108
|
-
declare const resolve$17: (context: LocatorContext, selector: string) => Element[];
|
|
109
|
-
declare const render$7: SelectorRenderer;
|
|
110
|
-
declare namespace get_by_role_d_exports {
|
|
111
|
-
export { render$6 as render, resolve$16 as resolve, type$17 as type };
|
|
112
|
-
}
|
|
113
|
-
declare const type$17: 'getByRole';
|
|
114
|
-
declare const resolve$16: (context: LocatorContext, role: string) => Element[];
|
|
115
|
-
declare const render$6: SelectorRenderer;
|
|
116
|
-
declare namespace get_by_text_d_exports {
|
|
117
|
-
export { render$5 as render, resolve$15 as resolve, type$16 as type };
|
|
118
|
-
}
|
|
119
|
-
declare const type$16: 'getByText';
|
|
120
|
-
declare const resolve$15: (context: LocatorContext, text: string) => Element[];
|
|
121
|
-
declare const render$5: SelectorRenderer;
|
|
122
|
-
declare namespace get_by_test_id_d_exports {
|
|
123
|
-
export { render$4 as render, resolve$14 as resolve, type$15 as type };
|
|
124
|
-
}
|
|
125
|
-
declare const type$15: 'getByTestId';
|
|
126
|
-
declare const resolve$14: (context: LocatorContext, testId: string) => Element[];
|
|
127
|
-
declare const render$4: SelectorRenderer;
|
|
128
|
-
declare namespace first_d_exports {
|
|
129
|
-
export { render$3 as render, resolve$13 as resolve, type$14 as type };
|
|
130
|
-
}
|
|
131
|
-
declare const type$14: 'first';
|
|
132
|
-
declare const resolve$13: (context: LocatorContext) => Element[];
|
|
133
|
-
declare const render$3: SelectorRenderer;
|
|
134
|
-
declare namespace nth_d_exports {
|
|
135
|
-
export { render$2 as render, resolve$12 as resolve, type$13 as type };
|
|
136
|
-
}
|
|
137
|
-
declare const type$13: 'nth';
|
|
138
|
-
declare const resolve$12: (context: LocatorContext, index: number) => Element[];
|
|
139
|
-
declare const render$2: SelectorRenderer;
|
|
140
|
-
declare namespace click_d_exports {
|
|
141
|
-
export { permission$9 as permission, resolve$11 as resolve, type$12 as type };
|
|
142
|
-
}
|
|
143
|
-
declare const type$12: 'click';
|
|
144
|
-
declare const permission$9: {
|
|
145
|
-
readonly scope: 'act.click';
|
|
146
|
-
readonly category: 'act';
|
|
147
|
-
readonly severity: 3;
|
|
148
|
-
readonly title: 'Click on the page';
|
|
149
|
-
readonly description: 'Lets the app press buttons or links for you.';
|
|
91
|
+
//#region node_modules/@mfkn/frame-locator/lib/types.d.ts
|
|
92
|
+
type ChainKind = 'element' | 'frame';
|
|
93
|
+
type SelectorPart = {
|
|
94
|
+
kind: ChainKind;
|
|
95
|
+
name: string;
|
|
96
|
+
args: unknown[];
|
|
150
97
|
};
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
y?: number;
|
|
155
|
-
};
|
|
156
|
-
}) => void;
|
|
157
|
-
declare namespace fill_d_exports {
|
|
158
|
-
export { permission$8 as permission, resolve$10 as resolve, type$11 as type };
|
|
159
|
-
}
|
|
160
|
-
declare const type$11: 'fill';
|
|
161
|
-
declare const permission$8: {
|
|
162
|
-
readonly scope: 'act.type';
|
|
163
|
-
readonly category: 'act';
|
|
164
|
-
readonly severity: 1;
|
|
165
|
-
readonly title: 'Type into a text field';
|
|
166
|
-
readonly description: 'Lets the app fill in form fields on your behalf.';
|
|
98
|
+
type LocatorContext = {
|
|
99
|
+
document: Document;
|
|
100
|
+
elements: Element[];
|
|
167
101
|
};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
102
|
+
type SelectorRender = {
|
|
103
|
+
fragment: string;
|
|
104
|
+
separator?: 'descend' | 'down' | 'up';
|
|
105
|
+
};
|
|
106
|
+
type SelectorModule = {
|
|
107
|
+
resolve: (context: LocatorContext, ...args: any[]) => Element[];
|
|
108
|
+
to: ChainKind;
|
|
109
|
+
barrier?: 'down' | 'up';
|
|
110
|
+
css?: boolean;
|
|
111
|
+
render?: (...args: any[]) => SelectorRender;
|
|
112
|
+
};
|
|
113
|
+
type OperationModule = {
|
|
114
|
+
resolve: (context: LocatorContext, ...args: any[]) => unknown;
|
|
115
|
+
};
|
|
116
|
+
type KindModules = {
|
|
117
|
+
selectors: Record<string, SelectorModule>;
|
|
118
|
+
operations: Record<string, OperationModule>;
|
|
119
|
+
};
|
|
120
|
+
type Modules = {
|
|
121
|
+
element: KindModules;
|
|
122
|
+
frame: KindModules;
|
|
123
|
+
};
|
|
124
|
+
type OperationOptions = {
|
|
125
|
+
timeout?: number;
|
|
126
|
+
};
|
|
127
|
+
type OperationRequest = {
|
|
128
|
+
parts: SelectorPart[];
|
|
129
|
+
operation: string;
|
|
130
|
+
args: unknown[];
|
|
131
|
+
phase: 'execute' | 'ensure';
|
|
179
132
|
};
|
|
180
|
-
|
|
133
|
+
type GateTools = {
|
|
134
|
+
highlight: (on: boolean) => Promise<void>;
|
|
135
|
+
};
|
|
136
|
+
type Gate = (request: OperationRequest, tools: GateTools) => void | Promise<void>;
|
|
137
|
+
type Executor = {
|
|
138
|
+
execute: (parts: SelectorPart[], operation: string, args: unknown[]) => Promise<unknown>;
|
|
139
|
+
highlight: (parts: SelectorPart[], on: boolean) => Promise<void>;
|
|
140
|
+
stale?: Promise<void>;
|
|
141
|
+
};
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region node_modules/@mfkn/frame-locator/lib/errors.d.ts
|
|
144
|
+
declare const LOCATOR_ERROR = "LocatorError";
|
|
145
|
+
declare const LOCATOR_UNSUPPORTED = "LocatorUnsupportedError";
|
|
146
|
+
declare const LOCATOR_DENIED = "LocatorDeniedError";
|
|
147
|
+
declare const isLocatorUnsupported: (error: unknown) => boolean;
|
|
148
|
+
declare const isLocatorDenied: (error: unknown) => boolean;
|
|
149
|
+
declare const isTerminalError: (error: unknown) => boolean;
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region node_modules/@mfkn/frame-locator/lib/add-style-tag.d.ts
|
|
152
|
+
type AddStyleTagOptions$1 = OperationOptions & {
|
|
153
|
+
content: string;
|
|
154
|
+
noSanitize?: boolean;
|
|
155
|
+
};
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region node_modules/@mfkn/frame-locator/lib/operations.d.ts
|
|
158
|
+
type PositionOptions$1 = OperationOptions & {
|
|
181
159
|
position?: {
|
|
182
160
|
x?: number;
|
|
183
161
|
y?: number;
|
|
184
162
|
};
|
|
185
|
-
}) => void;
|
|
186
|
-
declare namespace text_content_d_exports {
|
|
187
|
-
export { permission$6 as permission, resolve$8 as resolve, type$9 as type };
|
|
188
|
-
}
|
|
189
|
-
declare const type$9: 'textContent';
|
|
190
|
-
declare const permission$6: {
|
|
191
|
-
readonly scope: 'read.text';
|
|
192
|
-
readonly category: 'read';
|
|
193
|
-
readonly severity: 1;
|
|
194
|
-
readonly title: 'Read text from the page';
|
|
195
|
-
readonly description: 'Lets the app see the text shown on this page.';
|
|
196
163
|
};
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region node_modules/@mfkn/frame-locator/lib/modules.d.ts
|
|
166
|
+
declare const defaultModules: {
|
|
167
|
+
readonly element: {
|
|
168
|
+
readonly selectors: {
|
|
169
|
+
readonly locator: {
|
|
170
|
+
readonly to: "element";
|
|
171
|
+
readonly css: true;
|
|
172
|
+
readonly resolve: (context: LocatorContext, selector: string) => Element[];
|
|
173
|
+
readonly render: (selector: unknown) => {
|
|
174
|
+
fragment: string;
|
|
175
|
+
separator: "descend";
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
readonly frameLocator: {
|
|
179
|
+
readonly to: "frame";
|
|
180
|
+
readonly css: true;
|
|
181
|
+
readonly barrier: "down";
|
|
182
|
+
readonly resolve: (context: LocatorContext, selector: string) => Element[];
|
|
183
|
+
readonly render: (selector: unknown) => {
|
|
184
|
+
fragment: string;
|
|
185
|
+
separator: "down";
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
readonly getByRole: {
|
|
189
|
+
readonly to: "element";
|
|
190
|
+
readonly resolve: (context: LocatorContext, role: string) => Element[];
|
|
191
|
+
readonly render: (role: unknown) => {
|
|
192
|
+
fragment: string;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
readonly getByText: {
|
|
196
|
+
readonly to: "element";
|
|
197
|
+
readonly resolve: (context: LocatorContext, text: string) => Element[];
|
|
198
|
+
readonly render: (text: unknown) => {
|
|
199
|
+
fragment: string;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
readonly getByTestId: {
|
|
203
|
+
readonly to: "element";
|
|
204
|
+
readonly resolve: (context: LocatorContext, testId: string) => Element[];
|
|
205
|
+
readonly render: (testId: unknown) => {
|
|
206
|
+
fragment: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
readonly first: {
|
|
210
|
+
readonly to: "element";
|
|
211
|
+
readonly resolve: (context: LocatorContext) => Element[];
|
|
212
|
+
readonly render: () => {
|
|
213
|
+
fragment: string;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
readonly nth: {
|
|
217
|
+
readonly to: "element";
|
|
218
|
+
readonly resolve: (context: LocatorContext, index: number) => Element[];
|
|
219
|
+
readonly render: (index: unknown) => {
|
|
220
|
+
fragment: string;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
readonly operations: {
|
|
225
|
+
readonly click: {
|
|
226
|
+
readonly resolve: (context: LocatorContext, options?: PositionOptions$1) => void;
|
|
227
|
+
};
|
|
228
|
+
readonly fill: {
|
|
229
|
+
readonly resolve: (context: LocatorContext, value: string, _options?: OperationOptions) => void;
|
|
230
|
+
};
|
|
231
|
+
readonly hover: {
|
|
232
|
+
readonly resolve: (context: LocatorContext, options?: PositionOptions$1) => void;
|
|
233
|
+
};
|
|
234
|
+
readonly textContent: {
|
|
235
|
+
readonly resolve: (context: LocatorContext, _options?: OperationOptions) => string;
|
|
236
|
+
};
|
|
237
|
+
readonly getAttribute: {
|
|
238
|
+
readonly resolve: (context: LocatorContext, name: string, _options?: OperationOptions) => string | null;
|
|
239
|
+
};
|
|
240
|
+
readonly isVisible: {
|
|
241
|
+
readonly resolve: (context: LocatorContext, _options?: OperationOptions) => boolean;
|
|
242
|
+
};
|
|
243
|
+
readonly count: {
|
|
244
|
+
readonly resolve: (context: LocatorContext, _options?: OperationOptions) => number;
|
|
245
|
+
};
|
|
246
|
+
readonly exists: {
|
|
247
|
+
readonly resolve: (context: LocatorContext, _options?: OperationOptions) => boolean;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
readonly frame: {
|
|
252
|
+
readonly selectors: {
|
|
253
|
+
readonly locator: {
|
|
254
|
+
readonly to: "element";
|
|
255
|
+
readonly css: true;
|
|
256
|
+
readonly resolve: (context: LocatorContext, selector: string) => Element[];
|
|
257
|
+
readonly render: (selector: unknown) => {
|
|
258
|
+
fragment: string;
|
|
259
|
+
separator: "descend";
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
readonly frameLocator: {
|
|
263
|
+
readonly to: "frame";
|
|
264
|
+
readonly css: true;
|
|
265
|
+
readonly barrier: "down";
|
|
266
|
+
readonly resolve: (context: LocatorContext, selector: string) => Element[];
|
|
267
|
+
readonly render: (selector: unknown) => {
|
|
268
|
+
fragment: string;
|
|
269
|
+
separator: "down";
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
readonly owner: {
|
|
273
|
+
readonly to: "frame";
|
|
274
|
+
readonly barrier: "up";
|
|
275
|
+
readonly resolve: (_context: LocatorContext) => Element[];
|
|
276
|
+
readonly render: () => {
|
|
277
|
+
fragment: string;
|
|
278
|
+
separator: "up";
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
readonly operations: {
|
|
283
|
+
readonly addStyleTag: {
|
|
284
|
+
readonly resolve: (context: LocatorContext, options: AddStyleTagOptions$1) => void;
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
};
|
|
208
288
|
};
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
declare const type$7: 'count';
|
|
214
|
-
declare const permission$4: {
|
|
215
|
-
readonly scope: 'read.count';
|
|
216
|
-
readonly category: 'read';
|
|
217
|
-
readonly severity: 0;
|
|
218
|
-
readonly title: 'Count items on the page';
|
|
219
|
-
readonly description: 'Lets the app count how many matching elements are present.';
|
|
289
|
+
type DefaultModules = typeof defaultModules;
|
|
290
|
+
type KindSpec = {
|
|
291
|
+
selectors?: Record<string, SelectorModule>;
|
|
292
|
+
operations?: Record<string, OperationModule>;
|
|
220
293
|
};
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}
|
|
225
|
-
declare const type$6: 'exists';
|
|
226
|
-
declare const permission$3: {
|
|
227
|
-
readonly scope: 'read.check';
|
|
228
|
-
readonly category: 'read';
|
|
229
|
-
readonly severity: 0;
|
|
230
|
-
readonly title: 'Check if something is on the page';
|
|
231
|
-
readonly description: 'Lets the app test whether a specific element exists.';
|
|
294
|
+
type ModulesSpec = {
|
|
295
|
+
element?: KindSpec;
|
|
296
|
+
frame?: KindSpec;
|
|
232
297
|
};
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
readonly severity: 1;
|
|
242
|
-
readonly title: 'Read info from the page';
|
|
243
|
-
readonly description: 'Lets the app read the href value from a part of the page.';
|
|
298
|
+
type Merge<A, B> = B extends object ? Omit<A, keyof B> & B : A;
|
|
299
|
+
type MergeKind<A extends KindModules, S> = {
|
|
300
|
+
selectors: Merge<A['selectors'], S extends {
|
|
301
|
+
selectors: infer T;
|
|
302
|
+
} ? T : unknown>;
|
|
303
|
+
operations: Merge<A['operations'], S extends {
|
|
304
|
+
operations: infer T;
|
|
305
|
+
} ? T : unknown>;
|
|
244
306
|
};
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}
|
|
249
|
-
declare const type$4: 'videoElement';
|
|
250
|
-
declare const permission$1: {
|
|
251
|
-
readonly scope: 'media.video';
|
|
252
|
-
readonly category: 'media';
|
|
253
|
-
readonly severity: 0;
|
|
254
|
-
readonly title: 'Control video playback';
|
|
255
|
-
readonly description: 'Lets the app play, pause, seek, and read the video on the page.';
|
|
307
|
+
type Extended<B extends Modules, S extends ModulesSpec> = {
|
|
308
|
+
element: MergeKind<B['element'], S['element']>;
|
|
309
|
+
frame: MergeKind<B['frame'], S['frame']>;
|
|
256
310
|
};
|
|
257
|
-
declare const resolve$3: (context: LocatorContext, _options?: OperationTimeoutOptions) => RemoteVideoElement;
|
|
258
311
|
//#endregion
|
|
259
|
-
//#region node_modules/@mfkn/
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
type
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
declare
|
|
277
|
-
|
|
278
|
-
declare const resolvePeer$1: BarrierResolver;
|
|
279
|
-
declare const render$1: SelectorRenderer;
|
|
280
|
-
declare namespace owner_d_exports {
|
|
281
|
-
export { render, resolve$1 as resolve, resolvePeer, type$2 as type };
|
|
282
|
-
}
|
|
283
|
-
declare const type$2: 'owner';
|
|
284
|
-
declare const resolve$1: (_: LocatorContext) => never;
|
|
285
|
-
declare const resolvePeer: BarrierResolver;
|
|
286
|
-
declare const render: SelectorRenderer;
|
|
287
|
-
declare namespace add_style_tag_d_exports {
|
|
288
|
-
export { AddStyleTagOptions, appearPermission, appearUnsafePermission, permission, resolve, setInjectedStylesDisabled, type$1 as type };
|
|
312
|
+
//#region node_modules/@mfkn/frame-locator/lib/chain.d.ts
|
|
313
|
+
type ArgsOf<M> = M extends {
|
|
314
|
+
resolve: (context: never, ...args: infer A) => unknown;
|
|
315
|
+
} ? A : never;
|
|
316
|
+
type ResultOf<M> = M extends {
|
|
317
|
+
resolve: (...args: never[]) => infer R;
|
|
318
|
+
} ? Awaited<R> : never;
|
|
319
|
+
type ToOf<M> = M extends {
|
|
320
|
+
to: infer K extends ChainKind;
|
|
321
|
+
} ? K : 'element';
|
|
322
|
+
type ChainOf<M extends Modules, K extends ChainKind> = K extends 'frame' ? FrameLocator<M> : Locator$1<M>;
|
|
323
|
+
type EnsureOptions = OperationOptions & Record<string, unknown>;
|
|
324
|
+
type Chain<M extends Modules, K extends ChainKind> = { [N in keyof M[K]['selectors']]: (...args: ArgsOf<M[K]['selectors'][N]>) => ChainOf<M, ToOf<M[K]['selectors'][N]>> } & { [N in keyof M[K]['operations']]: (...args: ArgsOf<M[K]['operations'][N]>) => Promise<ResultOf<M[K]['operations'][N]>> } & {
|
|
325
|
+
ensure: (operation: Extract<keyof M[K]['operations'], string>, options?: EnsureOptions) => Promise<void>;
|
|
326
|
+
};
|
|
327
|
+
type Locator$1<M extends Modules = DefaultModules> = Chain<M, 'element'>;
|
|
328
|
+
type FrameLocator<M extends Modules = DefaultModules> = Chain<M, 'frame'>;
|
|
329
|
+
declare namespace video_d_exports {
|
|
330
|
+
export { BoxedVideoElement, RemoteVideoElement, VideoElementState, box, createVideoElementHandle, isType, revive, type };
|
|
289
331
|
}
|
|
290
|
-
declare const type
|
|
291
|
-
type
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
332
|
+
declare const type: 'videoElement';
|
|
333
|
+
type TimeRangesTuple = [number, number][];
|
|
334
|
+
type VideoElementState = {
|
|
335
|
+
currentTime: number;
|
|
336
|
+
volume: number;
|
|
337
|
+
muted: boolean;
|
|
338
|
+
playbackRate: number;
|
|
339
|
+
src: string;
|
|
340
|
+
loop: boolean;
|
|
341
|
+
autoplay: boolean;
|
|
342
|
+
preload: string;
|
|
343
|
+
poster: string;
|
|
344
|
+
disableRemotePlayback: boolean;
|
|
345
|
+
duration: number;
|
|
346
|
+
paused: boolean;
|
|
347
|
+
ended: boolean;
|
|
348
|
+
seeking: boolean;
|
|
349
|
+
readyState: number;
|
|
350
|
+
currentSrc: string;
|
|
351
|
+
buffered: TimeRangesTuple;
|
|
352
|
+
seekable: TimeRangesTuple;
|
|
353
|
+
error: {
|
|
354
|
+
code: number;
|
|
355
|
+
message: string;
|
|
356
|
+
} | null;
|
|
301
357
|
};
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
358
|
+
type RemoteVideoElement = EventTarget & {
|
|
359
|
+
currentTime: number;
|
|
360
|
+
volume: number;
|
|
361
|
+
muted: boolean;
|
|
362
|
+
playbackRate: number;
|
|
363
|
+
src: string;
|
|
364
|
+
loop: boolean;
|
|
365
|
+
autoplay: boolean;
|
|
366
|
+
preload: string;
|
|
367
|
+
poster: string;
|
|
368
|
+
disableRemotePlayback: boolean;
|
|
369
|
+
readonly duration: number;
|
|
370
|
+
readonly paused: boolean;
|
|
371
|
+
readonly ended: boolean;
|
|
372
|
+
readonly seeking: boolean;
|
|
373
|
+
readonly readyState: number;
|
|
374
|
+
readonly currentSrc: string;
|
|
375
|
+
readonly error: MediaError | null;
|
|
376
|
+
readonly buffered: TimeRanges;
|
|
377
|
+
readonly seekable: TimeRanges;
|
|
378
|
+
play(): Promise<void>;
|
|
379
|
+
pause(): void;
|
|
380
|
+
load(): void;
|
|
381
|
+
requestPictureInPicture(): Promise<void>;
|
|
382
|
+
exitPictureInPicture(): Promise<void>;
|
|
383
|
+
readonly HAVE_FUTURE_DATA: 3;
|
|
384
|
+
readonly HAVE_ENOUGH_DATA: 4;
|
|
309
385
|
};
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
readonly description: 'Lets the app restyle parts of the page (safely filtered).';
|
|
316
|
-
} | {
|
|
317
|
-
readonly scope: 'media.appearU';
|
|
318
|
-
readonly category: 'media';
|
|
319
|
-
readonly severity: 2;
|
|
320
|
-
readonly unsafe: true;
|
|
321
|
-
readonly title: 'Change page appearance (unsafe)';
|
|
322
|
-
readonly description: 'Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.';
|
|
386
|
+
type BoxedVideoElement = BoxBase<typeof type> & {
|
|
387
|
+
initialState: VideoElementState;
|
|
388
|
+
controller: Capable;
|
|
389
|
+
} & {
|
|
390
|
+
[UnderlyingType]: RemoteVideoElement;
|
|
323
391
|
};
|
|
324
|
-
declare const
|
|
325
|
-
declare const
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
declare const frameLocatorModule: {
|
|
329
|
-
readonly type: "frameLocator";
|
|
330
|
-
readonly selectorModules: readonly [{
|
|
331
|
-
readonly type: 'locator';
|
|
332
|
-
readonly resolve: (context: LocatorContext, selector: string) => Element[];
|
|
333
|
-
readonly render: SelectorRenderer;
|
|
334
|
-
readonly nextLocatorType: 'locator';
|
|
335
|
-
}, typeof frame_locator_d_exports, typeof owner_d_exports];
|
|
336
|
-
readonly operationModules: readonly [typeof add_style_tag_d_exports];
|
|
337
|
-
};
|
|
338
|
-
type FrameLocatorModule = typeof frameLocatorModule;
|
|
339
|
-
interface FrameLocator extends LocatorChain<FrameLocatorModule, FrameLocator> {}
|
|
340
|
-
//#endregion
|
|
341
|
-
//#region node_modules/@mfkn/web-extension/lib/utils/frame.d.ts
|
|
342
|
-
type FrameId = `${number}-${number}`;
|
|
392
|
+
declare const createVideoElementHandle: (element: HTMLVideoElement) => RemoteVideoElement;
|
|
393
|
+
declare const isType: (value: unknown) => value is RemoteVideoElement;
|
|
394
|
+
declare const box: <T extends RemoteVideoElement, T2 extends RevivableContext>(value: T, context: T2) => BoxedVideoElement;
|
|
395
|
+
declare const revive: <T extends BoxedVideoElement, T2 extends RevivableContext>(value: T, context: T2) => T[UnderlyingType];
|
|
343
396
|
//#endregion
|
|
344
|
-
//#region node_modules/@mfkn/web-extension/lib/
|
|
345
|
-
|
|
346
|
-
type
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
397
|
+
//#region node_modules/@mfkn/web-extension/lib/lib/revivables/index.d.ts
|
|
398
|
+
declare const handleRevivableModules: (defaults: DefaultRevivableModules) => readonly [typeof video_d_exports, typeof import("osra/build/revivables/transfer"), typeof import("osra/build/revivables/identity"), typeof import("osra/build/revivables/array-buffer"), typeof import("osra/build/revivables/date"), typeof import("osra/build/revivables/headers"), typeof import("osra/build/revivables/error"), typeof import("osra/build/revivables/typed-array"), typeof import("osra/build/revivables/promise"), typeof import("osra/build/revivables/function"), typeof import("osra/build/revivables/message-port"), typeof import("osra/build/revivables/readable-stream"), typeof import("osra/build/revivables/writable-stream"), typeof import("osra/build/revivables/abort-signal"), typeof import("osra/build/revivables/response"), typeof import("osra/build/revivables/request"), typeof import("osra/build/revivables/map"), typeof import("osra/build/revivables/set"), typeof import("osra/build/revivables/bigint"), typeof import("osra/build/revivables/symbol"), typeof import("osra/build/revivables/event"), typeof import("osra/build/revivables/async-iterator"), {
|
|
399
|
+
readonly type: 'nonFiniteNumber';
|
|
400
|
+
readonly isType: (value: unknown) => value is number;
|
|
401
|
+
readonly box: (value: number, context: import("osra").RevivableContext<any>) => import("osra/build/revivables/json-primitives").BoxedNonFiniteNumber | number;
|
|
402
|
+
readonly revive: (value: import("osra/build/revivables/json-primitives").BoxedNonFiniteNumber, _context: import("osra").RevivableContext<any>) => number;
|
|
403
|
+
}, {
|
|
404
|
+
readonly type: 'undefined';
|
|
405
|
+
readonly isType: (value: unknown) => value is undefined;
|
|
406
|
+
readonly box: (value: undefined, context: import("osra").RevivableContext<any>) => import("osra/build/revivables/json-primitives").BoxedUndefined | undefined;
|
|
407
|
+
readonly revive: (_value: import("osra/build/revivables/json-primitives").BoxedUndefined, _context: import("osra").RevivableContext<any>) => undefined;
|
|
408
|
+
}, {
|
|
409
|
+
readonly type: 'clonable';
|
|
410
|
+
readonly capableOnly: true;
|
|
411
|
+
readonly isType: (value: unknown) => value is import("osra/build/revivables/fallbacks").Clonable;
|
|
412
|
+
readonly box: (value: import("osra/build/revivables/fallbacks").Clonable, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").Clonable;
|
|
413
|
+
readonly revive: (value: import("osra/build/revivables/fallbacks").BoxedClonable, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").Clonable;
|
|
414
|
+
}, {
|
|
415
|
+
readonly type: 'transferable';
|
|
416
|
+
readonly capableOnly: true;
|
|
417
|
+
readonly isType: (value: unknown) => value is import("osra/build/revivables/fallbacks").Transferable;
|
|
418
|
+
readonly box: (value: import("osra/build/revivables/fallbacks").Transferable, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").Transferable;
|
|
419
|
+
readonly revive: (value: import("osra/build/revivables/fallbacks").BoxedTransferable, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").Transferable;
|
|
420
|
+
}, {
|
|
421
|
+
readonly type: 'blobGuard';
|
|
422
|
+
readonly isType: (value: unknown) => value is never;
|
|
423
|
+
readonly box: (value: never, context: import("osra").RevivableContext<any>) => Blob;
|
|
424
|
+
readonly revive: (value: import("osra/build/revivables/fallbacks").BoxedBlobGuard, _context: import("osra").RevivableContext<any>) => Blob;
|
|
425
|
+
}, typeof import("osra/build/revivables/event-target"), {
|
|
426
|
+
readonly type: 'unclonable';
|
|
427
|
+
readonly isType: (value: unknown) => value is never;
|
|
428
|
+
readonly box: (_value: never, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").BoxedUnclonable;
|
|
429
|
+
readonly revive: (_value: import("osra/build/revivables/fallbacks").BoxedUnclonable, _context: import("osra").RevivableContext<any>) => Record<string, never>;
|
|
430
|
+
}];
|
|
355
431
|
//#endregion
|
|
356
|
-
//#region node_modules/@mfkn/web-extension/lib/
|
|
357
|
-
type
|
|
358
|
-
elements: Element[];
|
|
359
|
-
};
|
|
360
|
-
type OperationTimeoutOptions = {
|
|
361
|
-
timeout?: number;
|
|
432
|
+
//#region node_modules/@mfkn/web-extension/lib/lib/locator-modules.d.ts
|
|
433
|
+
type LocatorOptions = OperationOptions & {
|
|
362
434
|
reason?: string;
|
|
363
435
|
};
|
|
364
|
-
type
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
};
|
|
369
|
-
type BarrierResolver = (context: BarrierContext) => Promise<FrameId>;
|
|
370
|
-
type SelectorRenderResult = {
|
|
371
|
-
fragment: string;
|
|
372
|
-
separator?: 'descend' | 'frame-down' | 'frame-up';
|
|
436
|
+
type PositionOptions = LocatorOptions & {
|
|
437
|
+
position?: {
|
|
438
|
+
x?: number;
|
|
439
|
+
y?: number;
|
|
440
|
+
};
|
|
373
441
|
};
|
|
374
|
-
type
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
resolve: (context: LocatorContext, ...args: any[]) => Element[];
|
|
378
|
-
nextLocatorType?: 'locator' | 'frameLocator';
|
|
379
|
-
resolvePeer?: BarrierResolver;
|
|
380
|
-
render?: SelectorRenderer;
|
|
442
|
+
type AddStyleTagOptions = LocatorOptions & {
|
|
443
|
+
content: string;
|
|
444
|
+
noSanitize?: boolean;
|
|
381
445
|
};
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
};
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
446
|
+
declare const locatorModules: Extended<{
|
|
447
|
+
readonly element: {
|
|
448
|
+
readonly selectors: {
|
|
449
|
+
readonly locator: {
|
|
450
|
+
readonly to: "element";
|
|
451
|
+
readonly css: true;
|
|
452
|
+
readonly resolve: (context: LocatorContext, selector: string) => Element[];
|
|
453
|
+
readonly render: (selector: unknown) => {
|
|
454
|
+
fragment: string;
|
|
455
|
+
separator: "descend";
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
readonly frameLocator: {
|
|
459
|
+
readonly to: "frame";
|
|
460
|
+
readonly css: true;
|
|
461
|
+
readonly barrier: "down";
|
|
462
|
+
readonly resolve: (context: LocatorContext, selector: string) => Element[];
|
|
463
|
+
readonly render: (selector: unknown) => {
|
|
464
|
+
fragment: string;
|
|
465
|
+
separator: "down";
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
readonly getByRole: {
|
|
469
|
+
readonly to: "element";
|
|
470
|
+
readonly resolve: (context: LocatorContext, role: string) => Element[];
|
|
471
|
+
readonly render: (role: unknown) => {
|
|
472
|
+
fragment: string;
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
readonly getByText: {
|
|
476
|
+
readonly to: "element";
|
|
477
|
+
readonly resolve: (context: LocatorContext, text: string) => Element[];
|
|
478
|
+
readonly render: (text: unknown) => {
|
|
479
|
+
fragment: string;
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
readonly getByTestId: {
|
|
483
|
+
readonly to: "element";
|
|
484
|
+
readonly resolve: (context: LocatorContext, testId: string) => Element[];
|
|
485
|
+
readonly render: (testId: unknown) => {
|
|
486
|
+
fragment: string;
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
readonly first: {
|
|
490
|
+
readonly to: "element";
|
|
491
|
+
readonly resolve: (context: LocatorContext) => Element[];
|
|
492
|
+
readonly render: () => {
|
|
493
|
+
fragment: string;
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
readonly nth: {
|
|
497
|
+
readonly to: "element";
|
|
498
|
+
readonly resolve: (context: LocatorContext, index: number) => Element[];
|
|
499
|
+
readonly render: (index: unknown) => {
|
|
500
|
+
fragment: string;
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
readonly operations: {
|
|
505
|
+
readonly click: {
|
|
506
|
+
readonly resolve: (context: LocatorContext, options?: PositionOptions$1) => void;
|
|
507
|
+
};
|
|
508
|
+
readonly fill: {
|
|
509
|
+
readonly resolve: (context: LocatorContext, value: string, _options?: OperationOptions) => void;
|
|
510
|
+
};
|
|
511
|
+
readonly hover: {
|
|
512
|
+
readonly resolve: (context: LocatorContext, options?: PositionOptions$1) => void;
|
|
513
|
+
};
|
|
514
|
+
readonly textContent: {
|
|
515
|
+
readonly resolve: (context: LocatorContext, _options?: OperationOptions) => string;
|
|
516
|
+
};
|
|
517
|
+
readonly getAttribute: {
|
|
518
|
+
readonly resolve: (context: LocatorContext, name: string, _options?: OperationOptions) => string | null;
|
|
519
|
+
};
|
|
520
|
+
readonly isVisible: {
|
|
521
|
+
readonly resolve: (context: LocatorContext, _options?: OperationOptions) => boolean;
|
|
522
|
+
};
|
|
523
|
+
readonly count: {
|
|
524
|
+
readonly resolve: (context: LocatorContext, _options?: OperationOptions) => number;
|
|
525
|
+
};
|
|
526
|
+
readonly exists: {
|
|
527
|
+
readonly resolve: (context: LocatorContext, _options?: OperationOptions) => boolean;
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
readonly frame: {
|
|
532
|
+
readonly selectors: {
|
|
533
|
+
readonly locator: {
|
|
534
|
+
readonly to: "element";
|
|
535
|
+
readonly css: true;
|
|
536
|
+
readonly resolve: (context: LocatorContext, selector: string) => Element[];
|
|
537
|
+
readonly render: (selector: unknown) => {
|
|
538
|
+
fragment: string;
|
|
539
|
+
separator: "descend";
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
readonly frameLocator: {
|
|
543
|
+
readonly to: "frame";
|
|
544
|
+
readonly css: true;
|
|
545
|
+
readonly barrier: "down";
|
|
546
|
+
readonly resolve: (context: LocatorContext, selector: string) => Element[];
|
|
547
|
+
readonly render: (selector: unknown) => {
|
|
548
|
+
fragment: string;
|
|
549
|
+
separator: "down";
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
readonly owner: {
|
|
553
|
+
readonly to: "frame";
|
|
554
|
+
readonly barrier: "up";
|
|
555
|
+
readonly resolve: (_context: LocatorContext) => Element[];
|
|
556
|
+
readonly render: () => {
|
|
557
|
+
fragment: string;
|
|
558
|
+
separator: "up";
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
readonly operations: {
|
|
563
|
+
readonly addStyleTag: {
|
|
564
|
+
readonly resolve: (context: LocatorContext, options: AddStyleTagOptions$1) => void;
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
}, {
|
|
569
|
+
readonly element: {
|
|
570
|
+
operations: {
|
|
571
|
+
click: {
|
|
572
|
+
resolve: (context: LocatorContext, options?: PositionOptions) => void;
|
|
573
|
+
};
|
|
574
|
+
hover: {
|
|
575
|
+
resolve: (context: LocatorContext, options?: PositionOptions) => void;
|
|
576
|
+
};
|
|
577
|
+
fill: {
|
|
578
|
+
resolve: (context: LocatorContext, value: string, options?: LocatorOptions) => void;
|
|
579
|
+
};
|
|
580
|
+
textContent: {
|
|
581
|
+
resolve: (context: LocatorContext, _options?: LocatorOptions) => string;
|
|
582
|
+
};
|
|
583
|
+
getAttribute: {
|
|
584
|
+
resolve: (context: LocatorContext, name: string, _options?: LocatorOptions) => string | null;
|
|
585
|
+
};
|
|
586
|
+
isVisible: {
|
|
587
|
+
resolve: (context: LocatorContext, _options?: LocatorOptions) => boolean;
|
|
588
|
+
};
|
|
589
|
+
count: {
|
|
590
|
+
resolve: (context: LocatorContext, _options?: LocatorOptions) => number;
|
|
591
|
+
};
|
|
592
|
+
exists: {
|
|
593
|
+
resolve: (context: LocatorContext, _options?: LocatorOptions) => boolean;
|
|
594
|
+
};
|
|
595
|
+
videoElement: {
|
|
596
|
+
resolve: (context: LocatorContext, _options?: LocatorOptions) => RemoteVideoElement;
|
|
597
|
+
};
|
|
598
|
+
};
|
|
599
|
+
};
|
|
600
|
+
readonly frame: {
|
|
601
|
+
operations: {
|
|
602
|
+
addStyleTag: {
|
|
603
|
+
resolve: (context: LocatorContext, options: AddStyleTagOptions) => void;
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
}>;
|
|
608
|
+
type LocatorModules = typeof locatorModules;
|
|
415
609
|
//#endregion
|
|
416
610
|
//#region node_modules/@mfkn/web-extension/lib/lib/frame-url.d.ts
|
|
417
611
|
declare const isBlockedFrameUrl: (raw: string) => boolean;
|
|
@@ -427,6 +621,7 @@ declare const assertLockdownApplicable: ({
|
|
|
427
621
|
}) => void;
|
|
428
622
|
//#endregion
|
|
429
623
|
//#region node_modules/@mfkn/web-extension/lib/lib/frame-core.d.ts
|
|
624
|
+
type Locator = Locator$1<LocatorModules>;
|
|
430
625
|
declare const attachFramePermission: {
|
|
431
626
|
readonly scope: 'embed.iframe';
|
|
432
627
|
readonly category: 'embed';
|
|
@@ -445,7 +640,7 @@ type GotoOptions = {
|
|
|
445
640
|
waitUntil?: 'documentstart' | 'load';
|
|
446
641
|
domains?: string[];
|
|
447
642
|
};
|
|
448
|
-
type Frame = FrameLocator & {
|
|
643
|
+
type Frame = FrameLocator<LocatorModules> & {
|
|
449
644
|
goto(url: string, options?: GotoOptions): Promise<void>;
|
|
450
645
|
url(): string;
|
|
451
646
|
};
|
|
@@ -456,8 +651,8 @@ type AttachFrameOptions = {
|
|
|
456
651
|
lockdown?: boolean;
|
|
457
652
|
};
|
|
458
653
|
type FrameBackend = {
|
|
459
|
-
|
|
460
|
-
|
|
654
|
+
executor: Executor;
|
|
655
|
+
gate?: Gate;
|
|
461
656
|
goto(url: string, options?: GotoOptions): Promise<void>;
|
|
462
657
|
url(): string;
|
|
463
658
|
};
|
|
@@ -603,108 +798,6 @@ type PermissionGrant = {
|
|
|
603
798
|
declare const permissions: {
|
|
604
799
|
request: (requests: PermissionRequest[]) => Promise<PermissionGrant[]>;
|
|
605
800
|
};
|
|
606
|
-
declare namespace video_d_exports {
|
|
607
|
-
export { BoxedVideoElement, RemoteVideoElement, VideoElementState, box, createVideoElementHandle, isType, revive, type };
|
|
608
|
-
}
|
|
609
|
-
declare const type: 'videoElement';
|
|
610
|
-
type TimeRangesTuple = [number, number][];
|
|
611
|
-
type VideoElementState = {
|
|
612
|
-
currentTime: number;
|
|
613
|
-
volume: number;
|
|
614
|
-
muted: boolean;
|
|
615
|
-
playbackRate: number;
|
|
616
|
-
src: string;
|
|
617
|
-
loop: boolean;
|
|
618
|
-
autoplay: boolean;
|
|
619
|
-
preload: string;
|
|
620
|
-
poster: string;
|
|
621
|
-
disableRemotePlayback: boolean;
|
|
622
|
-
duration: number;
|
|
623
|
-
paused: boolean;
|
|
624
|
-
ended: boolean;
|
|
625
|
-
seeking: boolean;
|
|
626
|
-
readyState: number;
|
|
627
|
-
currentSrc: string;
|
|
628
|
-
buffered: TimeRangesTuple;
|
|
629
|
-
seekable: TimeRangesTuple;
|
|
630
|
-
error: {
|
|
631
|
-
code: number;
|
|
632
|
-
message: string;
|
|
633
|
-
} | null;
|
|
634
|
-
};
|
|
635
|
-
type RemoteVideoElement = EventTarget & {
|
|
636
|
-
currentTime: number;
|
|
637
|
-
volume: number;
|
|
638
|
-
muted: boolean;
|
|
639
|
-
playbackRate: number;
|
|
640
|
-
src: string;
|
|
641
|
-
loop: boolean;
|
|
642
|
-
autoplay: boolean;
|
|
643
|
-
preload: string;
|
|
644
|
-
poster: string;
|
|
645
|
-
disableRemotePlayback: boolean;
|
|
646
|
-
readonly duration: number;
|
|
647
|
-
readonly paused: boolean;
|
|
648
|
-
readonly ended: boolean;
|
|
649
|
-
readonly seeking: boolean;
|
|
650
|
-
readonly readyState: number;
|
|
651
|
-
readonly currentSrc: string;
|
|
652
|
-
readonly error: MediaError | null;
|
|
653
|
-
readonly buffered: TimeRanges;
|
|
654
|
-
readonly seekable: TimeRanges;
|
|
655
|
-
play(): Promise<void>;
|
|
656
|
-
pause(): void;
|
|
657
|
-
load(): void;
|
|
658
|
-
requestPictureInPicture(): Promise<void>;
|
|
659
|
-
exitPictureInPicture(): Promise<void>;
|
|
660
|
-
readonly HAVE_FUTURE_DATA: 3;
|
|
661
|
-
readonly HAVE_ENOUGH_DATA: 4;
|
|
662
|
-
};
|
|
663
|
-
type BoxedVideoElement = BoxBase<typeof type> & {
|
|
664
|
-
initialState: VideoElementState;
|
|
665
|
-
controller: Capable;
|
|
666
|
-
} & {
|
|
667
|
-
[UnderlyingType]: RemoteVideoElement;
|
|
668
|
-
};
|
|
669
|
-
declare const createVideoElementHandle: (element: HTMLVideoElement) => RemoteVideoElement;
|
|
670
|
-
declare const isType: (value: unknown) => value is RemoteVideoElement;
|
|
671
|
-
declare const box: <T extends RemoteVideoElement, T2 extends RevivableContext>(value: T, context: T2) => BoxedVideoElement;
|
|
672
|
-
declare const revive: <T extends BoxedVideoElement, T2 extends RevivableContext>(value: T, context: T2) => T[UnderlyingType];
|
|
673
|
-
//#endregion
|
|
674
|
-
//#region node_modules/@mfkn/web-extension/lib/lib/revivables/index.d.ts
|
|
675
|
-
declare const handleRevivableModules: (defaults: DefaultRevivableModules) => readonly [typeof video_d_exports, typeof import("osra/build/revivables/transfer"), typeof import("osra/build/revivables/identity"), typeof import("osra/build/revivables/array-buffer"), typeof import("osra/build/revivables/date"), typeof import("osra/build/revivables/headers"), typeof import("osra/build/revivables/error"), typeof import("osra/build/revivables/typed-array"), typeof import("osra/build/revivables/promise"), typeof import("osra/build/revivables/function"), typeof import("osra/build/revivables/message-port"), typeof import("osra/build/revivables/readable-stream"), typeof import("osra/build/revivables/writable-stream"), typeof import("osra/build/revivables/abort-signal"), typeof import("osra/build/revivables/response"), typeof import("osra/build/revivables/request"), typeof import("osra/build/revivables/map"), typeof import("osra/build/revivables/set"), typeof import("osra/build/revivables/bigint"), typeof import("osra/build/revivables/symbol"), typeof import("osra/build/revivables/event"), typeof import("osra/build/revivables/async-iterator"), {
|
|
676
|
-
readonly type: 'nonFiniteNumber';
|
|
677
|
-
readonly isType: (value: unknown) => value is number;
|
|
678
|
-
readonly box: (value: number, context: import("osra").RevivableContext<any>) => import("osra/build/revivables/json-primitives").BoxedNonFiniteNumber | number;
|
|
679
|
-
readonly revive: (value: import("osra/build/revivables/json-primitives").BoxedNonFiniteNumber, _context: import("osra").RevivableContext<any>) => number;
|
|
680
|
-
}, {
|
|
681
|
-
readonly type: 'undefined';
|
|
682
|
-
readonly isType: (value: unknown) => value is undefined;
|
|
683
|
-
readonly box: (value: undefined, context: import("osra").RevivableContext<any>) => import("osra/build/revivables/json-primitives").BoxedUndefined | undefined;
|
|
684
|
-
readonly revive: (_value: import("osra/build/revivables/json-primitives").BoxedUndefined, _context: import("osra").RevivableContext<any>) => undefined;
|
|
685
|
-
}, {
|
|
686
|
-
readonly type: 'clonable';
|
|
687
|
-
readonly capableOnly: true;
|
|
688
|
-
readonly isType: (value: unknown) => value is import("osra/build/revivables/fallbacks").Clonable;
|
|
689
|
-
readonly box: (value: import("osra/build/revivables/fallbacks").Clonable, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").Clonable;
|
|
690
|
-
readonly revive: (value: import("osra/build/revivables/fallbacks").BoxedClonable, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").Clonable;
|
|
691
|
-
}, {
|
|
692
|
-
readonly type: 'transferable';
|
|
693
|
-
readonly capableOnly: true;
|
|
694
|
-
readonly isType: (value: unknown) => value is import("osra/build/revivables/fallbacks").Transferable;
|
|
695
|
-
readonly box: (value: import("osra/build/revivables/fallbacks").Transferable, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").Transferable;
|
|
696
|
-
readonly revive: (value: import("osra/build/revivables/fallbacks").BoxedTransferable, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").Transferable;
|
|
697
|
-
}, {
|
|
698
|
-
readonly type: 'blobGuard';
|
|
699
|
-
readonly isType: (value: unknown) => value is never;
|
|
700
|
-
readonly box: (value: never, context: import("osra").RevivableContext<any>) => Blob;
|
|
701
|
-
readonly revive: (value: import("osra/build/revivables/fallbacks").BoxedBlobGuard, _context: import("osra").RevivableContext<any>) => Blob;
|
|
702
|
-
}, typeof import("osra/build/revivables/event-target"), {
|
|
703
|
-
readonly type: 'unclonable';
|
|
704
|
-
readonly isType: (value: unknown) => value is never;
|
|
705
|
-
readonly box: (_value: never, _context: import("osra").RevivableContext<any>) => import("osra/build/revivables/fallbacks").BoxedUnclonable;
|
|
706
|
-
readonly revive: (_value: import("osra/build/revivables/fallbacks").BoxedUnclonable, _context: import("osra").RevivableContext<any>) => Record<string, never>;
|
|
707
|
-
}];
|
|
708
801
|
//#endregion
|
|
709
802
|
//#region node_modules/@mfkn/web-extension/lib/utils/extension.d.ts
|
|
710
803
|
type ExtensionEventMap = {
|
|
@@ -718,4 +811,4 @@ type MissingExtensionHandler = () => Promise<void>;
|
|
|
718
811
|
declare const setMissingExtensionHandler: (handler: MissingExtensionHandler | null) => void;
|
|
719
812
|
declare const waitForExtensionExposure: (timeout?: number) => Promise<void>;
|
|
720
813
|
//#endregion
|
|
721
|
-
export {
|
|
814
|
+
export { fetch as $, LOCATOR_DENIED as A, SelectorPart as B, RemoteVideoElement as C, isType as D, createVideoElementHandle as E, isTerminalError as F, setRequestHeaderRule as G, RequestHeaderRule as H, Executor as I, cookies as J, CookieDetails as K, Gate as L, LOCATOR_UNSUPPORTED as M, isLocatorDenied as N, revive as O, isLocatorUnsupported as P, assertFetchableUrl as Q, GateTools as R, BoxedVideoElement as S, box as T, modifyRequestHeadersPermission as U, HeaderOperation as V, removeRequestHeaderRule as W, FetchInit as X, readCookiePermission as Y, ProxyFetchRequest as Z, gotoPermission as _, PermissionGrant as a, isBlockedFrameUrl as b, ATTACH_FRAME_EVENT_KEY as c, Frame as d, fetchCredentialedPermission as et, FrameBackend as f, createFrame as g, attachFramePermission as h, waitForExtensionExposure as i, isLocalNetworkUrl as it, LOCATOR_ERROR as j, type as k, attachFrame as l, Locator as m, isExtensionExposed as n, fetchPermission as nt, PermissionRequest as o, GotoOptions as p, SiteCookie as q, setMissingExtensionHandler as r, isBlockedFetchUrl as rt, permissions as s, extension as t, fetchLocalPermission as tt, AttachFrameOptions as u, assertAttachableFrameUrl as v, VideoElementState as w, handleRevivableModules as x, assertLockdownApplicable as y, OperationRequest as z };
|