index.js 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _exportNames = {
  6. within: true,
  7. queries: true,
  8. queryHelpers: true,
  9. getDefaultNormalizer: true,
  10. getRoles: true,
  11. logRoles: true,
  12. isInaccessible: true,
  13. configure: true,
  14. getConfig: true
  15. };
  16. Object.defineProperty(exports, "within", {
  17. enumerable: true,
  18. get: function () {
  19. return _getQueriesForElement.getQueriesForElement;
  20. }
  21. });
  22. Object.defineProperty(exports, "getDefaultNormalizer", {
  23. enumerable: true,
  24. get: function () {
  25. return _matches.getDefaultNormalizer;
  26. }
  27. });
  28. Object.defineProperty(exports, "getRoles", {
  29. enumerable: true,
  30. get: function () {
  31. return _roleHelpers.getRoles;
  32. }
  33. });
  34. Object.defineProperty(exports, "logRoles", {
  35. enumerable: true,
  36. get: function () {
  37. return _roleHelpers.logRoles;
  38. }
  39. });
  40. Object.defineProperty(exports, "isInaccessible", {
  41. enumerable: true,
  42. get: function () {
  43. return _roleHelpers.isInaccessible;
  44. }
  45. });
  46. Object.defineProperty(exports, "configure", {
  47. enumerable: true,
  48. get: function () {
  49. return _config.configure;
  50. }
  51. });
  52. Object.defineProperty(exports, "getConfig", {
  53. enumerable: true,
  54. get: function () {
  55. return _config.getConfig;
  56. }
  57. });
  58. exports.queryHelpers = exports.queries = void 0;
  59. var _getQueriesForElement = require("./get-queries-for-element");
  60. Object.keys(_getQueriesForElement).forEach(function (key) {
  61. if (key === "default" || key === "__esModule") return;
  62. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  63. if (key in exports && exports[key] === _getQueriesForElement[key]) return;
  64. Object.defineProperty(exports, key, {
  65. enumerable: true,
  66. get: function () {
  67. return _getQueriesForElement[key];
  68. }
  69. });
  70. });
  71. var queries = _interopRequireWildcard(require("./queries"));
  72. exports.queries = queries;
  73. Object.keys(queries).forEach(function (key) {
  74. if (key === "default" || key === "__esModule") return;
  75. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  76. if (key in exports && exports[key] === queries[key]) return;
  77. Object.defineProperty(exports, key, {
  78. enumerable: true,
  79. get: function () {
  80. return queries[key];
  81. }
  82. });
  83. });
  84. var queryHelpers = _interopRequireWildcard(require("./query-helpers"));
  85. exports.queryHelpers = queryHelpers;
  86. Object.keys(queryHelpers).forEach(function (key) {
  87. if (key === "default" || key === "__esModule") return;
  88. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  89. if (key in exports && exports[key] === queryHelpers[key]) return;
  90. Object.defineProperty(exports, key, {
  91. enumerable: true,
  92. get: function () {
  93. return queryHelpers[key];
  94. }
  95. });
  96. });
  97. var _waitFor = require("./wait-for");
  98. Object.keys(_waitFor).forEach(function (key) {
  99. if (key === "default" || key === "__esModule") return;
  100. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  101. if (key in exports && exports[key] === _waitFor[key]) return;
  102. Object.defineProperty(exports, key, {
  103. enumerable: true,
  104. get: function () {
  105. return _waitFor[key];
  106. }
  107. });
  108. });
  109. var _waitForElement = require("./wait-for-element");
  110. Object.keys(_waitForElement).forEach(function (key) {
  111. if (key === "default" || key === "__esModule") return;
  112. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  113. if (key in exports && exports[key] === _waitForElement[key]) return;
  114. Object.defineProperty(exports, key, {
  115. enumerable: true,
  116. get: function () {
  117. return _waitForElement[key];
  118. }
  119. });
  120. });
  121. var _waitForElementToBeRemoved = require("./wait-for-element-to-be-removed");
  122. Object.keys(_waitForElementToBeRemoved).forEach(function (key) {
  123. if (key === "default" || key === "__esModule") return;
  124. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  125. if (key in exports && exports[key] === _waitForElementToBeRemoved[key]) return;
  126. Object.defineProperty(exports, key, {
  127. enumerable: true,
  128. get: function () {
  129. return _waitForElementToBeRemoved[key];
  130. }
  131. });
  132. });
  133. var _waitForDomChange = require("./wait-for-dom-change");
  134. Object.keys(_waitForDomChange).forEach(function (key) {
  135. if (key === "default" || key === "__esModule") return;
  136. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  137. if (key in exports && exports[key] === _waitForDomChange[key]) return;
  138. Object.defineProperty(exports, key, {
  139. enumerable: true,
  140. get: function () {
  141. return _waitForDomChange[key];
  142. }
  143. });
  144. });
  145. var _matches = require("./matches");
  146. var _getNodeText = require("./get-node-text");
  147. Object.keys(_getNodeText).forEach(function (key) {
  148. if (key === "default" || key === "__esModule") return;
  149. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  150. if (key in exports && exports[key] === _getNodeText[key]) return;
  151. Object.defineProperty(exports, key, {
  152. enumerable: true,
  153. get: function () {
  154. return _getNodeText[key];
  155. }
  156. });
  157. });
  158. var _events = require("./events");
  159. Object.keys(_events).forEach(function (key) {
  160. if (key === "default" || key === "__esModule") return;
  161. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  162. if (key in exports && exports[key] === _events[key]) return;
  163. Object.defineProperty(exports, key, {
  164. enumerable: true,
  165. get: function () {
  166. return _events[key];
  167. }
  168. });
  169. });
  170. var _screen = require("./screen");
  171. Object.keys(_screen).forEach(function (key) {
  172. if (key === "default" || key === "__esModule") return;
  173. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  174. if (key in exports && exports[key] === _screen[key]) return;
  175. Object.defineProperty(exports, key, {
  176. enumerable: true,
  177. get: function () {
  178. return _screen[key];
  179. }
  180. });
  181. });
  182. var _roleHelpers = require("./role-helpers");
  183. var _prettyDom = require("./pretty-dom");
  184. Object.keys(_prettyDom).forEach(function (key) {
  185. if (key === "default" || key === "__esModule") return;
  186. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  187. if (key in exports && exports[key] === _prettyDom[key]) return;
  188. Object.defineProperty(exports, key, {
  189. enumerable: true,
  190. get: function () {
  191. return _prettyDom[key];
  192. }
  193. });
  194. });
  195. var _config = require("./config");
  196. var _suggestions = require("./suggestions");
  197. Object.keys(_suggestions).forEach(function (key) {
  198. if (key === "default" || key === "__esModule") return;
  199. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  200. if (key in exports && exports[key] === _suggestions[key]) return;
  201. Object.defineProperty(exports, key, {
  202. enumerable: true,
  203. get: function () {
  204. return _suggestions[key];
  205. }
  206. });
  207. });
  208. function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
  209. function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }