appium-xcuitest-driver 10.14.3 → 10.14.5

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 (71) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/lib/commands/battery.d.ts +4 -4
  3. package/build/lib/commands/battery.d.ts.map +1 -1
  4. package/build/lib/commands/battery.js +3 -7
  5. package/build/lib/commands/battery.js.map +1 -1
  6. package/build/lib/commands/biometric.d.ts +12 -14
  7. package/build/lib/commands/biometric.d.ts.map +1 -1
  8. package/build/lib/commands/biometric.js +10 -19
  9. package/build/lib/commands/biometric.js.map +1 -1
  10. package/build/lib/commands/clipboard.d.ts +9 -11
  11. package/build/lib/commands/clipboard.d.ts.map +1 -1
  12. package/build/lib/commands/clipboard.js +8 -13
  13. package/build/lib/commands/clipboard.js.map +1 -1
  14. package/build/lib/commands/content-size.d.ts +16 -19
  15. package/build/lib/commands/content-size.d.ts.map +1 -1
  16. package/build/lib/commands/content-size.js +14 -22
  17. package/build/lib/commands/content-size.js.map +1 -1
  18. package/build/lib/commands/geolocation.d.ts +16 -36
  19. package/build/lib/commands/geolocation.d.ts.map +1 -1
  20. package/build/lib/commands/geolocation.js +8 -25
  21. package/build/lib/commands/geolocation.js.map +1 -1
  22. package/build/lib/commands/increase-contrast.d.ts +10 -13
  23. package/build/lib/commands/increase-contrast.d.ts.map +1 -1
  24. package/build/lib/commands/increase-contrast.js +8 -16
  25. package/build/lib/commands/increase-contrast.js.map +1 -1
  26. package/build/lib/commands/iohid.d.ts +6 -1359
  27. package/build/lib/commands/iohid.d.ts.map +1 -1
  28. package/build/lib/commands/iohid.js +5 -10
  29. package/build/lib/commands/iohid.js.map +1 -1
  30. package/build/lib/commands/keyboard.d.ts +16 -13
  31. package/build/lib/commands/keyboard.d.ts.map +1 -1
  32. package/build/lib/commands/keyboard.js +14 -18
  33. package/build/lib/commands/keyboard.js.map +1 -1
  34. package/build/lib/commands/lock.d.ts +6 -10
  35. package/build/lib/commands/lock.d.ts.map +1 -1
  36. package/build/lib/commands/lock.js +3 -10
  37. package/build/lib/commands/lock.js.map +1 -1
  38. package/build/lib/commands/memory.d.ts +4 -5
  39. package/build/lib/commands/memory.d.ts.map +1 -1
  40. package/build/lib/commands/memory.js +3 -8
  41. package/build/lib/commands/memory.js.map +1 -1
  42. package/build/lib/commands/notifications.d.ts +10 -10
  43. package/build/lib/commands/notifications.d.ts.map +1 -1
  44. package/build/lib/commands/notifications.js +8 -12
  45. package/build/lib/commands/notifications.js.map +1 -1
  46. package/build/lib/commands/pasteboard.d.ts +9 -10
  47. package/build/lib/commands/pasteboard.d.ts.map +1 -1
  48. package/build/lib/commands/pasteboard.js +8 -13
  49. package/build/lib/commands/pasteboard.js.map +1 -1
  50. package/lib/commands/{battery.js → battery.ts} +10 -12
  51. package/lib/commands/biometric.ts +52 -0
  52. package/lib/commands/clipboard.ts +37 -0
  53. package/lib/commands/content-size.ts +67 -0
  54. package/lib/commands/geolocation.ts +55 -0
  55. package/lib/commands/increase-contrast.ts +49 -0
  56. package/lib/commands/{iohid.js → iohid.ts} +15 -13
  57. package/lib/commands/keyboard.ts +70 -0
  58. package/lib/commands/lock.ts +43 -0
  59. package/lib/commands/{memory.js → memory.ts} +9 -9
  60. package/lib/commands/{notifications.js → notifications.ts} +22 -14
  61. package/lib/commands/pasteboard.ts +44 -0
  62. package/npm-shrinkwrap.json +29 -8
  63. package/package.json +1 -1
  64. package/lib/commands/biometric.js +0 -52
  65. package/lib/commands/clipboard.js +0 -35
  66. package/lib/commands/content-size.js +0 -68
  67. package/lib/commands/geolocation.js +0 -56
  68. package/lib/commands/increase-contrast.js +0 -50
  69. package/lib/commands/keyboard.js +0 -62
  70. package/lib/commands/lock.js +0 -46
  71. package/lib/commands/pasteboard.js +0 -43
