scordi-extension 1.14.6 → 1.14.8

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 (86) hide show
  1. package/dist/assets/loading-page-1924caaa.js +51 -0
  2. package/dist/blocks/ClearValueFormBlock.d.ts +8 -8
  3. package/dist/blocks/DataExtractBlock.d.ts +2 -2
  4. package/dist/blocks/ElementExistsBlock.d.ts +8 -8
  5. package/dist/blocks/EventClickBlock.d.ts +12 -12
  6. package/dist/blocks/FetchApiBlock.d.ts +2 -2
  7. package/dist/blocks/GetAttributeValueBlock.d.ts +8 -8
  8. package/dist/blocks/GetElementDataBlock.d.ts +14 -14
  9. package/dist/blocks/GetTextBlock.d.ts +10 -10
  10. package/dist/blocks/GetValueFormBlock.d.ts +8 -8
  11. package/dist/blocks/SaveAssetsBlock.d.ts +8 -8
  12. package/dist/blocks/ScrollBlock.d.ts +8 -8
  13. package/dist/blocks/SetValueFormBlock.d.ts +8 -8
  14. package/dist/blocks/WaitForConditionBlock.d.ts +176 -0
  15. package/dist/blocks/WaitForConditionBlock.d.ts.map +1 -0
  16. package/dist/blocks/index.d.ts +232 -96
  17. package/dist/blocks/index.d.ts.map +1 -1
  18. package/dist/blocks/types.d.ts +25 -8
  19. package/dist/blocks/types.d.ts.map +1 -1
  20. package/dist/logo.png +0 -0
  21. package/dist/manifest.json +55 -0
  22. package/dist/public/logo.png +0 -0
  23. package/dist/sdk/index.cjs +4 -1
  24. package/dist/sdk/index.d.ts +1 -0
  25. package/dist/sdk/index.d.ts.map +1 -1
  26. package/dist/sdk/index.js +5569 -1437
  27. package/dist/sdk/types.d.ts +3 -3
  28. package/dist/sdk/types.d.ts.map +1 -1
  29. package/dist/service-worker-loader.js +3 -0
  30. package/dist/src/blocks/AiParseDataBlock.ts.js +101 -0
  31. package/dist/src/blocks/ClearValueFormBlock.ts.js +55 -0
  32. package/dist/src/blocks/DataExtractBlock.ts.js +28 -0
  33. package/dist/src/blocks/ElementExistsBlock.ts.js +26 -0
  34. package/dist/src/blocks/EventClickBlock.ts.js +143 -0
  35. package/dist/src/blocks/FetchApiBlock.ts.js +50 -0
  36. package/dist/src/blocks/GetAttributeValueBlock.ts.js +33 -0
  37. package/dist/src/blocks/GetElementDataBlock.ts.js +114 -0
  38. package/dist/src/blocks/GetTextBlock.ts.js +152 -0
  39. package/dist/src/blocks/GetValueFormBlock.ts.js +52 -0
  40. package/dist/src/blocks/KeypressBlock.ts.js +89 -0
  41. package/dist/src/blocks/SaveAssetsBlock.ts.js +35 -0
  42. package/dist/src/blocks/ScrollBlock.ts.js +111 -0
  43. package/dist/src/blocks/SetValueFormBlock.ts.js +56 -0
  44. package/dist/src/blocks/WaitBlock.ts.js +24 -0
  45. package/dist/src/blocks/WaitForConditionBlock.ts.js +187 -0
  46. package/dist/src/blocks/index.ts.js +174 -0
  47. package/dist/src/blocks/types.ts.js +12 -0
  48. package/dist/src/content/components/ConfirmationUI.tsx.js +236 -0
  49. package/dist/src/content/elements/finders/CssSelector.ts.js +51 -0
  50. package/dist/src/content/elements/finders/ElementSelector.ts.js +20 -0
  51. package/dist/src/content/elements/finders/IframeSelector.ts.js +32 -0
  52. package/dist/src/content/elements/finders/ShadowDOMSelector.ts.js +38 -0
  53. package/dist/src/content/elements/finders/XPathFinder.ts.js +32 -0
  54. package/dist/src/content/elements/index.ts.js +26 -0
  55. package/dist/src/content/elements/utils/CSSSelectorGenerator.ts.js +72 -0
  56. package/dist/src/content/elements/utils/XPathGenerator.ts.js +62 -0
  57. package/dist/src/content/handler/ExternalMessageHandler.ts.js +78 -0
  58. package/dist/src/content/handler/InternalMessageHandler.ts.js +18 -0
  59. package/dist/src/content/kernel/MessageKernel.ts.js +83 -0
  60. package/dist/src/content/main.tsx-loader.js +22 -0
  61. package/dist/src/content/main.tsx.js +27 -0
  62. package/dist/src/content/utils/index.ts.js +1 -0
  63. package/dist/src/content/utils/synchronizedLock.ts.js +35 -0
  64. package/dist/src/popup/index.html +12 -0
  65. package/dist/src/types/internal-messages.ts.js +15 -0
  66. package/dist/vendor/.vite-deps-chunk-2TUXWMP5.js__v--9054997c.js +45 -0
  67. package/dist/vendor/.vite-deps-chunk-2TUXWMP5.js__v--e2a1f584.js +45 -0
  68. package/dist/vendor/.vite-deps-chunk-EL3BNLGW.js__v--e2a1f584.js +975 -0
  69. package/dist/vendor/.vite-deps-chunk-QIBDMRD4.js__v--9054997c.js +4158 -0
  70. package/dist/vendor/.vite-deps-chunk-QIBDMRD4.js__v--e2a1f584.js +4158 -0
  71. package/dist/vendor/.vite-deps-chunk-XHY3JSIG.js__v--e2a1f584.js +280 -0
  72. package/dist/vendor/.vite-deps-jsonata.js__v--d602c657.js +5761 -0
  73. package/dist/vendor/.vite-deps-jsonata.js__v--e2a1f584.js +5761 -0
  74. package/dist/vendor/.vite-deps-react-dom.js__v--e2a1f584.js +6 -0
  75. package/dist/vendor/.vite-deps-react-dom_client.js__v--e2a1f584.js +18108 -0
  76. package/dist/vendor/.vite-deps-react.js__v--e2a1f584.js +5 -0
  77. package/dist/vendor/.vite-deps-react_jsx-dev-runtime.js__v--e2a1f584.js +281 -0
  78. package/dist/vendor/.vite-deps-zod.js__v--9e0f4cc1.js +219 -0
  79. package/dist/vendor/.vite-deps-zod.js__v--e2a1f584.js +219 -0
  80. package/dist/vendor/crx-client-port.js +66 -0
  81. package/dist/vendor/crx-client-preamble.js +4 -0
  82. package/dist/vendor/react-refresh.js +670 -0
  83. package/dist/vendor/vite-client.js +1134 -0
  84. package/dist/vendor/vite-dist-client-env.mjs.js +24 -0
  85. package/dist/vendor/webcomponents-custom-elements.js +47 -0
  86. package/package.json +1 -1
