matsuri-hooks 4.2.14-alpha-ddc40d9.0 → 4.2.14
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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PPHTGFN3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./chunk-2TUXWMP5.js";
|
|
@@ -4210,4 +4210,4 @@ var userEvent = {
|
|
|
4210
4210
|
export {
|
|
4211
4211
|
userEvent
|
|
4212
4212
|
};
|
|
4213
|
-
//# sourceMappingURL=chunk-
|
|
4213
|
+
//# sourceMappingURL=chunk-LA6FC52Z.js.map
|
|
@@ -45227,33 +45227,29 @@ function withGlobalActEnvironment(actImplementation) {
|
|
|
45227
45227
|
};
|
|
45228
45228
|
}
|
|
45229
45229
|
var act3 = withGlobalActEnvironment(reactAct);
|
|
45230
|
-
var fireEvent2 =
|
|
45231
|
-
return fireEvent(...arguments);
|
|
45232
|
-
};
|
|
45230
|
+
var fireEvent2 = (...args) => fireEvent(...args);
|
|
45233
45231
|
Object.keys(fireEvent).forEach((key) => {
|
|
45234
|
-
fireEvent2[key] =
|
|
45235
|
-
return fireEvent[key](...arguments);
|
|
45236
|
-
};
|
|
45232
|
+
fireEvent2[key] = (...args) => fireEvent[key](...args);
|
|
45237
45233
|
});
|
|
45238
45234
|
var mouseEnter = fireEvent2.mouseEnter;
|
|
45239
45235
|
var mouseLeave = fireEvent2.mouseLeave;
|
|
45240
|
-
fireEvent2.mouseEnter =
|
|
45241
|
-
mouseEnter(...
|
|
45242
|
-
return fireEvent2.mouseOver(...
|
|
45236
|
+
fireEvent2.mouseEnter = (...args) => {
|
|
45237
|
+
mouseEnter(...args);
|
|
45238
|
+
return fireEvent2.mouseOver(...args);
|
|
45243
45239
|
};
|
|
45244
|
-
fireEvent2.mouseLeave =
|
|
45245
|
-
mouseLeave(...
|
|
45246
|
-
return fireEvent2.mouseOut(...
|
|
45240
|
+
fireEvent2.mouseLeave = (...args) => {
|
|
45241
|
+
mouseLeave(...args);
|
|
45242
|
+
return fireEvent2.mouseOut(...args);
|
|
45247
45243
|
};
|
|
45248
45244
|
var pointerEnter = fireEvent2.pointerEnter;
|
|
45249
45245
|
var pointerLeave = fireEvent2.pointerLeave;
|
|
45250
|
-
fireEvent2.pointerEnter =
|
|
45251
|
-
pointerEnter(...
|
|
45252
|
-
return fireEvent2.pointerOver(...
|
|
45246
|
+
fireEvent2.pointerEnter = (...args) => {
|
|
45247
|
+
pointerEnter(...args);
|
|
45248
|
+
return fireEvent2.pointerOver(...args);
|
|
45253
45249
|
};
|
|
45254
|
-
fireEvent2.pointerLeave =
|
|
45255
|
-
pointerLeave(...
|
|
45256
|
-
return fireEvent2.pointerOut(...
|
|
45250
|
+
fireEvent2.pointerLeave = (...args) => {
|
|
45251
|
+
pointerLeave(...args);
|
|
45252
|
+
return fireEvent2.pointerOut(...args);
|
|
45257
45253
|
};
|
|
45258
45254
|
var select = fireEvent2.select;
|
|
45259
45255
|
fireEvent2.select = (node, init) => {
|
|
@@ -45263,13 +45259,13 @@ fireEvent2.select = (node, init) => {
|
|
|
45263
45259
|
};
|
|
45264
45260
|
var blur = fireEvent2.blur;
|
|
45265
45261
|
var focus = fireEvent2.focus;
|
|
45266
|
-
fireEvent2.blur =
|
|
45267
|
-
fireEvent2.focusOut(...
|
|
45268
|
-
return blur(...
|
|
45262
|
+
fireEvent2.blur = (...args) => {
|
|
45263
|
+
fireEvent2.focusOut(...args);
|
|
45264
|
+
return blur(...args);
|
|
45269
45265
|
};
|
|
45270
|
-
fireEvent2.focus =
|
|
45271
|
-
fireEvent2.focusIn(...
|
|
45272
|
-
return focus(...
|
|
45266
|
+
fireEvent2.focus = (...args) => {
|
|
45267
|
+
fireEvent2.focusIn(...args);
|
|
45268
|
+
return focus(...args);
|
|
45273
45269
|
};
|
|
45274
45270
|
var configForRTL = {
|
|
45275
45271
|
reactStrictMode: false
|
|
@@ -45332,15 +45328,14 @@ function strictModeIfNeeded(innerElement, reactStrictMode) {
|
|
|
45332
45328
|
function wrapUiIfNeeded(innerElement, wrapperComponent) {
|
|
45333
45329
|
return wrapperComponent ? /* @__PURE__ */ React.createElement(wrapperComponent, null, innerElement) : innerElement;
|
|
45334
45330
|
}
|
|
45335
|
-
function createConcurrentRoot(container,
|
|
45336
|
-
|
|
45337
|
-
|
|
45338
|
-
|
|
45339
|
-
|
|
45340
|
-
|
|
45341
|
-
|
|
45342
|
-
|
|
45343
|
-
} = _ref;
|
|
45331
|
+
function createConcurrentRoot(container, {
|
|
45332
|
+
hydrate,
|
|
45333
|
+
onCaughtError,
|
|
45334
|
+
onRecoverableError,
|
|
45335
|
+
ui,
|
|
45336
|
+
wrapper: WrapperComponent,
|
|
45337
|
+
reactStrictMode
|
|
45338
|
+
}) {
|
|
45344
45339
|
let root;
|
|
45345
45340
|
if (hydrate) {
|
|
45346
45341
|
act3(() => {
|
|
@@ -45382,16 +45377,15 @@ function createLegacyRoot(container) {
|
|
|
45382
45377
|
}
|
|
45383
45378
|
};
|
|
45384
45379
|
}
|
|
45385
|
-
function renderRoot(ui,
|
|
45386
|
-
|
|
45387
|
-
|
|
45388
|
-
|
|
45389
|
-
|
|
45390
|
-
|
|
45391
|
-
|
|
45392
|
-
|
|
45393
|
-
|
|
45394
|
-
} = _ref2;
|
|
45380
|
+
function renderRoot(ui, {
|
|
45381
|
+
baseElement,
|
|
45382
|
+
container,
|
|
45383
|
+
hydrate,
|
|
45384
|
+
queries: queries2,
|
|
45385
|
+
root,
|
|
45386
|
+
wrapper: WrapperComponent,
|
|
45387
|
+
reactStrictMode
|
|
45388
|
+
}) {
|
|
45395
45389
|
act3(() => {
|
|
45396
45390
|
if (hydrate) {
|
|
45397
45391
|
root.hydrate(strictModeIfNeeded(wrapUiIfNeeded(ui, WrapperComponent), reactStrictMode), container);
|
|
@@ -45402,18 +45396,13 @@ function renderRoot(ui, _ref2) {
|
|
|
45402
45396
|
return {
|
|
45403
45397
|
container,
|
|
45404
45398
|
baseElement,
|
|
45405
|
-
debug:
|
|
45406
|
-
|
|
45407
|
-
|
|
45408
|
-
|
|
45409
|
-
|
|
45410
|
-
|
|
45411
|
-
|
|
45412
|
-
) : (
|
|
45413
|
-
// eslint-disable-next-line no-console,
|
|
45414
|
-
console.log(prettyDOM(el, maxLength, options))
|
|
45415
|
-
);
|
|
45416
|
-
},
|
|
45399
|
+
debug: (el = baseElement, maxLength, options) => Array.isArray(el) ? (
|
|
45400
|
+
// eslint-disable-next-line no-console
|
|
45401
|
+
el.forEach((e) => console.log(prettyDOM(e, maxLength, options)))
|
|
45402
|
+
) : (
|
|
45403
|
+
// eslint-disable-next-line no-console,
|
|
45404
|
+
console.log(prettyDOM(el, maxLength, options))
|
|
45405
|
+
),
|
|
45417
45406
|
unmount: () => {
|
|
45418
45407
|
act3(() => {
|
|
45419
45408
|
root.unmount();
|
|
@@ -45440,19 +45429,18 @@ function renderRoot(ui, _ref2) {
|
|
|
45440
45429
|
...getQueriesForElement(baseElement, queries2)
|
|
45441
45430
|
};
|
|
45442
45431
|
}
|
|
45443
|
-
function render(ui,
|
|
45444
|
-
|
|
45445
|
-
|
|
45446
|
-
|
|
45447
|
-
|
|
45448
|
-
|
|
45449
|
-
|
|
45450
|
-
|
|
45451
|
-
|
|
45452
|
-
|
|
45453
|
-
|
|
45454
|
-
|
|
45455
|
-
} = _temp === void 0 ? {} : _temp;
|
|
45432
|
+
function render(ui, {
|
|
45433
|
+
container,
|
|
45434
|
+
baseElement = container,
|
|
45435
|
+
legacyRoot = false,
|
|
45436
|
+
onCaughtError,
|
|
45437
|
+
onUncaughtError,
|
|
45438
|
+
onRecoverableError,
|
|
45439
|
+
queries: queries2,
|
|
45440
|
+
hydrate = false,
|
|
45441
|
+
wrapper,
|
|
45442
|
+
reactStrictMode
|
|
45443
|
+
} = {}) {
|
|
45456
45444
|
if (onUncaughtError !== void 0) {
|
|
45457
45445
|
throw new Error("onUncaughtError is not supported. The `render` call will already throw on uncaught errors.");
|
|
45458
45446
|
}
|
|
@@ -45501,11 +45489,10 @@ function render(ui, _temp) {
|
|
|
45501
45489
|
});
|
|
45502
45490
|
}
|
|
45503
45491
|
function cleanup() {
|
|
45504
|
-
mountedRootEntries.forEach((
|
|
45505
|
-
|
|
45506
|
-
|
|
45507
|
-
|
|
45508
|
-
} = _ref3;
|
|
45492
|
+
mountedRootEntries.forEach(({
|
|
45493
|
+
root,
|
|
45494
|
+
container
|
|
45495
|
+
}) => {
|
|
45509
45496
|
act3(() => {
|
|
45510
45497
|
root.unmount();
|
|
45511
45498
|
});
|
|
@@ -45516,10 +45503,7 @@ function cleanup() {
|
|
|
45516
45503
|
mountedRootEntries.length = 0;
|
|
45517
45504
|
mountedContainers.clear();
|
|
45518
45505
|
}
|
|
45519
|
-
function renderHook(renderCallback, options) {
|
|
45520
|
-
if (options === void 0) {
|
|
45521
|
-
options = {};
|
|
45522
|
-
}
|
|
45506
|
+
function renderHook(renderCallback, options = {}) {
|
|
45523
45507
|
const {
|
|
45524
45508
|
initialProps,
|
|
45525
45509
|
...renderOptions
|
|
@@ -45530,10 +45514,9 @@ function renderHook(renderCallback, options) {
|
|
|
45530
45514
|
throw error;
|
|
45531
45515
|
}
|
|
45532
45516
|
const result = /* @__PURE__ */ React.createRef();
|
|
45533
|
-
function TestComponent(
|
|
45534
|
-
|
|
45535
|
-
|
|
45536
|
-
} = _ref4;
|
|
45517
|
+
function TestComponent({
|
|
45518
|
+
renderCallbackProps
|
|
45519
|
+
}) {
|
|
45537
45520
|
const pendingResult = renderCallback(renderCallbackProps);
|
|
45538
45521
|
React.useEffect(() => {
|
|
45539
45522
|
result.current = pendingResult;
|
|
@@ -45695,4 +45678,4 @@ react-dom/cjs/react-dom-client.development.js:
|
|
|
45695
45678
|
* LICENSE file in the root directory of this source tree.
|
|
45696
45679
|
*)
|
|
45697
45680
|
*/
|
|
45698
|
-
//# sourceMappingURL=chunk-
|
|
45681
|
+
//# sourceMappingURL=chunk-PPHTGFN3.js.map
|