@@ -17,33 +17,25 @@ const INCREASE_CONTRAST_CONFIG = [
17
17
  * Sets the increase contrast configuration for the given simulator.
18
18
  *
19
19
  * @since Xcode 15 (but lower xcode could have this command)
20
- * @param {IncreaseContrastAction} increaseContrast valid increase contrast configuration value.
21
- * Acceptable value is 'enabled' or 'disabled' with Xcode 16.2.
22
- * @throws {Error} if the current platform does not support content size appearance changes
23
- * @this {XCUITestDriver}
20
+ * @param increaseContrast - Valid increase contrast configuration value.
21
+ * Acceptable value is 'enabled' or 'disabled' with Xcode 16.2.
22
+ * @throws If the current platform does not support content size appearance changes
24
23
  */
25
24
  async function mobileSetIncreaseContrast(increaseContrast) {
26
- const simulator = assertSimulator(this);
27
25
  if (!INCREASE_CONTRAST_CONFIG.includes(lodash_1.default.lowerCase(increaseContrast))) {
28
26
  throw new driver_1.errors.InvalidArgumentError(`The 'increaseContrast' value is expected to be one of ${INCREASE_CONTRAST_CONFIG.join(',')}`);
29
27
  }
30
- await simulator.setIncreaseContrast(increaseContrast);
28
+ await assertSimulator(this).setIncreaseContrast(increaseContrast);
31
29
  }
32
30
  /**
33
31
  * Retrieves the current increase contrast configuration value from the given simulator.
34
32
  *
35
33
  * @since Xcode 15 (but lower xcode could have this command)
36
- * @returns {Promise<IncreaseContrastResult>} the contrast configuration value.
37
- * Possible return value is 'enabled', 'disabled',
38
- * 'unsupported' or 'unknown' with Xcode 16.2.
39
- * @this {XCUITestDriver}
34
+ * @returns The contrast configuration value.
35
+ * Possible return value is 'enabled', 'disabled',
36
+ * 'unsupported' or 'unknown' with Xcode 16.2.
40
37
  */
41
38
  async function mobileGetIncreaseContrast() {
42
- return /** @type {IncreaseContrastResult} */ (await assertSimulator(this).getIncreaseContrast());
39
+ return await assertSimulator(this).getIncreaseContrast();
43
40
  }
44
- /**
45
- * @typedef {import('../driver').XCUITestDriver} XCUITestDriver
46
- * @typedef {import('./types').IncreaseContrastAction} IncreaseContrastAction
47
- * @typedef {import('./types').IncreaseContrastResult} IncreaseContrastResult
48
- */
49
41
  //# sourceMappingURL=increase-contrast.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"increase-contrast.js","sourceRoot":"","sources":["../../../lib/commands/increase-contrast.js"],"names":[],"mappings":";;;;;AAoBA,8DAUC;AAWD,8DAEC;AA3CD,oDAAuB;AACvB,oCAA6D;AAC7D,0CAAuC;AAEvC,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,uBAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;AAE7F,MAAM,wBAAwB,GAAG;IAC7B,SAAS;IACT,UAAU;CACb,CAAC;AAEF;;;;;;;;GAQG;AACI,KAAK,UAAU,yBAAyB,CAAC,gBAAgB;IAC9D,MAAM,SAAS,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAExC,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,gBAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC;QACtE,MAAM,IAAI,eAAM,CAAC,oBAAoB,CACnC,yDAAyD,wBAAwB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAC9F,CAAC;IACJ,CAAC;IAED,MAAM,SAAS,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AACxD,CAAC;AAED;;;;;;;;GAQG;AACI,KAAK,UAAU,yBAAyB;IAC7C,OAAO,qCAAqC,CAAC,CAAC,MAAM,eAAe,CAAC,IAAI,CAAC,CAAC,mBAAmB,EAAE,CAAC,CAAC;AACnG,CAAC;AAED;;;;GAIG"}
1
+ {"version":3,"file":"increase-contrast.js","sourceRoot":"","sources":["../../../lib/commands/increase-contrast.ts"],"names":[],"mappings":";;;;;AAsBA,8DAWC;AAUD,8DAIC;AA/CD,oDAAuB;AACvB,oCAA6D;AAC7D,0CAAuC;AAKvC,MAAM,eAAe,GAAG,CAAC,MAAsB,EAAa,EAAE,CAAC,uBAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;AAExH,MAAM,wBAAwB,GAAG;IAC7B,SAAS;IACT,UAAU;CACJ,CAAC;AAEX;;;;;;;GAOG;AACI,KAAK,UAAU,yBAAyB,CAE7C,gBAAwC;IAExC,IAAI,CAAE,wBAA8C,CAAC,QAAQ,CAAC,gBAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC;QAC7F,MAAM,IAAI,eAAM,CAAC,oBAAoB,CACnC,yDAAyD,wBAAwB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAC9F,CAAC;IACJ,CAAC;IAED,MAAM,eAAe,CAAC,IAAI,CAAC,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AACpE,CAAC;AAED;;;;;;;GAOG;AACI,KAAK,UAAU,yBAAyB;IAG7C,OAAO,MAAM,eAAe,CAAC,IAAI,CAAC,CAAC,mBAAmB,EAA4B,CAAC;AACrF,CAAC"}