@@ -9,6 +9,7 @@ export type { ElementExistsBlock } from './ElementExistsBlock';
9
9
  export type { EventClickBlock } from './EventClickBlock';
10
10
  export type { KeypressBlock } from './KeypressBlock';
11
11
  export type { WaitBlock } from './WaitBlock';
12
+ export type { WaitForConditionBlock, WaitForConditionResult } from './WaitForConditionBlock';
12
13
  export type { SaveAssetsBlock } from './SaveAssetsBlock';
13
14
  export type { GetElementDataBlock, ElementData } from './GetElementDataBlock';
14
15
  export type { ScrollBlock } from './ScrollBlock';
@@ -25,6 +26,7 @@ export { ElementExistsBlockSchema } from './ElementExistsBlock';
25
26
  export { EventClickBlockSchema } from './EventClickBlock';
26
27
  export { KeypressBlockSchema } from './KeypressBlock';
27
28
  export { WaitBlockSchema } from './WaitBlock';
29
+ export { WaitForConditionBlockSchema } from './WaitForConditionBlock';
28
30
  export { SaveAssetsBlockSchema } from './SaveAssetsBlock';
29
31
  export { GetElementDataBlockSchema } from './GetElementDataBlock';
30
32
  export { ScrollBlockSchema } from './ScrollBlock';
@@ -40,6 +42,7 @@ import { ElementExistsBlock } from './ElementExistsBlock';
40
42
  import { EventClickBlock } from './EventClickBlock';
41
43
  import { KeypressBlock } from './KeypressBlock';
42
44
  import { WaitBlock } from './WaitBlock';
45
+ import { WaitForConditionBlock, WaitForConditionResult } from './WaitForConditionBlock';
43
46
  import { SaveAssetsBlock } from './SaveAssetsBlock';
44
47
  import { GetElementDataBlock, ElementData } from './GetElementDataBlock';
45
48
  import { ScrollBlock } from './ScrollBlock';
@@ -56,13 +59,13 @@ export declare const AllBlockSchemas: {
56
59
  waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
57
60
  multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
58
61
  }, "strip", import("zod").ZodTypeAny, {
62
+ multiple?: boolean | undefined;
59
63
  waitForSelector?: boolean | undefined;
60
64
  waitSelectorTimeout?: number | undefined;
61
- multiple?: boolean | undefined;
62
65
  }, {
66
+ multiple?: boolean | undefined;
63
67
  waitForSelector?: boolean | undefined;
64
68
  waitSelectorTimeout?: number | undefined;
65
- multiple?: boolean | undefined;
66
69
  }>;
