@rnw-community/wdio 0.26.0 → 0.26.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.
Files changed (58) hide show
  1. package/dist/component/{visible.component.d.ts → component/component.d.ts} +8 -17
  2. package/dist/component/component/component.d.ts.map +1 -0
  3. package/dist/component/{visible.component.js → component/component.js} +111 -189
  4. package/dist/component/component/component.js.map +1 -0
  5. package/dist/component/create-component/create-component.d.ts +4 -0
  6. package/dist/component/create-component/create-component.d.ts.map +1 -0
  7. package/dist/component/create-component/create-component.js +9 -0
  8. package/dist/component/create-component/create-component.js.map +1 -0
  9. package/dist/component/create-rooted-component/create-rooted-component.d.ts +4 -0
  10. package/dist/component/create-rooted-component/create-rooted-component.d.ts.map +1 -0
  11. package/dist/component/create-rooted-component/create-rooted-component.js +7 -0
  12. package/dist/component/create-rooted-component/create-rooted-component.js.map +1 -0
  13. package/dist/component/get-component/get-component.d.ts +6 -0
  14. package/dist/component/get-component/get-component.d.ts.map +1 -0
  15. package/dist/component/get-component/get-component.js +41 -0
  16. package/dist/component/get-component/get-component.js.map +1 -0
  17. package/dist/component/get-rooted-component/get-rooted-component.d.ts +6 -0
  18. package/dist/component/get-rooted-component/get-rooted-component.d.ts.map +1 -0
  19. package/dist/component/get-rooted-component/get-rooted-component.js +50 -0
  20. package/dist/component/get-rooted-component/get-rooted-component.js.map +1 -0
  21. package/dist/component/index.d.ts +6 -1
  22. package/dist/component/index.d.ts.map +1 -1
  23. package/dist/component/index.js +13 -15
  24. package/dist/component/index.js.map +1 -1
  25. package/dist/component/rooted-component/rooted-component.d.ts +19 -0
  26. package/dist/component/rooted-component/rooted-component.d.ts.map +1 -0
  27. package/dist/component/rooted-component/rooted-component.js +218 -0
  28. package/dist/component/rooted-component/rooted-component.js.map +1 -0
  29. package/dist/type/component-with-selectors.type.d.ts +6 -0
  30. package/dist/type/component-with-selectors.type.d.ts.map +1 -0
  31. package/dist/type/{visible-component-with-selectors.type.js → component-with-selectors.type.js} +1 -1
  32. package/dist/type/component-with-selectors.type.js.map +1 -0
  33. package/dist/type/index.d.ts +1 -2
  34. package/dist/type/index.d.ts.map +1 -1
  35. package/dist/type/selector-object.type.d.ts +4 -0
  36. package/dist/type/selector-object.type.d.ts.map +1 -1
  37. package/dist/util/index.d.ts +0 -2
  38. package/dist/util/index.d.ts.map +1 -1
  39. package/dist/util/index.js +1 -5
  40. package/dist/util/index.js.map +1 -1
  41. package/package.json +3 -2
  42. package/dist/component/visible.component.d.ts.map +0 -1
  43. package/dist/component/visible.component.js.map +0 -1
  44. package/dist/type/visible-component-with-selectors-ctor.type.d.ts +0 -3
  45. package/dist/type/visible-component-with-selectors-ctor.type.d.ts.map +0 -1
  46. package/dist/type/visible-component-with-selectors-ctor.type.js +0 -3
  47. package/dist/type/visible-component-with-selectors-ctor.type.js.map +0 -1
  48. package/dist/type/visible-component-with-selectors.type.d.ts +0 -30
  49. package/dist/type/visible-component-with-selectors.type.d.ts.map +0 -1
  50. package/dist/type/visible-component-with-selectors.type.js.map +0 -1
  51. package/dist/util/create-visible-component/create-visible-component.d.ts +0 -3
  52. package/dist/util/create-visible-component/create-visible-component.d.ts.map +0 -1
  53. package/dist/util/create-visible-component/create-visible-component.js +0 -7
  54. package/dist/util/create-visible-component/create-visible-component.js.map +0 -1
  55. package/dist/util/get-visible-component/get-visible-component.d.ts +0 -3
  56. package/dist/util/get-visible-component/get-visible-component.d.ts.map +0 -1
  57. package/dist/util/get-visible-component/get-visible-component.js +0 -132
  58. package/dist/util/get-visible-component/get-visible-component.js.map +0 -1
@@ -1,20 +1,6 @@
1
1
  /// <reference types="webdriverio/async" />
