failproofai 1.0.5 → 1.0.6-beta.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.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +5 -5
- package/.next/standalone/.next/prerender-manifest.json +5 -5
- package/.next/standalone/.next/required-server-files.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +7 -7
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +14 -14
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +13 -13
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/api/audit/invite/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/audit/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/audit/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/login-request/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/login-verify/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/download/[project]/[session]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/audit/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/audit/page/server-reference-manifest.json +2 -2
- package/.next/standalone/.next/server/app/audit/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/audit/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +14 -14
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +13 -13
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +14 -14
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/policies/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/policies/page/server-reference-manifest.json +14 -14
- package/.next/standalone/.next/server/app/policies/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/policies/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/react-loadable-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/server-reference-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/projects/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/projects/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/settings/page/server-reference-manifest.json +4 -4
- package/.next/standalone/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/chunks/[externals]__0sds_16._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0o07qi9._.js +1 -1
- package/.next/standalone/.next/server/chunks/_09dz7xv._.js +3 -3
- package/.next/standalone/.next/server/chunks/_0tovk6q._.js +1 -1
- package/.next/standalone/.next/server/chunks/_0trp3yc._.js +1 -1
- package/.next/standalone/.next/server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_01r25oi._.js +2 -2
- package/.next/standalone/.next/server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_09z9-p7._.js +2 -2
- package/.next/standalone/.next/server/chunks/package_json_[json]_cjs_1nxcc4v._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__013jr2b._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__01wy8d-._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__02npjtd._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0da85px._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ftmoxc._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0oa1lav._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0p-5p8u._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0s740oi._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__15k-dqb._.js → [root-of-the-server]__1i26dsw._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0sz_5na._.js → [root-of-the-server]__1ouobn4._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1p2otjt._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1qapotl._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0-yi74u._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_08x1r5t._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{_1b78kcp._.js → _09hs6ms._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{_0guaevg._.js → _0lbwa8m._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_0wso5d3._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1-3unkg._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1ddpc5g._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1es2j7i._.js +3 -3
- package/.next/standalone/.next/server/chunks/ssr/_1u8-lu2._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1zopuov._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_next-internal_server_app_policies_page_actions_1sp2-yo.js +3 -3
- package/.next/standalone/.next/server/chunks/ssr/app_audit__components_audit-dashboard_tsx_0p9ud47._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_components_project-list_tsx_1ke6anr._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_global-error_tsx_1kp6l3x._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_policies_hooks-client_tsx_19dqvpc._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/app_settings_settings-client_tsx_20lq-mq._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_1hl81y4._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuzn._.js +2 -2
- package/.next/standalone/.next/server/middleware-build-manifest.js +5 -5
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +19 -19
- package/.next/standalone/.next/static/chunks/{3w46euc60dx39.js → 03n_qjih7-w6q.js} +1 -1
- package/.next/standalone/.next/static/chunks/{2zafgs90r_leq.js → 06jxjnw8bfczc.js} +1 -1
- package/.next/standalone/.next/static/chunks/{252xreaecy80h.js → 0vanab2g65op_.js} +1 -1
- package/.next/standalone/.next/static/chunks/17pjz_h45j10c.js +1 -0
- package/.next/standalone/.next/static/chunks/1ekh-hj_iom84.js +1 -0
- package/.next/standalone/.next/static/chunks/{021ydrq6rhpsi.js → 1so_3s0q4c4j1.js} +1 -1
- package/.next/standalone/.next/static/chunks/1xacnwjkbekn7.js +1 -0
- package/.next/standalone/.next/static/chunks/2hg_bp8z_vm2g.js +1 -0
- package/.next/standalone/.next/static/chunks/{3bleyy40s99f2.js → 2u0kol_boahtv.js} +1 -1
- package/.next/standalone/.next/static/chunks/{1vb33xa6j9y2q.js → 3_vesf83-0903.js} +1 -1
- package/.next/standalone/.next/static/chunks/3d3hzhcnns6ww.js +1 -0
- package/.next/standalone/.next/static/chunks/3iasus89n8mg1.js +6 -0
- package/.next/standalone/.next/static/chunks/{11s_v03ub6nss.js → 44_cj1_i_aa2z.js} +1 -1
- package/.next/standalone/.next/static/chunks/{turbopack-3p73obe0xmrxm.js → turbopack-38nzuvp95_2rv.js} +1 -1
- package/.next/standalone/fp-cloud-cli/uv.lock +3 -3
- package/.next/standalone/hermes-plugin/README.md +133 -0
- package/.next/standalone/hermes-plugin/__init__.py +248 -0
- package/.next/standalone/hermes-plugin/client.py +134 -0
- package/.next/standalone/hermes-plugin/ledger.py +187 -0
- package/.next/standalone/hermes-plugin/plugin.yaml +37 -0
- package/.next/standalone/node_modules/@next/env/package.json +1 -1
- package/.next/standalone/node_modules/next/dist/build/swc/index.js +1 -1
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +1 -1
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +1 -1
- package/.next/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +3 -3
- package/.next/standalone/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +2 -1
- package/.next/standalone/node_modules/next/dist/server/config.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +2 -2
- package/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/image-optimizer.js +14 -0
- package/.next/standalone/node_modules/next/dist/server/lib/app-info-log.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/lib/disk-lru-cache.external.js +7 -1
- package/.next/standalone/node_modules/next/dist/server/lib/start-server.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +6 -1
- package/.next/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/.next/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
- package/.next/standalone/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/.next/standalone/node_modules/next/package.json +10 -10
- package/.next/standalone/node_modules/react/cjs/react.development.js +92 -46
- package/.next/standalone/node_modules/react/cjs/react.production.js +112 -89
- package/.next/standalone/node_modules/react/package.json +1 -1
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +1165 -790
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +1171 -791
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server.browser.production.js +1294 -862
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server.edge.production.js +1305 -868
- package/.next/standalone/node_modules/react-dom/cjs/react-dom-server.node.production.js +1315 -896
- package/.next/standalone/node_modules/react-dom/cjs/react-dom.production.js +24 -5
- package/.next/standalone/node_modules/react-dom/package.json +4 -4
- package/.next/standalone/package.json +13 -12
- package/.next/standalone/sdk/python/uv.lock +18 -18
- package/.next/standalone/server.js +1 -1
- package/README.md +29 -13
- package/bin/failproofai.mjs +3 -1
- package/dist/cli.mjs +420 -178
- package/dist/worker.mjs +17 -3
- package/hermes-plugin/README.md +133 -0
- package/hermes-plugin/__init__.py +248 -0
- package/hermes-plugin/client.py +134 -0
- package/hermes-plugin/ledger.py +187 -0
- package/hermes-plugin/plugin.yaml +37 -0
- package/package.json +13 -12
- package/scripts/translate-docs/validate-translation.ts +48 -0
- package/src/hooks/handler.ts +29 -1
- package/src/hooks/integrations.ts +264 -73
- package/src/hooks/manager.ts +17 -5
- package/src/hooks/types.ts +8 -8
- package/src/hooks/worker-server.ts +1 -0
- package/.next/standalone/.next/server/chunks/[externals]__157pf8j._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_13n822a._.js +0 -3
- package/.next/standalone/.next/static/chunks/0y8_1s45gbqmn.js +0 -6
- package/.next/standalone/.next/static/chunks/14b3ezufe5411.js +0 -1
- package/.next/standalone/.next/static/chunks/1oskk7pdo8aon.js +0 -1
- package/.next/standalone/.next/static/chunks/2xycd6mjg00fb.js +0 -1
- package/.next/standalone/.next/static/chunks/3l36d73kj18zw.js +0 -1
- package/.next/standalone/.next/static/chunks/40lpt2o2b283e.js +0 -1
- /package/.next/standalone/.next/static/{uFpAs_vIXSo6qBzmkXPWD → -7OT2NwGPxAu-skEL_Xee}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{uFpAs_vIXSo6qBzmkXPWD → -7OT2NwGPxAu-skEL_Xee}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{uFpAs_vIXSo6qBzmkXPWD → -7OT2NwGPxAu-skEL_Xee}/_ssgManifest.js +0 -0
|
@@ -105,6 +105,8 @@
|
|
|
105
105
|
return "SuspenseList";
|
|
106
106
|
case REACT_ACTIVITY_TYPE:
|
|
107
107
|
return "Activity";
|
|
108
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
109
|
+
return "ViewTransition";
|
|
108
110
|
}
|
|
109
111
|
if ("object" === typeof type)
|
|
110
112
|
switch (
|
|
@@ -459,8 +461,15 @@
|
|
|
459
461
|
}
|
|
460
462
|
function lazyInitializer(payload) {
|
|
461
463
|
if (-1 === payload._status) {
|
|
462
|
-
var
|
|
463
|
-
|
|
464
|
+
var resolveDebugValue = null,
|
|
465
|
+
rejectDebugValue = null,
|
|
466
|
+
ioInfo = payload._ioInfo;
|
|
467
|
+
null != ioInfo &&
|
|
468
|
+
((ioInfo.start = ioInfo.end = performance.now()),
|
|
469
|
+
(ioInfo.value = new Promise(function (resolve, reject) {
|
|
470
|
+
resolveDebugValue = resolve;
|
|
471
|
+
rejectDebugValue = reject;
|
|
472
|
+
})));
|
|
464
473
|
ioInfo = payload._result;
|
|
465
474
|
var thenable = ioInfo();
|
|
466
475
|
thenable.then(
|
|
@@ -469,7 +478,14 @@
|
|
|
469
478
|
payload._status = 1;
|
|
470
479
|
payload._result = moduleObject;
|
|
471
480
|
var _ioInfo = payload._ioInfo;
|
|
472
|
-
null != _ioInfo
|
|
481
|
+
if (null != _ioInfo) {
|
|
482
|
+
_ioInfo.end = performance.now();
|
|
483
|
+
var debugValue =
|
|
484
|
+
null == moduleObject ? void 0 : moduleObject.default;
|
|
485
|
+
resolveDebugValue(debugValue);
|
|
486
|
+
_ioInfo.value.status = "fulfilled";
|
|
487
|
+
_ioInfo.value.value = debugValue;
|
|
488
|
+
}
|
|
473
489
|
void 0 === thenable.status &&
|
|
474
490
|
((thenable.status = "fulfilled"),
|
|
475
491
|
(thenable.value = moduleObject));
|
|
@@ -480,7 +496,12 @@
|
|
|
480
496
|
payload._status = 2;
|
|
481
497
|
payload._result = error;
|
|
482
498
|
var _ioInfo2 = payload._ioInfo;
|
|
483
|
-
null != _ioInfo2 &&
|
|
499
|
+
null != _ioInfo2 &&
|
|
500
|
+
((_ioInfo2.end = performance.now()),
|
|
501
|
+
_ioInfo2.value.then(noop, noop),
|
|
502
|
+
rejectDebugValue(error),
|
|
503
|
+
(_ioInfo2.value.status = "rejected"),
|
|
504
|
+
(_ioInfo2.value.reason = error));
|
|
484
505
|
void 0 === thenable.status &&
|
|
485
506
|
((thenable.status = "rejected"), (thenable.reason = error));
|
|
486
507
|
}
|
|
@@ -488,7 +509,6 @@
|
|
|
488
509
|
);
|
|
489
510
|
ioInfo = payload._ioInfo;
|
|
490
511
|
if (null != ioInfo) {
|
|
491
|
-
ioInfo.value = thenable;
|
|
492
512
|
var displayName = thenable.displayName;
|
|
493
513
|
"string" === typeof displayName && (ioInfo.name = displayName);
|
|
494
514
|
}
|
|
@@ -523,6 +543,60 @@
|
|
|
523
543
|
function releaseAsyncTransition() {
|
|
524
544
|
ReactSharedInternals.asyncTransitions--;
|
|
525
545
|
}
|
|
546
|
+
function startTransition(scope) {
|
|
547
|
+
var prevTransition = ReactSharedInternals.T,
|
|
548
|
+
currentTransition = {};
|
|
549
|
+
currentTransition.types =
|
|
550
|
+
null !== prevTransition ? prevTransition.types : null;
|
|
551
|
+
currentTransition._updatedFibers = new Set();
|
|
552
|
+
ReactSharedInternals.T = currentTransition;
|
|
553
|
+
try {
|
|
554
|
+
var returnValue = scope(),
|
|
555
|
+
onStartTransitionFinish = ReactSharedInternals.S;
|
|
556
|
+
null !== onStartTransitionFinish &&
|
|
557
|
+
onStartTransitionFinish(currentTransition, returnValue);
|
|
558
|
+
"object" === typeof returnValue &&
|
|
559
|
+
null !== returnValue &&
|
|
560
|
+
"function" === typeof returnValue.then &&
|
|
561
|
+
(ReactSharedInternals.asyncTransitions++,
|
|
562
|
+
returnValue.then(releaseAsyncTransition, releaseAsyncTransition),
|
|
563
|
+
returnValue.then(noop, reportGlobalError));
|
|
564
|
+
} catch (error) {
|
|
565
|
+
reportGlobalError(error);
|
|
566
|
+
} finally {
|
|
567
|
+
null === prevTransition &&
|
|
568
|
+
currentTransition._updatedFibers &&
|
|
569
|
+
((scope = currentTransition._updatedFibers.size),
|
|
570
|
+
currentTransition._updatedFibers.clear(),
|
|
571
|
+
10 < scope &&
|
|
572
|
+
console.warn(
|
|
573
|
+
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
574
|
+
)),
|
|
575
|
+
null !== prevTransition &&
|
|
576
|
+
null !== currentTransition.types &&
|
|
577
|
+
(null !== prevTransition.types &&
|
|
578
|
+
prevTransition.types !== currentTransition.types &&
|
|
579
|
+
console.error(
|
|
580
|
+
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
|
581
|
+
),
|
|
582
|
+
(prevTransition.types = currentTransition.types)),
|
|
583
|
+
(ReactSharedInternals.T = prevTransition);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
function addTransitionType(type) {
|
|
587
|
+
var transition = ReactSharedInternals.T;
|
|
588
|
+
if (null !== transition) {
|
|
589
|
+
var transitionTypes = transition.types;
|
|
590
|
+
null === transitionTypes
|
|
591
|
+
? (transition.types = [type])
|
|
592
|
+
: -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);
|
|
593
|
+
} else
|
|
594
|
+
0 === ReactSharedInternals.asyncTransitions &&
|
|
595
|
+
console.error(
|
|
596
|
+
"addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."
|
|
597
|
+
),
|
|
598
|
+
startTransition(addTransitionType.bind(null, type));
|
|
599
|
+
}
|
|
526
600
|
function enqueueTask(task) {
|
|
527
601
|
if (null === enqueueTaskImpl)
|
|
528
602
|
try {
|
|
@@ -623,6 +697,7 @@
|
|
|
623
697
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
624
698
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
625
699
|
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
700
|
+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
|
|
626
701
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
|
627
702
|
didWarnStateUpdateForUnmountedComponent = {},
|
|
628
703
|
ReactNoopUpdateQueue = {
|
|
@@ -800,6 +875,7 @@
|
|
|
800
875
|
exports.PureComponent = PureComponent;
|
|
801
876
|
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
802
877
|
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
878
|
+
exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
|
|
803
879
|
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
804
880
|
ReactSharedInternals;
|
|
805
881
|
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
@@ -914,6 +990,7 @@
|
|
|
914
990
|
}
|
|
915
991
|
};
|
|
916
992
|
};
|
|
993
|
+
exports.addTransitionType = addTransitionType;
|
|
917
994
|
exports.cache = function (fn) {
|
|
918
995
|
return function () {
|
|
919
996
|
return fn.apply(null, arguments);
|
|
@@ -1004,6 +1081,7 @@
|
|
|
1004
1081
|
exports.createElement = function (type, config, children) {
|
|
1005
1082
|
for (var i = 2; i < arguments.length; i++)
|
|
1006
1083
|
validateChildKeys(arguments[i]);
|
|
1084
|
+
var propName;
|
|
1007
1085
|
i = {};
|
|
1008
1086
|
var key = null;
|
|
1009
1087
|
if (null != config)
|
|
@@ -1044,13 +1122,18 @@
|
|
|
1044
1122
|
? type.displayName || type.name || "Unknown"
|
|
1045
1123
|
: type
|
|
1046
1124
|
);
|
|
1047
|
-
|
|
1125
|
+
(propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++)
|
|
1126
|
+
? ((childArray = Error.stackTraceLimit),
|
|
1127
|
+
(Error.stackTraceLimit = 10),
|
|
1128
|
+
(childrenLength = Error("react-stack-top-frame")),
|
|
1129
|
+
(Error.stackTraceLimit = childArray))
|
|
1130
|
+
: (childrenLength = unknownOwnerDebugStack);
|
|
1048
1131
|
return ReactElement(
|
|
1049
1132
|
type,
|
|
1050
1133
|
key,
|
|
1051
1134
|
i,
|
|
1052
1135
|
getOwner(),
|
|
1053
|
-
|
|
1136
|
+
childrenLength,
|
|
1054
1137
|
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1055
1138
|
);
|
|
1056
1139
|
};
|
|
@@ -1149,44 +1232,7 @@
|
|
|
1149
1232
|
});
|
|
1150
1233
|
return compare;
|
|
1151
1234
|
};
|
|
1152
|
-
exports.startTransition =
|
|
1153
|
-
var prevTransition = ReactSharedInternals.T,
|
|
1154
|
-
currentTransition = {};
|
|
1155
|
-
currentTransition._updatedFibers = new Set();
|
|
1156
|
-
ReactSharedInternals.T = currentTransition;
|
|
1157
|
-
try {
|
|
1158
|
-
var returnValue = scope(),
|
|
1159
|
-
onStartTransitionFinish = ReactSharedInternals.S;
|
|
1160
|
-
null !== onStartTransitionFinish &&
|
|
1161
|
-
onStartTransitionFinish(currentTransition, returnValue);
|
|
1162
|
-
"object" === typeof returnValue &&
|
|
1163
|
-
null !== returnValue &&
|
|
1164
|
-
"function" === typeof returnValue.then &&
|
|
1165
|
-
(ReactSharedInternals.asyncTransitions++,
|
|
1166
|
-
returnValue.then(releaseAsyncTransition, releaseAsyncTransition),
|
|
1167
|
-
returnValue.then(noop, reportGlobalError));
|
|
1168
|
-
} catch (error) {
|
|
1169
|
-
reportGlobalError(error);
|
|
1170
|
-
} finally {
|
|
1171
|
-
null === prevTransition &&
|
|
1172
|
-
currentTransition._updatedFibers &&
|
|
1173
|
-
((scope = currentTransition._updatedFibers.size),
|
|
1174
|
-
currentTransition._updatedFibers.clear(),
|
|
1175
|
-
10 < scope &&
|
|
1176
|
-
console.warn(
|
|
1177
|
-
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
1178
|
-
)),
|
|
1179
|
-
null !== prevTransition &&
|
|
1180
|
-
null !== currentTransition.types &&
|
|
1181
|
-
(null !== prevTransition.types &&
|
|
1182
|
-
prevTransition.types !== currentTransition.types &&
|
|
1183
|
-
console.error(
|
|
1184
|
-
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
|
1185
|
-
),
|
|
1186
|
-
(prevTransition.types = currentTransition.types)),
|
|
1187
|
-
(ReactSharedInternals.T = prevTransition);
|
|
1188
|
-
}
|
|
1189
|
-
};
|
|
1235
|
+
exports.startTransition = startTransition;
|
|
1190
1236
|
exports.unstable_useCacheRefresh = function () {
|
|
1191
1237
|
return resolveDispatcher().useCacheRefresh();
|
|
1192
1238
|
};
|
|
@@ -1276,7 +1322,7 @@
|
|
|
1276
1322
|
exports.useTransition = function () {
|
|
1277
1323
|
return resolveDispatcher().useTransition();
|
|
1278
1324
|
};
|
|
1279
|
-
exports.version = "19.
|
|
1325
|
+
exports.version = "19.3.0";
|
|
1280
1326
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
1281
1327
|
"function" ===
|
|
1282
1328
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
|
@@ -21,6 +21,7 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
|
21
21
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
22
22
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
23
23
|
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
24
|
+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
|
|
24
25
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
25
26
|
function getIteratorFn(maybeIterable) {
|
|
26
27
|
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
@@ -263,85 +264,126 @@ function mapChildren(children, func, context) {
|
|
|
263
264
|
}
|
|
264
265
|
function lazyInitializer(payload) {
|
|
265
266
|
if (-1 === payload._status) {
|
|
266
|
-
var ctor = payload._result
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
var ctor = payload._result,
|
|
268
|
+
thenable = ctor();
|
|
269
|
+
thenable.then(
|
|
269
270
|
function (moduleObject) {
|
|
270
271
|
if (0 === payload._status || -1 === payload._status)
|
|
271
|
-
(payload._status = 1),
|
|
272
|
+
(payload._status = 1),
|
|
273
|
+
(payload._result = moduleObject),
|
|
274
|
+
void 0 === thenable.status &&
|
|
275
|
+
((thenable.status = "fulfilled"),
|
|
276
|
+
(thenable.value = moduleObject));
|
|
272
277
|
},
|
|
273
278
|
function (error) {
|
|
274
279
|
if (0 === payload._status || -1 === payload._status)
|
|
275
|
-
(payload._status = 2),
|
|
280
|
+
(payload._status = 2),
|
|
281
|
+
(payload._result = error),
|
|
282
|
+
void 0 === thenable.status &&
|
|
283
|
+
((thenable.status = "rejected"), (thenable.reason = error));
|
|
276
284
|
}
|
|
277
285
|
);
|
|
278
|
-
-1 === payload._status &&
|
|
286
|
+
-1 === payload._status &&
|
|
287
|
+
((payload._status = 0), (payload._result = thenable));
|
|
279
288
|
}
|
|
280
289
|
if (1 === payload._status) return payload._result.default;
|
|
281
290
|
throw payload._result;
|
|
282
291
|
}
|
|
283
292
|
var reportGlobalError =
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
293
|
+
"function" === typeof reportError
|
|
294
|
+
? reportError
|
|
295
|
+
: function (error) {
|
|
296
|
+
if (
|
|
297
|
+
"object" === typeof window &&
|
|
298
|
+
"function" === typeof window.ErrorEvent
|
|
299
|
+
) {
|
|
300
|
+
var event = new window.ErrorEvent("error", {
|
|
301
|
+
bubbles: !0,
|
|
302
|
+
cancelable: !0,
|
|
303
|
+
message:
|
|
304
|
+
"object" === typeof error &&
|
|
305
|
+
null !== error &&
|
|
306
|
+
"string" === typeof error.message
|
|
307
|
+
? String(error.message)
|
|
308
|
+
: String(error),
|
|
309
|
+
error: error
|
|
310
|
+
});
|
|
311
|
+
if (!window.dispatchEvent(event)) return;
|
|
312
|
+
} else if (
|
|
313
|
+
"object" === typeof process &&
|
|
314
|
+
"function" === typeof process.emit
|
|
315
|
+
) {
|
|
316
|
+
process.emit("uncaughtException", error);
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
console.error(error);
|
|
320
|
+
};
|
|
321
|
+
function startTransition(scope) {
|
|
322
|
+
var prevTransition = ReactSharedInternals.T,
|
|
323
|
+
currentTransition = {};
|
|
324
|
+
currentTransition.types =
|
|
325
|
+
null !== prevTransition ? prevTransition.types : null;
|
|
326
|
+
ReactSharedInternals.T = currentTransition;
|
|
327
|
+
try {
|
|
328
|
+
var returnValue = scope(),
|
|
329
|
+
onStartTransitionFinish = ReactSharedInternals.S;
|
|
330
|
+
null !== onStartTransitionFinish &&
|
|
331
|
+
onStartTransitionFinish(currentTransition, returnValue);
|
|
332
|
+
"object" === typeof returnValue &&
|
|
333
|
+
null !== returnValue &&
|
|
334
|
+
"function" === typeof returnValue.then &&
|
|
335
|
+
returnValue.then(noop, reportGlobalError);
|
|
336
|
+
} catch (error) {
|
|
337
|
+
reportGlobalError(error);
|
|
338
|
+
} finally {
|
|
339
|
+
null !== prevTransition &&
|
|
340
|
+
null !== currentTransition.types &&
|
|
341
|
+
(prevTransition.types = currentTransition.types),
|
|
342
|
+
(ReactSharedInternals.T = prevTransition);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
function addTransitionType(type) {
|
|
346
|
+
var transition = ReactSharedInternals.T;
|
|
347
|
+
if (null !== transition) {
|
|
348
|
+
var transitionTypes = transition.types;
|
|
349
|
+
null === transitionTypes
|
|
350
|
+
? (transition.types = [type])
|
|
351
|
+
: -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);
|
|
352
|
+
} else startTransition(addTransitionType.bind(null, type));
|
|
353
|
+
}
|
|
354
|
+
var Children = {
|
|
355
|
+
map: mapChildren,
|
|
356
|
+
forEach: function (children, forEachFunc, forEachContext) {
|
|
357
|
+
mapChildren(
|
|
358
|
+
children,
|
|
359
|
+
function () {
|
|
360
|
+
forEachFunc.apply(this, arguments);
|
|
361
|
+
},
|
|
362
|
+
forEachContext
|
|
363
|
+
);
|
|
364
|
+
},
|
|
365
|
+
count: function (children) {
|
|
366
|
+
var n = 0;
|
|
367
|
+
mapChildren(children, function () {
|
|
368
|
+
n++;
|
|
369
|
+
});
|
|
370
|
+
return n;
|
|
371
|
+
},
|
|
372
|
+
toArray: function (children) {
|
|
373
|
+
return (
|
|
374
|
+
mapChildren(children, function (child) {
|
|
375
|
+
return child;
|
|
376
|
+
}) || []
|
|
377
|
+
);
|
|
378
|
+
},
|
|
379
|
+
only: function (children) {
|
|
380
|
+
if (!isValidElement(children))
|
|
381
|
+
throw Error(
|
|
382
|
+
"React.Children.only expected to receive a single React element child."
|
|
335
383
|
);
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
throw Error(
|
|
340
|
-
"React.Children.only expected to receive a single React element child."
|
|
341
|
-
);
|
|
342
|
-
return children;
|
|
343
|
-
}
|
|
344
|
-
};
|
|
384
|
+
return children;
|
|
385
|
+
}
|
|
386
|
+
};
|
|
345
387
|
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
346
388
|
exports.Children = Children;
|
|
347
389
|
exports.Component = Component;
|
|
@@ -350,6 +392,7 @@ exports.Profiler = REACT_PROFILER_TYPE;
|
|
|
350
392
|
exports.PureComponent = PureComponent;
|
|
351
393
|
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
352
394
|
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
395
|
+
exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
|
|
353
396
|
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
354
397
|
ReactSharedInternals;
|
|
355
398
|
exports.__COMPILER_RUNTIME = {
|
|
@@ -358,6 +401,7 @@ exports.__COMPILER_RUNTIME = {
|
|
|
358
401
|
return ReactSharedInternals.H.useMemoCache(size);
|
|
359
402
|
}
|
|
360
403
|
};
|
|
404
|
+
exports.addTransitionType = addTransitionType;
|
|
361
405
|
exports.cache = function (fn) {
|
|
362
406
|
return function () {
|
|
363
407
|
return fn.apply(null, arguments);
|
|
@@ -451,28 +495,7 @@ exports.memo = function (type, compare) {
|
|
|
451
495
|
compare: void 0 === compare ? null : compare
|
|
452
496
|
};
|
|
453
497
|
};
|
|
454
|
-
exports.startTransition =
|
|
455
|
-
var prevTransition = ReactSharedInternals.T,
|
|
456
|
-
currentTransition = {};
|
|
457
|
-
ReactSharedInternals.T = currentTransition;
|
|
458
|
-
try {
|
|
459
|
-
var returnValue = scope(),
|
|
460
|
-
onStartTransitionFinish = ReactSharedInternals.S;
|
|
461
|
-
null !== onStartTransitionFinish &&
|
|
462
|
-
onStartTransitionFinish(currentTransition, returnValue);
|
|
463
|
-
"object" === typeof returnValue &&
|
|
464
|
-
null !== returnValue &&
|
|
465
|
-
"function" === typeof returnValue.then &&
|
|
466
|
-
returnValue.then(noop, reportGlobalError);
|
|
467
|
-
} catch (error) {
|
|
468
|
-
reportGlobalError(error);
|
|
469
|
-
} finally {
|
|
470
|
-
null !== prevTransition &&
|
|
471
|
-
null !== currentTransition.types &&
|
|
472
|
-
(prevTransition.types = currentTransition.types),
|
|
473
|
-
(ReactSharedInternals.T = prevTransition);
|
|
474
|
-
}
|
|
475
|
-
};
|
|
498
|
+
exports.startTransition = startTransition;
|
|
476
499
|
exports.unstable_useCacheRefresh = function () {
|
|
477
500
|
return ReactSharedInternals.H.useCacheRefresh();
|
|
478
501
|
};
|
|
@@ -539,4 +562,4 @@ exports.useSyncExternalStore = function (
|
|
|
539
562
|
exports.useTransition = function () {
|
|
540
563
|
return ReactSharedInternals.H.useTransition();
|
|
541
564
|
};
|
|
542
|
-
exports.version = "19.
|
|
565
|
+
exports.version = "19.3.0";
|