67
70
  } & {
68
71
  name: import("zod").ZodLiteral<"get-text">;
@@ -77,17 +80,17 @@ export declare const AllBlockSchemas: {
77
80
  scrollWaitMs: import("zod").ZodOptional<import("zod").ZodNumber>;
78
81
  maxScrollAttempts: import("zod").ZodOptional<import("zod").ZodNumber>;
79
82
  }, "strip", import("zod").ZodTypeAny, {
80
- name: "get-text";
81
83
  selector: string;
82
- findBy: "cssSelector" | "xpath";
83
84
  option: {
85
+ multiple?: boolean | undefined;
84
86
  waitForSelector?: boolean | undefined;
85
87
  waitSelectorTimeout?: number | undefined;
86
- multiple?: boolean | undefined;
87
88
  };
88
- regex?: string | undefined;
89
+ name: "get-text";
90
+ findBy: "cssSelector" | "xpath";
89
91
  includeTags?: boolean | undefined;
90
92
  useTextContent?: boolean | undefined;
93
+ regex?: string | undefined;
91
94
  prefixText?: string | undefined;
92
95
  suffixText?: string | undefined;
93
96
  filterEmpty?: boolean | undefined;
@@ -96,17 +99,17 @@ export declare const AllBlockSchemas: {
96
99
  scrollWaitMs?: number | undefined;
97
100
  maxScrollAttempts?: number | undefined;
98
101
  }, {
99
- name: "get-text";
100
102
  selector: string;
101
- findBy: "cssSelector" | "xpath";
102
103
  option: {
104
+ multiple?: boolean | undefined;
103
105
  waitForSelector?: boolean | undefined;
104
106
  waitSelectorTimeout?: number | undefined;
105
- multiple?: boolean | undefined;
106
107
  };
107
- regex?: string | undefined;
108
+ name: "get-text";
109
+ findBy: "cssSelector" | "xpath";
108
110
  includeTags?: boolean | undefined;
109
111
  useTextContent?: boolean | undefined;
112
+ regex?: string | undefined;
110
113
  prefixText?: string | undefined;
111
114
  suffixText?: string | undefined;
112
115
  filterEmpty?: boolean | undefined;
@@ -123,36 +126,36 @@ export declare const AllBlockSchemas: {
123
126
  waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
124
127
  multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
125
128
  }, "strip", import("zod").ZodTypeAny, {
129
+ multiple?: boolean | undefined;
126
130
  waitForSelector?: boolean | undefined;
127
131
  waitSelectorTimeout?: number | undefined;
128
- multiple?: boolean | undefined;
129
132
  }, {
133
+ multiple?: boolean | undefined;
130
134
  waitForSelector?: boolean | undefined;
131
135
  waitSelectorTimeout?: number | undefined;
132
- multiple?: boolean | undefined;
133
136
  }>;
134
137
  } & {
135
138
  name: import("zod").ZodLiteral<"attribute-value">;
136
139
  attributeName: import("zod").ZodString;
137
140
  }, "strip", import("zod").ZodTypeAny, {
138
- name: "attribute-value";
139
141
  selector: string;
140
- findBy: "cssSelector" | "xpath";
141
142
  option: {
143
+ multiple?: boolean | undefined;
142
144
  waitForSelector?: boolean | undefined;
143
145
  waitSelectorTimeout?: number | undefined;
144
- multiple?: boolean | undefined;
145
146
  };
147
+ name: "attribute-value";
148
+ findBy: "cssSelector" | "xpath";
146
149
  attributeName: string;
147
150
  }, {
148
- name: "attribute-value";
149
151
  selector: string;
150
- findBy: "cssSelector" | "xpath";
151
152
  option: {
153
+ multiple?: boolean | undefined;
152
154
  waitForSelector?: boolean | undefined;
153
155
  waitSelectorTimeout?: number | undefined;
154
- multiple?: boolean | undefined;
155
156
  };
157
+ name: "attribute-value";
158
+ findBy: "cssSelector" | "xpath";
156
159
  attributeName: string;
157
160
  }>;
158
161
  readonly 'get-value-form': import("zod").ZodObject<{
@@ -163,36 +166,36 @@ export declare const AllBlockSchemas: {
163
166
  waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
164
167
  multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
165
168
  }, "strip", import("zod").ZodTypeAny, {
169
+ multiple?: boolean | undefined;
166
170
  waitForSelector?: boolean | undefined;
167
171
  waitSelectorTimeout?: number | undefined;
168
- multiple?: boolean | undefined;
169
172
  }, {
173
+ multiple?: boolean | undefined;
170
174
  waitForSelector?: boolean | undefined;
171
175
  waitSelectorTimeout?: number | undefined;
172
- multiple?: boolean | undefined;
173
176
  }>;
174
177
  } & {
175
178
  name: import("zod").ZodLiteral<"get-value-form">;
176
179
  type: import("zod").ZodOptional<import("zod").ZodEnum<["text-field", "select", "checkbox"]>>;
177
180
  }, "strip", import("zod").ZodTypeAny, {
178
- name: "get-value-form";
179
181
  selector: string;
180
- findBy: "cssSelector" | "xpath";
181
182
  option: {
183
+ multiple?: boolean | undefined;
182
184
  waitForSelector?: boolean | undefined;
183
185
  waitSelectorTimeout?: number | undefined;
184
- multiple?: boolean | undefined;
185
186
  };
187
+ name: "get-value-form";
188
+ findBy: "cssSelector" | "xpath";
186
189
  type?: "select" | "text-field" | "checkbox" | undefined;
187
190
  }, {
188
- name: "get-value-form";
189
191
  selector: string;
190
- findBy: "cssSelector" | "xpath";
191
192
  option: {
193
+ multiple?: boolean | undefined;
192
194
  waitForSelector?: boolean | undefined;
193
195
  waitSelectorTimeout?: number | undefined;
194
- multiple?: boolean | undefined;
195
196
  };
197
+ name: "get-value-form";
198
+ findBy: "cssSelector" | "xpath";
196
199
  type?: "select" | "text-field" | "checkbox" | undefined;
197
200
  }>;
198
201
  readonly 'set-value-form': import("zod").ZodObject<{
@@ -203,38 +206,38 @@ export declare const AllBlockSchemas: {
203
206
  waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
204
207
  multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
205
208
  }, "strip", import("zod").ZodTypeAny, {
209
+ multiple?: boolean | undefined;
206
210
  waitForSelector?: boolean | undefined;
207
211
  waitSelectorTimeout?: number | undefined;
208
- multiple?: boolean | undefined;
209
212
  }, {
213
+ multiple?: boolean | undefined;
210
214
  waitForSelector?: boolean | undefined;
211
215
  waitSelectorTimeout?: number | undefined;
212
- multiple?: boolean | undefined;
213
216
  }>;
214
217
  } & {
215
218
  name: import("zod").ZodLiteral<"set-value-form">;
216
219
  setValue: import("zod").ZodString;
217
220
  type: import("zod").ZodOptional<import("zod").ZodEnum<["text-field", "select", "checkbox"]>>;
218
221
  }, "strip", import("zod").ZodTypeAny, {
219
- name: "set-value-form";
220
222
  selector: string;
221
- findBy: "cssSelector" | "xpath";
222
223
  option: {
224
+ multiple?: boolean | undefined;
223
225
  waitForSelector?: boolean | undefined;
224
226
  waitSelectorTimeout?: number | undefined;
225
- multiple?: boolean | undefined;
226
227
  };
228
+ name: "set-value-form";
229
+ findBy: "cssSelector" | "xpath";
227
230
  setValue: string;
228
231
  type?: "select" | "text-field" | "checkbox" | undefined;
229
232
  }, {
230
- name: "set-value-form";
231
233
  selector: string;
232
- findBy: "cssSelector" | "xpath";
233
234
  option: {
235
+ multiple?: boolean | undefined;
234
236
  waitForSelector?: boolean | undefined;
235
237
  waitSelectorTimeout?: number | undefined;
236
- multiple?: boolean | undefined;
237
238
  };
239
+ name: "set-value-form";
240
+ findBy: "cssSelector" | "xpath";
238
241
  setValue: string;
239
242
  type?: "select" | "text-field" | "checkbox" | undefined;
240
243
  }>;
@@ -246,36 +249,36 @@ export declare const AllBlockSchemas: {
246
249
  waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
247
250
  multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
248
251
  }, "strip", import("zod").ZodTypeAny, {
252
+ multiple?: boolean | undefined;
249
253
  waitForSelector?: boolean | undefined;
250
254
  waitSelectorTimeout?: number | undefined;
251
- multiple?: boolean | undefined;
252
255
  }, {
256
+ multiple?: boolean | undefined;
253
257
  waitForSelector?: boolean | undefined;
254
258
  waitSelectorTimeout?: number | undefined;
255
- multiple?: boolean | undefined;
256
259
  }>;
257
260
  } & {
258
261
  name: import("zod").ZodLiteral<"clear-value-form">;
259
262
  type: import("zod").ZodOptional<import("zod").ZodEnum<["text-field", "select", "checkbox"]>>;
260
263
  }, "strip", import("zod").ZodTypeAny, {
261
- name: "clear-value-form";
262
264
  selector: string;
263
- findBy: "cssSelector" | "xpath";
264
265
  option: {
266
+ multiple?: boolean | undefined;
265
267
  waitForSelector?: boolean | undefined;
266
268
  waitSelectorTimeout?: number | undefined;
267
- multiple?: boolean | undefined;
268
269
  };
270
+ name: "clear-value-form";
271
+ findBy: "cssSelector" | "xpath";
269
272
  type?: "select" | "text-field" | "checkbox" | undefined;
270
273
  }, {
271
- name: "clear-value-form";
272
274
  selector: string;
273
- findBy: "cssSelector" | "xpath";
274
275
  option: {
276
+ multiple?: boolean | undefined;
275
277
  waitForSelector?: boolean | undefined;
276
278
  waitSelectorTimeout?: number | undefined;
277
- multiple?: boolean | undefined;
278
279
  };
280
+ name: "clear-value-form";
281
+ findBy: "cssSelector" | "xpath";
279
282
  type?: "select" | "text-field" | "checkbox" | undefined;
280
283
  }>;
281
284
  readonly 'element-exists': import("zod").ZodObject<{
@@ -286,34 +289,34 @@ export declare const AllBlockSchemas: {
286
289
  waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
287
290
  multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
288
291
  }, "strip", import("zod").ZodTypeAny, {
292
+ multiple?: boolean | undefined;
289
293
  waitForSelector?: boolean | undefined;
290
294
  waitSelectorTimeout?: number | undefined;
291
- multiple?: boolean | undefined;
292
295
  }, {
296
+ multiple?: boolean | undefined;
293
297
  waitForSelector?: boolean | undefined;
294
298
  waitSelectorTimeout?: number | undefined;
295
- multiple?: boolean | undefined;
296
299
  }>;
297
300
  } & {
298
301
  name: import("zod").ZodLiteral<"element-exists">;
299
302
  }, "strip", import("zod").ZodTypeAny, {
300
- name: "element-exists";
301
303
  selector: string;
302
- findBy: "cssSelector" | "xpath";
303
304
  option: {
305
+ multiple?: boolean | undefined;
304
306
  waitForSelector?: boolean | undefined;
305
307
  waitSelectorTimeout?: number | undefined;
306
- multiple?: boolean | undefined;
307
308
  };
308
- }, {
309
309
  name: "element-exists";
310
- selector: string;
311
310
  findBy: "cssSelector" | "xpath";
311
+ }, {
312
+ selector: string;
312
313
  option: {
314
+ multiple?: boolean | undefined;
313
315
  waitForSelector?: boolean | undefined;
314
316
  waitSelectorTimeout?: number | undefined;
315
- multiple?: boolean | undefined;
316
317
  };
318
+ name: "element-exists";
319
+ findBy: "cssSelector" | "xpath";
317
320
  }>;
318
321
  readonly 'event-click': import("zod").ZodObject<{
319
322
  selector: import("zod").ZodString;
@@ -323,13 +326,13 @@ export declare const AllBlockSchemas: {
323
326
  waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
324
327
  multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
325
328
  }, "strip", import("zod").ZodTypeAny, {
329
+ multiple?: boolean | undefined;
326
330
  waitForSelector?: boolean | undefined;
327
331
  waitSelectorTimeout?: number | undefined;
328
- multiple?: boolean | undefined;
329
332
  }, {
333
+ multiple?: boolean | undefined;
330
334
  waitForSelector?: boolean | undefined;
331
335
  waitSelectorTimeout?: number | undefined;
332
- multiple?: boolean | undefined;
333
336
  }>;
334
337
  } & {
335
338
  name: import("zod").ZodLiteral<"event-click">;
@@ -338,36 +341,36 @@ export declare const AllBlockSchemas: {
338
341
  mode: import("zod").ZodEnum<["exact", "contains", "startsWith", "endsWith", "regex"]>;
339
342
  }, "strip", import("zod").ZodTypeAny, {
340
343
  text: string | string[];
341
- mode: "exact" | "contains" | "startsWith" | "endsWith" | "regex";
344
+ mode: "exact" | "regex" | "contains" | "startsWith" | "endsWith";
342
345
  }, {
343
346
  text: string | string[];
344
- mode: "exact" | "contains" | "startsWith" | "endsWith" | "regex";
347
+ mode: "exact" | "regex" | "contains" | "startsWith" | "endsWith";
345
348
  }>>;
346
349
  }, "strip", import("zod").ZodTypeAny, {
347
- name: "event-click";
348
350
  selector: string;
349
- findBy: "cssSelector" | "xpath";
350
351
  option: {
352
+ multiple?: boolean | undefined;
351
353
  waitForSelector?: boolean | undefined;
352
354
  waitSelectorTimeout?: number | undefined;
353
- multiple?: boolean | undefined;
354
355
  };
356
+ name: "event-click";
357
+ findBy: "cssSelector" | "xpath";
355
358
  textFilter?: {
356
359
  text: string | string[];
357
- mode: "exact" | "contains" | "startsWith" | "endsWith" | "regex";
360
+ mode: "exact" | "regex" | "contains" | "startsWith" | "endsWith";
358
361
  } | undefined;
359
362
  }, {
360
- name: "event-click";
361
363
  selector: string;
362
- findBy: "cssSelector" | "xpath";
363
364
  option: {
365
+ multiple?: boolean | undefined;
364
366
  waitForSelector?: boolean | undefined;
365
367
  waitSelectorTimeout?: number | undefined;
366
- multiple?: boolean | undefined;
367
368
  };
369
+ name: "event-click";
370
+ findBy: "cssSelector" | "xpath";
368
371
  textFilter?: {
369
372
  text: string | string[];
370
- mode: "exact" | "contains" | "startsWith" | "endsWith" | "regex";
373
+ mode: "exact" | "regex" | "contains" | "startsWith" | "endsWith";
371
374
  } | undefined;
372
375
  }>;
373
376
  readonly keypress: import("zod").ZodObject<{
@@ -399,6 +402,138 @@ export declare const AllBlockSchemas: {
399
402
  name: "wait";
400
403
  duration: number;
401
404
  }>;
405
+ readonly 'wait-for-condition': import("zod").ZodObject<{
406
+ name: import("zod").ZodLiteral<"wait-for-condition">;
407
+ conditions: import("zod").ZodEffects<import("zod").ZodObject<{
408
+ urlPattern: import("zod").ZodOptional<import("zod").ZodString>;
409
+ elementExists: import("zod").ZodOptional<import("zod").ZodObject<{
410
+ selector: import("zod").ZodString;
411
+ findBy: import("zod").ZodEnum<["cssSelector", "xpath"]>;
412
+ }, "strip", import("zod").ZodTypeAny, {
413
+ selector: string;
414
+ findBy: "cssSelector" | "xpath";
415
+ }, {
416
+ selector: string;
417
+ findBy: "cssSelector" | "xpath";
418
+ }>>;
419
+ cookieExists: import("zod").ZodOptional<import("zod").ZodString>;
420
+ storageKey: import("zod").ZodOptional<import("zod").ZodObject<{
421
+ type: import("zod").ZodEnum<["localStorage", "sessionStorage"]>;
422
+ key: import("zod").ZodString;
423
+ }, "strip", import("zod").ZodTypeAny, {
424
+ type: "localStorage" | "sessionStorage";
425
+ key: string;
426
+ }, {
427
+ type: "localStorage" | "sessionStorage";
428
+ key: string;
429
+ }>>;
430
+ userConfirmation: import("zod").ZodOptional<import("zod").ZodBoolean>;
431
+ message: import("zod").ZodOptional<import("zod").ZodString>;
432
+ buttonText: import("zod").ZodOptional<import("zod").ZodString>;
433
+ }, "strip", import("zod").ZodTypeAny, {
434
+ message?: string | undefined;
435
+ urlPattern?: string | undefined;
436
+ elementExists?: {
437
+ selector: string;
438
+ findBy: "cssSelector" | "xpath";
439
+ } | undefined;
440
+ cookieExists?: string | undefined;
441
+ storageKey?: {
442
+ type: "localStorage" | "sessionStorage";
443
+ key: string;
444
+ } | undefined;
445
+ userConfirmation?: boolean | undefined;
446
+ buttonText?: string | undefined;
447
+ }, {
448
+ message?: string | undefined;
449
+ urlPattern?: string | undefined;
450
+ elementExists?: {
451
+ selector: string;
452
+ findBy: "cssSelector" | "xpath";
453
+ } | undefined;
454
+ cookieExists?: string | undefined;
455
+ storageKey?: {
456
+ type: "localStorage" | "sessionStorage";
457
+ key: string;
458
+ } | undefined;
459
+ userConfirmation?: boolean | undefined;
460
+ buttonText?: string | undefined;
461
+ }>, {
462
+ message?: string | undefined;
463
+ urlPattern?: string | undefined;
464
+ elementExists?: {
465
+ selector: string;
466
+ findBy: "cssSelector" | "xpath";
467
+ } | undefined;
468
+ cookieExists?: string | undefined;
469
+ storageKey?: {
470
+ type: "localStorage" | "sessionStorage";
471
+ key: string;
472
+ } | undefined;
473
+ userConfirmation?: boolean | undefined;
474
+ buttonText?: string | undefined;
475
+ }, {
476
+ message?: string | undefined;
477
+ urlPattern?: string | undefined;
478
+ elementExists?: {
479
+ selector: string;
480
+ findBy: "cssSelector" | "xpath";
481
+ } | undefined;
482
+ cookieExists?: string | undefined;
483
+ storageKey?: {
484
+ type: "localStorage" | "sessionStorage";
485
+ key: string;
486
+ } | undefined;
487
+ userConfirmation?: boolean | undefined;
488
+ buttonText?: string | undefined;
489
+ }>;
490
+ mode: import("zod").ZodOptional<import("zod").ZodEnum<["auto", "manual", "auto-or-manual"]>>;
491
+ pollingIntervalMs: import("zod").ZodOptional<import("zod").ZodNumber>;
492
+ timeoutMs: import("zod").ZodOptional<import("zod").ZodNumber>;
493
+ position: import("zod").ZodOptional<import("zod").ZodEnum<["top-left", "top-right", "bottom-left", "bottom-right"]>>;
494
+ }, "strip", import("zod").ZodTypeAny, {
495
+ name: "wait-for-condition";
496
+ conditions: {
497
+ message?: string | undefined;
498
+ urlPattern?: string | undefined;
499
+ elementExists?: {
500
+ selector: string;
501
+ findBy: "cssSelector" | "xpath";
502
+ } | undefined;
503
+ cookieExists?: string | undefined;
504
+ storageKey?: {
505
+ type: "localStorage" | "sessionStorage";
506
+ key: string;
507
+ } | undefined;
508
+ userConfirmation?: boolean | undefined;
509
+ buttonText?: string | undefined;
510
+ };
511
+ mode?: "auto" | "manual" | "auto-or-manual" | undefined;
512
+ pollingIntervalMs?: number | undefined;
513
+ timeoutMs?: number | undefined;
514
+ position?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
515
+ }, {
516
+ name: "wait-for-condition";
517
+ conditions: {
518
+ message?: string | undefined;
519
+ urlPattern?: string | undefined;
520
+ elementExists?: {
521
+ selector: string;
522
+ findBy: "cssSelector" | "xpath";
523
+ } | undefined;
524
+ cookieExists?: string | undefined;
525
+ storageKey?: {
526
+ type: "localStorage" | "sessionStorage";
527
+ key: string;
528
+ } | undefined;
529
+ userConfirmation?: boolean | undefined;
530
+ buttonText?: string | undefined;
531
+ };
532
+ mode?: "auto" | "manual" | "auto-or-manual" | undefined;
533
+ pollingIntervalMs?: number | undefined;
534
+ timeoutMs?: number | undefined;
535
+ position?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
536
+ }>;
402
537
  readonly 'save-assets': import("zod").ZodObject<{
403
538
  selector: import("zod").ZodString;
404
539
  findBy: import("zod").ZodEnum<["cssSelector", "xpath"]>;
@@ -407,34 +542,34 @@ export declare const AllBlockSchemas: {
407
542
  waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
408
543
  multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
409
544
  }, "strip", import("zod").ZodTypeAny, {
545
+ multiple?: boolean | undefined;
410
546
  waitForSelector?: boolean | undefined;
411
547
  waitSelectorTimeout?: number | undefined;
412
- multiple?: boolean | undefined;
413
548
  }, {
549
+ multiple?: boolean | undefined;
414
550
  waitForSelector?: boolean | undefined;
415
551
  waitSelectorTimeout?: number | undefined;
416
- multiple?: boolean | undefined;
417
552
  }>;
418
553
  } & {
419
554
  name: import("zod").ZodLiteral<"save-assets">;
420
555
  }, "strip", import("zod").ZodTypeAny, {
421
- name: "save-assets";
422
556
  selector: string;
423
- findBy: "cssSelector" | "xpath";
424
557
  option: {
558
+ multiple?: boolean | undefined;
425
559
  waitForSelector?: boolean | undefined;
426
560
  waitSelectorTimeout?: number | undefined;
427
- multiple?: boolean | undefined;
428
561
  };
429
- }, {
430
562
  name: "save-assets";
431
- selector: string;
432
563
  findBy: "cssSelector" | "xpath";
564
+ }, {
565
+ selector: string;
433
566
  option: {
567
+ multiple?: boolean | undefined;
434
568
  waitForSelector?: boolean | undefined;
435
569
  waitSelectorTimeout?: number | undefined;
436
- multiple?: boolean | undefined;
437
570
  };
571
+ name: "save-assets";
572
+ findBy: "cssSelector" | "xpath";
438
573
  }>;
439
574
  readonly 'get-element-data': import("zod").ZodObject<{
440
575
  selector: import("zod").ZodString;
@@ -444,13 +579,13 @@ export declare const AllBlockSchemas: {
444
579
  waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
445
580
  multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
446
581
  }, "strip", import("zod").ZodTypeAny, {
582
+ multiple?: boolean | undefined;
447
583
  waitForSelector?: boolean | undefined;
448
584
  waitSelectorTimeout?: number | undefined;
449
- multiple?: boolean | undefined;
450
585
  }, {
586
+ multiple?: boolean | undefined;
451
587
  waitForSelector?: boolean | undefined;
452
588
  waitSelectorTimeout?: number | undefined;
453
- multiple?: boolean | undefined;
454
589
  }>;
455
590
  } & {
456
591
  name: import("zod").ZodLiteral<"get-element-data">;
@@ -464,39 +599,39 @@ export declare const AllBlockSchemas: {
464
599
  includeSelector: import("zod").ZodOptional<import("zod").ZodBoolean>;
465
600
  includeXPath: import("zod").ZodOptional<import("zod").ZodBoolean>;
466
601
  }, "strip", import("zod").ZodTypeAny, {
467
- name: "get-element-data";
468
602
  selector: string;
469
- findBy: "cssSelector" | "xpath";
470
603
  option: {
604
+ multiple?: boolean | undefined;
471
605
  waitForSelector?: boolean | undefined;
472
606
  waitSelectorTimeout?: number | undefined;
473
- multiple?: boolean | undefined;
474
607
  };
475
- regex?: string | undefined;
476
- attributes?: string[] | undefined;
477
- includeText?: boolean | undefined;
608
+ name: "get-element-data";
609
+ findBy: "cssSelector" | "xpath";
478
610
  includeTags?: boolean | undefined;
479
611
  useTextContent?: boolean | undefined;
612
+ regex?: string | undefined;
480
613
  prefixText?: string | undefined;
481
614
  suffixText?: string | undefined;
615
+ attributes?: string[] | undefined;
616
+ includeText?: boolean | undefined;
482
617
  includeSelector?: boolean | undefined;
483
618
  includeXPath?: boolean | undefined;
484
619
  }, {
485
- name: "get-element-data";
486
620
  selector: string;
487
- findBy: "cssSelector" | "xpath";
488
621
  option: {
622
+ multiple?: boolean | undefined;
489
623
  waitForSelector?: boolean | undefined;
490
624
  waitSelectorTimeout?: number | undefined;
491
- multiple?: boolean | undefined;
492
625
  };
493
- regex?: string | undefined;
494
- attributes?: string[] | undefined;
495
- includeText?: boolean | undefined;
626
+ name: "get-element-data";
627
+ findBy: "cssSelector" | "xpath";
496
628
  includeTags?: boolean | undefined;
497
629
  useTextContent?: boolean | undefined;
630
+ regex?: string | undefined;
498
631
  prefixText?: string | undefined;
499
632
  suffixText?: string | undefined;
633
+ attributes?: string[] | undefined;
634
+ includeText?: boolean | undefined;
500
635
  includeSelector?: boolean | undefined;
501
636
  includeXPath?: boolean | undefined;
502
637
  }>;
@@ -508,13 +643,13 @@ export declare const AllBlockSchemas: {
508
643
  waitSelectorTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
509
644
  multiple: import("zod").ZodOptional<import("zod").ZodBoolean>;
510
645
  }, "strip", import("zod").ZodTypeAny, {
646
+ multiple?: boolean | undefined;
511
647
  waitForSelector?: boolean | undefined;
512
648
  waitSelectorTimeout?: number | undefined;
513
- multiple?: boolean | undefined;
514
649
  }, {
650
+ multiple?: boolean | undefined;
515
651
  waitForSelector?: boolean | undefined;
516
652
  waitSelectorTimeout?: number | undefined;
517
- multiple?: boolean | undefined;
518
653
  }>;
519
654
  } & {
520
655
  name: import("zod").ZodLiteral<"scroll">;
@@ -524,28 +659,28 @@ export declare const AllBlockSchemas: {
524
659
  maxScrolls: import("zod").ZodOptional<import("zod").ZodNumber>;
525
660
  waitAfterScroll: import("zod").ZodOptional<import("zod").ZodNumber>;
526
661
  }, "strip", import("zod").ZodTypeAny, {
527
- name: "scroll";
528
662
  selector: string;
529
- findBy: "cssSelector" | "xpath";
530
663
  option: {
664
+ multiple?: boolean | undefined;
531
665
  waitForSelector?: boolean | undefined;
532
666
  waitSelectorTimeout?: number | undefined;
533
- multiple?: boolean | undefined;
534
667
  };
668
+ name: "scroll";
669
+ findBy: "cssSelector" | "xpath";
535
670
  behavior?: "auto" | "smooth" | undefined;
536
671
  scrollType?: "toElement" | "toBottom" | "byDistance" | "untilLoaded" | undefined;
537
672
  distance?: number | undefined;
538
673
  maxScrolls?: number | undefined;
539
674
  waitAfterScroll?: number | undefined;
540
675
  }, {
541
- name: "scroll";
542
676
  selector: string;
543
- findBy: "cssSelector" | "xpath";
544
677
  option: {
678
+ multiple?: boolean | undefined;
545
679
  waitForSelector?: boolean | undefined;
546
680
  waitSelectorTimeout?: number | undefined;
547
- multiple?: boolean | undefined;
548
681
  };
682
+ name: "scroll";
683
+ findBy: "cssSelector" | "xpath";
549
684
  behavior?: "auto" | "smooth" | undefined;
550
685
  scrollType?: "toElement" | "toBottom" | "byDistance" | "untilLoaded" | undefined;
551
686
  distance?: number | undefined;
@@ -617,18 +752,18 @@ export declare const AllBlockSchemas: {
617
752
  name: "fetch-api";
618
753
  url: string;
619
754
  body?: Record<string, any> | undefined;
755
+ timeout?: number | undefined;
620
756
  method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
621
757
  headers?: Record<string, string> | undefined;
622
- timeout?: number | undefined;
623
758
  parseJson?: boolean | undefined;
624
759
  returnHeaders?: boolean | undefined;
625
760
  }, {
626
761
  name: "fetch-api";
627
762
  url: string;
628
763
  body?: Record<string, any> | undefined;
764
+ timeout?: number | undefined;
629
765
  method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
630
766
  headers?: Record<string, string> | undefined;
631
- timeout?: number | undefined;
632
767
  parseJson?: boolean | undefined;
633
768
  returnHeaders?: boolean | undefined;
634
769
  }>;
@@ -637,12 +772,12 @@ export declare const AllBlockSchemas: {
637
772
  code: import("zod").ZodString;
638
773
  inputData: import("zod").ZodOptional<import("zod").ZodAny>;
639
774
  }, "strip", import("zod").ZodTypeAny, {
640
- name: "data-extract";
641
775
  code: string;
776
+ name: "data-extract";
642
777
  inputData?: any;
643
778
  }, {
644
- name: "data-extract";
645
779
  code: string;
780
+ name: "data-extract";
646
781
  inputData?: any;
647
782
  }>;
648
783
  };
@@ -656,6 +791,7 @@ export declare class BlockHandler {
656
791
  static executeBlock(block: EventClickBlock): Promise<BlockResult<boolean>>;
657
792
  static executeBlock(block: KeypressBlock): Promise<BlockResult<boolean>>;
658
793
  static executeBlock(block: WaitBlock): Promise<BlockResult<boolean>>;
794
+ static executeBlock(block: WaitForConditionBlock): Promise<BlockResult<WaitForConditionResult>>;
659
795
  static executeBlock(block: SaveAssetsBlock): Promise<BlockResult<string[] | null>>;
660
796
  static executeBlock(block: GetElementDataBlock): Promise<BlockResult<ElementData | ElementData[]>>;
661
797
  static executeBlock(block: ScrollBlock): Promise<BlockResult<boolean>>;