2
- import type { SetValueArgs, WaitForDisplayedArgs, WaitForEnabledArgs, WaitForExistArgs } from '../type';
3
- export declare class VisibleComponent {
4
- private readonly constructorEl;
5
- private readonly constructorSelector;
6
- private readonly hasRoot;
7
- constructor(selectorOrElement?: WebdriverIO.Element | string);
8
- get RootEl(): Promise<WebdriverIO.Element>;
9
- waitForDisplayed(...args: WaitForDisplayedArgs): Promise<void>;
10
- waitForEnabled(...args: WaitForEnabledArgs): Promise<void>;
11
- waitForExist(...args: WaitForExistArgs): Promise<void>;
12
- isDisplayed(): Promise<boolean>;
13
- isExisting(): Promise<boolean>;
14
- click(): Promise<void>;
15
- getChildEl(selector: string): Promise<WebdriverIO.Element>;
16
- getChildEls(selector: string): Promise<WebdriverIO.ElementArray>;
17
- getChildElByIdx(selector: string, idx: number): Promise<WebdriverIO.Element>;
2
+ import type { Enum, SelectorObject, SetValueArgs, WaitForDisplayedArgs, WaitForEnabledArgs, WaitForExistArgs } from '../../type';
3
+ export declare class Component {
18
4
  clickChildEl(selector: string): Promise<void>;
19
5
  clickByIdxChildEl(selector: string, idx: number): Promise<void>;
20
6
  setValueChildEl(selector: string, args: SetValueArgs): Promise<void>;
@@ -24,5 +10,10 @@ export declare class VisibleComponent {
24
10
  waitForExistsChildEl(selector: string, args: WaitForExistArgs): Promise<void>;
25
11
  waitForDisplayedChildEl(selector: string, args: WaitForDisplayedArgs): Promise<void>;
26
12
  waitForEnabledChildEl(selector: string, args: WaitForEnabledArgs): Promise<void>;
13
+ getChildEl(selector: string): Promise<WebdriverIO.Element>;
14
+ getChildEls(selector: string): Promise<WebdriverIO.ElementArray>;
15
+ getChildElByIdx(selector: string, idx: number): Promise<WebdriverIO.Element>;
16
+ protected getSelectorObject(selectorValue: string): SelectorObject;
17
+ protected callDynamicMethod<T extends string>(selectors: Enum<T>, field: string): unknown;
27
18
  }
28
- //# sourceMappingURL=visible.component.d.ts.map
19
+ //# sourceMappingURL=component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/component/component/component.ts"],"names":[],"mappings":";AAIA,OAAO,KAAK,EACR,IAAI,EACJ,cAAc,EACd,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EACnB,MAAM,YAAY,CAAC;AAEpB,qBAAa,SAAS;IACZ,YA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,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  }
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.VisibleComponent = void 0;
39
+ exports.Component = void 0;
40
40
  var shared_1 = require("@rnw-community/shared");
41
- var command_1 = require("../command");
42
- var VisibleComponent = /** @class */ (function () {
43
- function VisibleComponent(selectorOrElement) {
44
- this.constructorSelector = '';
45
- if ((0, shared_1.isNotEmptyString)(selectorOrElement)) {
46
- this.hasRoot = true;
47
- this.constructorSelector = selectorOrElement;
48
- }
49
- else if ((0, shared_1.isDefined)(selectorOrElement)) {
50
- this.hasRoot = true;
51
- this.constructorEl = selectorOrElement;
52
- }
53
- else {
54
- this.hasRoot = false;
55
- }
41
+ var command_1 = require("../../command");
42
+ var Component = /** @class */ (function () {
43
+ function Component() {
56
44
  }
57
- Object.defineProperty(VisibleComponent.prototype, "RootEl", {
58
- get: function () {
59
- if (this.hasRoot) {
60
- if ((0, shared_1.isNotEmptyString)(this.constructorSelector)) {
61
- return (0, command_1.testID$)(this.constructorSelector);
62
- }
63
- else if ((0, shared_1.isDefined)(this.constructorEl)) {
64
- return Promise.resolve(this.constructorEl);
65
- }
66
- }
67
- throw new Error("".concat(VisibleComponent.name, " does not have a RootEl"));
68
- },
69
- enumerable: false,
70
- configurable: true
71
- });
72
- VisibleComponent.prototype.waitForDisplayed = function () {
73
- var args = [];
74
- for (var _i = 0; _i < arguments.length; _i++) {
75
- args[_i] = arguments[_i];
76
- }
77
- return __awaiter(this, void 0, void 0, function () {
78
- var _a;
79
- return __generator(this, function (_b) {
80
- switch (_b.label) {
81
- case 0: return [4 /*yield*/, this.RootEl];
82
- case 1: return [4 /*yield*/, (_a = (_b.sent())).waitForDisplayed.apply(_a, args)];
83
- case 2:
84
- _b.sent();
85
- return [2 /*return*/];
86
- }
87
- });
88
- });
89
- };
90
- VisibleComponent.prototype.waitForEnabled = function () {
91
- var args = [];
92
- for (var _i = 0; _i < arguments.length; _i++) {
93
- args[_i] = arguments[_i];
94
- }
95
- return __awaiter(this, void 0, void 0, function () {
96
- var _a;
97
- return __generator(this, function (_b) {
98
- switch (_b.label) {
99
- case 0: return [4 /*yield*/, this.RootEl];
100
- case 1: return [4 /*yield*/, (_a = (_b.sent())).waitForEnabled.apply(_a, args)];
101
- case 2:
102
- _b.sent();
103
- return [2 /*return*/];
104
- }
105
- });
106
- });
107
- };
108
- VisibleComponent.prototype.waitForExist = function () {
109
- var args = [];
110
- for (var _i = 0; _i < arguments.length; _i++) {
111
- args[_i] = arguments[_i];
112
- }
113
- return __awaiter(this, void 0, void 0, function () {
114
- var _a;
115
- return __generator(this, function (_b) {
116
- switch (_b.label) {
117
- case 0: return [4 /*yield*/, this.RootEl];
118
- case 1: return [4 /*yield*/, (_a = (_b.sent())).waitForExist.apply(_a, args)];
119
- case 2:
120
- _b.sent();
121
- return [2 /*return*/];
122
- }
123
- });
124
- });
125
- };
126
- VisibleComponent.prototype.isDisplayed = function () {
127
- return __awaiter(this, void 0, void 0, function () {
128
- return __generator(this, function (_a) {
129
- switch (_a.label) {
130
- case 0: return [4 /*yield*/, this.RootEl];
131
- case 1: return [4 /*yield*/, (_a.sent()).isDisplayed()];
132
- case 2: return [2 /*return*/, _a.sent()];
133
- }
134
- });
135
- });
136
- };
137
- VisibleComponent.prototype.isExisting = function () {
138
- return __awaiter(this, void 0, void 0, function () {
139
- return __generator(this, function (_a) {
140
- switch (_a.label) {
141
- case 0: return [4 /*yield*/, this.RootEl];
142
- case 1: return [4 /*yield*/, (_a.sent()).isExisting()];
143
- case 2: return [2 /*return*/, _a.sent()];
144
- }
145
- });
146
- });
147
- };
148
- VisibleComponent.prototype.click = function () {
149
- return __awaiter(this, void 0, void 0, function () {
150
- return __generator(this, function (_a) {
151
- switch (_a.label) {
152
- case 0: return [4 /*yield*/, this.RootEl];
153
- case 1: return [4 /*yield*/, (_a.sent()).click()];
154
- case 2:
155
- _a.sent();
156
- return [2 /*return*/];
157
- }
158
- });
159
- });
160
- };
161
- VisibleComponent.prototype.getChildEl = function (selector) {
162
- return __awaiter(this, void 0, void 0, function () {
163
- var _a, _b;
164
- return __generator(this, function (_c) {
165
- switch (_c.label) {
166
- case 0:
167
- if (!!this.hasRoot) return [3 /*break*/, 2];
168
- return [4 /*yield*/, (0, command_1.testID$)(selector)];
169
- case 1: return [2 /*return*/, _c.sent()];
170
- case 2:
171
- _a = command_1.testID$;
172
- _b = [selector];
173
- return [4 /*yield*/, this.RootEl];
174
- case 3: return [4 /*yield*/, _a.apply(void 0, _b.concat([_c.sent()]))];
175
- case 4: return [2 /*return*/, _c.sent()];
176
- }
177
- });
178
- });
179
- };
180
- VisibleComponent.prototype.getChildEls = function (selector) {
181
- return __awaiter(this, void 0, void 0, function () {
182
- var _a, _b;
183
- return __generator(this, function (_c) {
184
- switch (_c.label) {
185
- case 0:
186
- if (!!this.hasRoot) return [3 /*break*/, 2];
187
- return [4 /*yield*/, (0, command_1.testID$$)(selector)];
188
- case 1: return [2 /*return*/, _c.sent()];
189
- case 2:
190
- _a = command_1.testID$$;
191
- _b = [selector];
192
- return [4 /*yield*/, this.RootEl];
193
- case 3: return [4 /*yield*/, _a.apply(void 0, _b.concat([_c.sent()]))];
194
- case 4: return [2 /*return*/, _c.sent()];
195
- }
196
- });
197
- });
198
- };
199
- VisibleComponent.prototype.getChildElByIdx = function (selector, idx) {
200
- return __awaiter(this, void 0, void 0, function () {
201
- var _a, _b;
202
- return __generator(this, function (_c) {
203
- switch (_c.label) {
204
- case 0:
205
- if (!!this.hasRoot) return [3 /*break*/, 2];
206
- return [4 /*yield*/, (0, command_1.testID$$Index)(selector, idx)];
207
- case 1: return [2 /*return*/, _c.sent()];
208
- case 2:
209
- _a = command_1.testID$$Index;
210
- _b = [selector, idx];
211
- return [4 /*yield*/, this.RootEl];
212
- case 3: return [4 /*yield*/, _a.apply(void 0, _b.concat([_c.sent()]))];
213
- case 4: return [2 /*return*/, _c.sent()];
214
- }
215
- });
216
- });
217
- };
218
- VisibleComponent.prototype.clickChildEl = function (selector) {
45
+ Component.prototype.clickChildEl = function (selector) {
219
46
  return __awaiter(this, void 0, void 0, function () {
220
47
  return __generator(this, function (_a) {
221
48
  switch (_a.label) {
@@ -228,7 +55,7 @@ var VisibleComponent = /** @class */ (function () {
228
55
  });
229
56
  });
230
57
  };
231
- VisibleComponent.prototype.clickByIdxChildEl = function (selector, idx) {
58
+ Component.prototype.clickByIdxChildEl = function (selector, idx) {
232
59
  return __awaiter(this, void 0, void 0, function () {
233
60
  return __generator(this, function (_a) {
234
61
  switch (_a.label) {
@@ -241,7 +68,7 @@ var VisibleComponent = /** @class */ (function () {
241
68
  });
242
69
  });
243
70
  };
244
- VisibleComponent.prototype.setValueChildEl = function (selector, args) {
71
+ Component.prototype.setValueChildEl = function (selector, args) {
245
72
  return __awaiter(this, void 0, void 0, function () {
246
73
  var _a;
247
74
  return __generator(this, function (_b) {
@@ -255,7 +82,7 @@ var VisibleComponent = /** @class */ (function () {
255
82
  });
256
83
  });
257
84
  };
258
- VisibleComponent.prototype.isDisplayedChildEl = function (selector) {
85
+ Component.prototype.isDisplayedChildEl = function (selector) {
259
86
  return __awaiter(this, void 0, void 0, function () {
260
87
  return __generator(this, function (_a) {
261
88
  switch (_a.label) {
@@ -266,7 +93,7 @@ var VisibleComponent = /** @class */ (function () {
266
93
  });
267
94
  });
268
95
  };
269
- VisibleComponent.prototype.isExistingChildEl = function (selector) {
96
+ Component.prototype.isExistingChildEl = function (selector) {
270
97
  return __awaiter(this, void 0, void 0, function () {
271
98
  return __generator(this, function (_a) {
272
99
  switch (_a.label) {
@@ -277,7 +104,7 @@ var VisibleComponent = /** @class */ (function () {
277
104
  });
278
105
  });
279
106
  };
280
- VisibleComponent.prototype.getTextChildEl = function (selector) {
107
+ Component.prototype.getTextChildEl = function (selector) {
281
108
  return __awaiter(this, void 0, void 0, function () {
282
109
  return __generator(this, function (_a) {
283
110
  switch (_a.label) {
@@ -288,7 +115,7 @@ var VisibleComponent = /** @class */ (function () {
288
115
  });
289
116
  });
290
117
  };
291
- VisibleComponent.prototype.waitForExistsChildEl = function (selector, args) {
118
+ Component.prototype.waitForExistsChildEl = function (selector, args) {
292
119
  return __awaiter(this, void 0, void 0, function () {
293
120
  var _a;
294
121
  return __generator(this, function (_b) {
@@ -302,7 +129,7 @@ var VisibleComponent = /** @class */ (function () {
302
129
  });
303
130
  });
304
131
  };
305
- VisibleComponent.prototype.waitForDisplayedChildEl = function (selector, args) {
132
+ Component.prototype.waitForDisplayedChildEl = function (selector, args) {
306
133
  return __awaiter(this, void 0, void 0, function () {
307
134
  var _a;
308
135
  return __generator(this, function (_b) {
@@ -316,7 +143,7 @@ var VisibleComponent = /** @class */ (function () {
316
143
  });
317
144
  });
318
145
  };
319
- VisibleComponent.prototype.waitForEnabledChildEl = function (selector, args) {
146
+ Component.prototype.waitForEnabledChildEl = function (selector, args) {
320
147
  return __awaiter(this, void 0, void 0, function () {
321
148
  var _a;
322
149
  return __generator(this, function (_b) {
@@ -330,7 +157,102 @@ var VisibleComponent = /** @class */ (function () {
330
157
  });
331
158
  });
332
159
  };
333
- return VisibleComponent;
160
+ // eslint-disable-next-line class-methods-use-this
161
+ Component.prototype.getChildEl = function (selector) {
162
+ return __awaiter(this, void 0, void 0, function () {
163
+ return __generator(this, function (_a) {
164
+ switch (_a.label) {
165
+ case 0: return [4 /*yield*/, (0, command_1.testID$)(selector)];
166
+ case 1: return [2 /*return*/, _a.sent()];
167
+ }
168
+ });
169
+ });
170
+ };
171
+ // eslint-disable-next-line class-methods-use-this
172
+ Component.prototype.getChildEls = function (selector) {
173
+ return __awaiter(this, void 0, void 0, function () {
174
+ return __generator(this, function (_a) {
175
+ switch (_a.label) {
176
+ case 0: return [4 /*yield*/, (0, command_1.testID$$)(selector)];
177
+ case 1: return [2 /*return*/, _a.sent()];
178
+ }
179
+ });
180
+ });
181
+ };
182
+ // eslint-disable-next-line class-methods-use-this
183
+ Component.prototype.getChildElByIdx = function (selector, idx) {
184
+ return __awaiter(this, void 0, void 0, function () {
185
+ return __generator(this, function (_a) {
186
+ switch (_a.label) {
187
+ case 0: return [4 /*yield*/, (0, command_1.testID$$Index)(selector, idx)];
188
+ case 1: return [2 /*return*/, _a.sent()];
189
+ }
190
+ });
191
+ });
192
+ };
193
+ Component.prototype.getSelectorObject = function (selectorValue) {
194
+ var _this = this;
195
+ return {
196
+ el: function () { return _this.getChildEl(selectorValue); },
197
+ els: function () { return _this.getChildEls(selectorValue); },
198
+ byIdx: function (idx) { return _this.getChildElByIdx(selectorValue, idx); },
199
+ waitForDisplayed: function () {
200
+ var args = [];
201
+ for (var _i = 0; _i < arguments.length; _i++) {
202
+ args[_i] = arguments[_i];
203
+ }
204
+ return _this.waitForDisplayedChildEl(selectorValue, args);
205
+ },
206
+ waitForExist: function () {
207
+ var args = [];
208
+ for (var _i = 0; _i < arguments.length; _i++) {
209
+ args[_i] = arguments[_i];
210
+ }
211
+ return _this.waitForExistsChildEl(selectorValue, args);
212
+ },
213
+ waitForEnabled: function () {
214
+ var args = [];
215
+ for (var _i = 0; _i < arguments.length; _i++) {
216
+ args[_i] = arguments[_i];
217
+ }
218
+ return _this.waitForEnabledChildEl(selectorValue, args);
219
+ },
220
+ setValue: function () {
221
+ var args = [];
222
+ for (var _i = 0; _i < arguments.length; _i++) {
223
+ args[_i] = arguments[_i];
224
+ }
225
+ return _this.setValueChildEl(selectorValue, args);
226
+ },
227
+ click: function () { return _this.clickChildEl(selectorValue); },
228
+ clickByIdx: function (idx) { return _this.clickByIdxChildEl(selectorValue, idx); },
229
+ getText: function () { return _this.getTextChildEl(selectorValue); },
230
+ isDisplayed: function () { return _this.isDisplayedChildEl(selectorValue); },
231
+ isExisting: function () { return _this.isExistingChildEl(selectorValue); },
232
+ };
233
+ };
234
+ // eslint-disable-next-line max-statements
235
+ Component.prototype.callDynamicMethod = function (selectors, field) {
236
+ var selectorKeys = Object.keys(selectors);
237
+ // TODO: This logic need improvement to avoid false positives
238
+ var selectorKey = selectorKeys.find(function (key) { return field.includes(key); });
239
+ if (!(0, shared_1.isDefined)(selectorKey)) {
240
+ return undefined;
241
+ }
242
+ var selectorValue = selectors[selectorKey];
243
+ var selectorObject = this.getSelectorObject(selectorValue);
244
+ if (field === selectorKey) {
245
+ return selectorObject;
246
+ }
247
+ else if (field.endsWith('Els')) {
248
+ return this.getChildEls(selectorValue);
249
+ }
250
+ else if (field.endsWith('El')) {
251
+ return this.getChildEl(selectorValue);
252
+ }
253
+ return undefined;
254
+ };
255
+ return Component;
334
256
  }());
335
- exports.VisibleComponent = VisibleComponent;
336
- //# sourceMappingURL=visible.component.js.map
257
+ exports.Component = Component;
258
+ //# sourceMappingURL=component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/component/component/component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAkD;AAElD,yCAAiE;AAWjE;IAAA;IA4FA,CAAC;IA3FS,gCAAY,GAAlB,UAAmB,QAAgB;;;;4BACxB,qBAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAA;4BAAtC,qBAAM,CAAC,SAA+B,CAAC,CAAC,KAAK,EAAE,EAAA;;wBAA/C,SAA+C,CAAC;;;;;KACnD;IAEK,qCAAiB,GAAvB,UAAwB,QAAgB,EAAE,GAAW;;;;4BAC1C,qBAAM,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,GAAG,CAAC,EAAA;4BAAhD,qBAAM,CAAC,SAAyC,CAAC,CAAC,KAAK,EAAE,EAAA;;wBAAzD,SAAyD,CAAC;;;;;KAC7D;IAEK,mCAAe,GAArB,UAAsB,QAAgB,EAAE,IAAkB;;;;;4BAC/C,qBAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAA;4BAAtC,qBAAM,CAAA,KAAA,CAAC,SAA+B,CAAC,CAAA,CAAC,QAAQ,WAAI,IAAI,GAAC;;wBAAzD,SAAyD,CAAC;;;;;KA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,CAAC,CAAC;QAE7D,IAAI,KAAK,KAAK,WAAW,EAAE;YACvB,OAAO,cAAc,CAAC;SACzB;aAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;YAC9B,OAAO,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;SAC1C;aAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;YAC7B,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;SACzC;QAED,OAAO,SAAS,CAAC;IACrB,CAAC;IACL,gBAAC;AAAD,CAAC,AA5FD,IA4FC;AA5FY,8BAAS"}
@@ -0,0 +1,4 @@
1
+ import type { ComponentWithSelectors, Enum } from '../../type';
2
+ import type { Component } from '../component/component';
3
+ export declare const createComponent: <T extends string>(selectors: Enum<T>) => ComponentWithSelectors<T, Component>;
4
+ //# sourceMappingURL=create-component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-component.d.ts","sourceRoot":"","sources":["../../../src/component/create-component/create-component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,eAAO,MAAM,eAAe,gFACU,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createComponent = void 0;
4
+ var get_component_1 = require("../get-component/get-component");
5
+ var createComponent = function (selectors) {
6
+ return new ((0, get_component_1.getComponent)(selectors))();
7
+ };
8
+ exports.createComponent = createComponent;
9
+ //# sourceMappingURL=create-component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-component.js","sourceRoot":"","sources":["../../../src/component/create-component/create-component.ts"],"names":[],"mappings":";;;AAAA,gEAA8D;AAKvD,IAAM,eAAe,GAAG,UAAmB,SAAkB;IAChE,OAAA,IAAI,CAAC,IAAA,4BAAY,EAAI,SAAS,CAAC,CAAC,EAAE;AAAlC,CAAkC,CAAC;AAD1B,QAAA,eAAe,mBACW"}
@@ -0,0 +1,4 @@
1
+ import type { ComponentWithSelectors, Enum } from '../../type';
2
+ import type { RootedComponent } from '../rooted-component/rooted-component';
3
+ export declare const createRootedComponent: <T extends string>(selectors: Enum<T>, selectorOrElement?: WebdriverIO.Element | string) => ComponentWithSelectors<T, RootedComponent>;
4
+ //# sourceMappingURL=create-rooted-component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-rooted-component.d.ts","sourceRoot":"","sources":["../../../src/component/create-rooted-component/create-rooted-component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAE5E,eAAO,MAAM,qBAAqB,6DAEV,YAAY,OAAO,GAAG,MAAM,+CACsD,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createRootedComponent = void 0;
4
+ var get_rooted_component_1 = require("../get-rooted-component/get-rooted-component");
5
+ var createRootedComponent = function (selectors, selectorOrElement) { return new ((0, get_rooted_component_1.getRootedComponent)(selectors))(selectorOrElement); };
6
+ exports.createRootedComponent = createRootedComponent;
7
+ //# sourceMappingURL=create-rooted-component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-rooted-component.js","sourceRoot":"","sources":["../../../src/component/create-rooted-component/create-rooted-component.ts"],"names":[],"mappings":";;;AAAA,qFAAkF;AAK3E,IAAM,qBAAqB,GAAG,UACjC,SAAkB,EAClB,iBAAgD,IACH,OAAA,IAAI,CAAC,IAAA,yCAAkB,EAAI,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,EAAzD,CAAyD,CAAC;AAH9F,QAAA,qBAAqB,yBAGyE"}
@@ -0,0 +1,6 @@
1
+ import { Component } from '../component/component';
2
+ import type { ComponentWithSelectors, Enum } from '../../type';
3
+ declare type ComponentWithSelectorsCtor<T extends string> = new (selectorOrElement?: WebdriverIO.Element | string) => ComponentWithSelectors<T, Component>;
4
+ export declare const getComponent: <T extends string>(selectors: Enum<T>) => ComponentWithSelectorsCtor<T>;
5
+ export {};
6
+ //# sourceMappingURL=get-component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-component.d.ts","sourceRoot":"","sources":["../../../src/component/get-component/get-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,KAAK,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAE/D,aAAK,0BAA0B,CAAC,CAAC,SAAS,MAAM,IAAI,KAChD,iBAAiB,CAAC,EAAE,WAAW,CAAC,OAAO,GAAG,MAAM,KAC/C,sBAAsB,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AAE1C,eAAO,MAAM,YAAY,yEAkBpB,CAAC"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.getComponent = void 0;
19
+ var component_1 = require("../component/component");
20
+ var getComponent = function (selectors) {
21
+ // @ts-expect-error We use proxy for dynamic fields
22
+ return /** @class */ (function (_super) {
23
+ __extends(class_1, _super);
24
+ function class_1() {
25
+ var _this = _super.call(this) || this;
26
+ // eslint-disable-next-line no-constructor-return
27
+ return new Proxy(_this, {
28
+ get: function (client, field, receiver) {
29
+ if (field in client) {
30
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
31
+ return Reflect.get(client, field, receiver);
32
+ }
33
+ return client.callDynamicMethod(selectors, field);
34
+ },
35
+ });
36
+ }
37
+ return class_1;
38
+ }(component_1.Component));
39
+ };
40
+ exports.getComponent = getComponent;
41
+ //# sourceMappingURL=get-component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-component.js","sourceRoot":"","sources":["../../../src/component/get-component/get-component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,oDAAmD;AAQ5C,IAAM,YAAY,GAAG,UAAmB,SAAkB;IAC7D,mDAAmD;IACnD;QAAc,2BAAS;QACnB;YAAA,YACI,iBAAO,SAaV;YAXG,iDAAiD;YACjD,OAAO,IAAI,KAAK,CAAC,KAAI,EAAE;gBACnB,GAAG,EAAH,UAAI,MAAM,EAAE,KAAQ,EAAE,QAAQ;oBAC1B,IAAI,KAAK,IAAI,MAAM,EAAE;wBACjB,+DAA+D;wBAC/D,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;qBAC/C;oBAED,OAAO,MAAM,CAAC,iBAAiB,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;gBACtD,CAAC;aACJ,CAAC,CAAC;QACP,CAAC;QACL,cAAC;IAAD,CAAC,AAhBD,CAAc,qBAAS;AAAvB,CAgBC,CAAC;AAlBO,QAAA,YAAY,gBAkBnB"}
@@ -0,0 +1,6 @@
1
+ import { RootedComponent } from '../rooted-component/rooted-component';
2
+ import type { ComponentWithSelectors, Enum } from '../../type';
3
+ declare type RootedComponentWithSelectorsCtor<T extends string> = new (selectorOrElement?: WebdriverIO.Element | string) => ComponentWithSelectors<T, RootedComponent>;
4
+ export declare const getRootedComponent: <T extends string>(selectors: Enum<T>) => RootedComponentWithSelectorsCtor<T>;
5
+ export {};
6
+ //# sourceMappingURL=get-rooted-component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-rooted-component.d.ts","sourceRoot":"","sources":["../../../src/component/get-rooted-component/get-rooted-component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,KAAK,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAE/D,aAAK,gCAAgC,CAAC,CAAC,SAAS,MAAM,IAAI,KACtD,iBAAiB,CAAC,EAAE,WAAW,CAAC,OAAO,GAAG,MAAM,KAC/C,sBAAsB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC;AAEhD,eAAO,MAAM,kBAAkB,+EA4B1B,CAAC"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.getRootedComponent = void 0;
19
+ var shared_1 = require("@rnw-community/shared");
20
+ var rooted_component_1 = require("../rooted-component/rooted-component");
21
+ var getRootedComponent = function (selectors) {
22
+ // @ts-expect-error We use proxy for dynamic fields
23
+ return /** @class */ (function (_super) {
24
+ __extends(class_1, _super);
25
+ function class_1(selectorOrElement) {
26
+ var _this = this;
27
+ var selectorKeys = Object.keys(selectors);
28
+ var rootSelectorKey = selectorKeys.find(function (key) { return key === 'Root'; });
29
+ var selectorRootKey = (0, shared_1.isDefined)(rootSelectorKey) ? selectors[rootSelectorKey] : undefined;
30
+ var rootSelector = (0, shared_1.isDefined)(selectorOrElement) ? selectorOrElement : selectorRootKey;
31
+ if (!(0, shared_1.isDefined)(rootSelector)) {
32
+ throw new Error('Cannot create RootedVisibleComponent - Neither root selector not root element is passed');
33
+ }
34
+ _this = _super.call(this, rootSelector) || this;
35
+ // eslint-disable-next-line no-constructor-return
36
+ return new Proxy(_this, {
37
+ get: function (client, field, receiver) {
38
+ if (field in client) {
39
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
40
+ return Reflect.get(client, field, receiver);
41
+ }
42
+ return client.callDynamicMethod(selectors, field);
43
+ },
44
+ });
45
+ }
46
+ return class_1;
47
+ }(rooted_component_1.RootedComponent));
48
+ };
49
+ exports.getRootedComponent = getRootedComponent;
50
+ //# sourceMappingURL=get-rooted-component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-rooted-component.js","sourceRoot":"","sources":["../../../src/component/get-rooted-component/get-rooted-component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,gDAAkD;AAElD,yEAAuE;AAQhE,IAAM,kBAAkB,GAAG,UAAmB,SAAkB;IACnE,mDAAmD;IACnD;QAAc,2BAAe;QACzB,iBAAY,iBAA+C;YAA3D,iBAwBC;YAvBG,IAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAQ,CAAC;YAEnD,IAAM,eAAe,GAAG,YAAY,CAAC,IAAI,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,KAAK,MAAM,EAAd,CAAc,CAAC,CAAC;YACjE,IAAM,eAAe,GAAG,IAAA,kBAAS,EAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5F,IAAM,YAAY,GAAG,IAAA,kBAAS,EAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,eAAe,CAAC;YAExF,IAAI,CAAC,IAAA,kBAAS,EAAC,YAAY,CAAC,EAAE;gBAC1B,MAAM,IAAI,KAAK,CAAC,yFAAyF,CAAC,CAAC;aAC9G;oBAED,kBAAM,YAAY,CAAC;YAEnB,iDAAiD;YACjD,OAAO,IAAI,KAAK,CAAC,KAAI,EAAE;gBACnB,GAAG,EAAH,UAAI,MAAM,EAAE,KAAQ,EAAE,QAAQ;oBAC1B,IAAI,KAAK,IAAI,MAAM,EAAE;wBACjB,+DAA+D;wBAC/D,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;qBAC/C;oBAED,OAAO,MAAM,CAAC,iBAAiB,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;gBACtD,CAAC;aACJ,CAAC,CAAC;QACP,CAAC;QACL,cAAC;IAAD,CAAC,AA1BD,CAAc,kCAAe;AAA7B,CA0BC,CAAC;AA5BO,QAAA,kBAAkB,sBA4BzB"}
@@ -1,2 +1,7 @@
1
- export * from './visible.component';
1
+ export { Component } from './component/component';
2
+ export { getComponent } from './get-component/get-component';
3
+ export { createComponent } from './create-component/create-component';
4
+ export { RootedComponent } from './rooted-component/rooted-component';
5
+ export { getRootedComponent } from './get-rooted-component/get-rooted-component';
6
+ export { createRootedComponent } from './create-rooted-component/create-rooted-component';
2
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/component/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/component/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC"}
@@ -1,18 +1,16 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./visible.component"), exports);
3
+ exports.createRootedComponent = exports.getRootedComponent = exports.RootedComponent = exports.createComponent = exports.getComponent = exports.Component = void 0;
4
+ var component_1 = require("./component/component");
5
+ Object.defineProperty(exports, "Component", { enumerable: true, get: function () { return component_1.Component; } });
6
+ var get_component_1 = require("./get-component/get-component");
7
+ Object.defineProperty(exports, "getComponent", { enumerable: true, get: function () { return get_component_1.getComponent; } });
8
+ var create_component_1 = require("./create-component/create-component");
9
+ Object.defineProperty(exports, "createComponent", { enumerable: true, get: function () { return create_component_1.createComponent; } });
10
+ var rooted_component_1 = require("./rooted-component/rooted-component");
11
+ Object.defineProperty(exports, "RootedComponent", { enumerable: true, get: function () { return rooted_component_1.RootedComponent; } });
12
+ var get_rooted_component_1 = require("./get-rooted-component/get-rooted-component");
13
+ Object.defineProperty(exports, "getRootedComponent", { enumerable: true, get: function () { return get_rooted_component_1.getRootedComponent; } });
14
+ var create_rooted_component_1 = require("./create-rooted-component/create-rooted-component");
15
+ Object.defineProperty(exports, "createRootedComponent", { enumerable: true, get: function () { return create_rooted_component_1.createRootedComponent; } });
18
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/component/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/component/index.ts"],"names":[],"mappings":";;;AAAA,mDAAkD;AAAzC,sGAAA,SAAS,OAAA;AAClB,+DAA6D;AAApD,6GAAA,YAAY,OAAA;AACrB,wEAAsE;AAA7D,mHAAA,eAAe,OAAA;AAExB,wEAAsE;AAA7D,mHAAA,eAAe,OAAA;AACxB,oFAAiF;AAAxE,0HAAA,kBAAkB,OAAA;AAC3B,6FAA0F;AAAjF,gIAAA,qBAAqB,OAAA"}