@rind-ui/testing 1.1.0 → 1.3.0

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.
@@ -1,7 +1,7 @@
1
1
  //#region \0rolldown/runtime.js
2
2
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
3
3
  //#endregion
4
- //#region ../../node_modules/.pnpm/vitest@5.0.4_@types+node@24.19.2_@vitest+browser-playwright@5.0.4_@vitest+ui@5.0.4_jsdo_cf06651230fa8e4c6e2eddd3c1abf6a9/node_modules/vitest/dist/chunks/tinyrainbow.Do8I1XRG.js
4
+ //#region ../../node_modules/.pnpm/vitest@5.0.4_@types+node@24.19.2_@vitest+browser-playwright@5.0.4_@vitest+ui@5.0.4_jsdo_5800036d204cd94ebff73363fb6967a0/node_modules/vitest/dist/chunks/tinyrainbow.Do8I1XRG.js
5
5
  var d$1 = (e) => String(e);
6
6
  d$1.open = d$1.close = "";
7
7
  var i$1 = () => d$1;
@@ -86,7 +86,7 @@ function h$1({ force: e } = {}) {
86
86
  }
87
87
  var $ = h$1();
88
88
  //#endregion
89
- //#region ../../node_modules/.pnpm/vitest@5.0.4_@types+node@24.19.2_@vitest+browser-playwright@5.0.4_@vitest+ui@5.0.4_jsdo_cf06651230fa8e4c6e2eddd3c1abf6a9/node_modules/vitest/dist/chunks/index.D0heQG4v.js
89
+ //#region ../../node_modules/.pnpm/vitest@5.0.4_@types+node@24.19.2_@vitest+browser-playwright@5.0.4_@vitest+ui@5.0.4_jsdo_5800036d204cd94ebff73363fb6967a0/node_modules/vitest/dist/chunks/index.D0heQG4v.js
90
90
  function _mergeNamespaces(n, m) {
91
91
  m.forEach(function(e) {
92
92
  e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
@@ -1248,7 +1248,7 @@ const plugins = {
1248
1248
  Error: ErrorPlugin
1249
1249
  };
1250
1250
  //#endregion
1251
- //#region ../../node_modules/.pnpm/vitest@5.0.4_@types+node@24.19.2_@vitest+browser-playwright@5.0.4_@vitest+ui@5.0.4_jsdo_cf06651230fa8e4c6e2eddd3c1abf6a9/node_modules/vitest/dist/chunks/display.BlTmubjj.js
1251
+ //#region ../../node_modules/.pnpm/vitest@5.0.4_@types+node@24.19.2_@vitest+browser-playwright@5.0.4_@vitest+ui@5.0.4_jsdo_5800036d204cd94ebff73363fb6967a0/node_modules/vitest/dist/chunks/display.BlTmubjj.js
1252
1252
  const { AsymmetricMatcher: AsymmetricMatcher$1, DOMCollection: DOMCollection$1, DOMElement: DOMElement$1, Immutable: Immutable$1, ReactElement: ReactElement$1, ReactTestComponent: ReactTestComponent$1 } = plugins;
1253
1253
  const PLUGINS$1 = [
1254
1254
  ReactTestComponent$1,
@@ -1601,7 +1601,7 @@ const isAbsolute = function(p) {
1601
1601
  return _IS_ABSOLUTE_RE.test(p);
1602
1602
  };
1603
1603
  //#endregion
1604
- //#region ../../node_modules/.pnpm/vitest@5.0.4_@types+node@24.19.2_@vitest+browser-playwright@5.0.4_@vitest+ui@5.0.4_jsdo_cf06651230fa8e4c6e2eddd3c1abf6a9/node_modules/vitest/dist/chunks/source-map.DdKI5IHB.js
1604
+ //#region ../../node_modules/.pnpm/vitest@5.0.4_@types+node@24.19.2_@vitest+browser-playwright@5.0.4_@vitest+ui@5.0.4_jsdo_5800036d204cd94ebff73363fb6967a0/node_modules/vitest/dist/chunks/source-map.DdKI5IHB.js
1605
1605
  var build = {};
1606
1606
  var hasRequiredBuild;
1607
1607
  function requireBuild() {
@@ -2279,13 +2279,13 @@ function getOriginalPosition(map, needle) {
2279
2279
  return result;
2280
2280
  }
2281
2281
  //#endregion
2282
- //#region ../../node_modules/.pnpm/vitest@5.0.4_@types+node@24.19.2_@vitest+browser-playwright@5.0.4_@vitest+ui@5.0.4_jsdo_cf06651230fa8e4c6e2eddd3c1abf6a9/node_modules/vitest/dist/task-utils.js
2282
+ //#region ../../node_modules/.pnpm/vitest@5.0.4_@types+node@24.19.2_@vitest+browser-playwright@5.0.4_@vitest+ui@5.0.4_jsdo_5800036d204cd94ebff73363fb6967a0/node_modules/vitest/dist/task-utils.js
2283
2283
  /* @__NO_SIDE_EFFECTS__ */
2284
2284
  function createTaskName(names, separator = " > ") {
2285
2285
  return names.filter((name) => name !== void 0).join(separator);
2286
2286
  }
2287
2287
  //#endregion
2288
- //#region ../../node_modules/.pnpm/vitest@5.0.4_@types+node@24.19.2_@vitest+browser-playwright@5.0.4_@vitest+ui@5.0.4_jsdo_cf06651230fa8e4c6e2eddd3c1abf6a9/node_modules/vitest/dist/chunks/run.Cm2sd7-x.js
2288
+ //#region ../../node_modules/.pnpm/vitest@5.0.4_@types+node@24.19.2_@vitest+browser-playwright@5.0.4_@vitest+ui@5.0.4_jsdo_5800036d204cd94ebff73363fb6967a0/node_modules/vitest/dist/chunks/run.Cm2sd7-x.js
2289
2289
  const { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = plugins;
2290
2290
  plugins.Error;
2291
2291
  var PendingError = class extends Error {
@@ -6797,7 +6797,7 @@ function use(fn) {
6797
6797
  }
6798
6798
  __name(use, "use");
6799
6799
  //#endregion
6800
- //#region ../../node_modules/.pnpm/vite@8.3.4_@types+node@24.19.2_esbuild@0.28.2_jiti@2.7.0_yaml@2.9.1/node_modules/vite/dist/node/module-runner.js
6800
+ //#region ../../node_modules/.pnpm/vite@8.3.4_@types+node@24.19.2_esbuild@0.28.2_jiti@2.7.0_sass-embedded@1.104.1_sass@1.104.1_yaml@2.9.1/node_modules/vite/dist/node/module-runner.js
6801
6801
  let SOURCEMAPPING_URL = "sourceMa";
6802
6802
  SOURCEMAPPING_URL += "ppingURL";
6803
6803
  typeof process < "u" && process.platform;
@@ -664,7 +664,7 @@ function createDomEnv({ scope, anchor, modality, platform, partName, anatomyName
664
664
  const own = normalize(el.textContent);
665
665
  return typeof text === "string" ? own === text : text.test(own);
666
666
  };
667
- const found = Array.from(within.querySelectorAll("*")).filter(matches);
667
+ const found = Array.from(within.querySelectorAll("*")).filter((el) => matches(el) && !el.closest("[hidden]:not([hidden=\"until-found\"])"));
668
668
  return found.filter((el) => !found.some((other) => other !== el && el.contains(other)));
669
669
  };
670
670
  const anchorEls = () => queryBy(anchor, options.root ?? doc());
@@ -1025,9 +1025,9 @@ function createDomEnv({ scope, anchor, modality, platform, partName, anatomyName
1025
1025
  bubbles: true,
1026
1026
  cancelable: phase !== "cancel",
1027
1027
  composed: true,
1028
- pointerId: pointerType === "mouse" ? 1 : 2,
1028
+ pointerId: pointerOptions.pointerId ?? (pointerType === "mouse" ? 1 : 2),
1029
1029
  pointerType,
1030
- isPrimary: true,
1030
+ isPrimary: pointerOptions.pointerId === void 0,
1031
1031
  clientX,
1032
1032
  clientY,
1033
1033
  button: phase === "move" ? -1 : 0,
package/dist/dom.mjs CHANGED
@@ -1 +1 @@
1
- export { t as domEnv } from "./dom-D9Da5Fku.mjs";
1
+ export { t as domEnv } from "./dom-2jvIZsvL.mjs";